rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Whatever burnt out your motherboard probably toasted your video and audio cards as well. Time to get some new gear!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can extract the specific file from the compressed .bz2 tarball with this command:

tar -jxvf filename.tar.bz2 targetfilename

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Don't ask us to do that with a long "stack" of code without providing the compiler output with syntax errors and warnings.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Qt works well in most environments, and is almost 100% cross-system compatible. I have used it for Windows, Linux, and QNX development work, each of which has a totally different windowing system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

We don't solve your school problems here - that is blatant cheating. You first have to make an effort to solve them, then if you have made a sincere effort, we will happily help you to figure out what went wrong... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Any luck with that? If not, then you may need to boot from the recovery partition and tell it to restore broken windows components.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a thread almost a year old. Please don't hijack it, even if your subject is similar. I spent a LOT of time helping newbie14 with his problems. Read the thread, and check with Google Search. So, post as a new thread after you have done some research and tried to sort out your problems, then someone will probably help you through the rougher parts. FWIW, I do this on a consulting basis, and my clients pay me $200USD per hour for my expertise, and in my regular job as a senior systems engineer I make a good fraction of that on a daily basis. Time and my expertise/experience is my only asset. I like to contribute to this and The Linux Forums (also under the Rubberman handle), but try to understand that everyone who contributes to answering questions here has limited time on their hands - use it wisely! :-)

happygeek commented: well said! +11
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you sure the "new" CPU is rated for the speed the old mobo is driving it at? It sounds like it is incorrectly overclocked to me. In your specs you don't mention what the CPU speed of the old vs the new CPU is. You do mention the DDR RAM speed, but that is irrelevant to the CPU speed, for the most part.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So you are saying that the display works, but the backlight doesn't? On most systems, these are florescent lamps, and others LEDs. If yours is the florescent type, then the balast may be bad, or as you say, it could be the controller on the motherboard. In any case, you need to take it, or send it, in to a certified repair depot. This is not a user-repairable situation unless you are a really good engineer with a lot of soldering experience.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have found that sometimes when this happens you can fix it by going to the device manager and removing all the USB hubs and devices, then rebooting. That will reinstall all of the drivers. I had a similar problem with Win7 not being able to recognize my USB thumb and flash drives or USB bluetooth. That resolved the problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As a disclaimer, in case you were wondering why I have so many Nokia phones - I am a Nokia engineer... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have two Nexus Ones, a Nokia Lumia 900, and a Nokia Series 40 feature phone (C3-00). They each have things to like, and things to dislike. As a mere phone w/ nice texting ability (full keyboard) the C3-00 is great (has WiFi also). Since the N1 is getting a bit long in the tooth (almost 3 years old now - mine is 2 1/2), it is somewhat dated, but has a ton of apps. The Lumia 900 is a Windows 7.5 phone, so it is mostly single tasking, but it does include Nokia Maps and Nokia Drive, which allows me to navigate even where there is no cell coverage (it downloads the maps to the phone and uses GPS to navigate), and I like the turn-by-turn navigation better than even my Garmin Nuvi GPS.

Honestly, most smart phones these days are just plain awesome! Spend some time at various phone stores playing with them and then decide which works best for you. Expect to pay about $600 for an unlocked smart phone. You can get a Lumia 900 from AT&T for $50-100 subsidised with a 2 year contract. I think the 920, when it comes out in a month or two, will be around $100 or so.

I don't know about the HTC One, but the Nexus One is 3G/Edge and 802.11b/g WiFi only. The Lumia 900 is LTE/4G/3G/Edge capable, as well as having 802.11b/g/n WiFi.

Oh, and I have a Nokia N8 but since the SIM card slot …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

With some system BIOSes you have to enter the BIOS to tell it to bood from CD/DVD/USB, otherwise it will only boot from HD or network. My Intel motherboard operates like that. I would agree with rch1231 that it is trying to use PXE to boot from the network instead of removable media. Mint and most other current Linux distributions will happily install on an older system with IDE instead of Sata drives as long as it has enough RAM, and if it runs XP, it will likely run any Linux as well... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Unfortunately, most existing media players are designed to handle many different media types, and can utilize installed codecs to do that. Honestly, I don't know of any media player that is designed to only handle one type of media, such as Mastroika (mkv). Not saying there aren't any, just that I don't know of any...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't see where you are setting the host ip address in your servadd structure. You are only setting the port. Example:

