## Astrophotography – Set exposure for photographing the Milky Way

I would like to photograph the Milky Way, but I had problems with the ambient light. The first attempt suffered from street lights. The second attempt, away from street lamps that suffered from the full moon, was surprisingly bright as I had to take pictures in the moonlight shadow of a building. I'll try again if I can work outside the moonlight hours.

I have used the following exposures:

• ISO 6400, 5 s, f / 2.8 (for a 24 mm image)
• ISO 1600, 15s, f / 2.8 (17mm wide with this 17-55mm lens)

… especially because higher ISO values ​​cause too much ambient light during longer exposures. Nevertheless, I see no Milky Way in my pictures. However, the pictures have a lot of ambient light, which I think is my problem.

I have seen some conflicting information about stopping the Milky Way exposition. One answer says that ISO 6000 * Fstop ^ 2 / Lock should be. Another source recommends ISO 1600, 1: 2, 30 s (or equivalent). There is a factor of 2 (one point) between these recommended positions.

At least the shutter speed (or should I say the exposure time) seems pretty much in agreement: the first answer recommends 600 / 35mm equivalent focal length, whereas the other source recommends 500 / 35mm equivalent focal length, and the two sources differ only by 20% stops, only a quarter Stop).

With this 17-55mm lens at 17mm, I can go as long as 18-22 seconds according to the 500 / f or 600 / f rules. What would be the optimal ISO for that? Should I go:

• ISO 3200, 20 s, f / 2.8, which is slightly underexposed by the second source but is slightly overexposed according to the first source and is valid under the 600 / f rule, but not in accordance with the 500 / f rule
• ISO 6400, 15 s, f / 2.8, ie correct exposure according to the second source
• ISO 3200, 15 s, f / 2.8, ie correct exposure according to the first source

