2,898 Posted Topics

Member Avatar for tom.magaro

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

Member Avatar for tom.magaro
0
179
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
507
Member Avatar for Dani

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 …

Member Avatar for Reverend Jim
1
865
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
2K
Member Avatar for cypherscouter13

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 …

Member Avatar for cypherscouter13
0
1K
Member Avatar for asif49

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

Member Avatar for mike_2000_17
0
319
Member Avatar for lazycoder

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 …

Member Avatar for mike_2000_17
0
192
Member Avatar for marina_ch

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 …

Member Avatar for marina_ch
0
1K
Member Avatar for Reverend Jim

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

Member Avatar for vegaseat
0
458
Member Avatar for Sumit_4

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.

Member Avatar for mike_2000_17
0
274
Member Avatar for Deepesh_1

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 …

Member Avatar for mike_2000_17
1
418
Member Avatar for alexandar.valentinov

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 …

Member Avatar for mike_2000_17
1
180
Member Avatar for MasterHacker110

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 …

Member Avatar for MasterHacker110
0
179
Member Avatar for A***

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

Member Avatar for janissantony
0
175
Member Avatar for ujjwale

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

Member Avatar for mike_2000_17
0
152
Member Avatar for RikTelner

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

Member Avatar for RikTelner
0
178
Member Avatar for JwAlstrom

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

Member Avatar for Prtablegm
0
407
Member Avatar for Santanu.Das

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 …

Member Avatar for Warrens80
0
203
Member Avatar for Auroch

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 …

Member Avatar for Auroch
0
2K
Member Avatar for The Mad Hatter

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

Member Avatar for ZZucker
-2
310
Member Avatar for lewashby

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 …

Member Avatar for mike_2000_17
0
4K
Member Avatar for woooee

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

Member Avatar for almostbob
0
271
Member Avatar for happygeek

Well deserved! You're really a shining star in your profession. We need more knowledgeable and down-to-earth reporting like yours.

Member Avatar for Slavi
2
134
Member Avatar for DarkT

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 …

Member Avatar for mike_2000_17
0
340
Member Avatar for Pyler

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 …

Member Avatar for mike_2000_17
0
279
Member Avatar for fidel.mcscort

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 …

Member Avatar for mike_2000_17
0
105
Member Avatar for Jhon_3

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 …

Member Avatar for mike_2000_17
0
96
Member Avatar for ckide

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 …

Member Avatar for Maritimo
0
470
Member Avatar for nitin1

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 …

Member Avatar for nitin1
0
238
Member Avatar for nitin1

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 …

Member Avatar for mike_2000_17
0
180
Member Avatar for saeed.albahri1

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 …

Member Avatar for Maritimo
0
335
Member Avatar for coder43

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 …

Member Avatar for mike_2000_17
0
163
Member Avatar for RikTelner

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

Member Avatar for RikTelner
0
327
Member Avatar for furalise

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 …

Member Avatar for Moschops
0
186
Member Avatar for givemethemac

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

Member Avatar for happygeek
0
357
Member Avatar for happygeek

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 …

Member Avatar for MidiMagic
3
2K
Member Avatar for McLaren

I think the best is offices for 2-4 people. It's private, yet social. That's my 2 cents.

Member Avatar for sneekula
0
276
Member Avatar for Chay_1

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

Member Avatar for NathanOliver
0
495
Member Avatar for awesomelemonade

After several years of efforts, he trained Rantanplan to do it. Step 1: Collect underwear. Step 2: ??????? Step 3: Profit!

Member Avatar for Slavi
1
2K
Member Avatar for Shiksha

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

Member Avatar for Shiksha
-1
238
Member Avatar for jamaica.santos.92

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

Member Avatar for mike_2000_17
0
68
Member Avatar for tyra_1

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 …

Member Avatar for tyra_1
0
206
Member Avatar for muhd.hadziq

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 …

Member Avatar for muhd.hadziq
0
270
Member Avatar for mouaadable

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 …

Member Avatar for RobertHDD
0
3K
Member Avatar for Reverend Jim

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 …

Member Avatar for smartjulie85
1
500
Member Avatar for Del4eff

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

Member Avatar for Del4eff
0
149
Member Avatar for mike_2000_17

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

Member Avatar for mike_2000_17
0
1K
Member Avatar for happygeek

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 …

Member Avatar for Djmann1013
6
957
Member Avatar for Kowsika_1

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.

Member Avatar for Dani
0
146
Member Avatar for Tinnin

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

Member Avatar for Tinnin
0
831

The End.