sharepoint designer – How to modify list from InfoPath 2013

I am trying to modify a list made in Sharepoint Designer 2013 so when I go to the Design Form option in InfoPath I get the following error:

InfoPath cannot generate a form template for the Sharepoint list

Inside the box I have the following details

Form customization is not supported for this SharePoint list.

Additional to Sharepoint Designer 2013 I found this Sharepoint Online configuration:

enter image description here

wallet – Modify the script Hex-compressed

There is a script that receives as input Hex uncompressed private key (e41b45e722251672c01a28e4fada590471fea09f90d13b143033ed3a1107ef49) at the exit, he receives the public address of the bitcoin wallet. I need help in finalizing the script so that at the input it receives Hex-compressed 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01) private key and at the exit he received the public address of the bitcoin wallet.

import ecdsa
import hashlib
import base58

def bytes_to_hex_string(b: bytes):
    return ''.join('{:02x}'.format(x) for x in b).upper()

def get_prepend_if_even_or_odd_for_compressed(x_point):
    y = int(x_point(64:), 16)
    if y % 1 == 1:
        return "03"  # odd
    return "02"  # even

private_key = "e41b45e722251672c01a28e4fada590471fea09f90d13b143033ed3a1107ef49"

# Convert hex private key to bytes
private_key = bytes.fromhex(private_key)
print(f"Private key hex string: tt {bytes_to_hex_string(private_key)}")
print(f"Private key bytes: ttt {private_key}")
# Derivation of the private key
signing_key = ecdsa.SigningKey.from_string(private_key, curve=ecdsa.SECP256k1)

verifying_key = signing_key.get_verifying_key()
print(f"Verifying key, x and y points (bytes):t{verifying_key.to_string()}", type(verifying_key.to_string()))

x_point = bytes_to_hex_string(verifying_key.to_string())
print(f"Uncompressed private key (hex):tt 04{x_point.upper()}")

even_odd = get_prepend_if_even_or_odd_for_compressed(x_point)
print(f"Compressed private key in (hex):t {even_odd}{x_point.upper()(:64)}")

# public_key = bytes.fromhex("04") + verifying_key.to_string()  # this is error, you're using uncompressed private key
public_key = bytes.fromhex(even_odd) + verifying_key.to_string()(:32)

# Hashes of public key
sha256_1 = hashlib.sha256(public_key)  # now public_key contains compressed private key
ripemd160 = hashlib.new("ripemd160")
ripemd160.update(sha256_1.digest())

# Adding prefix to identify Network
hashed_public_key = bytes.fromhex("00") + ripemd160.digest() # hashed_private_key is public key

# Checksum calculation
checksum_full = hashlib.sha256(
    hashlib.sha256(hashed_public_key).digest()).digest()
checksum = checksum_full(:4)

# Adding checksum to hashpubkey
bin_addr = hashed_public_key + checksum

# Encoding to address
address = str(base58.b58encode(bin_addr))
final_address = address(2:-1)  # change 2

print(f"Public compressed key (hex): tt {final_address}")

javascript – Sharepoint 2019 – modify search result item template to return Office URI Schemes

I am looking for a way to open word, excel, ppt files in a local client application.
For any mysterious reasons that work in document libraries but not in search results.
I know that it works if I manually add the micrsoft URI sheme to a file-URL.

So my idea was to modify the search result item template (HoverPanel) output from the “open”-link. So that the “open”-Link does return the Microsoft Uri schema instead of the plain file-URL.
The reason why I choose this way is to avoid client-side javascript code like in cewp or script-editor-webpart.

I am definitely no javascript professional, so maybe anybody can tell me whether that is possible or not. And of course, if it’s possible, a code example would be very nice ^_^

Below the example content of Item_powerPoint.html and Item_PowerPoint_HoverPanel.html.

Item_PowerPoint.html

<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> 
<head>
<title>PowerPoint-Element</title>
<!--(if gte mso 9)><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:MasterPageDescription msdt:dt="string">Zeigt ein auf Microsoft PowerPoint-Dokumente abgestimmtes Ergebnis an.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
<mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSummary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','ServerRedirectedURL':'ServerRedirectedURL','SectionNames':'SectionNames','SectionIndexes':'SectionIndexes','ServerRedirectedEmbedURL':'ServerRedirectedEmbedURL','ServerRedirectedPreviewURL':'ServerRedirectedPreviewURL'</mso:ManagedPropertyMapping>
</mso:CustomDocumentProperties>
</xml><!(endif)-->
</head>
<body>
    <div id="Item_PowerPoint">
