gem install rails
rails new my_app -T
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-latest.js"></script> | |
| <link rel="stylesheet" href="http://github.com/jquery/qunit/raw/master/qunit/qunit.css" type="text/css" media="screen" /> | |
| <!-- | |
| Problema: Mijões | |
| Objetivo dados X mictórios e Y mijões, retorne um array contendo VAZIO e MIJAO. | |
| Sendo que os mijões devem ser alocados de forma mais distante possível. |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
| alias ls="ls -G" | |
| alias wget="curl -O" | |
| # alias vim="/Applications/MacVim-7_3-53/mvim" | |
| # MacPorts Installer addition on 2009-07-28_at_13:27:49: adding an appropriate PATH variable for use with MacPorts. | |
| export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
| # Finished adapting your PATH environment variable for use with MacPorts. |
| # http://download.savannah.gnu.org/releases/freetype/ から最新のfreetypeをダウンロード | |
| tar zxvf freetype-x.x.x | |
| cd freetype | |
| ./configure | |
| make | |
| sudo make install | |
| curl -O http://www.swfmill.org/releases/swfmill-0.3.2.tar.gz | |
| tar zxvf swfmill-0.3.2.tar.gz | |
| cd swfmill-0.3.2 |
By default, Rails applications build URLs based on the primary key -- the id column from the database. Imagine we have a Person model and associated controller. We have a person record for Bob Martin that has id number 6. The URL for his show page would be:
/people/6
But, for aesthetic or SEO purposes, we want Bob's name in the URL. The last segment, the 6 here, is called the "slug". Let's look at a few ways to implement better slugs.
| #include "Ultrasonic.h" | |
| #include <SD.h> | |
| Ultrasonic ultrasonic(7,6); | |
| File file; | |
| boolean eating = false; | |
| int hour = 23; |
| ==> Downloading http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.7.5-7.tar.bz2 | |
| Already downloaded: /Library/Caches/Homebrew/imagemagick-6.7.5-7.tar.bz2 | |
| /usr/bin/tar xf /Library/Caches/Homebrew/imagemagick-6.7.5-7.tar.bz2 | |
| ==> Patching | |
| /usr/bin/patch -f -p1 -i 000-homebrew.diff | |
| patching file configure | |
| ==> ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.7.5-7 --disable-dependency-tracking --enable-shared --disable-static --with-modules --without-gslib --with-gs-font-dir=/usr/local/share/ghostscript/fonts --without-magick-plus-plus | |
| ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.7.5-7 --disable-dependency-tracking --enable-shared --disable-static --with-modules --without-gslib --with-gs-font-dir=/usr/local/share/ghostscript/fonts --without-magick-plus-plus | |
| configuring ImageMagick 6.7.5-7 | |
| checking build system type... x86_64-apple-darwin11.4.0 |
| Error: You have uncommitted modifications to Homebrew's core. | |
| Unless you know what you are doing, you should run: | |
| cd /usr/local && git reset --hard | |
| Error: /usr/bin occurs before /usr/local/bin | |
| This means that system-provided programs will be used instead of those | |
| provided by Homebrew. The following tools exist at both paths: | |
| git |
| HOMEBREW_VERSION: 0.9 | |
| HEAD: 49f5f37ca37ee49008fb3aecb7095c29a211de5d | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| CPU: dual-core 64-bit penryn | |
| OS X: 10.7.4 | |
| Kernel Architecture: x86_64 | |
| Xcode: 4.3.2 | |
| GCC-4.0: N/A | |
| GCC-4.2: N/A |
| This file contains any messages produced by compilers while | |
| running configure, to aid debugging if configure makes a mistake. | |
| It was created by ImageMagick configure 6.7.5-7, which was | |
| generated by GNU Autoconf 2.68. Invocation command line was | |
| $ ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.7.5-7 --disable-dependency-tracking --enable-shared --disable-static --with-modules --without-gslib --with-gs-font-dir=/usr/local/share/ghostscript/fonts --without-magick-plus-plus | |
| ## --------- ## | |
| ## Platform. ## |