Generate AI Video

 Generate AI Video


1) 


-- input - Provide - Write topic name 


Need fast paced more engaging script that starts with a shocking hook that engaged the audience in the first 3 seconds of the video, script contains only true and real facts because we don't want to misguide our audience, Need only script part, so don't write anything extra, need script in gujarati 


-- output - ChatGPT will provide story script

--------

2)

-- input - below text


Mujhe iss script ke har possible scene ka 9:16 ratio me image prompt chahiye but dhyan rahe mujhe ye details:


"Ultra-realistic 3D cinematic render, hyper detailed skin texture, dramatic lighting, depth of field, mythological Indian art style, epic storytelling, high resolution, 8K, photorealistic, Unreal Engine, cinematic composition." Sabhi image me


Output - ChatGPT will provide some scenes scrip list 

-------------

3)

-- input - 

 - Select Scene 1 by 1 and open chatgpt 5.2

 - Select create image option from plus button

 - Provide scene detail

 

-- output - ChatGPT will create image, download it

------------

4) 

-- input

Mujhe es image ko animate bhi karna hai to kya tum story scene ke hisab se es scene ka most suitable video Prompt taiyar kr sakte ho, video must be 8k in quality, short and customized for grok ai, add different camera angle like - drone shot, zoom in, zoom out, specific character highlight, fast camera movement, etc.


output - ChatGPT will provide Video Prompt

---------

5) Open Grok Application 

-- input

- Select imagine

- Select create video option

- select image

- paste video prompt


-- output - Video will be ready, download it.

---------------------

6) Repeate step 3, 4 and 5 for all scenes


-----------

7) Google AI Studio - Voice Generator


Instruction - Read aloud in a very fast paced, mysterious and shocking tone:


Mai tumhe jo bhi sentences dunga mujhe uska 9:16 ratio me detailed image prompt chahiye but dhyan rahe mujhe image details me:


"Ultra-realistic 3D cinematic render, hyper detailed skin texture, dramatic lighting, depth of field, mythological Indian art style, epic storytelling, high resolution, 8K, photorealistic, Unreal Engine, cinematic composition."

--------


 

Azure Command to get list of resource

 

Azure Command to get a list of resources


Log in with a specific tenant 

az login --tenant [tenant id - GUID]

 

Set Subscription

az account set -s [subscription id - GUID]

az resource list --subscription  [subscription id - GUID]

 

Get Web app list [resourceGroup, name, type, etc.]

az webapp list --query '[].[name]' -o tsv

 

Get Function App List

az functionapp list --query '[].[name]' -o tsv

 

Get SQL Server Database List

az resource list -o table | select-string 'Microsoft.Sql/servers'

 

Get the storage account list

az storage account list --output table
az storage account list --query '[].[name]' -o tsv

 

Get the Service Bus queue/topic list

az servicebus queue list --namespace-name <ServiceBusName> --resource-group <ResourceGruopName> --output table

 

Azure KeyVault: Retrieve secrets and their values using PowerShell and save in Excel file

 

Azure KeyVault: Retrieve secrets and their values 

using PowerShell and saving in Excel file


$vault_name="keyvault-name"


$excel = New-Object -ComObject excel.application
$workbook = $excel.Workbooks.Add()



$uregwksht= $workbook.Worksheets.Item(1)
$uregwksht.Name = $vault_name
$row = 1
$Column = 1
$uregwksht.Cells.Item($row,$column)= "Secret-Name"
$uregwksht.Cells.Item($row,$column+1)= "Secret-Value"

# Get all secret names
$secret_names=$(az keyvault secret list --vault-name $vault_name --query [].name -o tsv)


# Loop through each secret name and get its value
foreach ($secret in $secret_names)
  $secret_value=$(az keyvault secret show --vault-name $vault_name --name $secret --query "value")
   
  Write-Output $row
  
  $row = $row + 1 
  $uregwksht.Cells.Item($row,1)= $secret
  $uregwksht.Cells.Item($row,2)= $secret_value
  
  #if ($row -eq 2) { break }
    
  # Write-Output $secret
  # Write-Output $secret_value 
  # Write-Output "-------------------------"
}



$outputpath = "D:\"+ $vault_name + ".xlsx"

Write-Output $("File saved on " + $outputpath )

$excel.displayalerts = $false
$workbook.Saveas($outputpath)
$excel.displayalerts = $true


$excel.Quit()  


Azure KeyVault: Retrieve secrets and their values

 Azure KeyVault: Retrieve secrets and their values 

using PowerShell



$vault_name  = "keyvault-name"


# Get all secret names

$secret_names=$(az keyvault secret list --vault-name $vault_name --query [].name -o tsv)


# Loop through each secret name and get its value

foreach ($secret in $secret_names)

  $secret_value=$(az keyvault secret show --vault-name $vault_name --name $secret --query "value")   

  Write-Output $secret

  Write-Output $secret_value 

  Write-Output "-------------------------"

}


Create an Excel file using PowerShell script

Create an Excel file using PowerShell script 


Here is a code to write data into Excel file and save it in a particular path.

$excel = New-Object -ComObject excel.application

#$excel.visible = $True

$workbook = $excel.Workbooks.Add()

$SheetName = "MySheet"

$uregwksht= $workbook.Worksheets.Item(1)

$uregwksht.Name = $SheetName


$row = 1

$Column = 1

$uregwksht.Cells.Item($row,$column)= "Column Title"


for ($i = 2; $i -le 5; $i++)

{

    Write-Output $i

  $row = $row + 1

  $uregwksht.Cells.Item($row,$column)= "Abcd" + $i

}

$outputpath = "D:\test.xlsx"

$excel.displayalerts = $false

$workbook.Saveas($outputpath)

$excel.displayalerts = $true

Write-Output $("File saved on " + $outputpath )

$excel.Quit()


#ref - https://community.spiceworks.com/t/create-an-excel-file-from-within-powershell/1011485

#ref - https://chanmingman.wordpress.com/2022/10/02/powershell-write-to-excel-file/

React Native - Call API on Button Click

 

React Native - Call API on Button Click


import React from 'react';
import { View, Text, Button, TouchableOpacity,Alert }from 'react-native';
const App = () => {
 
 const handleLogin = async() => {
  let resp= await fetch('https://api.demo.com/api/Data/GetDestination');
  let respjson = await resp.json();
  console.log(respjson);
  Alert.alert("msg", "123");
}
   
    return(
      <View>
        <Text style={{fontSize:70}}>
       Call Api
        </Text>    
        <Button onPress={handleLogin}
          title="Learn More"
          color="#841584"
          accessibilityLabel="Learn more about this purple button"
        />

      <TouchableOpacity>
        <Text onPress={handleLogin}>Login</Text>
      </TouchableOpacity>

      </View>
    )
  }

export default App

docker build sh: react-scripts: not found

 docker build sh: react-scripts: not found


Issue

 docker build sh: react-scripts: not found


Solution

Deleting package-lock.json and re-installing packages with npm install before building the container solved the issue for me.


Hope this will help you and save your time.

Enjoy !!!

:)