Find Available Covid Vaccination Slots: https://cowintrack.com/


Domyhomework123.com - programming homework help. Get your programming homework done with expert homework helper. Trust Writemypaper123.com with your paper and you will never regret it.

Welcome to MyQuestionPoint


Ask Any Question Relative to your Sujbect

Visit: Ask Question


How to Host a Jitsi Meet Server using ssh steps by steps

How to Host a Jitsi Meet Server using ssh steps by steps

In this tutorial to tell you how to install Jitsi Meet (and its required components) on a server.

Example parameters: In this example, our fully-qualified domain name (FQDN) is "jitsi.sharecodepoint.com". All passwords will be set to "sha202023".

Step 1: Log into your server as root (or use sudo) and make sure your server is entirely up-to-date:

apt update
apt full-upgrade

Step 2: Ensure that your hostname and FQDN are set (if not, set them by placing the hostname in /etc/hostname and the FQDN in /etc/hosts):

cat /etc/hostname
dnsdomainname -f
cat /etc/hosts

Step 3: Install the prerequisite packages:

apt install gnupg apt-transport-https

Step 4: Add the Jitsi repository to your package manager and refresh your package lists:

echo 'deb https://download.jitsi.org stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
apt update

Step 5: Install the Jitsi Meet package:

apt install jitsi-meet

Enter your FQDN when prompted, and select the option to generate a self-signed certificate during installation. 

Step 6: Generate a publicly-usable SSL/TLS certificate using Let's Encrypt:

/usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

The server should now be publicly usable. 

Step 7: (Optional): If your server is behind a router performing NAT, forward ports TCP/443 and UDP/10000 to the server's internal IP address. Open the videobridge configuration file:

nano /etc/jitsi/videobridge/sip-communicator.properties

Add these two lines of configuration with the appropriate IP addresses:

org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=<Local.IP.Address>
org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=<Public.IP.Address>

Step 8: To require authentication to create or join a room, open the Prosody configuration file:

nano /etc/prosody/conf.avail/jitsi.example.com.cfg.lua

Change the "authentication" option from "anonymous" to "internal_plain":

authentication = "internal_plain"

Step 9: Open the Jifoco configuration file:

nano /etc/jitsi/jicofo/sip-communicator.properties

Add this option to the bottom of the file:

org.jitsi.jicofo.auth.URL=XMPP:jitsi.example.com

Step 10: To create a user in Prosody, run this command:

prosodyctl register yourusernamehere jitsi.example.com P@ssw0rd

Step 11: Restart the Prosody and Jitsi services to apply changes:

systemctl restart prosody
systemctl restart jicofo
systemctl restart jitsi-videobridge2

Step 12: To not require authentication for joining a room while still requiring authentication for creating new rooms, open the Prosody configuration file:

nano /etc/prosody/conf.avail/jitsi.example.com.cfg.lua

Add a new VirtualHost section to the bottom of the file:

VirtualHost "guest.jitsi.example.com"
authentication = "anonymous"
c2s_require_encryption = false

Step 13: Open the Jitsi Meet configuration file: Code

nano /etc/jitsi/meet/jitsi.example.com-config.js

Uncomment and set the "anonymousdomain" option:

anonymousdomain: 'guest.jitsi.example.com',

Step 14: Restart the Prosody and Jitsi services to apply changes (again):

systemctl restart prosody
systemctl restart jicofo
systemctl restart jitsi-videobridge2

How to enable Intel VT-X or Intel virtualization technology from BIOS.

How to enable Intel VT-X or Intel virtualization technology from BIOS.

If you have encountered the error such as “"This hosting support Intel vt-x, but Intel VT-x is disabled" or – “This virtual machine is configured for 64-bit guest operating systems. 

However, 64-bit operation is not possible” while installing Virtual Machine in VMWARE. 

 In such a case, you have to enable intel virtualization technology from BIOS in order to install a virtual machine.

In my case, I am using HP Laptop and the key to enter the boot menu is ESC. It can be different for different manufactures. You can check for your computer. Sometimes it’s written at the bottom while system boots.  

