All posts by admin

1080i vs. 1080p: What’s the Difference?

Most TVs today have two modes with similar names: 1080i and 1080p. Both have the same screen resolution, so what’s the difference between the two? Which one should you choose?

1080i video is “interlaced.” 1080i video plays back at 60 frames per second, but that’s a bit deceptive, because it’s actually broadcast at 30 frames per second. The TV then displays those frames twice, in a way—the first pass is 1,920-by-540 for the even scan line field, and the second pass is 1,920-by-540 for the odd scan line field. The process by which this occurs is called interlacing. It contributes to a sense of motion and reduces perceived flicker.

1080p video is called “progressive scan.” In this format, 1,920-by-1,080-pixel high-definition movies are progressively drawn line after line, so they’re not interlaced. On paper, that may not seem like a huge deal. But in the real world, what you end up seeing looks sharper and more defined than 1080i, particularly during scenes with a lot of fast motion.

Sometimes 1080p is termed “full HD” or “true HD,” to distinguish it from 1080i or 720p video. Blu-ray discs contain 1080p video at 24 frames per second, and then, using a method known as 3:2 pulldown, display it at 30 frames per second on screen.

Both formats look similar on smaller TVs. As a general rule, you need a larger TV to notice the difference between 1080i and 1080p. Depending on your eyesight, you can probably pick up the difference on a 32-inch LCD if you’re particular about it. But most consumers don’t really see a marked difference until at least a 42-inch screen, if not larger.

1080p isn’t even the best anymore. Technology never stands still, of course. High definition meant 1080p (1,920 by 1,080) resolution for years, but it’s quickly being overtaken by ultra high definition television, commonly called 4K.

A UHD or 4K display is one with at least 8 million active pixels. For televisions, that resolution has standardized to 3,840 by 2,160. Digital cinema 4K (the resolution in 4K movie theaters) is slightly higher at 4,096 by 2,160. However you define it, it’s four times the number of pixels on a 1080p display, and over 23 times the resolution of standard definition television.

If you don’t have a 4K source video, a 4K TV can still make your movies and shows look better. All 4K televisions use some kind of upconverter to display 1080p and lower resolution video. These upconverters do more than just break each pixel into four identical pixels; they employ edge smoothing and noise reduction algorithms to produce, ideally, a sharper picture. When it works well, you get video that looks natural on a 4K screen (though it doesn’t add any actual new details, just sharper lines and more even color and light). When it doesn’t, the picture can look a bit blotchy, like a painting.

While regular viewers struggled to see the difference between 1080p and 720p on smaller televisions, it’s much more obvious on 50-inch and larger TVs. 4K is another significant jump in terms of clarity and detail, especially as people are becoming more and more used to the incredibly tiny pixels displayed by today’s high-resolution screens on mobile gadgets.

Source: PCMag.

 

 

Complete vs. Completed

Which sentence is correct?

“Task A is complete.” or “Task A is completed.”


The word complete is both an adjective and a transitive verb.
As an adjective, complete means fully constituted of all of its parts or steps, fully carried out, or thorough.
Examples:

  • The road construction is finally complete.
  • Mary is planning a complete renovation of her kitchen.
  • The system will reboot after the installation is complete.

As a transitive verb, complete means to bring to an end or a perfected status.
Examples:

  • By 28 he completed his education and became an official, worked in different provincial courts.
  • She completed her work.
  • They completed the work in 3 days.

Therefore, something is complete, or something has been or was completed.

Therefore, Task A is complete (adjective), or Task A was completed (past tense verb).

Task A “is completed” is wrong, although “is being completed” or “is going to be completed” are proper verb forms.

How to Find and Remove Windows Hot Fix

Motivation:

You have an application that had been working well but it has encountered issues after you applied a Windows hot fix.

You need to list your latest Windows hot fixes and uninstall the one that causes the issue so that your application can work again.

Procedure:

1. Right click Start icon, click on Command Prompt (Admin) or Windows Powershell (Admin).

2. Type below command and press Enter to list the Windows hot fixes.

Get-Hotfix | Sort-object InstalledOn -Descending

3. Type below command and press Enter to uninstall a hot fix. Please note that the hot fix id does not contain KB.

wusa /uninstall /kb:4058702