<!--#_ 
        if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
            var id = ctx.ClientControl.get_nextUniqueId();
            var itemId = id + Srch.U.Ids.item;
            var hoverId = id + Srch.U.Ids.hover;
            var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_PowerPoint_HoverPanel.js";
            $setResultItem(itemId, ctx.CurrentItem);
            ctx.currentItem_ShowHoverPanelCallback = Srch.U.getShowHoverPanelCallback(itemId, hoverId, hoverUrl);
            ctx.currentItem_HideHoverPanelCallback = Srch.U.getHideHoverPanelCallback();
            ctx.CurrentItem.csr_OpenApp = "powerpoint";
_#-->
            <div id="_#= $htmlEncode(itemId) =#_" name="Item" data-displaytemplate="PowerPointItem" class="ms-srch-item" onmouseover="_#= ctx.currentItem_ShowHoverPanelCallback =#_" onmouseout="_#= ctx.currentItem_HideHoverPanelCallback =#_">
<!--#_
                if(!$isNull(ctx.CurrentItem.ServerRedirectedPreviewURL))
                {
                    ctx.CurrentItem.csr_PreviewImage = ctx.CurrentItem.ServerRedirectedPreviewURL;
                    ctx.CurrentItem.csr_PathLength = Srch.U.pathTruncationLengthWithPreview;
                }
                ctx.CurrentItem.csr_Icon = Srch.U.getIconUrlByFileExtension(ctx.CurrentItem);
_#-->
                _#=ctx.RenderBody(ctx)=#_
                <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
            </div>
<!--#_
        }
_#-->
    </div>
</body>
</html>

Item_PowerPoint_HoverPanel.html

<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> 
<head>
<title>PowerPoint-Daraufzeigebereich</title>

<!--(if gte mso 9)><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:MasterPageDescription msdt:dt="string">Zeigt einen auf Microsoft PowerPoint-Dokumente abgestimmten Ergebnisdaraufzeigebereich an.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
<mso:TargetControlType msdt:dt="string">;#SearchHoverPanel;#</mso:TargetControlType>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSummary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','ServerRedirectedURL':'ServerRedirectedURL','SectionNames':'SectionNames','SectionIndexes':'SectionIndexes','ServerRedirectedEmbedURL':'ServerRedirectedEmbedURL','ServerRedirectedPreviewURL':'ServerRedirectedPreviewURL'</mso:ManagedPropertyMapping>
</mso:CustomDocumentProperties>
</xml><!(endif)-->
</head>
<body>
    <div id="Item_PowerPoint_HoverPanel">
<!--#_
        var i = 0;
        var wacurlExist = !Srch.U.e(ctx.CurrentItem.ServerRedirectedURL) && !Srch.U.e(ctx.CurrentItem.ServerRedirectedEmbedURL);
        var id = ctx.CurrentItem.csr_id;
        ctx.CurrentItem.csr_FileType = Srch.Res.file_PowerPoint;
        ctx.CurrentItem.csr_ShowFollowLink = true;
        ctx.CurrentItem.csr_ShowViewLibrary = true;
        ctx.currentItem_IsOfficeDocument = true;
_#-->
        <div class="ms-srch-hover-innerContainer ms-srch-hover-wacSize" id="_#= $htmlEncode(id + HP.ids.inner) =#_">
            <div class="ms-srch-hover-arrowBorder" id="_#= $htmlEncode(id + HP.ids.arrowBorder) =#_"></div>
            <div class="ms-srch-hover-arrow" id="_#= $htmlEncode(id + HP.ids.arrow) =#_"></div>
            <div class="ms-srch-hover-content" id="_#= $htmlEncode(id + HP.ids.content) =#_" data-displaytemplate="PowerPointHoverPanel">
                <div id="_#= $htmlEncode(id + HP.ids.header) =#_" class="ms-srch-hover-header">
                    _#= ctx.RenderHeader(ctx) =#_
                </div>
                <div id="_#= $htmlEncode(id + HP.ids.body) =#_" class="ms-srch-hover-body">
