Here is the video that help me to solve my son Macbook Pro 2019 problem;
Author: Shahzad Khan
ZoomIt – Screen zoom and annotation
ZoomIt is a screen zoom, annotation, and recording tool for technical presentations and demos. You can also use ZoomIt to snip screenshots to the clipboard or to a file. ZoomIt runs unobtrusively in the tray and activates with customizable hotkeys to zoom in on an area of the screen, move around while zoomed, and draw on the zoomed image. I wrote ZoomIt to fit my specific needs and use it in all my presentations.
Using ZoomIt
The first time you run ZoomIt it presents a configuration dialog that describes ZoomIt’s behavior, let’s you specify alternate hotkeys for zooming and for entering drawing mode without zooming, and customize the drawing pen color and size. I use the draw-without-zoom option to annotate the screen at its native resolution, for example. ZoomIt also includes a break timer feature that remains active even when you tab away from the timer window and allows you to return to the timer window by clicking on the ZoomIt tray icon.
Shortcuts
ZoomIt offers a number of shortcuts which can extend its usage greatly.
Function | Shortcut |
---|---|
Zoom Mode | Ctrl + 1 |
Zoom In | Mouse Scroll Up or Up Arrow |
Zoom Out | Mouse Scroll Down or Down Arrow |
Start Drawing (While In Zoom Mode) | Left-Click |
Stop Drawing (While In Zoom Mode) | Right-Click |
Start Drawing (While Not In Zoom Mode) | Ctrl + 2 |
Increase/Decrease Line And Cursor Size (Drawing Mode) | Ctrl + Mouse Scroll Up/Down or Arrow Keys |
Center The Cursor (Drawing Mode) | Space Bar |
Whiteboard (Drawing Mode) | W |
Blackboard (Drawing Mode) | K |
Type in Text (Left Aligned) | T |
Type in Text (Right Aligned) | Shift + T |
Increase/Decrease Font Size (Typing Mode) | Ctrl + Mouse Scroll Up/Down or Arrow Keys |
Red Pen | R |
Red Highlight Pen | Shift + R |
Green Pen | G |
Green Highlight Pen | Shift + G |
Blue Pen | B |
Blue Highlight Pen | Shift + B |
Yellow Pen | Y |
Yellow Highlight Pen | Shift + Y |
Orange Pen | O |
Orange Highlight Pen | Shift + O |
Pink Pen | P |
Pink Highlight Pen | Shift + P |
Blur Pen | X |
Draw a Straight Line | Hold Shift |
Draw a Rectangle | Hold Ctrl |
Draw an Ellipse | Hold Tab |
Draw an Arrow | Hold Ctrl + Shift |
Erase Last Drawing | Ctrl + Z |
Erase All Drawings | E |
Copy Screenshot to Clipboard | Ctrl + C |
Crop Screenshot to Clipboard | Ctrl + Shift + C |
Save Screenshot as PNG | Ctrl + S |
Save Cropped Screenshot to a File | Ctrl + Shift + S |
Copy a Region of The Screen To Clipboard | Ctrl + 6 |
Save a Region of The Screen To a File | Ctrl + Shift + 6 |
Start/Stop Full Screen Recording Saved as MP4 (Windows 10 May 2019 Update And Higher) | Ctrl + 5 |
Crop Screen Recording Saved as MP4 (Windows 10 May 2019 Update And Higher) | Ctrl + Shift + 5 |
Screen Record Only The Window That The Mouse Cursor is Positioned Over Saved as MP4 (Windows 10 May 2019 Update And Higher) | Ctrl + Alt + 5 |
Show Countdown Timer | Ctrl + 3 |
Increase/Decrease Time | Ctrl + Mouse Scroll Up/Down or Arrow Keys |
Minimize Timer (Without Pausing It) | Alt + Tab |
Show Timer When Minimized | Left-Click On The ZoomIt Icon |
LiveZoom Mode | Ctrl + 4 |
LiveDraw Mode | Ctrl + Shift + 4 |
Start DemoType | Ctrl + 7 |
Move back to the previous snippet (DemoType) | Ctrl + Shift + 7 |
Advance to the next snippet (DemoType User-driven Mode) | Space Bar |
Exit | Esc or Right-Click |
Git Branching Strategies
In essence, a Git branch is a movable pointer to a specific commit in the repository’s history. When you create a new branch, you’re creating a new line of development that diverges from the main line. This allows you to make changes without directly affecting the stable codebase.
Let’s understand how this works. I assume you have Git installed and have basic working knowledge of Git.
Read more on code site
Natural Language AI-Powered Smart UI
Looking for real-world AI examples is a challenge and part of this challenge comes from Generative AI (GenAI) news dominating the media. It feels like every AI demo involves chatting with GenAI to produce content. The obligatory chat completion demo has started to become the to-do list of AI demo apps, and, to make matters worse, it’s selling AI short. GenAIs rely on large language models (LLMs), which are the brain behind natural language processing tasks. In this article, I’ll explore the opportunities presented by LLMs using a real-world research-and-development experiment. This experiment is part of on-going research into AI-enabled user interface components (aka .NET Smart Components) by Progress Software and Microsoft.
Read more on code site
How to run SonarQube Analysis in Visual Studio Console
To generate a SonarQube token (required for authentication when running analyses from the command line or CI/CD pipelines), follow these steps:
Steps to Generate a SonarQube Token
- Log in to your SonarQube server (e.g.,
http://localhost:9000
for local setups). - Click your profile icon (top-right corner) → “My Account”.
- Go to the “Security” tab.
- Under “Tokens”, enter a name for your token (e.g.,
vs-console-token
). - Click “Generate”.
- Copy the token immediately (it won’t be shown again!).
Example token format:sqp_1234567890abcdef
How to Use the Token
- In
dotnet-sonarscanner
commands, pass the token via:shCopyDownloaddotnet sonarscanner begin /k:”your-project-key” /d:sonar.host.url=”http://localhost:9000″ /d:sonar.login=”sqp_1234567890abcdef” - For security, never hardcode the token in scripts. Use:
- Environment variables (e.g.,
SONAR_TOKEN
). - Secret management tools (e.g., Azure Key Vault, GitHub Secrets).
- Environment variables (e.g.,
Important Notes
- 🔒 Treat tokens like passwords (they grant access to your SonarQube projects).
- 🔄 Regenerate tokens periodically or revoke old ones (under “Security”).
- 🚫 No token? You’ll get errors like
Not authorized
orAuthentication failed
.
Example Workflow
# Set token as an environment variable (optional) set SONAR_TOKEN=sqp_1234567890abcdef # Run analysis (Windows CMD) dotnet sonarscanner begin /k:"my-project" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="%SONAR_TOKEN%" dotnet build dotnet sonarscanner end /d:sonar.login="%SONAR_TOKEN%"
Get the SonarQube Project URL
The project URL is the web address of your project in SonarQube. It typically follows this format:
http://<sonarqube-server-url>/dashboard?id=<project-key>
<sonarqube-server-url>
: The host where SonarQube is running (e.g.,http://localhost:9000
if running locally).<project-key>
: The unique key assigned to your project in SonarQube.
How to Find the Project Key?
- Log in to your SonarQube server.
- Navigate to your project.
- Check the URL in the browser’s address bar (e.g.,
http://localhost:9000/dashboard?id=my-project-key
). - Alternatively, go to Project Settings → General Settings → Key.
2. Run SonarQube Analysis in Visual Studio Console
To analyze a .NET project in Visual Studio Developer Command Prompt (or terminal), use the SonarScanner for .NET (dotnet-sonarscanner
).
Prerequisites
- Install Java (required for SonarQube scanner).
- Install SonarScanner for .NET:shCopyDownloaddotnet tool install –global dotnet-sonarscanner
Steps to Run Analysis
- Start the SonarQube Analysis:shCopyDownloaddotnet sonarscanner begin /k:”
” /d:sonar.host.url=” ” /d:sonar.login=” “ - Replace:
<project-key>
with your SonarQube project key.<sonarqube-server-url>
with your SonarQube server URL (e.g.,http://localhost:9000
).<token>
with a SonarQube user token.
- Replace:
- Build Your Project:shCopyDownloaddotnet build
- Complete & Publish Results to SonarQube:shCopyDownloaddotnet sonarscanner end /d:sonar.login=”<token>”
- Check Results:
- Open the SonarQube project URL (e.g.,
http://localhost:9000/dashboard?id=my-project-key
) in a browser.
- Open the SonarQube project URL (e.g.,
Example
# Start analysis dotnet sonarscanner begin /k:"my-dotnet-app" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="sqp_1234567890abcdef" # Build the project dotnet build # End analysis & upload results dotnet sonarscanner end /d:sonar.login="sqp_1234567890abcdef"
After running these commands, your analysis results will appear in the SonarQube dashboard.