Place of past participle in variable names

For example in terms of graph algorithms, we often maintain a list of nodes that has already been seen by the algorithm, and we don’t want to recurse on them in order to avoid infinite loops. In lectures I saw examples to call these variables as seenNodes or nodesSeen (one or the other might not have been written by native speakers)

Which one sounds better to the native English speaker? Is there any reason to prefer one over the other?

Non-alphanumeric variable names to clarify test cases

In a test I have many lines that look somewhat like this

foo should equal(Seq(true, false, false, true, false, false)) bar should equal(Seq(false, true, false, true, false, false)) baz should equal(Seq(false, false, false, true, true, false))  

I find the expectations hard to distinguish. So I thought about doing it like this:

val ✔ = true val ✕ = false  foo should equal(Seq(✔, ✕, ✕, ✔, ✕, ✕)) bar should equal(Seq(✕, ✔, ✕, ✕, ✔, ✕)) baz should equal(Seq(✕, ✕, ✔, ✕, ✕, ✔)) 

I presume using non-alphanumeric characters in code is usually frowned upon, but what if this is used to more clearly communicate a test case, such as above? Does the benefit outweigh the cost?

Search folder, copy to new folder and change names of the files!

So I’m trying to recursively search folder, and as you might imagine it will be the “Photos”-folder in MacOS.

And in the process, I would like to change the file name, why you might ask? Because Nextcloud is for some reason changing the image name to year-month-day hour-minute-second $ (increment number). So I need to be able to define this starting increment number.

This is what I have so far:

# Lets say that starting increment number should be I=7398 # name="$  (stat -f '%Sm' -t '%y-%m-%d %H-%M-%S' "$  file").$  (ls "$  file"|cut -d . -f2)" # echo $  name find . -type f -iname '*.jpg' -size +500k -exec sh -c '     for file in "$  @"; do         folder="/path/to/backup/folder/$  (stat -f '%Sm' -t '%Y/%m' "$  file")"         echo mkdir -p "$  folder"         echo cp "$  file" "$  folder"     done ' sh {} + 

This works perfect! But I would like to in the process change the name from the files EXIF data, to be '%y-%m-%d %H-%M-%S {increment number}'.ext, 18-08-15 18-32-29 3453.JPG or whatever it is. Is this possible?

This above script reads a JPG, creates directory of the year the file image was created, created another folder corresponding to the month, copies the file to that year folder.

Expected result: also change name '%y-%m-%d %H-%M-%S {increment number}'.ext

Domain names vs URL path for web services

A team at the office is developing web micro-services intended to support sales sites and mobile apps with total combined orders count of less than 100K (not sure how much less but greater than 10K) per month.

They are using NodeJS, Docker and AWS. Their idea is that each service will only have one or two endpoints and its own DB.

For example there would be a Tax service that only GETs the tax calculated for an Order object, then another PlaceOrder service receives a POST with an Order object, possibly another CheckStatus service would return current status for an Order object or ID etc.

Each of these services is actually a completely separate NodeJS project, hosted in a separate repo, compiled by a separate Jenkins project and put in its own Docker container, which is then deployed on a server of its own (Beanstalk)

Each of these servers then gets a domain name for each of its deployment phases (DEV, QA, INT, STAGE, PROD), so for the two services we have in the example there are 10 domain names: PHASE.taxService.api.company.com and PHASE.orderService.api.company.com

Question is: is this a normal practice, do you see benefits or issues with this scenario. Is there a reason to prefer either dev.taxService.api.company.com or dev.company.com/api/taxService?

Auto Create New Google Sheet With Column Headers Based on List of Names

I’m trying to create a VERY basic CRM tool. I want to create a running list of customer names. Once I enter a name in Column A I’d like a new Sheet automatically created with pre-set columns I can enter values and information into. The columns I’d like are:

1. Name 2. Address 3. Phone Number 4. Email Address 5. Quote 6. Sold 

Also, I’d like to be able to click on the name and be taken directly to the corresponding sheet that has been created.

Why can’t I define 2 site columns to have the same Display names but have different Internal names

I am working on a sharepoint server 2016 on-premise. I have the following scenario, which I can not understand:-

  1. Using the UI from “Site settings” >> “Site columns”. I created a new site column named ITDepartmentOwner.
  2. Now I got a new site column with the following properties:-
    • Display & Internal Name = ITDepartmentOwner.
  3. now using the UI I rename the site column to be IT Department Owner by adding white spaces between the words.
  4. now the column properties are as follow:-
    • Internal name did not change = ITDepartmentOwner
    • Display name = IT Department Owner .

now I do understand that modifying a column name will only affect its display name while the internal name will not get changed, and this is fine. but the problem I am facing is that, when I try to rename my site column to be Owner, I got the following error:- enter image description here

So I am not sure why I got this error. Now SharePoint should allow having duplicate Display names, but not duplicate Internal names… and in my case I want to rename my site column to be Owner.. but since I have another column with this name I got the error.. but still the 2 columns have different internal names.. so I am not sure what I can do ? now one way I find to fix this temporary is to rename the column at the list level from IT Department Owner to Owner.. where I did not get any error message.. but still I want this renaming to be done at the site level… so can anyone adivce on the above problem please?

Why is Android Gmail suddenly not showing recipient names in “Sent” folder?

The Sent folders in Gmail on both my Galaxy phone AND my Nexus tablet are suddenly showing only “me”………..as the SENDER!

Come on, Gmail……I think I know who SENT my emails…..I want to quickly see who I sent them TO……..without having to open every one to look at the details.

Was it a switch that someone at Google forgot to TURN ON when doing a recent update?

What gives????