<!--#_
                    if(!Srch.U.n(ctx.CurrentItem.ServerRedirectedEmbedURL))
                    {
                        ctx.CurrentItem.csr_DataShown = true;
                        ctx.currentItem_ShowChangedBySnippet = true;
_#-->
                        <div class="ms-srch-hover-viewerContainer">
                            <iframe id="_#= $htmlEncode(id + HP.ids.viewer) =#_" src="_#= $urlHtmlEncodeString(ctx.CurrentItem.ServerRedirectedEmbedURL) =#_" scrolling="no" frameborder="0px" class="ms-srch-hover-viewer"></iframe>
                        </div>
                        <div class="ms-srch-hover-wacImageContainer">
                            <img id="_#= $htmlEncode(id + HP.ids.preview) =#_" alt="_#= $htmlEncode(Srch.Res.item_Alt_Preview) =#_" onload="this.parentNode.style.display='block';" />
                        </div>
<!--#_
                    }
                    else
                    {
                        ctx.CurrentItem.csr_ShowLastModifiedTime = true;
                        ctx.CurrentItem.csr_ShowAuthors = true; 
                    }

                    if(!Srch.U.e(ctx.CurrentItem.SectionNames))
                    {
                        ctx.CurrentItem.csr_DataShown = true;
_#-->
                        <div class="ms-srch-hover-subTitle"><h3 class="ms-soften">_#= $htmlEncode(Srch.Res.hp_SectionHeadings) =#_</h3></div>
<!--#_
                        var sectionNames = Srch.U.getArray(ctx.CurrentItem.SectionNames);

                        var sectionIndexes = Srch.U.getArray(ctx.CurrentItem.SectionIndexes);
                        if(!Srch.U.n(sectionIndexes) && sectionIndexes.length != sectionNames.length)
                        {
                            sectionIndexes = null;
                        }

                        var hitHighlightedSectionNames = Srch.U.getHighlightedProperty(id, ctx.CurrentItem, "sectionnames");
                        if(!Srch.U.n(hitHighlightedSectionNames) && hitHighlightedSectionNames.length != sectionNames.length)
                        {
                            hitHighlightedSectionNames = null;
                        }

                        var numberOfSectionsToDisplay = Math.min(Srch.SU.maxLinesForMultiValuedProperty, sectionNames.length);
                        var sectionsToDisplay = new Array();

                        var usingHitHighlightedSectionNames = Srch.SU.getSectionsForDisplay(
                            hitHighlightedSectionNames,
                            numberOfSectionsToDisplay,
                            sectionsToDisplay);

                        for(i = 0; i < sectionsToDisplay.length; ++i)
                        {
                            var index = sectionsToDisplay(i);
                            if(Srch.U.n(index))
                            {
                                continue;
                            }

                            var tooltipEncoded = $htmlEncode(sectionNames(index));

                            var htmlEncodedSectionName = "";
                            if(usingHitHighlightedSectionNames)
                            {
                                htmlEncodedSectionName = hitHighlightedSectionNames(index);
                            }
                            else
                            {
                                htmlEncodedSectionName = tooltipEncoded;
                            }
_#-->
                            <div class="ms-srch-hover-text ms-srch-ellipsis" id="_#= $htmlEncode(id + HP.ids.sectionName + i) =#_" title="_#= tooltipEncoded =#_">
<!--#_
                                if(!Srch.U.n(sectionIndexes) && sectionIndexes.length >= i && !Srch.U.e(sectionIndexes(index)) && wacurlExist)
                                {
                                    var encodedSlideIndex = "&wdSlideIndex=" + $urlKeyValueEncode(sectionIndexes(index));
_#-->
                                    <a clicktype="HoverSection" linkIndex="_#= $htmlEncode(i) =#_" href="_#= $urlHtmlEncodeString(ctx.CurrentItem.ServerRedirectedURL + encodedSlideIndex) =#_" target="_blank">
                                        _#= htmlEncodedSectionName =#_
                                    </a>
<!--#_
                                }
                                else
                                {
_#-->
                                    _#= htmlEncodedSectionName =#_
<!--#_
                                }
_#-->
                            </div>
<!--#_
                        }
                    }
_#-->
                    _#= ctx.RenderBody(ctx) =#_
                </div>
                <div id="_#= $htmlEncode(id + HP.ids.actions) =#_" class="ms-srch-hover-actions">
                    _#= ctx.RenderFooter(ctx) =#_
                </div>
            </div>
<!--#_
            if(!Srch.U.n(ctx.CurrentItem.ServerRedirectedEmbedURL)){
                AddPostRenderCallback(ctx, function(){
                    HP.loadViewer(ctx.CurrentItem.id, ctx.CurrentItem.id + HP.ids.inner, ctx.CurrentItem.id + HP.ids.viewer, ctx.CurrentItem.id + HP.ids.preview, ctx.CurrentItem.ServerRedirectedEmbedURL, ctx.CurrentItem.ServerRedirectedPreviewURL);
                });
            }
