I have a login page that uses session variables. How can i set an expire time for a session?
eg: after 15 minutes of inactivity destroy the session.
how can i do it?
How can I set a conditional breakpoint to a function's 3rd line in GDB?
I know I could give the file name + line number but this is not working for me.
I have to store the gdb commands as a script to repeat it later and I don't want to change the script every time the source file is changing.
Hi I have some controls on an asp.net modal which I show manually via code behind. Now I am trying to attach a selector on one of the controls inside pageLoad(), problem being is that the modal container is initially set to visible=false.
I tried checking for length but it still throws exception
if ($('#<%= myControl.ClientId %>').length > 0)
{
$('#<%= myControl.ClientID %>').click(function() {
// Do work
});
}
Compiler Error Message: CS0103: The name 'myControl' does not exist in the current context
I have a table row that has the error message in it.
...
Now if someone forgets to enter text or bad text in a textbox, I want this form field to be set to visible.
Can I use a asp.net validator for this or?
I've a PdfPTable created in my Java program,
Is there any way to actually set the width of specific column for the PdfPTable?????
For instance,
First column to be 5% width, second column to be 20% and etc.
Urgent help please if anyone knows the way. Thanks in advance.
Hi,
i have installed sfDoctrineGuardExtraPlugin and when i try to execute an action from sfGuardRegister or sfGuardForgotPassword i get the sfDoctrineGuardUser signin form.
I have the security set to false. I don't have that problem with other modules.
Any idea?
sfDoctrineGuardExtraPlugin 1.3 and sfDoctrineGuardPlugin 4.
Javi
I've putted a Description attribute on my property,but the Description property on the ModelMetada is null anyway.
[Description("sss")]
public int Id { get; set; }
BTW Is I've putted corect?
This is probably really easy for most of you. But I'm in need of a small snippet that looks up the current height of a div (the div has a dynamic height based on the content inside it)
and then set that value in the css class's min-height value.
Basically what this means is that I want this container to have it's min-height to be the exact same value as it's current height. This is probably a quick one :)
I am looking into a way of setting read access on a specific file for a web application (where all files read option is set to be false--unchecked in IIS) deployed with Wix. Is it a possible option at all or I am asking the question in a wrong way?
Thank you.
Is there any way to manually or programmaticaly set the UI Language so that in my tests I can get a different results from GetUserDefaultUILanguage? Or anyone know the settings within Windows where I can change this?
Hi,
I'm running a sample application that has a map component to it.
The app launch find, but I don't see the map loading.
I read sometime ago that it might be caused by keystore mismatch?
How do I set keystore? Been trying to find it from google and eclipse but can't find where I can change that.
Thanks,
Tee
Hi,
I'm using pde to run a processing app , and I got the following error :
"Verify that the java.library.path property is correctly set" .
could anyone of you tells me how to solve this problem ?
thanks in advance .
Hey, I have a python application that opens some plots for me and then asks the user for input.
The problem is, that after opening the plot, the focus isn't on the terminal anymore, so you have to click or tab to it manually.
I would like to set the focus to the terminal window with python - is that possible?
I'm using gnuplot.py, maybe there is an option to open the plot in the background?
Thanks!
Hi, I am trying to set a cookie and also check if it is there, does anybody have any sample code for this? All I found was this, but it would be helpful if I could see an implementation example. http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookieStorage_Class/Reference/Reference.html
I have an input stream from a binary file. I want to create a bitset for the first 5 bits of the stream. Here is the code I have so far:
ifstream is;
is.open ("bin_file.out", ios::binary );
bitset<5> first_five_bits;
is >> first_five_bits; // always is set to default 00000
Hi Guyz,
I am new to GWT, and I need to set the controls positions arbitrary on CTabItem.
I've used the following code, but it seems that it had no positioning effect, it just add the component to (0, 0)
Label userName = new Label(folder, SWT.NONE);
userName.setText("username");
userName.setBounds(10, 200, 200, 50);
item.setControl(userName);
Hi,
In order for the user to control the volume , my android application has a menu consisting of a slider that provides int values from 0 to 10 , when dragged. After I obtain a value , I must set the volume to the corresponding value chosen by the user , and well , this is the part that I don't know to implement and I 'd like to find about it.
As simple as this must be I still can't understand where am I wrong:
class A {
boolean equals(o) { true }
}
def s = [new A(), new A()] as Set
assert s.size() == 1 // Assertion failed: actually gives 2
Which method should I override in order to get uniqueness?
Hi,
I am reading the excel sheet as well as exporting the read excel. I want to set the Fill (backg color) color to header row of exported excel sheet.I am using C# +asp.net.
hi friends,
I want to set auto lock my iphone/ipad/ipod screen programaticaly after some time delay. Can any one tell me how to do the same?
if any one is having any suggestion please let me know.
thanks in advance.
I have a PHP script that I don't want anyone to be able to run through their browser.
It sends emails and is called via curl by my server's cron, yet needs to be in the public www directory. What permissions or owner do I need to set the file to to allow only my server's curl to execute (or do I mean read) the file?
I'm on centos.
Thanks!
I have a domain class that can have a nullable one-to-many field. When using dynamic scaffolding, the view will insert a value from the foreign table (usually the first one in the list) even if i don't want to set this field.
Is it possible to use a subform's 'current' record set as the domain argument to DAvg() (etc.)?
Basically, I have a subform that displays a subset of records from a query. I would like to run DAvg() over this subset. This is how I've gotten around it:
=DAvg([FieldToAvg], [SubformQuery], "ChildField=Forms.MasterForm.MasterField And FieldToAvg > 0")
but what I actually want is something like:
=DAvg([FieldToAvg], [SubformCurrentlyDisplayedData], "FieldToAvg > 0")
Is this possible in Access 2007?
I want a TextView to have a rounded border. This can be done by using a drawable, specifying a shape in the drawable, and then using the drawable as the background of the TextView. android:background="@layout/border" Also shown here
However, my TextView already has a background color (which is gray) and thus I'm unable to use the above method to set a rounded border.
Is there any other method to do this which allows the background color of the TextView to remain gray and also surrounds it with a rounded border?
I set the quotas both ways(though lpadmin and by editing printers.conf) and neither seem to work(i did restart the daemon) but print requests are still granted with no error.
What is wrong?(i am running ubuntu linux 9.04)