external display – Can I connect a Pixel XL2 to a monitor with USB-C input?


Your privacy


By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.




Reloading external application configuration – Software Engineering Stack Exchange

I have an application with an external configuration. Basically, there are a few basic environment variables, then the rest of the application’s configuration gets pulled from AWS S3, is checked for validity, and then cached locally.

Given this is a PHP app, I can easily pass a query parameter to a page (ie. ?refresh_config=mySecretPassword) and make it reload the configuration at runtime. However, given the app is running in containers behind a load balancer, I’d need to reload configuration on every single instance. I’ve not come up with a way of doing this that I’m satisfied with. Only way I can think of is to store the configuration in a distributed cache (Elasticache/Redis) instead of local cache.

I’d prefer to keep the configuration cached locally for performance and reliability reasons. I’d prefer to not need to rely on an external source on every call to fetch configuration (Redis) if I can avoid it. Only thing I thought I could do to avoid using a distributed cache all the time is to check a distributed cache at intervals (every 2-3 minutes or something) and update the local cache from that if needed. In that case, configuration updates would not be immediately reflected, but soon enough.

Is my concern about pulling from distributed cache unwarranted? Performance-wise, I think I’m likely overreacting, one call to the cache to fetch the config wouldn’t be a big deal. It’s really the reliability I’m questioning myself the most about. Technically, we could always have a circuit breaker and if Elasticache goes down, we re-pull configs from S3 and store to local cache instead temporarily. Or I can make the app check only periodically for changes at some acceptable interval. Just trying to avoid more complexity if not really needed. I don’t think reloading configuration will happen frequently, but I’ve had enough experience where it’s useful to be able to flip a configuration setting temporarily and it’s useful to be able to do it quickly, without having to fully restart apps, re-deploy containers, etc.

item level permissions – What is the GroupId for “Everyone except external users” in SharePoint online?

based on the additional points shared in the comments section, I feel you can look at the following model to achieve the need:

  1. Create a sub-site, say ‘Private’, under ‘Executive Site’, which should be accessible only by ‘Executives’. You can have a new group created only for ‘Executives’ and break inheritance on the sub site to provide permission only to that group.

  2. Now, have ‘Everyone except external users’ group added as ‘viewer’ in your top level ‘Executive Site’.

News created in ‘Executive Site’ and the ‘Private’ sub-site, both would roll up to the Hub. There is no way you can stop the roll up if you are using ‘News’ pages. ‘Everyone except external users’ (not members from ‘Executives’ group), will see news items published in the ‘Executive Site’, but they won’t be able to see any news from the ‘Private’ sub-site. News from ‘Private’ sub-site should be visible only to the members from ‘Executive’ group.

Let me know if this model will match your need.

Using managed property to filter News will work visually, but it will not necessarily restrict unwanted user-groups from viewing the content. They can always grab the direct link of the page to browse it. So, there should be restrictions through permission.

Just wanted to add that, SharePoint news audience targeting feature is in development which would give you more options over your particular issue.

enter image description here

Please check Microsoft Roadmap for SharePoint Online.

Forward unresolved queries from internal DNS to external DNS same zone name

Due to needing access to non-publicy listed subdomain of various 3rd parties we have had to create zones within our Windows server DNS to allow the subdomain to resolve,

Example:

Public DNS zone: company-X.com
Public subdomains: Bookings.company-x.com A 111.111.1.1

Private Subdomain Bookingadmin.company-x.com – 222.222.2.2

Because the private subdomain IP is not added to public DNS the only way for us to resolve it is to create a company-x.com zone within our internal windows DNS and add an A record for bookingadmin.company-x.com

However doing this means that we also need to create records in internal DNS for bookings.company-x.com along with any other subdomains which they may have,

The problem we have is that when company-x creates a new public facing subdomain If we do not create a duplicate record within our internal Windows DNS then no users on the network can reach it.

Is there anyway of telling windows DNS to look externally to resolve internal zones externally if unable to do so internally.

From my research I understand that historically Windows DNS has always been authoritative for its own zones but I am hoping that there may now be a solution to this problem.

permissions – How can I access files on Android 11 external storage?

I have an app that runs perfectly on any device with Android operating system in versions prior to version 11. In the app I handle files that I import to external storage and export from external storage. But when the device has Android 11 Operating System I only have access to the folders but I cannot see the files that these folders contain.

The code I use is the following:

private void importarArchivo(File archivo) {
    boolean isCreate = false;

    if (archivo.isFile()){
        //Toast.makeText(getContext(), "SI EXISTE EL ARCHIVO"+archivo.getName(), Toast.LENGTH_SHORT).show();
        try {
            importarPedidos(archivo);
        } catch(Exception e) {
            Toast.makeText(getContext(), "Error: "+e, Toast.LENGTH_SHORT).show();
        }

    }else  {
        Toast.makeText(getContext(), "NO EXISTE EL ARCHIVO", Toast.LENGTH_SHORT).show();
    }
}

private void importarPedidos(File archivo) {
    FileReader fileReader = null;
    try {
        fileReader = new FileReader(archivo);
    } catch (FileNotFoundException e) {
        e.printStackTrace();
    }
    BufferedReader bufferedReader = new BufferedReader(fileReader);
    Toast.makeText(getContext(), "INCLUSO LO ASIGNA", Toast.LENGTH_SHORT).show();

    Pedido pedido=null;

    while(true) {
        String cadena;
        String() arreglo;
        cadena=null;
        try {
            if (!((cadena = bufferedReader.readLine()) != null)) break;
        } catch (IOException e) {
            e.printStackTrace();
        }
        arreglo = cadena.split(",");
        String lote=arreglo(4).toString();
        pedido=new Pedido();


        ConeccionSQLiteHelper admin = new ConeccionSQLiteHelper(getContext(), "Extraccion.db", null, 1);
        SQLiteDatabase db = admin.getWritableDatabase();

        ContentValues registro = new ContentValues();
        registro.put("numero", arreglo(0).toString());
        registro.put("fecha", arreglo(1).toString());
        registro.put("especie", arreglo(2).toString());
        registro.put("finca", arreglo(3).toString());
        registro.put("lote",arreglo(4).toString());
        registro.put("equipo", arreglo(5).toString());
        registro.put("traccion", arreglo(6).toString());
        registro.put("supervisor", arreglo(7).toString());
        registro.put("jefeproceso", arreglo(8).toString());
        registro.put("jefelinea", arreglo(9).toString());
        registro.put("estimadop", Integer.valueOf(arreglo(10).toString()));
        registro.put("estimadot", arreglo(11).toString());
        registro.put("producidop", arreglo(12).toString());
        registro.put("producidot", arreglo(13).toString());
        Toast.makeText(getContext(), "Pedido: "+arreglo(1)+" "+arreglo(2)+" "+arreglo(3), Toast.LENGTH_SHORT).show();

        // los inserto en la base de datos
        //db.insert("Pedidos", null, registro);

        Long idResultante=db.insert(Utilidades.TABLA_SOLICITUDES,Utilidades.CAMPO_IDSOLICITUD,registro);
        Toast.makeText(getContext(),"Id Registro: "+idResultante,Toast.LENGTH_SHORT).show();

        db.close();

    }
}

And the permission routine to access the files is:

public void pedirPermisos() {
    
    if(ContextCompat.checkSelfPermission(getContext(), Manifest.permission.READ_EXTERNAL_STORAGE)
            != PackageManager.PERMISSION_GRANTED) {
        ActivityCompat.requestPermissions(getActivity(), new String()
                        {Manifest.permission.READ_EXTERNAL_STORAGE},0);
    }
    if(ContextCompat.checkSelfPermission(getContext(), Manifest.permission.WRITE_EXTERNAL_STORAGE)
            != PackageManager.PERMISSION_GRANTED) {
        ActivityCompat.requestPermissions(getActivity(), new String()
                        {Manifest.permission.WRITE_EXTERNAL_STORAGE},0);
    }
    if(ContextCompat.checkSelfPermission(getContext(), Manifest.permission.MANAGE_EXTERNAL_STORAGE)
            != PackageManager.PERMISSION_GRANTED) {

        ActivityCompat.requestPermissions(getActivity(), new String()
                        {Manifest.permission.MANAGE_EXTERNAL_STORAGE},0);
    }
    if(ContextCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION)
            != PackageManager.PERMISSION_GRANTED) {

        ActivityCompat.requestPermissions(getActivity(), new String()
                {Manifest.permission.ACCESS_COARSE_LOCATION},0);
    }
}

In Android versions prior to 11 it works perfectly. But on devices with Android 11 Operating System it lets me see the folders and navigate between them but the files don’t let me see them. I want to know if anyone has any suggestions. Thanks

bootcamp – Can I install MacOS and Windows 10 on the same external SSD without an internal drive?

Beware, the internal drive is needed to do firmware updates. Currently, firmware updates are included in with certain versions of macOS. This would mean you could end up failing to install a clean version of macOS or have a failure while running a routine update to macOS.

