Why match the background color when shooting to the one that is going to be used in the final presentation when the subjects will be cut out anyways?

In this (Corporate Portraiture Advice) question the photographer explains that he/she is going to use a white background when photographing coorporate portraits even when the final presentation would have the subjects against black, the idea was to cut them out from the background in post.

In some of the answers and comments people objected rather strongly to this use of white background when final presentation would be on black, arguing rather for a black background.

Why is that? Why should a black background be preffered?

My initial thinking when reading the question was that if enough light spilled on the background it would be compleatly blown out thus making the cutting out trivial.

What is going on inside the while loop? [on hold]

    ###For this problem we need to find the savings rate which will be between ## 0 and 1 and that amount will be saved in the current savings in addition to ## return on investement     annual_salary = float(input('Enter your annual salary: '))  #The portion of the monthly salary saved portion_saved = 0  # keeps increasing by increment if curent_savings < down_payment  #cost of dream house total_cost = 1000000  portion_down_payment = 0.25   down_payment = portion_down_payment * total_cost  current_savings = 0  #r is annual rate r = 0.04   #increase in savings will be due to return on the investment on savings #and percentage of the monthly salary ie portion saved . monthly_salary = annual_salary / 12 monthly_sal_saved = monthly_salary * portion_saved  no_months = 36  #Found the formulae for addings interest on current savings and also #adding the monthly savings to it.  #current_savings = current_savings * (1 + r / 12) + monthly_sal_saved   semi_annual_raise = .07        ##This is the core of the problem where the algorithm for no of months for      ##a given savings rate is and saving rate keeps on incrementing....         #HOw much would current_savings would be at the end of 36 months #first component of c_s is the monthly_sal_saved and that increases     #after every 6 fucking months.  #So after 36 months how much would that component be???     #Below is the answer, it gives curent_savings for a given number of months  low = 0 high = 1   months = 0    #while not months == 36: #    if months % 6 == 0 and months !=0: #        monthly_salary = monthly_salary * (1 + semi_annual_raise) #        monthly_sal_saved = monthly_salary * portion_saved #    current_savings = current_savings * (1 + r / 12) + monthly_sal_saved #    months +=1 # #    while current_savings < down_payment: #        portion_saved = (low + high) / 2 # #    while current_savings > down_payment: #        portion_saved = (low + current_savings) / 2     #         #         #         #         steps = 0  while not(months == 36 and abs((current_savings - down_payment)) < 100) and steps < 100:     if months == 36:         months = 0         current_savings = 0         monthly_salary = annual_salary / 12         monthly_sal_saved = monthly_salary * portion_saved       if months % 6 == 0 and months !=0:         monthly_salary = monthly_salary * (1 + semi_annual_raise)         monthly_sal_saved = monthly_salary * portion_saved      current_savings = current_savings * (1 + r / 12) + monthly_sal_saved     months +=1        if months == 36 and abs(current_savings - down_payment) > 100:          if current_savings < down_payment:              high = 1             low = portion_saved             portion_saved = round((low  + high) / 2, 5)             steps += 1             elif current_savings >= down_payment:             high = portion_saved             portion_saved = round((low + high) / 2, 5)             steps +=1          print(portion_saved, ',',  months)       if steps < 100:     print('\n\n', 'The savings rate is',portion_saved, '\nThe number of steps are {}'.format(steps))   else:     print('Sorry your salary is too low') 

