One of the most common problems that we come across is when the programmer tries to
setup the Mac OS X - name/hostname for the computer, since it takes up most space
in the Terminal bash prompt and since the default ones are not so fancy, when
accessed over the network.
Click the “Apple” menu in the top-left of the screen. Click on “System Preferences.”
Click the “Sharing” icon. At the top of the resulting screen, you will see your current computer name. To change it, click into the field, delete the existing name and enter your desired computer name.
Click on the “Edit” button underneath the computer name field to change the local hostname. The hostname can be used to access your computer over the network as an alternative to using a numeric IP address and is particularly relevant if you are using a network with a mix of Apple Macs and Microsoft Windows PCs.
To make a call to find a post with category ‘ruby’ for a User
If this is being used in multiple places, adding a deligate will make our life easy, thereby avoiding mulitple dots.
Also User model doesnt have to know the inner methods of the posts model and a logic change in the model Post would not require multiple changes
Following are some of the common git aliases, people use. Add them to ~/.bash_profile
alias gst='git status'
alias gs='git push'
alias gc='git commit'
alias gca='git commit -a'
alias ga='git add'
alias gco='git checkout'
alias gb='git branch'
alias gm='git merge'
alias gd="git diff"
An additional syntax highlighting can be provided as well with the following:
Visit http://xquartz.macosforge.org/trac/wiki and download and install 2.7.2+.
You will need to fix the symlink it makes:
ln -s /opt/X11 /usr/X11
5) Reinstall your brews
Will tell you what you need to check. Try out everything one by one and when one doesn’t work brew remove it and then reinstall it. If the install doesn’t work, try brew install it –use-gcc to prevent llvm from getting in the way.
You might need to install libxml2 and link it manually to make sure you don’t get the wrong xml2-config if your path:
brew install libxml2
brew link libxml2
Run brew doctor and fix anything it tells you.
You may also need to symlink gcc for certain ruby gems and other stuff like that:
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
Any questions on this, please feel free to ask. We’re here to help…