Card No: 4111 -1111 - 1111 - 1111
Exp Date: 07/2016
CVV: 123
Name of the Issuing Bank: EBS
Note: No other Card number would be accepted by the Gateway in test phase.
Programming is fun and interesting. As you all know, sometime we programmers stucks in the middle way of coding without getting a solution. Blogs like this will help us to find a path to solve our problems. The contents of this blog are the solutions that I found by myself and from other sources. Sharing such solutions is also interesting. Thank you!
Card No: 4111 -1111 - 1111 - 1111
Exp Date: 07/2016
CVV: 123
Name of the Issuing Bank: EBS
create table T (
id int identity,
colA varchar(30) not null,
colB varchar(30) not null
)
delete T
from T t1
where exists
(select null from T t2
where t2.colA = t1.colA
and t2.colB = t1.colB
and t2.id <> t1.id)
delete T
where id not in
(select min(id) from T
group by colA, colB)
public double GetRandomNumber(double minimum, double maximum)
{
Random random = new Random();
return random.NextDouble() * (maximum - minimum) + minimum;
}
var now = "04/09/2013 15:00:00";
var then = "04/09/2013 14:20:30";
moment.utc(moment(now,"DD/MM/YYYY HH:mm:ss").diff(moment(then,"DD/MM/YYYY HH:mm:ss"))).format("HH:mm:ss")
// outputs: "00:39:30"
var now = "04/09/2013 15:00:00";
var then = "02/09/2013 14:20:30";
var ms = moment(now,"DD/MM/YYYY HH:mm:ss").diff(moment(then,"DD/MM/YYYY HH:mm:ss"));
var d = moment.duration(ms);
var s = Math.floor(d.asHours()) + moment.utc(ms).format(":mm:ss");
// outputs: "48:39:30"
d.minutes()
and d.seconds()
separately, but you would also have to zeropad them.