I’m sorry for the long code, but I just have a problem at the last while loop, it seems like the last while loop don’t work if I remove the abs(down_payment – current_savings) > 100 statement on line 101(for example, if you remove this statement and run the program with input 150000 the savings rate will be too high(portion_saved in program).

But, this should not happen, because in the while loop above that abs statement is already there so for an appropriate savings rate(portion_saved), if the abs statement is True, then not(True and True) should evaluate to False in the while loop and the loop should not be executed. But for some reason, the loop gets iterated one more time giving an inappropriate savings rate so I have to put the abs(current_savings – down_payment) > 100 in line 101 to prevent python from evaluating portion_saved again. I can’t visualize the function because that’s thousands of steps long and python visualizer don’t support that. Any help is appreciated.

Screen brightness keeps going to max

My system

I’m running a 13″ retina MacBook Pro and using El Capitan 10.11.6.

Model Name: MacBook Pro Model Identifier: MacBookPro11,1 Processor Name: Intel Core i7 Processor Speed: 2.8 GHz Number of Processors: 1 Total Number of Cores: 2 L2 Cache (per Core): 256 KB L3 Cache: 4 MB Memory: 16 GB Boot ROM Version: MBP111.0142.B00 SMC Version (system): 2.16f68


Often while working in a low ambient light environment, I’ll turn down the screen brightness to make the display more comfortable to work with. Several times, immediately after turning down the brightness, the system will raise it up to max again.

I turn it down.

The system turns it up.

This goes on for several minutes and continually interrupts/blinds me.

My Display settings allow automatic brightness adjustment. But this is in a room often with no lighting other than the laptop so it should be adjusting down if anything.

Even after turning this setting off and closing System Preferences, the brightness still is changing automatically. I have also tried resetting the System Management Controller (SMC).

How do I a) prevent this from happening and b) actually turn off automatic brightness adjustment?

Going live via Git and Composer

Can someone explain the roles that Git and Composer have in the process of pushing a localhost build (Drupal 8 in MAMP on Mac) to a live cPanel shared hosting server?

I have SSH / shell access by the way.

Where I’m confused is – should I be committing my entire build to my github repository and then pushing that to a bare/empty public_html

Or do I need to use Composer server-side to do a clean Drupal install which I then push the CURRENT git items too and then upload via ftp the remaining files and folders that comprise the entire site?

Ideally I’m hoping I can git push the Drupal install onto the server as I see version issues with doing 2 separate Drupal installs (1 local and 1 serverside).

And finally – I’ve used CLI Mysql commands to backup my Database. Do I import that into the cPanel or create a fresh DB on the server?

Which then brings up the next question – in what order should all this happen?

For example:

if Git Push is the answer for the ENTIRE build (Drupal install and all files and folders), then do I that Git Push before or after Database creation…

and If Git Push does control the whole transfer – then do I even need Composer interacting with the remote server or does Composer’s roles exist solely on the localhost?

Linq: Going from IQueryable to List (or IEnumerable)

I have a “GetPersonsPerDepartment()” method returning a IQueryable> while I’m trying to get a simple List or IEnumerable with all the persons from every department. I wrote a simple method GetAllPersons() that solves this with a loop but I feel I must be missing a simple command to get the same result:

private List<Person> GetAllPersons() {     List<Person> allPersons = new List<Person>();      foreach(var Persons in GetPersonsPerDepartment())     {         allPersons.AddRange(Persons);     }      return allPersons; }  private IQueryable<IEnumerable<Person>> GetPersonsPerDepartment() {     IQueryable<IEnumerable<Person>> Persons;      using (var context = MySource.GetPersonsContext())     {         var library = "Personlist";         var PersonFolderList = context.Web.Lists.GetByTitle(library);         context.Load<List>(PersonFolderList);          var PersonFolderListItems = PersonFolderList.GetItems(new CamlQuery());         context.Load<ListItemCollection>(PersonFolderListItems);          context.ExecuteQuery();          Persons = PersonFolderListItems.Where(x => x.FileSystemObjectType == FileSystemObjectType.Folder).Select(x => GetPersonsFromFolderListItem(x, context, PersonFolderList));     }      return Persons; } 

Clicking the device back button closes the app instead of going back to previous page in windows phone 8.1 cordova apps

I am developing a Cordova app. in which i have folder structure as www/index.html and www/errorPage.html.

when an error occurr in the loaderror event of inaapbrowser in index page. i have redirected to error page in the loaderror event.In the error page if i click on the hardware back button the app crashes instead of going to home page.this is for windows phone 8.1 cordova apps .