Microsoft Flow – Can it send to email to people included in the Lists Email column for that specific entry?

I need to enter data in Sharepoint Lists, when the data is entered a email goes out (triggered by Microsoft Flow). However, there is a email column in the Sharepoint List. I need the email to send to that specific person. Can flow do this and if not, what other options exist?

Does anyone have some good resources to learn flow at a deeper level?



How to order posts with specific tag name count in wordpress

I’m having a wordpress site, were posts have different tags. I need to get a solution for this. I’m having lot of tags for each posts. I would like order my posts in such a way that, posts with 3 specifc tags have to print first and posts with 2 specific tags print second and then 1.I would like to give three colors for posts with 3 specific tag, 2 specific tags and 1.

Is there any specific weakness in this crypto implementation?

I am reverse engineering the firmware of a particular router/modem. I am focusing on the functionality to export the router configuration. I an searching for a way to decrypt the configuration backup file.

I have the source code of the open source parts of the firmware and the binaries of the closed source parts for analysis.

After an analysis of the binary responsible for creating the configuration backup file i discovered it does the following:

  1. Takes the raw XML configuration file
  2. Compresses the file
  3. Encrypts the file using a key and an iv (more on that later)
  4. Applies a PKCS7 signature to the file

To encrypt the configuration file a 256 bit AES key is used, in CBC mode. We will call this key file key.

To derive the file key two pieces of information are used: a user password and a device key, combined in the following way:

file_key = MD5(user_password) + MD5(device_key) 

where the user_password is just a string choosen by the user during the config export process in the web interface of the router.

The device_key is an AES key, generated once (the first time is used) and then saved on a file (and read from there when is used again). During the generation of the AES key also an IV is generated and saved along the key. The is generated once and reused the following times.

This device_key (and the associated IV) is used only to encrypt/decrypt the configuration backup.

The crypto library used is openssl-1.0.2k

This is a C code that describes how is generated the device_key (and the associated IV). Is called only once and the results are reused.

const EVP_CIPHER *cipher_algo; const EVP_MD *digest_algo;  unsigned char salt[8]; unsigned char device_key[32]; unsigned char device_key_iv[16];  // yes, the secret key material is constant and is "secret" char secret_data[] = "secret";  cipher_algo = EVP_aes_256_cbc(); digest_algo = EVP_md5();  // in the code the result of this call is NOT checked to be sure it succeded, // maybe something here? RAND_pseudo_bytes(salt, 8);   // here the device_key is generated EVP_BytesToKey(cipher_algo, digest_algo, salt, secret_data, strlen(secret_data), 1, device_key, device_key_iv);  // from now on the device_key and device_key_iv is never regenerated 

This is a C code that describes how is generated the file_key. It is called every time a backup configuration file is exported.

unsigned char device_key[32];  unsigned char device_key_iv[16];  char user_password[] = "test1234"; unsigned char file_key_raw[32];  MD5_CTX md5_context; AES_KEY file_key_aes;  get_device_key_and_iv(device_key, device_key_iv);   // hash of user password MD5_Init(&md5_context); MD5_Update(&md5_context, user_password, strlen(user_password)); MD5_Final(file_key_raw, &md5_context);  // hash of device_key MD5_Init(&md5_context); MD5_Update(&md5_context, device_key, 32); MD5_Final(&file_key_raw[16], &md5_context);  // now file_key_raw contains the raw bytes of the key   AES_set_encrypt_key(file_key_raw, 256, file_key_aes);  // now the struct file_key_aes contains the file_key  //to encrypt data, this is called: AES_cbc_encrypt(input_data_buffer, output_data_buffer, len_of_input_data, file_key_aes, device_key_iv, 1); 

Are there implementation/usage bugs that can allow to recover the file key without a full bruteforce?

I have noticed that the Key Derivation Function (EVP_BytesToKey) is used insecurely, because the key material is constant and is used only one round of a fast digest algorithm (MD5). I think that this effectively lowers the entropy to max 64 bits (the salt bits) instead of 256 bits, if the user password is know.

Are there any more errors? Maybe something related to key/iv reusage or missing check for the return code of RAND_pseudo_bytes()?

Note that the plaintext of the configuration file is not known.

Run time for a specific loop confusion

I have a loop: for(int i = 0; i < N; i*=5) {...}

where {...} is some statement.

I’m trying to understand its run time. So, far I know that:

  • We start with $ i = 0$

  • We finish when $ i = n-1$

  • $ i$ is incremented by being multiplied by 5 = $ i^5$

So, would the run-time be $ \log_5(n-1)$ ? The reason I’m not sure it’s because I thought when analyzing algorithms we had to use base 2 log functions. If the latter is the case how would I got about converting $ \log_5$ to $ \log_2$ ?

Deja Dup Restore Failed: Trying to restore specific files with Duplicity

I backed up my laptop using Deja-Dup. The backup behaved the same as every previous effort, creating files like this:

… duplicity-full.20190713T002854Z.vol9675.difftar.gz etc…

Now, with a fresh install of Ubuntu 18.04, I can’t restore the computer. Deja Dup restores about 1/5th of the files normally, then it gets to this one file and just hangs. There are no errors. It just stays on this one file forever.

I haven’t found any ways to even try to fix this. Deja Dup seems like it either works or fails and there is nothing I can do at this point.