…or something else? The camera is a low-end crop sensor, so I think ISO 6400 might be a bit too high (it's the maximum non-expanded ISO sensitivity of this camera), and I even have to use the 24 megapixel images at 6 megapix, reduced noise downscaled even at ISO 3200, which would give preference to ISO 3200, 20 s, f / 2.8. The manual ISO setting works on this camera only with dot.

## Arrays – How to fix an error when printing a map set?

My task is to create a deck of cards and print them in many ways. But I have a problem where the result is 52 cards x 4 times. Probably a problem with declaring my card obj with my suit array, but I do not know how to fix it. Can someone help?

Basically, I've created a map class that contains the value of the map / or rank, color, and face (which is printed on the map). Then a deck class that creates an array of 52 cards and also adds a shuffle method. The goal is to print cards before and after mixing.
The problem is in the Deck class, which seems pretty strange to my loop for its constructor, that it outputs the result x4. I tried some, but it does not work.

``````public deck ()
{
for (int i = 0; i <c.length; i ++)
{
for (int j = 0; j <suit.length; j ++)
{
for (int k = 0; k <face.length; k ++)
{
s = suit[j];
f = face[k];
Switch (f)
{
Case "2":
v = 2;
break;
Case "3":
v = 3;
break;
Case "4":
v = 4;
break;
Case "5":
v = 5;
break;
Case "6":
v = 6;
break;
Case "7":
v = 7;
break;
Case "8":
v = 8;
break;
Case "9":
v = 9;
break;
Case "10":
v = 10;
break;
Case "Queen":
v = 11;
break;
Case "Jack":
v = 11;
break;
Case "King":
v = 11;
break;
Case "Ace":
v = 12;
break;
}
c[i] = new map (v, s, f);
System.out.println (c[i].toString ());
}
}
}

}
``````

Expected Result: 52 cards before and after mixing

## c ++ – for 1 string. find the longest set of conditions

Write 1 string of 2 characters A and B.
Determine the number of characters of the longest substring so that the difference between the two characters does not exceed 1. (Sequential substring)
<= 1000000
Entrance:
AAAAAAAAABBAAAAAAABBBBAAAAAAAAAAABBB
Output:
13

``````gets (s);
T = (strlen (s) +1);
s[T]= & # 39; C & # 39 ;;
for (int i = 0; i <T; i ++)
{
if (s[i] ! = s[k])
{
Z[m]= i-k;
k = i;
D = m;
m ++;
}
}
``````

## magento2 – Custom offer product weight set

I'm trying to set a custom product weight based on a custom product option.
I've tried several things like a plugin, before / after events, actual events like `sales_quote_add_item` etc.

I can adjust the product weight during these operations, but once I've calculated the shipping costs, it seems like loading the original product weight, not the weight from the system `quote_item` Table.

At this point, I have removed everything except the one `sales_quote_add_item` Code.
Any help is appreciated, and thanks in advance.

## Can I use my Google Assistant "Bedtime" routine to set an alarm that automatically uses a routine?

If I use Google Assistant's bedtime routine, I have to do some things, and one of them is to ask me when to stop the alarm. My morning is pretty free, so my alarm clock may vary.

Typically, you can set an alarm to let your "Good morning" routine play when you cancel your alarm. However, this does not seem to work on my "Bedtime" routine alarm, it simply generates a new alarm without this setting. The only way to set a routine when I turn off the alarm is to set a clock in the Clock app.

What I'd like to do is just say "bedtime", do my bedtime routine, and when I turn off my alarm clock in the morning, I want me to play my "good morning" routine so I do not have to talk or push anything else , And I want that to be part of the alarm I wake every night. Is this something that is possible out of the box?

## Best company to set up servers for speed and security?

Dear,

We are tired of these companies saying they know about servers. I'm telling them that we have 1000 people on the ground right now, sending php requests, etc., please make sure the server behaves. And then it flops.

What is the best way for me to get a server setup (production server) and security measures? I do not care about the price, I need the best and good service.

## Menus – Set certain items in the Nav Walker to Archive pages or Singles to Active

I have created a custom post type for events and a link in my menu to the archive page for this event (/ events).

I use `wp_nav_menu ()` to call up the menu.

When I'm at / at events, the menu has the `current_menu_item` Class and I designed that to change the colors. That works perfect.

However, I would like to improve this a little by setting the menu item to "Active", even if someone is on a particular page.

I've created a page to show my past events (/ past events). It is controlled by a file called `page-past-events.php`, The idea is when a user is turned on `/ past events` The event link is displayed as active. Since I have no menu item for it, I want that `event` Menu item to have the active class. Ideally, this element would be active if a user is also at one of the individual events (events / event-12).

My current code is

``````        wp_nav_menu (array ()
& # 39; # 39 & theme_location; => & # 39; headerMenu & # 39 ;,
));
``````

I found this code for my functions.php:

