Process Questions
Ad
Ad
Apple M1X MacBook pro benchmark leak with huge performance boost
apple's new generation M1X processor is getting huge performance uplift with its 12 high-performance core count. We saw some performance leaks from well-known sources and they look promising.
How to Install OctoberCms Using Wizard
You can easily install OctberCMS using wizard-installation method. we will learn in this tutorial how to install OctoberCMS easily using wizard method.
how to Install octoberCms command line
Installing OctoberCms command line tutorial is very easy process. well defined step by step pictorial guide can help you.
Emitting parameterized _Pragma statements?
It's often undesirable but sometimes unavoidable to emit #pragma directives to suppress and restore warnings. some compilers support
Check whether Child Process has terminated in C on Unix without blocking
I would like to check whether / when a child process has terminated in c on unix. it's not supposed to be blocking, rather a short check in a
what is `...` in c macro function?
Hi i've been reading through a c library, and i've encountered macro functions such as this:
How is system call return value passed back to user process?
Assume we have a single core cpu running int filedesc = open("foo.txt", o_rdonly); filedesc
C preprocessor: line continuation: why exactly comment is not allowed after backslash character ('\')?
Valid code: #define m xxx\ yyy not valid code: #define m xxx\/*comment*/ yyy #define m
Parallel exection using OpenMP takes longer than serial execution in C?
The serial version takes less time than the parallel one. /*serial version*/ double start = omp_get_wtime(); for (i = 0; i <
Type dependent macro for printfing hex numbers using token pasting?
I'd like to use the same macro for printing different types: int64_t q64 = 0x1234567890abcdef; int32_t q32 = 0x12345678; int16_t
Are pragma push/pop_macro directive stacks unique to each macro?
Microsoft provides the following
Operator to convert to string
Why does the code snippet 1 works but not code snippet 2 code snippet 1: #define mkstr(x) #x int main(void) {
Best way to get neighboring pixels on image
I'm working on a image filter. on the blur filter i need to get data of the neighbor pixels of one pixel to update it's rgb values. to do so i'm
Ad
Why does OpenProcess() return ERROR_ACCESS_DENIED only for some processes?
Openprocess(process_query_information, true, pid) returns successfully for, for example, an administrator cmd.exe and
c preprocessor for templating - suppress extra artefacts
Command : % cat <<eof | cpp -dverbose=3 #if verbose >= 2 printf("trace message"); #endif eof
Do preprocessors expand macros surrounded by quotation marks?
Do common preprocessors like cpp and fpp expand macros surrounded by a pair of quotation marks? i tried the following code using both cpp
Calculating sum using parallel programming
I want to add 1 to a number(0) for 10 billion times. i tried two approaches - use a single thread (main thread) to do the work.
Gatsby, Environment variables not accessible in browser
I want to use environment variables. i created .env.development file and i put some variables. then i include the dotenv
Using MPI_Scatter and MPI_Gather to implement Master-Worker-Model
I have written a mpi program for an image processing filter. the main goal of this program is that a given filter is applied to an image file
producer / consumer task. Problem with correct writing to shared buffer
I'm working on a project that solves the classic problem of producer / consumer scheduling. linux open suse 42.3 leep, api system v, c
ASP.NET Web Application Build Output - How do I include all deployment files?
When i build my asp.net web application i get a .dll file with the
How can I run an external program from C and parse its output?
I've got a utility that outputs a list of files required by a game. how can i run that utility within a c program and grab its output so i can
Biquad Filter Example Implementation in C
I am developing a low pass biquad filer for an embedded system. searching for examples in c, i came up to this link on stanford university's
CS50 Blur filter gave incorrect outputs with small test cases
I am writing the mean blur filter for the filter task in cs50 (more comfortable version). when i tested it with some my pictures, it seemed to
Ad
Can the Pagemap folder of processes in the Linux kernel be read(64bit per read) a finite number of times?
I'm trying to keep track of the number of writes per physical page in the file "proc/pid/pagemap".but the file is binary, and the size
What is the simplest way to continuously sample from the line-in using C#
I want to continuously sample from my pc's audio line in using c# (then process that data). what is the best way to do the sampling?
Access MPI_User_function from underlying MPI_Op handle
I want to write my own scan function in mpi style which means i have to access the associative operation from mpi_op parameter. i can't really
Defining a variable arguments function in a preprocessor #define
I am trying to define a debug_log function in a preprocessor #define in order for this function to exist only in debug mode. the thing is that i
Sequential function names using preprocessor
I'm writing a simple unit-testing library in c to run some tests on code, and am curious if it is possible to make the process more efficient
Alternative to 'truss -p' instruction
I am looking for a command in unix that returns the status of a process(active, dead, sleeping, waiting for another process, etc.) is
Are digraphs transformed by a compiler and trigraphs transformed by a preprocessor?
I'm trying to understand both trigraphs and digraphs rather than use them. i've read
OpenACC - Complex loop carried dependence of a->,c->,b-> prevents parallelization
I am using openacc to compare the execution time of a parallelized vs non-parallelized matrix multiplication operation on the cpu using pgi
C communicate parent and child to increase and print counter
I am trying to write a program so that the parent and child process can communicate back and forth between each other. the parent process and the
Using mmap with hint address is the address of a global variable and MAP_FIXED
I have 2 or more processes accessing to a shared memory. i want to create a global variable in each process and then mapping the address of this
How can I get a list with all the threads created by my application
I want to get a list with all the threads (except the main, gui thread) from within my application in order to do some action(s) with them. (set
Ad
How can I get a list of child processes for a given service in C#?
I have a service which creates a number of child processes. using c# i need to determine the number of these child processes which are currently
Referencing private .net assemblies in a subfolder
In visual studio 2008 i can add a project reference and set copy local property to true. as result the referenced assembly will be copied to the
How to do unsigned saturating addition in C?
What is the best (cleanest, most efficient) way to write saturating addition in c? the function or macro should add two unsigned inputs
Code Flutter (lines kind of jump and look bad)
So i have this little program (or sketch if you like). my problem is, and how should i word this, that the lines, when they are moving, kind of
resize canvas in p5 without clearing the content but rather mapping it to new size
Visit this link to run the code in p5 web editor
How to wait until all child processes called by fork() complete?
I am forking a number of processes and i want to measure how long it takes to complete the whole task, that is when all processes forked are
How to wait on another process's status in .NET?
I'm working on an integration testing project in .net. the testing framework executable starts a service and then needs to wait for the service to
How to send multiple files to the printer with one Process call
I need to print multiple pdf-files from the hard-drive. i have found this beautiful
Can I call an external script or program when building a SWF file in Flash CS3?
Is there a way to call an external script or program from flash cs3 every time it builds a swf file? i'd like to add subversion information using
Any good building tools for a C++ project, which can replace make?
I'm wondering if there is any nice and neat tool to replace the gnu autotools or make to build a very large c++ project, which are such a
Example code for Resizing an image using DirectX
I know it is possible, and a lot faster than using gdi+. however i haven't found any good example of using directx to resize an image and save it
Ad
Software Phase Locked Loop example code needed
Does anyone know of anywhere i can find actual code examples of software phase locked loops (splls) ? i need an spll that can track a psk
Proper way of cancelling accept and closing a Python processing/multiprocessing Listener connection
(i'm using the pyprocessing module in this example, but
C++ Storing constant varibale names within a vector
My task is to write a preprocessor that replaces the constant variable with its actual value. to do this, i have created a struct and a vector to
Include CSS or Javascript file for specific node in Drupal 6
What is the best method for including a css or javascript file for a specific node in drupal 6. i want to create a page on my site that
Making something both a C identifier and a string?
Say you want to generate a matched list of identifiers and strings enum { name_one, name_two, name_three }; myfunction(name_one,
python multiprocessing error along using cupy
Consider simplified example using multiprocessing inside a class that use cupy for simulation. this part
How can I post a Cocoa "sheet" on another program's window?
Using the apple os x cocoa framework, how can i post a sheet (slide-down modal dialog) on the window of another process?
transforming image using OpenCV dft and idft, looks completely white when saved
I wrote the following code to convert several images. until img_back, the image was converted correctly, but when this image is saved, only the
Python: multiprocessing - terminate other processes after one process finished
I have some programm in which multiple processes try to finish some function. my aim now is to stop all the other processes after one process has
Why my C program can't read data from file using "<" character
I am writing a demo c application in batch mode, which will try to read from a file as input. the command is : metric <mydata
How to wait for node exec response?
How can i use a callback tor a promise correctly to get the result from a node exec in the condole.log()
Ad
How to find the whole path to a library using the C preprocessor?
I'm looking for a simple bash script which, when given the name of a system header, will return its full path from which it would be read in a
What is the HOME method?
A client asked me if i knew anything about the home development method. i, together with wikipedia and acronymfinder, drew a complete blank.
How does the Python subprocess module find executables to run? Can I change the location?
On linux systems, subprocess.run(["some_command"]) appears to scrape /usr/bin for some_command by
Result from audio FFT function makes it near impossible to inspect low/mid frequencies
I am trying to build a graphical audio spectrum analyzer on linux. i run an fft function on each buffer of pcm samples/frames fed to the audio
Forking code creates unexpected results when redirecting output to file
I have the following c code: #include <stdio.h> #include <unistd.h> int main() { int i, pid = 0; for (i = 0; i
Go up a directory to run a python script in parent directory, using Node Js Child Process
I am having issues figuring out how i can go up a directory from my server running to run a python script. i am able to run a python script using
How to run executable file from packaged Electron app
I am building an app with electron in which there are some executables which run just fine when running npm start from terminal using
Convolution function gives segmentation error while getting pixel value of relative image coordinates
I'm trying to write a convolution function in c for my computer vision study. in this function, every pixel in the convolved
How to make parallel processing work in Python?
I am trying to do parallel processing in python. i have a huge dataframe with more than 4m rows. so as a sample given below, i would
howcan i put a list into 2d array with known size 283*283 using python
I want to hide(invisible watermark) a string into image (283*283) using lsb (least significant bit) algorithm. user gives hidden message(string) ,
Python Subprocess readline() hangs; can't use normal options
To start, i'm aware this looks like a duplicate. i've been reading:
Ad
I want to write cmd ouput to file instead of stdout
I can cmd in node.js using child-process and spawn, i want the ouput of this command to be written into file instead of stdout.
How to efficiently traverse Bitmap?
I need to iterate through each pixel of the bitmap image, this is my code, but it's too slow bitmap img=......; int
How to get the std out of the sub process in Python?
I need to get the std out of the subprocess in my python code, so i can further process the output in my python code. i have the following
Approximately classify lines on image as vertical or horizontal
Suppose i have a list of coordinates for lines extracted with cv2.houghlinesp from edge mask obtained from
-shortest is not working while looping audio with amovie in FFMPEG
Here input is two video total 40 second, i am concate that and speed up 4x,then video duration is 10 second, audio input duration is
Prevent reading data multiple times using Dask
What can i do to prevent same file being read more then twice? for the background, i have below detail im trying to read list of
Why is the "Hello world" printed 2 times?
Why dose the program print "hello world" 2 times rather than only 1 time? the console.log is excuted before cluster.fork(). import
Why does tess-two show different result than tesseract for windows (by UB Mannheim) for the same image?
I am using tess-two for creating an ocr for android. i used the same image for conversion, but the result is very different from the tesseract for
How to find correlation between two images using Numpy
This is inspired by this question. i'm trying to find correlation between two
why does seaborn Heatmap shows white rows and columns?
I'm trying to do an exercice on kaggle: exercice
python forward SIGINT to subprocess
Here is a simple python script that spawn a process: import subprocess import os subprocess.run(['ping', '-i', '30',
Ad
How to use multiprocess/multithreading to read csv file and store it in generated new variables?
i have a list of filenames and use it to generate string which will be the new variable to store dataframe. the code below it's not
How to crop multi images use list bounding box position in the file (python)?
I have a dataset of images.jpg and a file csv has values bounding box position is top, left, right, bottom. i use ubuntu os and the python
Reset sketch in p5js
So i'm playing around with p5js and made a ball bounce while at the same time lose momentum after each bounce. i want to be able to make the ball
PySide2 and Matplotlib: How to make MatPlotLib run in a separate Process? ..as it cannot run in a separate Thread
I am not an experienced programmer and i am trying to create a sort of datalogger program in python using qt for python (pyside2) to build the
How do I create a queue system that can be modified in execution time while there are processes launched from this queue
I want to create a queue system that allows me to enqueue some commands to be executed from the command console. they are neural nets training
It does print output but why it is not writing in file?
Import subprocess f = open("sum.txt","a") def execute(cmd): popen = subprocess.popen(cmd, stdout=subprocess.pipe,
child_process in Node js Google App Engine
I have a node express server that works on localhost. it uses child_process to run a c++ standalone executable. the code that
Building process fails at cmake for PyCarl and asked to recompile with -fPIC
I'm using a docker of ubuntu 19.04 docker to install pycarl. i have carl and carl-parser (master14 version). however, the 'python setup.py
Need to run 2 functions at the same time but, but they only run one after another
I have 2 functions def print_out(string): typing_speed = engine.getproperty('rate') #wpm
.NET Intercepted STDOUT from Python is always empty in Unity
I'm trying to use a python program to send a continuous stream of information from one program to another, like
python subprocess.Popen with shell = False,
This command runs: process_1 = subprocess.popen("gzip -dc " + infile + " > " + inter_file,
Ad
Run Python scripts via node.Js child process
I've been working on a very simple node.js server with some routes. i tried to implement one route that will be able to run a python(3.6) script
python multiple processing with multiple arguments with for loop
I am having trouble with the multiple processing model. when passing a single argument with a for loop, my code works: def job(a):
Multithreading a numpy nditerator
For an mcmc implementation, i want to calculate the covariance tensor c in numpy. working single-threaded code the distance
Capturing stdout result of `flutter test integration_test`
For ci, i need to write a program that runs flutter test integration_test and captures the stdout result. in python the code would
How to draw squares between an array of points in p5.js?
I have an array containing 6 sets of random x, y coordinates. i'm able to draw lines connecting the points, like this:
calculate the real distance between two points in an image with python
In connection with a business project, i need to find the real distance between two points in the images received from the mobile phone. due to
Converting a .CR3 file to .JPG using canon_cr3 library in Python
I want to convert a .cr3 file (camera is a canon powershot sx70 hs) to a .jpg file using python. i found a project on github which actually should
Image color changed after resizing in jimp
Image color changed after resizing image using jimp const jimp = require('jimp') async function main() { const
How to use Electron for an image processing application with Python in backend?
I'm developing an application which is about image processing. i used opencv on python and tried to implement a gui with pyqt but using html, css,
Detect pinch action on android with Processing
I am working on an android app that is written in processing 3. it needs to be able to increase a variable when the pinch action "zoom in" is
Array stockwell transform - tuple index out of range
I have constructed a matrix from a table of eeg signals and derived a array from the matrix. the array is of shape(4097*100) but
Ad
How to plot variance of a changing array using matplotlib?
I am trying to plot the variance of a difference array vs the constant. by equation this is what i am trying to plot diff[n] =
AlarmManager firing in emulator but not on physical Oreo device
We are running some alarm services in the background and it's working in oreo emulator, but on a real device it is not working. can anyone tell
Ad
Blog Categories
Ad