# Version 1: Full WxH specification
ffmpeg -i input.mp4 -vf scale=640:360 output_640x360.mp4
# Version 2: Width only, adjust height automatically
ffmpeg -i input.mp4 -vf scale=640:-1 output_640xauto.mp4
# Version 3: Height only, adjust width automatically
ffmpeg -i input.mp4 -vf scale=-1:360 output_auto_x360.mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| The template in VS ".NET MAUI App" creates by default other platforms e.g. maui-android, maui-ios, maui-catalyst, maui-tizen, etc; | |
| It's just not worth it, as it does NOT build by default; At least not when I tried it! | |
| Better remove all the other platforms if you only want Windows; Below is the modified project file to target only Windows; | |
| Delete the other folders under "Platforms" | |
| --> | |
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <TargetFrameworks>net8.0-windows10.0.19041.0</TargetFrameworks> |
Q. Finally! After many retries, you finally get it; Next time I want to ask you to output in a similar way, so that it goes across lines, what language should I use, so you can grasp the concept?
A. You can ask me to format the text in markdown, and you can mention that you'd like it in code blocks to ensure it's structured clearly across lines.
You can say something like, "Can you format this using markdown in code blocks?" This helps me understand that you want the text structured neatly, like I did earlier.
Here's an example of how you could phrase it:
GOOGLE
https://gemini.google.com/app
FACEBOOK
https://www.meta.ai/
TWITTER
https://x.com/i/grok
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Node.js dependencies | |
| /node_modules/ | |
| /ui/node_modules/ | |
| /ui/client/node_modules/ | |
| # Build outputs | |
| /dist/ | |
| /ui/client/build/ | |
| /ui/client/.next/ | |
| /out/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal enabledelayedexpansion | |
| for /d %%F in (*.*) do ( | |
| set "folder=%%F" | |
| set "newfolder=!folder:.= !" | |
| ren "%%F" "!newfolder!" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //using state management | |
| import { useState } from 'react'; | |
| const Wizard = () => { | |
| const [step, setStep] = useState(1); | |
| const nextStep = () => setStep(prev => prev + 1); | |
| const prevStep = () => setStep(prev => prev - 1); | |
| return ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add a packet size on both server (ffmpeg) and client (vlc) sides; | |
| # in ffmpeg: | |
| ffmpeg -re -i "path/to/my/video.mp4" -vcodec libx264 -f mpegts udp://127.0.0.1:1234?pkt_size=1316 | |
| # in vlc: | |
| udp://127.0.0.1:1234?pkt_size=1316 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When you initialize a new Git repository with `git init`, Git creates a single branch named `master` by default. This is the branch where your initial commit will go when you make it. | |
| However, starting from Git 2.28, you can customize this behavior using the `init.defaultBranch` configuration option. For example, if you want your default branch to be named `main`, you can set this option globally with the following command: | |
| ```bash | |
| git config --global init.defaultBranch main | |
| ``` | |
| After running this command, new repositories you create with `git init` will have a single branch named `main` by default. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| catch (Exception ex) | |
| { | |
| tbOutput.Text = GetExceptionMessages(ex); | |
| } | |
| ... | |
| private string GetExceptionMessages(Exception ex) | |
| { | |
| var message = ex.Message; |