text:
require File.expand_path('../../test_helper.rb', __FILE__)

class AttributeViewsClassmethodsTest < ActiveSupport::TestCase
  test "views should raise argument error about invalid option keys" do
    begin
      Event.send(:views, :formatted_fee, :as => FeeFormatter.new(:fee_in_cents), :invalid => :should_raise)
    rescue ArgumentError => e
      assert_match /invalid/, e.message
    else
      fail 'Should raise an ArgumentError'
    end
  end

  test "views should raise argument error about missing :as option" do
    begin
      Event.send(:views, :formatted_fee)
    rescue ArgumentError => e
      assert_equal "Please specify a view object with the :as option", e.message
    else
      fail 'Should raise an ArgumentError'
    end
  end

  test "views should define a reader method for the view object" do
    assert_respond_to Event.new, :starts_at_view
  end

  test "views should define a reader method for the value object" do
    assert_respond_to Event.new, :starts_at
  end

  test "views should define a reader method for the value object before type cast" do
    assert_respond_to Event.new, :starts_at_before_type_cast
  end

  test "views should define a writer method for the value object" do
    assert_respond_to Event.new, :starts_at=
  end
end

class AttributeViewsFunctionTest < ActiveSupport::TestCase
  def setup
    @input = '24 May 23:00'
    @value = "24 May 2009 23:00"

    @date = Date.new(2009, 5, 24)
    @time = Time.parse('23:00')
    @event = Event.new(:start_date => @date, :start_time => @time)
  end

  test "view object reader should return the view object" do
    assert_kind_of CompositeDatetime, @event.starts_at_view
  end

  test "view object reader should always return the same view object" do
    assert_equal Event.new.starts_at_view, Event.new.starts_at_view
  end

  test "value object reader method should return the value object" do
    @event.starts_at_view.expects(:load).with(@date, @time).returns(@value)
    assert_equal @value, @event.starts_at
  end

  test "value object before type cast should be the value object when nothing was set" do
    @event.starts_at_view.stubs(:load).with(@date, @time).returns(@value)
    assert_equal @value, @event.starts_at_before_type_cast
  end

  test "value object before type cast should be the input when it was just set" do
    @event.starts_at = @input
    assert_equal @input, @event.starts_at_before_type_cast
  end

  test "value object writer should set attributes on the record" do
    event = Event.new
    event.starts_at_view.stubs(:parse).with(@input).returns([@date, @time])

    event.starts_at = @input
    assert_equal @date, event.start_date
    assert_equal @time, event.start_time
  end

  test "value object writer should update attributes on the record" do
    date = Date.new(2009, 12, 31)
    time = Time.parse('01:00')
    input = '31 12 01:00'
    @event.starts_at_view.stubs(:parse).with(input).returns([date, time])

    @event.starts_at = input
    assert_equal date, @event.start_date
    assert_equal time, @event.start_time
  end
end

redpajama_set_name: RedPajamaGithub


text:
import os

def get_module_callback(module_name):
    try:
        module = __import__(module_name, globals=globals())
        callback_func = module.callback_func
    except ImportError, err:
        avail_modules = get_module_list()
        raise ImportError("Could not find postproc module with name: '%s' (available modules are %s): %s" % (module_name, avail_modules, str(err)))
    except AttributeError:
        raise AttributeError("Postproc module with name '%s' did not contain required 'callback_func(out_dict)' function" % module_name)

    return callback_func

def get_module_list():
    # return a list of all py files in current directory which aren't this file
    # these are assumed to be the supported modules
    modnames = [os.path.splitext(modname)[0]
                for modname in os.listdir(os.path.dirname(os.path.realpath(__file__)))
                if modname.endswith(('.py','.pyc','.pyo'))
                and os.path.splitext(modname)[0] != os.path.splitext(os.path.basename(__file__))[0]
                and os.path.splitext(modname)[0] != '__init__']
    return list(set(modnames))


