linux

default location of MediaWiki extensions directory

I recently install MediaWiki on Ubuntu 10.04 using all the default settings. I'm looking to install an extension. Where is the extensions directory located by default? Thanks! ...

The route "foobar_by_name" does not exist. (using sfRouting in a task)

I have created a custom task in symfony (1.3.6), running on Ubuntu 10.0.4. I am generating urls in the task. This is a snippet of some of my code: // In the custom task (lib/task/mySomethingSomethingTask.php) protected function execute($arguments = array(), $options = array()) { //create a context $app = sfProjectConfigura...

specifying file descriptor number?

My understanding was that one could not control the file descriptor (integer) assigned by the OS when opening a new file using open(). How then is it possible in a bash shell to assign a specific file descriptor using a command like exec 5>&1 (I suppose I could find out by reading the bash sources...) ...

Can DHCP server give out a lease time greater then one requested by DHCP client?

I have a centOS DHCP server configured to give out a lease of 20 mins. But a client is requesting a lease for 10 mins. Is it possible to configure dhcpd to give out a lease of 20 mins even if client requests for a 10 mins lease. ...

unzip utf8 to ascii

i took some files from linux hosting to my windows via ftp and when i check file encodings utf8 without bom now i need to convert those files back to ascii and send my other linux server i zipped files can i do something like unzip if its text file and ut8 format than convert it to ascii when i am unzipping files , i want to make con...

can a process create extra shell-redirectable file descriptors?

Can a process 'foo' write to file descriptor 3, for example, in such a way that inside a bash shell one can do foo 1>f1 2>f2 3>f3 and if so how would you write it (in C)? ...

"No suitable XML Schema Validator could be found"

Hi, Whilst trying to update through the Android AVD Manager, I receive the message: "No suitable XML Schema Validator could be found in your Java environment" It therefore can't parse the repository.xml and I can't download any updates. How can I get rid of this error? I am guessing it might be caused by GIJ being the default Java im...

Is developing in Mono cross-platform?

In what measure is developing with mono cross-platform? How do I compile for Windows (in Linux), how do I run things in Linux (because there is no .NET JIT compiler)? So what are the particularities of developing with Mono? What are the advantages over developing with Visual Studio (except cross-platform thinghie)? ...

Are there any Java libraries for adjusting IO scheduler priority on linux

I have a Java program running on a linux system, which I would like to give a higher IO Scheduler priority. Is there a library JNI/JNA based that would allow me to do that from within my code? ...

XML editing in Linux

What's a good XML editor in Linux for people new to XML? ...

XML-RPC Python, Server Contact Client

Hi - I am trying to create a client-server application with XML-RPC in Python, in Ubuntu Linux. It is straightforward to have the client side request a particular service from the server side. What I am trying to do is have the client send a file to the server. The server will then process the file; this process may take a few hours. W...

Android SDK web browser

I do some mobile browser testing in the Android web browser through the Android SDK in Linux and I have a couple of questions: Can I run an Android Virtual Device without the entire Android SDK? Can I autostart the web browser when starting an Android Virtual Device/emulator? ...

Linux static linking is dead?

In fact, -static gcc flag on Linux doesn't work now. Let me cite from the GNU libc FAQ: 2.22. Even statically linked programs need some shared libraries which is not acceptable for me. What can I do? {AJ} NSS (for details just type `info libc "Name Service Switch"') won't work properly without shared libraries. NSS al...

bash/sh if statement syntax

In various guides and scripts I come across people tend to use different syntax of if statements. What's the difference and what are best practices? I believe all the following statements, and many more variants, will return true: bar="foo" if [ "foo" = "foo" ] if [[ "foo" == $bar ]] if [ "foo" = "$bar" ] if [[ "foo" = "$bar" ]] if [[ "...

Where can I find C/C++ Linux API's for robotics?

Specifically for sending commands and receiving sensor data. ...

emailrelay "cannot bind the listening port"

I'm setting up my web server on Amazon's EC2. My site used to run locally and used my ISP's SMTP server to send email, which hasn't been a problem before - but now that the emails are originating from outside my ISP won't accept them. Therefore, I'm trying the advice here to use EmailRelay to forward emails, adding authentication, via m...

Nginix directing to a host called "_"

I have nginx all set up for my needs... it's a wildcard directory based hosting setup. My issue is that when a url is given without an extension or trailing slash, nginx redirects it to a host called "_" with the rest of the URL intact. What can I do to make nginx properly redirect the urls without trailing slashes? ...

Launch default image viewer from pygtk program

Hi there! I'm writing a PyGTK GUI application in Ubuntu to browse some images, and I'd like to open an image in the default image viewer application when it is double-clicked (like when it is opened in Nautilus). How can I do it? ...

C++0x "Hello Concurrent World" immediately segfaults on g++/linux?

Browsing through a Currency in C++0x book and thought I would give the sample code a run. It is as basic as it gets. #include <iostream> #include <thread> void hello() { std::cout<<"Hello Concurrent World\n"; } int main(int argc, char *argv[]) { std::thread t(hello); t.join(); } Compiled with: g++ -std=c++0x -g -o pg...

Grails TimeZone issue, application wise and in Gorm entiteis

Okay, I've the strangest problem that I've just started to experience in a grails application working just fine for 2 months. Application is deployed on Linux/Tomcat 6 and MySQL is the DBMS at back end. When I type date on linux prompt, I get following output: $>date Sun Aug 8 03:52:06 PKT 2010 Where as in Grails application new Da...