Gist TextMate 2 Bundle Updates

New updates to the Gist.tmbundle for TextMate 2:

  • Changed the launch key from ⌃⌘G to ⇧⌃⌘J as it interferes with the Find and Replace All (the TextMate 2 defaults changed)
  • Am now having GitHub guess the language of a “Gist from Selection” by taking the file extension from the source file you copied from and using that in the pushed file name. Was hoping to use the scope language but could not figure how to get that and map the right extensions for GitHub. This works though.

The update should flow through the TextMate 2 updates process in due time.

Read on →

Unreasonable

There are two ways to deal with “the ways things are” in an environment where one can change them:

  • Find some way to justify or meekly accept them, however twisted and delusional they may be; and try to get on with things within those perceived constraints. They call this being reasonable as if it were a good thing.

  • Or find a better, considered, simpler way for things, which requires effort, argument, time, and sometimes blood; enabling one to actually get on with things with fewer constraints. They call this being unreasonable is if it were a bad thing.

    Read on →

Quick Process Search

I am forever starting and running background UNIX tasks, either manually or via cron jobs. And I am forever checking to see if they are running or not.

The usual command I used to use see if a process was running is

ps ax | grep bash

Where bash is the process that may or may not be running. It gives (headers added):

  PID TTY         TIME    CMD
  411 ttys000    0:00.04 -/bin/bash
  615 ttys001    0:00.04 -/bin/bash
  773 ttys001    0:00.00 grep bash

There are some issues with this:

Read on →

Laravel 4 Blade TextMate Bundle

In the comments of My TextMate 2 Setup, reader Bob Rockerfeller wondered if the Sublime Text Laravel 4 Blade bundle could be ported to TextMate 2. So I did.

It was easy because Sublime Text uses TextMate’s .tmLanguage file format for syntax highlighting. I just created a new bundle using the Bundle Editor, created a new Syntax file and pasted in Eric Percifield’s (@medalink7) code. Then tested it with the example in his repo.

Read on →

The Work Computer Software Loadout

I got Back in the Saddle over three weeks ago and purchased a new Haswell 13-inch MacBook Air as my primary work computer. I plan to write more about it after at least 30 days use. But with the new computer, my plan was to only install that which I needed as and when I needed it. It turns out, I use a lot of different tools for work activities.

Note: No affiliate links were hurt in the creation of this post, all links are to the vendor’s sites, so it’s safe to click through to learn more about each product.

Read on →

Fast SSH Windows with iTerm 2

I have a bunch of Linux boxes that I need to access via SSH, whether to install things, start or stop processes or browse log files.

But it is a pain to have to launch a new terminal window and type in the whole SSH command line:

$ ssh hiltmon@servername.domainname.local

Yep, I am that lazy. Or really, I do this so often I needed a faster way to do this.

Read on →

Xcode 4 Code Completion for External Build Projects

In Xcode and the Simple C++ Project Structure, I showed how to set up Xcode as your IDE for the Simple C++ Project Structure.

But one thing does not work, Code Sense. Xcode does not provide code completion or jump to definition for these projects.

Wouldn’t it be nice if we could enable this too.

The solution is simple, you need to use the Xcode build system to create the indices that the IDE uses. But since we are working on cross-platform Makefile systems, we do not want to switch compilers.

Read on →

Good Tools Change

In Good Tools, James Bennett writes a compelling article on how his investment in learning his most used tool, emacs, has paid huge dividends in his productivity for years and years. I recommend you read it, his arguments are cogent and his points well founded and well made. He writes:

Good tools, for programmers, are investments: you give them your time and your brain up-front, and then they pay dividends for years on end. I’m writing this post in GNU Emacs inside a terminal window, for example, and GNU Emacs inside a terminal window has been my day-to-day editor for over a decade now.

Read on →

Xcode and the Simple C++ Project Structure

In a previous post, I talked about a A Simple C++ Project Structure that I am using to create a bunch of high-speed daemons for work.

It’s been fun using TextMate 2 and a Terminal to make and run the project, but now that I am getting to the meat of the coding, I’d prefer to use an IDE to help me navigate and debug the code.

Here’s how to set up Xcode 4 on the Mac to compile using our Makefile and run/debug the application.

Read on →

Using the Spike Folder

In yesterday’s post A Simple C++ Project Structure, I mentioned the spike folder. In today’s post, I’ll write more about how I use it.

By the way, I have previously written about spike solutions, wherein I create solutions for the bigger technical problems at the start of a project to be sure they are achievable. This is different.

In this case, being back in C++ and rusty as an old door hinge, I also needed to create and test out snippets of code I could be using without having to make and run the entire product. So I create spike .cpp files in the spike folder to try things out.

Read on →