2,898 Posted Topics

Member Avatar for Reverend Jim

Personally, I have a [HD WD TV Live](http://wdc.com/en/products/products.aspx?id=330), which is kind of like Roku, but cheaper. It works perfectly for this kind of application. The box connects wirelessly to the router, can see either shared folders (samba) or UPnP media server (which I recommend, and is easy to set-up on …

Member Avatar for Reverend Jim
0
192
Member Avatar for Labdabeta

You have a buffer overflow on your `buf` array. The array can store 4 values, and you address it with `buf[isBuf]` where `isBuf` can be 4. This will write to memory one character passed the end of the `buf` array. When you have the `zeroAddr` present on the function's stack …

Member Avatar for Labdabeta
0
197
Member Avatar for Sifiso21031085

> Whats new in the software development world, last I heard wechat and instargram where the next big things Things like wechat and instagram have very little to do with software development. Saying that wechat and instagram are the next big thing in software development is like saying that tablets …

Member Avatar for Agilemind
0
220
Member Avatar for dennis.ritchie

Hello and Welcome!... btw, you have one heck of a name to be stepping into the world of IT!

Member Avatar for Dani
0
82
Member Avatar for beSmart4

The `strcmp` function returns 0 when the strings are the same, i.e., you should do: if( ( strcmp( ch, "*" ) == 0 ) || ( strcmp( ch, "/" ) == 0 ) || ( strcmp( ch, "%" ) == 0 ) || ( strcmp( ch, "+" ) == 0 …

Member Avatar for Schol-R-LEA
0
169
Member Avatar for stevieup

There are alternatives to google if you want more unbiased results, in particular, you can use [DuckDuckGo](https://duckduckgo.com/). Here is a comparison of results for "php programming", [DDG](https://duckduckgo.com/?q=php+programming) vs [Google](https://www.google.ca/?gfe_rd=ctrl&ei=oe8hU7efMKPE8geK2YD4DQ&gws_rd=cr#q=php+programming). As you can see, you far less ads or general "preferred" websites, and instead, more diverse and relevant results. Google is …

Member Avatar for stevieup
0
332
Member Avatar for Alaa_6

I beg to differ, CentOS is a very well-established distro of Linux. It is one of the main free alternatives to the big names in server distributions of Linux (RHEL and SLES). If you want a stable server-grade Linux distribution for free (no support plan costs), then CentOS is really …

Member Avatar for rubberman
0
5K
Member Avatar for admiri92

> In any case, throw() specifies that it may throw ANY exception. That's wrong. Maybe you forgot the negative in that statement, it should say: "throw() specifies that it may NOT throw ANY exception." Here is the whole story. Exceptions are standardized in the C++ ISO Standard document. Their behavior …

Member Avatar for mike_2000_17
0
291
Member Avatar for Elixir42

Line 73 should be: return g_spLog; not return sp; because sp is null, and when you return it, and immediately assign it to `g_spLog` at line 55, you end up with a null pointer in `g_spLog`. BTW, despite your efforts, you are still subject to the "static initialization order fiasco" …

Member Avatar for Elixir42
0
531
Member Avatar for 131932
Re: root

I don't know that you can find out what the password for root is, unless you have it already and can thus login as root. There would be no point in having a password if you can find out what it is without having the proper credentials. However, one common …

Member Avatar for Assembly Guy
0
155
Member Avatar for johnas.delacruz

Using a BigInt library is one solution. Also, what are those digits? If this is just a very big number, then you might just use a floating-point type instead (`float` or `double`) which don't really have an upper-limit (well, they do, but it's like 1e308), and instead, have a limited-precision …

Member Avatar for David W
0
471
Member Avatar for RikTelner

I think that by the time a 2TB RAM stick would cost only 30$, we will already have switched to [memristor technology](http://www.bbc.com/news/science-environment-18103772) (or one of its [alternatives](http://www.bbc.com/news/technology-16725529)), and the RAM + HDD paradigm will be a thing of the past. We are clearly moving towards a unified "better than both" …

Member Avatar for RikTelner
0
243
Member Avatar for Alex_20

I don't really know Ruby, and only a bit of Python (as much as I need). But I definitely say, go for Python. Python is great and is definitely becoming an landmark language in that space (high-level interpreted languages). I can't give you technical arguments why, all I can do …

Member Avatar for jwenting
0
492
Member Avatar for kal_crazy

It is generally not safe to change the value of a constant. The `const_cast` operator allows you to suspend the protection against doing this *when you know it is safe to do so*. In some cases, `const_cast` can be safely used, but not in this case. The danger with changing …

Member Avatar for mike_2000_17
0
325
Member Avatar for Ancient Dragon

Well, as you probably know, the author (Andrew Koenig) of that book used to be quite active here on Daniweb, see [his profile](http://www.daniweb.com/members/770896/arkoenig). I would suggest you ask him directly. And as far as buy vs steal, you could just get the unofficial ebook, and wire (e.g., PayPal) some money …

Member Avatar for mike_2000_17
0
172
Member Avatar for Labdabeta

> However cout uses ostream instead of istream and therefore its common ancestor with fstreams would be ios. Well, naturally, `cout` uses ostream because cout is an output stream, not an input stream. If you want an input stream, you have to use `cin`. And fstream derives from both istream …

Member Avatar for Labdabeta
1
575
Member Avatar for trantran

Ok, so let me get this straight. Currently, your code ends up doing to following thing for each iteration: 1. Fill in the data into a WIN32_FIND_DATA object (within your input iterator) via the FindNextFile function. 2. Copy-construct a new WIN32_FIND_DATA object as part of "push_back()". And you want to …

Member Avatar for mike_2000_17
0
179
Member Avatar for Sifiso21031085

The way I see it, if we can make online banking systems that we can trust (presumably), then we should be able to make an online voting system that we can trust.

Member Avatar for mike_2000_17
0
595
Member Avatar for happygeek

17 people called Sky TV about SkyDrive x time required to say "Sorry sir/mam, SkyDrive is run by Microsoft, please call them." <= 5 minutes of lost employee time for Sky TV Why this would make it to court == a complete mystery. I wonder if any of these people …

Member Avatar for Ancient Dragon
2
796
Member Avatar for Curious Gorge

No, there is in general no risk of opening up your computer to malware by writing your own software. First of all, most malware is either packaged with specific applications (e.g., tainted freeware, or pre-installed crapware) or it exploits a vulnerability in a specific application or platform (e.g., MS Office, …

Member Avatar for mike_2000_17
0
205
Member Avatar for butterfingerss

What do you mean by "statically compile"? I don't understand what you are referring to. If you are referring to static linking, i.e., not using dynamic libraries (DLL) as run-time dependencies, then I don't think that any GUI library will allow you to do that easily. Qt is probably the …

Member Avatar for butterfingerss
0
264
Member Avatar for veedeoo

> Animals are banned from mating publicly within 1,500 feet of a tavern, school, or place of worship. Lol, this is especially dumb considering that human beings are animals too... "tavern", "school", "place of worship"... that's not even the kinkiest public places to mate! Here are some stupid laws from …

Member Avatar for jwenting
0
200
Member Avatar for oanahmed

Yeah, as Schol-R-LEA said, it's all done in software, and it's mainly just a matter of characters. The reality is, a computer never has to convert numbers into a decimal representation unless it is about to display it on the screen for a human being to read it, and human …

Member Avatar for mike_2000_17
0
298
Member Avatar for oanahmed

When you have a compiled program, i.e., software, then that is just a chunk of memory containing machine codes (or instructions). So, as AD said, the thing that converts software (source) into binary form is the compiler. Once you have a binary executable program, the way that it gets executed …

Member Avatar for mike_2000_17
0
265
Member Avatar for prashantsharmazz

An Apple was sold to a woman who already had everything, and at the highest possible price: the first strike of genius marketing, we ought to call it the original sin. A befitting name for a company, Apple.

Member Avatar for mike_2000_17
0
527
Member Avatar for ManPui

Make sure you select "Console Application" in your project's configurations. The WinMain function that is missing from your code is the "main" function that is expected from a GUI Win32 application. If you select "console" application, it should be looking for the "main()" function, which I presume you have defined …

Member Avatar for mike_2000_17
0
1K
Member Avatar for tony75

> it would be netcat, not netcat.exe, although changing the name wouldn't harm anything, or you could make sure that the Makefile created it as netcat.exe. I don't quite understand that sentence, but there is at least one interpretation of it that is very wrong. Linux executables are not the …

Member Avatar for tony75
0
2K
Member Avatar for Alex_20

Like any other high-level interpreted language, Python is very good for dynamically putting together building blocks of an application. Virtually everything in Python that does anything substantial in terms of computations will be done within a native-code library through Python bindings. Those libraries are typically written in C and C++, …

Member Avatar for Alex_20
0
198
Member Avatar for Wayne_2

I don't think that putting them in separate programs is really what you should do, because that's very weird (and could be challenging a bit). I think that if you want to pursue your idea of the "24 items into 24 blocks of code", then you should create each item …

Member Avatar for mike_2000_17
0
212
Member Avatar for Gribouillis

Did you try to see what you could do with the instructions on [Migrating your KMail/Kontact setup to a new distro](http://userbase.kde.org/Kontact#Migrating_your_setup_to_a_new_distro)? I think that just copying all those config files/folders from the old distro (Mint) to your new system should do the trick, at least, that's what it's intended for. …

Member Avatar for Gribouillis
0
345
Member Avatar for RikTelner

Another good thing to do is to block ports in your router. There are tons of ports that are not useful for anything but exploits (e.g., ports that are used for some old or obscure feature that nobody really uses except that these "features" contain holes that hackers can use …

Member Avatar for RikTelner
0
150
Member Avatar for debasisdas

> If it makes sense, read it more than once and think about it differently each time. If you read it again and again, and it doesn't allow you to think differently about it, then it is clear. If you read it again and again, and it allows you think …

Member Avatar for James_28
8
17K
Member Avatar for 0-<-<

Ahh... we were wondering what happened. Dani noticed that you deleted your account today, she was wondering why. I'm sure she'll be able to revert it. But of course, no one knows why you (or someone accessing your account) managed to delete your account without your consent.

Member Avatar for help distressed
0
314
Member Avatar for RikTelner

As rubberman says, in Linux, drivers are implemented as kernel modules. Most drivers are open-source. Basically, the developement community didn't wait for hardware manufacturers to create Linux drivers for their hardware, because they could very well have waited forever, and instead, they developed open-source drivers. For the most part, these …

Member Avatar for khakilang
0
209
Member Avatar for Clouded One

Start by writing a class to store the information related to one client. Then, write a function to obtain the information from the user and write it into a client record. Then, write a function to print out the information in a client record. And, then you can start working …

Member Avatar for geolotry
0
405
Member Avatar for NuGG

The negative voltages that the PSU provides are an old requirement in the standard supply wirings of the motherboard. However, these negative voltages are no longer used on most reasonably "modern" hardware. Basically, a few of the old hardware components, such as floppy-disk drives and serial / parallel ports, used …

Member Avatar for mike_2000_17
0
178
Member Avatar for NardCake

> How does someone or a group of people create a public folder on dropbox or some sort of similar service and sync the code with their buddies? I did that a few times for non-code stuff (word documents), and it's the worst thing ever. One time, it was really …

Member Avatar for NardCake
0
849
Member Avatar for tolatallest

I think that you will have a bit of problems because of all the algorithms you cited, only "merge-sort" is parallelizable, AFAIK. In any case, parallelizing an algorithm is very tricky business, especially if your aim is to compare the performance. In fact, the overhead coming from synchronization is generally …

Member Avatar for mike_2000_17
0
116
Member Avatar for nawraz

There are tons of distributions of Linux, and in each case, the installation process is a bit different. And you still haven't said if you want to go for a dual-boot or for a virtual-box. With that, it is hard to provide you with a "trusted link" with instructions because …

Member Avatar for wpeckham
-1
341
Member Avatar for sabin_silwal

It's a mathematical theory about the optimality of strategies in a game. A game is generally defined as a set of rules that determine the possible actions that each player can make and the rewards given to each player in a round of play (each player makes a move). John …

Member Avatar for sabin_silwal
0
106
Member Avatar for Amiet_1

> but unfortunately I dont know how can I edit and compile those source code. I'm a bit baffled by the simplicity of your question... Do you know how to program? You shouldn't try to delve into some open-source project's source code if you don't already have enough programming knowledge …

Member Avatar for mike_2000_17
0
272
Member Avatar for sandinva

When your computer does power on, how well does it work? A motherboard does not really have a battery on it, except for a small battery (round) that keeps a few things alive at all times (the BIOS memory and the clock, I think). What supplies the power for the …

Member Avatar for mike_2000_17
0
207
Member Avatar for boris90

> The largest file I've got is a QuizForm.h file which is almost 2.5 MB and it has 81875 lines of code! Absolutely insane! I'm speechless. You've let this get way out of hand. You should never have so much code in one file, let alone a header file. A …

Member Avatar for dreslough
0
2K
Member Avatar for Reverend Jim
Member Avatar for vegaseat
0
295
Member Avatar for RikTelner

First of all, in an unsigned byte, the maximum decimal is 255 (`0xFF`). And second, it's not because the word-size is only 8 bits (1 byte) that you cannot create numbers that are larger than that, it just means that if the numbers are larger than the word-size, you have …

Member Avatar for RikTelner
0
217
Member Avatar for billbouris5

cygwin is a bash environment for Windows. This means that you have to navigate it like you navigate a bash terminal environment (i.e., Linux/Unix). [Here](http://www.ee.surrey.ac.uk/Teaching/Unix/) is some introductory material on that. To access the hard drives like C:, D:, etc.. in cygwin, you have to go to the directories `/cygdrive/c`, …

Member Avatar for Andy_5
0
163
Member Avatar for mell.mattingly

The line 99 won't do what you think it does (whatever that is). This line: std::vector<Car*> print(); actually declares a function called "print" that returns a vector of Car pointers. In other words, the line does not do anything concrete. I believe that what you meant to write was this: …

Member Avatar for rubberman
0
183
Member Avatar for RikTelner

Linux can handle all of this very well (much better than Windows, in most cases). The real question is more about how optimal it will be. The first thing you have to understand is that one of the most important application domains (if not the most important) of Linux is …

Member Avatar for RikTelner
0
272
Member Avatar for wallet123

It is policy not to delete any posts per request from the poster. If your post violates the rules, flag it as such (use that little flag icon next to "edit article"), and we will consider deleting it, but only if it violates [the rules](http://www.daniweb.com/community/rules).

Member Avatar for happygeek
0
164
Member Avatar for somyms

I think the most interesting ongoing development in this area is the [IBM neurosynaptic chip design](https://www.research.ibm.com/cognitive-computing/neurosynaptic-chips.shtml). These could be the next big [DARPA-backed game-changer](http://www.artificialbrains.com/darpa-synapse-program). > When you figure them out, apply for that Nobel Prize in Medicine... Well... there are really two parts to this: the logic and the bio-chemistry. …

Member Avatar for somyms
0
131

The End.