Some other useful commands:

  • Geting the Windows original install date.
systeminfo | find /I "Install Date"

Alternatively, you can use below command to get the Windows original install date.

([WMI] "").ConvertToDateTime(((Get-WmiObject -class win32_operatingsystem).installdate))
  • Displaying Windows OS information.
systeminfo | findstr OS
  • Detecting Manufacturer name & Model number.
wmic computersystem get model, name, manufacturer, systemtype

 

 

 

How to Install Windows on your MacBook using Boot Camp

Motivation:

You have a MacBook and you want to use an application that only works on Windows.

Procedure:

1. Prerequisite:
  • Ensure that your macOS is up-to-date and does not have any issue.
  • If you want to reinstall macOS then you can hold down Command+R after powering your machine on.
2. Installing Windows on your MacBook using Boot Camp

In macOS:

  • Finder > Shift+Command+u > Boot Camp Assistant
  • Select 350Gb (or another appropriate size) for Windows. Use Windows 10 version 1909, April 2020 or Windows 10 version 1709, November 2017.
  • Remove unnecessary macOS applications (e.g. Numbers, Pages, Garage Band) if you want to use as much as possible storage for Windows.
  • Install Windows 10.
    – DO NOT USE Disk Management to create new partitions during Windows installation. Only use Disk Management to format an existing partition when installing Windows.
    – During the next boot into OS X, the OSXRESERVED partition is removed and put back into the Core Storage container of the OS X partition.

in Windows:

  • Install Boot Camp drivers.
  • Boot Camp Control Panel… > TrackPad > Tap to Click.
  • Change Computer Name, disable System Protection, enable Remote Desktop, activate Windows.
  • Turn on Automatic Logon
    Command Prompt (Run as Administrator) >> netplwiz
  • Disable Hibernate
    Command Prompt (Run as Administrator) >> powercfg.exe /hibernate off
  • Power management > Change plan settings > Change advanced power settings
    >> Hard disk > Turn of hard disk after > Never
    >> Sleep > Sleep after > Never
  • Adjust System > Display > Brightness and color.
  • Uninstall unnecessary apps.
  • Use Disk Management to shrink the BOOTCAMP partition and create a new DATA partition. Use 150Gb (153600MB) as the amount of space to shrink.
  • Check and install Windows updates.
  • Copy portable apps.
Developer’s tools:
  • Turn the following Windows features on: ASP.NET 3.5, 4.7, Internet Information Service, Telnet Client
  • Install Hyper-V, create an external Virtual Switch for Internet access
  • Install Total Commander, Remote Desktop Connection Manager
  • Install Firefox
  • Install MS SQL Server 2008 R2, MS Office 2007 SP3 (Display >> Scale and layout: 175%), MS Project 2016, MS Visio 2016, Visual Studio 2010, Visual Studio 2015, Adobe Acrobat Pro DC v15.8, Adobe Photoshop CC 2015, TortoiseSVN 1.11.1
  • Install Python 3.6.8, TensorFlow, Keras
3. Removing Windows from your MacBook using Boot Camp

In Windows:

  • Delete all Windows Data partitions, then Extend the Boot Camp volume (C:\) using Windows Disk Management.

In macOS:

  • Finder > Shift+Command+u > Boot Camp Assistant > Continue > Restore
  • If you get any problem with Boot Camp Assistant then delete Windows Boot Camp partition using Disk Utility: Finder > Shift+Command+u > Disk Utility > Partition.
  • If you get a “Ghost” partition after deleting Windows Boot Camp partition using Disk Utility then please use the following procedure to remove it:

Execute below command:

diskutil list

Find EFI IDENTIFIER (e.g. disk0s1).

Execute 2 below commands:

sudo mkdir /Volumes/efi
sudo mount -t msdos /dev/disk0s1 /Volumes/efi

Navigate to /Volumes/efi/EFI. Delete all directories (i.e. Microsoft and Boot) except the APPLE directory.

Execute below command:

diskutil unmount /Volumes/efi
4. Repair or update Boot Camp drivers in Windows
  • Download and install 7-Zip.
  • Download Brigadier 0.2.4.
  • Run Brigadier to automatically detect your Mac model and download the right Boot Camp drivers for Windows 10, and extract them (using 7-Zip) to the same location where Brigadier executable is located.
  • Find and double-click on Setup.exe to run it.

 

 

 

