The tag has no wiki summary.

learn more… | top users | synonyms (1)

11
votes
2answers
8k views

C# Process Monitor

Is there a way to determine when the last time a specific machine last ran a process? I can use the following to determine if a process is running, but the application cannot grab the process if it ...
56
votes
5answers
43k views

How to get current CPU and RAM usage in Python?

What's your preferred way of getting current system status (current CPU, RAM, free disk space, etc.) in Python? Bonus points for *nix and Windows platforms. There seems to be a few possible ways of ...
19
votes
7answers
23k views

Capturing stdout from a system() command optimally

I'm trying to start an external application through system() - for example, system("ls"). I would like to capture its output as it happens so I can send it to another function for further processing. ...
114
votes
12answers
66k views

Getting output of system() calls in ruby

If I call a command using system() in ruby, how do I get its output? e.g. system("ls")
66
votes
4answers
32k views

Why doesn't System.out.println work? (in Android)

I want to print something in console so I can debug it. But for some reason, nothing prints in my Android application. How do I debug then? public class HelloWebview extends Activity { WebView ...
1
vote
4answers
1k views

Using perl's `system`

I would like to run some command (e.g. command) using perl's system(). Suppose command is run from the shell like this: command --arg1=arg1 --arg2=arg2 -arg3 -arg4 How do I use system() to run ...
69
votes
6answers
48k views

How can I check the system version of Android?

Does anyone know how can I check the system version (e.g. 1.0, 2.2, etc.) programatically?
23
votes
2answers
17k views

Java system properties and environment variables

What's the difference between system properties System.getProperties() and environment variables System.getenv() in a JVM?
20
votes
4answers
44k views

C: Run a System Command and Get Output? [duplicate]

Possible Duplicate: How can I run an external program from C and parse its output? i want to run a command in linux, and get the text returned of what it outputs...but i DO NOT want this ...
11
votes
5answers
8k views

Java System-Wide Keyboard Shortcut

Is there any way to get a system-wide (global) keyboard shortcut to perform an action in a Java application? Any AWT/Swing bindings?
3
votes
5answers
10k views

How can I get the Windows system time with millisecond resolution?

How can I get the Windows system time with millisecond resolution? If the above is not possible, then how can I get the operating system start time? I would like to use this value together with ...
8
votes
3answers
6k views

Can't apply system screen brightness programmatically in Android

I'm using the following to set the system auto brightness mode and level: android.provider.Settings.System.putInt(y.getContentResolver(),Settings.System.SCREEN_BRIGHTNESS_MODE, 0); ...
6
votes
1answer
3k views

Java: System.out.println and System.err.println out of order

My System.out.println() and System.err.println() calls aren't being printed to the console in the order I make them. public static void main(String[] args) { for (int i = 0; i < 5; i++) { ...
8
votes
5answers
7k views

File System TreeView

Im working with file systems and I have a List<> of file objects that have the file path as a property. Basically I need to create a treeview in .NET but im struggling to think of the best way to ...
16
votes
10answers
6k views

Solving a linear equation

I need to programmatically solve a system of linear equations in C, Objective C, or (if needed) C++. Here's an example of the equations: -44.3940 = a * 50.0 + b * 37.0 + tx-45.3049 = a * 43.0 + ...

1 2 3 4 5 14
15 30 50 per page