system

Graduation Project

I require to do a project as a part of my final year of engineering graduation studies.Can you suggest some projects pertaining to distributed systems and artificial intelligence together and which require python,c or c++ for programming? Note:-Please suggest a project that is attainable for a group of 2 students. ...

Navigation toolbar rightside two buttons

Does anyone know how to add two system buttons to the top right side of my navigation toolbar. I know that custom buttons can be added, and i really dont understand why the system buttons can't do this to. And i really need it, i need a add button and an edit button. edit to reorder and delete table rows. add to add a new row. I cant...

Why do boot loaders relocate in memory?

I am writing a boot loader, and I've got most of the details down, but I am not sure why some boot loaders relocate themselves in memory before they begin the bulk of their execution. Can anyone explain this? An example of this behavior is the original v0.01 Linux kernel bootloader which has the following comment in it: boot.s is load...

How to create our own numeric system?

The question is for any modern unmanaged language.C-like languages,delphi,anything. I'd like to create my own cryptography algorithm that ,unlike others,decreases the length of the encrypted string. My first thought was to create my own numberic system similiar to hexadicimal,but with more characters.For example [0..9] + [A..Z].That wo...

how to get system unique id using vc++ code?

I'm new to vc++ language so I want to get system unique id using vc++ language. so please can anybody help me in coding how to get system unique id? ...

symlink-copying a directory hierarchy

What's the simplest way on Linux to "copy" a directory hierarchy so that a new hierarchy of directories are created while all "files" are just symlinks pointing back to the actual files on the source hierarchy? 'cp -s' does not work recursively. Thanks! -Max ...

How to list out all Foreign Keys with "WITH NOCHECK" in SQL Server

Hi Does anyone know a query for listing out all foreign keys in a database with "WITH NOCHECK" description applied to it? (removing them will boost performance and stability). ...

Is it a good way to use system() for database scripts from C?

Hi Gurus, I was searching for connecting to database from C program. But I thought the ODBC connections, logon and all need some libraries. Also I am having a minimal compiler like Tiny C Compiler which is very fast. I do not want to use any ODBC logic etc which is needed to connect and query the database. So I am using a method which is...

Embedded system projects for experienced programmer

I had been working as an embedded systems software engineer for 5 years (more of CAN and core level programming, I2C, SPI) and I took up a graduate program. Currently I work as an application software programmer which is also interesting. But, the fun and the satisfaction that I had with embedded systems projects is missing. I would like...

Best way to run external app only if it exists

I've got a Perl script that as one of its final steps creates a compressed version of a file it has created. Due to some unfortunate setups, we cannot guarantee that a given customer will have a specific compression function. I want to put something like this together: if ($has_jar) { system("jar -c $compressed_file $infile"); } e...

LsaEnumerateLogonSessions error

Hello! I have a Windows service which starts another application using CreateProcess. Thus, the application runs with SYSTEM privileges. This application calls LsaEnumerateLogonSessions, which returns the error code 8 (Not enough storage is available to process this command.). The service and the application are run under Windows 7 x64....

Safe Concurrent Write to a File Shared Between a Perl and a PHP script

A Perl script (which I do not control) appends lines to the end of a text file periodically. I need my PHP script (which will run as a cron job) to read the lines from that file, process them, and then remove them from the file. But, it seems like the only way to remove a line from a file with PHP is to read the file into a variable, re...

iPhone - is it possible to make system call

Hi Devs, is it possible to make a system call like f.e. execute a "ls -la" and use the result in your app. If it is possible would apple approve this usage? Thanks Tom ...

How do I test an exception that is only thrown when the system path is wrong?

I have the following class in C# which creates an object from a propriatery .DLL that requires a license in a reachable directory at the initialization . public CplexServices{ private Cplex _cplex; public Cplex Cplex { get { return _cplex; } } public CplexServices() { try { _cplex = new Cplex(...

Using System Properties in Java

Hi, I have a question on using System Properties in Java. Some classes like Authenticator require that we set the system properties regarding Proxy settings and than verify whether the Proxy was valid or not. My question is should I remove the Set Properties after I am done using it ? There are other parts of programs that might be us...

Implementing the "system" command in Java.

I have need for a "system" function call, the same as those in Python, Perl, PHP, Ruby, &c. It will be a component of a JavaScript standard library called Narwhal, when it's run on the Rhino JavaScript engine, which is in turn run on Java. The trouble is that Java's standard library appears to have abstracted away the ability to spawn ...

system("c:\\sample\\startAll.bat") cannot run because of working directory?

Hi, I have an application and executables. I want my application to run my executables. The executable files are in a folder, lets say in "c:\sample". In this directory there is a batch file that calls my exe's. like: start a1.exe start a2.exe start a3.exe let's name it as startAll.bat and suppose every exe has a data like a1.dat a...

VERILOG : Can we have an array of custom modules ??

Can we have an array of instances for a custom module. eg : we can have -> input [15:0] a; this creates a bus can we do same thing for custom modules -> DFF [15:0] d; where DFF = custom module . Here I intend to create 16 instances of the DFF module.. Thanks for any help in advance.... ...

How to capture system stats on the iPhone?

I'm trying to write an iphone app that would mimic the top system utility available on *nix systems. It seems as if system() and/or popen() should enable me to capture output from system commands executed on the iphone. However, the following code gives no output for either popen or system. Is there some other way of getting this info...

Reason for mutliple syscall in Linux

I was wondering, what is the reason for having _syscall0 to _syscall6 in Linux to handle different number of parameters. Are there any security/performance issues with having just _syscall6 alone and letting calling code pass in null values for unused parameters? ...