These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| /** | |
| 3 pillar blocks | |
| */ | |
| #pillars { | |
| float: left; | |
| width: 910px; | |
| padding-left: 40px; | |
| padding-right: 40px; | |
| margin-top: 100px; | |
| } |
| <%= render :partial => '/refinery/menu', | |
| :locals => { | |
| :dom_id => 'submenu', | |
| :roots => refinery_menu_pages.reject{|p| p.parent_id != @page.root.id }, | |
| } %> |
| # In a controller | |
| # This is not necessary when using the view code below | |
| ::I18n.locale = params[:locale] |
| # encoding: utf-8 | |
| Refinery::I18n.configure do |config| | |
| config.enabled = true | |
| config.default_locale = :en | |
| config.current_locale = :en | |
| config.default_frontend_locale = :en | |
| config.frontend_locales = [:en, :es] | |
| config.locales = {:en=>"English", :es=>"Español"} | |
| end |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| fabfile for Django | |
| ------------------ | |
| see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/ | |
| modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle) | |
| several additions, corrections and customizations, too |
| - (void) loginToGateway { | |
| MobileDeviceLoginRequest *mobileDeviceLoginRequest = | |
| [MobileDeviceLoginRequest mobileDeviceLoginRequest]; | |
| mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = <USERNAME>; | |
| mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = <PASSWORD>; | |
| mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId = | |
| [[[UIDevice currentDevice] uniqueIdentifier] | |
| stringByReplacingOccurrencesOfString:@"-" withString:@"_"]; | |
| AuthNet *an = [AuthNet getInstance]; |
| -(void)registerDevice | |
| { | |
| MobileDeviceRegistrationRequest *registrationRequest=[MobileDeviceRegistrationRequest mobileDeviceRegistrationRequest]; | |
| registrationRequest.anetApiRequest.merchantAuthentication.name=@"loginid"; | |
| registrationRequest.anetApiRequest.merchantAuthentication.password = @"password"; | |
| registrationRequest.mobileDevice.mobileDescription=@"asd"; | |
| registrationRequest.mobileDevice.mobileDeviceId=[[[UIDevice currentDevice] uniqueIdentifier] |
| # encoding: utf-8 | |
| Refinery::I18n.configure do |config| | |
| config.enabled = true | |
| config.default_locale = :en | |
| config.current_locale = :en | |
| config.default_frontend_locale = :en | |
| config.frontend_locales = [:en, :fr] | |
| config.locales = {:en => "English", :fr => "Français"} | |
| end |
| 1.9.3p194 :004 > Refinery::Page.find('contact-us').translations | |
| Refinery::Page Load (0.3ms) SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."slug" = 'contact-us' LIMIT 1 | |
| Refinery::Page::Translation Load (0.2ms) SELECT "refinery_page_translations".* FROM "refinery_page_translations" WHERE "refinery_page_translations"."refinery_page_id" = 10 | |
| => [#<Refinery::Page::Translation id: 16, refinery_page_id: 10, locale: "en", title: "Contact Us", custom_slug: nil, menu_title: "Contact Us", slug: "contact-us", created_at: "2012-08-14 17:25:36", updated_at: "2012-08-14 20:37:47">] |