I do not know for sure why the internal drive is needed for firmware updates. On my HP PC, the a firmware update is preformed by first copying the update file to the FAT32 formatted EFI partition, then the firmware is asked to update itself. The firmware then reads the update file from the internal EFI partition. I assume this is also true for Macs, but I do not know for sure.

An exception to have a working internal drive for firmware updates may exist by using an external Thunderbolt 3 drive (such as the Samsung X5). On a 2018 Mac mini, the Samsung X5 shows up as disk0 and the internal drive appears as disk1. Also, both drives appear as NVMe drives.

Otherwise, macOS can be installed on an USB external drive. The Boot Camp assistant can not be used to install Windows on a external drive. Installing windows manually can not be done on an external USB drive by using the Windows installer GUI. However, Windows 10 can be installed on an external drive by using the Windows 10 CLI. In other words, you can open a Command Prompt window while running the Windows 10 GUI installer and enter commands to install Windows 10 on an internal or external drive.

How do I build an external .NET search engine that utilizes SharePoint Search with advanced/dynamic filtering?

On my website I want to build a .NET Core application which invokes the SharePoint Online search engine (using REST Service) while also meeting specific filtering conditions regarding the managed properties.

I’ve searched for this but only found information on CSOM.

Are there any .NET Core examples on how to utilize SharePoint search and the advanced/dynamic filtering part on this?

data recovery – Missing photos after inserting external sd card into Samsung galaxy Tab s6 lite

I want to appologize in advance if this is the wrong forum.

Whats the problem?

I am photographing on my fuji xt4 and wanted to transfer all photos to my Samsung galaxy S6 Lite (using a basic card reader). The storage is correctly recognized and mounted. The first few times were no problem. However now all photos up from a certain point are not displayed/lost. Once inserted into the tablet the new photos and Videos are permanently gone (the camera doesnt displays them either).

  • Sony tough sd card 64gb (exFat)
  • Fujifilm xt4
  • Samsung galaxy tab s6lite (Android 11, not rooted)

What i tried

  • rebooting the tablet
  • reinserting the sd card
  • different card reader
  • accessing the photos by connecting to the camera via ptp is no problem
  • using more powerful file browser did not reveal anything new

I have currently no access to a normal computer and therefore cant properly investigate the problem further. I tried nearly all recovery android Apps but none scanned extertal USB storage. My last idea was to mask the card reader as internal sd card but Samsung seems to Block adoptable storage and any further advances in included formating the sd card.
My best guess is that my tablet is resetting the block-bitmap from the sd card to the state of the last time it was mounted.
Has anyone an idea on what is happening and what the best approach in recovering the lost data may be?

networking – Wampserver – accessing my website from an external device redirects to localhost

I am trying to put my Wampserver website “online”.
When I try to access my Wampserver website from a different device, the device will redirect to localhost. For example: My computer running Wampserver has a public IP Address of xx.xxx.xx.xxx. When I type “http://xx.xxx.xx.xxx/site1/” on my phone, the phone’s browser will redirect to “localhost/site1/”, which (obviously) fails to connect.  

Computer running Wampserver/Wampserver/PHP/Apache details:

Windows 10  
Wampserver 3.2.3  
phpMyAdmin 5.0.2  
Adminer 4.7.7  
Apache 2.4.46   
PHP 7.4.9   
MySQL 5.7.31

 

The website I want to put online is inside a folder named “site1” and this is my apache vhosts.conf: (Computer’s private IP is 192.168.254.13):

# Virtual Hosts
#
<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  ErrorLog "${INSTALL_DIR}/errors.log"
  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>


#
<VirtualHost *:80>
    ServerName site1
    ServerAlias 192.168.254.13
    DocumentRoot "c:/wamp64/www/site1"
    <Directory  "c:/wamp64/www/site1/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Windows hosts file:

127.0.0.1   localhost
127.0.0.1   site1  

My port is forwarded properly. If I set the localhost vhost to “Require all granted” instead of “Require local”, I am able to see Wampserver’s config page from my phone by typing in my computer’s public IP address.  

Any advice to point me in the right direction would be greatly appreciated.

[XTR] External Links Redirect Warning

Admin submitted a new resource:

[XTR] External Links Redirect Warning – Show a warning block with the countdown timer before redirect targeted external URLs.

ExLink-redirection.png

[XTR] External Links Redirect Warning

This addon allows you to show a warning block with the countdown timer before redirecting to users targeted external urls.

Options

Read more

.