_#-->
        </div>
    </div>
</body>
</html>

I will edit or convert your pdf files for $5

I will edit or convert your pdf files

You are looking to edit your PDF file? Your PDF is editable, non-editable, or scanned? No problem at all. I’ll edit it as you want.

1 Page edits only.

WHAT ARE MY SERVICES

* Any text edits

* New page adding or Removing pages

* Add or remove your logo, photos, graphics, or anything you want

* Add or remove watermarks, background, header/footer, etc

* Resize or move pages around

* Page numbers adding or removing

* Merge or split pdf files

* Adding or removing passwords


WHY YOU SHOULD CHOOSE ME?

* Very Quick Delivery

* Professional Service

* 16 hours availability for a day

* Long term relationship

.

text editor – I need to modify my phonebook application in C. Please show me the way. Thank you

I hope I am doing this right, I am a beginner in C and I am having trouble to figure out how to modify an entry. I am doing a phonebook application that will write and record into a text. file. I have finished most of the coding but I just can’t modify the contact. Please guide me or show me the way. Thank you.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct Phonebook_Contacts
   {
      char FirstName(20);
      char LastName(20);
      char PhoneNumber(20);
   } phone;


void AddEntry(phone * );
void DeleteEntry(phone * );
void PrintEntry(phone * );
void SearchForNumber(phone * );
void EditAnEntry(phone * );
void DeleteAll(phone * );
void FreeContacts (phone * );


int counter = 0;
char FileName(256);
FILE *pRead;
FILE *pWrite;


int main (void)
   {
      phone *phonebook;
      phonebook = (phone*) malloc(sizeof(phone)*100);
      int iSelection = 0;


         if (phonebook == NULL)
         {

         printf("Out of Memory. The program will now exit");
         return 1;
         }
         else {}

      do
      {
         printf("tt**********WELCOME TO TELEPHONE DIRECTORY CONTACT*************");
         printf("nnt(1)tAdd New");
         printf("nt(2)tDelete Per Person ");
         printf("nt(3)tDisplay Phonebook Entries");
         printf("nt(4)tSearch for Phone Number");
         printf("nt(5)tModify a contact");
         printf("nt(6)tDelete All Entries");
         printf("nt(7)tExit Phonebook");
         printf("nnWhat would you like to do? ");
         scanf("%d", &iSelection);


         if (iSelection == 1)
         {
            AddEntry(phonebook);
         }



         if (iSelection == 2)
         {
            DeleteEntry(phonebook);
         }


         if (iSelection == 3)
         {
            PrintEntry(phonebook);
         }



         if (iSelection == 4)
         {
            SearchForNumber(phonebook);
         }


         if (iSelection == 5)
         {
            EditAnEntry(phonebook);
         }


         if (iSelection == 6)
         {
            DeleteAll(phonebook);
         }


         if (iSelection == 7)
         {
            printf("nYou have chosen to exit the Phonebook.n");
            system("pause");
            FreeContacts(phonebook);
            return 0;
         }
      } while (iSelection <= 9);
   }


void AddEntry (phone * phonebook)
{
   pWrite = fopen("phonebook_contacts.txt", "a");
   if ( pWrite == NULL )
   {
      perror("The following error occurred ");
      exit(EXIT_FAILURE);
   }
      else
      {
         counter++;
         realloc(phonebook, sizeof(phone));

         printf("nFirst Name: ");
         scanf("%s", phonebook(counter-1).FirstName);
         printf("Last Name: ");
         scanf("%s", phonebook(counter-1).LastName);
         printf("Phone Number (XXX-XXX-XXXX): ");
         scanf("%s", phonebook(counter-1).PhoneNumber);
         printf("ntFriend successfully added to Phonebookn");

         fprintf(pWrite, "%st%st%sn", phonebook(counter-1).FirstName, phonebook(counter-1).LastName, phonebook(counter-1).PhoneNumber);
         fclose(pWrite);
      }
}

