system

Linux web front-end best practices

I want to build a web based front-end to manage/administer my Linux box. E.g. I want to be able to add users, manage the file system and all those sorts of things. Think of it as a cPanel clone but more for system admin rather that web admin. I was thinking about creating a service that runs on my box and that performs all the system le...

Java Manifest.mf classpath issues

Hi all - I've been trying to run a jar file - let's call it test.jar - that uses the Sybase jconn3.jar on a Unix system. I have created a MANIFEST.MF file that has the following: Class-Path: $SYBASE/jConnect-6_0/classes/jconn3.jar commons-net-1.3.0.jar This gives a ClassNotFoundError. $SYBASE is the system variable that points to /o...

How do I read system information in C++?

I'm trying to get information like OS version, hard disk space, disk space available, and installed RAM on a Linux system in C++. I know I can use system() to run different Linux commands and capture their output (which is what I'm currently doing) but I was wondering if there's a better way? Is there something in the C++ standard libr...

How do you show a list of tables in another database?

I can use select * from sys.tables in mssql to show a list of all tables in the current database. Is there anyways I can use similar syntax to show list of tables in another database? Say I am using A with use A statement, can I show tables in database B? ...

How do I open a file using its default application from Perl on Windows?

I have a directory of files that I would like to scan on a regular basis and execute with the default application they are associated with. They are not executable so system("file.torrent"); does not work. How are you able to run files with there associated applications in Perl? ...

How can I detect the operating system in C/C++?

I would like to detect whether the OS I'm compiling on is Windows. Is there a simple macro I can check to verify that? ...

System Views text in SQL Server 2005

Hello Friends I am looking for viewing the text of the system views and procedures in SQL Server 2005 using the object explorer or using sp_helptext. actually i am coming from the SQL Server 2000 background, where we have the feature of retreiving the code of the view and the stored procedure using SQL Server 2000 Enterprise manager di...

Why am I seeing 'connection reset by peer' error?

I am testing cogen on a Mac OS X 10.5 box using python 2.6.1. I have a simple echo server and client-pumper that creates 10,000 client connections as a test. 1000, 5000, etc. all work splendidly. However at around 10,000 connections, the server starts dropping random clients - the clients see 'connection reset by peer'. Is there some...

How to get process info programmatically in C/C++ from a Solaris system?

Is there a C/C++ library, and documentation about how to collect system and process information on Solaris? Although I could parse command-line tools, I'd rather use a library that makes the task easier to do. Thanks Edit: It has been suggested to use the /proc virtual directory to collect information, however its not much better than...

How to tell if system state is idle asleep etc in vb6

I'm attempting to make my own instant messenger and want the user to go into idle/away mode if the computer hasn't been used in so long. Does anyone have a great idea on how to do this? ...

Seeing the windows of a process running as System account or as a service

Suppose you have a process which run as as service as the System Account, is it possible to view the content of the windows created by the processes created by the service. Suppose for example, that you have a service running as a kind of wrapper which starts Excel. ...

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? ...

How do I combine .EXE commands in Perl?

Hi I have a set of .EXE commands. How do I get all those commands run in Perl as a single file? Whats the process to call the .EXE files in Perl? ...

Is there a good tool for documenting/monitoring System Tests?

Hi everyone, I'm looking for a tool to design, document, and monitor System Tests for a product. The basics of what I need are: 1) A tool that can represent some kind of Inheritance between tests (i.e., one test which sets up another or somesuch). 2) A tool that will allow me to monitor specific runs of the tests seperately, per versi...

How to get the system settings that I can find in the Appearance dialog?

Hello, I need to get some system settings for example, font size and color for a standard dialog box? (I use C#) Thanks ...

How to research issue with "frozen" windows system

This is not a newbie question: My desktop computer that is running Windows Vista tends to freeze on occasions. Freezes last around 5-20 seconds after then, the systems goes back to normal like nothing happened. This happens fairly often (I can safely expect this to happen within 30 minutes). During the freeze, I can move the mouse curso...

how to create a performance management system that adjust available services based on current load?

how to create a performance management system that adjust available services based on current load? any idea lets say I have too many people accessing one page of my website ? how can I build a system which can disable some services for a while (automatically) to save the server from being dawn. because some services parts of the webs...

System Use Cases

I am working on a system that automates scheduled monthly payments for customer bills. When I tried to model use cases, I realized that there are use cases that relates to the customer like: - Login - Customer Registration - Update Profile - Search Transactions. - etc. But there many activities which will be handled by the system autom...

Development Desktop Specifications

I was looking into buying a new desktop, and was wondering what I should be most concerned with when looking at a prospective system. I have a personal leaning toward Dell, as I have had consistently good service from them, but am open to other systems. I know that you need "lots of RAM" for example, but how do you define that? What con...

[Java] How to open user system preffered editor for given file?

Hi, I'm trying to figure out how to open system preferred editor for given file. Say, we have a file manager, written in Java. User goes to folder and see list of files. And, for example, there are file "Icon.jpg". User double clicks on the filename and file opens in system's preferred editor (i.e. Gimp). The main issue is - how to do ...