Thank you for visiting my web page... I have been a North Carolina Real Estate Broker since 1999 in the Greater Raleigh Triangle Area specializing in Residential Real Estate. I am here to assist you in every detail of your Real Estate transaction by diligently working with clients through the complex process of buying and selling. Protecting my Client Interest's is #1 - Integrity, Energy and Hard Work is what I believe in and will always try to do my best for you!! Counties include but not limited to Wake, Franklin, Warren, Vance, Granville, Johnston and Other Outlying Counties. If I can be of assistance to you, please contact me via email at cmusselman@nc.rr.com or cell (919) 426-4695. Working 4 You!!
Copyright 2019 Triangle MLS, Inc. of North Carolina. All rights reserved. The data relating to real estate for sale on this web site comes in part from the Triangle MLS, Inc. of North Carolina. Real estate listings held by brokerage firms other than are marked with the Broker Reciprocity logo and detailed information about them includes the name of the listing brokers. The broker providing this data believes it to be correct, but advises interested parties to confirm the data before relying on it in a purchase decision. Some properties which appear for sale on this web site may subsequently have sold and may no longer be available. This site is monitored for scraping. Any use of listing data obtained from this web site, other than by a consumer looking to purchase real estate, is prohibited. This data has been updated as of April 18, 2019 3:35 PM.


