Whats the best naming convention for items inside a list/cell using Sketch symbols?

The symbols included in Sketch have this structure for cells (used in list/table):

  • Insert > Symbols > iOS UI Design > Cells > Table
  • Insert > Symbols > iOS UI Design > Overrides > Cells

Using the word “Overides” makes sense from a Sketch perspective as it explains the function in Sketch, though it does not explain well the placement and usage of the items in the table view cell. Ex. the chevron or toggle switch is usually inside a cell. Also, it pretty confusing having loads of different symbols used across different views under “Overrides”.

enter image description here

This what the cell looks like: enter image description here

I am therefore trying to figure out what the best naming would be. In iOS https://material.io/components/lists/#behavior they would be objects, while as far as I can see, Material Design doesn’t have one unifying word for this https://material.io/components/lists/#behavior

Words that I find could describe the items could be:

  • elements
  • components
  • properties
  • objects

Of these, I find “elements” would be best. What do you call these items that make them easy to find and that one understands that these items are to be used inside a cell?

What is the latest version for SharePoint Designer 2013 64-bit inside windows 10

I use to have windows 7 which contain sharepoint designer 32-bit, and its version was 15.0.4849.100, as follow:- enter image description here

but inside my windows 10 PC, i installed the sharepoint designer 64-bit from this link @ https://www.microsoft.com/en-us/download/details.aspx?id=35491, and after that i checked the version for the SP designer, which was lower than the previous version. the new version is 15.0.4420.1017, as follow:- enter image description here

So i am not sure how i can upgrade my SP designer version inside windows 10? the issue is that inside the above download link they mentioned the following:-

Please make sure your installation of SharePoint Designer is up to date by using Microsoft Update, or installing Service Pack 1 from here

but inside the Service Pack 1 download link the supported operating systems do not include windows 10. So i am not sure how i can get the latest version for the SP designer inside windows 10?

Thanks

Error while running shell script inside ubuntu VM: -bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

I have 3 shell script files placed inside vagrant directory like so: files placement screenshot

This is the install.sh file:

#!/bin/bash  echo "Launching instances with the following parameters:" echo "" echo "Machine Image ID: $  1" echo "Number of Instances: $  2" echo "Instance Type: $  3" echo "Key Pair Name: $  4" echo "Security Group ID: $  5"  aws ec2 run-instances --image-id $  1 --count $  2 --instance-type $  3 --key-name $  4 --user-data file://install-env.sh --security-group-ids $  5 

This is the install-env.sh file:

#!/bin/bash  sudo apt-get -y update sudo apt-get -y install apache2 php php-gd mysql-server  sudo systemctl enable apache2 sudo systemctl start apache2  

I have another destroy.sh file but it’s not related to this error as of now. This is the command I am trying to execute after I ssh into ubuntu VM (I replaced the ami & sg numbers with * for posting it here):

vagrant@ubuntu-bionic:/vagrant$   ./install.sh ami-*************** 1 t2.micro key-name sg-************** 

This is the error that I am getting:

-bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory 

The same command works fine if I have those shell script inside home directory, (which I am not able to see on the UI) and I run the command without navigating to vagrant directory like so:

vagrant@ubuntu-bionic:$   ./install.sh ami-********** 1 t2.micro key-name sg-************** 

Why does it not work if I place the files inside vagrant directory? I want to place it here so that I can make changes in one place and push/pull to/from github, instead of having to copy-paste my changes and then push to github everytime.

Please guide me through the placement of shell script files and the directory navigation on cmd prompt.

Error while running shell script inside ubuntu VM: -bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

I have 3 shell script files placed inside vagrant directory like so: files placement screenshot

This is the install.sh file:

#!/bin/bash  echo "Launching instances with the following parameters:" echo "" echo "Machine Image ID: $  1" echo "Number of Instances: $  2" echo "Instance Type: $  3" echo "Key Pair Name: $  4" echo "Security Group ID: $  5"  aws ec2 run-instances --image-id $  1 --count $  2 --instance-type $  3 --key-name $  4 --user-data file://install-env.sh --security-group-ids $  5 

This is the install-env.sh file:

