I noticed in premium edition Data menu with Data Compare option which does everything I need. Just wondering whether there is a way to automate what's done in GUI from my application.
Ideally I'd like to get collections of different/left/right rows
...
Looking for a tool that will allow building database schema validation that can be compiled into a standalong tool or as a module to be used in another application.
The scenario is - a client/server application that is sold to customers, and maintained through service releases. The service releases include database scripts to updated t...
I am checking to see if the last character in a directory path is a '/'. How do you get ruby to treat the specific index of a string as a character rather than the associated ASCII code?
For example the following always returns false:
dir[dir.length - 1] == '/'
This is because dir[dir.length - 1] returns the ASCII code 47 (rather ...
I am trying to compare two textbox values on an aspx form. Both the values represent dates. They are formatted like "dd/MMM/yyyy". How can I compare them in JavaScript to see if they are not equal and which one is greater etc.?
Does JavaScript have a date constructor for strings like this? Any tips would be appreciated.
...
Hi, I'm trying to design this script that's supposed to be used as a part of a logon script for alot of users. And this script is basically supposed to take a source folder and destination folder as basically just make sure that the destination folder has the exact same content as the source folder. But only copy if the datemodified stam...
So I have a one liner:
import decimal; h = decimal.Decimal('100.0'); (h > .01, h < .01, h.__gt__(.01), h.__lt__(.01))
All it does is make a Decimal object holding 100.0, and compares it to .01 (the float) in various ways.
My result is:
>>> import decimal; h = decimal.Decimal('100.0'); (h > .01, h < .01, h.__gt__(.01), h.__lt__(.01))...
Hi
I need to check for
"Apple" = "Apple" TRUE
"Apple" = "APPLE" TRUE
"Apple" = "Apple1" FALSE
in ruby
I need a string comparison but for the check to not be case sensitive.
thks
...
Lets say I have a StartDate and an EndDate and I wnt to check if the EndDate is not more then 3 months apart from the Start Date
public class DateCompare : ValidationAttribute
{
public String StartDate { get; set; }
public String EndDate { get; set; }
//Constructor to take in the property names that are supposed to be che...
So we got this function in PHP
strcmp(string $1,string $2) // returns -1,0, or 1;
We Do not however, have an intcmp(); So i created one:
function intcmp($a,$b) {
if((int)$a == (int)$b)return 0;
if((int)$a > (int)$b)return 1;
if((int)$a < (int)$b)return -1;
}
This just feels dirty. What do you all think?
this is par...
I don't really know what's wrong right here.
I'm trying to create a vbscript that basically checks two Folders for their files and compare the DateLastModified attribute of each and then copies the source files to the destination folder if the DateLastModified of the source file is newer than the existing one.
I have this code:
Dim s...
without using GroupJoin:
var playersDictionary = players.ToDictionary(player => player.Id,
element => new PlayerDto { Rounds = new List<RoundDto>() });
foreach (var round in rounds)
{
PlayerDto playerDto;
playersDictionary.TryGetValue(round.PlayerId, out playerDto);
if (playerDto != null)
{
playerDto.Rounds...
I am trying to compare an index path in my didSelectRowAtIndexPath delegate method with an array of index paths.
for (n=0; n < [tempMutArrray count]; n= n+1){
NSComparisonResult *result = [indexPath compare:[tempMutArray objectAtIndex:n];
//What I want to do is is write an if statement that executes a certain block of code
//if...
When comparing "Île" and "Ile", C# does not consider these to be to be the same.
string.Equals("Île", "Ile", StringComparison.InvariantCultureIgnoreCase)
For all other accented characters I have come across the comparison works fine.
Is there another comparison function I should use?
...
I have this two arrays:
$arr1=array( array("id" => 8, "name" => "test1"),
array("id" => 4, "name" => "test2"),
array("id" => 3, "name" => "test3")
);
$arr2=array( array("id" => 3),
array("id" => 4)
);
How can i "extract" arrays from $arr1, where id have same val...
how can i evaluate whether my test array is equal to my static constant DEFAULT_ARRAY? shouldn't my output be returning true?
public class myClass extends Sprite
{
private static const DEFAULT_ARRAY:Array = new Array(1, 2, 3);
public function myClass()
{
var test:Array = new Array(1, 2, 3);
trace (test == DEFAULT_ARRAY);
}
//traces f...
I'm trying to take 2 versions of text (10 pages long) and compare the 2 to produce the difference. I know Wikipedia has a similar feature to compare revisions. Does anyone know what they use? I'm hoping they're using a php-driven solution.
...
When you call remove(object o) on an arraylist in java, how does it compare the objects to find the correct one to remove? does it use the pointer? or does it compare the objects using the interface Comparable?
...
I'm trying to use a custom compare method (for use with sortedArrayUsingSelector:) and on another website I got that the format is:
-(NSComparisonResult) orderByName:(id)otherobject {
That's all very well and good, except how do I compare the otherObject to anything as there's only one thing passed to the method?
Like how does the NS...
Hi all,
how to compare the checksums in a list corresponding to a file path with the file path in the operating system In Python?
import os,sys,libxml2
files=[]
sha1s=[]
doc = libxml2.parseFile('files.xml')
for path in doc.xpathEval('//File/Path'):
files.append(path.content)
for sha1 in doc.xpathEval('//File/Hash'):
sha1s.append(...
table1
- date1 datetime not null
- date2 nvarchar null
I want to get the latest date of this two.
select date1, date2,
(CASE WHEN date1 > CAST(date2 as DateTime) THEN date1 ELSE date2 END) as DateTime) as LatestDate
from table1
please note that date2 can be null. in this case, date1 win.
...