redirection

redirecting output of 'where' in dbx

I'm trying to get the call stacks leading to a function, func, each time it gets invoked in my executable, and I don't mind if the way to get this is slow or inefficient, so long as it's automated (because 'func' gets hit thousands of times). I have access to dbx, so I thought I could do something like this: (dbx) { when in func { wher...

US and UK based site how to handle

We have 2 sets of prices, $ and £'s. How best can I handle this. Should I have a folder with the US site in so when users click on the US flag they go to mydomain.com/us and then navigate from there. Or is there something simpler I can do? The HTML site passes users over to our client system when ordering so currency conversion etc i...

Get effective executable filename

A .NET application (managed) runs on Windows 7 64 bit. It is actually running on a 64 bit environment. The application inspect running process (for example, calc.exe) which is located in c:\windows\syswow64\calc.exe. So, why the function Process.MainModule.Filename returns c:\windows\system32\calc.exe? Is it possible to get the effe...

Redirection of a GUI console application

Hello, I have a Delphi 7 (not 2007) application (lets call it App1.exe) that the IDE thinks is a GUI application but in the DPR, a compiler directive that makes it in to a console application. Example: {$IFDE MAKE_CONSOLE} {$APPTYPE CONSOLE} {$ENDIF MAKE_CONSOLE} During the build process, MAKE_CONSOLE might be defined. The problem...

HTACCESS Redirects

In my htaccess file, I have the following two rules. I would like to make the second one occur on the condition that the first one doesn't match. Currently, they both get run. Is there any way around the collision? redirect 301 /lorem/ipsum-keyword.html /lorem/dolorem-keyword.html RewriteRule (.*)-keyword.html$ /dir/file.php?param=$1 ...

Redirecting to a diffrent List/Item after editing one in SharePoint 2010

Hi, currently I'm trying to find a solution for following request. In SharePoint I've to lists, which basically contain the same content type, only with a few differences. List A contains items, which need authorization from a special person. If this person sets the status of the item to "approved" as example, the item should be copie...

hide hyperlink text of anchor <a> tag in browser status bar but it should navigate

Hi, I have a referral project. In that there is an agent between the affiliate(my site) and the target site. So all hyperlinks displayed in my site will be redirected to the agents site and then it is redirected to the target site. The hyperlink itself is the link to the agents site. So i am displaying all products. I have given links ...

HTML: Request - Response Redirection

Lets say I have a website www.mySite.com and there are a lot of pages whose links are www.mySite.com\contact.php and www.mySite.com\about.php. What if I want that when someone enters a direct link like www.mySite.com\about.php instead of opening that page it should go to a page myPolicy.php and then myPolicy.php may\may not refer the us...

pipe only stderr through a filter

Is there any way, in bash, to pipe stderr through a filter before unifying it with stdout? That is, I want stdout ----------------\ |-----> terminal/file/whatever stderr -- [ filter ] --/ rather than stdout ----\ |----[ filter ]---> terminal/file/whatever stderr ----/ ...

Appending output to a file at the same time truncating it to N lines

Hello all, I'm trying to find a simple way to append/write to a log, while at the same time keeping it the log trimmed to a reasonable size. I would prefer to not just append files forever, and then have to have a clean up log script. I can't wrap my head around how I would accomplish this gracefully without using some second file as a ...

Redirection in Javascript

I Have the following code i am trying to redirect the page to the same page but with a int on the link but it keeps coming up with page error. var done_update = '&updated=1'; window.location = window.location.href.done_update; Thank you, ...

Handling various types of URL redirects

Generally, when writing HTTP client software, the HTTP protocol provides sufficient information for how to handle redirected URLs. Specifically, if an HTTP request returns a redirect code of 302 or 307, the redirect should be considered temporary and the client should continue to use the original URL. However, a redirect code of 301 in...

Redirecting in C++

#include <iostream> #include <fstream> using namespace std; void foo(){ streambuf *psbuf; ofstream filestr; filestr.open ("test.txt"); psbuf = filestr.rdbuf(); cout.rdbuf(psbuf); } int main () { foo(); cout << "This is written to the file"; return 0; } Does cout write to the given file? If not, is there a way t...

Delay automatic url redirect with jquery?

I need a transition page that will display for 2 seconds before automatically redirecting to the home page. How do I do this? I can't seem to get delay to work for me. ...

Android: Redirect outgoing calls

I'm trying to redirect outgoing calls to a different phone number on an Android device. So, I use a BroadcastReceiver "listening" for the NEW_OUTGOING_CALL intent, on his onReceive() method I use the setResultData() method to change the phone number. Like this: public void onReceive(Context arg0, Intent arg1) { setResultData("3519...

how to force to redirect the message on the screen?

Hi, I am running a C++ program and there are other underling code. When I run it, suppose it is a.exe, there are a lot of information printed on the screen. I can't redirect some information to a .txt file like ./a.ext > temp.txt How can I force it is redirect to the temp.txt? Thanks! ...

php htaccess redirect

hi to all, i have a site in php. now i want to redirect my older site url to new url. whenever user enter my old site url in address bar using browser url must be redirect to my new url. How can i do this using .htaccess file. Thanks in advance. ...

Redirect subdirectory using ASP + Redirect Module

The story is this, I have a large Classic ASP website that has now been re-written in PHP and moved to a new server (Rackspace Cloudsites). I need to redirect all of the old ranking ASP pages to their new PHP counterparts (not always the same name so simple .asp -> .php rewrite will not work). I have followed this article as I was told t...

.htaccess redirect for blackberry not working

I am trying to redirect blackberry users to my mobile site by doing: # redirect for blackberry users RewriteCond %{HTTP_USER_AGENT} ^.BlackBerry.$ RewriteRule ^(.*)$ http://www.domain.com/m/ [R=301] in my .htaccess, but nothing happens when I try to access from the device, I've already deleted cache and cookis and nothing works. I hav...

Can I create or mount a virtual drive

Is this feasible to mount or create a drive using C#. If So , Can we use a redirector with the Virtual Drive? For example , When I will click on the drive , it should be redirected to my code which will in-turn connect to webDav Server and get the list of files and folders. ...