|
In my global.asax, can I output the current route/action being fired?
this is the debug something.
Started by mrblah on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could store the output in the Session, and if it exists, write it to the page in the master page, or you could simply log to a logging service like elmah... .
Global.asax doesn't have access to the response stream, so you cant write on a page directly .
|
|
If I have two objects, one being referenced in another. Then in the first object can I write a method which will give me which other objects it is being referenced in?
Started by globetrotter on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I am not sure how to do it out of the box, but maybe the following post might help you:
What is a ruby object? (introducing Memprof.dump)
Perhaps digging around in ObjectSpace could help:
#!/usr/bin/ruby1.8 include ObjectSpace def print_references_to... .
|
|
In other words, can fn() know that it is being used as $var = fn(); rather than as fn(); ?
A use case would be to echo the return value in the latter case but to return it in the former.
Can this be done without passing a parameter to the function to ...
Started by eyelidlessness on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
For example:
function use of SO, but I really want to find ... .
That said, what you can do about, but you can set a buffer, which will capture the output into a variable instead.
Part (function) is completely isolated from its surroundings.
|
Ask your Facebook Friends
|
Since a finalizer being called usually indicates a missing Dispose() call, I would like determine what finalizers are being called.
Started by jyoung on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But profilers/perfromance counters can help in this regard..
Be the right answer.
|
|
Is there any easy way to distinguish between an ASP.NET MVC controller action being hit "directly" due to a client web browser request, and being hit by virtue of a Controller.RedirectToAction call or a RedirectToRoute result?
Started by Rob Levine on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Kindness,
Dan
You may have the option of adding....
Otherwise it would be the URL that corresponds to the action method visited "directly" .
Request.ServerVariables["http_referrer"] would be empty if is the action is hit from a redirect to action, I think .
|
|
I have a view that shows a list of items and when you click on one of them it will take you to the items page. I also store a "Viewed" flag in the database for that item.
Now, when the user clicks back, the item should be styled differently because of...
Started by FireRock on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
With the OutputCacheAttribute and set the cache location to none to prevent that page from being.
|
|
I have a javascript function (function1) that checks some global variables (can the user connect, is the service available, etc) before calling another (legacy) function (function2) that actually pops a window and connects the user to our service. I want...
Started by bmwbzz on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Why not just remove function2, move its entire content into function 1 ?
Then you can just replace_JavaScript_1.5_Reference/Global_Objects/Function/caller you can move function2 inside of function1.
|
|
I want to divide my web application into two parts. One part is free, like a demo for people to use. The other part is not; a extension that is paid for but requires authorization and a license to use.
My idea is to sell the extension without having it...
Started by Anraiki on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Use a professional solution like Zend Guard ..
Run the licensed non-free script only on your server and hook them together using an API over HTTP .
Give the free script away for users to run on their own site .
|
|
I'm archiving a directory. This directory has a file that is being written by another process. When I tar this using Linux tar/Perl Tar module, in the archive the entry for the file is there but the contents are null.
Before tarring the files are...
-...
Started by ram on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
As others have said....
This facility does require that the snapshot patching.
Here's a link to the relevant LVM documentation on how with the system administrator can just remove the device.
Partition, you can use the LVM snapshot feature.
|
|
I am reverse engeneering an app and I need to see what is in the post data without viewing the form source, is a there a decent app/plugin to see what is being posted?
Any Browser on Windows
I'm looking for something other then packet sniffing.
Started by Unkwntech on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I personally have all three on....
<?php print_r($_POST);?>
Also for Firefox, there are plugins named HTTPfox and Tamperdata that allow you to do more with POST data then firebug .
Fiddler for Internet explorer.
Firebug in conjunction with Firefox.
|