Not so long ago, a co-worker and friend of mine introduced me to the UNIX application,
screen. While I was really excited to learn of something so useful, I was also deeply saddened in realizing that it was right under my nose all this freaking time. In this short post, I’m going to show you how you can take advantage of this clever little utility.
Continue reading “Virtual Terminal Sessions with Screen”
For quite some time, I’ve been hearing a lot of great things about Grunt.js: What it does for automating tasks in the development process; how it is so configurable; the fact that it is open source and driven by such a great community of developers; and how much easier it is to configure compared to other build scripts, such as Ant. I even sat through a great session by Ben Alman (the creator) at the 2012 jQuery Conference in San Francisco.
When I initially took a look at the project and what it would take to get up and running, I was a little intimidated and did not really know where to begin. So, as I usually do in those situations, I put it off. Finally, after about a year of hearing so many positive opinions about Grunt, I decided to just sit down for an afternoon and dig into it. I am so glad I did because I absolutely LOVE it!
Continue reading “Getting Started with Grunt.js”
OS X 10.7 (Lion) introduced a feature called the Character Picker. This allows you to press-and-hold a key on your keyboard, activating a little popup with the different character options associated with that key. This can be a useful feature for some, as it allows you to visually see all of those additional character options and not have to know how to otherwise activate each of them. I, however, found that it was more of a hinderance to my workflow. For example, when I am editing my code in VIM or Vintage Mode in Sublime Text, this feature prevents me from holding down the movement keys (h, j, k, l) to navigate. So I decided to disable it.
Continue reading “Disable the Character Picker in OS X”
Adding spaces in your Dock on OS X is a nice feature that allows you to bring a little bit of visual organization to your icons. It is really easy to accomplish in just a couple short steps. First, you will want to locate your Terminal application. Terminal can be found at
Applications > Utilities > Terminal. Or, for a little shortcut, you can hit
Command + Space on your keyboard. This will being up Spotlight and you can then type in Terminal (or the name of any other application you wish to find) and it will show it up in a list below the search input.
Continue reading “Adding Spaces To Your OS X Dock”
Secure Copy (SCP) is a means of securely transferring files between hosts on a network. It is based on the Secure Shell (SSH) protocol. The command line
scp program, which is provided in most SSH implementations, is the secure analog of the rcp command.
Continue reading “Secure Copy Syntax Examples”
Sed is a UNIX stream editor that can be used to filter text files. This can be extremely useful if you have to run a Find and Replace on a string of text across a large file. I find this to be much more efficient than using a Find and Replace feature in a text editor. It is much faster (especially on very large files) and you can let it run in a separate Terminal tab without holding up your workflow.
Continue reading “Super Fast Find and Replace with Sed”
As a developer, there may be times when you need to monitor what is happening on an Apache server as live HTTP requests are coming in from a web page. In a UNIX environment, you can actually accomplish this quite painlessly through the command line, using the
Tail is a command which outputs the last part of a file and the
grep utility is used for pattern matching.
Continue reading “Viewing Apache Logs with Tail and Grep”
As of version 2.6, WordPress introduced a feature which autosaves your posts as revisions while you are editing them in the dashboard. While this functionality can be very useful, it can also be a bit of an annoyance. If a single post ends up going through multiple edits or simply takes a while to get finished, those revisions can add up. I personally don’t see the need to have billions upon billions (ok, slight exaggeration) of revisions saved for every one of my posts. Additionally, that is just extra information that is getting stored in your database, which you may not need. Disabling this feature or limiting the amount of allowed revisions (which is what I opted for) is actually quite simple. It only takes one line of code in your
Continue reading “WordPress Post Revisions”
Recently a few of my friends have made the switch from using a PC to a Mac for their primary workstation. One of the first things people want to know when making that switch is what applications are available that would help them achieve the most optimal user experience on their new operating system. Since this is such a common concern and one of the first things I would want to know as well, I have decided to post a quick list of my current, personal favorites. These are apps that I typically run through and install right away when setting up a new workstation because they have become such a major part of my daily workflow.
Considering that I am a web developer, some of these listed will apply specifically to my craft and may not quite as be useful to someone outside the field. I, however, have also listed many general-purpose apps that any Mac user may find quite useful.
Continue reading “Must-Have Mac Apps”