text:
Q: UIBarButtonItem appearance trouble in iOS 7, could this be an Apple bug? I saw an article a while back, which is here:
User Interface Customization in iOS 6
It shows customization for iOS 6.  Since the article I have written Apps that use the technique, it is pretty straightforward, no magic in there.
However, I need to update one of my apps and under iOS 7 it does not work correctly.  It appears that customization of UIBarButtonItems does not work the first time the view is presented.  If I dismiss the view and then present it agin everything works fine.  What is seen is shown here:
First time view is presented:

Second time:

I have seen this issue in his example, my code and a test app I wrote.  The code is as follows:
// Customizing the Back Bar Buttons
UIImage * btBack_30 = [[UIImage imageNamed:@"btBack_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)];
UIImage * btBack_24 = [[UIImage imageNamed:@"btBack_24"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 5)];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:btBack_30 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:btBack_24 forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];

As you can see there is no real magic, pretty standard, but I cannot find any reason or explanation why this does not work in iOS 7.  The code gets executed in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions.
I hope someone has seen this and can offer a solution.  Thanks for any help!
** Note: it was proposed that this is not an apple bug, but by design.  I am not saying it IS an apple issue, it could more likely be mine, but if you run either of the sample or copy and paste the code below it is apparent that the first time it does not work correctly and subsequent times it does.  That would lead me to believe that the api calls are valid, but either they have a bug, or I am missing something that needs to be done.
**** UPDATE 4:**
I changed the code in MyAppDelegate's init method in my sample to the following based on the suggestion of FruityGeek, but still no luck:
- (instancetype)init
{
    self = [super init];
    if (self)
    {
        //Other UIAppearance proxy calls go here

        [[UIBarButtonItem appearance] setTitleTextAttributes:
         [NSDictionary dictionaryWithObjectsAndKeys:
          //[UIColor colorWithRed:220.0/255.0 green:104.0/255.0 blue:1.0/255.0 alpha:1.0],
          [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0],
          UITextAttributeTextColor,
          //[UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0],
          [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8],
          UITextAttributeTextShadowColor,
          [NSValue valueWithUIOffset:UIOffsetMake(0.5, 0.5)],
          UITextAttributeTextShadowOffset,
          [UIFont systemFontOfSize:12.0],
          UITextAttributeFont,
          nil]
                                                    forState:UIControlStateNormal];

        // Customizing the Back Bar Buttons
        //ios6 uses whole button background image
        UIImage * btBack_30 = [[UIImage imageNamed:@"btBack_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)];
        UIImage * btBack_24 = [[UIImage imageNamed:@"btBack_24"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 5)];
        [[UIBarButtonItem appearance] setBackButtonBackgroundImage:btBack_30 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
        [[UIBarButtonItem appearance] setBackButtonBackgroundImage:btBack_24 forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];

        if ([[UIDevice currentDevice].systemVersion integerValue] >= 7)
        {
            //ios7 needs additional chevron replacement image
            UIImage * chevronReplacement = chevronReplacement = [btBack_30 imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
            UIImage * chevronTransitionMaskReplacement = chevronTransitionMaskReplacement = [btBack_30 imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
            [[UINavigationBar appearance] setBackIndicatorImage:chevronReplacement];
            [[UINavigationBar appearance] setBackIndicatorTransitionMaskImage:chevronTransitionMaskReplacement];
        }
    }
    return self;
}

**** UPDATE 3:**
I have added a dropbox link to a sample project.  This is in addition to the already posted link above which is a simple app that also shows the issue.  Both can be built and run in the simulator with iOS 6 and iOS 7.  In the iOS 6 case everything works as expected.  In iOS 7, if you click the table cell and present the next view the custom back button is not shown, if you go back and present it again the button is there.
I have been fooling with this for days, so I hope someone else sees it and can tell me what I am missing.
https://www.dropbox.com/s/oi1bh3emvtbmms0/NavigationBarDemo.zip
This may be silly, but could it have to do with my images?  I will try the sample with different images and post an update.

*

*Tried with different images and that makes no difference, also used images from the above posted sample. It was a long shot, but since no one seems to have a better idea yet it was worth a try.

**** UPDATE 2:**
I have tried this in another test app and moved the code to the init
   meted of the app delegate and it still does not work.  I have this
   posted here as well as the original authors site of the link at the
   top.  Plus another forum, but no one seems to have a solution.
I am wondering if this could be an Apple bug?
**** UPDATE 1:**
Moved code from didFinishLaunchingWithOptions to willFinishLaunchingWithOptions and init and it still does not appear to work.
***** INIT METHOD FROM AppDelegate.m

- (id)init
{
    // Create resizable images
    UIImage *gradientImage44 = [[UIImage imageNamed:@"navBar_44"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    UIImage *gradientImage32 = [[UIImage imageNamed:@"navBar_32"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];

    // Set the background image for *all* UINavigationBars
    [[UINavigationBar appearance] setBackgroundImage:gradientImage44 forBarMetrics:UIBarMetricsDefault];
    [[UINavigationBar appearance] setBackgroundImage:gradientImage32 forBarMetrics:UIBarMetricsLandscapePhone];

    // Customize the title text for *all* UINavigationBars
    [[UINavigationBar appearance] setTitleTextAttributes:
     [NSDictionary dictionaryWithObjectsAndKeys:
      [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0],
      UITextAttributeTextColor,
      [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8],
      UITextAttributeTextShadowColor,
      [NSValue valueWithUIOffset:UIOffsetMake(1, 1)],
      UITextAttributeTextShadowOffset,
      [UIFont boldSystemFontOfSize:18.0],
      UITextAttributeFont,
      nil]];

    // Customizing the NavBar Buttons
    UIImage * button30 = [[UIImage imageNamed:@"btButton_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 5)];
    UIImage * button24 = [[UIImage imageNamed:@"btButton_24"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 5)];
    [[UIBarButtonItem appearance] setBackgroundImage:button30 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    [[UIBarButtonItem appearance] setBackgroundImage:button24 forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];

    [[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];

    [[UIBarButtonItem appearance] setTitleTextAttributes:
     [NSDictionary dictionaryWithObjectsAndKeys:
      //[UIColor colorWithRed:220.0/255.0 green:104.0/255.0 blue:1.0/255.0 alpha:1.0],
      [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0],
      UITextAttributeTextColor,
      //[UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0],
      [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8],
      UITextAttributeTextShadowColor,
      [NSValue valueWithUIOffset:UIOffsetMake(0.5, 0.5)],
      UITextAttributeTextShadowOffset,
      [UIFont systemFontOfSize:12.0],
      UITextAttributeFont,
      nil]
                                                forState:UIControlStateNormal];

    // Customizing the Back Bar Buttons
    UIImage * btBack_30 = [[UIImage imageNamed:@"btBack_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)];
    UIImage * btBack_24 = [[UIImage imageNamed:@"btBack_24"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 5)];
    [[UIBarButtonItem appearance] setBackButtonBackgroundImage:btBack_30 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    [[UIBarButtonItem appearance] setBackButtonBackgroundImage:btBack_24 forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];

    return [super init];
}

A: It does look like an Apple bug, and you should enter a bug on it with bug reporter. That said, I can give you a relatively painless workaround: add this code to your RecipetTableViewController:
- (void)viewDidLoad
{
    [super viewDidLoad];

    self.title = @"Recipe Book";

    UIBarButtonItem *it = [[UIBarButtonItem alloc] initWithTitle:self.title style:UIBarButtonItemStylePlain target:nil action:NULL];
    UIImage * btBack_30 = [[UIImage imageNamed:@"btBack_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)];
    [it setBackButtonBackgroundImage:btBack_30 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    self.navigationItem.backBarButtonItem = it;
}

EDIT: You can dup this bug if interested, the more bugs referencing it the more likely apple will fix it:

BUG: 15506447
State:OpenProduct:iOS
19-Nov-2013 03:53 PM
Summary: Setting the UIBarButtonItem appearance proxy for the back bar
  button item does not have any affect until the second appearance of
  the button.
Steps to Reproduce: In appDelegate, before anything has appeared, add
  these statements:
UIImage * gradientImage44 = [[UIImage imageNamed:@"navBar_44"]
  resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];    UIImage *
  gradientImage32 = [[UIImage imageNamed:@"navBar_32"]
  resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];        // Set
  the background image for all UINavigationBars   [[UINavigationBar
  appearance] setBackgroundImage:gradientImage44
  forBarMetrics:UIBarMetricsDefault];   [[UINavigationBar appearance]
  setBackgroundImage:gradientImage32
  forBarMetrics:UIBarMetricsLandscapePhone];
Expected Results: When a viewController is first pushed, its back
  button has the image in it.
Actual Results: First time it appears, there is no image. Push the
  view again and its there. Actually it does appear when you click on
  the button the very first time, but not when the button first appears.
Version: Xcode 5.0.1, iOS 7.0.3
Notes: Adding this in the root view controller of the navigation
  controller makes it work:

*

*(void)viewDidLoad {
  [super viewDidLoad];
self.title = @"Recipe Book";      UIBarButtonItem *it = [[UIBarButtonItem alloc] initWithTitle:self.title
  style:UIBarButtonItemStylePlain target:nil action:NULL];  UIImage *
  btBack_30 = [[UIImage imageNamed:@"btBack_30"]
  resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)];   [it
  setBackButtonBackgroundImage:btBack_30 forState:UIControlStateNormal
  barMetrics:UIBarMetricsDefault];
  self.navigationItem.backBarButtonItem = it; }
Attached demo project shows the problem.
Configuration:
Attachments: 'DynamicsCatalog.zip' was successfully uploaded.

EDIT: I'm happy to say that again, entering bugs in bug reporter, does sometimes work!

A: You have to handle customizing the back button item differently for iOS7. Under iOS6, the back button was a bordered button that contains the title of the previous screen with a background image that extended under the whole button.
Under iOS7, the Back control is a chevron image plus the title of the previous screen. If you want to use a custom image to replace the default chevron, you also need to create a custom mask image. iOS 7 uses the mask to make the previous screen's title appear to emerge from—or disappear into—the chevron during navigation transitions.
Because you are doing this in a storyboard, the best place to set the appearance proxies is in your app delegate's init method.
- (instancetype)init
{
    self = [super init];
    if (self)
    {
        //Other UIAppearance proxy calls go here

        // Customizing the Back Bar Buttons
        //ios6 uses whole button background image
        UIImage * btBack_30 = [[UIImage imageNamed:@"btBack_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)];
        UIImage * btBack_24 = [[UIImage imageNamed:@"btBack_24"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 5)];
        [[UIBarButtonItem appearance] setBackButtonBackgroundImage:btBack_30 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
        [[UIBarButtonItem appearance] setBackButtonBackgroundImage:btBack_24 forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];

        if ([[UIDevice currentDevice].systemVersion integerValue] >= 7)
        {
            //ios7 needs additional chevron replacement image
            UIImage * chevronReplacement = nil;
            chevronReplacement = [chevronReplacement imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
            UIImage * chevronTransitionMaskReplacement = nil;
            chevronTransitionMaskReplacement = [chevronTransitionMaskReplacement imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
            [[UINavigationBar appearance] setBackIndicatorImage:chevronReplacement];
            [[UINavigationBar appearance] setBackIndicatorTransitionMaskImage:chevronTransitionMaskReplacement];
        }
    }
    return self;
}

A: I tried to change a few things in your demo project but as you said nothing works.
I thought maybe it's because of the UINavigationController subclass but using a standard one has the same behaviour.
Unfortunately, if you really have to display your button, at launch I would silently do the opening-closing behaviour ... sorry for the uggly proposal

A: I was able to fix this by doing the back button customization in the viewWillDisappear method of the view that is pushing to the view on which I want the back button.  The reason is because it's the previous view that "owns" the back button, not the current view.
-(void) viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear: animated];
    UIImage * backButtonImage = [[UIImage imageNamed:@"back.png"]
                      resizableImageWithCapInsets:UIEdgeInsetsMake(6, 15, 6, 7)];

    UIBarButtonItem *buttonItem = [[UIBarButtonItem alloc] initWithTitle:self.title
                      style:UIBarButtonItemStylePlain target:nil action:NULL];
    [buttonItem setBackButtonBackgroundImage:backButtonImage forState:UIControlStateNormal
                      barMetrics:UIBarMetricsDefault];
    self.navigationItem.backBarButtonItem = buttonItem;

}

A: This is not the bug. This is default apple's iOS7 behavior.
With iOS7 appearance you don't need to set the background. Though if you want you can achieve it using custom bar button into custom navigation bar.
Enjoy Programming !!


Located in the heart of the Santiago's largest office park, Mercure Santiago Ciudad Empresarial offers rooms with free Wi-Fi and satellite TV. Providencia district is 9 km away.
Fully carpeted, rooms at Mercure Santiago have air conditioning and minibars. All of them feature king size beds, and some of them afford mountain views.
A buffet breakfast is served daily. Decorated with parquet floors and exposed brick walls, the restaurant offers Mediterranean specialties.
Airport shuttles can be arranged. Mercure Santiago Ciudad Empresarial is 20 km from Arturo Merino Benitez Airport and 6 km from Parque Arauco Mall.
Hotel address: Chile, 8580000, Santiago, Av Santa Clara 354, Huechuraba.


Cruiser bikes are big bikes. They are great means of expression, style and prestige. You can find the inclusion of luxurious features. The handle size is big and the seat comes with leather upholstery. The size of the fuel tank is also big. Cruiser bikes come with big engines and their performance is comparable to that of hatchback cars. To fulfill the obsession of Indian bike enthusiasts, there are cruiser bikes of 1600 cc and above. Check out this list of top 10 cruiser bikes in India in 2017.
The price of the K9 Red Chopper is Rs. 65, 40, 150. The engine capacity of one of the top 10 cruiser bikes in India is 1807 cc. The bike delivers 17.6 kmpl. The engine type is S&S SuperSidewinder, Overhead Valve, 45-Degree and V-Twin. It has 6-speed gearbox. The rider will have great convenience with the self-start. The wheelbase is 2082 mm and it has disc brakes in the front and rear end.
The price of CVO Limited is Rs. 56, 40, 797. The engine capacity is 1868 cc. The bike delivers 17.43 kmpl mileage. The powerful engine delivers 165Nm torque at 3250 rpm. It has radial tires, alloy wheels and ABS. the bike delivers stylish looks and it has all the features to take care of your safety.
The price of Indian Chieftain is Rs. 34,02,297. The capacity of the engine is 1811 cc. The bike delivers 20 kmpl. The engine delivers a maximum power of 100 BHP. It delivers torque of 139 Nm @2900 rpm. The liquid cooled engine has fuel injection supply system. The energy transmission takes place very effectively with the drive system. It deserves to be in the list of top 10 cruiser bikes in India.
The price of the street glide is Rs. 34, 82, 245. The engine displacement is 1745 cc and it delivers 18 kmpl. The engine delivers 150 Nm @3250 rpm. It has radial tires, alloy wheels and ABS. it has disc brakes in the front and rear. The engine has integrated oil cooler. The salient features of the vehicle are analogue speedometer, analog tachometer, digital odometer and clip on handle type.
The price of the bike is Rs.24,40,917. Moto Guzzi California 1400 Custom ABS priced at Rs. 24,83,081. The bike has 1380 cc engine and it delivers 10 kmpl. The bike delivers 10 kmpl. The torque delivered by the engine is 120 Nm @ 2750 Rpm. The power delivered by the engine is 96 Bhp @ 6500 rpm. It has Radial Tires and ABS braking system enhances the safety of the rider.
The price of Rocket III Roadster is Rs.22,56,834. The engine displacement is 2294cc and it delivers a top speed, 225 kmph. The bike gives 15 kmpl mileage. It has radial tires, alloy wheel and ABS. It is one of the best bikes in the world with great features.
The Fat Boy from Harley-Davidson delivers 14 kmpl. It has 1690cc engine and the price of the bike is Rs. 18, 33, 617. The bike delivers a top speed, 175 kmph. The engine delivers 125 Nm @3500 rpm and 65 BHP @ 5500 rpm. The vehicle has radial tires. You can take advantage of ABS as well.
There are two variants in Suzuki Intruder M1800R. The M1800R's price is Rs. 18, 03, 220. The price of Suzuki Intrude M1800R BOSS is Rs. 18, 06, 011. Both versions come with 1783 cc engine. The mileage delivered by the engine is 10 kmpl. The bike has radial tires and alloy wheels.
The price of Honda VT is Rs. 15, 80, 414. It has 1312 cc engine which delivers 20.3 kmpl and the top speed achieved by the bike is 140 kmph. With double disc brakes and self-start option, the bike offers great convenience.
The price of Thunderbird LT is Rs. 14, 68, 809. There are two versions. The price of Storm is Rs. 14, 68, 809. The price of the LT version is Rs. 17, 80, 819. The engine capacity is 1699 cc and it delivers 16 kmpl. It has ABS as well.
We hope you liked our list of top 10 cruiser bikes in India in 2017. Let us know your suggestions, questions or feedback at hi@sowheels.com. See also – Coolest Upcoming Bikes in India.


text:
A second Blue Devil? This Corvette Z06 has stories to tell
Corvette ownership is often divided into two camps: the Bloomington Gold group and the driving enthusiast. The Bloomington crowd focuses on paint dabs, overspray, number stampings, and provenance. The driving enthusiast is in love with the power and feel of driving an engaging, accessible sports car. The two crowds coexist happily, but only occasionally do their paths cross. This blue 2005 Corvette Z06 is the latest intersection.
Thorough documentation doesn't ensure a fascinating history, but this Z06's detailed history is far from boring. This is a prototype that helped cement the Corvette brand as a car that could compete on the world stage. Some sources report this to be the first Z06 produced, but that argument isn't iron-clad. Judging by the serial number (1G1YY22Y3650016EX) and the lack of a VIN, this particular car could just as well be the 16th Z06 prototype made for the 2006 model year. Maybe it wasn't the first, but this one was no show queen.
Instead, this pre-production car became the workhorse, putting in high speed runs all around the world. In Germany, it ran 198.6 mph in high-speed testing, and then was packed up and shipped to tracks worldwide. In fact, this is the car Jan Magnussen ripped around the Nordschleife in just 7:42.99—and that was a standing start, unlike many often-quoted 'Ring times. During that run, a multitude of photos were snapped and the car was dubbed "Blue Devil."
One could say this is the first Blue Devil, but it's hardly the most famous. The more widely accepted Blue Devil is the 2009 Corvette ZR1 which fell victim to the sinkhole at the National Corvette Museum. This didn't go underground—only off the radar for a few years.
Now, this original Blue Devil could be yours. If you are worried about the wear and tear of all those track runs, rest assured it was highly maintained during that time. The car also got a fresh LS7 engine, transmission, and torque tube in 2008. The 'Vette sold through Barrett-Jackson in 2009 for $50,600 before a $44K no-sale Mecum Auctions in 2015. Now GT Motor Cars has it on offer for $79,000. That is a lot of dollars for a 2005 Corvette... but this Blue Devil is also a lot of car.
GT Motor Cars
Hit the track with these 9 great race cars up for grabs in Arizona
The 7 cars we're watching most at the 2020 Arizona Auctions
Buy these 9 trucks and SUVs for all your off-road and hauling needs
4 Hemi-powered Plymouths you won't want to miss at auction
This rare 1948 Ford Marmon-Herrington is more eye candy than off-road warrior
Brexit rains on high-dollar auctions in UK
Bullitt sells for $3.74M, topping all-time Mustang record
2020 Bull Market List: 10 collector cars (and one bike) on the rise this year
First production 2020 Corvette Stingray sells for $3 million
View All Popular
Average Value Average value is based on a vehicle in good (#3) condition. Learn about our prices
$0 CAD
Value Your Vehicle Value Your Vehicle

redpajama_set_name: RedPajamaCommonCrawl


Looking for a cool classic, a tough muscle car or hot little street rod? Across Maryland or across the Globe, Old Town Automobile is your source for high quality, reasonably priced classic cars and trucks. Where you buy your car makes a difference. Sellers are not the same: Old Town Auto owns the cars we sell - we're not consigning cars we don't personally know. We conduct a 40-point inspection on all cars. We own our shop and showroom outright and keep our overhead low. Our keen eye for quality and value means we buy the best cars at the best price - passing the savings on to you. Our customers come back again and again...we hope you will too.


text:
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#region

using System;
using System.Threading.Tasks;
using Google.Api.Gax;
using Google.Cloud.ClientTesting;
using Google.Cloud.Spanner.Data;
using Xunit;

#endregion

namespace Google.Cloud.EntityFrameworkCore.Spanner.IntegrationTests
{
    // ReSharper disable once ClassNeverInstantiated.Global
    [CollectionDefinition(nameof(TestDatabaseFixture))]
    public class TestDatabaseFixture : CloudProjectFixtureBase, ICollectionFixture<TestDatabaseFixture>
    {
        private readonly Lazy<Task> _creationTask;

        public TestDatabaseFixture() => _creationTask = new Lazy<Task>(EnsureTestDatabaseImplAsync);
        public string TestInstanceName => "spannerintegration";
        public string ConnectionString => $"{NoDbConnectionString}/databases/{DatabaseName}";
        public string NoDbConnectionString => $"Data Source=projects/{ProjectId}/instances/{TestInstanceName}";

        // scratch can be used to run tests on a precreated db.
        // all tests are designed to be re-run on an existing db (previously written state will
        // not cause failures).
        // if you use a scratch database, be sure to comment out the database
        // creation and disposal methods.
        private string DatabaseName { get; } = // "scratch";
            "t_" + Guid.NewGuid().ToString("N").Substring(0, 28);

        public int TestTableRowCount { get; } = 15;
        public string TestTable { get; } = nameof(TestTableContext.StringTable);

        public override void Dispose()
        {
            using (var connection = new SpannerConnection(NoDbConnectionString))
            {
                var dropCommand = connection.CreateDdlCommand("DROP DATABASE " + DatabaseName);
                dropCommand.ExecuteNonQueryAsync().ResultWithUnwrappedExceptions();
            }
        }

        private async Task ExecuteDdlAsync(string ddlStatement)
        {
            using (var connection = new SpannerConnection(ConnectionString))
            {
                var createCmd = connection.CreateDdlCommand(ddlStatement);
                await createCmd.ExecuteNonQueryAsync();
            }
        }

        public Task EnsureTestDatabaseAsync() => _creationTask.Value;

        private async Task EnsureTestDatabaseImplAsync()
        {
            await Task.Delay(1); // this line exists so the others can be commented.
            await CreateDatabaseAsync();
            await Task.WhenAll(
                CreateTableAsync(),
                CreateTypeTableAsync()).ConfigureAwait(false);
            await Task.WhenAll(FillSampleData(TestTable));
        }

        private async Task CreateDatabaseAsync()
        {
            using (var connection = new SpannerConnection(NoDbConnectionString))
            {
                var createCmd = connection.CreateDdlCommand("CREATE DATABASE " + DatabaseName);
                await createCmd.ExecuteNonQueryAsync();
            }
        }

        private async Task CreateTypeTableAsync()
        {
            var typeTable = @"CREATE TABLE TYPE_T (
                  K                   STRING(MAX) NOT NULL,
                  BoolValue           BOOL,
                  Int64Value          INT64,
                  Float64Value        FLOAT64,
                  StringValue         STRING(MAX),
                  BytesValue          BYTES(MAX),
                  TimestampValue      TIMESTAMP,
                  DateValue           DATE,
                  BoolArrayValue      ARRAY<BOOL>,
                  Int64ArrayValue     ARRAY<INT64>,
                  Float64ArrayValue   ARRAY<FLOAT64>,
                  StringArrayValue    ARRAY<STRING(MAX)>,
                  BytesArrayValue     ARRAY<BYTES(MAX)>,
                  TimestampArrayValue ARRAY<TIMESTAMP>,
                  DateArrayValue      ARRAY<DATE>,
                ) PRIMARY KEY (K)";

            await ExecuteDdlAsync(typeTable);
        }

        private async Task CreateTableAsync()
        {
            var createTableStatement = $@"CREATE TABLE {TestTable} (
                                            Key                STRING(MAX) NOT NULL,
                                            StringValue        STRING(MAX),
                                          ) PRIMARY KEY (Key)";

            var index1 = $"CREATE INDEX TestTableByValue ON {TestTable}(StringValue)";
            var index2 = $"CREATE INDEX TestTableByValueDesc ON {TestTable}(StringValue DESC)";

            await ExecuteDdlAsync(createTableStatement);
            await ExecuteDdlAsync(index1);
            await ExecuteDdlAsync(index2);
        }

        private async Task FillSampleData(string testTable)
        {
            using (var connection = new SpannerConnection(ConnectionString))
            {
                await connection.OpenAsync();
                using (var tx = await connection.BeginTransactionAsync())
                {
                    var cmd = connection.CreateInsertCommand(
                        testTable,
                        new SpannerParameterCollection
                        {
                            {"Key", SpannerDbType.String},
                            {"StringValue", SpannerDbType.String}
                        });
                    cmd.Transaction = tx;

                    for (var i = 0; i < TestTableRowCount; ++i)
                    {
                        cmd.Parameters["Key"].Value = "k" + i;
                        cmd.Parameters["StringValue"].Value = "v" + i;
                        await cmd.ExecuteNonQueryAsync();
                    }

                    await tx.CommitAsync();
                }
            }
        }

        public async Task<TestTableContext> CreateContextAsync(Predicate<string> logFilter)
        {
            await EnsureTestDatabaseAsync();
            return new TestTableContext(this, logFilter);
        }
    }
}

redpajama_set_name: RedPajamaGithub


Today I practised a new version of a straight pool game.
Rack 15 balls, break the balls hard with cueball in the kitchen, and start with ball in hand and try to run out all 15 balls. Don't think of leaving a breakball, just run out. Then rerack, break them up, start with ball in hand.
I did this 30 times and my results were so bad, bad, bad, bad, bad, bad, bad that I will not even post them here.
I played for 8 hours today. I did also take a test with many different drills, and played probably the worst pool I've played for months.
The good thing about this day is that I got so mad on myself that it motivated myself for improving my 14-1 game. This is by far my weakest game, mostly because I lack the patience which is needed to check all angels.
But now I have decided to improve my highest run of 49, and after the Norwegian 9-ball Championship this coming weekend, I will only play 14-1 for 2 weeks, or drills related to 14-1. I normally practise for 3-5 hours average each day, so will get plenty of time to get some runs.
One good drill is to take ball-in-hand with the cue ball and to place it anywhere in your palm, then to drill it into your forehead repeatedly. It really opens up your game once you master it.
I think what I mean is I feel your pain. I think I'll try practicing 14.1 more also.
get familliar with is...Paterns, paterns and, paterns.
don't see in 9 Ball.
This is my contention regarding the games of pool and why pool is such a wonderful game. Agree or not, these are my feelings.
Nine ball and Ten ball are relatively finite games in terms of testing ones ability to play pool when compared to straight pool.
Excelling in nine ball merely scraps the tip of the iceberg and ..... if you are not aware of the wonders of 14.1 you can easily be fooled into thinking you (you being a generic term) are a great player.
Straight pool is a humbling experience to say the least. Nine ball is the exploration of you home town roads whereas 14.1 is the exploration of outer space. The possibilities are infinite. Runs can go on theoretically forever as can layouts.
Running nine balls (actually 8 or less after a successful break) hardly touches on the intricacies of the game.
Try these. They force you to split up the pack, and to practice your primary break shots - and secondary break shots. Let me know how it goes.
Just spread 15 Balls on half a table and try running them...if You start feeling comfortable with it, move to a quarter of the table. This will improve your positional play and straight pool patterns big deal.
what people dont realise is how tough 14-1 really is, id definately say its the hardest out of 9 ball 10 ball and one pocket pool, as its precision pool which takes a high level of concentration and not patience(unless someone else is making a monster run)! While playing try and think a few shots ahead and when the rack opens up a bit think about what ball/balls cud be used for the breakshot! This needs to be done to achieve the high runs. Set yourself sum targets and look to slowly improve at 14-1, although you might not see a huge improvement in 14-1 you'll definately notice it in other areas.
I havent really played for about 4 yrs and only just started to practice properly again in the last week! i know it will take me at least two months of hard practice to be consistant enough to try and break my highest run (237) crossed fingers il hopefully be taking over a club soon. if that happens il definately be practising more and will put some clips up on the net!!
Will advice you to practice straight pool for some of your preparation for the tournament as it definately helps, but be sure to play sum 9 ball aswell a few days b4 the tournament to remind yourself of playing paterns. eg running out racks in sequence and then the usual breaking, kicks and jumps.
It's NOT going at all... If Stevie Wonder decides to take up 14-1 I will not play him!!!
I have played 17 straightpool-matches, and won 8 of them. I have in fact made exactly 1600 balls in 14-1 this week, and my average run is 5,24... My highest run is 33, and my average high run in all matches is 17,38.
Today I decided to play 30 innings and see how many balls I made. I made 211, and had 20 as highest run. Average of 7,03.
I just don't get it. If I have 7 balls clustered in the rack, and I am playing one-pocket I will most likely find a way to run them, and stay focused. Playing straightpool I will hit the rail on the first shot.
I just don't know what to do... When I miss an easy shot in 9-ball, 10-ball, one-pocket or 8-ball, I don't lose my focus or concentration, but when it happens in 14-1 I get so mad. Infact, after a 14-1 session I am normally mad for hours after I quit playing.
I can see progress in my game when doing drills, playing the ghost, recording myself ++, but I just can't find the magic in 14-1.
Please help me, I'm desperate!!!
Slow everything down and try concentrating on your pre shot routine for every shot, eg walk in,stance think about where the white needs to be the next shot etc etc until it becomes second nature!!! when it does youve still gotta work hard for it! Dont beat yourself up as every1 has bad days at the office at some point even the top players for one reason or another!
i personally had a love hate relationship with the game a few yrs back! loved it when things were going good, hated it and go crazy when things were bad (quenten hann/ strickland) style, stopped playing for yrs then grew up realised what an idiot i was being and realised that nothing comes easy in the game and youve gotta work really hard and keep working even when things are going bad!
1:when you play a bad shot wipe it from your mind and concentrate on the next shot or when given your next oppertunity!!!
don't be mad at it. Part of it is you have big expectations of yourself, everyone thinks even an average player should be able to run 50 often... but it's not true.
Think of it this way... you average almost 8 balls run every time you step up to the table, and that includes safeties and dealing with a clustered rack and not having an easy opening smash.
Little runs of 20 and so are nothing to get mad about. Every time you run 20 and have a clear path, step away for a second then pretend you're coming back to the table for the first time, determined to run a bunch of balls, and see if you can do 20 again.
Oliver Ortmann (I guess You've heard of him...;-) ) has an average run of 16.72 over the past two years in the German Bundesliga, and if You ask me, he is out of competition for most humans in straight pool.
I've seen him run 60-something and out in about 5 minutes!
I'm not quite sure, what You are capable of in other games, but I haven't heard of You as a world beater so far and Your numbers are not bad at all, considering You never played straight pool much.
Yesterday I played a long battle with Line Kjorsvik, former European 14-1 Champion for women, and lost 200 - 89 I think it was. High run of 20.
Today me and Line started a 100 ahead session in Straight pool, and I will get 2 points for each ball I make.
Was pretty cool, first time I have really enjoyed 14-1, because I felt I had a chance to beat her.
Anyway, Norwegian 14-1 Championship this weekend.


text:
Q: Deploying MVC3 EF Code First Site I have (with the help of some other users on here) built a simple blog application in MVC3, which I plan to use as my personal website.  It currently works fine locally on my machine, but I know there will be major obstacles that will come with trying to upload it online (GoDaddy).
Basically my question is...
What is the best way to upload and activate an MVC3 site?  How does that work with regard to Code First?  Should I technically be creating the tables in SQL Server before?  If I want to make changes to the tables after, I will just lose all my data that I have online (assuming I don't seed everything I do constantly).
I suppose my major concern is that I really just want to get this site up and running online, but I still have tons of work to do on it.  I want to be able to post blog posts about the sites progress on the site itself, so I don't want to lose any of that data when I change things around.
I apologize as I am quite new to this, so thank you in advance!

A: You can let Entity Framework create the tables for you the first time, but you should disable it from dropping your database later. The best way to do this is by using Entity Framework's database migrations, which creates code containing the latest changes. By executing that code you will only perform those actions, without dropping the entire database. You can also let database migrations generate SQL statements so you can do this via SQL Management Studio (SSMS).
Check out this simple example of EF's Database Migrations: http://www.davidhayden.me/blog/asp.net-mvc-4-and-entity-framework-database-migrations

redpajama_set_name: RedPajamaStackExchange


USA Hockey unveiled the jerseys to been worn by the men's and women's teams at the 2014 Winter Olympics in Sochi today to much ridicule.
Both the blue and the white jerseys feature blue shoulders with sublimated stars printed on them. At the collar is faux-lacing, where what appears to be lacing is simply a printed graphic.
On the white jersey the blue shoulders are bordered with a thick red stripe. On the blue jersey this is replaced with a red and a white stripe high on the sleeves.
The crest is a modernization of the USA shield worn by early American Olympic entries and seen recently on alternate jerseys.
There is no striping on the body of the jersey.
As I did with the Red Wings' Winter Classic jerseys, I'm taking a look at how the elements that went into the final jersey design could have been used to make a better concept.
The sublimated stars are removed because they're a horrible idea. The blue shoulder is retained on the white jersey, however, in the form of a more standard yoke design.
The sleeve stripes on the blue jersey are lowered to a more traditional location and mirrored onto the white jersey, where blue swaps for white. Those stripes are also added to the waist of the jersey in another traditional design concept.
The shield remains in place but slightly larger.
My template doesn't show it but the jerseys would feature standard lace-up collars.
With a handful of changes the 2014 jerseys go from a mish-mash of too-modern ideas to a classic-looking concept.
I've had a blank editor window open since news broke last night that former Red Wing Shawn Burr had died after suffering massive head injuries from a fall in his home, waiting for words to come to me that would sum up what it meant in some nice little way.
That's not going to happen, of course. Can't blame me for trying, though.
Burr was one of the first Red Wings I remember. Growing up with the team in the mid- to late-1980s and into the early 1990s, it was all about Steve Yzerman, Gerard Gallant, Bob Probert, Joe Kocur and Shawn Burr. Without Gallant or Probert or Burr (but with Kocur back after stints with the Rangers and Canucks) the Red Wings finally found their way to the top of the league but those were the guys we watched pull the team out of the "Dead Wings" era.
The people who actually knew him talk about his laugh, his presence in the dressing room. To me he was just toughness personified in a way different from Probert and Kocur. A guy who looked smaller than his height but played bigger than it.
Survive cancer for 3 years only to fall down a flight of damn stairs. The fates had to be pretty damned determined to take a guy like Burr.
Cancer alone wasn't enough to stop Burr, that final fall was needed as well.
Burr joins the aforementioned Probert – as well as Steve Chiasson, Brad McCrimmon and Marc Potvin – as early-1990s Red Wings gone too soon.
Silliness in the face of sadness: Burr, Probert, Vladdie, Chiasson… Damned if the Wings don't have the most tragic NHL94 roster.
And McCrimmon. Worse than I thought.
The Detroit Red Wings announced on Thursday that they will raise Nicklas Lidstrom's #5 jersey to the rafters in a pre-game ceremony before their March 6, 2014, matchup with the Colorado Avalanche.
Lidstrom's number had been slated to be raised during the 2012-13 season. With the loss of the first half of that season's schedule due to the NHL's lockout of its players, the team held off on rescheduling the ceremony so that it wouldn't be rushed.
Lidstrom played his entire 20-season NHL career with the Red Wings before retiring in the summer of 2012. He won the Norris Trophy as the league's best defenseman seven times in his career, was named to play in eleven All-Star Games, and was the most valuable player of the 2002 Stanley Cup Finals.


text:
You are here: Policy Establishments Circular Letters 2014 Estb. Circular 04/2014 : Payment of sitting allowance to Chairman and Members of the Boards of Study/Faculty Boards of Higher Educational Institutions/Standing Committees of University Grants Commission and ad-hoc Committees
Estb. Circular 04/2014 : Payment of sitting allowance to Chairman and Members of the Boards of Study/Faculty Boards of Higher Educational Institutions/Standing Committees of University Grants Commission and ad-hoc Committees
Payment of sitting allowance to Chairman and Members of the Boards of Study/Faculty Boards of Higher Educational Institutions/Standing Committees of University Grants Commission and ad-hoc Committees


text:
Гла́вный корпус Западно-Казахстанского университета имени Утемисова — центральное здание университетского комплекса Западно-Казахстанского университета на проспекте Назарбаева в исторической части города Уральска. Построено в 1936—1939 года для переведённого в 1930 году в Уральск из Оренбурга Института народного образования имени Покровского, позднее — Педагогического института имени Пушкина. Выстроенное в духе царившего в тот период в СССР сталинского ампира здание украсил центральный вход, во многом скопированный с портала Лоджии дель Капитанио в Виченце работы Андреа Палладио. Для строительства здания использованы частично строительные материалы стоявшего на его месте разрушенного Казанского собора.

Примечания

Здания и сооружения Уральска
Здания и сооружения, заложенные в 1936 году
Здания и сооружения, построенные в 1939 году в Казахстане
Сталинская архитектура в Казахстане

redpajama_set_name: RedPajamaWikipedia


text:
The Stattkus-Verzeichnis (SV) is a catalogue of the musical compositions of the Italian composer Claudio Monteverdi. The catalogue was published in 1985 by Manfred H. Stattkus (Claudio Monteverdi: Verzeichnis der erhaltenen Werke). A free, basic second edition of the catalogue is available online.

Manfred H. Stattkus died in August 2012.

List

Click the links to go to the corresponding section in the table.

References

Classical music catalogues


The story which is going to follow is about someone who wanted to follow his passion seriously and the guidelines of his parents.
Anirudh's father was checking messages on his phone.
Anirudh's Father: Anirudh, come here son. See what your cousin Vineet has sent for you.
Anirudh: I am coming papa.
Father: Look at this. Vineet says it's a very good job opportunity for you and the company is great.
Anirudh: Okay. I will have a look at it.
Father: So, did you have a look at the file your brother had sent regarding the job?
Anirudh: Yes, I had a look at it, but, I don't think it's suitable for me.
Father: What do you mean by it's not suitable for you? The branch and qualifications required for the job are same as of yours.
Anirudh: It surely says that I can apply for the post but it doesn't require what I want to do or what I am good at.
Father (angrily): Oh. Don't say that to me. You have qualified in the required branch (degree) and now you are just making excuses for having more rest in the house.
Anirudh (little bit angrily): I have said what I had to and what I want to do but you just want to and love to forcibly put things on me.
I have shown you my projects, my works in the field I want to work in, but, you just want excuses to make everything work under your influence.
Father (angrily): Oh sure! You have grown up very big no, so now, you can speak whatever you want without respecting anyone. Talking to you is a waste of time.
Anirudh (angrily): very nice, now you changed the topic. Another excuse and topic.
Then the father and son turned from each other and rushed to their respective rooms.
He had a keen interest in music. He used to write, compose and record songs, then he used to pitch them to many people and productions in both offline and online.
Actually from 'applying for jobs', he meant pitching his musical works & music auditions, and from projects, he meant his musical works. He had also started earning by freelancing. About his earnings, he used to tell his parents that he got the money for doing some small projects related to his studies for some companies.
One day, Anirudh's mother decided to talk to him about jobs.
Mother (being a little worried): How many days are you going to take for getting a job?
Anirudh: In how many days, does God answer your prayers?
Mother: The prayers are answered at their right time, no one can say how much time it is going to take.
Anirudh (smiling): Exactly, that's too my answer to your question.
Mother: But it has been 2 years. I think you should not side-away the jobs your relatives recommend to you. If everything continues like this then I don't think it's going to be very good for your future.
Anirudh (giving some assurance): I have full faith in my works, I am dedicated towards them and I am very confident about getting a job through my works and abilities.
and he knew what he wanted to choose and he did choose one of them.
It's not that he never talked about his musical stuff to his parents but they did not support this and told him to make it a hobby only, not his life.
Most of the time, we toggle between passion and money. Great are the people who chose passion over money and succeeded.


Click the links below to find the pages required.
Bakewell's Old House Museum is well worth seeking out, it is one of the best-preserved 15th century houses in the country. It has been restored to its former glory by the Bakewell Historical Society and is now a fascinating folk museum.
An independent profile of Derbyshire and the Peak National Park.
The White Peak is an area well known for its distinctive dry stone walls, beautiful dales and picture post card villages. The section covered by this feature is stunningly attractive, with the busy market town and tourist hotspot of Bakewell at the centre.
Set in an enviable location on the banks of the River Wye, in the heart of the Peak District, is the picturesque old market town of Bakewell. Since 1951, the administrative centre for the Peak District National Park.
It was at the Rutland Arms, in about 1860, where the hotel cook misunderstood her instructions and produced the world famous Bakewell Pudding not 'tart', as some mistakenly call it nowadays. Instead of stirring the egg mixture into the pastry, she spread it on top of the jam, which has to this day proved to be a stroke of genius in creating name awareness for the town. Today you can sample this wonderful delicacy at the Bakewell Pudding Shop.
Millers Dale is a tiny hamlet, set in the heart of the Peak District, sharing its name with the dale in which it lies. It was once a major junction on the Midland Railway Line, and Millers Dale was one of the largest stations on the line.
The popular trail follows a disused railway line that has been converted into a track for walkers, cyclists and horse riders. It runs for eight and a half miles from Coombs Road Viaduct, one mile southeast of Bakewell to the head of Chee Dale, about three miles east of Buxton.
The route follows the deep limestone valley of the River Wye through breathtaking countryside. But not without diversions, to avoid tunnels, one of which occurs on the way from Great Longstone to Monsal Head, where there is a magnificent viewpoint.
Perhaps the most perfect example of a medieval manor house in the country. The gardens are a delight and believed to be the most romantic in Britain, being the setting for the elopement of Dorothy Vernon and John Manners.
It has been the location for several major feature films and TV dramas over the years. In recent times the hall was used as Mr Rochester's home, Thornfield, in the BBC's adaptation of Jane Eyre.
Magpie Mine stands one third of a mile south of the village of Sheldon, from where it can be seen standing darkly silhouetted against the skyline. Tragically, in 1833, three Red Soil miners were suffocated to death by a fire lit by the Magpie miners. Following a year in prison and a lengthy court case at Derby Assizes, five Magpie miners were acquitted of the charge of murder owing to conflicting evidence and the lack of intent. The three widows of the Red Soil miners reputedly put a curse on the mine and supposedly a ghost was seen there in 1946.
1. Bakewell Tourist Information Centre (Tel. 01629 816558) located in the Old Market Hall, an impressive building that dates back to the 17th century. Goods produced by members of the Peak Products organisation are attractively displayed for purchase. In addition, if you want something a little different, you can send a postcard to the future as well as acting as landscape detective!
2. Aldern House (Tel. 01629 816200) became the administrative centre in 1951, when the Peak was the first of the national parks to be set up in England and Wales. From its offices, it controls an area of 542 square miles and covers Staffordshire, Cheshire, West and South Yorkshire and Greater Manchester as well as Derbyshire.
Bakewell's strong connection with agriculture is emphasised every August when the town hosts the largest tented agricultural event in the UK, Bakewell Show, also one of the oldest and is often known as the 'Little Royal' .
The two-day event attracts around 65,000 visitors to the showground, which is sited in a beautiful location close to the banks of the River Wye.
Winster Pancake Races on Shrove Tuesday are still very popular as are the Flagg Point-to-Point Races, held the first Tuesday after Easter.
Many other events are held throughout the year details of which can be obtained from Bakewell Tourist Information Centre.