Feb 26 2010
New Improved Development Environment!
I finally got my home development server completely updated, including a freshly compiled Gentoo hardened kernel! Now that I’ve got my server setup and working smoothly again, I started looking into the IDE side of the equation so I could do PHP web development on my laptop.
So after looking around a bit, I stumbled upon the idea of using Eclipse to do PHP development. In the past I have disliked Eclipse due to it’s tendency to have problems with it’s workspace “.metadata” files over time, along with it’s slowdowns and/or freezing. However, after seeing a presentation about Mylyn I reconsidered. After looking up some other plugins, I was convinced that Eclipse is definitely worthy of a second look. What’s Mylyn you ask? In a nutshell: Mylyn is a task oriented plugin to Eclipse, giving you the benefit of saving what files & tabs you have open in Eclipse for a specific task. A task can be anything, a bug report in Bugzilla that you’re working on, or simply a powerpoint presentation (An example given in the presentation with Tasktop Pro, the fully featured task oriented desktop app from Tasktop Technologies).
Why am I reconsidering Eclipse? Well for starters:
- It’s built on Java, so I won’t be tied to using Windows for my laptop forever (Eventually I’m looking into getting a Mac)
- Mylyn allows integration with Bugzilla, along with a solution to my constant “too many tasks with too many tabs” problem.
- It includes built-in task scheduling features, perfect to start training myself to do better time management.
- Allows for developers to share “contexts” for each task (or bug) with one another, allowing for easy views on what parts of the code a bug/feature affects. Collaboration is made that much easier!
- The PHP Development Tools (PDT) project gives PHP code completion, PHP debugging (once you install an apache server library), and all the other nice standard features of Eclipse. For the Apache module, you’ve got the choice of either the free & open source XDebug or the binary blob Zend Debugger.
- The Subclipse plugin (Modern Git Repo) allows for nice integration with SVN (although I prefer git, I am forced to use for a couple projects). I was also familiar with using this plugin in my college’s Software Development class, where we used Eclipse & SVN to do Agile Java programming with many different teams over the course.
- The Ajax Tools Framework (ATF) gives many of the features that the FireBug plugin for Firefox supports including: DOM Inspector, JavaScript Debugging, live CSS style editor, and all that good stuff. It does this by embedding Mozilla into Eclipse!
I’m really excited to start debugging PHP code on the server. Previously I’d been using jEdit, an SSH terminal, and Firefox to develop. This upgrade should improve my productivity a lot.
Oct 22 2012
Installing latest git on Ubuntu with git-subtree support
Recently I found it necessary to join two git repos together while still maintaining history & future ability to split or rejoin them. Enter the ‘
git subtree
‘ command.Because this command is now merged into git-core since 1.7.11, we will need to install the latest git from a PPA. Note that as of ‘now‘, the latest available package from the PPA we will use is 1.8.0, and it currently installs the subtree script to
/usr/share/doc/git/contrib/subtree
. However, since the Makefile there expects asciidoc.conf to be in../../Documentation/asciidoc.conf
, we must checkout the source package & make from there.I am using Ubuntu 12.04.1 LTS here.
Installing latest git-core + git-subtree
First add the PPA, update & upgrade. Then install git packages that are held back by apt. Also install asciidoc (optional if you want the manpage).
Next, install the source package & make git-subtree + manpage:
This may not work for you if you’re not using Ubuntu (your prefix or libexec dir may be different). If in doubt, get git-core from upstream and build it from there, or install the script to
$(git --exec-path)/git-subtree
andchmod 755
it (see Makefile & INSTALL doc incontrib/subtree
).Now you should be able to use the ‘
git subtree
‘ command. For help, run ‘git help subtree
‘ or ‘man git-subtree
‘.Some helpful examples of
git subtree
in use in the wild:Update 2012-10-22: Currently the package for git 1.8.0 from the PPA does not include the
git-prompt.sh
script. If you are using the__git_ps1
function in your bash prompt, you’ll need to get the source package and find that file in/home/jcuzella/src/git-core/git-1.8.0/contrib/completion/git-prompt.sh
. Install that file somewhere under your home directory and then add a line to your.bashrc
file to source it. You’ll know if you need it because you’ll probably see this message after installing latest git:By Administrator • Projects, Software • Tags: git, linux, programming, subtree, ubuntu