Categories
Ask Chemistry

How to use newzmat to convert an XYZ file to Z-matrix?

I would like to generate a Z-matrix from the following XYZ file (C2H6dimer.xyz) using newzmat: 16 C2H6dimer C 0.539202 -0.539202 1.933833 C -0.539202 0.539202 1.933833 H 1.536064 -0.098299 1.932264 H 0.459532 -1.174264 2.816008 H 0.456405 -1.179449 1.055941 H -1.536064 0.098299 1.932264 H -0.459532 1.174264 2.816008 H -0.456405 1.179449 1.055941 C 0.539202 0.539202 -1.933833 C -0.539202 […]

Categories
Cryptocurrency Ethereum Mastering Development

How can I tell what compiler type was used when a contract was deployed? [closed]

This code was deployed by another dev who has since left our project, so I have to figure out how to get this verified and published on Etherscan. To start, how can I tell what Compiler Type was used of the options listed (Solidity Single File, Solidity Multi-Part Files, Solidity Standard JSON Input, or Vyper)? […]

Categories
Mastering Development

MongoDB Compass connectivity issue with Ec2 Instance to access amazon documentDB cluster

I have been trying to access my database that i created on Amazon DocumentDB via MongoDB Compass using Ec2 Instance but following is the error I keep on getting. There are no issues with the security groups, since I have made sure to give appropriate in bound request rights. I am able to connect to […]

Categories
Mastering Development

System limit for number of file watchers reached when trying to start an expo project

This question seems to be everywhere on SO, but the answers don’t seem to address or answer my situation. I am just getting started with nodejs and react native, so I installed nodejs and ran these commands to get started: $ npm install expo-cli $ npm update $ npx expo init helloWorld I selected the […]

Categories
Mastering Development System & Network

Azure AD Conditional Access Policies

We’re deploying Office365 to our site and there are some security concerns that would like to be addressed. For example, we would like to lock down onedrive so that most users cannot use it, whereas a few users might be given the permission to use it. I thought that this would be handled with conditional […]

Categories
CMS Mastering Development Wordpress

How can users avoid logging into WordPress.com when they log in to my website

So I recently got the business plan for my WordPress.com account, and I downloaded a plug in (Theme My Login) that makes a login page for users (my website involves front end publishing). However, when users tried to make an account on my website, they also get redirected to WordPress.com and forced to make an […]

Categories
CMS Mastering Development Wordpress

What is the correct way to run phpunit in @wordpress/env

It is my first time using @wordpress/env (the zero config docker dev environment). I am trying to do the following and wanted to know the best practise: What is the right way to setup and run phpunit tests in the test container? How can I also setup the test container so that my phpunit tests […]

Categories
Mastering Development Software

Being great in one language when you need to know many?

My job requires me to know how to work with Ruby, Python, Bash, Puppet, Golang, MySQL and occasionally Scala and PHP. Yes I really do have projects including most of these and there are weeks where I have 3-4 tickets from projects which cause daily work with 4 different languages. Yes, I can do it […]

Categories
Mastering Development Software

Design REST API for Mobile Apps with Unregister Users

I’d like to know some best practices on how to build rest API for a backend which shall communicate with a mobile app by anonymous users. This is the scenario with details: I’m building a demo library app that shows details about books, those details are returned in a JSON format when the app fetches […]

Categories
CMS Mastering Development Wordpress

Front-end upload image, no image preview in media

I have form to upload image via Ajax, it’s works efficiently. But image not have preview thumbnail like : if(isset($_FILES[‘file’])) { require_once( ABSPATH . ‘wp-admin/includes/image.php’ ); require_once( ABSPATH . ‘wp-admin/includes/file.php’ ); require_once( ABSPATH . ‘wp-admin/includes/media.php’ ); require_once( ABSPATH . ‘wp-admin/includes/admin.php’ ); $file_return = wp_handle_upload( $_FILES[‘file’], array(‘test_form’ => false ) ); if( isset( $file_return[‘error’] ) || […]