I’ve been writing tons of Ajaxy goodness lately, lots of concurrent projects each in a different folder, a different drive - and honestly I’m just too lazy to stop and start MAMP or Web Sharing, really I’m that lazy, so I thought it would be pretty handy a AlfredApp extension that would make running a HTTP server from any directory an simple as a keypress.

Usage: Evoke Alfred, Choose a folder, choose the action, Safari will/should open to ‘localhost:8080’ with your directory as the root, if your directory has a index (html/htm) file that should run.

Simple HTTP Server with AlfredApp

So Alfred 0.9.9 was recently released, it’s awesome - and it get’s better with every release. One of the new features is that it supports extensions (applescripts, shell scripts, automator actions, specific file references and search filters) here’s 2 that I knocked together rather quickly.

  • Hide / Show Desktop: this shows and hides the files that may be on your desktop, handy for those times when you need to focus - it does it’s mojo by setting a finder flag on and off, your files are uneffected
  • Ignore this file with Alfred: this extension is most useful via the files actions interface - I use it to clean up my Alfred search results - search a file, select some of the extraneous result that occassionally happen select this action and those unwanted results shouldn’t include the acted upon file next time.

Stop back to this post from time to time, as I’ll certainly be writing a few more of these

Alfred 350x206 Texting & Tasking with AlfredI’m ashamed at how many task management scenarios I’ve explored, you name it I’ve used it - the three constants throughout my arduous journey have been TaskPaper, Notational Velocity & Dropbox - as I’m so fond of saying, “it’s not pretty but it works” One element that’s been missing is a quick low-fat way to drop items into my text files to deal with later, I’m not fond of keeping TP or NV running all the time, as I find a task list in my face distracting and somewhat (strangely) intimidating.

Last week the awesome folks at Alfred (@alfredApp) released 0.9 of Alfred, my launcher of choice - and via my PowerPack license I can run shell scripts, global commands and other assorted tasty tidbits. Today I had a few minutes, so I knocked together a quick append to text file function so I can add my tasks to my list while ‘in the moment’

echo "{query}" >> /Users/you-username-goes-here/path/text-file-name.txt

as easy as that.. more soon.. stay tuned

UPDATE

Some people may want to prepend as opposed to append, this seems to work.

echo "{query}" | cat - /Users/you-username-goes-here/path/text-file-name.txt > /tmp/tempfile && mv /tmp/tempfile /Users/you-username-goes-here/path/text-file-name.txt

Another Update

now packaged as an extension here

So you may not know it but if you’re a subscriber to Comcast’s Broadband Internet you have a 250GB a month monthly allotment, and if you’re anything like us, you may be close to maxing that out every month.

  • A small home based business (1 person)
  • video chat 5-6 times a month
  • 5 Computers with dropbox accounts
  • 2 TiVos with netflix
  • Pandora Radio
  • and the occasional binge on Hulu

I don’t think that’s really excessive, that’s just life in 2011 - especially during a cold winter, we can easily watch 5 movies a weekend. But as of late I’ve been bumping right into that limit - and suspect that sooner rather than later I’ll have to make a decision as to if I’m going to continue doing business with Comcast, or move to a competitor, I’d like to continue with Comcast but I have 2 issues.

Issue One with the Comcast 250GB Cap:

I pay for increased speed (Blast package) doesn’t it make sense that with the ability to consume their product at faster speeds, the cap should increase? If they’re going to cap consumption - the math needs to be fair (and I’ll leave it to you to do the math) Calculate the time it would take to consume the 250GB at the base price speed, take that time and calculate how much each paid tier can consume in that same time period, IMHO THAT should be the cap.

Issue Two with the Comcast Broadband Cap:

They certainly don’t cap any of their other services, want to watch PPV 24 hours a day all month long - they’ll probably send you a holiday card, talk on the phone for 250 straight hours - awesome, but use the internet everyday, all day, and they’ll shut you down.

A simple bookmarklet to isolate the new posts on OneUpMe.com, a facebook driven wordplay game, I’m fairly addicted too.

Show New OUMs

(drag this to your bookmarks bar or right-click and add to bookmarks)

If you read THIS article (and possibly used the provided code) you may have found yourself in the same situation I was in tonight - a client WP site with 300 posts each with the titles typed in all caps (what can I say?, THEY, LIKE TO SHOUT) and a handful of pages with titles that included words that actually should be capitalized, we didn’t have an opportunity to discuss as to exactly what kind of words needed to be capitalized - but it turned out that I could just avoid the issue entirely by specifying out capitalization function explicitly - as opposed to filtering all requests for the_title(). So kill off the filter for friendlycae.

Like so (from the template)
friendlycase(get_the_title());

Reality Check

I’m pretty sure at some point in the near future all those capitalize titles will come back to cause pain, but for now (and for launch) this seems to be adequate, but I know it’s only a matter of time.

Search your remote Library and create a playlist based on your search - and of course play your playlist, knowledge gleaned from Doug and Rory

[text]
— you’ll want to set this line to reflect your remote machine info
set remoteMachine to "eppc://username:password@machinename.local"
set keyword to "Gogol Bordello"
display dialog "Search:" default answer keyword
set vol to text returned of the result
using terms from application "iTunes"
tell application "iTunes" of machine remoteMachine
set my_search_results to (search library playlist 1 for keyword)
if my_search_results is not {} then
set myList to make new playlist with properties {name:keyword}
set sel to a reference to my_search_results
repeat with aTrack in sel
set thisTrack to (get location of aTrack)
set dbid to (get database ID of aTrack)
add thisTrack to myList
end repeat
set currentList to playlist keyword
play the playlist named keyword
reveal current track
end if
end tell
end using terms from
[/text]

Two obvious TODO’s in my code - it doesn’t do muchANY error checking so although iTunes does seemed to care if you have multiple playlists sharing a name (meaning it doesn’t overwrite them) THAT might not be what you’re intention. I’ll probably be fixing that at a later date. Lastly it doesn’t offer any feedback - which I suppose is fine, but not very me so I’ll probably add some GROWL notification in regards to if the playlist was created and how many tracks were added.

Again really just scratching the surface here, and Doug & Rory did all the heavy lifting on this one.

alfred Alfred, To The Bat Cave...I’ve blogged about Alfred once before, it’s a great little launcher - the fact that it uses Spotlight comments to tag/exclude/group apps and files for launching is IMHO it’s killer feature - being able to group all your tools AND files/documents together makes Alfred a awesome workflow tool, but I’m not here to talk about work, well not exactly - take a look at the pic at the top of this post - 6 small apps (whose code I gleaned from here), each app controls playback and volume of my Jukebox G4 Laptop, all linked together with the spotlight keyword ‘JUKE’ those combined with GROWL makes for a really powerful combination, I can control every aspect of playback of the jukebox - and get feedback as to what’s currently playing without ever taking my hands off the keyboard. I wasn’t able to find that exact Functionality anywhere else, and because I run Alfred and Growl anyway there’s ZERO OVERHEAD.

This only really scratches the surface of what’s doable, so stayed tuned. At some point in the future I’m sure Alfred will allow us to pass arguments to scripts (ala Launchbar) at that point I’ll write scripts that Spotlight tags selected files into Alfred groups, and the universe will recursively collapse upon itself.

(Icons by David Lanham)