I am deploying an app on Ubuntu 10 using Passenger 2.2.15, Rails 2.3.5, Ruby 1.8.7, and Apache 2.2.14. When I open http://localhost/appname it displays the contents of the app's root directory (/var/www/appname). Currently passenger and apache seem to be installed correctly, but this error persists.
/etc/apache2/sites-enabled/appname i...
Hello,
when I try to create a virtualenv that uses python2.5 I get the following error:
File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 1489, in <module>main()
File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 526, in main use_distribute=options.use_distribute)
File "/usr/local/lib/python2.6/dist-packa...
Hi,
I am trying to create a handler for the exit signal in c and my operating system is ubuntu.
I am using sigaction method to register my custom handler method.
int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
Here's my code
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signa...
hi....
how can i use POSIX header files in system programming?
i used <unistd.h> in C. what are other header files i can used?
...
Hello I have a colleague of mine who is a procedural code developer and has same smtp server name sitting in 120 different files, now I have to change them to something else. But doing that one by one would be impossible. I am using "grep" to recursively search for a string in all the files sitting in that directory. But I am not sure if...
I am looking for a free SQLite manager application for Linux with support of auto-completion, similar to RedGate's SQL Prompt.
If it supports more than one type of databases (postgres, mysql) that'd be fantastic.
...
mmap(NULL, n, PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
hi...
i am trying to figure out the meaning of above code...?
...
I have written a program that handles signal for Floating point exception and I am using Ubuntu 10.4.
Here's my source code :
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <setjmp.h>
sigjmp_buf mark;
void GeneralHandler(int signo)
{
switch(signo)
{
case SIGFPE:
printf("\nERROR : Inva...
I'm using the Thor gem, but I have cloned the git repo to a folder and I want the system to use that one instead and not the gem, because I have added a feature in the cloned repo and want to test it.
How do I tell the system (Ubuntu 10.4) to use the cloned repo and not the installed gem.
...
I've written code that should ideally take in data from one document, encrypt it and save it in another document.
But when I try executing the code it does not put the encrypted data in the new file. It just leaves it blank. Someone please spot what's missing in the code. I tried but I couldn't figure it out.
I think there is something...
This a code that would reverse the data of a document and save it in the same document itself.
However I am getting a Segmentation Fault.Please Help,I don't know why it gives a SegFault.
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
int main (int argc,char* argv[...
Dear stackers,
I am currently working on a project and would like to know if you heard of any command-line tools (OS: Ubuntu) that lets your webcam take specific-sized images ? I found some but none of them works.
In my case, I'd need to capture 1600x1200 pictures.
Thanks a lot !
Rolf
...
I have two servers, computer A and computer B, both running Linux. I need to write a program or a shell script which will continuously monitor the contents of my home directory on computer A and if anything changes, copy the changes to my home directory on computer B such that both home directories are always the same. (Any changes made ...
Hi all,
I am having a problem accessing Tomcat from the browser if it was invoked from Eclipse, but it works fine if invoked from command prompt.
I have configured Eclipse to start Tomcat 5.5.23. It starts fine. If I try to connect to it at least to see the admin page using http://localhost:8081/ I get 404 error "The requested resource...
I have written a source code to print random numbers within a specified limit.But it is also returning some negative numbers,is this normal?If not how do I rectify it?
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
int main( int argc, char* argv[])
{
int fd, n;
fd = open("/dev/urandom", ...
Hi,
I am following step by step for installation of RED5 in Ubuntu 9.04.
while i am giving ant command, it hangs at
[ivy:resolve] :: resolving dependencies :: red5#server;working@satya-vbox4red5
[ivy:resolve] confs: [java6]
in verbose mode, i saw that it is failing while searching for dependencies...
verbose output can be found at h...
Hi,
For my personal project, I want to make a I-Pad (Tablet-PC) like device.
For that I want to customize Ubuntu (or any other OS that is easy to customize and free, Please suggest me).
Some example of what I want to customize are:
1) remove unnecessary services and Programs from OS.
2) Change the appearance of the dialog boxes/windows...
HI folks.
I have difficulty in installing these items in Ubuntu.......plz help me as soon as possible.iam experiencing errors such as no module name found......sometimes certain libraries are not found.......plz folks can all of u state the basic libraries required for installing these items and where to find them
...
.htaccess rewrite rule is not working on https
RewriteRule
^/templates/Styles/screen.css$
/css/scaffold/index.php?f=screen.css
i.e. for http://example.com rewrite it's working fine but https://example.com rewrite it's not working
I am using ubuntu and apache2
...
I am trying to implement EINVAL, EPERM, ESRCH in my program.
ERRORS EINVAL An invalid signal
was specified. EPERM The process
does not have permission to send the
signal to any of the target processes.
ESRCH The pid or process group does
not exist.
Here's my source code :
#include <stdio.h>
#include <sys/types.h>
#inc...