put some function in the cloud and run cell phone or tablet or laptop from anywhere

In general, I would like to recover a small chain produced after entering some integers …

anyway the functions are:

pw(j_Integer, nd_Integer, sl_Integer, oeo_Integer) := 
 Style(StringJoin(" ", 
   Map(ctec((# + 1)) &, 
    First(RealDigits(N(1/Prime(j*sl + oeo), (j*sl + oeo)*10*5), 
      Length(ctec), nd, -sl*oeo))), " "), FontSize -> 25, 
  FontColor -> Red, Bold, Background -> Yellow)

where ctec is a list of all the characters that can be used with a Latin-kb password

angular – Trying to put an item on the SplitButton list – PrimeNG

I need to put an item in the content list of a SplitButton.
I'm using PrimeNG SplitButton: https://www.primefaces.org/primeng/#/splitbutton
I saw in the PF documentation that there is an "appendTo" property and I think I can put a search bar within the list of split buttons with this property.
But it does not work.

I would like to know if there is another way to put this search bar within the splitButton list or how I can use appendTo to do this as the link below, in the splitButton "Advanced" element.

Thansk for help.

usability: can you put 99 for values ​​greater than 100?

I have tabs that navigate to different lists and a badge button on each tab that shows how many values ​​are in each list. It is difficult to place 3 numbers on the small badge button. If I extend the badge button too much, it seems strange for numbers 1-9. When I put 99+, you can barely read it.

My question is, is it okay to put 99 for values ​​greater than 100? Anyway, we have a maximum of 100, so I was wondering if users understand that 99 means it is full or if I need the plus at the end.

enter the description of the image here

Thank you

api design – REST – PUT or PATCH when updating all the properties of an entity

In a REST API, when I want to update all the properties of an entity, what is better to use in terms of good practices? PUT or PATCH? If it is better to use PATCH, because it is PUT necessary? What would be the difference between the two?

If all fields are updated, in that case both operations are idempotent, right? So what is the difference?

Applications – Have you previously requested to enter or remain in Canada? What should I put?

I was asked for a permanent residence visa for Canada, they declined in 2005. In 2012 I entered Canada with the Swazi passport (while allowing entry to the port). I am now applying for a visiting visa with a Swazi passport.

So what should I say yes or no?

If yes, what should I write? Ex. In 2012 I entered Canada, but did not request to remain in Canada.

dnd 5e: Do the spell attacks of the revived rogue UA of the Grave ranged spell attack put themselves at a disadvantage if they are used after the cunning action is used to disconnect?

In D&D 5e, if a rogue who plays the unearthed arcana, the Revived subclass makes a melee attack (without using the sneak attack), and then uses the cunning action to disconnect and escape to shoot lightning from the grave, it is the attack of remote spell done at a disadvantage?

The wording of Bolts from the Grave is:

Immediately after using your cunning action, you can perform a ranged spell attack on a creature within 30 feet of you …

Because it says "immediately," does this mean that the Bolts from the Grave attack should be at a disadvantage because it is a ranged spell attack that fires less than 5 feet from the creature?

Or does it mean "immediately" that the Tomb Screws occur after the disconnection and movement ends?

Put WordPress, Git and Plesk at work together

I am developing a WordPress site 5.2.3. My provider offers Plesk Obsidian 18.0.21 as an administration tool. I want to store the custom PHP source code and image upload area in a private GitHub repository. I am not worried about the database used by WP, because its backups are already well managed.

I am new to the development of WP and I am not sure which directories should be kept in the GitHub repository, so I decided to store the entire httpdocs area of ​​my server on GitHub.

I have performed the following operations:

  • WP installed from my Plesk console

  • Compressed the entire batch from the Plesk file manager

  • I downloaded the zip file on my PC

  • created an empty repository on GitHub

  • I cloned the GitHub repository on my PC

  • I expanded the zip file in the local repository on my PC

  • confirmed the new files and sent them to GitHub

  • deleted files on server using Plesk file manager

  • From the Plesk console, I enabled Git for my domain and linked it to the GitHub repository

  • In GitHub I have installed the public key provided by Plesk, which allows read and write access to the repository

The clone made by Plesk was done without problems: all the files in the GitHub remote repository have been copied, I can see in the Plesk console that the git log informs about each confirmation, and the WP site works perfectly.

Now I have uploaded a test image from the WP administration panel, the directory uploads It shows the new image file in the Plesk file manager, and now I want to send it to GitHub.

I enter the httpdocs directory with an SSH shell, but there is no trace of a .git directory. I try git status and the answer is not a git repository.

Did Plesk made a real git cloneOr did you just create a directory that allows GitHub hooks to fire and copy files there?

Possibly doing things incorrectly, but Basically I have two needs:

  • develop PHP code (widgets, types of custom posts, etc.)

  • upload images from the WP admin panel

Both assets must be versioned on GitHub.

I understand that I can develop the PHP code on my PC, put it on GitHub and have the hooks bring the changes to my server managed by Plesk. But I can't imagine a workflow for storing uploaded images on GitHub, since they originate from the server managed by Plesk.

Is there any recommended practice to address both needs at the same time in my environment?

terminal – How (and should I) put a path to python installed by the user before python installed by the system?

You can achieve this by adding

export PATH="/path/to/python:"$PATH

for you ~/.zshrc (or ~/.bash_profile If you are not in Catalina).

I would like to propose an alternative and suggest pyenv, available through Homebrew. You can configure a specific version of Python to be "global" (that is, default everywhere) and / or "local" (that is, use that version only in a specific directory).


brew install pyenv
pyenv global 2.7.16
cd ~/myProjects/MyProject
pyenv local 3.7.6

If I had to use Python in ~/myProjects/MyProject default will be 3.7.6and anywhere else 2.7.16:

cd ~/some/other/directory
python --version
>> Python 2.7.16

cd ~/myProjects/MyProject
python --version
>> Python 3.7.6

terminal – How (and should) put a path to python installed by the user before python installed by the system?

I have a separate installation of Python 3. *, but the first Python path in my $PATH variable is the path to Python installed by the system. Is that how it should be?

I have added the path to Python installed by the user using https://www.architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/#.Uydjga1dXDg , and appeared at the end of $PATH.

Do I understand correctly that, in the current situation, when I run pip, brew etc. In python3 from bash, will the changes be applied to Python installed by the system?

The solution I have so far is to run export PATH=/usr/local/bin:/usr/local/sbin:$PATH every time I want to install or
Update Python, but it is not ideal.

enter the description of the image here