2,898 Posted Topics
Re: Yeah, like rubberman said, to have good audio driver support, beyond the basics, you need pulseaudio and ALSA. Modern versions of Ubuntu or other debian-based distros install those by default, as far as I know, but this is definitely the first place you need to look to solve your problem. … | |
Re: I've been using Kubuntu for many years (the KDE spin of Ubuntu). I like it a lot because it's customizable to the teeth, is fast, has a pristine look, is natively in Qt (which is currently preferred by most applications), and is very well tailored for developers (I find it … | |
Re: I think it would be good to promote more intra-community mixing. I mean that there are lots of long-time and/or active members that are confined to only a few specific forums, and don't tend to explore much. They either get the false impression that Daniweb is like the other stricter … | |
Re: I also use EasyBCD for my dual boots. From time to time, mostly after distribution upgrades (e.g., 13.10 -> 14.04), the link from the EasyBCD-configured bootloader to grub2 is broken by an update of grub2. Every time this has happened, the fix was simply to boot into Windows and use … | |
Re: This is a very weird looking cmake file. It must be very incomplete. Why do you have such a long list of targets... are all these targets from your own source code? I assume that your file ` /ws/larryburns/cmake/ME/Build/sc/ASp/CMakeLists.txt` contains the following line (where "ASP_SOURCES" would be some cmake variable … | |
Re: This is more of a parametrization problem than an overfitting problem, I would say. You said it yourself in your description of the pattern 1: "large increase followed by a large decrease". This is a description of a frequency-domain pattern, because it describes the period of change in values. Similarly, … | |
![]() | Re: The display drivers for Intel graphics are integrated by default in Linux. Intel contributes their display driver codes to the open-source community, and have been doing so for a long time. This means that you shouldn't have to install any kind of special display drivers for Intel graphics, i.e., they … |
Re: Your functions are not formatted correctly, you have things like { void foo(); } when it should be: void foo() { } Notice how there is no `;` after the function (when you are implementing them) and the opening bracket `{` appears after the function prototype (`void foo()`). Your functions … | |
Re: When it comes to the internet of things, I'm not so concerned with the whole "recording your life habits" part of it. If the NSA wants to gather statistics on how many pieces of toast I eat in the morning, then let them waste their time (they're already wasting 99.999% … | |
Re: A 350W PSU seems under-powered for the hardware that your computer packs. An i5 CPU, 4GB of RAM, and a 9400T graphics card would require quite a bit more power than that, at least a 500W PSU. | |
Re: The term API is a bit of a fuzzy term today. Back in the early days of computing, you had an operating system and you had applications. The company making the operating system would ship it along with a document that specified all the functions (in C) that the operating … | |
Re: Cool little snippet of code! It's nice to see some flexing of C++ muscles once in a while. There are a few issues though. First, you should also default the move constructor and move assignment operator. You could be wrapping an array of non-trivial types that are actually cheaper to … | |
Re: You cannot write to a string literal. When you do `char* data = "Top Secret Message.";`, the pointer `data` points to a section of read-only data. You cannot write to it, and that's why you get a access violation (or segmentation fault) in the decrypt function when you try to … | |
Re: > 1) is C/C# worth learning if you have basic knowledge of c++ and other programing languages such as python,ruby,lua....... Game programming generally requires solid knowledge and proficiency in C++. You should also be well-rounded when it comes to other auxiliary languages, like scripting, and higher level languages like Python … | |
Re: > will have new extensions for every single thing and will run all the things of other extensions! That sounds like a [microkernel design](http://en.wikipedia.org/wiki/Microkernel). You are definitely going to need to learn programming before you can really do anything with this idea / project. Once you have learned a decent … | |
Re: > I recently played video game, where you can launch your own space program, you simply build a rocket, form sequences appropiately and with enough skill, you can get it to orbit or even further. Sounds like a cool little game. Any links to it that you could provide? > … | |
Re: > You can use it with an SSID that is different from the other one, connect them with an Ethernet cable, I think that you can actually use the same SSID for the two routers, as long as all the other configurations are the same. I have seen this setup … | |
Re: I'm not sure. For one thing, the "Location" from your profile is whatever you set when you edited your profile. I think that another method might be used, based on IP address location. I remember that for a long while it used to show somewhere (can't remember where) that I … ![]() | |
Re: I think it's a simple typo. You have `while (k>(2*n)-1)`, I think that it should be `while (k < (2*n)-1)`, notice the less-than instead of greater-than. You might also notice that using more spaces between things will help you find such errors. It's easier to spot a typo like this … | |
Re: > Windows is pervasive enough that I doubt it would just go away if Microsoft went bankrupt. That's the real question. It's true that there have been several cases in the past of companies going bankrupt or nearly so (being bought at a discount, liquidated, etc.) and their flagship software … | |
Re: Both programs actually compile fine. The error you got for the first program is a **linker** error, meaning that it compiled fine but it couldn't link. The error in question is caused by forgetting to link with the SDL library. It is not sufficient to include the header file, you … | |
Re: Because I've offended someone who is still in a deep-seated denial of the fact that their opinions are necessarily wrong whenever they are opposite to mine, because I'm always right. ;) | |
Re: Well deserved! You're really a shining star in your profession. We need more knowledgeable and down-to-earth reporting like yours. | |
Re: I think that in the long run, with a C: drive of only 40GB, you might want to consider making a symlink for the whole "Program Files" folder to redirect it to another drive. 40GB is about as much as you need for all the Windows files, excluding any installed … | |
Re: Like Moschops said, if there is nothing to store, there is nothing to store. Of course, depending on your serialization method, you might have to store some header information even if the "body" is empty (e.g., in my serialization formats, I usually store a version number (for forward and backward … | |
Re: COBOL!! At least, that's the legacy language for banking, accounting and POS (point-of-sale) software. Hopefully though, I think this is phasing out because COBOL is a language universally known for being horrible. I don't know much about banking software (e.g., software that bank managers might use or the back-ends that … | |
Re: It all depends on how you read the files. In general, with buffered reading, like with `ifstream`, the stream will read blocks of data ahead of what you are currently reading. The reason for this is to minimize the time usage, because it's more efficient to read substantial blocks of … | |
Re: The vast majority of infrastructure code is in C++, or a C/C++ mix. The back-bone of most high-level language support structures (libraries, compilers, interpreters, virtual machines, etc.) are written in C/C++. 3D computer games are mostly in C++. Operating systems are mostly a mix of C and C++, that includes … | |
Re: AFAIK, escape sequences are identical in Java and C++ string literals. They both inherited them from C. The way escape sequences work is that there are a number of special sequences, like `\n`, `\r`, etc... for things like new lines and carriage return characters, but for everything else, if you … | |
Re: Slashes are marking [escape characters](http://en.wikipedia.org/wiki/Escape_character). When you read a JSON message, you must interpret certain characters as separators. For example, if you have `"some phrase"`, it is seen as the string 'some phrase' (no quotes, because the quotes delimit the string, they are not part of it). What if you … | |
Re: You don't need to create another temporary array, this can be done "in-place" (within the same array). The key is that you cannot just overwrite the element that is equal to x, you need to also shift all the other values. Basically, what you need to do is replicate the … | |
Re: The `std::stringstream` class is what you can use for this. Once you have a string (from getline) you can create a stringstream object that operates on it. At this point, the stringstream is, as its name implies, a regular io-stream that uses the underlying string as its buffer (read or … | |
Re: > Is there a way to boot a made program from Visual Studio? That could be difficult. There are probably ways to do it, with a combination of its current C++ compiler and a few legacy DOS utilities. But you have to realize that Visual Studio exclusively targets Windows. So, … | |
Re: You might also want to check out my article on [understanding the build process](https://www.daniweb.com/software-development/cpp/tutorials/466177/understanding-c-from-source-to-binaries). But when it comes to creating libraries, the process of packaging the code into static / dynamic libraries is only the technical part of it. The most important thing is learning to design a good API … | |
Re: > I baught a samsung notebook windows 8 but it seems so laggy and I hate pc's so my dad wanted to take it to work. If you have a PC, but hate Windows and want a good and performing development environment, then you should just install a Linux distribution … | |
Re: In my lab, we have several computers that run Windows XP. They are all machines that are tied to a particular piece of hardware that they run, and we cannot upgrade the software to run that specialized hardware, and therefore, we can't upgrade the OS. But my university put in … | |
Re: I think the best is offices for 2-4 people. It's private, yet social. That's my 2 cents. | |
Re: To read everything that might be lingering in the buffer, you need to use the [readsome](http://www.cplusplus.com/reference/istream/istream/readsome/) function. Your current method just reads the next word, not the left-over data. You could use something like this: string leftoverInput; char leftoverBuffer[64]; streamsize sz = 0; do { sz = cin.readsome(leftoverBuffer, 64); leftoverInput.append(leftoverBuffer, … | |
Re: After several years of efforts, he trained Rantanplan to do it. Step 1: Collect underwear. Step 2: ??????? Step 3: Profit! | |
Re: If you want a free modern IDE to write programs for any computer that was manufactured less than 20 years ago, then you can get [CodeBlocks](http://www.codeblocks.org/downloads/26) (light-weight and simple, use the download with TDM-GCC 4.8.1) or [Visual Studio Express](http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx) (heavier and more complicated IDE). If you want to learn C++, … | |
Re: Nobody here is going to give you code just like that. You need to show effort in trying to solve the problem yourself, and ask questions about specific problems you are encountering with **your code**. | |
Re: There are many ways to create such a fitness function, and the choice is critical for the resulting behavior of the controller (I assume you are going with a geometric controller?). The first choice you have to make is between **dynamics** and **kinematics**. When the fitness function involves dynamics, you … | |
Re: You can print things using the `printf` function (instead of `cout`), as is explained in details [here](http://www.cplusplus.com/reference/cstdio/printf/). You can get user input using the `scanf` function (instead of `cin`), as is explained in details [here](http://www.cplusplus.com/reference/cstdio/scanf/). The header you need to include for both is `<stdio.h>` (instead of `<cstdio>` as said … | |
Re: I see two potential sources for the problem. First, it's possible that your BIOS does not support a hard-drive of that size. As far as I know, a classic BIOS / MBR setup of that generation of computer (pre-UEFI) has a limit of 2.19TB for the hard-drive from which you … | |
Re: It sounds to me like Microsoft has taken a lot of inspiration from the Ubuntu Unity desktop features. Most of what you describe is what they did in Ubuntu a few years ago. There was a lot of hate about it back then, but the dust has settled and people … | |
![]() | Re: I didn't know that people still used AutoCAD (or is it trying to make a comeback?). Anyhow, the graphics are really not that heavy (compared to modern computer games), what you generally need more of is RAM because that type of CAD software often gobbles up a lot of RAM. … ![]() |
Hi all, I just noticed a signficant slow-down with Daniweb, not with the server, but with the site (javascript?), in particular, with the editor that jams every few seconds. So, I checked by task manager and found that one Chrome tab was taking quite a bit of resources (memory + … | |
Re: Yeah, the test command should be: $ env x='() { :;}; echo vulnerable' bash -c "if [ $? -ne 0 ] ; then echo \"start patching now\"; fi" I tried it and it printed "vulnerable" for me, but I checked my updates and bash got updated to 4.3 and now … | |
Re: Daniweb has an API, see [here](http://www.daniweb.com/api/home). I don't know enough about this (both the API and your needs) to know if it will suffice, but that is one way to programmatically tap into Daniweb's database. I hope it helps. | |
Re: You could change the port to something other than 22 (which could be blocked by some firewall) and see if that works (when you change the port, you have to specify it when trying to connect to it). |
The End.