I want apache to rewrite my URL before forwarding to tomcat but I cannot get it to load mod_rewrite before mod_jk . As soon as it gets the request, it gets forwarded to tomcat and the URL becomes invalid. I have spent hours searching through forums and have tried everything I could find. I am...
Hi everyone,
For various debugging tasks, I regularly need to log into 3 different servers and look at 2 different log files on each. It would be awesome to have a script that would open gnome-terminal with multiple tabs ssh'ed to different servers and cd each tab to a directory of my choosing...
Hi everyone,
I have a div on a page that I display as a popup ( it's NOT an external popup, just something inside the page that is shown or hidden as a popup ) when a button is clicked. I need to display the same div when a person tries exiting the page. Let's say someone types a new URL and...
Is there a way to tell rsync not to download a file if it already exists in the local file system? Here's the command that I use.
/usr/bin/rsync -Huzr --include=*.txt --exclude=* user@server::MODULE/myfiles/ .
I am using rsync version 2.6.2. I thought that the "u" option makes it so that it...
When I compile my java files in eclipse, it complains saying "package com.sun.corba.se.internal.core does not exist".
This error is obtained from the line "import com.sun.corba.se.internal.core.Request". I am fairly new to java and would like to request you to give me a link where I can...
So I have a file with data in XML format. Can you point me to a resource that shows how to parse the file and iterate through the xml extracting values? I need to write a C program to do this. I am a newbie at XML. Any help would be appreciated.
How do I send a message from a linux machine to another linux machine? I know that write and talk work with users on the same system. I want to send messages from one machine to another. Please help.
P.S. Is there a way to send a message from a windows machine to a linux machine? I doubt there...
int num = 32;
fprintf ( file, "%6d", num ); writes " 32" into the file
fprintf ( file, "%06d", num ); writes "000032" into the file
How can I use similar padding to put 0's before digits of a double?
So if I have
double d = 32.5;
fprintf ( file, "%4.2f", d ); yields " 32.5"
I want it...
Hi all,
I need to position 2 text boxes on an image. I used the div tag to accomplish this but seems like when I make the font of the browser bigger or smaller, the text boxes move around and don't show up on the place I want them to. Can you show me an example of an HTML tag that would make...
I am writing a command line interpreter and I just need to figure out how I would make it possible for the users to use backspace to erase characters in the input buffer.
So if they mistakenly type in "adc" then they could use backspace to make it "ad" and then continue to make it "add". Any...
This is the sample code of what I need to do.
int main ( ... )
{
char array [5] [20];
myfunction ( &array );
}
int myfunction ( char * myarray [] )
{
char * array = myarray;
strcpy ( array[0], "Hello" );
}
is that how you
1. declare a 2 dimensional array, ( char array [5] [20];)
2...
hi all,
I have a public_html directory on my account in a server. There are other users on the server too. public_html being chmod'ed to 777 can be accessed by any other users too. I have some php files in the public_html directory, which are chmod'ed to 777 too to be able to execute them...
hi all,
I have a public_html directory on my account in a server. There are other users on the server too. public_html being chmod'ed to 777 can be accessed by any other users too. I have some php files in the public_html directory, which are chmod'ed to 777 too to be able to execute them...
Hello all,
I wrote a script in Perl that uses sftp to put and get files from different servers. I have set up a public key/private key authentication on my box and so it never prompts for a password when I run the script for sftp'ing to another server. What I want to happen is, if someone...
Hello everyone,
This is my first venture with php and I am trying to simulate a login screen.
This is what I have.
<?
if ( isset($_POST["login"]))
{
setcookie ( "loggedIn", $_POST["username"]);
}
?>
<html>
<body>
<form name="addForm" action="<? echo $_SERVER["PHP_SELF"]; ?>"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.