I’ve found several tutorials on how to restore specific file paths with Duplicity, but I haven’t gotten it to work. Say I want to get my music back:

devin@usagi3:~$   duplicity --no-encryption --file-to-restore /home/devin/Music file:///media/devin/Backup/backitup RestoredMusic Local and Remote metadata are synchronized, no sync needed. Last full backup date: Fri Jul 12 18:28:54 2019 home/devin/Music not found in archive - no files restored. 

I can’t tell if I’m doing some command wrong, or if that isn’t working because Deja Dup failed to backup my music.

I’ve tried using list-current-files, and maybe that works. It seems like it would take a really long time and I would have no way of knowing if it had even started until it was done.

CSOM, GroupBy, specific ViewFields and system fields

From my SP library, I would need to retrieve a list of meetingID grouped by MeetingID. I tried several attempts with CAML but it didn’t work:

CamlQuery query = new CamlQuery();                     query.ViewXml = @"<View>                                           <Query>                                             <Where>                                                     <And>                                                                                         <And>                                                     <Eq>                                                         <FieldRef Name='FSObjType'/>                                                          <Value Type='Counter'>0</Value>                                                     </Eq>                                                     <Geq>                                                         <FieldRef Name='Modified'/>                                                         <Value IncludeTimeValue = 'TRUE' Type = 'DateTime'>2016-01-01T15:55:52Z</Value>                                                                </Geq>                                                   </And>                                                 <IsNotNull>                                                     <FieldRef Name='Title' />                                                                                               </IsNotNull>                                             </And>                                         </Where>                                                                                <GroupBy Collapse='True'>                                             <FieldRef Name='MeetingID' />                                         </GroupBy>                                                                                 <OrderBy>                                             <FieldRef Name='DocID' />                                                                                </OrderBy>                                     </Query>                                      <ViewFields>                                         <FieldRef Name='MeetingID'/>                                     </ViewFields>                                  </View>";                      ListItemCollection items = list.GetItems(query);                     cc.Load(items, o => o.Include(p => p["MeetingID"]));                     cc.ExecuteQuery(); 

Considering that the CAML is returning the MeetingID and plenty of system fields, I had to use the Include syntax. However,on my 1500 items in SP, none of them have been grouped (I should have only 50 unique MeetingID). Again probably related to the system fields which prevent the grouping to occur…

I also tried:

cc.Load(items, o => o.Include(p => p["MeetingID"]).GroupBy(g=>g["MeetingID"])); 

But this one return an error…

I also tried to see if a property similar to ViewFieldsOnly exist in CSOM but it doesn’t seem to be the case.

Your help will be appreciated

Naming each specific html component, from “ etc

This is just a basic question upon terminology. Its probably best to resist the temptation of going into broader parsing strategy, especially because my use case is mostly data scraping and code injection, not rendering.

I am writing a parser for HTML, and as I jump through the HTML string, I am naming the components with an enumerator.

I’d like to get the names straight. Wading into this, I have this thus far:

enum Html_Parsing     {     Outside_Tag     , // a     Open_Tag        , // a<     Declaration     , // a<!     Comment         , // a<!--     Declaration_Xml , // a<?     Name            , // a<b     Delimiter       , // a<b [ASCII Whitespace]     Attribute       , // a<b c     Assignment      , // a<b c=     Single_Quote    , // a<b c='     Double_Quote    , // a<b c="     Value           , // a<b c="d     Solidus         , // a<b c="d"/     Close_Tag       , // a<b c="d"/>     Contents        , // a<b c="d">e } 

Reading the spec, Ive had trouble tracking down exactly the conceptual names for everything here. It is also unclear to me whether the names are synonymous between html and xml.

Apart from being a general question, the specific questions I would like to ask are:

  • Do we refer to the Whitespace as a delimiter?
  • Should the = be considered a setter or assignment_operator or something else?
  • Solidus is the name of the character /, but does it have a more formal designation?
  • Should I refer to it as, content or contents?

[note: More context will be added after this initial parsing, such as what is found here:
thus I am not too concerned whether I am dealing initially with normal or void elements.]


Finding path with specific length in weighted graph

Given a weighted, cyclic, directed graph and two nodes I am looking for a connecting path which total weight comes as near as possible to a specific value which is greater than the shortest path. Example in a real world scenario: Find a route from Washington D.C. to New York City which is 400 miles long, despite the shortest path is ~230 miles. All my considerations so far failed for one of the following reasons:

  • Most routing algorithms like Dijkstra are not working in this case because there is nothing to minimize or maximize (the divergence of given weight to path weight should be minimized, but you need the finished path to calculate it)
  • DFS and BFS can be used to find a path with a specific number of hops (edges), but it doesn’t consider weighted edges

Branch Specific pricing in magento 2

Need to setup branch specific pricing . 600 Branches available each branch has same products but different pricing . Need to use zipcode to differentiate users and navigate them to corresponding branches/products . How can we do this in magento 2 ? How much customization needed ? is it possible to create 600 store views based on branches and set different price same product in different store views ? is it efficient ?

App is changing default application for specific file type

I’m trying to resolve a problem that, whenever I run Franz (, it changes the default application for .html files to Franz. I believe Franz is built based on electron.js so maybe it has something to do with that.

I’ve created a github issue (, however, the developers say they do not implement such a feature.

Is there anything else in the OS happening, that could lead to such a change?

I’m using Ubuntu 16.04 LTS.