send commands programmatically to a VPS

I have created a snapshot on digital ocean with a NodeJs app files and I want to create new vps with the same snapshots. However, i have to … | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1843568&goto=newpost

Passing arguments to YourPhone app to send message from PC to my cell from security app than can run on alerts

I’m wondering if it’s possible to pass arguments to YourPhone app to send message from my PC to my cell from my security app than can then run YourPhone on alerts.

For instance, on an alert from my security software ISpy it can run a batch file calling YourPhone app so if I can pass it my cell number I would get an alert on my cell. I know how to start the YourPhone app from the command line but I don’t know if it accepts arguments ๐Ÿ™

I have searched everywhere and can’t find diddley!

Thanks,

Tom

google sheets – Send email when cell value equals 29

I am having trouble with my google sheets script and I wondered if anyone had any advice for a beginner. I want my script to check a cell value (Sheet1, H2), then send an email if the value = 29. However, at the moment it will send an email whatever value it returns, I don’t think my if statement works correctly. Any ideas would be really appreciated.

enter image description here

function CheckExpiry() {
  // Fetch the days till expiry.
  var ExpiryDataRange = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getRange("H2"); 
  var ExpiryData = ExpiryDataRange.getValue();
  // Check expiration
  if(ExpiryData = 29){
    // Fetch the email address
    var emailRange = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getRange("C2");
    var emailAddress = emailRange.getValue();
  
    // Send Alert Email.
    var message = 'You are recieving this email as harness # is up for inspection soon, current inspection expires in the following number of days: ' + ExpiryData; // Second column
    var subject = 'Your Harness Spreadsheet Alert';
    MailApp.sendEmail(emailAddress, subject, message);
    }
}

Send email to multiple users without having to enter them one by one?

Using Gmail, how can you send an email to several contacts without having to enter their emails one by one?

I cannot seem to figure out an easy way to do this.

How to send the request parameter in SAML like SAMLRequest

I wanted to send the appid which needs to be passed as a request parameter like SAMLRequest request parameter. Using Spring SAML I have integrated, but how to add an extra attribute as request parameter like SAMLRequest.

stored procedures – SQL Server Management Send Mail as Part of a Job

I have a SQL Job that I would like to send an email through, but for some reason I can’t get any details on why the email is not sending. This code works as expected when executed in the query window, and SQL Server Agent will also send error emails to me, so my email profile seems to be set up correctly. The code:

BEGIN
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'MailProfile',
@recipients = 'myaccount@emailcom',
@subject = 'Bad Data Report',
@query = N' USE Database;
   DECLARE @yesterday date = getdate() - 1;  select * from Timecards WHERE Date = @yesterday AND (DailyHours > 24.1 OR DailyHours < 0 ) ',
@exclude_query_output = 1,
@attach_query_result_as_file = 1,
@query_result_header = 1,
@query_attachment_filename = 'BadDataQuery.txt'
END

Following some advice from similar issues on this site, I tried looking through sysmail_allitems and sysmail_faileditems, but neither log any attempts to send. I also created a stored procedure that I had the job call as a roundabout way to send the email, but that also did not send an email nor leave an error. Any ideas what might be going on?

Bitcoin.com wallet fails to import and send btc

I have an old Bitcoin wallet since 2017 and never updated it. I have BTC on it and I have the 12 words code. I tried to send btc from my wallet and it does not allow me to change the participant address to something other than my wallet and I donโ€™t know what meant by my wallet in the participant address. It only allows me to send Bitcoin cash from my wallet which is zero in my case. I also trie to import my wallet on my phone app and it always results with fail on the Bitcoin.com app.
Any help would be appreciated ๐Ÿ˜ญ

magento2 – Magento 2 how to send information from Knockout Js to Js component?

I’m trying to send an array of data from a Knockout Js component to a JS file so I can do an ajax request there.

Here is what I’m doing:

phtml:

<div class="container">
  <div class="notification">
    <div id="portability-conversion" data-bind="scope:'portabilityconversion'">
    <!-- ko template: getTemplate() --><!-- /ko -->
    <script type="text/x-magento-init">
    {
        "#portability-conversion": {
            "Magento_Ui/js/core/app": {
               "components": {
                    "portabilityconversion": {
                        "component": "Vendor_GetQuote/js/quote",
                        "quote_data": <?php /* @escapeNotVerified */ echo $data ?>,
                        "employee_quote": <?php /* @escapeNotVerified */ echo $employee ?>
                    }
                }
            }
        }
    }
    </script>
    </div>
  </div>
      <div class="buttons">
        <button class="button is-link common-place-order" style="margin:auto">Add to Cart</button>
      </div>
</div>

<script type="text/x-magento-init">
    {
        "*": {
            "Magento_Ui/js/core/app": {
               "components": {
                    "ajaxrequest": {
                        "component": "Vendor_GetQuote/js/ajax-request"
                    }
                }
            }
        }
    }
  </script>

On quote.js I work with data dinamically, so I can update and push this data to an observable array called data.

