FriendRetweet: Automatically Retweet Popular Tweets

Posted on February 15, 2015 by David Hilowitz

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:


  1. Create a Twitter app for yourself at Make sure you create an access token and set your permissions to read-write as well.
  2. php composer install
  3. cp config/example.config config/username.config
  4. Configure the app as follows:
    Config KeyDescription
    consumer_keyYour Twitter consumer key
    consumer_secretYour Twitter consumer secret
    access_tokenYour Twitter access token
    access_token_secretYour Twitter access token secret
    twitter_user_idYour numeric Twitter User id.
    memory_filenameA path to the file where your user’s data will be stored. These files don’t generally get very big.
    native_retweetsA 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

Introducing Tito

Posted on October 20, 2010 by David Hilowitz

Tito ScreenshotHi Everyone,

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.

Please enjoy!


CODE: A ‘Go’ Linked List Implementation

Posted on November 16, 2009 by David Hilowitz

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.

Click here to download:

LinkedListStack.go (1 KB)

RELEASE: Da Metronome 1.0

Posted on September 25, 1999 by David Hilowitz

DaMetroCap 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”.

RELEASE: da Modulator 0.99b

Posted on September 9, 1999 by David Hilowitz

DaModCapDownload 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.”