void DeleteEntry (phone * phonebook)
{
   int x = 0;
   int i = 0;
   char deleteFirstName(20);  //
   char deleteLastName(20);

      printf("nFirst name: ");
      scanf("%s", deleteFirstName);
      printf("Last name: ");
      scanf("%s", deleteLastName);

      for (x = 0; x < counter; x++)
      {
         if (strcmp(deleteFirstName, phonebook(x).FirstName) == 0)
         {
            if (strcmp(deleteLastName, phonebook(x).LastName) == 0)
            {
                for ( i = x; i < counter - 1; i++ )
               {
                  strcpy(phonebook(i).FirstName, phonebook(i+1).FirstName);
                  strcpy(phonebook(i).LastName, phonebook(i+1).LastName);
                  strcpy(phonebook(i).PhoneNumber, phonebook(i+1).PhoneNumber);
               }
               printf("Record deleted from the phonebook.nn");
               --counter;
               return;
            }
         }
      }

   printf("That contact was not found, please try again.");
}

void PrintEntry (phone * phonebook)
{
   int x = 0;

   printf("nPhonebook Entries:nn ");
   pRead = fopen("phonebook_contacts.txt", "r");
   if ( pRead == NULL)
   {
      perror("The following error occurred: ");
      exit(EXIT_FAILURE);
   }
   else
   {
      for( x = 0; x < counter; x++)
      {
         printf("n(%d)n", x+1);
         printf("Name: %s %sn", phonebook(x).FirstName, phonebook(x).LastName);
         printf("Number: %sn", phonebook(x).PhoneNumber);
      }
   }
   fclose(pRead);
}


void SortByFirstName (phone * phonebook)
{
   int i = 0;
   int x = 0;
   int swap;
   int TempCounter = counter;
   phone Temp;

   do
   {
      swap = 0;
      for(i = 1; i < TempCounter; i++)
      {

         if(strcmp(phonebook(i-1).FirstName, phonebook(i).FirstName) > 0)
         {
            Temp = phonebook(i);
            phonebook(i) = phonebook(i-1);
            phonebook(i-1) = Temp;

            strcpy(Temp.FirstName, phonebook(i).FirstName);
            strcpy(Temp.LastName, phonebook(i).LastName);
            strcpy(Temp.PhoneNumber, phonebook(i).PhoneNumber);

            swap = 1;
         }
      }
      TempCounter--;
   } while (swap);

   printf("nYour friends in Alphabetical Order by First Name:nn");
   for( x = 0; x < counter; x++ )
   {
      printf("n(%d)n", x+1);
      printf("Name: %s %sn", phonebook(x).FirstName, phonebook(x).LastName);
      printf("Number: %sn", phonebook(x).PhoneNumber);
   }
}


void SortByLastName (phone * phonebook)
   {
   int i = 0;
   int x = 0;
   int swap;
   int TempCounter = counter;
   phone Temp;

   do
   {
      swap = 0;
      for(i = 1; i < TempCounter; i++)
      {

         if(strcmp(phonebook(i-1).LastName, phonebook(i).LastName) > 0)
         {
            Temp = phonebook(i);
            phonebook(i) = phonebook(i-1);
            phonebook(i-1) = Temp;

            strcpy(Temp.FirstName, phonebook(i).FirstName);
            strcpy(Temp.LastName, phonebook(i).LastName);
            strcpy(Temp.PhoneNumber, phonebook(i).PhoneNumber);

            swap = 1;
         }
      }
      TempCounter--;
   } while (swap);

   printf("nYour friends in Alphabetical Order by First Name:nn");
   for( x = 0; x < counter; x++ )
   {
      printf("n(%d)n", x+1);
      printf("Name: %s %sn", phonebook(x).FirstName, phonebook(x).LastName);
      printf("Number: %sn", phonebook(x).PhoneNumber);
   }
}


void SearchForNumber (phone * phonebook)
{
   int x = 0;
   char TempFirstName(20);
   char TempLastName(20);

   printf("nPlease type the name of the friend you wish to find a number for.");
   printf("nnFirst Name: ");
   scanf("%s", TempFirstName);
   printf("Last Name: ");
   scanf("%s", TempLastName);
   for (x = 0; x < counter; x++)
   {
      if (strcmp(TempFirstName, phonebook(x).FirstName) == 0)
      {
         if (strcmp(TempLastName, phonebook(x).LastName) == 0)
         {

            printf("n%s %s's phone number is %sn", phonebook(x).FirstName, phonebook(x).LastName, phonebook(x).PhoneNumber);
         }
      }
   }
}