Steps :
1. Reboot your computer and press the relevant key in order to enter into BIOS. 
2. Scroll different options using the keys written at the bottom.
3. Locate for VIRTUALISATION TECHNOLOGY. For my laptop, it was under system configuration.
4. Select VIRTUALISATION TECHNOLOGY,  Hit enter and choose enabled from the drop-down menu. 7. Save the settings before you exit. Now, try to install the virtual machine and you will be able to install any windows on VM Ware.

How Do I Make a JSON Pretty Printer App Using PHP for Development/Debugging Use as a Coder?

How Do I Make a JSON Pretty Printer App Using PHP for Development/Debugging Use as a Coder?
You'll know you don't wanna publish your app's JSON response, which may include important information, to some third-party website that could easily or accidentally log this info. I think, decrypted passwords might be in your response, API keys, the name of your app. Lots of stuff can't nobody but you should see. So here, make your own JSON PRETTY PRINTER using PHP and RUN IT LOCALLY on your computer.

<?php
$str = <<<'EOT'
{"name_first":"John"}
EOT;
echo json_encode(json_decode($str), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
?>

Save the file. Name it something such as json-pretty-printer.php and then run it on the command line by typing 'php' then the path to your script. Hit the enter button.

How to add code syntax highlighting to blogger

How to add code syntax highlighting to blogger
You can add the highlights library

Add this file to your blogger code.
<link rel="stylesheet"
      href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/androidstudio.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
Note that this highlighting library requires your post's HTML to wrap the relevant code snippets in a code tag, with the code tag having the class of the relevant language.

For example:
<pre><code class='html'> [My HTML goes here] </code></pre>

Get Two digit after decimal point in Android Studio or Java

Get Two digit after decimal point in Android Studio or Java
How to get two digits after the decimal point in java and android studio
private static String getDecimalFormat(double value) {
    String getValue = String.valueOf(value).split("[.]")[1];
      if (getValue.length() == 1) {
          return String.valueOf(value).split("[.]")[0] +
                "."+ getValue.substring(0, 1) + 
                String.format("%0"+1+"d", 0);
       } else {
          return String.valueOf(value).split("[.]")[0]
            +"." + getValue.substring(0, 2);
      }
 }
Output:

System.out.println("value getDecimalFormat:- " + getDecimalFormat(1.0));
value getDecimalFormat:- 1.00

System.out.println("value getDecimalFormat:- " + getDecimalFormat(0.22437891));
value getDecimalFormat:- 0.22

System.out.println("value getDecimalFormat:- " + getDecimalFormat(-54.0));
value getDecimalFormat:- -54.00

System.out.println("value getDecimalFormat:- " + getDecimalFormat(38495.963741));

value getDecimalFormat:- 38495.96

Copy all Files and Folder from Folder in Android studio.

Copy all Files and Folder from Folder in Android studio.
How to copy files from the folder in android studio. please try this:

Example :

AppManifest in the project. Please allow this permission to read and write external storage.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
public static void copyFileOrDirectory(String srcDir, String dstDir) {
 
        try {
            File src = new File(srcDir);
            File dst = new File(dstDir, src.getName());
 
            if (src.isDirectory()) {
 
                String files[] = src.list();
                int filesLength = files.length;
                for (int i = 0; i < filesLength; i++) {
                    String src1 = (new File(src, files[i]).getPath());
                    String dst1 = dst.getPath();
                    copyFileOrDirectory(src1, dst1);
 
                }
            } else {
                copyFile(src, dst);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
 
    public static void copyFile(File sourceFile, File destFile) throws IOException {
        if (!destFile.getParentFile().exists())
            destFile.getParentFile().mkdirs();
 
        if (!destFile.exists()) {
            destFile.createNewFile();
        }
 
        FileChannel source = null;
        FileChannel destination = null;
 
        try {
            source = new FileInputStream(sourceFile).getChannel();
            destination = new FileOutputStream(destFile).getChannel();
            destination.transferFrom(source, 0, source.size());
        } finally {
            if (source != null) {
                source.close();
            }
            if (destination != null) {
                destination.close();
            }
        }
    }