ALL AMERICAN (AUS) (Brown 2005-Stud 2010). 4 wins-3 at 2, VRC Emirates S., Gr.1. Sire of 245 rnrs, 121 wnrs, inc. SW Yankee Rose (ATC Sires' Produce S, Gr.1), Bachman, Zebulon, America Mon Amie, SP American Genius, Sam's Image, All Out of Love, Rampage, Tender and of Crockett, Phelps Glory, Green Card, Invisible, Lady Trickster, Chicago Nights, Elusive State, Kawaikini, Yankee Express, American Star, General Wind - Kolombia (Sing.), etc.
Kynam (g. by Bernardini). 4 wins-1 at 2-at 1000m, 1400m, HK$2,885,400, HKJC Wang Chau H., Severn P., Hyacinth H., Winning Partnership H., 2d HKJC Tin Sau H., Suisse Programme H., Carl F Bucherer Alacria H., 3d HKJC Chevalier Senior Housing H.
Lynstel (f. by Elusive Quality). Winner at 1200m, 2d AJC Triple M Grill Team 2YO H.
Lucky and Fortune (c. by Husson). 3 wins at 1500m, 1600m to 2016-17 in Macau.
Street Justice (c. by Street Sense). Winner at 1400m in Aust.
I Am Magnificent. 2 wins at 1200m to 2016-17, ATC TAB Rewards H.
FOUARDEE (Forest Glow). 8 wins-1 at 2-to 1400m, A$534,540, AJC Bill Ritchie H., Gr.3, STC Concorde S., Gr.3, QTC Dr John Power H., L, STC Satellite S., L-twice, Hawkesbury RC Safilo Cup, STC Smithfield RSL Club H., 2d STC Theo Marks H., Gr.2, Concorde S., Gr.3, City Tatt's RC Lightning H., L, Hawkesbury Cup, NSW Tatt's RC Ray Balderston H., STC Ingham Love'Em 2YO H., 3d AJC Hobartville S., Gr.2, Shorts H., Gr.3, 4th AJC San Domenico S., Gr.2, STC Peter Pan S., Gr.2, Canterbury S., Gr.2, Frederick Clissold S., Gr.3, Hawkesbury Guineas, L. Sire.
SOJUSTREMEMBERTHIS (Flying Spur). 4 wins. See above.
Forest Magic. 7 wins to 1400m, A$83,356, AJC Poseidon H., STC Ingleburn RSL Club H., 2d AJC Springtime Creek Glendi H., Castanea H., Howarth Chartered Accountants H., STC Moorebank Hotel H., Yachts of Seabourn H., 3d AJC Macau Jockey Club Goodwill Trophy H., Debbie Thompson H., De Bortoli Wines Staff H.
Navelina. 2 wins-1 at 2-at 1400m, 1800m, A$143,975, BRC Winning Edge Promotional Gear 2YO H., GCTC Ladies Day H., 2d BRC Garrards Pesticides 2YO P., Drumbeats at Lyndhurst 2YO P., Ipswich TC Channel 7 H., Sky Racing H., 3d BRC United Voice Queensland H., Ipswich TC Q Roofing H.
ROYAL VOYAGE (Danehill). 6 wins from 1000m to 1800m, A$358,050, VATC St George S., Gr.2, VRC Paris Lane S., L, Flemington Rose H., MVRC Aerosport H., 2d VRC Blamey S., Gr.2, VATC Sandown S., Gr.3, VRC Carbine Club S., Gr.3, STC Sky High S., L, VATC Mercedes-Benz S., L, 3d VATC Schweppes Cup, L, 4th STC Tulloch S., Gr.2.
SUN CLASSIQUE (Fuji Kiseki). Champion 3YO Filly in South Africa in 2006-07. Champion Older Mare in UAE in 2007-08. 9 wins-2 at 2-from 1200m to 2400m, R1,168,100, 11,702,400Dhs in South Africa and U.A.E, Nad al Sheba Dubai Sheema Classic, Gr.1, Greyville Woolavington S., Gr.1, Kenilworth Cape Fillies Guineas, Gr.1, Majorca S., Gr.1, Diana S., Gr.3, Nad al Sheba Cape Verdi S., L, Balanchine S., L, 2d Clairwood Thekwini S., Gr.1, Kenilworth Paddock S., Gr.1. Producer.
HOUTZEN (I Am Invincible). 5 wins-4 at 2-to 1200m, A$1,734,600, to 2017-18, MVRC Champagne S., Gr.3, GCTC Magic Millions 2YO Classic, L, BRC Sky Thoroughbred Central 2YO H., GCTC First National Real Estate 2YO H., Qld Tatt's RC Winning Edge Presentations 2YO H., 3d MVRC Ian McEwen S., Gr.2.
SHAMROCK SHORE (Song of Tara). 4 wins from 1900m to 2400m, A$264,420, City Tattersall's Club Cup, L, AJC Rick Damelian Honda Cup, 2d QTC Brisbane Cup, Gr.1, STC Lord Mayor's Cup, L.
MY VEGAS (Royal Academy). 7 wins to 1200m, A$323,070, STC Starlight S., L, ATC Omni H., Tigers Five Dock H., STC Gaypak United H., 3d Gosford RC Takeover Target S., L.


text:
The Changing American Jobs Landscape and What It Might Mean for Men
The Atlantic Monthly has a fascinating look at how the jobs picture has changed in America since 1977. Why that date? Because that's the last time our labor-participation rates were as low as they are today. From the article:
A couple things jump out here: Even though the labor-participation rate is almost as low now as it was then, the workforce has grown faster than the population (which was 220 million then and is around 319 million now). The big jump is in the number of women employed—from 36.5 million in October 1977 to 54.1 now. Male employment has also climbed, but not as much. So as the female labor-force participation rate has climbed, the male rate has dropped, from eight in 10 to barely seven in 10 men working full time. And whereas the male unemployment rate was much lower in 1977, now there's gender parity.
Even as the gender balance has shifted, it's noticeable that the racial balance hasn't. Now, as in 1977, the black unemployment rate is much higher than the national rate, and lags far behind white unemployment.
This isn't all just evidence of a bad economy—much of the decline comes from Baby Boomers reaching retirement age and checking out, though some of it comes from would-be workers who simply can't find work, and millions more Americans are underemployed. That isn't without challenges: An aging population could draw more in benefits than the government collects in social-security taxes. Massive spending on health care for older Americans could be a drag, too.
There's more to read at the site, in particular what Americans were doing for work back then versus today, but I find the role of women in the workforce to be most interesting. With more women now graduating college than men how many households of the future will see a reverse of the traditional roles of breadwinner (men) versus secondary income/homemaker (women)? We've already seen a huge shift in household composition away from the traditional roles – more dual income homes, single parent homes, women as primary breadwinners, etc. – but it seems clear that the shift will continue over the next generation. What will the impact be on our society?
We've already lived through a generation of women struggling to balance work and home life, to face the never-ending tension of career versus kids, but we're about to be confronted with men having to confront a similar situation over the next generation. The reality that men's traditional role as primary breadwinners or "heads of household", at least according to our societal norms, is beginning to dawn on America. Over the next generation the big question is going to be how men will handle being the secondary earner and likely primary caregiver to their children? How will society, especially other men, react to them and treat them when they do? I suspect they will go through many tumultuous days trying to find the right balance, just as many women have for years, and it's often going to be ugly. Can they do it? You bet, but it's going to be a painful process as they learn to do it.
This Planet Money post also highlights what's going on:
The share of marriages where women work full time but men don't is highest for low-income families.
The story here has as much to do with the decline of working men as it does the progress of women in the economy. In just the 10 years between 2000 and 2010, the manufacturing sector lost an astounding 5 million jobs. Since manufacturing jobs historically have been held predominantly by men, this left lots of men out of work. Women, on the other hand, have benefited from the employment boom in the service sector, which employs more women than men.
High-income families are much more likely than average to have both spouses working full time. The message is pretty clear: It's pretty hard to be rich with only one income.
This entry was posted in Current Affairs and tagged head of household, jobs, traditional gender role, unemployment, women and men on July 6, 2015 by Jon Lowder.
← Gustavo the Disappointing Winston-Salem Painter Now That's a Hotel Stay →

redpajama_set_name: RedPajamaCommonCrawl