sql server – Fatal Python Error

Hola descargue la verisón 3.7.0 de 64 bits y la estoy usando en visual code estudio. cuando la abro en simbolo del sistema y lo trato de ejecutar me sale esta error:

Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named ‘encodings’

Current thread 0x00002320 (most recent call first):

y tambien cuando lo abro desde visual code lo ejecuta desde el servidor de SQL ¿cómo puedo evitar eso para que se tarde menos?

sharepoint server – Error 1921. Service ‘Office Online’ (WACSM) could not be stopped. Verify that you have sufficient privileges to stop system services

After installing the CU for Office Online Server when I run the New-OfficeWebAppsFarm command it throws this error: New-OfficeWebAppsFarm : The Office Online service did not respond in a timely fashion.

In Event viewer I see this error –

Product: Microsoft Office Web Apps Global Components — Error 1921. Service ‘Office Online’ (WACSM) could not be stopped. Verify that you have sufficient privileges to stop system services.

KB number: KB4484270 March 2020

ISO file version: 16.0.10338.20039

This happened the last time we patched as well but the service eventually started after trying several times.

Observations/troubleshooting:

  1. Office Online Service is stuck on starting
  2. Office Online service is running as Local System
  3. I’m logged in as local administrator
  4. Following accounts are added to ‘Log on as a service’ local security
    policy: Administrators group, Systems account, IIS App Pool.net
    v4.5, IIS App Pool.net v4.5 Classic, NT serviceall services
  5. Tried uninstalling Office Online server it fails with the same error
    that office online service cannot be stopped, verify you have
    sufficient privileges…Then it rolls back uninstallation
  6. Rebooted the server
  7. This is happening in other environments too – Dev, Test

Please let me know what else can be tried. Thanks.

windows 10 – Why am I getting a connection timeout error with ssh?

First of all, I’m pretty new to SSH. I’ve used it before, but never had to deal much with setting it up or navigating the details.

Whenever I try to ssh to a public ip address from my windows 10 computer, I get an error that looks like ssh: connect to username@<public ip address> port 22: Connection timed out.

I have a linux machine, and I can connect to it from windows with a private ip address, and my windows machine connects to github with ssh public/private key authentication. My linux machine can connect to external servers (like AWS) via ssh, it’s just my windows machine, and just external ports, so far as I can tell.

I’ve tried it with the -v option, and here’s the output:
ssh -v google.com. OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 debug1: Connecting to google.com (172.217.6.46) port 22. debug1: connect to address 172.217.6.46 port 22: Connection timed out ssh: connect to host google.com port 22: Connection timed out

What is causing this problem, and what do I need to do to fix it, so that I can ssh to external servers from my windows 10 computer?

An etiquette question that probably just deserves a comment: if I face downstream problems, should I edit them into this question, or post a new one?

Magento 2: Uncaught Error: Call to a member function setProduct() on boolean

I’m trying to update the product widget to show some custom product data like that

 <?= $block->getChildBlock('name-of-block')->setProduct($_item)->toHtml() ?>

while this code works fine on list.phtml in the CatalogWidget’s grid.phtml it cannot set the product

Parse error: syntax error HELP MEEEE [fechada]

Parse error: syntax error, unexpected end of file in /home/tavepharma/public_html/wp-content/plugins/gravity-forms-css-themes-with-fontawesome-and-placeholder-support/themes/gfct-corporate.php on line 2

Code arquive:

mariadb – why timezone like ‘+00:00’ ignored with select but error with create table?

I am wondering, why does mariadb ignore timezone like ‘+00:00’ with select statement however throw the error with create table statement?

SELECT CAST('2020-07-09 09:55:36.933554+00:00' AS DATE) dt;

# dt 
2020-07-09

CREATE TEMPORARY TABLE tmp AS 
SELECT CAST('2020-07-09 09:55:36.933554+00:00' AS DATE) dt;

# (1292): Truncated incorrect datetime value: '2020-07-09 09:55:36.933554+00:00'

I read the question about the error and understand how to fix it. Just curious why such not obvious for me behaviour.

javascript – POST request ERROR: ‘Access denied: Invalid token, wrong code’

I am trying to make a POST request using NODE but is throwing error. Here what I am trying to do is to generate TOTP with Headers and SHA512 hashed Token in NODE. In the header, we have to pass my private GITHUB GIST URL and my EMAIL_ID, that’s why I couldn’t share it here. Can you plz help! Here is my node code:

const axios = require('axios');
const base64 = require('base-64');
const utf8 = require('utf8');

