All the sources codes "But why ?"page 28
Java
July 19, 2014 pm31 12:54
#132
private int signum(int number) {
int result = 0;
if (number != 0) {
result = number / Math.abs(number);
}
return result;
}
C#
July 19, 2014 am31 04:40
#113
// on the webservice client
Hashtable params = new Hashtable
{
"IsActive", true.ToString();
...
};
service.someMethod(params);
// on the webservice
if (hs["IsActive"].ToString().ToLower().Equals("true"))
{
...
}
PHP
July 18, 2014 am31 10:31
#129
if(($_COOKIE["Desktop"] == '1' OR $HTTP_COOKIE_VARS["Desktop"] =='1'))
{
$desktop = 1;
}
else
{
$desktop = 1;
}