mysql – Unable to store query result inside a variable

I am trying to query user by email and save the result inside a variable. I tried using await and async, callback and promise but none of them actually work.

const checkEmailUsed = (email) => {
  let sql = "SELECT * FROM users_signup WHERE user_email = ? LIMIT 1";
  return new Promise((resolve, reject) => {
    conn.query(sql, email, (err, res) => {
      if (err) {

var user = ();
  .then((res) => user.push(res))
  .catch((err) => console.log(err));

console.log(user); // Still ()

algorithms – How could a bank software intend to transfer $82.56 but result in a error transfer of $1,205,619.56

I was reading the article about charles schwab $1.2 million dollar bank error where a client request to deposit $82.56 resulted in an software error deposit of $1,205,619.56.

I’ve written 4 basic finance applications (1 in Ruby and 3 in JavaScript) with a small number of users. From those experiences I’ve learned some interesting things about handling money (ref1, ref2 ref3 ref4). One interesting point about floating point numbers from Jorg in the last ref is:

that’s just how binary floating point numbers work. They are inexact,
they are finite and they are binary. All three mean that you get
rounding errors, which generally look totally random – Jorg W Mittag

With the above in mind:

  1. Does this look like a type of floating point error?
  2. At this level of exposure, does the industry still not have a solid way to handle financial transactions and audit and test code that handles money?

Webform Computed Data Display Grade and Text based on result

I am building a quiz using webforms and the computed data twig and have a question if something is possible and if there is documentation on how to build this.

The quiz is 20 questions and each answer has a value of 1-5, I have all of the computed data working and it is able to show the final score properly, but was wonder if I could assign a grade and give short text feedback based on the score.

For example:
A user scores less than 70 they would receive a grade of “Below Average”, 70-80 Average and 81-100 “Above Average” and then some text giving them feedback on their score depending on this range they scored in. Is this possible to do in webforms?

Thank you so much for any help!

calculus and analysis – How does Mathematica obtain this result?

 Sqrt(2 (Pi)) InverseFourierTransform(1/(x^2 - a^2), x, p), 
 Element(a, Reals))

Gives the output

-(((Pi) Sign(p) Sin(a p))/a)


$int_{-infty }^{infty } frac{e^{-i k x}}{x^2-a^2} , dx$ is not a defined integration. Mathematica also returns undefined as answer if you compute it.

So, I am trying to understand how does Mathematica calculates that Fourier transform of the non-integrable function.

“Crowbar” brute-force tool giving “success” result to every username/password combination for RDP

I am trying to use “Crowbar” to brute-force RDP login information. The command I am running (on Kali Linux) is:

sudo crowbar -b rdp -U usernames.txt -C rdp_passlist.txt -s <Target IP>

and the result is Crowbar saying every username/password combination is correct:

2021-04-14 15:36:12 START
2021-04-14 15:36:12 Crowbar v0.4.1
2021-04-14 15:36:12 Trying <Target IP>:3389
2021-04-14 15:36:14 RDP-SUCCESS : <Target IP>:3389 - 3d:123456
2021-04-14 15:36:14 RDP-SUCCESS : <Target IP>:3389 - 3d:12345
2021-04-14 15:36:14 RDP-SUCCESS : <Target IP>:3389 - 3d:iloveyou
2021-04-14 15:36:14 RDP-SUCCESS : <Target IP>:3389 - 3d:123456789

And so on (the actual IP is replaced by <Target IP>). None of the “successful” username/password pairs actually work. What am I doing wrong?

ERROR IN in my SPFX WebPart : Module parse failed: Unexpected token You may need an additional loader to handle the result of these loaders

I have created an SPFx project with reactJS. I am using .jsx extension – functional components.

Now, the spfx webpart is already working fine, but I saw a material kit that I want to reuse its components.

When I referenced the components, I am presented with this error

***Failed to load component (WebPart). Original error: ***Failed to load entry point from component WebPart). Original error: Module parse failed: Unexpected token (30:4)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.

enter image description here

It seems that I cannot use the “footer” tag?

enter image description here

SharePoint 2016 search is crawled but not showing the search result

I have restored all four search application-related databases and I could see the crawled content source history, however, whenever I search something in the search site, the search does not give any results and it doesn’t give any error as well. Any suggestion on what are the troubleshootings I should check?

Note: This is an old search application that has been running for over two years, all of a sudden after installing the security update, the problem has been started. Then the search schema page was throwing an error, once I have run the SharePoint configuration wizard, the schema page error went.

arithmetic – Algorithm to subtract numbers when result is negative

I am having a hard time to remember basic Math, in especial the subtract algorithm when the result will be negative. For example: 499 - 500 - 599 is -601, but how do I borrow numbers and get to that result in the paper?

- 600

What I am doing is flipping the first two numbers:

- 499

Which is 1. I negate the result, -1, and after I just sum with the final number = -601.

seo – Google Image Result Users Are Not Coming to as Website Traffic

I have a website and it has more than 400 greeting images.

Images are showed in google image results. But problem is users are download the images from the direct image results. They are not entered into website. i.e ., They are downloads the image from direct google image results.

How to stop it from image results. Any suggestions??