#!/bin/bash  sudo apt-get -y update sudo apt-get -y install apache2 php php-gd mysql-server  sudo systemctl enable apache2 sudo systemctl start apache2  

I have another destroy.sh file but it’s not related to this error as of now. This is the command I am trying to execute after I ssh into ubuntu VM (I replaced the ami & sg numbers with * for posting it here):

vagrant@ubuntu-bionic:/vagrant$   ./install.sh ami-*************** 1 t2.micro key-name sg-************** 

This is the error that I am getting:

-bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory 

The same command works fine if I have those shell script inside home directory, (which I am not able to see on the UI) and I run the command without navigating to vagrant directory like so:

vagrant@ubuntu-bionic:$   ./install.sh ami-********** 1 t2.micro key-name sg-************** 

Why does it not work if I place the files inside vagrant directory? I want to place it here so that I can make changes in one place and push/pull to/from github, instead of having to copy-paste my changes and then push to github everytime.

Please guide me through the placement of shell script files and the directory navigation on cmd prompt.

Error while running shell script inside ubuntu VM: -bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

I have 3 shell script files placed inside vagrant directory like so: files placement screenshot

This is the install.sh file:

#!/bin/bash  echo "Launching instances with the following parameters:" echo "" echo "Machine Image ID: $  1" echo "Number of Instances: $  2" echo "Instance Type: $  3" echo "Key Pair Name: $  4" echo "Security Group ID: $  5"  aws ec2 run-instances --image-id $  1 --count $  2 --instance-type $  3 --key-name $  4 --user-data file://install-env.sh --security-group-ids $  5 

This is the install-env.sh file:

#!/bin/bash  sudo apt-get -y update sudo apt-get -y install apache2 php php-gd mysql-server  sudo systemctl enable apache2 sudo systemctl start apache2  

I have another destroy.sh file but it’s not related to this error as of now. This is the command I am trying to execute after I ssh into ubuntu VM (I replaced the ami & sg numbers with * for posting it here):

vagrant@ubuntu-bionic:/vagrant$   ./install.sh ami-*************** 1 t2.micro key-name sg-************** 

This is the error that I am getting:

-bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory 

The same command works fine if I have those shell script inside home directory, (which I am not able to see on the UI) and I run the command without navigating to vagrant directory like so:

vagrant@ubuntu-bionic:$   ./install.sh ami-********** 1 t2.micro key-name sg-************** 

Why does it not work if I place the files inside vagrant directory? I want to place it here so that I can make changes in one place and push/pull to/from github, instead of having to copy-paste my changes and then push to github everytime.

Please guide me through the placement of shell script files and the directory navigation on cmd prompt.

Error while running shell script inside ubuntu VM: -bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

I have 3 shell script files placed inside vagrant directory like so: files placement screenshot

This is the install.sh file:

#!/bin/bash  echo "Launching instances with the following parameters:" echo "" echo "Machine Image ID: $  1" echo "Number of Instances: $  2" echo "Instance Type: $  3" echo "Key Pair Name: $  4" echo "Security Group ID: $  5"  aws ec2 run-instances --image-id $  1 --count $  2 --instance-type $  3 --key-name $  4 --user-data file://install-env.sh --security-group-ids $  5 

This is the install-env.sh file:

#!/bin/bash  sudo apt-get -y update sudo apt-get -y install apache2 php php-gd mysql-server  sudo systemctl enable apache2 sudo systemctl start apache2  

I have another destroy.sh file but it’s not related to this error as of now. This is the command I am trying to execute after I ssh into ubuntu VM (I replaced the ami & sg numbers with * for posting it here):

vagrant@ubuntu-bionic:/vagrant$   ./install.sh ami-*************** 1 t2.micro key-name sg-************** 

This is the error that I am getting:

-bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory 

The same command works fine if I have those shell script inside home directory, (which I am not able to see on the UI) and I run the command without navigating to vagrant directory like so:

vagrant@ubuntu-bionic:$   ./install.sh ami-********** 1 t2.micro key-name sg-************** 

Why does it not work if I place the files inside vagrant directory? I want to place it here so that I can make changes in one place and push/pull to/from github, instead of having to copy-paste my changes and then push to github everytime.

