Codec ░ PHP

319Chaning Colors in Twitter with the API

require "twitter.lib.php";

$username = "trembl";
$password = "••••••••";

$twitter = new Twitter($username, $password);

$options = array(
	"profile_background_color" => "fff",
	"profile_text_color" => "fff",
	"profile_link_color" => "fff",
	"profile_sidebar_fill_color" => "fff",
	"profile_sidebar_border_color" => "fff"
);

$update_response = $twitter->updateProfileColors($options);
print_r($update_response);

Nice, isn’t it?

303singleTap: and private API 265Like explode(), only componentsSeparatedByString: 175Curling Images at Twitter 98PHP-cgi wrapper 85Calling ImageMagick from PHP

265Like explode(), only componentsSeparatedByString:

PHP
explode(“, ” , “One, Two, Three”);

Objective-C
NSArray *listItems = [@"One, Two, Three" componentsSeparatedByString:@", "];

319Chaning Colors in Twitter with the API 289Simulating Keyboard & Mouse Events. And Key-Modifier Events 275UIWebView – checking when user clicks a link 269Caching on Objective-C with NSURLCache 259The mystery of self.* – resolved?

98PHP-cgi wrapper

http://wordpress.org/support/topic/217411

http://www.pair.com/support/knowledge_base/authoring_development/system_cgi_php-cgiwrap.html

319Chaning Colors in Twitter with the API 265Like explode(), only componentsSeparatedByString: 85Calling ImageMagick from PHP

85Calling ImageMagick from PHP

Getting ImageMagick to work by calling system() in PHP turned out to be more troublesome that originally assumed. Of course, Safe-Mode has be off, the dirs need to have the appropriate permission, and the absolute paths to ‘convert’ and your files should be set.

But still, it would not work. Despite executing directly in the shell quite nicely. The revelation came late, but better than never:

IM apparently hate single quote ‘ ‘, and absolutely insists on double quotes ” ” to wrap it’s arguments in.

Can not really say, that this is well thought out… Anyways…

319Chaning Colors in Twitter with the API 265Like explode(), only componentsSeparatedByString: 98PHP-cgi wrapper