The tag has no wiki summary.

learn more… | top users | synonyms

44
votes
5answers
25k views

Network usage top/htop on Linux [closed]

Is there a htop/top on Linux where I get to sort processes by network usage?
41
votes
5answers
6k views

How many and which are the uses of “const” in C++?

As a novice C++ programmer there are some constructs that look still very obscure to me, one of these is const. You can use it in so many places and with so many different effects that is nearly ...
38
votes
2answers
22k views

using __init__.py

I am not getting usage scenarios or design goals of python __init__.py in my projects. Assume that I have 'model' directory (refers as a package) which I have kept the following files. 1. ...
18
votes
7answers
4k views

Is Objective-C only used for development on Mac OS/iPhone?

I don't know Objective-C but to me it appears a nice language. But the only context I know it from is everything Apple. But Objective-C is even in the gnu compiler collection. Is there something ...
16
votes
8answers
24k views

How to get current CPU and RAM usage in C++?

is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call?
16
votes
6answers
4k views

What is a practical use for PHP's sleep()?

I just had a look at the docs on sleep(). Where would you use this function? Is it there to give the CPU a break in an expensive function? Any common pitfalls? Cheers.
15
votes
7answers
3k views

Where is Ada used (apart from safety-critical software)?

When one thinks of Ada, one usually thinks of avionics. What I'm interested in are some other applications of Ada? Where is it used? Are there any shipped applications written in Ada? For example, ...
14
votes
5answers
5k views

python optparse, how to include additional info in usage output?

Using python's optparse module I would like to add extra example lines below the regular usage output. My current help_print() output looks like this: usage: check_dell.py [options] options: -h, ...
13
votes
5answers
735 views

Should the command line “usage” be printed on stdout or stderr?

When printing the "usage" of an application, should it be done on stdout or on stderr? Depending on the application I've seen several cases, but there doesn't seem to be one rule. Maybe I'm mistaken ...
12
votes
5answers
3k views

How to find out the % CPU usage for Node.js process?

is there a way to find out the % cpu usage for a node.js process with the code? so that when the node.js server is running and detect the CPU is over certain%, then it will put an alert or console ...
12
votes
6answers
2k views

When should I use a Domain Specific Language?

I would like some practical guidance on when I should use a Domain Specific Language. I have found resources about advantages and disadvantages, but what kind of project would warrant its use? It ...
11
votes
1answer
4k views

Why is Android 4.0 / Ice Cream Sandwich allocating so much heap memory?

I noticed that on my Galaxy Nexus that android.content.res.Resources is allocating about 11MB. I discovered this as I was in the process of profiling things using DDMS and the "Dump HPROF file" ...
10
votes
6answers
4k views

What really is the purpose of “base” keyword in c#?

Thus for used base class for some commom reusable methods in every page of my application... public class BaseClass:System.Web.UI.Page { public string GetRandomPasswordUsingGUID(int length) { ...
9
votes
5answers
6k views

How can you tell if a PL/SQL Package, Procedure, or Function is being used?

How can you tell if a PL/SQL Package, Procedure, or Function is being used? Is there an Oracle table or view that contains statistics on PL/SQL Package, Procedure, or Function usage?
8
votes
13answers
2k views

C++ reference type recommended usage

I am programming in C++ more then 5 years, and have never met any place where reference of the variable is recommended to use except as a function argument (if you don't want to copy what you pass as ...

1 2 3 4 5 22
15 30 50 per page