FriendRetweet is a command-line PHP script that allows you to automatically retweet the most popular tweets of the people you’re following. Each time it is run, the app will scan your users home timeline and find the most popular tweet since the last time it was run. It will then retweet that tweet.
Download the script here: https://github.com/Decidedly/FriendRetweet
- Create a Twitter app for yourself at https://apps.twitter.com. Make sure you create an access token and set your permissions to read-write as well.
php composer install
cp config/example.config config/username.config
- Configure the app as follows:
Config Key Description
Your Twitter consumer key
Your Twitter consumer secret
Your Twitter access token
Your Twitter access token secret
Your numeric Twitter User id.
A path to the file where your user’s data will be stored. These files don’t generally get very big.
A value of true causes native tweets, a values of false causes us to simply tweet the same text as the source tweet.
Running the App
From the command-line, type this:
php FriendRetweet.php --config configs/username.config
I wanted to introduce the first of what I hope will be several Chrome Experiments (prediction: all HTML5, and all music-related). It’s called Tito, and you can play with it here.
What is it? It’s an early prototype for a musical instrument that uses a bouncing ball gravity model to trigger and manipulate audio samples. It’s an instrument that designed to be played as chord accompaniment for a lead instrument. You “play” the instrument by clicking the chord buttons on the right. Note for music geeks: 7ths and Dim notes are provided with each chord, but muted by default. Click on the notes at the bottom of the bouncing ball graphs to enable them.
Requirements: Tito requires Chrome, Safari, or Firefox. Also, Tito requires Flash as the audio portion is still being done in Flash (Currently Firefox 4 is the only browser to have an HTML5 spec for audio data, alas.)
Here are the new features I’m working on for the next version:
- Ability to choose between multiple different sample sets.
- Option to retrigger all the balls on each chord change.
- Ability to position falling balls by clicking on them and letting go. Done! 10/21/10.
- Sliders for changing gravity settings.
- And finally, whatever features you want. @reply me on twitter (@dhilowitz).
Ability to mute specific balls.Done! 10/19/2010. Ability to change chords.Done! 10/1/2010.
So I’ve been experimenting with Google’s Go programming language. So far I’m liking it quite a bit. Here’s a rudimentary implementation of a Stack I made using a Linked List. As you can see, I’ve defined two interfaces — one for the Linked List functionality and one for the Stack functionality — but I haven’t implemented either fully. There’s also a main() function thrown in to demonstrate the functionality. Right now the Linked List only stores integers, but this could be changed very easily.
Download Da Metronome 1.0 (21k) – A metronome program for Windows 95 / 98 / XP. It lets you select between the built-in sound, the PC speaker, and your own wave file. It also features a drop-down menu to let you selected the priority of the program (for better timing accuracy). Requires file “mfc40.dll”.
Download DaMod 0.99b (40k) – A modulation experiment kit. It generates different waveforms and allows the user to export these to a wave file. Much cooler is that the user can also choose modulate an external wave file with the currently selected waveform settings. Lots of experimental sounds can be made this way. Great for electronica/hip-hop production. Still being beta-tested. Requires: Microsoft DirectSound for playback (but wave export will work fine without) and file “mfc40.dll.”