Meaning of list[-1] in Python

One of the neat features of Python lists is that you can index from the end of the list. You can do this by passing a negative number to []. It essentially treats len(array) as the 0th index. So, if you wanted the last element in array, you would call array[-1]. All your return c.most_common()[-1] statement does is call c.most_common and return the last … Read more

Putty vs WinSCP

WinSCP is for file transfer to and from your server while PuTTY is used to interact with the server directly. Putty is just a command line interface to your server. WinSCP is a file transfer application using Secure FTP.

Why am I getting ‘Assembly ‘*.dll’ must be strong signed in order to be marked as a prerequisite.’?

My guess is that you’re not working with strongly named assemblies. I’ve had this error when two projects reference slightly different versions of the same assembly and a more dependent project references these projects. The resolution in my case was to remove the key and version information from the assembly name in the .csproj files … Read more

Convert .cer to .p12

try this: given you have files as follow: aps.cer, downloaded from Apple. app.key, your own private key generated by openssl. 1st, convert the .cer file into .pem format: 2nd, use the .pem file and your private .key to generate .p12 file: this should prompt to ask a password for this .p12 file. CF: aps_developer_identity.cer to … Read more