How to download photos moved to Google Photos with Backup & Sync in their original folder hierarchy

I turned on Backup & Sync when I got my Pixel 3 way back when without the understanding that pictures would be removed from my phone when they are put in Google Photos, and worse that it seems despite the phone allowing selection of which folders have their contact moved to Google Photos, that “download”‘ng them put them in a restored directory, and not back in the directory they were once in.

Is there a way to download these photos back onto the phone, or PC, in their original folder heirachy?

root access – View contents of hidden folder

I have an app installed which is generating log files and puts them in /data/user/0/appname.appname

I can see them on a rooted device but not on a unrooted device.

The appname.appname folder isn’t visible on any file manager I’ve used.

Is there anyway to view this folder contents without root?

visual studio code – Open a local folder in a VSCode Remote-SSH session

I am using Microsoft Visual Studio Code 1.50.1 on Windows 10.

I’d like to develop on a remote virtual machine running in Amazon Elastic Compute Cloud (EC2). This works fine, but I can’t open a local directory on the remote VM.

I would specifically like to be able to mount a local folder on my development system as my working directory. The functionality I’m seeking is similar to how the Remote-Containers extension works, where you can mount a directory into a container.

Question: Is it possible to mount a local folder into a Remote-SSH session in VSCode? If so, how?

Link audio files in Google Drive folder in a Google Sheet

I have hundreds of audio files (.mp3) in a Google Drive folder that I need to list with links in a Google Sheet. Very similar to the problem described here, but I was not able to adapt the code to .mp3 files. The example code that I adapted:

function ListFldPdfs() {
  // replace FOLDER-ID with your folder's ID
  // replace SHEET-NAME with the name of the sheet that will hold the list
  var myPDFfolder = DriveApp.getFolderById('FOLDER-ID'); // replace FOLDER-ID with your folder's ID
  var thesheet = 'SHEET-NAME' // give a name to YOUR list sheet

  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var newPDFsheet = ss.getSheetByName(thesheet); 
     if (!newPDFsheet) { 
       ss.insertSheet(thesheet, 0); 
       var newPDFsheet = ss.getSheetByName(thesheet) ;
  Logger.log(SpreadsheetApp.getActiveSheet().getName());
     }
  // clear all existing content
  newPDFsheet.clear();
  // append the header row
  newPDFsheet.appendRow(( "Name", "VIEW", "HYPERLINK"));
  var results = ();
  // list all pdf files in the folder
  var mypdfs = myPDFfolder.getFilesByType('audio/mp3');
  // loop through found files in the folder
  while (mypdfs.hasNext()) { 
    var myfile = mypdfs.next(); 
    var fname = myfile.getName();
    var furl = myfile.getUrl();
    results = ( fname, furl, );
    //Logger.log("results = "+results); // for de-bugging
    newPDFsheet.appendRow(results); 
       } 
     var fcell = ss.getSheetByName(thesheet).getRange("C2"); 
               fcell.setFormula('=arrayformula(if(A2:A10="",,hyperlink(B2:B10,""&A2:A10&"")))'); 
}

This code effectively creates a new sheet in my Google Sheet with the columns Name, VIEW and HYPERLINK, but without listing the actual files in the original folder or providing links to see them. I appreciate any help on this.

themes – Best and Simple way to add Multiple CSS files and Files folder in WordPress

I have found an excellent way to css in wordpress theme. You would see this very easy step making your efforts very simple. You need only to use these method very simply.

<?php
    /**
     * Proper way to register and enqueue scripts and styles
    
    * Must read this:-
    *Note:- Import all CSS files in single stye.css file...
    Use this method:- @import "style1.css"; @import "style2.css"; @import "style3.css"; and so on.
     */    
    function random_name() {
        wp_register_style( 'mamies-wafers-bootstrap-min',  get_template_directory_uri() .'/css/bootstrap.min.css', array(), null, 'all' );
    }
    add_action( 'wp_enqueue_scripts', 'random_name' );
    ?>

Google drive undo folder option

I created a folder on google drive and moved part of the files to that folder..
How do I undo this process to the previous state

virtualbox – Local folder mounted as empty on Ubuntu with docker-machine

It appeared that docker-machine mounted my local /home to /hosthome by default.

Also using -v or --volume option for docker run has a difference to --mount option: local folder is automatically created if it doesn’t exist.

That’s why when calling docker run -v /home/a/b/c:/xxx, an empty folder was created at path /home/a/b/c inside virtual machine first, and then mounted to container at path /xxx.

First takeaway was to stop using -v option and start using --mount instead: docker run --mount type=bind,source=/home/a/b/c,target=/xxx. In this case the command will fail fast with error as the source path doesn’t exist in virtual machine.

Second step was to remove default shared folder from the virtual machine (my driver was virtualbox) and replace it with proper one with matching path. Performing these operations on stopped vm:

docker-machine stop
vboxmanage sharedfolder remove default --name hosthome
vboxmanage sharedfolder add default --name $HOME --hostpath $HOME --automount
docker-machine start

theming – Why Drupal 9 can use html.twig files outside the templates folder?

In the documentation (https://www.drupal.org/docs/theming-drupal/drupal-theme-folder-structure), they said :

Templates provide HTML markup and some presentation logic. Contrary to
Drupal 7, in Drupal 8 template files (*.html.twig files) must be
stored in the ‘templates’ subfolder.

But in my theme, I have a styleguide folder at the root & Drupal 9 find twig files in this folder.
For exemple:
mytheme/styleguide/components/10-atoms/form/input.html.twig

Drupal 9 will use this input.html.twig file despite it’s not in the mytheme/templates folder.

macos – How do I delete xpcproxy executable from /usr/libexec folder on my Mac?

You don’t say why you want to delete it, so I’ll assume you know what you’re doing.

/usr/libexec is a folder for programs that are used by other programs. xpcproxy is owned by root, and so you’ll need at least root privileges (typically via sudo) to delete it.

In addition, you may have Apple’s System Integrity Protection if your OS is fairly recent vintage. If you have SIP, you’ll need to disable it before you can delete this file. THere are numerous guides (like this one for Catalina) explaining how to disable SIP, so I won’t repeat them here.

Where is the location of Screenshots folder stored in Windows and how to reset it?

Unfortunately I lost the location of my screenshots folder location.

I frequently change the Screenshots Folder location. I messed up something and now I can’t locate the folder. My PC is taking Screenshots normally when I press Win + PrtScr but I can’t access my screenshots.

I have tried Windows Search and Recent Files, but nothing works. I can’t remember which folder I last assigned to the Screenshots and I have tried all of my usual locations.

How can I get its location? Is it stored in Windows Registry or System Variables?

Or if I can reset the location so that its in the default Pictures folder, it will do the work.