Upload static Aspx / HTML to SharePoint using Visual Studio

I have a tool that generates a set of HTML pages that are referenced only within an index page (even a static HTML page). My main goal is to upload this page group to a local SharePoint 2016 collection / website.

I found out that the process with SharePoint Designer 2013 is quite simple, but only works with aspx pages (this is not a problem as my tool can also generate the static pages as aspx pages):

  1. Download and install SharePoint Designer on your local computer
  2. Use SharePoint Designer to connect to your SharePoint site
  3. Go to the subsites section
  4. Select Create new subsite – select any template and click Create
  5. Go to All files Section, and delete all generated files
  6. Copy your static aspx pages (including your index page) to All Files
  7. Find the index page in the list of all files and set it as the start page
  8. Add a link to the index page on every other page on your main page

This process works fine and I have no problems with it. However, SharePoint Designer will be phased out and will no longer be supported in future versions of SharePoint. Although it takes more than 7 years until the end of life, I'm now looking for an alternative with Visual Studio.

I've created a test server and installed Visual Studio on the server (because this is required). I also created a blank SharePoint project. Now I have only the following options:

Enter image description here

Which option (if any) is best for creating a project in Visual Studio that has the same behavior as SharePoint Designer? Or is there an alternative solution within Visual Studio that allows this?

Network Manager – How to add a static name server to a set of dynamic name servers?

Currently, I get a bunch of name servers via DHCP via NetworkManager.
I have a project-specific name server that is unknown to the DHCP server and that I want to include in my nameserver list.

A related question is: How is the merge done?
Some of the netplan documentation suggest netplan config show can show me the result of a merge, but this command does not seem to be in my version of netplan.

Windows – Providing Static Files via FTP with Nginx or the like?

I've created a Flask Python application that lets you play videos on a regular browser player. However, the server hosting the application (a Debian server) does not have enough hard drives to store this type of content (many huge mp4 videos). The application will still run on this server, but I have a Windows server with a lot of disk space available, so I enabled the FTP service and decided to connect my code to the FTP each time to grab that kind of and upload content.

Is that a sensible way? Are there other options?
I thought about using Nginx to search for static files through FTP, but I found that this might not be possible. I am somehow blind and looking for opportunities. My goal is an architecture that can cope with 100, 200 users watching videos on the website.

Architecture – Unit – Logic for storing and loading objects with static and dynamic data

I need help to get a structure for my saving and loading.

I'm building a city, so I have buildings that need to be rescued.

For example, every building has a lot of static data name. description, etc.

But it also has a lot of dynamic data, for example worldPosition. id, etc.

My current structure looks like this:

On every building GameObject I keep a reference to a ScriptableObject this saves all static data.
I also save a reference to one Object this saves all dynamic data.

This means I need 2 classes to store building data that I do not like (BuildingStaticData & BuildingDynamicData)

When I save / load my game, all I have to do is save the dynamic data. To save I just save the DynamicData,

For loading I invite the DynamicData, and instantiate a building GameObject that is connected with it, then the GameObject has the reference to the StaticData,

While this works, I would prefer to have a structure for which I have only one class BuildingDatabut I do not want the power of one ScriptableObject where I can reference other prefabs etc.

I need help with this logic.

Authentication – The most efficient way to send static files (videos) to authorized users using node.js and apache / nginx

I have a primary application server based on node.js. I have implemented authorization middleware using JSON Web Tokens (JWT). I want to securely deploy static video files with authorization after the user logs in.

I use the Apache web server to host a static application with a side angle that communicates with the node.js app server through a proxy pass with RESTful APIs.

my basic architecture

I currently have node.js provide the protected static videos because node.js checks if the user is authorized with the JWT middleware.

Is there any benefit or performance gain that allows Apache to deliver these static video files? Do I need a separate media server like Wowza? If so, how do I ensure that the user is authenticated before I serve him? These files are big 4K videos. How are some best practices used to ensure that the videos can be played back without much buffering on a decent connection?

iis lightsail server access is not possible after setting the static IP address

I tried to set up DNS on my Windows 2016 virtual server and I got the error message that the static IP address is not set (at first I did not realize that the lightsail control panel also had the DNS setting feature) ,

When trying to set the IP address and subnet, as well as the default gateway and the default DNS server, the internet connection on the server is now disconnected and I no longer have access to the server.

I use Amazon Lightsail and I tried to stop and start the server, but it did not help.

Can I reset these settings in some way through the Lightsight panel or otherwise to access the server?

Thank you very much

java – Design pattern for static fields of a subclass

I'm creating a library and want it to be an abstract class named Optimizer, The user should be able to choose from a number of predefined ones Optimizers and, if desired, apply fluid methods to modify specific fields.

Everyone Optimizer has a "learning rate", so I have defined learningRate as a field in this class as well as his flowing setter.

abstract class Optimizer {
    private double learningRate;

    public Optimizer withLearningRate(double learningRate) {
        this.learningRate = learningRate;
        return this;

Kind of Optimizer should be "Gradient Descent" (with a default learning rate of 0.01 + more properties than just learning rate), so I defined OptimizerGD corresponding:

public class OptimizerGD extends Optimizer {
    private double momentum = 0; // default momentum
    private boolean nesterov = false; // default nesterov

    public OptimizerGD() {
        withLearningRate(0.01); // default learning rate

    public OptimizerGD withMomentum(double momentum) {
        this.momentum = momentum;
        return this;

    public OptimizerGD withNesterov() {
        this.nesterov = true;
        return this;

And I want the user to be able to pick this Optimizer in a simple way, how Optimizer.GDSo I added that line to mine Optimizer Class:

public static final OptimizerGD GD = new OptimizerGD();

Allow for:


Here are my concerns about my current design pattern and possible ideas for possible solutions:

  • IntelliJ warns me about it "Referencing the OptimizerGD subclass from the superclass optimizer initializer may cause a class loading deadlock.",

My idea is to make another class called Optimizers contain the static field for GD (and others I'll add later), though I think I'd prefer to keep that stuff in it Optimizer because that seems more conventional? I assume that this does not make much difference to the user's POV.

  • My fluent partner for learning rate returns Optimizer instead of the specific subtype of Optimizerwhich means that it always has to be called last when I chain setters (GD.withNesterov().withLearningRate(0.5))

My idea for it is to remove withLearningRate from the optimizer, and instead I implemented it in each subclass so that it can return the subtype. The reason why I hesitate to accept this is because I repeat the same code with just one other return type.

  • I do not want the user to be able to implement his own Optimizer or instantiate OptimizerGD, I want them to always use GD followed by typesetters you may want to use. I think I prevented it Optimizer Implementations by making it package-private, but OptimizerGD must be public so the setters are reachable.

I do not know what to do here. Maybe my design pattern needs to use bullets?

I have asked a number of questions here, but they are all related to my one main question, namely, what goals and specifications should correspond to the design pattern of my code.

Object Oriented – Java – Private Static Vs. Public Static

A wrapper class for storing primitive parameters that are initialized with values. Is it better to use public static or private static with heaps of getters and setters for these constants?

public class Wrapper {
  // This
  private static int PARAMETER = 100;
  public int getParameter();
  public void setParameter(int n);

  // Or this?
  public static int ANOTHER_PARAMETER = 200;

My observations:
1. These parameters are rarely changed.
2. I feel that it reduces readability when many of these parameters are used private static with many getters and setters.

Any thoughts about which is better? Maybe depending on different scenarios?

Thank you very much.