Hi,
Does the following cron expression mean "execute every other Sunday?" (I'm trying to use it with the Spring Quartz scheduler)
0 0 3 ? * 2/1 *"
Thanks
Nick
In my MSTest UnitTest project, before running any tests, I need to execute some commands. Is there a feature, kind of like Global.asax is for web based projects, that will let me kick off something before any tests run?
I'm trying to write a Postgres trigger such that when a configuration table is updated, a backend component is notified and can handle the change. I know that Oracle has the concept of a web/HTTP trigger, where you can execute an HTTP GET from the Oracle instance itself to a URL that can then handle the request at the application layer. I'm wondering if Postgres (v. 9.0.5) has the same feature, or comes with anything similar (and, subsequently, how to set it up/configure it)?
I have defined ! (factorial) function and registered it as arithmetic function and an operator, so that I can execute: A is 6!.
Now I'd like to define !! (factorial of odd numbers), but the same way - writing clauses, registering arithmetic_function and operator, calling A is 7!! - results in
SyntaxError: Operator expected
How should I, if possible, register !! operator ?
Yes, I realize, ! is normally the cut.
How to pass arguments to an HtmlFile from C#?
Like: System.Diagnostics.Process.Start("Sample.html","Arguments");
If I execute the above code the "Sample.html" file should be opened and it should do something with the "arguments".
Just wondering if this is the way to specify the order to run a handler
(AuthorizationHandler) before all others?
public void SpecifyOrder(Order order)
{
order.Specify(First<AuthorizationHandler>.Then<IHandleMessages<IMessage>>());
}
It just feels odd to add Then<IHandleMessages<IMessage>>().
Is there a nicer way of saying to the Bus execute x handler before all
others?
I created a base form that has a specific size and an icon as a base for all forms created in my project (to be consistent in looks). The problem is, for some reason if I add a Text box to the Child form, I can no longer execute shortcuts like Copy (CTRL+C) etc into the Textbox.
What should I do to handle this OTHER THAN writing code to capture those on the KeyUp control?
This is also the case for RichTextBox control as well.
Thanks
In C# 4.0 and IronPython 2.6, is it possible to execute a python script in it's own thread?
I would like to spawn off the script after passing in some event handler objects so that it can update the GUI as it runs.
Here is te code:
<?php
//Starting session
session_start();
//Includes mass includes containing all the files needed to execute the full script
//Also shows homepage elements without customs
require_once ('includes/mass.php');
$username = $_SESSION['username'];
if (isset($username))
{
//Query database for the users networths
$sq_l = "SELECT * FROM user";
$sql_query_worth = mysql_query($sq_l);
while ($row = mysql_fetch_assoc($sql_query_worth))
{
$dbusername = $row['username'];
}
echo $dbusername;
}
?>
Using Hibernate, what is the most efficient way to determine if a table is empty or non-empty? In other words, does the table have 0, or more than 0 rows?
I could execute the HQL query select count(*) from tablename and then check if result is 0 or non-0, but this isn't optimal as I would be asking the database for more detail than I really need.
I have written a simple delete query
delete from mails
While I execute I get no problem and the query runs fine, but when I publish the website I get an error stating:
"Could not delete from specified
tables"
What might be the problem?
I am getting this error when placed in IIS but when i run it in local drive through visual studio i am not getting this error...please help
Hello,
Is there any way to load an existing index into an instance of MemoryIndex?. I have an application which uses Hibernate Search so I can use index() in FullTextEntityManager instance to index an object. I'd like to recover back the created index and insert it into a MemoryIndex instance to execute several queries over it.
Is it possible?
Thanks.
What are some of the best practices for writting scripts that will execute in a remote context?
For instance, I just discovered that built-in var $Profile doesn't exist during remote execution.
TheAutoConfig URL says to run the script in the directory that contains your package's configure script,what that directory means?anybody has experienced this to execute the script?and also how can we extract tar file through that?
Hello,
I am writing a client-server in C in which many clients send a running file to server and server needs to execute the file and save the result in their computer.
now I have 2 questions:
1-should server save the receiving file before executing it?if yes how?
2-I am going to use CreateProcess() function to make a child and run every clients file in different process..is that a good choice?!
thank you for your kind help in advance
Negar
I am implementing Paging in my application. For this i run a query and get a resultset.
Now i want to get total no of records in this resultset for my paging calculation. How can i get ? i dont want to execute a extra sql which gives me total rows
Hi,
can a MySQL slave instance have different row values for the same ID when binlog_format is set to STATEMENT and we insert something like:
insert into foo values(CURRENT_TIMESTAMP)
As I understand it, the slave read the SQL statement and execute it thus, if the replication is lagging, could lead to differences for the same row. Right or wrong ?
How can I avoid this situation ?
Thank you.
I am seeing problems uploading large files e.g. 100MB. Files go to Amazon S3 successfully, but after that scripts are waiting for if($flag == 1) and do not execute the rest of the code. Can anyone tell me the solution for this?
if($s3->putObjectFile($uploadDIR, $bucket, $name, S3::ACL))
{
$flag = 1;
}
if($flag == 1)
{
//continue code
}
i am using eclipse with android plugin and sdk, but i can not create a virtual device due to there is no target, and when I execute this:
$ ./android list targets
Available Android targets:
what should i do?
and..............
when i try to install the available packages in eclipse avd manage it comes to:
Downloading SDK Platform Android 2.0 API5, revision1
SSL peer shutdown incorrectly....
After the page has loaded a piece of javascript set focus on window and on a specific input field. I want to prevent this focus on the input field how can I do that with javascript in greasemonkey? Maybe this is not possible because greasemonkey don't execute the code until the entire page has loaded? Then let's say I can run my code at any time how can I prevent the focusing?
Let's say I have a thread pool containing X items, and a given task employs Y of these items (where Y is much smaller than X).
I want to wait for all of the threads of a given task (Y items) to finish, not the entire thread pool.
If the thread pool's execute() method returned a reference to the employed thread I could simply join() to each of these Y threads, but it doesn't.
Does anyone know of an elegant way to accomplish this? Thanks.
How can I get a timer task on a WebSphere cluster to execute once and only once? I know this is possible on other app servers but can't figure out how to do this in WebSphere.
Assuming you can't use Linq for whatever reason, is it a better practice to place your queries in stored procedures, or is it just as good a practice to execute ad hoc queries against the database (say, Sql Server for argument's sake)?
I am looking to execute this statement via Zend Framework. As I understand it, I can use Zend_Db_Select. Is it possible to use Zend_Db_Table?
Three tables: classes, students, and class_students
select classes.name, students.student_id, students.fname, students.lname from students, classes, class_students where class_students.student_id=students.student_id AND class_students.class_id=classes.class_id;
We have a game project designed on ASP&SQL Server, and we need to integrate it's user database with Drupal.
This would be easier from Project to Drupal (since there is user_save and user_delete functions available globally by using drupal bootstrap) but I'm not sure if we can execute PHP functions on an ASP platform.
Is there any documentation for this kind of problems? What do you suggest?