5,331 Posted Topics

Member Avatar for vikuseth

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 …

Member Avatar for rubberman
0
228
Member Avatar for samuel morish

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), …

Member Avatar for rubberman
0
116
Member Avatar for rocky anish

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. …

Member Avatar for JySysAdmin
0
104
Member Avatar for dancks

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.

Member Avatar for smantscheff
0
221
Member Avatar for petruccio

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 …

Member Avatar for dfghdfhgdfhg
1
348
Member Avatar for Stuugie

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).

Member Avatar for Stuugie
0
109
Member Avatar for karatelovr

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.

Member Avatar for ruggb
0
133
Member Avatar for phaedrusGhost

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 …

Member Avatar for tompatrick
0
247
Member Avatar for bsbstationary

When a system goes into hibernate mode, usually you need to press the power key to restart it.

Member Avatar for rubberman
0
46
Member Avatar for london-G

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 …

Member Avatar for Taywin
0
116
Member Avatar for xThrash

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 …

Member Avatar for Taywin
0
281
Member Avatar for Fix_It

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... :-(

Member Avatar for Fix_It
0
190
Member Avatar for Umesh17_89

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... :-)

Member Avatar for Umesh17_89
0
235
Member Avatar for hala.qaddoumi

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! :-)

Member Avatar for hala.qaddoumi
0
1K
Member Avatar for Blastcore

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 …

Member Avatar for rubberman
0
118
Member Avatar for sheila.younkin.1

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] …

Member Avatar for rubberman
0
291
Member Avatar for akosiartas_1

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 …

Member Avatar for rubberman
0
202
Member Avatar for M.S.Vinod

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.

Member Avatar for rubberman
0
174
Member Avatar for M.S.Vinod

You solve - we critique your solution. We DON'T do your homework for you... :-(

Member Avatar for rubberman
0
149
Member Avatar for rmbrown09

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 …

Member Avatar for rubberman
0
238
Member Avatar for Depreciated

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 - …

Member Avatar for rubberman
0
187
Member Avatar for lewashby

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.

Member Avatar for rubberman
0
88
Member Avatar for niksirat

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 …

Member Avatar for rubberman
0
189
Member Avatar for rocksoad23

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 …

Member Avatar for rubberman
0
319
Member Avatar for knowell

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.

Member Avatar for rubberman
0
104
Member Avatar for slimergan
Member Avatar for rubberman
0
240
Member Avatar for Mac071008

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.

Member Avatar for rubberman
0
127
Member Avatar for tefony

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!

Member Avatar for rubberman
0
68
Member Avatar for strungoutfan78

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.

Member Avatar for strungoutfan78
0
189
Member Avatar for gkaran487

I think that what Momerath is saying is DON'T ASK US TO DO YOUR SCHOOL WORK FOR YOU! :rolleyes:

Member Avatar for rubberman
0
143
Member Avatar for london-G

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 …

Member Avatar for rubberman
0
972
Member Avatar for Mrs safoa adjei

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 …

Member Avatar for rubberman
0
161
Member Avatar for vinodvinu

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 …

Member Avatar for rubberman
0
551
Member Avatar for chandbasha

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 …

Member Avatar for rubberman
0
99
Member Avatar for Dewey1040

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.

Member Avatar for Dewey1040
0
120
Member Avatar for almondjoy

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 …

Member Avatar for jalpesh_007
0
107
Member Avatar for NordCoder

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 …

Member Avatar for NordCoder
0
237
Member Avatar for Radio2006

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.

Member Avatar for Radio2006
0
195
Member Avatar for Dee1004

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.

Member Avatar for rubberman
0
442
Member Avatar for umesh_at_dani

"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 …

Member Avatar for rubberman
0
949
Member Avatar for UNDER-18 FG

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...

Member Avatar for JamesCherrill
0
293
Member Avatar for eoinoNumba1

Better idea? Donate them to a school or other charitable organization and take the tax deduction.

Member Avatar for <M/>
0
165
Member Avatar for corby

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...

Member Avatar for corby
0
232
Member Avatar for ingeborgdot@yah
Member Avatar for eighty4prcnt

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 …

Member Avatar for JackCollins
0
720
Member Avatar for ansab.rehman1

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.

Member Avatar for anilak
0
195
Member Avatar for last1devil

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.

Member Avatar for last1devil
0
837
Member Avatar for dalawh

If you are running Linux, there is the nice inotify api's that will let you know when a file/directory has been changed.

Member Avatar for mike_2000_17
0
235
Member Avatar for pjh-10
Member Avatar for lewashby

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. …

Member Avatar for ishkebibble
0
202

The End.