security – Would there be any actual secure, server side way to lock away react routes?

So I don’t know what I am asking is even possible but is there any way, like you can do with static HTML and CSS websites to only let a person see the “/test” route for example if they are verified?

I know this is possible with react-router-dom but as a perfectionist, I want to do it server side with preferably express and my own middleware (using JWT and MongoDB) to check user identities ETC.

Thanks a lot!

To develop a side menĂ¹ bar like Gmail Android App

Which is the component used to develop the side bar on Gmail Android App ? It seems a Navigation rail but animated like a Navigation drawer.
I want to recreate the same effect but I don’t know how.

Add more Google Apps to gmail side panel

What you are calling “the waffle”, Google called “the app launcher” in 2015 (ref. An additional row of apps and customization coming to the App Launcher, nowadays on the Google Accounts help center they included how to customize it in the article Use the Google bar

From the above link:

Customize your menu

You can customize the launcher to show your favorite apps at the top. To do this, drag and drop them within the menu.

Note: To customize your menu, make sure you’re signed in to your Google Account.

Add more apps

If you’d like to add one you don’t see in the list:

  1. Sign in to your Google Account.
  2. Select Google apps Apps.
  3. At the bottom of the menu, select More.
  4. Drag the Google apps you want to the top of the launcher.

sharepoint online – Need To Convert DOCX File To Latest To Manipulate XML on Client Side

My JavaScript-based web app uses the html-to-docx library file which produces a Word 2007 docx blob (zip archive), which is a compatibility mode version in today’s Word browser and desktop implementations.

I want to use the Text Effects feature in Word, and I already know that this requires that the document.xml becomes a far larger markup file after using Word to save the Word 2007 docx as the latest docx version. Once I get that latest docx version with larger xml file, I can use any zip file utility (JSZip, Pizzip) to open it, deserialize the XML and search the node I want, make edits, and so on.

Web searches for library code to run in client to achieve the 2007 docx=>latest docx do not show what I want (lots of stuff for Node that might work). I’m looking for strategies that I may be missing.

WordPress Theme not working properly on user side

Please give me some help…

I’m using the Newspaper WordPress theme. After I customize the theme It works and looks perfect for the admin’s browsers. But when I log in to another device. Its weird some content and theme do not appear to the user. What is the reason for that? What should I do?

Probability of one side of card being red given other side is red?

A box contains 6 cards. 3 are black on both sides, 1 is black on one side and red on the other, and the last 2 are red on both sides.
You pick a card out of the box uniformly at random and look at a side also randomly. Given that the side you see is red, what is the probability that the other side is red?

I’m getting the wrong answer and can’t figure out what’s wrong with my reasoning.

I’m thinking once you see a red side, it can be one of three cards; the 2 fully red ones or the one with a red side and a black side.
So at this point, 2 out of the 3 cards you could be holding will be red on the other side.
Hence your chance is $frac{2}{3}$

The correct answer (presumably) is

$frac{4}{5}$ because you have to consider each side as a separate object

and I don’t understand the logic behind that

url redirection – Open Redirects – Can they be done without modifying server side code?

Open redirects showed up in the news this week thanks to Microsoft. While this is very old issue, this is a new topic for me. The concern seems to be that a user hovering over a link may not read beyond the domain name. In the following example, the user reads as far as, and assumes the domain is safe, without reading the parameters.


All of the examples I have seen require some kind of redirection code outside of the browser. I.e., a user clicks on link to The request is sent to and uses the redirect parameter to and forwards the user to

This makes the problem sound primarily about securing your servers/proxies from hackers. Am I missing something? Can this be done entirely client side say in an email aside from using an OnClick JavaScript event?

key management – How to manage Encryption Key for Server Side Encryption in AWS S3

I need to encrypt personal data like email, phone number, etc. I am using AWS KMS for managing the encryption keys. This is the system that is already implemented is as follows:

  1. All the existing data is encrypted using a worker which first generates a data key by calling the aws-sdk. This call returns the plaintext(decrypted data key) and the encrypted data key. This plaintext is then used to encrypt the data and then is removed from the memory.
  2. Now whenever a new data key is generated, the encrypted data key is stored in a .json file and uploaded to AWS S3 bucket. This upload has Server Side Encryption enabled using a Customer Key. I store the path to this json file to the db table that keeps record of the active data keys.
  3. Whenever I need to decrypt data, I get the json file from the s3 bucket which contains the encrypted data key. Then I call the decrypt function of aws sdk and retrieve the original data key which is then used to decrypt the encrypted data.

Now my question is:

How do I manage the customer key used in step 2 for the server side encryption of the s3 file upload. Right now I generate a random key for each data key and store this in the data keys table.
Is this a safe way to handle this key?
What is the general practice regarding using SSE-C keys? Should I keep a constant key for each data key instead of generating a new one?

any help is highly appreciated

Calculating a triangle’s angle & side length

Alright, hopefully an interesting one. I’m trying to make a program for the game Foxhole, where artillery uses azimuths and ranges between spotter, gun, and target in order to direct the artillery’s angle and range to the target.

This math involved in this is far above my head, and I’ve tried thinking it over with a pen and paper – but I’m making no progress, it simply exceeds my knowledge. Any help or formulas would be great!


  • I’m not sure my diagrams are accurate, but I did my best to try to
    visualize the situation.

Process 1, simple:

  1. The spotter measures his distance from target & his angle to the target
  2. The spotter measures his distance from gun & his angle to the gun
  3. An unknown formula is used to determine the gun’s angle and distance to target
  4. The gun is aligned to the target, the gun is ranged, and the gun may fire onto the target

Here is an attempted visual:

Process 1

There is a second process we would like to do, which seems far more complicated than the process above.

Process 2, complex:

  1. The spotter measures his distance from the land mark & his angle to a land mark
  2. The spotter measures his distance from the gun & his angle to the gun
  3. The spotter advances. The spotter measures his new distance from land mark & his new angle to the land mark
  4. The spotter measures his distance from the target & his angle to the target
  5. (Math is done)
  6. The gun is aligned to the target, the gun is ranged, and the gun may fire onto the target

Here is an attempted visual:

Process 2

Thanks for looking

calculus and analysis – Making equal left and right hand side of the some equality

I think that there is a similar posts in here. But I don’t find right keyword.

My question:
After some calculations, I get equality. For a simple example:


Can we extract $a=1,b=2,c=3$.

I want to make some calculations such as $a+b+c=?, D[a*c,x]=? $ e.t.c

What are the best options?

`list = {a, b, c} == {1, 2, 3};
Thread[{a, b, c} == {1, 2, 3}, Equal];
a + b + c