“Show me your friends, and I’ll show you your future.”Bill Cosby
SourceIn your ruby script, start with this line:
#!/usr/bin/ruby -W0Don’t even think of lecturing me on the wisdom of this. Sometimes I just want to write one-off scripts and have them read files from globally writable directories.
SourcePHP for Android project (PFA) aims to make PHP development in Android not only possible but also feasable providing tools and documentation. The project already have an APK which provides PHP support to Android Scripting Environment (ASE).
APK and source code both available at http://phpforandroid.net. Minimum requirement to get PHP for Android running is Android 1.5 phone or emulator. There is even an unofficial ASE build with PHP 5.3 support included. Now Rasmus can get an Android phone and start scripting on mobile.
Developers: OAuth support
For increased security and more resilient third-party apps, we’ve started early testing of OAuth support in the Tumblr API.
We’ve modeled our implementation after Twitter’s in many ways, supporting OAuth 1.0a with optional xAuth, upon request, where it makes sense such as mobile and native applications.
The existing authentication methods in the API are still supported for now, but we encourage developers to migrate to OAuth when possible.
To get started with Tumblr’s OAuth, integrate an OAuth consumer library into your project and get a consumer key by registering your app.
This is still in its early testing stages, so please report any issues. Thanks.
cd [your git repo]
git instaweb --httpd webrick
SourceWatching a lighting talk of the Mountain West Ruby Conf, and this guy walked up and demoed this one command!
git instaweb --httpd webrickautomatically launch a web server and browser to your get repository!
Way Cool!
DIY of the Day: The Pencil iPad Stand: Six pencils + Four rubber bands = Twenty extra dollars in your wallet.
geekygadgets