posts - 5, comments - 3, trackbacks - 0

My Links

News

this is Matt's profile

Twitter












Archives

Post Categories

Image Galleries

Links

Monday, December 10, 2007

Latest Twitter Post Javascript

Ever since update to Twitter, they removed the Javascript that auto conformed with the site CSS, to show your latest Twitter post. I really like this script, so I thought I would share mine here as the Twitter one is now gone, and doesn't look like we will ever see it again.

<center><a href="http://twitter.com/YOURUSERNAME"><b>My Twitter Updates</b></a></center><br>
<script type="text/javascript">
  function relative_time(time_value) {
    var values = time_value.split(" ");
    time_value = values[1] + " " + values[2] + ", " + values[5] + " " + values[3];
    var parsed_date = Date.parse(time_value);
    var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
    var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
    delta = delta + (relative_to.getTimezoneOffset() * 60);

    if (delta < 60) {
      return 'less than a minute ago';
    } else if(delta < 120) {
      return 'about a minute ago';
    } else if(delta < (45*60)) {
      return (parseInt(delta / 60)).toString() + ' minutes ago';
    } else if(delta < (90*60)) {
      return 'about an hour ago';
    } else if(delta < (24*60*60)) {
      return 'about ' + (parseInt(delta / 3600)).toString() + ' hours ago';
    } else if(delta < (48*60*60)) {
      return '1 day ago';
    } else {
      return (parseInt(delta / 86400)).toString() + ' days ago';
    }
  }
 
    function twitterCallback(obj) {
        var id = obj[0].user.id;
        document.getElementById('my_twitter_status').innerHTML = obj[0].text;
        document.getElementById('my_twitter_status_time').innerHTML = relative_time(obj[0].created_at);
    }
</script>
<span id="my_twitter_status"></span><br>  <b><span id="my_twitter_status_time"></b></span>

<script type="text/javascript" src="http://www.twitter.com/statuses/user_timeline/YOURUSERNAME.json?callback=twitterCallback&count=1"></script>

Just copy and paste into your site source, and change the parts that say "YOURUSERNAME" into your Twitter username.
If you aren't satisfied you can customize it yourself. I just created it for my own needs, as I said before this shows your latest post with the time.

posted @ Monday, December 10, 2007 4:18 PM | Feedback (1) |

Sunday, October 14, 2007

NAP: Network Access Protection

A recent Channel 9 interview sparked my interest in a new technology called NAP (Network Access Protection) which will be integrated into Windows Server 2008 when it ships next year.

In the interview Jeff Sigman, and Brent Atkison discuss why they created NAP, and how they went about deploying it across Microsoft.

NAP is a technology for controlling network access of a computer host based on the system health of the host by using a variation of health validation servers.

With Network Access Protection, system administrators of an organization's computer network can define policies for system health requirements. Examples of system health requirements are whether the computer has the most recent operating system updates installed, whether the computer has the latest version of the anti-virus software signature, or whether the computer has a host-based firewall installed and enabled. Connecting or communicating computers have their health status evaluated. Computers that comply with system health requirements can communicate with other compliant computers and have normal access to the network. Computers that do not comply with system health requirements will be unable to communicate with compliant computers and can have restricted access to the network.

The one question I had was what the difference was between NAP and any standard NAC applicance.

Jeff replied back stating the differences between the two:
1.) Integrated client available in XP SP3 and Vista.
2.) Able to enforce NAP orthogonally to the logged-on user (since it is an NT service).
3.) 3rd parties can build on top of client and server and extend the scope of what "health" means.
4.) The TCG adopted our Statement of Health (SoH) protocol as a standard - anyone can read the standard and interoperate.


It seems to be a very interesting technology, and I will be testing and fooling around with it here soon as I just downloaded the RC0 build of Windows Server 2008. If you would like to learn more, you can check out the teams blog, the homepage or check out this informative webcast - an introduction to NAP.

posted @ Sunday, October 14, 2007 1:32 AM | Feedback (0) |

Sunday, September 30, 2007

Resetting your whole IP stack in Vista

Scott Hanselman had a useful blog post, listing steps to reset the whole network IP stack in Windows Vista. It solved my problem the first time, so I thought I would pass It along here.

  • Go to the Start Menu, type cmd and right click or (Ctrl + Shift and hit Enter), and select "Run As Administrator"
  • Type the following commands, each followed by pressing enter.
    • ipconfig /flushdns
    • nbtstat -R
    • nbtstat -RR
    • netsh int reset all
    • netsh int ip reset
    • netsh winsock reset
Or another helpful command:
  • netsh interface tcp set global autotuninglevel=disabled
Hope this might solve any problems you might have with Vista's new networking stack.

posted @ Sunday, September 30, 2007 10:01 PM | Feedback (2) |

Saturday, September 29, 2007

Believe

 



New Channel 9 beta refresh. http://beta.channel9.msdn.com
(Silverlight Required to Play video)

posted @ Saturday, September 29, 2007 10:28 PM | Feedback (0) |

Sunday, June 24, 2007

Aggregating Calendars In Sharepoint Services 3.0

I'm currently have a sharepoint server running WSS 3.0 and I have individual team calendars, and also seperate calenders for each user of WSS. What I'm trying to accomplish is when a team leader publishes a new Calendar event, that members that are apart of that team will also get an entry or event notification into there calender that an event was published into the team calendar.


I see no way of doing this unless subscribing to the calendar using Outlook, which would just not be possible. Is there a way to aggregate the teams Calendar RSS feed into individual team members calendar?

posted @ Sunday, June 24, 2007 5:32 PM | Feedback (0) |

Powered by: