How to set the expiry time of an image
how to set the expiry time of an image from within the servlet or jsp
I am sending an image with the page, so the set the page expiry in the browser cache we can use META tags of html or response.setDateHeader to set the Expires attribute, this setting the expiry time of the page but is not setting the expiry time of the image which is going with the page
Similar Messages
-
How to set the expiration time for a namedcache programmatically?
I have a named cache with near cache configuration and no expiration specified in the cache-config. The backing map which is a distributed scheme has a size limited eviction policy but no expiration. I have an algorithm to determine the expiry delay of this named cache at run time. How can I set this delay programmatically on the named cache?
Thanks
SairamHi Sairam,
You would need to get the backing map for the cache and then set the expiry on the backing map; assuming that the backing map supports expiry.
For example:
NamedCache cache = CacheFactory.getCache("test");
CacheService service = cache.getCacheService();
DefaultConfigurableCacheFactory.Manager bmm = (DefaultConfigurableCacheFactory.Manager) service.getBackingMapManager();
Map bm = bmm.getBackingMap("test");
if (bm instanceof ConfigurableCacheMap)
System.out.println("Setting expiry delay");
((ConfigurableCacheMap) bm).setExpiryDelay(100000);
-John -
Does anyone know how to set the starting time for an audio book?
I am trying to restart a burn in iTunes that failed for an audiobook. I need to set the start time so it will not have to reburn the disks that were already completed. I cannot find out how to do that in version 11 if the book consists of more than one file. Anyone have an idea how to do this? Apple wants me to pay $20 for something that should be in the help menu.
UCCX 5.0(2)SR02 is the version
I attached a screenshot of what I am trying to use but I am not sure what to put as the value? I tried using "now" and "null" but no success. -
How to set the interval time in the JFormattedTextField? Pls Contribute..
Hi Frienz,
Hi have a following code in which i want set the interval time for the TextField by 15 min
So how it is possible please tell me out.
DateFormatter frmtr = new DateFormatter();
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
frmtr.setFormat(sdf);
frmtr.setAllowsInvalid(false);
DefaultFormatterFactory factory = new DefaultFormatterFactory(frmtr, frmtr, frmtr);
fmtToTime.setFormatterFactory(factory);AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.
-
I have a Canon Reble XTI, and would like to know how to set the self timer
I have a Canon Reble XTI, and would like to know how to set the self timer
If you don't have a copy of your manual, you'll want to download a copy. You can get it from this page: http://www.usa.canon.com/cusa/support/consumer/eos_slr_camera_systems/eos_digital_slr_cameras/digita...
The instructions are on page 49 -- but really you should ready through the manual. You'll learn a lot of capabilites of the camera that are worth knowing that you'd likely miss if you don't read it.
There is a button on the back of your camera near the right edge of the LCD screen and it has an icon of a clock. If you press that button, you can use the left/right arrows to enable the self-timer.
It's a 10-second self-timer but it also puts the camera in a mode which allows it to be triggered via Canon's IR remote.
the current remote (which still works with your camera) is the Canon RC-6... it's not expensive -- just one button and it triggers the camera via IR.
Tim Campbell
5D II, 5D III, 60Da -
How to set the exposure time and the gain of a connected camera with IMAQ USB
A camera was connected to my computer with USB port and we can acquire the image through IMAQ USB. Now we have to set separately the exposure time and the gain with the camera's driver software provided by the manufacturer. My question is: how to set directly the exposure time and the gain of this camera in Labview?
Hi Frank
Welcome to the forum. Have fun
FranklinT wrote:
My question is: how to set directly the exposure time and the gain of this camera in Labview?
I think its not possible for USB Cameras.
Previous threads for your ref
http://forums.ni.com/t5/Machine-Vision/How-to-control-property-nodes-for-USB-camera/td-p/970306
http://forums.ni.com/t5/Machine-Vision/imaq-USB-property-page/td-p/926034
Sasi.
Certified LabVIEW Associate Developer
If you can DREAM it, You can DO it - Walt Disney -
How to set the system time in the program
Hi All,
How do we update the system time inside java programme.AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.
-
How to set the correct time scale of VI ?
I created a VI to display waveforms on the waveform graph. The problem is the time scale of the VI is always the year 1904.I tried to select absolute time in Property options of the waveform, but it remained the same. Can anybody help me with this? Thanks.
> The x-scale is always 01/01/1904 even after I selected the 'absolute
> time' option from waveform chart properties. If I add 2004 as offset
> of x-scale as suggested by the previous post, the waveform of the
> signal cannot be displayed, the system think it is still running in
> 1904.Could you give me some further help?
>
Your description doesn't give enough information to pinpoint the
problem, so I'll list off a few things that could be going on.
The graphs and charts accept many datatypes. If you are using the
waveform, display it on a regular waveform indicator and see what the
timestamp and deltaT are. If these are correct, then the graph should
be able to display things with no further changes except that you may
need to turn on X Scale Autoscaling so that it will zoom and shift to
show the plotted data. Charts will shift, but by default will not zoom
in, and it might make sense there sometimes too depending on the delta T
and amount of data plotted.
If the timestamp on the waveform is incorrect, then it is much easier to
construct the properly marked waveform than make the graph add to it to
label the waveform's time differently.
If you are not using the waveform, then you may be using a cluster of
X0, dX, and Y array wired to the graph. This is very similar to the
waveform, and again, it is better to add offsets to get the X0 to
display correctly on a numeric. You can extract this number or display
the cluster in an indicator, then format the numeric to display absolute
time.
If you are simply wiring the Y array, then LV will construct the X
values based upon the number of points beginning at 0 and incrementing
by one by default. When displayed as absolute time, this will default
to midnight Jan 1 2004 plus an offset based upon your timezone. In this
case, since there is no X information being piped into the graph, it is
better corrected by going to the graph properties for the X Scale and
setting the X Offset to the seconds between now and 1904. This is a
constant you can compute when your program starts up or you can use a
calculator, whichever is easier. You will also likely want to set the X
Multiplier to the deltaT between successive points. 0.001 for 1KHz, 1
for 1Hz, etc.
Finally, if these suggestions don't make sense or don't help, you might
want to explain more about what doesn't work.
Greg McKaskle -
How to set the running time of Thread??
Hello all
i am new and fresh student to learn Java.
i want to set a limit time to run a thread.public void interrupt()
Interrupts this thread.
First the checkAccess method of this thread is invoked, which may cause a SecurityException to be thrown.
If this thread is blocked in an invocation of the wait(), wait(long), or wait(long, int) methods of the Object class, or of the join(), join(long), join(long, int), sleep(long), or sleep(long, int), methods of this class, then its interrupt status will be cleared and it will receive an InterruptedException.
If this thread is blocked in an I/O operation upon an interruptible channel then the channel will be closed, the thread's interrupt status will be set, and the thread will receive a ClosedByInterruptException.
If this thread is blocked in a Selector then the thread's interrupt status will be set and it will return immediately from the selection operation, possibly with a non-zero value, just as if the selector's wakeup method were invoked.
If none of the previous conditions hold then this thread's interrupt status will be set.
Throws:
SecurityException - if the current thread cannot modify this thread
to quote the api
but in your case Aldaris it would have no effect
but if you wrote the code as..public void run(){
while(!interrupted()){
System.out.println("Pete_The_Hat");
}then it would break the loop :-) -
How to Set Automatic Default Time in Calendar
Friends,
When I create new event in calendar (by double clicking on a specific date) for example Group Dinner, the calendar autotatically set the start time at 8PM.
How to set the default time to 7PM for example.
Thanks
Regards,
akostamanOk It seems not just a problem of 24 hour time appointments that won't sync but all appointments I make on my iphone in calendar won't sync to calendar on my mac?
-
How to config the logout time in BW
If the user do'nt refresh the Bex report for a longtime how to set the logout time in BW. Could someone give me some hits. Thanks.
If you want to logout the user session automatically if the user has not worked or does any activity in the system then for that you need to change the parameter settings using the RZ11 transaction
parameter :rdisp/gui_auto_logout
Enter the required number of seconds of inactivity before the user is logged off automatically.
To deactivate automatic log off, delete the parameter from the profile(s) or set the value '0'. -
Set the custom timer job that copy the data in the same list
Hi
How to set the custom timer job that copy the data in the same list
Thanks,hello
please it is wrong to copy all of the list3 item in list1 as the example as below is a copy of one item.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
//This namespace is used for the SPJobDefinition class
using Microsoft.SharePoint.Administration;
namespace GENERAL_CustomTimerJob
//To create a custom timer job, first add a class to your SharePoint project and
//inherit from SPJobDefinition. Implement the constructors and override the Execute
//method as shown below. To install your timer job, and set the schedule, you must
//add a Feature and a Feature receiver.
class GENERAL_CustomTimerJob :
SPJobDefinition
#region Constructors
//You must implement all three constructors
public GENERAL_CustomTimerJob()
base()
public GENERAL_CustomTimerJob(string jobName,
SPService service,
SPServer server, SPJobLockType targetType)
base(jobName, service, server, targetType)
public GENERAL_CustomTimerJob(string jobName,
SPWebApplication webApplication)
base(jobName, webApplication,
null, SPJobLockType.ContentDatabase)
//Set the title of the job, which will be shown in the Central Admin UI
this.Title = "Simple Example Timer Job";
#endregion
//Override the Execute method to run code.
public override
void Execute(Guid targetInstanceId)
//Get the Web Application in which this Timer Job runs
SPWebApplication webApp =
this.Parent as
SPWebApplication;
//Get the site collection
SPSiteCollection timerSiteCollection = webApp.ContentDatabases[targetInstanceId].Sites;
//Get the Announcements list in the RootWeb of each SPSite
SPList timerJobList =
null;
foreach (SPSite site
in timerSiteCollection)
timerJobList = site.RootWeb.Lists.TryGetList("List3");
if (timerJobList != null)
string sourceUrl = "http://aydi-pc";
string destinationUrl =
"http://aydi-pc/sites/Site1/";
string sourceList = "List3";
string destinationList =
"List1";
using (SPSite sourceSite =
new SPSite(sourceUrl))
using (SPWeb sourceWeb = sourceSite.OpenWeb())
using (SPSite destSite =
new SPSite(destinationUrl))
using
(SPWeb destWeb = destSite.OpenWeb())
SPList ObjSourcelist = sourceWeb.Lists.TryGetList(sourceList);
SPList ObjDestinationlist = destWeb.Lists.TryGetList(destinationList);
SPListItem newItem = ObjDestinationlist.Items.Add();
SPListItemCollection items = ObjSourcelist.Items;
if
(items.Count > 0)
foreach (SPListItem item
in items)
newItem["Title"] = item["Title"];
newItem["Nom"] = item["Nom"];
newItem["Prenom"] = item["Prenom"];
newItem.Update(); -
How can i set the date time year to my i pod
how can i set the date time year to my i pod touch
Hello Theodora,
You can do this via your iPod's Settings application.
B-rock -
How do I set the default time for calendar alerts?
How do I set the default time for calendar alerts? I always want to have an alert 15 minutes before my appointments. I don't want to have to manually set it each time I make an appointment (I just moved to iphone from a windows mobile where this was basic stuff so I apologise if this is a noob question).
I have the same issue. I've searched these forums and found lots of people who have asked this same question, but nobody who has received an answer.
About a year ago, I migrated from a Windows PC and a Blackberry (both of which had very simple default alert options) to a MacBook Pro and an iPhone and have yet to find a solution on this forum or from any of my Apple-savvy friends. Very discouraging. -
How to set the time on a WRT160N
On the status page of the admin console, the current time is listed as 'Not Available'. I've looked through the web admin pages but cannot find the place to set the current time.
How do I set the time on a WRT160N?Under the setup tab...You can select the Time Zone...Select the time zone for your location. If your location experiences daylight savings, leave the checkmark in the box next to "Automatically adjust clock for daylight saving changes" and click on save settings.
Maybe you are looking for
-
Retraction SAP BI to SAP R/3 (ECC)
hello, has anyone experience with SAP BW retraction into SAP ECC ? Has anyone some possible solutions? thanks regards, andreas
-
Can free apps be downloaded when restrictions are on?
Can my grandson order free applications when restriction are on? I want him to be able to play but not to be able to order expensive apps (he is 6 years old).
-
WO in IW33 will not show Functional area # but IW32 will-causing CAT2 issue
Hello, When staff is entering time in CAT2, they get an error stating that "Functional Area is Required." In IW32 when we open the WO the Functional Area on the Additional Data tab is populated, but when we open the same WO in IW33 the Functional Are
-
Hi, I wanted to know if the CRDA is compatible with CR 2008 report designer or just with versions CR 2008 .NET and CR for Eclipse 2.0 runtime only. If thats the case, then is CR for Eclipse 2.0 runtime free for download. Any inputs in this regard wou
-
Exit or badi for t code EXPD (Progress Tracking)
Hi Gurus I have to add two fields in t code EXPD (Progress Tracking) can you please tell me the name of Exit or BADI for that. Thanks In advance. Chitta Ranjan Mahato