Posts

Larvel blade script to print number tables

      <table style='table-layout: fixed; width:100%;' border=1>         <tr>             @for ($i = 1; $i <= 20; $i++)                 <td>                     @for ($j = 1; $j <= 10; $j++)                         {{ $i }} {{ '*' }} {{ $j }}                         {{ '=' }}{{ $i * $j }};                         <br>                     @endfor                 </td>                 @if ($i % 10 == 0)         </tr>         @endif       ...

PHP API - Code

 #db.php <?php $db = mysqli_connect ( 'localhost' , 'root' , '' , 'test' ); # create.php <?php include ( 'db.php' ); error_reporting ( 0 ); // CREATE TABLE IF NOT EXISTS `prod` ( //`id` int(10) unsigned NOT NULL AUTO_INCREMENT, //`product_name` varchar(100) NOT NULL, //`product_price` int(11) NOT NULL, //`stock` int(11) NOT NULL, //`discount` int(11) NOT NULL, //PRIMARY KEY (`id`) //) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci COMMENT='product table'; //header('Access-Control-Allow-Origin: *'); //header('Content-Type:application/json *'); //// header("Access-Control-Allow-Credentials: true"); //header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS'); //header('Access-Control-Max-Age: 1000'); //header('Access-Control-Allow-Headers: Content-Type, Content-Range, Content-Disposition, Content-Description'); // Allow requests from any o...

Hyper-V Network NAT Configuration

Image
  How to Create a NAT Switch on Hyper-V Published on: July 12, 2022   by  Robert Allen In this guide, you will learn how to create a Hyper-V switch that uses NAT for network access. NAT will provide virtual machines access to network resources (internet access) using the host computers network adapter. For this guide, I’ll use the below network settings. When the configuration is complete the VMs on the  192.168.100.0/24  network will use the Hyper-V Host IP  192.168.1.4  for accessing the internet. Step 1: Create an Internal Virtual Switch Open PowerShell and run the below command. Change “SWITCHNAME” to whatever you want to name your switch, I’ve called mine “nat-switch”. New-VMSwitch -Name SWITCHNAME -SwitchType Internal Step 2: Get the Interface Index Number (ifIndex) Next, you need to find the index number of the virtual switch created in step 1. Run the below command. Get-NetAdapter My index number is 28, you will probably have a different number...

Install vagrant vmware workstation provider

Solution for Vagrant VMware Provider install  D:\ubuntu>Vagrant up --provider=vmware_workstation The provider 'vmware_workstation' could not be found, but was requested to back the machine 'default'. Please use a provider that exists. Vagrant knows about the following providers: docker, hyperv, virtualbox D:\ubuntu>vagrant plugin install vagrant-vmware-desktop Installing the 'vagrant-vmware-desktop' plugin. This can take a few minutes... ERROR:  SSL verification error at depth 3: unable to get local issuer certificate (20) ERROR:  You must add /C=US/O=Starfield Technologies, Inc./OU=Starfield Class 2 Certification Authority to your local trusted store Vagrant failed to load a configured plugin source. This can be caused by a variety of issues including: transient connectivity issues, proxy filtering rejecting access to a configured plugin source, or a configured plugin source not responding correctly. Please review the error message below to help resolve t...

SetupPTClient.bat

PeopleSoft Client Installation: Run as administrator net use T: \\<ip address>\tools_client Run SetupPTClient.bat