Given two date/times:
@start_date = '2009-04-15 10:24:00.000'
@end_date = '2009-04-16 19:43:01.000'
Is it possible to calculate the time elapsed between the two dates in the following format
1d 9h 19m
I have two shapes which are cross sections of a channel. I want to calculate the cross section of an intermediate point between the two defined points.
What's the simplest algorithm to use in this situation?
P.S. I came across several algorithms like natural neighbor and poisson which seemed complex. I'm looking for a simple solution which could be implemented quickly
I have two mysql queries:
$sql = "SELECT * FROM content WHERE threadName LIKE '%$filter%' ORDER BY lastUpdated desc";
and
$sql = "SELECT * FROM content ORDER BY lastUpdated desc";
The end result is to have all rows returned from a particular table 'content' but have those that match the variable $filter at the top. Is there either a single query that could combine these two or should I be using a JOIN?
I have got a WCF Data Service based on a LINQ to SQL data provider.
I am making a query "get me all the records between two dates".
The problem is that I want to synthesize two extra records such that I always get records that fall on the start and end dates, plus all the ones in between which come from the database.
Is there a way to "intercept" the request so I can synthesize these records and return them to the client?
Thanks
I have a program with two WPF treeviews that allow dragging and dropping between the two. The problem is, it can be annoying to open / close items on the treeviews because moving the mouse just one pixel while holding the left mouse button triggers the drag / drop functionality. Is there some way to specify how far the mouse should move before it's considered a drag / drop?
Thanks!
I found two python libs to perform openid authentication with django: django-openid and django-openid-auth. I don't get the difference between the two, mostly (I think) because I have no experience with the django authentication mechanisms.
Using
Sun Glassfish Enterprise server v2.1.1
I am using "alternatedocroot" via sun-web.xml for my web application to abstract out static content from actual deploy-able code (EAR/WAR)
What I have is a cluster of two server instances distributed across two physical hosts - HOST1 and HOST2. "alternatedocroot" points to /data/static-content/ on both HOST1 and HOST2.
Would DAS (Domain application server )take care of syncing /data/static-content between HOST1 and HOST2 if I use syncinstances=true option while starting up the cluster?
Thanks!
I'm trying to read the accelerometer for a longer period of time (between one and two hours).
However, when the iPhone goes to sleep and locks, the reading of the accelerometer readout is paused.
My setInterval timer seems to be running fine though. I can also play sounds.
I see two solutions
a) Find a way to read the accelerometer while locked
b) Find a way to prevent the lock
I'm using Titanium with JavaScript.
What is the difference between:
Google Keyword Too
[Google Search-Based Keyword To
ol]2
For example, when I search for "photo editing", I get completely two different Google report for number of monthly searches: 1,500,000 vs 54,000. Why does Google reporting two different number of searches for exact keywords? Any idea?
Hi,
My Requirement is to show two sub reports in a Report. What I am doing is, I have created two sub-reports and put that into a report.
But the issue is that, both the sub reports are growing (i.e. their height is not static as the number of records are variable). I just want the second sub=report to appear after the end of first sub-report. How can I achieve the same?
Regards,
Sandeep Jindal
I have a group of 12 checkboxes, all with the same name (name="4_RepPeriods"). I am using the Jquery validation plugin and i want the user to select no more or less than two of these check boxes.
If possible I also want the other check boxes to become deactivated (unclickable) after two have been selected.
I appreciate the help! Thanks!
Hi,
I develop an application in which i selected the UITableView (only two row) having group style on the UIViewController with background image. But i want to be only those two row of the group table shold be displayed on the background image, and the header and footer of the table must be hide.
How i do that?
What's a smart way of using ActiveSupport or perhaps regular built in Ruby functionality to take two arrays and merge them into a hash where each element in an array matches the element in a parallel array? imagine two arrays:
names = ["Danny", "Johnny"]
ages = ["25", "32"]
The end result should be a hash that looks like:
{"Danny" => "25", "Johnny" => "32"}
Hi all,
We have developed a multithreaded server that recieves data from multiple client and calls different WCF services.
There are many cases that two (or more) different clients call the server at the same and the server tries to call the remote WCF from two different threads simultaneously.
We have encountered some issues, especially when the remote WCF service is down.
Are we doing things correctly? is there a best practice for this scenario?
thanks,
Guy.
I have two shapes which are cross sections of a channel. I want to calculate the cross section of an intermediate point between the two defined points.
What's the simplest algorithm to use in this situation?
P.S. I came across several algorithms like natural neighbor and poisson which seemed complex. I'm looking for a simple solution which could be implemented quickly
EDIT: I removed the word "Simplest" from the title since it might be misleading
I've got a CALayer with two CAKeyframeAnimations added to it. One is for @"transform" and the other is for @"position". I am rotating the layer and translating it with these two animations.
I am wondering, is there a way I can set the keyframes to happen at the same time? I want to have a keyframe for rotation at the exact time my layer has reached a certain (x, y) position.
How is this possible?
Hi, I've got Enum:
public enum ObjectType
{
Country=0,
Region=1,
Province=2,
City=3,
Hotel=4
}
I have two applications in two language versions, and this Enum is displaying in some place, so depends of language version I wanna displaying correct version of Enum
in german version instead Country Land etc.
This Application are using the same websercice which has declaration of this enum.
Here is an example buffer in vim:
foo
bar
pip
one
two
three
And here is what I would like to produce:
fooone
bartwo
pipthree
Ideally by specifying the two ranges of line numbers, but a sequence of commands would also be great.
I have a sharepoint custom list which has 5 columns ..the user should fill in first three columns and the other two should be locked..when the user enters the items and start the workflow if the workflow gets approved the 3 columns should be locked for editing and then the other two should be available for editing .
Can someone please tell me how can i achieve this.
Thanks
im preparing for my exam. i got this question and i read several articles about this. but still i cant get a proper idea about this question
what Paradigm means is that different programming styles ( as far as i think)
in the question they ask explain it by taking two paradigms
so this explanation should be done using two styles of programming
"List Comprehnsions or Primitive Recursion, Higher order functions " is these styles are programming paradigms??
please help me
I'm looking for a UUID library for programming in C, that has a reasonable probability of being installed (or at least installable by package manager) on most modern Linux desktops, and works with pkg-config.
The following two possibilities seem most obvious:
OSSP UUID
Libuuid from e2fsprogs
Does anybody have experience with these two and can recommend one over the other, or a third possiblity?
Hi
I am trying to deploy an application with two executable files one of which is the application it self.
I used the publish tub on the VS 2008 and tried to publish manually using the MageUI.exe.
in both cases I get the "Reference in the manifest does not match the identity of the downloaded assembly" error in regards to the second executable file.
Dose Any one know how to publish an application with two executable files?
Thanks,
Ahron
When Using UIPickerController I have two choices on my App:
take a picture
take a picture from the library (photo album)
but the library itself is composed by two parts:
camera roll
other photo albums
Is there a way to detect if the picture was selected from the camera roll or from the other photo albums?
thanks for any help.
I am using .Net3.5. Just wondering my understanding about the insert, update, delete are correct when use L2E.
For insert, we need two statements:
context.AddObject("entityName", newRow);
context.SaveChanges();
For update, we only need one statement:
context.SaveChanges();
For delete, we need two statements:
context.DeleteObject(deletedRow);
context.SaveChanges();
I am refering to this article from Jimmy Bogard
He is suggesting two projects to organize your ASP.NET MVC solution.
Basically, one project for the code and another for the rendering
My concern is about global.asax file.
Jimmy suggested separating global.asax from global.asax.cs and put them in two differents projects
When I did this, I could not compile my solution.
I got this error : Could not load type 'MyProject.Web.Global'.
Can someone help and show me how to solve this?
Thanks