... http://blog.slimeslurp.net Most recent posts at ... posterous.com Sat, 03 Jul 2010 16:19:23 -0700 Baby Watermelon http://blog.slimeslurp.net/baby-watermelon-0 http://blog.slimeslurp.net/baby-watermelon-0
Image

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Thu, 17 Jun 2010 18:06:25 -0700 Switched to posterous http://blog.slimeslurp.net/switched-to-posterous-3 http://blog.slimeslurp.net/switched-to-posterous-3 I've switch from WordPress to Posterous.  Hopefully I didn't break too much stuff.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Tue, 13 Oct 2009 17:52:00 -0700 TextMate command for generating ActionScript getter/setters http://blog.slimeslurp.net/textmate-command-for-generating-actionscript http://blog.slimeslurp.net/textmate-command-for-generating-actionscript

Based on this

I just changed the format of the code to match the existing code at work.

Command configuration:

Save: nothing

Input: Entire Document

Output: Insert as Snippet

Activation: Choose whatever you want, personally I prefer using “get” as a Tab Trigger

Scope Selector: source.actionscript

Command:

#!/usr/bin/ruby
txt = STDIN.read
vars = txt.scan(/^\W*(private|public){0,1}\W*var\W*\_(\w*)\W*\:\W*(\w*)/)

ascript = <<-EOF
tell app "TextMate" 
    activate
    choose from list { %s } with title "Variable auswaehlen" with prompt "Welche Variable als Basis benutzen?" 
end tell
EOF

displayList = []
varList = []
vars.each_with_index do |x,i|
    scope = x[0]
    name = x[1]
    type = x[2]
    urStr = ""
    if ( scope != nil )
        urStr += "(" + scope.capitalize() + ") "
    end
    urStr += "_" + name
    if ( type != nil )
        urStr += " : " + type
    end
    displayList.push( urStr )
    varList.push( { "name" => name, "type" => type } )
end

list = '"' + displayList.join( '", "' ) + '"'
ascript = ascript % list
params = "<< 'AS'\n #{ascript}\nAS"

cmd = open("|osascript" + params)
result = cmd.gets.chomp()
cmd.close

if ( result == "false" )
    exit
end

index = displayList.index( result )
item = varList[ index ]

getter = <<-EOF
public function get %s():%s{
    return this._%s;
}
EOF
getter = getter % [ item[ "name" ], item[ "type" ], item[ "name" ] ]

setter = <<-EOF
public function set %s(value:%s):void{
    this._%s = value;
}
EOF
setter = setter % [ item[ "name" ], item[ "type" ], item[ "name" ] ]

snippet = getter + "\n" + setter
print snippet

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Sun, 13 Apr 2008 02:52:40 -0700 TeamCity notifications via Growl http://blog.slimeslurp.net/teamcity-notifications-via-growl http://blog.slimeslurp.net/teamcity-notifications-via-growl I've written a custom notification plugin for TeamCity that will send build notifications via Growl or JGrowl. You can get a copy here: http://code.google.com/p/tcgrowl/

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Sun, 06 Jan 2008 03:47:29 -0800 growlbuildlistener version 0.4 http://blog.slimeslurp.net/growlbuildlistener-version-04 http://blog.slimeslurp.net/growlbuildlistener-version-04 Just uploaded a new build of growlbuildlistener which fixed a problem with the build listener that caused it not to work. Check it out: http://growlbuildlistener.googlecode.com/files/growllistener-0.4.jar

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Fri, 07 Dec 2007 03:46:01 -0800 Awesome e-book management, calibre (formerly known as libprs500) http://blog.slimeslurp.net/awesome-e-book-management-calibre-formerly-kn http://blog.slimeslurp.net/awesome-e-book-management-calibre-formerly-kn If you've got a Sony Reader, and don't like Sony's book management app (or you don't run Windows) you should definitely check out calibre. It lets you manage your ebook library, convert files to the Sony Reader format, tweak metadata about your books, manage the books on your Reader, preview the books. It will even download some newsfeeds and put them on your reader. It's open source, written in Python and runs on Windows, Linux and Mac OS. It also contains command line apps to do format conversions and to transfer books to the Reader. It just plain kicks ass. NOTE: libprs500 was recently renamed calibre. Different name, same awesome app.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Tue, 23 Oct 2007 02:46:48 -0700 Moved to Word Press... http://blog.slimeslurp.net/moved-to-word-press http://blog.slimeslurp.net/moved-to-word-press I moved this blog from slimeslurp.net/drupal to blog.slimeslurp.net.  It is now running on Word Press.  Drupal was overkill for what I was using it for.  File links for some things are currently broken.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Tue, 10 Apr 2007 18:39:37 -0700 New version of growlbuildlistener released http://blog.slimeslurp.net/new-version-of-growlbuildlistener-released http://blog.slimeslurp.net/new-version-of-growlbuildlistener-released Just released a minor update to growlbuildlistener. GrowlEcho now supports an optional sticky attribute to create "sticky" notifications. Also, GrowlListener looks for a build property called "gbl.endsticky" which, if set, will cause the Build Finished notification to be sticky. Check it out: http://growlbuildlistener.googlecode.com/files/growllistener-0.3.jar

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Sun, 18 Mar 2007 16:18:23 -0700 Ant build notifications via Growl http://blog.slimeslurp.net/ant-build-notifications-via-growl http://blog.slimeslurp.net/ant-build-notifications-via-growl I've created a custom BuildListener for Ant that provides Growl notifications when your builds start/stop. It uses the JGrowl library to send messages. JGrowl also provides a Growl like notification system for any Java platform. I've also created an Ant task similar to <echo> that lets you send messages to Growl during your builds. You can get it here: http://code.google.com/p/growlbuildlistener/

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Wed, 24 Jan 2007 20:33:05 -0800 Upgraded to Drupal 5 http://blog.slimeslurp.net/upgraded-to-drupal-5 http://blog.slimeslurp.net/upgraded-to-drupal-5 Just upgraded to Drupal 5. Looking for a new theme.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Thu, 30 Nov 2006 06:31:00 -0800 Ant build file completion for Fish. http://blog.slimeslurp.net/ant-build-file-completion-for-fish http://blog.slimeslurp.net/ant-build-file-completion-for-fish

