Replace the word apples with the word oranges in fruits.txt: Replace the word apples with the word oranges in multiple text files: Adapted from this page.
Archive for category: Development
Will disable mail service for the domain ‘thedomain.com’. It’s necessary if the domain has externally hosted email, e.g. their own exchange server. will re-enable it.
Copied from this website. For those who are tired of changing their hostname on their VPS after a restart or when it goes down and comes back up. This isn’t a big deal for most, but I use the hostname for Virtuozzo access instead of the IP so it’s more a convenience thing for me. […]
First install Mutt: Now send your message echo “test” | pipes a string to mutt that mutt uses as the message body -s “test” specifies the subject -a httpsd.tar.gz specifies the attachment email@example.com is the email address you want to send to.
I never remember to use this Can be shortened to: Maybe I’ll remember it now…8-)
jQuery 1.5 introduced deferred objects. From the jQuery site: jQuery.Deferred(), introduced in version 1.5, is a chainable utility object that can register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function. I learned about deferred objects recently when I needed to chain two […]
You can use Mustache conditional sections and inverted Sections to emulate if-else functionality. Here’s an example:
I use ‘delete line’ functionality in IDE’s all the time, and I always disliked that Textmate’s keyboard shortcut seemed a little hard to type. Here’s how to change it: Bundles > Bundle Editor > Show Bundle Editor Scroll down to the ‘Text’ bundle and click to expand it Click on ‘Delete Line’ Make sure ‘Key […]
Use a closure This is an example of how I used a closure to keep the context I wanted while binding an anonymous function to a jQuery UI event.