I have a method which accepts an ObjectQuery and adds Where clauses to it depending on whether it receives values for various filter parameters. The method has to return an ObjectQuery. How can i do a basic Date comparison e.g. where dateX < dateY.
This is my current code:
if (myDateFilter != null)
{
query = query.Where(
st...
PHPJS attempts to port php functions over to javascript.
http://phpjs.org/
Rationale: people who know php's functions really well can write javascript and just carry over what they know from php into the javascript world
Question: I would like to know if there are other language libraries where someone ported concepts from language X...
I have only created regular windows applications (C# mostly). What differentiates a windows service from a regular windows application? What makes them different? What can a service do that an application can't? What are the differences seen from a developers point of view? How do you create one? Is it just to create a regular applicatio...
My Source Safe file comparer (diff) doesn't say where in the line there are differences. Which tool would I use for that?
And before someone tries to move it to SU, please note that we developers rely on these diff tools more than anyone else.
...
Hey guys,
Has anyone used Tokyo Cabinet on the iPhone? I'm interested to see if there are any real world performance differences between it and SQLite3.
Also, SQLite 3 has the expressive power of SQL, does Tokyo Cabinet have any kind of query language?
Any input would be greatly appreciated, thanks.
...
Given the release of Microsoft Expression's Web 3 SuperPreview (very nice tool BTW), are there any tools that will compare two web addresses against each other? As in a way to compare dev to stage or something like that? Something with an overlay would be very nice.
...
Sorting objects is simple enough by mixing in Ordered and providing a compare() function, as shown here. But what if your sorting value is a Double instead of an Int?
def compare(that: MyClass) = this.x - that.x
where x is a Double will lead to a compiler error: "type mismatch; found: Double required: Int"
Is there a way to use Do...
I'm reviewing a number of jQuery functions that have various implementations of id selection. I want to try and standardise on one best-practice approach, but before I do that I want to ensure that I pick the most efficient.
Does anyone have links to good articles (such as this one) that make comparisons between different types of sele...
Hello,
I have 2 columns and multiple rows of data in excel. Each column represents an algorithm and the values in rows are the results of these algorithms with different parameters. I want to make statistical significance test of these two algorithms with excel. Can anyone suggest a function?
As a result, it will be nice to state somet...
I was looking through the /etc/bash_completion script found in some Debian packages. I was interested in using the code that looks through a specific directory (/etc/bash_completion.d/ by default) and sources every file in that directory.
Unfortunately, trying to run the script causes errors under the Mac OS X version of bash. The line...
Hi All,
I want to know the most efficient way of comparing two entities of the same type.
One entity is created from an xml file by hand ( ie new instance and manually set properties) and the other is retvied from my object context.
I want to know if the property values are the same in each instance.
My first thoughts are to generate...
For the sake of simplicity, let's say I have a Person class in Python. This class has fields for firstname, lastname, and dob.
class Person:
def __init__(self, firstname, lastname, dob):
self.firstname = firstname;
self.lastname = lastname;
self.dob = dob;
In some situations I want to sort lists of Persons by lastname f...
I am working on an incremental builder for Java code in Eclipse. Eclipse provides a ResourceDelta that tells me which resources have changed since the last build. However, I would like to have more detailed information, e.g. what methods or what field definitions changed. There seems to be functionality similar to what I want in the "com...
Hi guys,
First of all apologise for creating my third Javascript question in as many days - I'm really trying to push myself in this field on this project, and feel my skills are developing at a fairly good rate thanks to my research and your fantastic help on here, particularly redsuqare!!
I've got a table where people can enter times...
hi
What is faster query select...where Fname = 'mark' or select...where Fname like 'mark'
thank's
...
If you have strings like:
"file_0"
"file_1"
"file_2"
"file_3"
"file_4"
"file_5"
"file_6"
"file_11"
how can you sort them so that "file_11" doesn't come after "file_1", but comes after "file_6", since 11 > 6.
Do I have to parse the string and convert it into a number for this?
Windows explorer in Win7 sorts files out the way I wanted...
I have 2 arrays (A and B) that contain similar data with some differences. I would like to return an array of objects that are only in A and another array of objects that are only in B. So far I have been thinking:
Brute force with some optimizations (this is trivial)
Sort the arrays and use a binary search.
What are my other option...
Why is "greater than" comparisons for number values in JavaScript not working. The example below keeps returning true even when the mini number is less than the maxi.
mini and maxi are form input values. This example is using jQuery to get the values, but could easily be stripped.
var mini = $('form#filterPrice input.min').val(); //eg...
I have my own C++ DateTime class defined as:
class DateTime
{
public:
int year;
int month;
int day;
int hour;
int min;
int sec;
int millisec;
};
I have 2 DateTime which I need to compare to see which one is greater than (more recent) the other.
Is there any freely available C++ DateTime class that I can use to
Convert...
I have two related questions about Web services:
(1) I'm currently writing a set of applications, and it occurred to me that maybe I'm not using the right tool for the job. Here is the spec:
There are many Windows servers behind different VPNs and firewalls.
Each of the servers has a Windows service running, that reports various in...