5,331 Posted Topics

Member Avatar for Hamza_9

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 …

Member Avatar for overwraith
0
344
Member Avatar for jkon
Member Avatar for jkon
0
280
Member Avatar for COKEDUDE

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

Member Avatar for ddanbe
1
242
Member Avatar for it@61@sec

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.

Member Avatar for rubberman
0
364
Member Avatar for Amr.Mohammad87

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 …

Member Avatar for jwenting
0
461
Member Avatar for commando1200

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.

Member Avatar for rproffitt
0
265
Member Avatar for happygeek

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 …

Member Avatar for Stuugie
5
829
Member Avatar for tony75

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 …

Member Avatar for tony75
0
631
Member Avatar for tinapanpan

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 …

Member Avatar for JacobBrown
0
152
Member Avatar for tgreiner

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

Member Avatar for tgreiner
0
330
Member Avatar for kombi-tamiri

It depends upon what you want to do with it and what your needs are. Be more specific.

Member Avatar for rubberman
0
44
Member Avatar for SAMMY12345

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 …

Member Avatar for turboscrew
-2
289
Member Avatar for isomerase

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 …

Member Avatar for isomerase
0
364
Member Avatar for DS9596
Member Avatar for rubberman
0
136
Member Avatar for DS9596

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

Member Avatar for rubberman
0
140
Member Avatar for Leonard_3

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.

Member Avatar for rubberman
0
187
Member Avatar for Agilemind

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 …

Member Avatar for rubberman
0
156
Member Avatar for lewashby

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 …

Member Avatar for mike_2000_17
0
408
Member Avatar for JacobBrown

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.

Member Avatar for rproffitt
0
223
Member Avatar for alan reid

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 …

Member Avatar for rubberman
0
289
Member Avatar for Eirik

Make an effort to solve this, post your PHP code here, and then we may be able to help.

Member Avatar for Eirik
0
345
Member Avatar for ShiftLeft

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 …

Member Avatar for ShiftLeft
0
1K
Member Avatar for SAMMY12345

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 …

Member Avatar for jacob81
0
291
Member Avatar for Huda nawzad

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.

Member Avatar for Huda nawzad
-2
208
Member Avatar for Chris.T
Member Avatar for rubberman
-1
488
Member Avatar for shelfer

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/

Member Avatar for rubberman
0
205
Member Avatar for JacobBrown
Member Avatar for rubberman
0
91
Member Avatar for Yves11

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-

Member Avatar for diafol
0
267
Member Avatar for Rammanan

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 …

Member Avatar for rubberman
0
232
Member Avatar for IRTIZA12

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.

Member Avatar for rubberman
0
195
Member Avatar for Qazinix

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.

Member Avatar for rubberman
0
1K
Member Avatar for aeck

So, is your code supposed to be written in BORG, or C++? That is not clear.

Member Avatar for Taywin
0
2K
Member Avatar for felton

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 …

Member Avatar for rproffitt
0
146
Member Avatar for MissMolly

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.

Member Avatar for rubberman
0
101
Member Avatar for playst205

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

Member Avatar for kuroshmokhtari
0
8K
Member Avatar for johnruelle

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

Member Avatar for rubberman
0
273
Member Avatar for zelrick
Member Avatar for Heyitscat

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.

Member Avatar for rubberman
0
136
Member Avatar for Aeonix
Member Avatar for london-G

Either is a valid approach, but for a better "native" mobile experience the first option would be preferable.

Member Avatar for gentlemedia
1
185
Member Avatar for new_developer

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

Member Avatar for rubberman
0
12K
Member Avatar for Reverend Jim

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 …

Member Avatar for jwenting
0
772
Member Avatar for Makara

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.

Member Avatar for jwenting
0
247
Member Avatar for SDiBen

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!

Member Avatar for SDiBen
0
257
Member Avatar for Zorrro

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

Member Avatar for Bilal_3
0
232
Member Avatar for Cory_1

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

Member Avatar for Taywin
0
244
Member Avatar for laguardian

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.

Member Avatar for JamesCherrill
0
191
Member Avatar for Kevin_20

Sorry. Mr. Clueless here! Is there a web site? Do they have a user/support forum? That's where I would start.

Member Avatar for Kevin_20
0
102
Member Avatar for alek.mieczkowski

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.

Member Avatar for alek.mieczkowski
0
4K
Member Avatar for Mayukh_1

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 …

Member Avatar for rubberman
0
128

The End.