Networking – Remote Desktop Client Connection – Can Connect Via Cell Phone, Cannot Via Landline + ASUS Router + Public, Static IP

I want to connect from home to Windows Server desktop using the Remote Desktop Connection client.

  1. When I connect my laptop to the network using my cellphone, it works like a charm – I connect successfully and it works.

  2. At home, I have a landline with a static public IP and an ASUS wireless router. Unfortunately bdzionk – each time I get a timeout.

Apparently my home router or network provider is doing something with RDP (other services are working as expected).

How to better diagnose and solve the problem?

linux – Configure a static IP address to connect to the device in the subnet

I have a Dragino-Yun v2.4 shield, which is a device that can be connected to an Arduino to give it networking capabilities. It has an Ethernet and Wifi port. I don't have a wifi antenna at the moment, so I tried to connect via the Ethernet port.

According to the manual, the address 172.31.255.254 is assigned to the Ethernet port in a /4 subnet (DNS mask: 255.255.255.252). I started with a blank Arch-Linux-ISO on a ThinkPad and got it so far because the device ping was successful. According to the manual, it should also be possible to connect via ssh, but it didn't work.

I then restarted and wanted to run the commands cleanly, but had no success on the second try. Here are the commands that I executed, following this Archwiki page (enp0s25 is the ethernet link of my ThinkPad):

$ systemctl stop dhcpcd
$ ip link set enp0s25 up  # It is up by default though
$ ip addr add 172.31.255.253 dev enp0s25
$ ip route add default via 172.31.255.252
$ ping 172.31.255.254 -c3
PING 172.31.255.254 (172.31.255.254) 56(84) bytes of data.
FROM 172.31.255.253 icmp_seq=1 Destination Host Unreachable
FROM 172.31.255.253 icmp_seq=2 Destination Host Unreachable
FROM 172.31.255.253 icmp_seq=3 Destination Host Unreachable
--- 172.31.255.254 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4054ms
pipe 3

I will add that I have very little networking experience. Where am i wrong Is there something I missed?

html – Can you put all the text in a static tag for SEO but completely rewrite the page with JavaScript?

Why is there initial text in the tags? If it is for SEO reasons, then it is hidden text and definitely a bad idea for SEO.

To answer your JS question, it is good to dynamically fill the text of your page with javascript. (Google spiders with Chrome and runs JS).

The problem is really the preexisting text and why it is there. Is it different from the text you add with JS? Is it rich in keywords?

Networking – How to assign a static IP address to a VMWare guest with the NAT network adapter?

I am creating VM Workstation Linux guests with NAT network adapters and would like some images to have static IP addresses.

I have read this proposed solution but am unable to make it work. It seems to ignore my entries and frequently rewrite the configuration file. Plus, it seems too tricky of a solution to keep more than a few images.

NB: I am using VMWare Workstation v10 and v12.

VPN – static IP for remote work

Let's see if you can enlighten me.
Some customers that we have, ask us for our IP to be able to access their servers and others. Until now, in the office (with fixed IP), we had a team to which we connected remotely when we had to work from home, but it is a nuisance, in addition to a problem when, for any reason, the equipment was turned off.
The case is that we have to be able to work from our computers but under a fixed IP, which allows us to access our customers' servers.
I was thinking of NordVPN with static IP service. If someone has used it or is aware of an alternative, I would appreciate it if you could share it.

Thank you very much !!

Static archive database: SQL Server cannot shrink it and leaves ~ 400 G of unallocated space

We are having a problem with our databases. Here's what's going on:

All databases have approximately 50% unallocated space and DBCC SHRINKDATABASE/SHRINKFILE will not reclaim space. These are archive databases that have been recently cleaned up and are supposed to be read only, so performance is not an issue (yes, I am fully aware of the fragmentation of collapsed and clustered indexes and I m & # 39; in file). The main objective here is to reduce all data files to save $$ on storage space. Again, I don't care about performance, these data files must be reduced at all costs! I'm talking about 800 GB, 1.5 TB and 2.1 TB databases. So nothing ordinary or small.

Therefore:

  • reduction database shows ~ 50% of space lost
  • a post-shrunk database with a mandatory page reorganization (NOTRUNCATE) and a mandatory free space of 1% continue to display with 50%
    unallocated space
  • so an 800 GB database appears in sp_spaceused as having ~ 410 GB of unallocated space even after shrinking
  • a reduced file recognized that the database only has 1% of free space
  • when we started using SELECT INTO to migrate tables to another database, we started to notice that the original tables occupied hundreds of thousands of pages, but after the migration, they didn't take more a few hundred pages
  • DBCC also shows that the original database (before SELECT INTO) uses a huge amount of extensions

My analysis of this is as follows:

  • shrinking does not free up unallocated space
  • SELECT INTO yes frees up a lot of space

What would I like to help with:

  • why the shrink doesn't work
  • why SELECT INTO works
  • why the original database has so much lost space (yes, automatic growth has been enabled for a long time before becoming an archive)

We're already looking at things like using fill factor, page and extent, but what we'd like to have is at least an explanation for so much wasted space and how to reclaim it. without SELECT-INTO all terabytes of data. Any help would be appreciated.

"java.lang.NullPointerException" after changing methods and variables to static

I'm new to java, and having problems, when I try to compile, I get "java.lang.NullPointerException" errors. Before changing the methods and variables to static in my BuyShares class, I got the non-static method error, I fixed them, but now I get this one, so I don't I have no idea what's going on and I've been trying to fix it for a long time, probably a simple solution, but like I said, I'm new to Java and object oriented programming. Thank you.

Here is the code calling the methods in my main class (ignore the other-ifs they were just for testing):

public static void ShareBuy(Shares() share) {
    Scanner scanner = new Scanner(System.in);


    System.out.println("Enter Stock Name");
    String name = scanner.nextLine();

    if (name.equalsIgnoreCase(share(0).getName())) {
        BuyShares.findShare(share(0));
    } else if (name.equalsIgnoreCase(share(1).getName())) {
        System.out.println(share(1).getName());
    } else if (name.equalsIgnoreCase(share(2).getName())) {
        System.out.println(share(2).getName());
    } else if (name.equalsIgnoreCase(share(3).getName())) {
        System.out.println(share(3).getName());
    }



}

And here is my other class after changing everything I was told to change to static:

    public class BuyShares {
    double price;
    static Account acc;
    static Shares()() shares;


    public static void BuyShares(Shares share, int amount)
    {
        double price = share.getPrice() * amount;

        if (price < acc.getBalance()) {
            Shares shareBuy = new Shares(share.getPrice(), share.getName(), share.getAmount());
            acc.setBalance(-price); 
            acc.newStock(shareBuy);
            System.out.println(acc.getBalance());
        }
        else {
            System.out.println("You Don't Have Enough Money");
        }
    }

    static void findShare(Shares ShareName) {

        System.out.println(ShareName.getName());
        BuyShares(ShareName, 1);

    }
}

If I execute the code as it is above, I get 8 null pointer errors, the first one being at the if statement in the BuyShares method. Thank you

c # – Access to the static directory

I have a problem accessing some static directories. During the tests on localhost, the configuration example that I followed by the Microsoft documentation works at 100%. However, after uploading the project to the production server on Azure (Docker Linux containers), everything stops working and even the boast does not start.

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    if (env.IsDevelopment())
        app.UseDeveloperExceptionPage();
    else
        app.UseHsts(); // O valor HSTS padrão é de 30 dias. Você pode querer mudar isso para cenários de produção, consulte https://aka.ms/aspnetcore-hsts.

    #region Interface Swagger
    // Configura o Swagger e a Interface.
    app.UseSwagger();
    app.UseSwaggerUI(setup =>
    {
        setup.RoutePrefix = "swagger";
        setup.SwaggerEndpoint("/swagger/v1/swagger.json", "Eluander DEV - v1");
        setup.DocExpansion(DocExpansion.None);
    });
    #endregion

    app.UseHttpsRedirection();

    #region Deixar diretorios acessivel.
    app.UseStaticFiles(); // Para a pasta wwwroot            

    app.UseFileServer(new FileServerOptions
    {
        FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "templates")),
        RequestPath = "/Templates",
        EnableDirectoryBrowsing = true
    });
    app.UseFileServer(new FileServerOptions
    {
        FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "img")),
        RequestPath = "/Imagens",
        EnableDirectoryBrowsing = true
    });
    #endregion

    // Ativa a compressão
    app.UseResponseCompression();
    //...
}

public void ConfigureServices(IServiceCollection services)
{
    //...
        services.AddDirectoryBrowser();
    //...
}

Magento2 static attributes and varchar attributes

What about static attributes and varchar attributes?

  1. May have exactly the same value at all store levels
  2. May have different values ​​at all store levels
  3. May have backend_component
  4. Can be created via administrator

i think it's 1 and 3 .. can anyone else suggest?

Theme – Serving static files in each of several sites with Nginx

j & # 39; uses Drupal 8 and I want to serve static files in each of several sites with Nginx.

I have a site on web/sites/site_1/ and a site at web/sites/site_2/.

I want to serve ads.txt or robots.txt for each site with different content.

I can add a directory in site_1/statics/ with files and serve those files to the root with Nginx but I don't know how I can do it.

Is it possible to do it with Nginx?