How can I remove an empty folder that I created manually inside the Photos library?

I accidentally created an empty folder inside my Photos library.

enter image description here

My import process is a bit unusual.

I first import photos from my iPhone as usual. Then I locate the newly imported photos in Finder inside the Photos library file and copy them to a SMB share. That’s when I accidentally had created a new empty folder inside a folder for one of the imports. That import was then deleted and all the image files disappeared. However, the empty folder is still there and it’s basically junk.

I’d like to remove this entire directory tree: 2019/05/22/20190522-10460/New Folder With Items

I tried the repair function but it didn’t help.

Deleting this directory tree manually breaks the Photos library.

How can I delete this junk?

In approval workflow in SPD 2013, after approving the task, the item is check out to the user who created it instead of approver group?

I have created an approval workflow in SPD 2013 and we have 5 SharePoint groups that have to approve the task one after another. My problem is, when the user creates a document in the library and check-in the document to start the workflow then the workflow sends a task to one of the groups, where they approve it and the approve group has to check-in the document, so that, the workflow moves to next group. Instead, after approving the task by approver, the item is check-out to the initiator (who created the document). So, how to make the item to check-in with approver group, after the task is approved?

LinearLayout is not showing the created grid

The LinearLayout with id “linBoardGame” is not showing the created grid. Each cell in the grid is created using a drawable “cell_bg.xml”. The code compiles without any error, but the LinearLayout “linBoardGame” is blank white and not showing any grid.

MainActivity.java:

public class MainActivity extends AppCompatActivity {      //board size     final static int maxN=15;      private Context context;     //image view cells array     private ImageView[][] ivCell = new ImageView[maxN][maxN];      //0 is empty, 1 is player, 2 is bot, 3 is background     private Drawable[] drawCell = new Drawable[4];      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         context = this;         loadResources();         designBoardGame();     }      private void loadResources() {         drawCell[3]=context.getResources().getDrawable(R.drawable.cell_bg);         drawCell[0] = null;         drawCell[1] = context.getResources().getDrawable(R.drawable.circle);         drawCell[2] = context.getResources().getDrawable(R.drawable.circle);     }      @SuppressLint("NewApi")     private void designBoardGame() {         //create layoutparams to optimize size of cell          int sizeofCell = Math.round(ScreenWidth()/maxN);         LinearLayout.LayoutParams lpRow = new LinearLayout.LayoutParams(sizeofCell*maxN, sizeofCell);         LinearLayout.LayoutParams lpCell = new LinearLayout.LayoutParams(sizeofCell, sizeofCell);          LinearLayout linBoardGame = (LinearLayout)findViewById(R.id.linBoardGame);          //create cells         for(int i=0;i<maxN;i++){              LinearLayout linRow = new LinearLayout(context);             //make a row             for(int j=0; j<maxN; j++){                 ivCell[i][j] = new ImageView(context);                 //make a cell                 //need to set background default to cell                 //3 states of cell: empty(default), player, bot                 ivCell[i][j].setBackground(drawCell[3]);                 linRow.addView(ivCell[i][j], lpCell);                 Log.e("hello","hello");             }         }     }      private float ScreenWidth() {         Resources resources = context.getResources();         DisplayMetrics dm = resources.getDisplayMetrics();         return dm.widthPixels;     } } 

activity_main.xml file:

<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".MainActivity">      <LinearLayout         android:id="@+id/linMenu"         android:layout_width="0dp"         android:layout_height="wrap_content"         android:orientation="vertical"         app:layout_constraintEnd_toEndOf="parent"         app:layout_constraintStart_toStartOf="parent"         app:layout_constraintTop_toTopOf="parent">          <Button             android:id="@+id/btnPlay"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_marginTop="2dp"             android:background="@color/colorAccent"             android:padding="20dp"             android:text="Button" />          <LinearLayout             android:layout_width="match_parent"             android:layout_height="match_parent"             android:layout_marginTop="2dp"             android:orientation="horizontal">              <TextView                 android:id="@+id/textView4"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_weight="1"                 android:background="@android:color/holo_blue_bright"                 android:text="Turn of:" />              <TextView                 android:id="@+id/tvTurn"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_weight="1"                 android:background="@android:color/holo_blue_dark"                 android:text="click new game to play" />         </LinearLayout>      </LinearLayout>      <LinearLayout         android:id="@+id/linBoardGame"         android:layout_width="0dp"         android:layout_height="0dp"         android:layout_marginTop="8dp"         android:orientation="vertical"         app:layout_constraintBottom_toBottomOf="parent"         app:layout_constraintEnd_toEndOf="parent"         app:layout_constraintStart_toStartOf="parent"         app:layout_constraintTop_toBottomOf="@+id/linMenu"></LinearLayout> </android.support.constraint.ConstraintLayout> 

cell_bg.xml :

<?xml version="1.0" encoding="utf-8"?> <shape     xmlns:android="http://schemas.android.com/apk/res/android"     android:shape="rectangle">     <corners android:radius="7dp"></corners>     <solid android:color="@android:color/white"/> </shape>  

How to add material to a blueprint created?

My project has a cube and a capsule.

Below you can see an inserted cube of the modes tab. Beside a capsule inserted from a blueprint created by me:

enter image description here

I can drag the material I created and use it in the cube, but not in the capsule:

enter image description here

Note that the cube has a tab to insert the material:

enter image description here

But the capsule I created does not have that same tab:

enter image description here

I would like to know what components I would have to add to the capsule so that the capsule could have a material.

How can I use REST API to update an existing file in a file library whilst retaining the Created date

I have a SP Designer 2013 workflow which copies a file from FileLibrary1 to FileLibrary2. I did this via the following REST API call:

https://sharepointSite/sites/rootSite/_api/web/folders/GetByUrl('FileLibrary1')/Files/GetByUrl('[%Variable:FileName%]')/copyTo(strNewUrl='[%Variable:URL2%]/[%Variable:FileName%]',bOverWrite=true)" 

This works but it not only changes the Modified date, but also the Created date

I have also tried checking the file out beforehand but this has not made any difference

https://sharepointSite/sites/rootSite/_api/web/folders/GetByUrl('[%Variable:URL2%]')/Files/GetByUrl('[%Variable:FileName%]')/CheckOut() 

Is there a way I can update the file without changing the Created date?

Trying to send output to log file with tee using systemd but the log file isn’t being created?

I want to run a node application via systemd and have its output go to both stdout and a log file. The node app is in the folder named www/www.appname.com and I want to have the log file in www/log.appname.com. I have the following service servicename defined:

[Service] ExecStart=/usr/bin/node server | tee -a ../log.appname.com/appname.service.log KillMode=process Restart=always RestartSec=20 WorkingDirectory=/home/username/www/www.appname.com  [Install] WantedBy=default.target 

But when I run my service, e.g.

systemctl --user restart servicename 

Then the folder www/log.appname.com remains blank, so maybe there’s something wrong with the path name I’m using in the tee?

REST filter by Created By (Author)

In SharePoint Online, is it possible to filter a survey list by Created By? I’ve found several posts with similar question but none of the suggested solutions work (i.e. expand=Author or expand=Author/ID. I’m trying to find out if the current user already voted.

<script>   $  (document).ready(function(){     myVote();  });  function myVote() { var webAbsUrl = _spPageContextInfo.webAbsoluteUrl; var currUser = _spPageContextInfo.userEmail; var tCounter = 0; var tCount; var tEMail;  var voteUri = webAbsUrl + "/_api/web/Lists/getByTitle('Survey')/Items?$  \   filter=Author/EMail eq '" + currUser + "'&$  \   select=Id, Author/EMail&$  \   expand=Author/Id";  var voteAjax = $  .ajax({   url: voteUri,   async: false,   method: "GET",   headers: { "Accept": "application/json; odata=verbose" },   success: function (data) {     tCount = data.d.results.length;     if (tCount == 1) {         console.log ('Current user already voted.');     } else if (tCount == 0) {         console.log ('Has not voted.');     } else {         console.log ('Something went wrong');     }     //Just for test     if(data.d != undefined) {       $  .each(data.d.results, function (index, item) {         tId = data.d.results[tCounter].Id;         tEMail = data.d.results[tCounter].Author.EMail;         console.log (tEMail);         tCounter++;       });     }   },   errors: function(data) { console.log("Failed to load votes"); } }); } 

First error is the tCount – it should only return 1 but its returning 2 (total # of people responded, mine included).

Second error is Uncaught TypeError: Cannot read property 'EMail' of undefined.

I also tried filtering by AuthorID, tCount also returned 2.

If I don’t filter, then the second error goes away and logs each Author.EMail in console.

What’s the differences b/w XxxBinding VS XxxBindingImpl? & When and How are they created?

I am trying to understand Android Data Binding.

I noticed that It has a problem with detecting the values each other and I need to invalidate/restart and clean project. So, I thought I need to find out the solution and solve my curiosity, under the hood.

I figured out that both of them are created when I build the project if I have set the layout file to data binding format something like this:

<layout>     <data>     </data>      <LinearLayout>     </LinearLayout> </layout> 

And also, XxxBindingImpl inherits XxxBinding like this:

public class ActivityMainBindingImpl extends ActivityMainBinding  {     // TODO } 

If I have set some method expression or listener expression in the layout, the class becomes like this:

public class ActivityMainBindingImpl extends ActivityMainBinding implements com.example.myapp.generated.callback.OnClickListener.Listener  {     // TODO } 

And the two kinds of classes are located in com/example/myapp/databinding.

I’d like to know the roles of both. And how/why/when are they made for what. And the differences b/w the two.