Hi,
I'm developing JSP/Servlets App,and I want to execute a service at a specific time , for example :
For each day at 10:00 AM , delete any
attachment from the "attachment" table
in the database where column X== NULL.
How can I do this in JSP/Servlets application ?
I use Glassfish as a server .
Is it possible to push to 2 or more remote repositories at the same
time?
I only want to mirror the main repository, where most if not all the
pulls will come from.
LINQ to SQL .Count takes way to much process time and decreases performances.
I am doing a recursive loop and for one child (lets call it parent) I have to check the number of children under it to make a decision if it should be included or not.
The Count is too slow 8 ms :( for 120 parent records.
Any ideas to make it quicker.
I have been developing websites in n-tier structure and so far my requirements are fulfilled. But as powerful frameworks like Zend Framework, symphony are getting popular, I wonder how to know if it is time to shift to a framework?
I am in a kind of dilemma? Can anyone suggest me the right option !
From wiki: In computing, just-in-time compilation (JIT), also known as dynamic translation, is a technique for improving the runtime performance of a computer program.
So I guess JVM has another compiler, not javac, that only compiles bytecode to machine code at runtime, while javac compiles sources to bytecode,is that right?
Hello,
I have a problem with my vpn connections, my ISP requires me to connect to a private vpn server of it's own in order to connect to internet, im connected to main network via WiFi,
but i also want to connect to another VPN network of my choice (to bypass internet limitation in my country of course), i am able to do that in Windows, but its not working in Mac OS X Snow Leopard
second vpn connecion type is PPTP / CHAP
How can i do that?
as u see in the pic, both vpn's are connected, first one is for main internet which is working properly , second one is also connected but its not affecting anything. its just connected.
http://www.freezpic.com/pics/a5231c3e80501a3c25430f43c1ef5856.png
in javascript how to send request some url at a partcular time(e.g daily 5 pm).........
very day @5pm i have to send some request (url)e.g sending emails how to do in java script
So given a static type in your code you can do
var defaultMyTypeVal = default(MyType);
How would you do the same thing given a variable of Type so you can use it during runtime?
In other words how do I implement the following method without a bunch of if statements or using Generics (because I will not know the type I'm passing into the method at compile time)?
public object GetDefaultValueForType(Type type) {
....
}
hi
i have Database with date field.
i see the time like: 1900-01-01 13:38:00.000
how i can see it like: 13:38 ?
(i work on sql server 2008)
thank's in advance
I want to find that when a user fires an event, such as click a button, what function(s) does this event invoke in run-time? Would it be possible?
Thanks!
In MySQL you can insert multiple rows like this:
INSERT INTO 'tablename' ('column1', 'column2') VALUES
('data1', 'data2'),
('data1', 'data2'),
('data1', 'data2'),
('data1', 'data2');
However, I am getting an error when I try to do something like this. Is it possible to insert multiple rows at a time in an SQLite database? What is the syntax to do that?
NHibernate_reference.pdf, page 26:
Note that ILifecycle.OnUpdate() is not called every time the object's persistent state is updated. It is called only when a
transient object is passed to ISession.Update().
Why it design link that?
Given an array of integers where some numbers repeat 1 time, some numbers repeat 2 times and only one number repeats 3 times, how do you find the number that repeat 3 times. Using hash was not allowed. Complexity of algorithm should be O(n)
This is a n00b question, sorry. I have a site running on a VPS, now I want to be able to receive mails at [email protected]. How do I need to set up the server? And how should I set up the mail client on my PC to receive those mails? The server is running CentOS/RHEL.
I'll really appreciate if someone shed some light on the steps that need to be taken. It will be really helpful. Thanks in advance!
Hi, we're in need to stop the user session in an ASP.NET site after some time(say 20 mins).
We know we can use a timer and code every page to expire on the timer tick, but we're searching a faster way, maybe through an IIS configuration?
Is there a built in way to do such things?
We're using ASP.NET 2.0, Framework 3.5, IIS 6, c#.
TY.
In a short question: If 10 requests hit Apache, does it process them one by one, so when R3 finishes, then it starts to run R4, or does it fire 10 processes/threads/whatever and are resolved simultaneously?
Now some background: I have a PHP script that takes up to two minutes to do some processes. My question is: while a client is waiting for this 2 minutes, all the other clients requests are being processed? Or also waiting for this one to end?
By the way, if there are simultaneous request, how can I handle them? Let's say put a limit on them. Or a limit on resources consumed. For instance I want the server to use its 80% performance on serving the webapp, and just a 20% for those long operations ... because I have no hurry to end them.
Doesn't know if it cares but is all in PHP.
Thanks in advance!!
I'm creating a simple datebase backup solution for a client using web hosting at DataFlame.
The web hosting account provides access to cron but not a shell.
I have a database backup script creating regular backups and I want to automatically remove those more than N days old.
I attempted to use
find -v $backup_dir -mtime +$keep_days -name "*db.tar.gz" -delete
however the user executing the script does not have permission to run find.
Can you suggest how to implement this without using the find command?
I have the code:
private void Button1_Click (object sender, EventArgs e)
(
Form2 f2 = new Form2 ();
f2.Show ();
)
how to make so that Form2 when you click on Button1 not opened for the second time, if it is open?
sorry for bad english
How to create a cron job in PHP for getting the update of modified date and time of files/folders?
I am a newbie to create a cron job how to get started?
Simplified table structure (the tables can't be merged at this time):
TableA:
dts_received (datetime)
dts_completed (datetime)
task_a (varchar)
TableB:
dts_started (datetime)
task_b (varchar)
What I would like to do is determine how long a task took to complete.
The join parameter would be something like
ON task_a = task_b AND dts_completed < dts_started
The issue is that there may be multiple date-times that occur after the dts_completed.
How do I create a join that only returns the first tableB-datetime that occurs after the tableA-datetime?
All lines in my AppStats look like this: real=19ms cpu=0ms api=0ms overhead=0ms, it has the correct real time, but the other values are always 0. Anyone have this problem before or know how to fix this?
I am placing 20 images in hdpi folder, 20 images in mdpi folder and 20 images in ldpi folder, all are same images but different resolutions . I am placing my app in android market. One user install my app in his normal android device through market, My question is total 60 images download the device or only 20 images(mdpi) download the device at the time of install the app.Thanks for reading my question.