Posts Tagged ‘twitter’

Eight Questions on Twitter

Published January 7th, 2010.

Why…

  1. is it too slow for real-time communications (that is available on IRC since 1988)?
  2. can’t #hashtags contain unicode?
  3. is there a length limit for my nickname?
  4. can’t I sign on from multiple computers simultanously?
  5. does their web page no auto-refresh?
  6. is it always over capacity?
  7. didn’t they register appropriate country TLDs like .de?
  8. have they shut down their Jabber interface?

    jQuery.postJSON()

    Published October 18th, 2009.
    /*
     * Hello Brandley, tonight I've tried to figure out how to do proper
     * JSON POSTs using "Content-type: application/json" and serialized JSON
     * data in the content portion (body) of my HTTP requests. This is
     * specified in the Twitter API for status updates and Identica JSON
     * webservices (found via Mark Pilgrim).
     * After some tests, I had to recognize that jQuery does not support JSON
     * encoding in the core distribution and aside of $.getJSON(), there
     * is no $.postJSON().
     * Below is an proposed update. As it relies on your json plugin, I'd ask
     * you to add it to your code base so that other jQuery users can benefit
     * of it.
     */
    
    $.postJSON = function(url, data, callback) {
        return jQuery.ajax({
            'type': 'POST',
            'url': url,
            'contentType': 'application/json',
            'data': $.toJSON(data),
            'dataType': 'json',
            'success': callback
        });
    };
    

    visit project