Showing posts with label facebook. Show all posts
Showing posts with label facebook. Show all posts

Thursday, October 13, 2011

Facebook detect movement before loading new feeds

If you are eagle-eyed enough, you would have noticed that facebook actually doesn't poll unnecessarily from the server. Somehow it knows that you are away for sometime and when you are active and start to move your mouse, newer feeds starts loading.


<script type="text/javascript">
  document.onmousemove = (function() {
    var onmousestop = function() {
      $('h1').css("color", "white");
    }, thread;
    return function() {
      $('h1').css("color", "red") clearTimeout(thread);
      thread = setTimeout(onmousestop, 200);
    };
  })();


Read more on this: Closures
I've embedded this scrip into the blog -> Blue H1, so don't panic if you see the h1 starts turning blue :)


Friday, February 25, 2011

SharePoint 2010 as a platform to mimic facebook?

One of the greatest challenge for me to date. Using SharePoint 2010 as a platform to mimic Facebook social networking capabilities.

First thing that came to my mind: FaceBook took 6 years and with their strong team of developers that contributed so much to the open source community. The technology they used are amazing, which is not something my company should undertake.. (dam pre-sales)

I am already tasked to deliver it and i already have so much in my mind on the implementation design, performance considerations, further more, i'm leading a virtual team to complete this project. It's going to be a tough year ahead for me, however if it manage to satisfy my client, i'd be glad as it's something which  not many sharepoint developers dare to undertake.