Browsing all articles from June, 2011

Configuration for mailjet email delivery with Ruby on Rails

Posted Posted by Wes in Blog, Ruby, Ruby on Rails     Comments No comments
Jun
7

Setting up mailjet.com to deliver your mail via Ruby on Rails? Here’s how, because their Getting Started is nothing but placeholder headers right now.

Mailjet : Real-time Emailing - mailjet.com

read more

Remove all those .DS_Store files

Posted Posted by Wes in Blog, Sysadmin     Comments 1 comment
Jun
6

I don’t like committing .DS_Store files into my projects, so here’s an easy way to remove them:

Run this from your project folder:

# Recursively erase all .DS_Store files in this folder and below
find . -name \.DS_Store -exec rm -v {} \;

Also, you can prevent the DS_Store files from being created. Run this from the Terminal:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

git: merge a single commit

Posted Posted by Wes in Blog, Version Control     Comments No comments
Jun
3

Sometimes, you have one commit you want to get into production, but it’s located after other changes that you’re not ready to merge in yet. How can you get that single git commit into a different branch?

First, you have to know the SHA of the commit you want:

  git checkout branch-with-commit-on-it
  git log

Highlight and copy the SHA of the commit you want to grab.

  git checkout master

  # -n => don't commit, just merge changes so we can review and commit ourself
  git cherry-pick -n [The commit’s SHA-1 Hash]

  # review
  git diff –cached

  # commit if all is well
  git commit -a -m “merge SHA1 ..."

If you’re feeling confident, you can skip the -n and merge the single commit in directly and save a minute.

Note, this isn’t a merge, so it’s possible you could have some conflicts down the road when you merge the original commit into this branch. You’re creating a brand new commit object.

Mac OS X: find the program running on a port

Posted Posted by Wes in Blog, Sysadmin     Comments 1 comment
Jun
2

Sometimes, there’s a program running on a port and you don’t know what it is. How do you find out?

read more

Converting mysql databases to UTF8

Posted Posted by Wes in Blog, Database     Comments No comments
Jun
1

UTF8 is the way to go when you’re creating a new database for an application, but how do you get your existing applications upgraded?

read more

about databasically

We live and work in Kansas City, USA.

We're passionate about helping small businesses succeed and want to help you use technology to get more done.

From server, desktop, network management to programming custom web applications in Ruby on Rails, we're here to lend a hand.

Contact us if you have any questions!