Phaser Game not rendering on normal page

I made a game with the Phaser game framework on a course, and now I want to add features and build upon that game. The only problem is that I built the game with the course on webpack, which served the game on localhost:8080 I want to now stop using localhost and put the game on a normal website, but for that, I need to get it off localhost. I think the problem is in the index.html file where I render the game. Here is the index.html code :

 <head>
 <style>
  body {
    padding: 200px;
  }
</style>
<script type="text/javascript
src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.52.0/phaser.min.js"></script>
 
</head>
...
<script type="text/javascript" src="src/index.js"></script>

`
Please tell me how I can put my game on a normal website. Thank You!

Why the shell return the balance normal but php not?

I am using the easybitcoin.php library and in my application I use the getreceivedbyaddress method in php it returns 0, but in my shell when I use bitcoin-cli it returns 0.000000000.

My question is, how can I return in php the same as the shell?

Tried this, $ data2 = shell_exec (‘bitcoin-cli getreceivedbyaddress address’); and it returns 0.00000000, but is there another way?

fraud – Is it normal for a company to request this information after stolen card details were used?

My friend’s credit card details were randomly used to make a two small purchases on a food delivery app, by someone other than my friend. They have already contacted the bank and cancelled the card.

My friend contacted the app company to let them know, and the app company replied requesting that my friend provides the following information to help investigate:

  • Last 4 digits of card number
  • Card-issuing company
  • Card expiry date
  • Country/region the card is registered to

Is this normal / safe practice?

virtualhost – New virtual host on apache returns the default vhost, other times returns the normal content

I’m having some really strange behaviour on one of my Debian servers. When requesting stuff.com ( example ) or stuff.com/image.jpg, let’s say 50% of the times I have the correct response, the other 50% of times I have an 404, in case of the image, if I’m requesting a normal HTML file I get the default page of apache.

It all started when I created a new virtual host this morning, configured the DocumentRoot as usual and everything else, and suddenly I start to get some 404 on the images in between refreshes, and sometimes I would get the default page of apache.

Virtual Host Config:

<VirtualHost *:80>
       ServerAdmin webmaster@localhost
       ServerName stuff.com
       DocumentRoot /var/www/html/stuff/stuff-test
       <Directory /var/www/html/stuff/stuff-test >

       Options -Indexes +FollowSymLinks
       AllowOverride All
       Require all granted

       </Directory>
       ErrorLog /var/log/apache2/stuff/stuff/error.log
       CustomLog /var/log/apache2/stuff/stuff/access.log combined

</VirtualHost>

Default config:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

This was a complex site made with Symfony, so I thought it could be related to that, so installed on another server and everything worked. Then we started to cut down even more our possibilites, and now we only have an index.html and an image.jpg on the folder and it still happens the same thing.

We tried everything except restarting Apache with service apache2 restart, we usually use reload.

Things to note, we have 97 virtual hosts configured on this server, we increased the level of all logs, apache ( to trace8 ), on the virtual host in question and on the default virtual host.

We also checked dmesg, /var/log/messages, /var/log/kern.log, /var/log/syslog.

And nothing interesting appears on any of those logs when the requests fail to hit the virtual host and go to the default virtual host.

Another interesting fact or not, is that this only happens to new virtual hosts, we tried to create a bunch of them all with the same result, but on the old ones ( created before today ), everything is working perfectly without a problem.

Nothing was changed on the server ( last change was 3 of December ), no update to any software, no restart, nothing.

We are going to restart apache tonight, don’t want to risk restarting apache during the day and suddenly all sites go down. And see what happens.

Anyone has any idea?

Things we checked, not by any special order:

  • Restarted php-fpm, but it happens while requesting an single file or an *.html file, so it’s not from there.
  • Checked ulimit to make sure that everything was ok and we were not reaching any limit.
    – Scoured every single log file that we could find, that could points anywhere and couldn’t find anything.

Versions of software:
Debian: 10.2

Apache: Apache/2.4.38 (Debian)

PHP: 7.2.34 ( not that it matters )

virus – Is this SMB attempt malicious or normal Windows behavior?

The red client (10.1.0.82) is attempting to connect to the green server (10.1.0.32) through SMB over NetBios port 139. The connection is initiated from the System process (PID 4) on the red client, and interestingly it is using an interval of exactly 30 seconds generating two repetitive SMB error events on the green server (1009) (551), (1009) (551), (1009) (551) … and so on. This usually happens after red clients boots, and it stops after 5 attempts.

Is it possible that a malicious driver has infected the System process (presumably ntoskrnl.exe) and is initiating these attempts to spread across the network in a wormy fashion, or is this some kind of normal Windows behavior?

Deeply appreciated any help who can shed light on this dubious behavior.

enter image description here

java – linked list and stack implementation clarification (singly and normal list)

I ran into a local programming challenge yesterday and I ask for:

is it possible to create a normal linked list (insert in tail section
and remove from front) with two stack or any other number of stack?

I dont know how this be possible because stack is LIFO. is there any idea? this is a wrong question?

opengl – TBN matrix for normal and parallax mapping

I’d like to refer to this question because I didn’t completely answer to my problem.

I’ve implemented normal and parallax mapping but because of some assumptions I have to use two different TBN matrices for each effect.

One of the most important assumptions is that I have deferred renderer with normals encoding and light calculations in view space.

This implies that I have to convert data from normal maps (which are in tangent space) to view space using below TBN matrix:

mat3 NormalMatrix = transpose(inverse(mat3(ModelViewMatrix)));
vec3 T = normalize(NormalMatrix * Tangent);
vec3 N = normalize(NormalMatrix * Normal);
vec3 B = normalize(NormalMatrix * Bitangent);

mat3 TBN = mat3(T, B, N);

On the other hand parallax mapping required view direction vector in tangent space. To compute that I use camera position and fragment position (in world space) multiplied by following TBN matrix to move this vectors from world space to tangent space:

T = normalize(mat3(ModelMatrix) * Tangent);
N = normalize(mat3(ModelMatrix) * Normal);
B = normalize(mat3(ModelMatrix) * Bitangent);

mat3 TBN = transpose(mat3(T, B, N));

I’m looking for a way to optimize that. Is it possible to make it better?

Probability concerning Normal Distributions independent of one another

A team comprised of 10 individuals are tasked to put balls inside a box. Suppose that each individual’s contribution has a mean of 12 balls and standard deviation of 1 ball. The team wins only if the total number of balls they put is less than 100 balls. Assuming that each of their contribution is independent, What is the probability that they win?

Attempt:
Using the formula of z= (x̄- μ) / σ. I find the probability that x is less than 10 which is 0.0275 for z=-2. I then multiply the value by 10 leading to an answer of 0.275. Is this a correct way of approaching the problem or should I be computing it as a whole?

probability – Normal Distribution, distribution of weight

Suppose the content of the bottles has to be determined by weighing. It is
known that empty wine bottles involved has a weight that follows a normal
distribution with mean 250 grams and standard deviation of 15 grams. For a
sample of 16 full bottles, an average weight of 998 grams was found. You may
assume that the amount of wine is independent of the bottle weight.

(i) Find the distribution of the weight of the i-th full wine bottle, where
i = 1, . . . , 16.

Im not quite sure what it means by find the distribution of weight, can someone explain this and explain how i would approach this question?

Segmented address / normal virtual address

In a cpu with segmented memory, can an address only be accessed with a segmented address, or can a normal virtual address also be used?