5,331 Posted Topics
Re: Asking people to analyze over 500 lines of code for you is not a "nice" thing to do. As David W. suggests, use std::string objects instead of char arrays. They are much more efficient and C++ capable. Another non-portable construct is `system("cls");` - that is a Windows-only construct. If you … | |
Re: What exactly do YOU mean by "archive" an architecture? What precisely are you trying to accomplish? | |
Re: One of my rules is that you NEVER use a function as the terminating condition in a loop. This is only necessary if the output of that function may change during the loop. In this case, it does not, so do this instead (taken from the cplusplus.com article: for ( … | |
Re: Intel makes very solid mobos that will probably meet your requirements. Go to their web site and check out their system boards. I've been running a dual processor server/workstation mobo for almost 8 years without any problems. | |
Re: If you just want to learn Linux, then Ubuntu or Mint (a derivative of Ubuntu) are good choices. If you want to learn enterprise linux such as are used in big data centers, then CentOS is the way to go. It is a clone of Red Hat Enterprise Linux, but … | |
Re: Double posting doesn't buy you anything. Please ask for this copy to be removed as the answers you want are already on the other thread. | |
Re: These days, malware can hide in the BIOS flash area, or in disc drive flash memory. They are almost impossible to detect, and remove. The NSA uses these techniques, and they are the most sophisticated "hackers" in the world. If you keep getting infected on reboot, first try erasing/resetting your … | |
Re: What system are you running on - Windows? Can't help you other than suggest a Google search. Linux? Then what OS distribution and version are you running (such as Ubuntu 15.04, etc)? On my Red Hat Enterprise System clone I find xvidcap in the atrpms optional repository. If you are … | |
Re: As noted by Rev. Jim - ripping "protected" media is technically illegal. There are tools that will allow you to covert Blu-Ray movies to mkv (Mastroika) format, but you will have to find them on your own. From there, you can use tools like ffmpeg and DeVeDe to convert the … | |
Re: You need to post your source code here. Also, if you run your program in the debugger, does it still fail? If it does, then you will be able to see where it fails and can look at data values. You may have a buffer overrun or memory exhaustion issue. … | |
Re: It depends upon what you want to do with it and what your needs are. Be more specific. | |
Re: Think of an operating system (Linux) as a seed or nut like an almond or walnut. There is the outer part (the applications and system services), and then there is the inner part that contains all the stuff needed for the rest (the kernel). It is generally (with luck) quite … | |
Re: What you call "switch" should be the network router. If the "wifi router" (I assume it is your WiFi access point) is configured as a router and not a bridge/switch, then that is your problem. If not, try connecting the NAS directly to the switch. IE, make sure "switch" is … | |
Re: Look at it this way: int anArray[10]; for (int i = 0; i < 10; i++) { anArray[i] = i+1; } So if you print out the array values, they will go from 1 to 10. :-) | |
Re: fgets requires a `char*` as the first argument. You are passing a `toDo*` type. I assume that the day element of toDo is equal to the line number? In any case, pass fgets `t[i].task` into fgets and then set `t[i].day` to i. | |
Re: The last time I did anything with Bayesian algorithms was back in the dark ages when we had to write everything from scratch... :-) Sorry that I don't know what C libraries are out there for that. I think that the Boost C++ libraries has support for this, but I'm … | |
Re: Is there a configure script or Makefile or install script (maybe called "install.sh")? What about read-me files? If there is a Makefile, run "make install", ditto if there is an install script, run that (you may need to set the executable bits on it), ditto a configure script which you … | |
Re: Upgrading from Win7 to Win10 right now? HUGE mistake! Mostly, it doesn't work... :-( Try running the recovery option and revert back to Win7 first. FWIW, the Win7->Win10 upgrade messed up my brother-in-law's computer and that is what he had to do. He got all of his data back then. | |
Re: Power saving mode will either decrease the speed of the CPU, or possibly put the system to sleep or hibernate it. In the docking bay where you see things like your running program icons, your battery/power condition, network, etc, then right click (maybe right click - not sure which) on … | |
Re: Make an effort to solve this, post your PHP code here, and then we may be able to help. | |
Re: There are times when C api's are appropriate in what is mostly a C++ application. Low level system and network programming often require C code. as for STL collections, strings, and such, they are VERY powerful and you would be well served to learn them. They can save you tonnes … | |
Re: No proprietary operating system can be "good" since you have no way to know what they are doing with your data/information. Windows 10 is especially egregious in this regard. They own you, and your data. They can download it, sell it, do with it what they want. I will only … | |
Re: We do NOT do your homework for you! Please read the terms of use/service for this site. That is made perfectly clear. Make an honest attempt to solve the problem, post the code and any errors you are getting here, and then we may help you. | |
Re: Please don't double-post. I already answered this in your other post... :-( | |
Re: You might want to try this open source Blu-Ray to MKV conversion tool. Many video players, especially VLC, can handle MKV (Mastroika) files without problems. http://www.makemkv.com/download/ | |
Re: Have you tried VLC? Also, what is on the BR disc, and where did you get it? | |
Re: That's a nice tutorial. I also wrote one for Daniweb a year or so ago when I was doing a lot of PHP programming at Nokia. Here is the link: https://www.daniweb.com/programming/web-development/tutorials/484310/why-you-dont-want-to-mix-php-and-html-directly- ![]() | |
Re: You can use either GET or POST variables for the message from the client, and then simple HTML for the output. GET variables go on the URL line. POST variables are embedded in the message from client to server and cannot be seen by outside entities, especially if you are … | |
Re: Sorry, but we don't do your homework for you. Please try to do it yourself, and if you are still having problems then post your code here and we can try to help you. No effort, no help. | |
Re: Yes, I was going to suggest using the Lame mp3 encoding library. Also, there is open source code out there to do this, such as is used by the ffmpeg audio/video conversion tool. | |
Re: So, is your code supposed to be written in BORG, or C++? That is not clear. | |
Re: On using Linux I presume? There is a "Linux for Dummies" book, and this article may help point you in the right direction: http://www.linfo.org/newbies.html Current versions of Linux for desktops have good GUI's where most tools have decent graphical components to do stuff like configuring the desktop, network, etc. It … | |
Re: In this section of code medium = opts.breakpoints[0] || 480; large = opts.breakpoints[1] || 900; You will notice that there is no entry for small. I think this is a bug. | |
Re: From the code you did paste, you are missing a terminating '}' in npc_22000(). So, if this is not the issue, as per AD, please post ALL of your code... :-) | |
Re: @johnruelle - yes that is exactly correct. My suggestion however, is to switch to LibreOffice... :-) Free, full-featured, and compatible with MS Office. They have done a LOT of work so that Office documents work correctly. That wasn't the case for OpenOffice and LibreOffice when it was forked from OpenOffice, … | |
Re: Configure your web browser to NOT use a proxy. For your home network, it is not only unnecessary, but will block you as you have found. Proxy's are only suitable for corporate networks, not home ones. | |
Re: Please show ALL of your PHP code! | |
Re: Either is a valid approach, but for a better "native" mobile experience the first option would be preferable. | |
Re: This is a well known problem with floating point numbers. Even if your software displays 0.0000, it is probably a truncated value that may really be 0.00001, hence the mismatch when compairing to 0. Also, 0 is an integer, not a floating point, value which just exacerbates the issue. So, … | |
Re: The "speeds" specified in the USB (and other device) specs are the maximum supported speeds. That doesn't mean that devices so attached are capable of those speeds. Certainly, most disc drives cannot support sustained speeds of either USB 2.0 or 3.0, especially for writing. Once the the internal buffers on … | |
Re: Your /usr/bin/java is a link to /opt/java/jdk1.7.0_21/bin/java, but it doesn't exist, or is somewhere else. | |
Re: Amazing that there are still companies so far behind the wave that they are continuing to run Novell servers... That's almost like using a horse and buggy to commute 60 miles to work... Well, I suppose the Amish would do that, but I prefer my Toyota! | |
Re: First, you need to get permission from your ISP to do this, if law doesn't explicitly allow you to do so. You can route all the local people to your router assuming you have legal rights to do so. They will get whatever bandwidth is available based upon current usage. … | |
Re: You need to read Knuth's work on Sorting and Searching. Remember the KISS (Keep It Simple Stupid) principle. Read this in Wikipedia: https://en.wikipedia.org/wiki/Heapsort | |
Re: What does MVC mean to you? To me it is Model-View-Controller. This wikipedia article does a pretty decent job of helping one understand the concepts: https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller What you are describing doesn't say MVC to me. | |
Re: Sorry. Mr. Clueless here! Is there a web site? Do they have a user/support forum? That's where I would start. | |
Re: Show all of the relevant code, including headers (class definitions and function declarations), as well as implementation code for the classes/functions that are failing. You are not providing enough information. We especially need the entire section of code where the errors are occuring and you are only providing segments. | |
Re: If you free an already freed memory block, usually your program with crash with a SEGFAULT error. As deceptikon said, you cannot be guaranteed that reallocation of a block after freeing another, even if it is of the same size, will return the same block of memory. A lot of … |
The End.