github – Do you save your projects in the repository of a course or do you have separate repositories for each project?

Suppose I take the course CS50: Introduction to Computer Science and have completed all of its problems. Is it better to save these problem groups in folders, e.g. cs50-introtocs Repository or create a new repository for each problem group?

The same applies to the Odin project, FreeCodeCamp etc. and their projects.

What is better if you pretend to link your GitHub later in your resume?

Javascript – save table values ​​in the array

I have the following table with data and check boxes, I am trying to do that if you select the Chekcbok and click the Save button, I will save the selected data with the check box in an array and send it via Ajax.




    test
            


        
        
        
        <
head head2 head3 head4 head5
test test2 test3 test4
test test2 test3 test4

Here I have my code, but it doesn't save anything, I can't save the values, I tried other ways and I haven't managed it either, I don't see how to do it.

$(document).on('click','#guardar',function(){
                var tdValues=();
                var columns = $(this).closest('tr').find('td');
                var valorcheck=();


            $('#table input(type="checkbox"):checked').each(function(e,i){
                if($(this).prop("checked")){
                        console.log(i);
                        valorcheck.push($(this).text());                            
                }
            });

            tdValues.push(valorcheck);
            console.log(tdValues);

            var JSONARRYA= JSON.stringify( tdValues )
                console.log(JSONARRYA);

            }); 

Thank you

Javascript – Save username and password for another site in Node and MongoDB

This is not about saving my user's login information in the app. I already use hash and JWT tokens for this. In part of our app, we need to save the user's login information for another website.

For example, they enter their username and password, it is saved in my system and then my node server wakes up at night. He uses your data to log on to the other system and to retrieve the required data. What is the best and safest way to save these details in the system since I need the password in text form to log in to the website.

We receive permission from the user to do this as this automates an essential part of our data collection for the user. It is just that the other website / system has no other way of providing us with the data unless we want it to be in paper form in the mail.

magento2.3 – Magento 2: User-defined file attribute for administrator users who do not save a file

I have created 2 attributes used by the administrator 1: simple entry 2: file upload.
simple input works fine, but for file one I can't save file to folder where I can see filenames in the database

below is the code from Main.php:

namespace VendorModulePluginBlockAdminhtmlUserEditTab;

use MagentoBackendBlockWidgetForm;

class Main extends MagentoUserBlockUserEditTabMain
{


    /**
     * Get form HTML
     *
     * @return string
     */
    public function aroundGetFormHtml(
        MagentoUserBlockUserEditTabMain $subject,
        Closure $proceed
    )
    {
        /** @var $model MagentoUserModelUser */
        $model = $this->_coreRegistry->registry('permissions_user');
        $form = $subject->getForm();
        if (is_object($form)) {
            $fieldset = $form->addFieldset('cus_fieldsetname_code', ('legend' => __('Authorization Code')));
            $fieldset->addField(
                'custom_column',
                'file',
                (
                    'name' => 'custom_column',
                    'label' => __('Custom Column'),
                    'id' => 'custom_column',
                    'title' => __('custom_column'),
                    'required' => false,
                    'note' => 'Custom column '
                )
            );


            $fieldset->addField(
                'bio',
                'textarea',
                (
                    'name' => 'bio',
                    'label' => __('Bio'),
                    'id' => 'bio',
                    'title' => __('bio'),
                    'required' => false,
                    'note' => 'Bio'
                )
            );





             $form->addValues(
                (
                    'bio' => $model->getData('bio'), 
                    'custom_column' => $model->getData('custom_column')
                )
            );
             $subject->setForm($form);
         }
         return $proceed();
    }
} 

dnd 5e – Can you successfully complete a save that you cast based on a spell you cast?

There is no general rule that exempts wizards from saving rolls for their own spells, and whether a particular spell had such a rule it would say it openly.

School of Evocation Wizards, however, have a useful ability:

Sculpture spell

From stage 2 onwards, you can create bags with relative certainty within the effects of your evocation spells. When you cast a summoning spell that affects other creatures you can see, you can choose a number of them that is 1 + the level of the spell. The selected creatures automatically have save rolls against the spell and do no damage if they would normally take half the damage if the save was successful.