const { totp } = require('otplib');


const reqJSON = 
{
    github_url: GITHUB_URL,
    contact_email: MY_EMAIL
}
const stringData = JSON.stringify(reqJSON);

const URL = 'https://api.challenge.hennge.com/challenges/003';
const sharedSecret = reqJSON.contact_email + "HENNGECHALLENGE003";

totp.options = { digits: 10, algorithm: "sha512",  epoch: 0 }

const myTotp = totp.generate(sharedSecret);
const isValid = totp.check(myTotp, sharedSecret);

console.log("Token Info:", {myTotp, isValid});

const authStringUTF = reqJSON.contact_email + ":" + myTotp;
const bytes = utf8.encode(authStringUTF);
const encoded = base64.encode(bytes);
const createReq = async () =>
{

    try 
    {

        // set the headers
        const config = {
            headers: {
                'Content-Type': 'application/json',
                "Authorization": "Basic " + encoded
            }
        };

        console.log("Making req", {URL, reqJSON, config});

        const res = await axios.post(URL, stringData, config);
        console.log(res.data);
    }
    catch (err)
    {
        console.error(err.response.data);
    }
};
createReq();

Basically, what I have to do is to submit my code which is in my private gist github profile. But when I run node myfile.js command to run, it gave me the error:

Token Info: { myTotp: '1980479983', isValid: true }
Making req {
  URL: 'https://api.challenge.hennge.com/challenges/003',
  reqJSON: {
    github_url: 'https://gist.github.com/sthakur369/233ab97e2d4c4a67630bf6c61f629fe1',
    contact_email: 'sthakur369@gmail.com'
  },
  config: {
    headers: {
      'Content-Type': 'application/json',
      Authorization: 'Basic c3RoYWt1cjM2OUBnbWFpbC5jb206MTk4MDQ3OTk4Mw=='
    }
  }
}
{ message: 'Access denied: Invalid token, wrong code' }

Here is my Stakoverflow link of this question.

postgresql – Syntax error near & in psql

I am getting below errors in sql log of Native Postgres database :

psql.bin:G_co-ac_G_grant_ivspc.sql:1: ERROR:  42601: syntax error at or near "&"
      2 LINE 1: grant select on URM_AC_ACCESS_&25 to finfgen, finfutl;
                                              ^  
LOCATION:  scanner_yyerror, scan.l:1128
     17 psql.bin:G_co-ac_G_grant_ivspc.sql:7: ERROR:  42601: syntax error at or near ":"
     18 LINE 1: grant select on URM_AUTHCODE_:sp125 to finfgen, finfutl;
                                             ^ 

What is the cause of this and how it can be solved ?

magento2.3 – Error in debug.log

I found below errors in debug.log file.