struct hostent* hostent = gethostbyname(pHost);
.
.
.
servadd.sin_addr = *((struct in_addr*)hostent->h_addr);
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look at the code for VLC. What you want to do is very complex unless you just want to decode one variety of media. Personally, after 30+ years developing C code, and 20+ years C++, I would not try to do that without resorting to other API's to handle different media types (mpeg1/2 vs mpeg4 vs wmv, vs mkv, etc). You do say your are trying to make an MKV media player. That may be doable since MKV is open source and the specs are not patent-encumbered. Again, review existing open source implementations to help you understand what is needed to be done. I would advice that you go to www.videolan.org (the VLC project site) for sources and help.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I won't go beyond the struct declaration. You are using the same name for the constructor argument as you are using for the member variable. DON'T DO THAT! As a good practice, use m_ as a prefix for member variables, so instead of value, the member variable name is m_value, or m_pNext for the list link. The 'p' in m_pNext indicates that you intend for it to be a pointer.

As for your particular usage problem, you are only showing a small part of your code, and not enough to determine what you are really doing. A fuller explanation of what you are trying to accomplish would be good. It sounds like you want to process queue 1, then queue 2, etc in order? Is that correct?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I tend to agree with JorgeM. At least, that's what I recommend to people who want to run more than one OS on a system. Actually, if you want, you can install a small Linux image on the disc, and it's boot loader will happily handle multiple Windows systems, even if (I think) they are installed on an extended partition, which Windows' bootloaders don't allow.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming you are running Windows, then boot into safe mode, login, reset the resolution if necessary, and then reboot. This usually works for me, though your mileage may vary... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The standard partition table allows 4 primary partitions, or you can make one of them an extended partition which can have more sub-partitions. Windows has to boot from a primary partition, but Linux can boot from extended sub-partitions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just an aside, the C function to delete a file is unlink(filename) as is the REAL system shell program, which is unlink filename. IE, when you execute rm filename, in reality that is calling the 'unlink' program, or the unlink() function... Honestly, without looking at the 'rm' source code I'm not 100% certain which it uses. My best guess is that it uses the C function. :-)

The unlink() function as well as the unlink command just decrement the inode link count and remove the file from the current directory. Subsequent unlinks in the same directory will not do anything. This keeps you from issuing a gazillion unlinks to a file in one directory, causing the file to be physically deleted when it still has references from other directories or applications.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Good employers don't place too much emphasis on "certifications", but on what you know and what you have done. If you are going to take a year to refine your skills, then sign up and start contributing to a serious open source project. In our organization, that would count for major points in the interview process, especially if you contributed some serious updates, bug fixes, enhancements, etc (stuff that can easily be verified). In my interview, I had to write on the whiteboard the C (or Java) code to compute a factorial. That was to prove that I knew how to write basic code, and had an understanding of recursion. I got the job, and am now senior systems engineer for a $40B company, working on bleeding-edge technology. I have no meaningful certificates, and indeed no actual degree. As the old saying goes, never let school get in the way of your education! :-) However, I do have a non-trivial software patent for adaptive systems software, am a published author in technical journals and a graduate-level IT text book, and have been an invited presenter at major IEEE and ACM conferences - all stuff that can be verified on the internet or with the organizations/publishers in question.

The only software-related certificate that I would consider getting these days is the IEEE CSDP - Certified Software Development Professional. That is the first step in becomming a certified PE (professional engineer) in software engineering. A PE is a government reecognized status which …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please try to avoid multiple posts for the same subject/topic! That said, masm is a command-line tool. I don't think it has a GUI component. You need to run it from the command line, or as part of a Visual Studio project.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, define the value for 'size'. The const size_t size=100; statement is fine (proper even). After that, you can instantiate array as in your code int *array = new int[size];. At that point, your loop should work. As the others pointed out, in your first code example, size was not initialized, so it had whatever was in memory at that address at the time, which just happened to be 21. It could have been any other number up to INT_MAX (+2 billion or so), or down to INT_MIN (-2 billion or so)...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What CimmerianX said. Without more information there are WAAAY too many possible causes for this problem. Does it get into the boot loader and then stop/fail while trying to boot? If it doesn't, are you sure the system is sane? Have you tried to boot from a CD/DVD/USB drive?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To expand upon what 'cereal' said.