Here is a VERY basic completion for

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Mon, 20 Nov 2006 07:54:13 -0800 Upgraded to 4.7.4 http://blog.slimeslurp.net/upgraded-to-474 http://blog.slimeslurp.net/upgraded-to-474 I just updated this drupal installation to 4.7.4.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Wed, 30 Aug 2006 17:47:26 -0700 Emacs+XFT http://blog.slimeslurp.net/emacsxft http://blog.slimeslurp.net/emacsxft Here is how I went about building a version of Emacs that has XFT support on Ubuntu 6.06. Install the latest GTK Emacs snapshot: sudo apt-get install emacs-snapshot-gtk Check out the emacs-unicode-2 branch into /opt: cd /opt
sudo cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs co -remacs-unicode-2 emacs
Configure and build: ./configure --prefix=/usr --enable-font-backend --with-xft --with-freetype --with-gtk --x-includes=/usr/include/X11 --x-libraries=/usr/lib/X11
sudo make bootstrap
sudo make
Update /etc/alternatives to point to the new binary: sudo rm /etc/alternatives/emacs
sudo ln -s /opt/emacs/src/emacs /etc/alternatives/emacs
References: http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs
http://ubuntuforums.org/showpost.php?p=1051268&postcount=53
http://www.emacswiki.org/cgi-bin/wiki?action=browse;oldid=EmacsCvs;id=EmacsFromCVS

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Wed, 16 Aug 2006 20:02:47 -0700 gtzCode http://blog.slimeslurp.net/gtzcode http://blog.slimeslurp.net/gtzcode gtzCode is a Firefox extension that makes it easy to enter markup used by the GameTZ forums. This extension is based (i.e. copied from) on MLL's last.fmCode extension, which is in turn based on BBCodeXtra. This extension shares the same limitation as last.fmCode. You can't have BBCodeXtra (or last.fmCode) installed at the same time. This is alpha software. It works for me on Firefox 1.5/2.0 under Linux and Mac OS. I'm not responsible if it destroys your computer. Released under the GPLv2. Thanks to bob for the idea and pointer to last.fmCode.

Download latest (0.5):
https://addons.mozilla.org/firefox/3190/ Changelog: Version 0.5:
  • Support for Firefox 2.0
  • Fixed user tag
Version 0.4:
  • Added support for game, movie, music, book and tracking tags
  • Reorganized the menu
  • Packaged content up in a jar (saved around 10k! Yipee!)
  • Some code cleanup

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Wed, 08 Mar 2006 12:51:37 -0800 Some Sogudi Shortcuts http://blog.slimeslurp.net/some-sogudi-shortcuts http://blog.slimeslurp.net/some-sogudi-shortcuts Here are some Sogudi shortcuts I use. You might find them useful.

Shortcuts for Trac Shortcuts for GameTZ.com

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Wed, 08 Mar 2006 12:50:59 -0800 Stuff http://blog.slimeslurp.net/stuff-920 http://blog.slimeslurp.net/stuff-920 Random stuff...

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Tue, 01 Nov 2005 10:49:53 -0800 About http://blog.slimeslurp.net/about-4042 http://blog.slimeslurp.net/about-4042 Name: Nate Drake Location: Pittsburgh PA Editor: TextMate or Emacs Pictures: [http://www.flickr.com/photos/ndrake/](http://www.flickr.com/photos/ndrake/) Music: [http://www.last.fm/user/nate_drake/](http://www.last.fm/user/nate_drake/) RSS Subscriptions: [http://www.bloglines.com/public/ndrake](http://www.bloglines.com/public/ndrake) Bookmarks: [http://del.icio.us/ndrake](http://del.icio.us/ndrake) Games: [http://gametz.com/user/ndrake.html](http://gametz.com/user/ndrake.html) All Consuming: [http://www.allconsuming.net/person/ndrake/](http://www.allconsuming.net/person/ndrake/) Everything all on one page: [http://ndrake.suprglu.com/](http://ndrake.suprglu.com/)

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake
Mon, 31 Oct 2005 21:31:26 -0800 Welcome http://blog.slimeslurp.net/welcome-10433 http://blog.slimeslurp.net/welcome-10433 Welcome to my website. Use the links at the top to navigate. Thanks!

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/507061/fuzzbomb.gif http://posterous.com/users/36UMLfm00FwZ Nate Drake nate Nate Drake