Skip to content

Instantly share code, notes, and snippets.

View tbbooher's full-sized avatar

Tim Booher tbbooher

View GitHub Profile
"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
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)
[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
require 'digest/sha1'
class User < ActiveRecord::Base
attr_accessor :password_confirmation
# |||||||||||||||||||||||||||||||||||||||||||
# ASSOCIATIONS
# |||||||||||||||||||||||||||||||||||||||||||
has_many :franchises, :dependent => :destroy
has_many :measurements, :dependent => :destroy
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_
class Year:
def __init__(self,contents=None):
self.contents = contents or []
def federal_income_tax
def state_income_tax
def real_estate_taxes
class Year:
import datetime
def __init__(self,year_value = datetime.date.today().year):
#self.contents = contents or []
salary = 10000
# @property
# def year_value(self)
class Year:
import datetime
def __init__(self,year_value = datetime.date.today().year):
#self.contents = contents or []
salary = 10000
# @property
# def year_value(self)
if names_of_titles_that_require_more_information.empty?
return nil
else
return names_of_titles_that_require_more_information
end
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