Tag: process

52 votes
30 answers
794 views
How can I measure the actual memory usage of an application or process?

How do you measure the memory usage of an application or process in Linux? From the blog article of Understand

avatar
Tana
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
1.6K views
How to kill a process running on particular port in Linux?

I tried to close the tomcat using ./shutdown.sh from tomcat /bin directory. But found that the server was not

avatar
Venice
0 1 0 9
asked 07 September, 2021
62 votes
5 answers
1.3K views
Why does the C preprocessor interpret the word "linux" as the constant "1"?

Why does the C preprocessor in GCC interpret the word linux (small letters) as the constant 1? test.c: #incl

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
55 votes
10 answers
755 views
Representing and solving a maze given an image

What is the best way to represent and solve a maze given an image? Given an JPEG image (as seen above), wha

avatar
Serina
0 1 0 9
asked 07 September, 2021
64 votes
20 answers
2.6K views
Running shell command and capturing the output

I want to write a function that will execute a shell command and return its output as a string, no matter, is

avatar
Rufus
0 1 0 9
asked 07 September, 2021
61 votes
2 answers
1.6K views
How do I use theme preprocessor functions for my own templates?

I have several .tpl.php files for nodes, CCK fields, and Views theming. These template files have a lot of log

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
50 votes
3 answers
1K views
How to implement band-pass Butterworth filter with Scipy.signal.butter

UPDATE: I found a Scipy Recipe based in this question! So, for anyone interested, go straight to: Contents ยป

avatar
Rufus
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
2.7K views
How to smooth a curve in the right way?

Lets assume we have a dataset which might be given approximately by import numpy as np x = np.linspace(0,2*np

avatar
Bryan
0 1 0 9
asked 07 September, 2021
53 votes
14 answers
1.2K views
Xcode process launch failed: Security

I have been developing an app for 1 or 2 weeks now and just yesterday I have updated my iPhone 5S to the iOS 8

avatar
Omar
0 1 0 9
asked 07 September, 2021
51 votes
17 answers
2.3K views
#ifdef replacement in the Swift language

In C/C++/Objective C you can define a macro using compiler preprocessors. Moreover, you can include/exclude so

avatar
Rufus
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
1.5K views
How to execute a program or call a system command?

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from

avatar
Dusty
0 1 0 9
asked 07 September, 2021
56 votes
0 answers
326 views
popen & poll for output

We are using popen and poll with timeout for reading output from a process. I have a case where we with popen

avatar
Trudy
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
886 views
How can I create an executable JAR with dependencies using Maven?

I want to package my project in a single executable JAR for distribution. How can I make a Maven project pack

avatar
Xavier
0 1 0 9
asked 07 September, 2021