define(('jquery', 'uiComponent', 'ko'), function ($, Component, ko) {
    'use strict';
    return Component.extend({
        defaults: {
            template: 'Transom_GetQuote/portability',
            template2: 'Transom_GetQuote/conversion-life',
            data:  ko.observableArray(()),
            employee:  ko.observableArray(())
        },
        
        initialize: function () {
            this._super();
            this.employee.push({
                EMP_NOM:this.employee_quote.EMP_NOM,
                EE_basic_amount_original:this.employee_quote.EE_basic_amount_original,
                EE_basic_amount:this.employee_quote.EE_basic_amount,
                EE_supp_amount:this.employee_quote.EE_supp_amount,
                EE_supp_amount_original:this.employee_quote.EE_supp_amount_original,

            })
            console.log(this.quote_data);
            console.log(this.employee_quote);
            var coverageData = function (name, value){
                this.Name = name;
                this.Value   = value;
            };

            this.coverages = ko.observableArray((
                new coverageData("100%",1),
                new coverageData("75%",0.75),
                new coverageData("50%",0.50),
            ));
    
            this.child_basic_coverage = ko.observable();
            this.child_supp_coverage = ko.observable();
            this.employee_basic_coverage = ko.observable();
            this.employee_supp_coverage = ko.observable();

            var self = this;
            self.basicChange = function() {
                if (typeof this.EMP_NOM !== 'undefined') {
                    this.EE_basic_amount = this.EE_basic_amount_original*self.employee_basic_coverage();
                    self.employee(());
                    self.employee(this);
                }
                else if(typeof this.SP_FIRST_NAME !== 'undefined'){
                    alert("It's an Spouse");
                }
                else if(typeof this.child_FIRST_NAME !== 'undefined'){
                    alert("It's a Children");
                }
            }

            self.suppChange = function() {
                if (typeof this.EMP_NOM !== 'undefined') {
                    this.EE_supp_amount = this.EE_supp_amount_original*self.employee_supp_coverage();
                    self.employee(());
                    self.employee(this);
                }
                else if(typeof this.SP_FIRST_NAME !== 'undefined'){
                    alert("It's an Spouse SUPP");
                }
                else if(typeof this.child_FIRST_NAME !== 'undefined'){
                    alert("It's a Children SUPP");
                }
            }

            // this.children = ko.observableArray(());
            this.displayChildrenTable = ko.observable(false);
            // this.spouse = ko.observableArray(());
             this.loadChildren(this.quote_data(0).childs) == true ? this.displayChildrenTable(true) : this.displayChildrenTable(false);
        
        },

        loadChildren: function (children_data) {
            if(children_data.length > 0){
                for(var i = 0; i < children_data.length; i++){
                    this.data.push(children_data(i));
                }
                return true;
            }
            else{
                return false;
            }
        },
        
        getChildren: function () {
            return this.quote_data(0).childs;
        },

        getSpouse: function () {
            return this.quote_data(0).wife;
        },

        getEmployee: function () {
            return this.employee;
        }
    });
}
);

Finally on ajax-request.js I wan’t to get the property data.

define(
(
‘jquery’,
‘ko’,
‘uiComponent’,
‘Vendor_GetQuote/js/quote’
),
function(
$,
ko,
Component,
portconv
) {
‘use strict’;

    $(document).on('click', '.common-place-order', function (event) {
        var data = portconv.call().data; //here quote.js component is loaded
        console.log(data);
    });
}

);

Result:

Error, because knockout js quote.js is trying to load everything from the beginning, all data. So logically it’s null because I’m not sending that data again to that component.

I don’t know how to deal with this, I’m not very skilled on Magento frontend. I was thinking in not creating a knockout js, but just functions for returning data, however it will be the same result, because data is empty.

Greetings!

magento2 – Magento 2 How to send data from one html template to another?

I’m developing 2 forms with knockout js and html template. This 2 forms templates need to be separated, however they share data in common, for example, coverages amounts (this templates are about insurances).

So I have my structure like this:

templates
 -portability.html
 -conversion.html
js
 -quote.js

The problem is that I feel that mixing methods of this 2 separated products in a single js file like quote.js will be a mess, because there will be methods applying just for portability.html and other methods applying just for conversion.html.

My idea:

Separate this methods in 2 different js, like portability.js and conversion.js

My problem:

I don’t see how to send data from portability.js to conversion.js and vice versa.

This is how my phtml will look like when I get this 2 different js files communicated:

 <div id="custom-component" data-bind="scope:'customcomponent'">
        <!-- ko template: getTemplate() --><!-- /ko -->
        <script type="text/x-magento-init">
        {
            "#custom-component": {
                "Magento_Ui/js/core/app": {
                   "components": {
                        "customcomponent": {
                            "component": "Vendor_GetQuote/js/portability",
                            "basic_amount": "<?= /* @escapeNotVerified */ $ee_basic_amount_original ?>",
                            "supp_amount": "<?= /* @escapeNotVerified */ $ee_supp_amount_original ?>",
                        }
                    }
                }
            }
        }
        </script>
        </div>

<div id="custom-component" data-bind="scope:'customcomponent'">
    <!-- ko template: getTemplate() --><!-- /ko -->
    <script type="text/x-magento-init">
    {
        "#custom-component2": {
            "Magento_Ui/js/core/app": {
               "components": {
                    "customcomponent2": {
                        "component2": "Vendor_GetQuote/js/conversion",
                        "basic_amount": "<?= /* @escapeNotVerified */ $ee_basic_amount_original ?>",
                        "supp_amount": "<?= /* @escapeNotVerified */ $ee_supp_amount_original ?>",
                    }
                }
            }
        }
    }
    </script>
    </div>

Greetings!

http – Is it secure to send personal data via website?

On a website of some company it is possible to send personal data using a form. The browser I’m using says that connection is secure.

Is it completely secure to send personal data via the form?

Is there any possibility that an attacker can grab the data, or maybe the data could be stored anywhere between my PC and company’s server?

The website is accessed using the HTTPS protocol, so the data should be encrypted, shouldn’t it?