``````Function my_special_nav_class (\$ classes, \$ item) {
if (is_page (& # 39; past-events & # 39;)) {
\$ Classes[] = & # 39; current menu item & # 39 ;;
}

Return \$ classes;
}
``````

However, it is not my menu item for events.

I can do it with a script like this:

``````

``````

But I was hoping for a "WordPress way".

## asp.net mvc 5 – How to set the domain service setting?

I'm new to the code review, I have an ASP.net MVC5 project that includes several domain services, and one of them is `Email services` the e-mail will be sent when the entity is updated.

``````public class project {
}

public interface IProjectService {
Event invalid EventHandler updated;
}

public interface IEmailLogRepository {
void Insert (EmailLog obj);
}

public class EmailService {

public string SmtpServer {get; set;}
public string SmtpPort {get; set;}
public string SmtpSender {get; set;}
......

public string TemplateASubjectFormat {get; set;}
public string TemplateBSubjectFormat {get; set;}
public string TemplateAContentFormat {get; set;}
public string TemplateBContentFormat {get; set;}

public EmailService (IProjectService service, repos for IEmailLogRepository) {
service.Updated + = OnProjectUpdated;
_repos = repos;
}

private void OnProjectUpdated (object sender, ProjectEventArgs arguments) {
if (args.Entity.ProjectType == "A") SendEmailWithTemplateA (args.Entity);
if (args.Entity.ProjectType == "B") SendEmailWithTemplateB (args.Entity);
}

private void SendEmailWithTemplateA (project obj) {
MailMessage mail = new MailMessage ();
mail.Suject = string.Format (TemplateASubjectFormat, obj.Name);
mail.Content = string.Format (TemplateAccentFormat, obj.Name);
......
SendEmail (mail);
}

private void SendEmailWithTemplateB (Project obj) {
MailMessage mail = new MailMessage ();
mail.Suject = string.Format (TemplateBSubjectFormat, obj.Name);
mail.Content = string.Format (TemplateBContentFormat, obj.Name);
......
SendEmail (mail);
}

private void SendEmail (MailMessage Mail) {

EmailLog Log = new EmailLog ();

To attempt{
SmtpClient smtp = new SmtpClient ();
........
smtp.Send (mail);
log.Status = "Success";
_repos.Insert (log);
} catch (exception ex) {
log.Status = string.Format ("Error: {0}", ex.Message);
_repos.Insert (log);
}
}
}

public class ProjectController: Controller
{

public ProjectController (IDbConnection connection, IProjectService service, IEmailLogRepository emailRepos) {
_service = service;
_emailService = new email service (_service, emailRepos);
_emailService.SmtpServer = Settings["SmtpServer"];
........
_emailService.TemplateASubjectFormat = Settings["TemplateASubjectFormat"];
_emailService.TemplateAContentFormat = Settings["TemplateAContentFormat"];
_emailService.TemplateBSubjectFormat = Settings["TemplateBSubjectFormat"];
_emailService.TemplateBContentFormat = Settings["TemplateBContentFormat"];
........
}
}
``````

In the above code is the `Email services` contains many settings like `SMTP` and template information for different project types, these settings are currently in the database (a settings table that stores all settings for different services), and the service properties are assigned in the ASP.net controller constructor.

This type of property assignment has resulted in the constructor containing many lines. Some controllers may require more than one service. Every service in my projects is designed this way. I think it's not a good design. So I can test what the best practice for assigning settings values ​​for assigning settings is?

Many Thanks.

## Group Policy – Use a Group Policy object for users to create a folder and set permissions

With Group Policy settings for user groups, we create a home folder for new users on the server. This base folder inherits the permissions "CREATOR OWNER" from the root share. Now we want to create a second folder named "Scans" under the home folder. However, we want to change the permissions of this folder so that the user has full control over the subfolders and files – we do not just want to inherit the "CREATOR OWNER" permissions. The problem is that the scanner places files in this folder and becomes the owner of the file, causing the user to lose access.

I'm curious about what ideas are there?

I think I know what options I have, and none of them are optimal. In particular, I'm not aware of a Group Policy preference item for users who can set file / folder permissions. They are all limited to the computer, which does not work in this case. In addition, the logon script execution order is set before the folder items for Group Policy Settings folders that require at least two GPOs, and I hate logon scripts these days.

The goal would be to NOT use logon scripts, use a single GPO item, and be fully configured the first time you log in (without logging in twice or waiting for gp to update, etc.).

The only solution I can think of would initially use a single GPO with a logon script to set user-level permissions. The bottom line is that it's best to create a logon script that creates the home folder, creates the scan folder, and then sets permissions. However, this is so ugly and painful because our GPOs use article-level targeting for a variety of reasons, and logon scripts do not support item-level targeting.

## Reference requirement – Alberti Rank 1 set and an inflatable argument

In this paper stands the rank of Alberti
says that the unique part $$D ^ s u$$ in memory of $$mathcal L ^ d$$ of the sales derivative $$You$$ a function $$u in BV_ {loc} ( mathbb R ^ d; mathbb R ^ m)$$ may be
written, in polar decomposition, as $$D ^ su = xi otimes eta | D ^ su |$$,

Then, "by a standard inflation argument, this implies the near to $$| D ^ s u |$$-a.e. Point $$x$$ asymptotically $$u (y)$$ behaves like a function that has a single nonzero component, parallel to $$eta (x) in mathbb {S} ^ {m-1}$$and depending on a single scalar variable, the component of $$y$$ a long $$xi (x) in mathbb {S} ^ {d-1}$$".

1. What does the statement in quotes heuristically mean?
2. How can this be proved exactly (ie, could you explain the details of the above "standard blow-up argument")?
3. Where can I find a picture to illustrate this situation?

A more general question was asked in the sentence of Alberti rank one. A related topic is Alberti's Rank 1 sentence and the reduction of BV's function to the two-dimensional case.