5,331 Posted Topics
Re: I was going to suggest the same thing that mike_2000_17 did - build the system so it doesn't require the dll to get into main, and then dynamically load (link) it. This approach has worked well for me in the past, plus you can add functionality that way without rewriting/compiling/linking … | |
Re: I think it may depend upon the boot options and what options you selected when installed. I know that Ubuntu and RHEL both let me control the brightness on my Dell Laptop. . . . Yep. Just tested. I'm running Scientific Linux 6 on it now (an RHEL 6 clone), … | |
Re: Windows generally utilizes the entire disc when installed. In such a case, you either need to reduce the size of the C: drive first but since that usually is not a good idea, I recommend that you install Linux in a virtual machine, or install Ubuntu using their Windows installer. … | |
Re: You can write a program or script that uses inotify to inform you when a file is accessed, opened, modified, created, deleted, etc. See the inotify man page for more information. | |
Re: Time to send it to the repair depot... :-( If it won't get to the POST (Power-On Self Test) screen, then something is seriously broken. It may be as simple as a blown capacitor (not uncommon), or even more serious, but unless you have some circuit repair experience, this is … | |
Re: When booting, hold down one of the function keys (like F2, F12, etc) until you hear a bunch of beeps. That should force the system into the bios setup. Some systems have a special key to do this (Lenovo Thinkpads, for example). | |
Re: This is often the symptom of a virus or trojan, assuming you haven't made significant changes to your system configuration just before this started. | |
Re: I don't know what the source resolution was, but remember that DVD's are mpeg2 encoded, and limited to 720x480 (US/NTSC) or 720x525 (Europe/PAL). In any case, you aren't providing enough information to tell you why it has lost quality. IE, if you have a HD source (1920x1080) and encode it … | |
Re: When a system goes into hibernate mode, usually you need to press the power key to restart it. | |
Re: The most common type of recursion is what we call "tail recursion" - a function directly calling itself, which is what you are doing here. There is indirect recursion where a function A calls function B, which somewhere down the line agains calls to function A. So, yes your FUNCTION … | |
Re: That's why you are studing computer science, I presume, so you can learn how to do this stuff? You say you understand the traveling salesman problem? I suspect that if you really did understand it, you could formulate your solution in pseudo code, which could easily be converted into any … | |
Re: This is NOT x86 assembly code. It is mostly some sort of macro assembler. Without knowing more about the macro language, I personally cannot help you... :-( | |
Re: Image processing is a VERY specialized field. Read some of the literature on the subject, including papers from from the SIGGRAPH group of the ACM. I don't doubt there are people who lurk on these forums who are knowlegable in the field, but there can't be many... :-) | |
Re: Ah, building an expression (infix, prefix, postfix) tree! That takes me back! :-) Fortunately, I still have my copy of Knuth handy, including the last volume recently published! :-) | |
Re: First, unless you are going to limit yourself to Windows systems, don't use backslashes (\) for directory separators. Use a forward slash (/) instead. Windows will handle that just fine, but the backslash has special meaning in C/C++ programs and it won't work if you want to compile your code … | |
Re: Well, in my opinion, this is a nonsensical exercise. I would have my students construct an array with 100 elements that are structures, the first field of which would be the string, and the second would be the count. IE: struct word_count { string word; int count; }; struct word_count[100] … | |
Re: Back in the 1990's, some ISP's would lock your account to your computer's MAC, so if you changed the computer, or installed a router between your system and the internet, it would not let you connect. The solution was for router manufacturers (Linksys, et al) to allow you to spoof … | |
Re: What do you mean? IE, disallow auto-mounting of the drive when plugged into a Linux system? Look into disabling the autofs service after the service boots up. | |
Re: You solve - we critique your solution. We DON'T do your homework for you... :-( | |
Re: My company hires college interns in their junior or senior year and pairs them with senior engineers to learn and see what they are capable of. The good ones are brought on board as staff engineers when they graduate, and get to keep their internship time as part of their … | |
Re: To all of your questions, the answer is "it depends"... Part of the process of "finishing" a programming project is to specify hardware, software, and other requirements to run it. Re. database - does it require an industrial strength RDBMS such as Oracle, or will MySql suffice? Re. graphics - … | |
Re: What won't let you upload files? Text files can be attached to DaniWeb postings, or you can directly embed source files in your post. | |
Re: Use the 'find' command with the -exec option where you will move the qualifying files to a specific folder. Example: find /dirname -type f -name '<pattern>' -exec mv {} /targetdir \; This will move all files under /dirname to /targetdir. It will skip directories (using the -type f argument) and … | |
Re: This is perfectly sensible, if not well-written... :-) There are a lot of C++ coding nuances that you are missing, such as when to pass an object vs. reference (const vs. non-const) to a function such as `B::method_b(A ab)` vs `B::method_b(const A& ab)` or `B::method_b(A& ab)`. The effects of these … | |
Re: If you are in your 3rd year and have not yet come up with a good thesis subject then I wish you luck! FWIW, networks imply distributed systems. There are huge numbers of significant problems to solve in that domain. Look at zeromq and similar messaging tools for ideas. | |
Re: Have you read Clocksin and Mellish? That is the Prolog bible... | |
Re: In some cases, mutex locks are preferable. Are you allowed to use those? You can simulate a mutex with semaphores, but it isn't simple. | |
Re: I guess you aren't a genius! :-) Then, without pondering this problem for awhile, I am not either... Good problem though, so I think I'll try to figure it out, but don't expect me to give you the answer! | |
Re: Please show your code. There are a lot of ways to implement timers in Linux, some of which are thread-safe, and others are not. I do a lot of this in the work I do as a systems engineer. | |
Re: I think that what Momerath is saying is DON'T ASK US TO DO YOUR SCHOOL WORK FOR YOU! :rolleyes: | |
Re: Depending upon the hash algorithm and the order of the table, collisions are common, so you have to traverse the chain to determine if you have a match if you are doing a lookup/comparison. With a sorted array, searches are nominally slower, but as deceptikon said, range searches and ordered … | |
Re: Usually the inability to view YouTube videos is due to missing codec plugins for your browser. What OS and browser (including versions) are you running? Is this a 32-bit, or a 64-bit system? If 64-bit, is your browser 32-bit or 64-bit? All of these questions are important to help you … | |
Re: Boot into Mint, and then post the output of the command (as root): fdisk -l If your disc has some unused space, you can increase your Mint partition size, and then resize the file system. Also, you can either create a swap partition (best performance), or create a swap file … | |
Re: Or just: export PATH=$HOME/bin:/usr/local/bin:${PATH} This gives precidence to executable files in your personal bin directory, then to those in /usr/local/bin, and finally to the default PATH environment. Note the {} around PATH. That allows a recursive path definition like this, especially if the existing PATH environment is complexly defined. It … | |
Re: Remember that memory allocations are ALWAYS on word boundaries, and aligning structures that are stored in an opaque buffer requires that you ALWAYS align the structure on a word boundary. This is likely why your math is not working as you expect. | |
Re: The version of eclipse you are using will be dependent upon specific versions of Java. Make sure you have installed the correct Java SDK and JRE for the version of eclipse you are running. FWIW, this is the main reason why I generally don't use eclipse, but rather fall back … | |
Re: How was the data compressed? Did you write your own LZW compression tool? From what you are saying, it sounds like the string dictionary is out-of-whack, or that you are accessing it incorrectly. Sorry, but I don't have the cycles right now to analyze your code in regards to that … | |
Re: I'd agree with gabeand - take the cover off and reseat all of the components. There may be other loose components (both socketed chips as well as expansion boards) that need to be reset in their sockets (RAM, flash/bios chips, etc). Also, check for loose screws. | |
Re: This article may help: http://www.w3.org/International/articles/language-tags/Overview.en.php?changelang=en Basically, you need to utilize language tags so it is properly decoded, assuming that REGEX supports that. | |
Re: "Or with whatever else you want to initialize it with." Or nothing at all, and let the initializer for the translation unit call the default constructor, as in: // myclass.cpp #include "myclass.h" std::list<int> MyClass::privateList; . . . mike_2000_17's approach is equally valid (perhaps more so), and will force it to … | |
Re: Clean it up, then I'll comment. FWIW, I have done a LOT of research into prime number algorithms. They way it is written, it is very hard to read in a short period of time, which is all I have to give you... | |
Re: Better idea? Donate them to a school or other charitable organization and take the tax deduction. | |
Re: Do some reading on reflection - the means by which you can use RTTI (runtime type identification) methods to do what you want. Google is your friend... | |
![]() | Re: Check the system thermal sensors. It may be overheating. |
Re: 1. First problem with new card - too much power required. 2. Second problem. First problem caused low voltage (hence too much current) to motherboard, causing component failure. At this point, you have only one option - replace system. You might be able to recover the hard drives and new … | |
Re: Start by drawing diagrams of the interconnection topologies in each case, 1-6. Then answer the question relevant to each topology. As Caperjack said - we don't do your homework. We will help you, IF you make an honest effort to solve it yourself. | |
Re: As Mike2K said... You have a 32-bit system, but have somehow installed 64-bit versions of gcc and related cruft. You need to remove them all from the system and then reinstall the 32-bit versions of gcc et al. | |
Re: If you are running Linux, there is the nice inotify api's that will let you know when a file/directory has been changed. | |
Re: Sure, but what do YOU think is the right approach? | |
Re: Most any Android device will do this just fine. They have a selectable option on how to present the device to your PC operating system. I run Linux RHEL 6.x and have a Nexus One (gingerbread), and can either mount it as a "smart" device, or as a USB drive. … |
The End.