News for hackers. Stuff that matters.
Re:Poor man's IFTTT in 3 lines of code by tosh on Tuesday August 28, 2012 @06:50AM (#4442984)
Great use-case for lnotify, haven't thought about that. Feels much cleaner than having cron jobs for conversions like these.
Re:Poor man's IFTTT in 3 lines of code by oker1 on Tuesday August 28, 2012 @06:53AM (#4442988)
With the listen gem you can write crossplatform scripts (http://rubygems.org/gems/listen).
Re:Poor man's IFTTT in 3 lines of code by prakashk on Tuesday August 28, 2012 @02:06PM (#4445023)
For those of Perl persuasion, there are:

    * File::ChangeNotify (https://www.metacpan.org/module/File::ChangeNotify)
    * Filesys::Notify::Simple (https://www.metacpan.org/module/Filesys::Notify::Simple)
Re:Poor man's IFTTT in 3 lines of code by nicholassmith on Tuesday August 28, 2012 @07:14AM (#4443055)
Hadn't come across listen, that's perfect for what I need. I've used notify on Linux but I wanted something a bit more portable for OS X.