Linux identifies files/directories by their inode. This is the ONLY authoritative identifier for the component. That allows Linux to have hard links to a file, so even if one instance is deleted, the file itself is not until all links are removed. Also, when an application opens a file, that link count is increased, decreasing it when closed. When the link count to an inode (physical file) reaches zero, then, and ONLY then, will the file be physically deleted. This allows you to delete a file when some application is using it, which you cannot do in Windows. Once the application is done with the file, then the OS will remove it from storage.

So, consider the name/path of a file to only be a reference to the real file, which is identified by it's inode.

Just for your information (FYI), soft links do not increase the reference count to an inode, hence the occasional "missing link" with Linux.

-Rubberman

cereal commented: nice explanation +9
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You have just learned lesson 1 in the sysadmin's handbook - before changing physical system disc configuration, make a FULL external bit-image backup of the drive FIRST! I think you are going to need to run the system recovery tool (boot from recovery partition), effectively reinstalling the operating system. However, FIRST backup any critical personal data.

My only question is, is WHY did you want to do this? If you aren't going to install Linux or some other operating systme (dual boot is the term), then this was pretty much unnecessary. Depending upon your needs, there are other means to accomplish your wishes (probably).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you running Windows (which version), or Linux (which distribution+version+kernel)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What waltp said:

string getName()
    {
        cout << "What is your name? ";
        getline(cin, name);
        return name;
    }
