This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "emacs") | |
| Loading 00debian-vars... | |
| No /etc/mailname. Reverting to default... | |
| Loading 00debian-vars...done | |
| Loading /etc/emacs22/site-start.d/50auctex.el (source)... | |
| Loading /usr/share/emacs/22.2/site-lisp/auctex.el (source)... | |
| Loading /usr/share/emacs/22.2/site-lisp/tex-site.el (source)...done | |
| Loading /usr/share/emacs/22.2/site-lisp/auctex.el (source)...done | |
| Loading /usr/share/emacs/22.2/site-lisp/preview-latex.el (source)...done | |
| Loading /etc/emacs22/site-start.d/50auctex.el (source)...done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo gem install passenger | |
| [sudo] password for foo: | |
| Building native extensions. This could take a while... | |
| ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) | |
| SocketError: getaddrinfo: Name or service not known (http://gems.rubyforge.org/gems/passenger-2.0.6.gem) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Tue Jan 20 09:53:02 2009] [alert] [client 127.0.0.1] /home/tim/FitWitWeb/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://fitwit.local/trunk/ | |
| [Tue Jan 20 09:53:12 2009] [notice] Graceful restart requested, doing restart | |
| apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName | |
| [Tue Jan 20 09:53:12 2009] [warn] NameVirtualHost *:80 has no VirtualHosts | |
| [Tue Jan 20 09:53:12 2009] [notice] Apache/2.2.9 (Ubuntu) Phusion_Passenger/2.1.0 configured -- resuming normal operations | |
| [Tue Jan 20 09:53:30 2009] [notice] caught SIGTERM, shutting down | |
| [Tue Jan 20 09:53:31 2009] [notice] Apache/2.2.9 (Ubuntu) Phusion_Passenger/2.1.0 configured -- resuming normal operations | |
| [Tue Jan 20 09:53:42 2009] [alert] [client 127.0.0.1] /home/tim/FitWitWeb/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server co |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'digest/sha1' | |
| class User < ActiveRecord::Base | |
| attr_accessor :password_confirmation | |
| # ||||||||||||||||||||||||||||||||||||||||||| | |
| # ASSOCIATIONS | |
| # ||||||||||||||||||||||||||||||||||||||||||| | |
| has_many :franchises, :dependent => :destroy | |
| has_many :measurements, :dependent => :destroy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def user_has_not_explained_themself(params) | |
| user_params = params[:user] | |
| explanation_params = params[:explanation] || {} | |
| names_of_titles_that_require_more_information = [] | |
| user_params.each do |p| | |
| unless p[0] == "fitness_level" | |
| if p[1] == "true" # do they have this condition? | |
| # at this point, the condition will be added unless the member | |
| # has typed in sufficient information into the field. So the field | |
| # must exist _and_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Year: | |
| def __init__(self,contents=None): | |
| self.contents = contents or [] | |
| def federal_income_tax | |
| def state_income_tax | |
| def real_estate_taxes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Year: | |
| import datetime | |
| def __init__(self,year_value = datetime.date.today().year): | |
| #self.contents = contents or [] | |
| salary = 10000 | |
| # @property | |
| # def year_value(self) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Year: | |
| import datetime | |
| def __init__(self,year_value = datetime.date.today().year): | |
| #self.contents = contents or [] | |
| salary = 10000 | |
| # @property | |
| # def year_value(self) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if names_of_titles_that_require_more_information.empty? | |
| return nil | |
| else | |
| return names_of_titles_that_require_more_information | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "FinancialYear" | |
| require "date" | |
| class Forecast | |
| def EndSalary(end_year) # , expected_increase) | |
| # given a range of time, what is the | |
| y = FinancialYear.new(20000) | |
| while y.year < end_year |
OlderNewer