[2020-07-09 00:59:52] main.INFO: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'sale.reorder.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'wishlist_sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'yotpo_bottomline' element cannot be added as child to 'product.info.main', because the latter doesn't exist [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'msp-recaptcha-newsletter-popup' element cannot be added as child to 'footer2', because the latter doesn't exist [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the '7d064a79356a393a42e8c51c47c9f49f' element cannot be added as child to 'left.menu', because the latter doesn't exist [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'yotpo_bottomline' tries to reorder itself towards 'product.info.addto', but their parents are different: 'product.info.main' and '' respectively. [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'footer.custom.block' tries to reorder itself towards 'copyright', but their parents are different: 'footer.content.bottom' and 'footer' respectively. [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'authorization-link-login' tries to reorder itself towards 'register-link', but their parents are different: 'header.links' and 'top.links' respectively. [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'msp-recaptcha-newsletter-popup' tries to reorder itself towards '', but their parents are different: 'footer2' and '' respectively. [] []
[2020-07-09 00:59:52] main.INFO: Broken reference: the 'store_language' tries to reorder itself towards 'store_switcher', but their parents are different: 'header.panel.right' and 'header.panel.store' respectively. [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'sale.reorder.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'wishlist_sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'yotpo_bottomline' element cannot be added as child to 'product.info.main', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'msp-recaptcha-newsletter-popup' element cannot be added as child to 'footer2', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the '7d064a79356a393a42e8c51c47c9f49f' element cannot be added as child to 'left.menu', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'paypal.partner.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'bml.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'page.top.slideshow' element cannot be added as child to 'page.top.custom', because the latter doesn't exist [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'yotpo_bottomline' tries to reorder itself towards 'product.info.addto', but their parents are different: 'product.info.main' and '' respectively. [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'footer.custom.block' tries to reorder itself towards 'copyright', but their parents are different: 'footer.content.bottom' and 'footer' respectively. [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'authorization-link-login' tries to reorder itself towards 'register-link', but their parents are different: 'header.links' and 'top.links' respectively. [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'msp-recaptcha-newsletter-popup' tries to reorder itself towards '', but their parents are different: 'footer2' and '' respectively. [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'page.top.slideshow' tries to reorder itself towards '', but their parents are different: 'page.top.custom' and '' respectively. [] []
[2020-07-09 00:59:58] main.INFO: Broken reference: the 'store_language' tries to reorder itself towards 'store_switcher', but their parents are different: 'header.panel.right' and 'header.panel.store' respectively. [] []

What is the solution of these errors ?

Submitting to SP List, Input string was not in correct format error JavaScript

I am getting the error, “Input list was not in correct format error”

My sharepoint list has single text fields so i cannot see the problem

function savingsdatick(varid) {
//Get Current Tabs before submission
var allTicksForSave = {};
$(“.thischeck”).each(function () {
allTicksForSave($(this).attr(“id”)) = $(this).is(“:Checked”)
});
console.log(“So…”)
console.log(allTicksForSave)

var Tickbox1 = “Tickbox1”;
var Tickbox2 = “Tickbox2”;
var Tickbox3 = “Tickbox3”;
var Tickbox4 = “Tickbox4”;
var Tickbox5 = “Tickbox5”;
var Tickbox6 = “Tickbox6”;
var Tickbox7 = “Tickbox7”;
var Tickbox8 = “Tickbox8”;
var Tickbox9 = “Tickbox9”;
var Tickbox10 = “Tickbox10”
var Tickbox11 = “Tickbox11”;
var Tickbox12 = “Tickbox12”;
var Tickbox13 = “Tickbox13”;
var Tickbox14 = “Tickbox14”;
var Tickbox15 = “Tickbox15”;
var Tickbox16 = “Tickbox16”;
var Tickbox17 = “Tickbox17”;
var Tickbox18 = “Tickbox18”;
var Tickbox19 = “Tickbox19”;
var Tickbox20 = “Tickbox20”;
var Tickbox21 = “Tickbox21”;
var Tickbox22 = “Tickbox22”;
var Tickbox23 = “Tickbox23”;
var Tickbox24 = “Tickbox24”;
var Tickbox25 = “Tickbox25”;
var Tickbox26 = “Tickbox26”;
var Tickbox27 = “Tickbox27”;
var Tickbox28 = “Tickbox28”;
var Tickbox29 = “Tickbox29”;
var Tickbox30 = “Tickbox30”;

  var varid = localStorage.getItem("projectnewTitle");
  var currentStorm = document.getElementById("dale3").innerHTML;
  var siteUrl = _spPageContextInfo.webServerRelativeUrl;
  var clientContext =  SP.ClientContext.get_current();
  var oList = clientContext.get_web().get_lists().getByTitle('SecurityDesignAssuranceLeft');
  this.oListItem = oList.getItemById(currentStorm)
    if(allTicksForSave.SDALEFTBOX0) oListItem.set_item('Tickbox1', 'True');
    if(allTicksForSave.SDALEFTBOX1) oListItem.set_item('Tickbox2', 'True');
    // if(allTicksForSave.SDALEFTBOX2) oListItem.set_item(Tickbox3, "True")
    // if(allTicksForSave.SDALEFTBOX3) oListItem.set_item(Tickbox4, "True")
    // if(allTicksForSave.SDALEFTBOX4) oListItem.set_item(Tickbox5, "True")
    // if(allTicksForSave.SDALEFTBOX5) oListItem.set_item(Tickbox6, "True")
    // if(allTicksForSave.SDALEFTBOX6) oListItem.set_item(Tickbox7, "True")
    // if(allTicksForSave.SDALEFTBOX7) oListItem.set_item(Tickbox8, "True")
    // if(allTicksForSave.SDALEFTBOX8) oListItem.set_item(Tickbox9, "True")
    // if(allTicksForSave.SDALEFTBOX9) oListItem.set_item(Tickbox10, "True")
    // if(allTicksForSave.SDALEFTBOX10) oListItem.set_item(Tickbox11, "True")
    oListItem.update();
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded4), Function.createDelegate(this, this.onQueryFailed4));
function onQuerySucceeded4() {
alert("Hi")

}

function onQueryFailed4(sender, args) {
alert(“Failed” + args.get_message())
}
}