Monday, May 10, 2010

Thursday, April 15, 2010

Saturday, April 3, 2010

Linq to Json

var q = from b in data.napps2_price_categories
where b.Lang == lang
orderby b.Description
select new { b.Code, b.Description };
return (JsonConvert.SerializeObject(q));

Returns the results as JSON
JSON.NET

Calling the webservice from javasacript via JQuery

$.ajax({
type: "POST",
url: "/WebServics/DoStuff.asmx/Functionname",
data: "{'lang': 'EN'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
AjaxSucceeded(msg);
},
error: AjaxFailed
});

function AjaxSucceeded(result) {
eval('var jsonvar = ' + result.d);
for (var i = 0; i < jsonvar.length; i++)
$('#divCategory').append('');
}

Friday, April 2, 2010

Top 100 April Fool's Day Hoaxes Of All Time

Top 100 April Fool's Day Hoaxes Of All Time: "#10: Planetary Alignment Decreases Gravity
1976: The British astronomer Patrick Moore announced on BBC Radio 2 that at 9:47 AM a once-in-a-lifetime astronomical event was going to occur that listeners could experience in their very own homes. The planet Pluto would pass behind Jupiter, temporarily causing a gravitational alignment that would counteract and lessen the Earth's own gravity. Moore told his listeners that if they jumped in the air at the exact moment that this planetary alignment occurred, they would experience a strange floating sensation. When 9:47 AM arrived, BBC2 began to receive hundreds of phone calls from listeners claiming to have felt the sensation. One woman even reported that she and her eleven friends had risen from their chairs and floated around the room."

Tuesday, March 30, 2010

Monday, March 29, 2010

Trapped in the Closet (South Park) - Wikipedia, the free encyclopedia

the discovery of his surprisingly high "thetan levels", he is recognized as the reincarnation of the founder of the church, L. Ron Hubbard

Trapped in the Closet (South Park) - Wikipedia, the free encyclopedia

Possibility of TouchLESS Computers

Possibility of TouchLESS Computers

Chiastic

from the Greek: χιάζω, chiázō, "to shape like the letter Χ"
Chiasmus - Wikipedia, the free encyclopedia

Chiastic Slide

Saturday, March 27, 2010

Fan Death - Wikipedia.

Fan death is a putative phenomenon generally accepted only in South Korea, in which an electric fan left running overnight in a closed room can cause the death of those inside. Fans sold in Korea are equipped with a timer switch that turns them off after a set number of minutes, which users are frequently urged to set when going to sleep with a fan on.

More here.