Earthquake is an evocation spell, so a wizard from the evocation school can use sculpt spells to successfully perform a save after a spell they cast, and not make them vulnerable.

The earthquake spell has a number of continuous effects. Sculpture magic would not protect you from these effects in the following rounds after the first cast.

You could also use sculpt spells for all other summoning spells (e.g. fireball, etc.), many of which have no ongoing effects.

However, sculpt spells cannot protect the caster

The rule text says very specifically that you can protect. & # 39;other creatures you can see& # 39 ;. "Other creatures" cannot mean you.

To achieve this effect, you need a friendly summoning assistant who will enchant you with Sculpt Spells. You cannot work it on yourself.

dnd 5e – Can you successfully complete a save that you cast based on a spell you cast?

There is no general rule that exempts wizards from saving rolls for their own spells, and whether a particular spell had such a rule it would say it openly.

School of Evocation Wizards, however, have this ability:

Sculpture spell

From stage 2 onwards, you can create bags with relative certainty within the effects of your evocation spells. When you cast a summoning spell that affects other creatures you can see, you can choose a number of them that is 1 + the level of the spell. The selected creatures automatically have save rolls against the spell and do no damage if they would normally take half the damage if the save was successful.

Earthquake is an evocation spell, so a magician from the evocation school can use a sculpture spell to automatically make a save throw and not be vulnerable to falls.

You can also use this effect for all other summoning spells (e.g. fireball, etc.).

dnd 5e – Which magic save DC do you use when working with Warlock slots?

The calculation for Spell Save DC depends on where the magic comes from.

If you knew the spell from the wizard's spell list, it would be 8 + ability bonus + intelligence modifier.

However, if you know the spell from the Warlock spell list, the spell memory DC is 8 + ability bonus + charisma modifier.

TLDR: The DC for storing spells depends on which class you know the spell from.

Design – How can I save time series data like Google Analytics, Facebook etc.?

I'm thinking about it in terms of a No SQL database, more specifically MongoDB. So I want to create something like Google Analytics, in which I record a lot of data and when it occurs so that I can show how often X has happened in this year / month / week / day / hour / etc. As with Google Analytics, only small data is saved next to the time stamp. There will also be several points from which I take data, e.g. B. how there are different administrators in Google Analytics with their own dashboard. I will give an example.

There are 3 "administrators" with their own dashboard and website. Then we have to collect data from each website. For the sake of simplicity, we will only collect data if a user leaves a comment on their page and if the comment contains an image.

I originally had it like that, but of course there is no timestamp

{
    Name: "Admin 1",
    numComments: 10,
    hadPics: {Yes: 6, No: 4}
},{
    Name: "Admin 2",
    numComments: 12,
    hadPics: {Yes: 6, No: 6}
},{
    Name: "Admin 3",
    numComments: 5,
    hadPics: {Yes: 3, No: 2}
}

Then I changed it

{
    Name: "Admin 1",
    numComments: 3,
    time: [{
        time: "3/28/2020 - 6:45:36 am",
        hadPics: "No"
    },{
        time: "3/28/2020 - 6:45:37 am",
        hadPics: "Yes"
    },{
        time: "3/28/2020 - 6:46:10 am",
        hadPics: "Yes"
    }]
},{
    Name: "Admin 2",
    numComments: 5,
    time: [{same structure as above}]
},{
    Name: "Admin 3",
    numComments: 6,
    time: [{same structure as above}]
}

But I imagine this would get insanely large and is not a good way to save the data. Not to mention that collections have a maximum storage space of 16MB, which sounds like something I would pass if I saved it that way? How time Array would be very large. This is just 3 comments, imagine there are 10 comments per second and 100 "admins". Within a minute time The array would contain 100 elements and I would have done 1000 writes to the database.

If anyone has any suggestions on how this data can be stored well so that I can easily retrieve and store it, I would love to hear it! Especially when it is easier to retrieve data such as from the last day, the last week, etc.