Archive for April, 2009

Salesforce.com and Subversion

April 29th, 2009 | Category: Computers

From what I’ve been able to tell, there is no real version control built into Salesforce.com and this is a problem when pushing from a sandbox instance into a production instance.  To fix this problem (at least until Salesforce does something), I think the best option is to use the Force.com plugin and the Subclipse plugin for Eclipse.  With both of these in place, it should make version control a reality.

  1. Install Eclipse for your platform (it’s eclipse-platform if you are using Fedora)
  2. Install both the Force.com and Subclipse plugin (eclipse-subclipse)
  3. Add your Force.com project to Eclipse (Howto)
  4. Add your SVN repo to Eclipse.  (Howto)
  5. Share your Force.com project (Right-click on Project name -> Team -> Share Project -> SVN -> Choose repo)
  6. Then after updating a file in the Force.com project, commit the update to SVN before deploying to the server ()

Now if you want to use this in another Eclipse instance then, you’ll want to do the first two steps to prepare your Eclipse environment.  Then:

  1. Add the existing SVN repo to Eclipse (Howto)
  2. Right click on the Project Force.com -> Project Properties   and update the username / password

When using this in a collaborative setting, the following workflow should be followed whenever possible.

  1. Team -> Update
  2. Make changes to code
  3. Team -> Update
  4. Make changes to resolve collisions if needed
  5. Team -> Commit
  6. Force.com -> Deploy to Server
No comments

TF2 Server

April 24th, 2009 | Category: Computers, Linux

Just setup a TF2 server following this article

In Fedora, you need to do the following as root before running any of the commands from the article

ln -s /usr/bin/gunzip /usr/bin/uncompress

Now.  To figure out how the server.cfg

No comments

Mutt and Lynx

April 21st, 2009 | Category: Linux, mutt

So, in my time with mutt, I have grown to have a disdain for people that send HTML only email.  And surprisingly, this happens alot!  So, instead of trying to change the world, I’ve decided to just use mutt and lynx to my advantage and call it a day.  Thanks to one of my co-workers for showing me how to do this.

At the end of your ~/.mailcap file, add the following

text/html; lynx -dump -width=78 -nolist %s | sed ’s/^   //’; copiousoutput; needsterminal; nametemplate=%s.html

Then, in the ~/.muttrc add

auto_view text/x-vcard text/html text/enriched

And restart mutt.  This will use lynx to render the email.  You can substitute lynx for any text-based html browser you’d like.

No comments