WaltP commented: Do you ALWAYS have to reinterpret what's said before? Can't the post stand on it's own? -3
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And you want us to fix your homework assignment? Sorry, but I have better things to do, like improve the browsing/web-apps performace for 50 million users...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your chances of finding an expert in MIPS assembler programming here is small, at best. Find a MIPS user forum to post your question in this regard. FWIW, the MIPS chip is used in a lot of embedded systems such as routers, etc. So, there are people out there who could help you, but that is a specialized area of knowledge.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What version of Windows are you running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Bad repair?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is the DVD drive a USB, Sata, or IDE device? This is important information.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I've had this problem with Win7 and my USB thumb drives. The solution was to remove ALL of the USB device entries in the system device manager, then rebooting. On reboot, all the USB device drivers will be reinstalled. I assume you are using a USB drive, correct? Doing this won't hurt (don't click on the "remove the driver" check box, just remove the device from the system entries). When you reboot, the drivers will be reinstalled, and that will fix most of this sort of problem. I had to do that with 2 systems recently, and it worked just fine. Before trying that (on the advice of my sysadmin) my system would not allow me to mount/read any USB thumb drive. Since my only other external drive uses an eSata connection, that is as much as I can say for certain!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'm going to be a bit more positive about your intentions... If you have direct access to the system, you can configure ssh to allow you to login remotely. That's all I'm going to say. You have to figure out the rest - it isn't hard.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And learn how to do proper member variable initialization in C++ constructors!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Simple sort-of-pseudo-code algorithm for array-based insertion sort:

SourceArray = {30, 20, 100, 2, 10, 80};
TargetArray = {};
for (i = 0; i < SourceArray.length(); i++)
{
    inserted = false;
    value = SourceArray[i];
    for (j = 0; j < TargetArray.length() && inserted == false; j++)
    {
        // Check if value is smaller than the current position value.
        // If so, then insert and set inserted flag to break out of the loop.
        if (TargetArray[j] > value)
        {
            TargetArray from j move down one position;
            TargetArray[j] = value;
            inserted = true;
        }
    }
    // Check if not inserted. If so, then add to bottom of TargetArray
    if (inserted == false)
    {
        TargetArray[TargetArray.length()] = value;
    }
}

This is an array-based design, not a linked list. The logic is similar, except that a linked-list is simpler, but the algorithms are very much the same. Instead of moving elements down in the array, you would just link in a new node. I'll leave that up to you. In any case, your code is way too complicated. Simplify! Simplify! Simplify!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Multiple posts are not kewl! I answered this elsewhere...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do some reading on how to load a DLL in a running program if your goal is to dynamically link your DLL to the program based on a program argument. I'll teach you how to fish. You have to go to the river to find them...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The function 'math()' and variable 'math' are conflicting symbols. Change the name of one or the other.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Before we try to help you, post here EXACTLY the steps you took, and where you failed to move forward. You have provided your professor's instructions, but nothing about what (precisely) that you did to follow them...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

These files are probably DRM "protected" - most of us say that they are DRM-encumbered! IE, you don't own these books - you are only "leasing" them to run on "approved" hardware/software. There may be software that would enable you capture the audio on Windows and save it to another file in some more-or-less neutral format such as mp3, ogg, flac, etc. Unfortunately, I don't know what that would be. There are tools on Linux to remove DRM from DVD's and BluRay discs, so there may be tools for these files from audible.com.

Ok. I did a quick Google search, and this is what I came up with: http://www.kegel.com/linux/play-audiobook-on-car-stereo.html

It goes into some detail on how to capture .aax audio on a Linux system to mp3 files. The same techniques should work for ogg and flac (with minor adjustments).

Disclaimer: Breaking DRM or closed/copyright protected media (as is the .aax format) is against the law according to the DMCA (Digitial Millenium Copyright Act). You do so at your own risk! Ok, did my due-dilligence here. I, of course, have never done anything to violate the DMCA...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I assume you mean that your system partition is smaller than the physical capacity of the disc. There are two things you can do. One is to create a new partition (using the fdisk command) and creae a file system on that (mkfsys -t ext4 /dev/sda2 for example), then create a mount point on your regular file system and mount the new file system there. To make it mount when you boot, you will need to add the appropriate entry to /etc/fstab. The other way is to modify the partition containing the file system you want to increase to use the rest of the drive (assuming the space is adjacent to the partition in question, and doesn't have another partition in the way), and then resize the file system to use the additional space. Assuming your file system is an ext2, ext3, or ext4 file system, then you would use resize2fs to do that.

In ANY case, backup your critical data and file systems before you do any of this! If you do, the operation will go well. If you don't, something will go wrong and you will lose everything! This is Murpy's Law at work! Trust me, I know from personal, painful experience! :-) Also, remember that Google is your friend! The easiest way I know to do the backup thing on Linux is to get an external drive big enough to hold your entire system disc, then do a bit-image backup. If you mess up, then you can …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What does your "num" have to do with anything? Is that your phone number? What??? As for your monitor problem, normally the CPU has nothing to do with that. Please provide the make/model of your computer as well as your monitor, and what video adapter hardware you are using, operating system, etc. Do you get a BIOS splash/POST screen? If not, how do you know your computer is booting? Does it beep, or do you get any flashing lights on the keyboard or system box?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What operating system are you running? If Linux, the operating system has tools to do this, such as wpa_supplicant, etc. In such a case, you don't need to deal with the connection issues in your application software, just the communication part. The operating system will connect you once configured. Then, you will have a presence on the local network and can use normal TCP/IP communication protocols to talk with other systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you can see the files, you are accessing the drive. Please be more specific. The video card should not interfere with your system drive. It is possible you installed the card in the wrong slot, or got a card that is incompatible with your hardware. Post your bus specs and the card specs here. IE, you can't install a PCI express x16 card in an x4 or x8 slot. Also, you need to be sure your power supply is adequate. Some of these high-performance video cards suck up a LOT of power. That will put the kibosh on the rest of the system, to the point of burning out critical components. Personally (and from experience), I would bet on the power supply.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, besides having a mostly-worthless diploma, what do you know? Did you do any internships? If so, what was your evaluation? IE, what can you do for an employer? A good company won't hire you right out of college without really good references. Can you get a reference from your professors? Are they respected in the industry? What about your college/university? Is it of good reputation for matriculating people with skills needed by industry?

FWIW, I have no degree, yet I hold the position of Senior Systems Engineer for a major company with a serious presence in Bangalore. In fact, part of my team in performance, capacity, and analytics is located there. If you have a PhD in mathematics/statistics, we might be able to use you... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You don't provide any error messages, diagnostics, etc. Just "don't work", which does not work for me! Want help, then provide as much useful information as you can. Emacs has a built-in compiler. If you are building this to run in emacs, then use that. The command is byte-compile-file filename

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't know what your professor said to you about this, but the attachment is pretty clear that you are to do your own work! Sorry, no help from here until you make an honest effort at it. Read the instructions - they are abundantly clear. If you don't understand them, then contact your professor or teaching assistant for help.