void EditAnEntry (phone * phonebook)
{
     int c;
     FILE *f;
     char  name(50);
     f = fopen("phonebook_contacts.txt", "r+");
   if ( f == NULL )

   {
      perror("The following error occurred ");
      exit(EXIT_FAILURE);
   }
      else
      {

         printf("nEnter CONTACT'S NAME TO MODIFY:n");
         counter++;
         realloc(phonebook, sizeof(phone));

         printf("nFirst Name: ");
         scanf("%s", phonebook(counter-1).FirstName);
         printf("Last Name: ");
         scanf("%s", phonebook(counter-1).LastName);
         printf("Phone Number (XXX-XXX-XXXX): ");
         scanf("%s", phonebook(counter-1).PhoneNumber);
         printf("ntFriend successfully added to Phonebookn");

         fprintf(pWrite, "%st%st%sn", phonebook(counter-1).FirstName, phonebook(counter-1).LastName, phonebook(counter-1).PhoneNumber);
         fclose(pWrite);
      }
 }




void DeleteAll (phone * phonebook)
{
   int x = 0;
   char nullStr(20) = {''};

   for ( x = 0; x < counter; x++ )
   {
      strcpy(phonebook(x).FirstName, nullStr);
      strcpy(phonebook(x).LastName, nullStr);
      strcpy(phonebook(x).PhoneNumber, nullStr);
      --counter;
   }

   printf("All Contacts have been deleted.n");
}
void FreeContacts (phone * phonebook)
{
     --counter;
     for ( ; counter > 0; --counter)
     {
        free(phonebook(counter).FirstName);
        free(phonebook(counter).LastName);
        free(phonebook(counter).PhoneNumber);
        free(phonebook);
        counter = 0;
        return;
     }

}
```

summation – How do I modify every nth element of a list?

I am working with the Mathematica S&P 500 data

datasp=Prepend(ExampleData({"Statistics", "SP500"}),ExampleData({"Statistics", "SP500"}, "ColumnHeadings"));

and have to multiply every 20th element by 203.63. In a next step, I will have to calculate the sum of all elements from the list (including the elements that have not been multiplied).

Unfortunately, I am struggling a bit with this. Could anyone help me out?

Thanks in advance!

magento2.3 – Modify In Stock functionality of Layered Navigation

In a specific requirement, we need to have out of stock product listed on website for back orders, magento does offer it very well, but I am looking to have a filter for layered navigation, if chosen it should only list products which has got qty >0 , means readily available, if I enable that qty and stock status in layered navigation along with option of show out of stock products, it always list out of stock products too, while I dont want them if that filter is selected.

How to modify date format in wp_prepare_revisions_for_js function?

In the wp_prepare_revisions_for_js function are the revision dates, I want to modify these dates but I don’t know how to do it. The function is found wp-admin/includes/revision.php.

TYPO3 Form EXT modify Inspector

I want to be able to link a content element UID to a radio button option. The content element is used for an extended description of the radio button option.

To do this I wanted to modify the current PropertyGridEditor Inspector, which is being used to add the different radio button options. I wanted to add a new column between the Label and Value Column, in which I can add the UID of the content element that should be loaded.

Here is what I’ve tried so far:

I added my custom Partial Paths

TYPO3:
CMS:
    Form:
        prototypes:
            standard:
                formEditor:
                    # translationFile has to be replaced with translationFiles
                    # since v10 this is an array and has to be migrated to this notation
                    translationFiles:
                        20: 'EXT:myext/Resources/Private/Language/locallang_form.xlf'
                    formEditorFluidConfiguration:
                        partialRootPaths:
                            50: 'EXT:myext/Resources/Private/Backend/Partials/FormEditor/'
                        layoutRootPaths:
                            50: 'EXT:myext/Resources/Private/Backend/Layouts/FormEditor/'

Then I copied the FormEditor/Inspector/PropertyGridEditor.html to my EXT and added the new column.

Cleared all the caches, but in the form editor it still shows de default Inspector. Is there anything else I have to do to overwrite an Inspector?
Or is it easier to create a new Inspector? If so, how do I create a new Inspector.

I’m running TYPO3 V10.

Thanks for the Help!

google sheets – How to can I read read Excel files from eclipse and modify cells?

I want to gather data from existing spreadsheets/excel file and modify it in real-time using eclipse. For instance, if there is any update in the excel file, then as I run the program, it should do the specified modifications (highlight/delete.) I don’t have much practical experience and have just taken AP Comp sci so I still do not know many of the directories and APIs.
Thanks 😉