Please guide me through the placement of shell script files and the directory navigation on cmd prompt.

Can you shrink down then teleport inside an enemy using alter size and then Again to expand yourself and explode the creature?

So my party is playing a god campaign and my character has divine rank 1. I’ve chose alter size as my divine ability, but one of the perks of being literal god is I can teleport at will as a free action. So my question is, during combat, if I use alter size to shrink down to the size of a pin head, and teleport INSIDE an enemy, then use alter size again to expand myself enough to basically explode their body… how would you calculate that exactly……

Problem when running code inside table

So, I have written a routine that takes 2 input parameter and makes a series of things, mostly iteratively numerically calculating a function defined iteratively as a convolution. The various iterations are called by the line of code with AppendTo, that appends to pstw, as the entry j, the table pts[j], that calls to evaluate CPI[j], that calls to evaluate PC[j-1], that calls to evaluate PCi[j-1],that is evaluated starting from ptsw[j-1], that was evaluated in the previous step.

ptsw = {}; cump = {}; PCi[n_] := Interpolation[ptsw[[n]]]; PC[n_][x_] := If[x < 0 || x > n*qmax, 0, PCi[n][x]]; PCI[n_][x_] :=    If[n == 1, NIntegrate[f0[y], {y, x, qmax}],     NIntegrate[PC[n - 1][x - y] f0[y], {y, 0, qmax}]]; pts[n_] :=    Join[ParallelTable[{x, PCI[n][x]}, {x, xval[n]}], {{qmax*n, 0}}];  For[j = 1, j <= n, j++,   AppendTo[ptsw, pts[j]];   pln = Plot[Sum[PC[i][x], {i, 1, j}], {x, 0, j*qmax}, Frame -> True];   AppendTo[cump,     Sort[Catenate@      Cases[pln, Line[data_] :> data, Infinity], #1[[1]] < #2[[1]] &]];   ]; 

the fact is that the function f0[y] is obtained numerically, and depends on 2 parameters, and I need to evaluate all of this for multiple choices of such parameter. So, I thought to put all this code inside a “Table” command. The problem is:

when I am running this directly I get the result without any problem, instead if I am running it inside Table I get many error messages like

The integrand If[0.15638017607489985-y<0||0.15638017607489985 \ -y>46.91405282246995,0,PCi[3][0.15638017607489985 -y]] \ If[y<0||y>15.638017607489983,0,f0i[y]] has evaluated to \ non-numerical values for all sampling points in the region with \ boundaries {{0,0.0069029486446827715}}.

Let me know if you need more parts of the code to understand the problem,is very long that’s why I didn’t copy pasted it all.

Enforce File Naming Convention in a Folder inside a Document Library SharePoint Online

SharePoint Online specific.

I wanted to know if it is possible to enforce file naming conventions at the folder or sub-folder level in a Document Library.

For example, I have a Document library called “Documents” with many sub-folders. I want to enforce a specific file naming convention for all Word (docx) files uploaded to a “Legal” folder, e.g. “Document_Name_Department_MMYYYY”.

Then similarly a different file naming convention in the folder “IT”, etc.

I have found a site that explains how to do it using the CSOM (https://www.tatvasoft.com.au/blog/how-to-implement-remote-event-receiver-in-sharepoint-online/).

Is anyone aware if this is possible using JS, no-code, Azure or Flow? basically an alternative way rather then the CSOM example listed above.

Thanks!

[“Open with” Default value inside flatpak application

I’ve just downloaded Mendeley app from flathub (installed through the Software Center) and it is working great. However, everytime I try to open a PDF inside the app using an external viewer, it prompts me an Open with... dialog where I select Document Viewer. However, this election doesn’t get saved and so, each time I open a PDF inside my flatpak’ed Mendeley, I must select the PDF Viewer.

I think that the dialog prompt is the way flatpak is supposed to work. Due to sandboxing, applications can’t know my system-wide preferences. However, is there a way to save the per-flatpak application preferences? In the web some people mentioned the dialog should have a “Select as default application” kind of dialog however, in my system, that option is nowhere to be found.

I’m using Ubuntu 18.04 LTS with the latest updates from the official stable repository.

Cheers,