redirection

Rewrite a URL that's already been redirected?

Hi guys, I'm running an Apache2 web server with a dynamic IP address. I bought exampledomain.net, and I use no-ip.com's domain-update service to redirect any visitors to my current ip address (endnote #1). For example, someone visits exampledomain.net and they get redirected to 73.181.57.34. It works like a charm. However, it isn't all ...

redirect stdout and stderr to a single file with prefixes

I am writing a bash script and need to redirect the stdout and stderr output of a command i run to a single file, prefixing each line with stderr or stdout, accordingly. is there a simple way to do this? ...

Rendering GDI components to a buffer or d3d texture

Hi, I'm trying to redirect the output of a GDI application to a buffer, preferably a d3d texture but I'll settle for a system memory buffer that I can then copy to a d3d texture. Specifically, I'm trying to get Google Chrome to render into a d3d buffer to be displayed in a d3d application. Are there any foolproof ways to do this or am...

[Python] Detect destination of shortened, or "tiny" url

I have just scraped a bunch of Google Buzz data, and I want to know which Buzz posts reference the same news articles. The problem is that many of the links in these posts have been modified by URL shorteners, so it could be the case that many distinct shortened URLs actually all point to the same news article. Given that I have millio...

Printer Redirection from 2003 Terminal Server to 2008 Terminal Server

Our environment is a terminal server cluster (Win2003 servers) that everyone connects to do do their work. I have set up a new Win2008 R2 machine with the intention of using it to publish our main application to the TS farm. The idea was to keep this server dedicated to one application to avoid driver/dll conflicts with other software....

Rogue black-box java application not responding to standard input redirect

I have an external java application (blackbox), which requires authentication. I need to run this application in a batch setting, but it seems to be reading from standard input in some nonstandard way. That is, if I set the calling of the program to redirect STDIN to a file (... <password.txt) or pipe data to it (echo mypasword | ...), i...

How to handle redirections with codeigniter?

Hi, im having problems starting a codeigniter project, the problem is that when i do something in a controller and then i want a page to display the result, an example: i have a form to add a item to the database, i get all the data in the controller and save it to database and then i want (if all went well) to redirect to the main page ...

Redirection from a Telerik Rad Window

In an asp.net web application, I have a modal popup built with a Telerik Rad Window. In that popup there is a button which must do some action in its "code-behind" and then redirect the application to another page. For the redirection I use the javascript command 'top.document.location.href = myPage' (sent to the browser from the code-...

redirect http to https for some page in site in APACHE

Hi I want to one of my site's page will use only HTTPS. I have given manually link to all sites to https. But I want that if user manually types that page URL with http then it should be redirected to https page. So if user types: http://example.com/application.php then it should be redirected to https://example.com/application....

READING stderr from within Awk

I want to keep SSH debug info separate (and logged) from other input. However, if I simply redirect stderr to a log file, I risk combining output from SSH and output from the remote process on the host machine (that might send something to stderr): $ ssh -v somemachine 2> file.log So, I want to filter out only those lines that match "...

PHP Redirect location with htaccess

In one of the page I have is where administrators are allowed, however, I use if the session isn't set, the header will redirect them to index.php and that method works. If I replace index.php with home which is for the htaccess which changes it to index.php but it gives an error in the browser This works: if(!isset($_SESSION['MEMBER'...

Routing redirection decision

I have really no idea why I'm asking this as this a really completely irrelevant question for which I should have figured out an answer within milliseconds, yet I'm doing it. So in my project I have a Router class which splits up the request and selects the right page to be loaded. Fine so far. Now I have a page displayed when the user...

asp.net mvc 2 Change redirection of unauthorized actions

Solution is called Portal which holds Areas/CMS/Login folder inside it. Login controller in CMS/Controllers is almost the same as AccountController in Portal solution. I customized Login and it works all fine except one thing: When I use [Authorize] filter and If user is not logged in than he is redirected to http://localhost:1177/Accoun...

how to redirect stdin to java Runtime.exec ?

I want to execute some sql scripts using Java's Runtime.exec method. I intend to invoke mysql.exe / mysql.sh and redirect the script file to this process. From the command prompt I can run the command <mysqInstallDir\/bin\mysql.exe -u <userName> -p <password> < scripts\create_tables.sql I can invoke mysql.exe using Runtime.exec but ...

Can an URL shortener pass parameters?

Hi, I use bit.ly to shorten my urls. My problem - paramters are not passed. Let me explain I use http://bit.ly/MYiPhoneApps which redirects (let's say) to http://iphone.pp-p.net/default.aspx Now when I try http://bit.ly/MYiPhoneApps?param=xx this param is not added to the resulting url. I know I could create an extra "short url" includi...

meta refresh for redirection not working in BlackBerry

Hi.. I asked this question here but don't get reply so far. I hope posting it too here is ok. For page redirection, in a mobile site development, I am using <meta http-equiv="refresh" content="0;URL=/pagetwo.jsp"/> because it is required to work when Javascript is off. However, I find it working only in BlackBerry (BB) simulator, n...

Apache http rewrite rules for multiple tomcat instances

Hi, I have an environment where in there are two tomcat instances running the same application. What I would need is an apache load balancing the url requests to these tomcat instances using the mod_rewrite rules. I know that we can do this with mod_jk already but have observed that the mod_jk s an overhead in terms of performance so f...

Redirection of xml file for iphone app

Hey guys, I have a xml file on my server like the one below : www.myWebSite.com/myXmlFile.xml which is used by my iphone application. In case the address of my xml file changes to www.myOtherWebsite.com/myXmlFile.xml How can I make my app to work anyway ? What kind of PHP server-side code do I need to write ? Is NSURLConnection...

Redirect output from sed 's/c/d/' myFile to myFile

I am using sed in a script to do a replace and I want to have the replaced file overwrite the file. Normally I think that you would use this: % sed -i 's/cat/dog/' manipulate sed: illegal option -- i However as you can see my sed does not have that command. I tried this: % sed 's/cat/dog/' manipulate > manipulate But this just ...

How to Redirect ot my asp.net intranet website from current JSP(java) Site

Hi, I wants to redirect to my asp.net intranet website from current JSP (java) site by putting a url in my current in java site hosted under tomcat Any suggestion really appreciated. ...