How to Force Uninstall a Program That Won’t Uninstall

Issue:

You installed a program. Now you want to uninstall it. You open up the Apps & Features (in Windows 10), click on the program name, click Uninstall button and you get an error. The program cannot be uninstalled.

Solution:

Method 1:

Use Windows Installer CleanUp Utility (given by Microsoft) to uninstall the program.

Method 2:
  1. Type regedit in Cortana and click on the program.
  2. Find the program name. For example JetBrains.
  3. Continue finding the program by pressing F3 until you find it under the sub-folder HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall or the sub-folder Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall (you verify this path by looking at the path under the top menu and looking at the DisplayName in the right panel).
  4. Copy the value of the key UninstallString.
  5. Type run in Cortana and click on Run application.
  6. Paste the value of the key UninstallString and click OK.
  7. If you still get the error then just delete the sub-folder under the sub-folder HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall or the sub-folder Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall.
  8. Restart your computer.

How to Install Intel HAXM in a Machine with Hyper-V

Problem:

Intel HAXM helps speeding up Android emulators. However it cannot work in parallel with Hyper-V.

You want to install Intel HAXM without removing Hyper-V.

Solution:

Use the steps below to temporarily turn Hyper-V off to install Intel HAXM and launch Android Studio emulators.

  1. Open a Command Prompt or PowerShell as Admin
  2. Execute the command below to turn Hyper-V off
bcdedit /set hypervisorlaunchtype off

3. Restart your computer.

4. Install Intel HAXM

sdk

\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
where

sdk

 is the location of Android SDK.

5. Verify Intel HAXM installation

sc query intelhaxm

To turn Hyper-V on again, use the steps below:

  1. Open a Command Prompt or PowerShell as Admin
  2. Execute the command below to turn Hyper-V off
bcdedit /set hypervisorlaunchtype auto start

3. Restart your computer.

 

How to delete the Windows.old folder

Motivation:

After a major update Windows 10 leaves a folder named Windows.old in the system drive. You may remove it to save disk space and prevent potential harmful exploits.

Solution

Method 1:

  1. Click in Windows’ search field, type Cleanup, then click Disk Cleanup.
  2. Click the “Clean up system files” button.
  3. Wait a bit while Windows scans for files, then scroll down the list until you see “Previous Windows installation(s)“.
  4. Check the box next to the entry.
  5. Click OK.

Method 2:

  1. Open a command prompt (cmd.exe) as Admin
  2. Execute 3 below commands:
takeown /f C:\Windows.old /r /d y
icacls C:\Windows.old /grant administrators:F /t
rmdir C:\Windows.old /s /q

takeown: takes ownership of a folder.

icacls: grants permissions to a user against a folder

rmdir: deletes a folder

3. If some files still cannot be deleted then please restart your computer and re-excecute the above 3 commands.

4. If some files still cannot be deleted after the restart then please execute 3 below commands:

icacls C:\Windows.old /T /Q /C /RESET
icacls C:\Windows.old /grant admin:F /t
rmdir C:\Windows.old /s /q

admin: your current logged in username.

5. If some files still cannot be deleted then please click Cortona icon, type msconfig, click on System Configuration link, click Boot tab, select Safe boot check box,  select Minimal option, click OK, restart your computer and then execute the 3 commands in the 2nd step and the 3 commands in the 4th step.

How to find a string in files

Motivation:

Find a string in all files in a directory without having to install an external program that may decrease system security.

Method 1:

  1. Open a command prompt (cmd.exe)
  2. Go to the directory and
  3. Execute below command:
find /i "search string" *.*

/i: ignores the case of your search string.

Examples:

find /i "app files were copied" *.*
find /i "were copied" *.log

Method 2:

  1. Open a command prompt (cmd.exe)
  2. Go to the directory and
  3. Execute below command:
findstr /s "search string" *.*

/s: searches for each word in your search string.

or execute below command:

findstr /C:"search string" *.*

/C: searches for exact match of your search string .

Examples:

findstr /s "Integrated Security=true" *.cs
findstr /C:"app files were copied" *.log