Tag Info

Hot answers tagged

22

Lanier has invented a 50 cent word in an attempt to cast a net around a specific set of ideas that describe a computational model for creating computer programs having certain identifiable characteristics. The word means: A mechanism for component interaction that uses pattern recognition or artificial cognition in place of function invocation or ...


7

Since C++ does not have a standard GUI toolkit, you must choose a GUI toolkit first. Speaking about C++ GUI toolkits, probably Qt is the best way to go, since it is multiplatform and of industrial strength. Qt has a nice IDE, QtCreator (a fully-featured C++ IDE), which also has QtDesigner (a GUI layout designer) integrated.


6

A simple algorithm that gives reasonably good results: Add the squared difference of each color component (red, green, blue) between the color you are looking for and the color in your list of colors and choose the color where the sum of those squared differences is minimal. For a more accurate result, see the wikipedia article on color difference and ...


5

There's at least 3 things that you could call "loaders" in Linux. The "ld" part of a compile, that puts together various object (.o) and archive (.a) files into a single executable is one. "ld" also checks shared object (.so) files to see if the dynamic linker can work correctly. The dynamic linker (do man ld.so for details) gets run by the Linux kernel ...


4

Here are some frameworks. "Programs" are for artist, programmers program. Qt. I have used the python binding and it is quite simple and powerful. Not sure how simple it is under C++. Kiwi has only python API, I believe , but is cross-patatform - think the major OS-es plus mobile. gtk is the direct rival of qt. MFC - I learned on this. Wouldn't recommend ...


4

Would RSS be a solution to your problem, or are you looking for something that actually takes an action on the website? If the latter, there is a fantastic Python library called requests. If you're looking to actually open that web page in a browser, a simple shell script could do the job. The script wouldn't need to be any more complicated than checking ...


4

My first question is: How exactly does the program go through the for loops? They are nested, so would it create all of the columns (the j for loop) first? Or does it increment both i and j after the block of code finishes? Neither, really. Nested loops like this do not increment at the same time: the inner loop will run until j violates the condition ...


3

possible duplicate http://stackoverflow.com/questions/2786676/windows-disassembler-looking-for-a-tool. The type of software you need is called a Dissasembler.


3

The loader is part of the kernel and usually called as part of a system call. It's not a named command you type in on the command line. Instead, the shell (command line or GUI) calls it when you do things like press enter after a command or double-click an icon.


3

qt is one that I see used a lot (don't have any experience with it myself. However for beginners generally C++ is hard to learn and you don't want to start by programming GUI's in C++. Choose a language like java, python(or many many others) that have their own built in UI frameworks, for starting in GUI programming you will find these much easier. You could ...


1

Windows uses virtual memory, which means that information that seems to an application to be in memory can actually be swapped out to disk. This includes not only memory the application allocates but also memory for the binary files that make up the program itself. This is done at a very low level so that the transfer of data between memory and disk is ...


1

I think we are at the very beginning of one of the steps it will take to get there and that is gathering lots of data in formats that can be analyzed. The Internet, Google searches, Fitbit (Every step you take, every move you make, I'll be watching you.), FourSquare, a smart phone geo location, Facebook posts and SO question data are all being gathered. ...


1

I guess it depends on the platform. On Windows, that would probably be Visual Studio. The latest edition, Visual Studio 2012, is also available in an "express" edition, which lacks some features but is free. If you are going to program in C++ on Windows, this is the environment you need to get familiar with. See this download page at Microsoft. On other ...


1

Each time through the inner loop, a single board square is drawn (by adding it to the board). The following three lines of code draw the square: GRect square = new GRect(x,y,squareSize,squareSize); square.setFilled((i + j) % 2 != 0); add(square); (x,y) in the first line specify the upper left coordinate of the square to be drawn. The second line ...


1

The double for-loop is essentially the same as this code: int i = 0; while (i <= numRows) { int j = 0; while (j <= numColumns) { double x = j * squareSize; double y = i * squareSize; GRect square = new GRect(x,y,squareSize,squareSize); square.setFilled((i + j) % 2 != 0); add(square); j++; ...


1

From the Wikipedia article on the DWT, the filter pair has to satisfy the requirements of a quadrature mirror filter. From what I remember from school when you had two analog filters cross you wanted the crossing point (frequency) to be at the 3dB rolloff of each, but it might be different for wavelets -- I don't rememba so good. I believe the crossing ...


1

As @falcon noted, the Linux loader is called "ld." In Windows, I don't know how much of the details of program loading and execution are actually made public.


1

If you are really serious to take up programming as career then you need to look into the following areas: Procedural/Functional Programming Object Oriented Programming Data Structures Analysis of Algorithms Design Patterns Software Engineering A degree course in Software Engineering would greatly help you to strengthen your skills and to outline your ...


1

Flamewars on the "basics" of programming are still going on. Best way to learn is from your own mistakes. That means keep coding and fix the mistakes you make. Ask questions when you're in doubt. Look over other people's code. Share your code on a blog or work on some open source project if you want to get on the fast track.


1

The crux of the idea here is that the OS is driving the program loading. There isn't a direct command to load a program in either Linux or Windows, this is all handled by the OS itself. In this process the OS allocates memory, stack/heap space, any registers that are needed, and a program status register - that keeps track of all of this for when processes ...



Only top voted, non community-wiki answers of a minimum length are eligible