system

executing service (openoffice headless) in chroot is slow

I created an ubuntu chroot environment (using debootstrap) and started openoffice as a service to convert files using unoconv. It works but it spends about 20s to do conversions which are below 1s outside chroot jail. Stracing it I can see that this extra time is spent in some socket operations whose timeout expires, the same operations ...

multiple FileSystemWatchers to monitor files on local system?

We're writing a text editor like tool for our internal accounting package system that has actions that can be done by our own Xml language specs. These macro commands are specified in Xml files and we need the ability to monitor if files openned have bean modified externally. The only problem is that there maybe 20-30 files with differe...

iPhone. How to intercept system dialogs?

My app offers the user the opportunity to put an event in his native calendar. For that, I refer to an online webcal:// URL. Since the underlying .ics file is quite big (containing quite a few events), it sometimes (also depending on the network performance)takes a while before the "Do you want to subscribe"-dialog sequence kicks in. ...

Is it possible to unpage all memory in Windows?

I have plenty of RAM, however, after starting and finishing a large number of processes, it seems that most of the applications' virtual memory has been paged to disk, and switching to any of the older processes requires a very long time to load the memory back into RAM. Is there a way, either via Windows API or via kernel call, to get ...

Some Simple Questions for knowledge?

Before Some days my friend ask me some simple questions, but I have no answer. Please tell me about these questions. How many computer programming languages are used all in the world ? I want to create a language like 'java or c#'. What is the procedure for creating a language and how it will create? Which language is used for manipula...

How can we update the system wallpaper in an Android 1.6 service after changing it with setWallpaper()?

We are doing a simple service that changes the wallpaper when the phone (an SE xperia x10 mini) is tilted. So basically the code "almost" works - the problem is that the system does not appear to know that the system wallpaper have been changed or does not do anything about it. Starting and closing another app manually appears to enforce...

Looking for a free CMS which allows content injection

Hi all, I was wondering if anyone could tell me of a free CMS that will allow me to change the basic content (text, image etc etc) of a website, without forcing it's own templates or designs. This is the scenario; I have already designed my website, already implemented it, and I just need a way for the actual User to edit the contents ...

HostOnly and GuestOnly PMC bits supported on AMD Family 0x10h CPUs?

My company develops a hypervisor, and this question concerns use of AMD's SVM (Secure-Virtual-Machine) API. I'd like to track exactly how many instructions have executed in my guest operating system in a given period. AMD has kindly provided so-called "HO" and "GO" or "HostOnly" and "GuestOnly" bits in the PerfEvtSel MSRs (0xc0010000.....

How to choose database management system?

Basic requirements Fault tolerant (ex. has to work even when an entire data center goes down) Maximum number of records are about 1-5 billion Has to work properly and comparatively fast under high load Compatible with JavaEE Prefer relative DB but in general it doesn't matter Free of charge Do you have any ideas? ...

online lobby system - games list

Hi! Been reading a bit about the subject, and out of curiosity, online games which maintain a "lobby" system that lists games; How do they keep each client synchronized with the current games list state? I'm talking in a "client asks for the games list update" terms and not in event driven terms (game's state changes and immediately br...

Linux system() command

I am running system("cmd") for n number of times in my cgi script This is read by Ajax on the client side. Out of n number of times there are some cases when the cmd couldn't be executed as file is not available. I want my system() call to work everytime and output something. What is happening now is that, it just prints the last value. ...

Getting input in system() function (Mac)

#include <iostream> using namespace std; int main() { short int enterVal; cout << "enter a number to say: " << endl; cin >> enterVal; system("say "%d"") << enterVal; return 0; } Is what I am currently trying. I want the user to enter a number and the system() function says it basically. The code above has an erro...

How do I get the CPU speed and total physical ram in C#?

I need a simple way of checking how much ram and fast the CPU of the host PC is. I tried WMI however the code I'm using private long getCPU() { ManagementClass mObject = new ManagementClass("Win32_Processor"); mObject.Get(); return (long)mObject.Properties["MaxClockSpeed"].Value; } Throws a null reference exception. F...

Where did System.Design go?

I am making a C# project in which I am using ScintillaNet, and it says: The referenced assembly "ScintillaNet" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client...

how works applications which blocks web sites?

I know only one low-level way of blocking websites - hosts file. However, it is obvious that main stream programs has some other way of achieving this. I have an idea for new model of this kind of program, but without possibility of blocking sites it is useless :( Blocking is one problem, another is filtering and replacing content in ...

Can NotifyIcon.ShowBalloonTip in C# be customized?

Purely out of GUI vanity, I would like to make my task bar tool tip less...well, less "I wear a suit and work at Microsoft"-y. I can't seem to find a setting to do this, but I know that this particular function is relatively new so if anyone knows of a way to change the balloon look and feel I would very much appreciate a link or suggest...

Handover document for complete systems

Hi, I need to create a handover document for a fairly large system consisting of all the stuff you'd expect from a telecom deployment: many servers, database clusters which copy some data between them in specific ways, tons of log files, both off-the-shelf and locally developed software, scripts, network configurations, local know-how, e...

Issuing native system commands in Scala

I want to issue a native system command from a Scala program, and perhaps trap the output. ("ls" comes to mind. There may be other ways to get directory information without issuing the command, but that's beside the point of my question.) It would correspond to os.system(...) in Python. I've looked in "Programming in Scala". I've looked...

Attempt to open browser in C++

Hey there, I am attempting to open Firefox using C++ on Linux (Ubuntu). However, I get an segmentation fault. What am I doing wrong, and what should I do? std::cout << system("/usr/bin/firefox") << std::endl; I hope to hear from you. Kind regards, Machiel ...

how do I specify a system font that handles wide characters on the iphone?

This is sort of a generic question due to my lack of experience with fonts, so a little patience and/or pointing in the right direction to get more info would be appreciated. I have an iphone app and am noticing that when I print some text on my labels, I end up with garbage when the string contains non-ascii, like Korean for example. ...