Hi,
Can anyone tell me how to detect when a users session has exipred in asp?
I want to redirect users to a logged out page once the session has expired
Thanks
Sp
Hi,
I want to reference a win32 dll from my Qt application. I've added the dll location in the .pro file at "LIBS+=" . Once that is done, by right, i should be able to include the .h file inside the dll from my application. But i'm unable to do so.
I'm testing with the dll here: http://www.flipcode.com/archives/Creating_And_Using_DLLs.shtml
Any help would be appreciated!
Thanks
I am using encrypted cookies to pass data to my rails app. Once these cookies get set, they are being passed just fine to Chrome, Firefox, Safari (iOS and OSX version), etc.
However, the cookie isn't being passed back on Win7/IE9.
I'm using Ruby 1.9 and Rails 3, and using the cookies.permanent.encrypted method of setting the cookie. E.g:
cookies.permanent.encrypted[:some_data] = object.some_data
Any ideas about what's going on?
An expert in highly optimized code once told me that an important part of his strategy was the availability of extremely high performance timers on the CPU. Does anyone know what those are and how one can access them to test various code optimizations?
While I am interested regardless, I also wanted to ask whether it is possible to access them from something higher than assembly (or with only a little assembly) via visual studio C++?
Is there anything like this in the standard library? I've looked but haven't found it.
It needs to be like a list (preserves order) but also like a set (elements can only appear once).
So if you give it ['a', 'b', 'a'] it should return ['a', 'b']
Thanks!
Is there a way to read a large text file (~60MB) into memory at once (like a compiler flag to increase program memory limit) ? Currently, ofstream's open function throws a segmentation fault while trying to read this file.
ifstream fis;
fis.open("my_large_file.txt"); // Segfaults here
The file just consists of rows of the form
number_1<tabspace>number_2
i.e., two numbers separated by a tabspace.
I have a form in Swing with a lot of textfields receiving data. The idea is when a button is clicked, the app gathers all the data from the textfields at once. Do you know a good practice for this? Or is it necessary to gather the data textfield by textfield?
Hi,
I have a website deeloped in ASP.NET and I want it to be accessed via local URL, for eg: http://localhost/website20
I tried once but the CMS in my website started giving error "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
Please help about the steps I need to follow.
Example (load in IE6): http://jsbin.com/uheco/14
In IE6, if the user clicks on a SELECT and does not click any OPTION but instead clicks somewhere else on the page outside the SELECT, the SELECT still has focus.
I expected the SELECT to lose focus when I clicked once outside of it (such as in IEs 7 & 8).
I'm using Python's subprocess.communicate() to read stdout from a process that runs for about a minute. How can I print out each line of that process's stdout in a streaming fashion, so that I can see the output as it's generated, but still block on the process terminating before continuing? subprocess.communicate() appears to give all the output at once.
Hello everyone,
I was wondering, once a clicked() is emitted by a button is there any way of finding out what button emitted it without overloading the click() function? (I have a bunch of buttons with almost the same function but different text, which is the defining element of each button).
Thanks in advance!
Once again I was in a design review, and encountered the claim that the probability of a particular scenario was "less than the risk of cosmic rays" affecting the program, and it occurred to me that I didn't have the faintest idea what that probability is.
What is the probability of a cosmic ray hitting a computer and affecting the execution of the program?
I am using
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
}
for imagepicker
and using
[picker dismissModalViewControllerAnimated:YES];
in iPad to dismiss the picker.
also i tried using
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker;{
[picker dismissModalViewControllerAnimated:YES];
}
to dismiss the picker once it done the work.
BUt its not dimissing it. when i tap anywhere in the screen, than only it gets dismiss.
What i am doing wrong to dismiss the imagepicker?
Many thnkas
Hello, I am getting an issue wherein I am using FCKEditor, and once I type in something, in the source of FCKEditor, something like below is getting iserted automatically.
<input type="hidden" id="gwProxy" /><!--Session data--><input type="hidden" id="jsProxy" />
<div id="refHTML"> </div>
Some hidden tag is getting inserted, which isnot getting diplayed here in my question.
Can anyone tell me about this.
Thanks in Advance
How can I do this on a grid with several "centers", and therefore, having coincident points that I want to count only once?
What is the most efficient way to do this?
Let's say we have an empty bathtub. We've lost the plug, so once water is added it will drain away at a constant rate of 2 liters pr. minute. We add water to the tub in increments. 60 liters at 10:51, 30 liters at 11:54 and 50 liters at 13:18.
So, the question is: How can I find out how much water is in the bathtub at any given time?
There are many tables in the one webpage from that I want to extract the data from only one table.
I am using Html Agility Pack to parse the html table.There are many tables in one webpage but I want to extract the data from only one table.
So I will first find that table for which I want to extract the data which I can do.Now problem is once I find that table,what I should do to extract the data from only that table ?
If I develop with version 1.2.6 of the App Engine SDK, once I publish to production will my app still be using version 1.2.6 of all of the libraries on the production app engine? Or will it automatically use the latest version of the core app engine libraries?
I'm trying to make a simple animation with Flash CS4 and Action Script 3.0 to make a number of Symbols fly by from right to left constantly. What I want is that once a symbol has reached the end of the screen it is destroyed and another one is placed at the start position.
I intend to give each symbol a random speed and create a random symbol each time one is 'destroyed'. Any clues where I can start?
I need to save all ".xml" file names in a directory to a vector. To make a long story short, I cannot use the dirent API. It seems as if C++ does not have any concept of "directories".
Once I have the filenames in a vector, I can iterate through and "fopen" these files.
Is there an easy way to get these filenames at runtime?
I have 5 worksheets and a textbox on each worksheet. I would like all the textboxes to display the same value, which would be whatever the user enters in the first textbox. So once a value is entered in textbox1 on sheet1, textbox2 on sheet2, etc. will be populated with the same value.
I'm looking for something like changing linkedcell =WorksheetName!textbox1 although I'm pretty sure that is incorrect.
Hi,
I have added 1000 records into DataTable using C#.Net. This data table contains TimeStamp column for specified data stored time. Data stored into 10.00AM to 11.00AM every 10 seconds once. Here i want to fetch only 10.15AM to 10.30AM records using C#.
Thanks
I need a cache some objects with fairly heavy creation times, and I need exactly-once creation semantics. It should be possible to create objects for different CacheKeys concurrently. I think I need something that (under the hood) does something like this:
ConcurrentHashMap<CacheKey, Future<HeavyObject>>
Are there any existing open-source implementations of this that I can re-use ?