Stream

My online stream composed of my del.icio.us, vi.sualize.us, hypem, vimeo, twitter, github, scoop.it feeds



Display: [ALL] or only: [HYPEM] [FLICKR] [VIS.UALIZE.US] [DEL.ICIO.US] [VIMEO] [WP POSTS] [TWITTER] [GITHUB] [SCOOP.IT]

This in Timeouts Setting a timeout on a class method that relies on another class method, causes errors as the callback function loses the reference to this. The solution: hand on the initial this as parameter to the callback.
{

empty: function() {
   return true;
},

process: function(self) {
   if(!self.empty()) {
       setTimeout( function() {
           self.process(self)},
           3000);
        }
    }
}

}
edit wp | stream | code Wed, 16 Nov 2011 17:05:12
WP_MEMORY_LIMIT If adding
define('WP_MEMORY_LIMIT', '256M');
in /wp-config.php doesn't help, edit the limit in /wp-includes/default-constants.php instead:
if ( !defined('WP_MEMORY_LIMIT') ) {
  if( is_multisite() ) {
    define('WP_MEMORY_LIMIT', '64M');
  } else {
    define('WP_MEMORY_LIMIT', '256M');
  }
}
No more Fatal error: Allowed memory size of 33554432 bytes exhausted ...
edit wp | stream | code Fri, 20 May 2011 22:00:44
json_en/decode in PHP4 A fix to use json_encode() and json_decode() on servers only running PHP4 can be found and downloaded at Using json_encode() and json_decode() in PHP4. edit wp | stream | code Wed, 02 Nov 2011 12:48:55
path / thispatcher How to output the file-path of your current Max/MSP file:
[loadbang]
|
(path)
|
[thispatcher]
            |
            C:/Users/eva/...
edit wp | stream | code Wed, 04 May 2011 20:24:35
SimpleDateFormat Fri Oct 28 2011 > 20111028
DateFormat df = new SimpleDateFormat("E MMM d yyyy");
Date day = df.parse("Fri Oct 28 2011"); 

SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
String newFormat = format.format(day);
edit wp | stream | code Fri, 28 Oct 2011 13:27:30
If file_get_contents() doesn’t work … ... simply replace it with this:
function new_file_get_contents($url) {
$ch = curl_init();
$timeout = 10; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
return $file_contents;
}
via
edit wp | stream | code Mon, 14 Mar 2011 15:37:04
@transform_reset 1 After frustrating for a while why my jitter.noise just doesn't look proper when send to render on a videoplane, i finally stumbled over the solution: transform_reset!
[jit.gl.videoplane z 
@transform_reset 1]
edit wp | stream | code Fri, 08 Jul 2011 20:57:04

Comments are closed.