system

Wpf Login System

Hi everyone. i am developing a training software in wpf. but i have problems. this application will be setup project. when the user make it work, a login window will open. User should enter his username.there wont be a password. but the problem is next; i dont know how to get userid from database. and compare other usernames to get t...

security question: Changing system password via python

I'm working on a project aimed at system administration for a linux installation. I need to perform some tasks like change the user password... I was planning to use the subprocess module for this. I'm concerned about security so, what are the 'best practices' when doing this via python? is subprocess sufficient, or is there something...

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 has since stopped. Process[] process = Process.GetProcessesByName(processName, serverName); (C# por favor) ...

get unique machine id

hi all I want to get unique unchangeable Machine id Like Processor serial number of the computer for distribute a software with out copying.I tried with processor serial number and hard disk serial number that all are changing after formatting and reinstalling the windows. Any idea how i can get an unchangeable serial number of a compute...

exec() or system() on doxygen command returns me "Exiting"

Itry to run this script public function execDoxygen($doxyFile) { $command = "doxygen $doxyFile"; exec($command, $output); return $output; } and the outputs is "Exiting..." if I run it separetely in a terminal with the same file it works well. If I run exec("doxygen --help") it works correctly. Why does it ...

Determine which process (b)locks a file, programmatically (under Windows >= XP)

How to programmatically determine from a process P, which other process P' has a lock on a file, that prevents P from recreating that file ? I know there are tools to do that, but how do they achieve that ? (Context: a batch program that runs overnight fails because of a locked file. Running an admin tool the next day may be too late t...

What's the best programming language for large SOA system?

I am working on a relatively big system with: low level C++/C codes dealing with multimedia data(video/audio) a lightweight database, preferably MySQL but I am open to other better alternatives RESTful web service as the front end All the requests will be handled by RESTful interface, low level C++/C codes dealing with the real hard...

Why does my jzip process hang when I call it with Perl's system?

I am definitely new to Perl, and please forgive me if this seem like a stupid question to you. I am trying to unzip a bunch of .cab file with jzip in Perl (ActivePerl, jzip, Windows XP): #!/usr/bin/perl use strict; use warnings; use File::Find; use IO::File; use v5.10; my $prefix = 'myfileprefix'; my $dir = '.'; File::Find::find( ...

what are the advantages of working on system side over application side?

i have seen people to more concerned about the type of work they do. they think system side work is better compared to application side. so i wanted to know the pros and cons of both. please i didn't find the proper answer anywhere so i am asking here. ...

Why is Application Binary Interface important for programming

I don't understand why the ABI is important context of developing user-space applications. Is the set of system calls for an operating system considered an ABI? But if so then aren't all the complexities regarding system calls encapsulated within standard libraries? So then is ABI compatibility only relevant for running statically link...

How to redirect the stdout and stderr and preserve the order?

I'm writing a simple code editor for the LC3 assembly language, and I've run into a small problem. LC3 assembler outputs basic information about the status of assembling which I'm trying to display in my program after reading it back from the log file. Originally I attempted to use system() to call the LC3 assembler and redirect the std...

Problem with the system command in MATLAB

I am using the system command in MATLAB as follows (with the current directory being 'scripts'): [status, result] = system('cd ..\\TxtInOut') However, invoking the system command does not seem to work. It returns status = 0 and result = ''. Any suggestions? ...

Do I need to escape characters in this MATLAB string?

I would like to call the following bash command in MATLAB: grep "Up to" ~/test_linux/vision1.1/log | awk '{print $7}' I use system() in MATLAB, but it turns out to have errors: >> [status string]=system('grep "Up to" ~/test_linux/vision1.1/log | awk '{print $7}' '); ??? [status string]=system('grep "Up to" ~/test_linux/vision1.1...

iPhone System Processes by CPU Rate (top/ps)

What is the best way to programmatically access the processes sorted by cpu rate on the iPhone (similar to that seen in the *nix top command)? sysctl()? ...

using variables with the system() function to call dos

I have been trying to write a simple brute force password cracker in C++ to open an old zip file that I locked a very long time ago. I am trying to call pkunzip from the program. The only way I know to do this is using the system() command. As in system("astring");. The problem is that I need to dump a new password into the string ...

turn off screen updating in a dos batch file

I am writing a program in C++ that launches commands from the DOS operating system using the system() command. So far so good I think. But how can I turn off the screen updating in the console window that pops up so I can't see the thousands of messages that are resulting. Or, alternatively, how can I dump those messages in some oth...

Simple Qt Embedded Window Question

How are you meant to initialise the program using Qt embedded? At the moment I'm using QMainWindow but this means including a lot extra when configuring Qt and makes the applications a lot bigger when compiling them statically.What are you meant to use in place of QMainWindow? I don't need anything like maximise buttons - using a small s...

Ruby system('ls') to string?

How could I have the output of say the unix 'ls' (Desktop, Pictures, Music myysong.mp3 etc) be converted to a string?? thx in advance ...

Blackberry - How to get OS version information and number of applications

Please advice the program (eclipse) to obtain operating system, version information and number of application in a blackberry device. ...

Accessing the File System for static content?

HI All, In our project we are using a File System to store the static content that is the xmls, xslts, images, gifs etc. and we are following a three tier architecture. The database layer will only contain the metadata while the file system is separate. So, my questions are as follow: 1) Where should we keep the File System Access logi...