Type net start from Command Prompt.
Author: Aaron Paul Rykhus
Parsing the Windows Path Statement
I created a batch file that prints the path variable in Windows in a more format. Useful if you have many entries in path and for analyzing command path lookup issues.
You can download the code here:
Compatible Inno Setup Version for Apache Ant
Tested on Windows 10 version 2004 and Inno Setup 5.6.1 is compatible with Ant 1.10.4. Had to install 5 because Inno Setup 6.0.5 doesn’t work. Throws errors:
BUILD FAILED
"Error: Bundler "EXE Installer" (exe) failed to produce a bundle."
"Exec failed with code 2 command"
Removed full output for brevity.
After installing you’ll need to add C:\Program Files (x86)\Inno Setup 5
to PATH environment variable.
Tutorial
https://docs.oracle.com/javase/tutorial/deployment/selfContainedApps/converting.html
Date Difference
PowerShell
(Get-Date -Date "8/16/20") - (Get-Date -Date "7/25/20")
You could even shorten that into:
(Get-Date "8/16/20") - (Get-Date "7/25/20")
You don’t even need quotes:
(Get-Date 8/16/20) - (Get-Date 7/15/20)
Two dates in the same year:
(Get-Date 10/11) - (Get-Date 9/20)
Excel
=DAYS("8/16/2020","7/25/2020")
NetBeans Ant Executable Location
Windows 10
C:\Program Files\NetBeans-11.3\netbeans\extide\ant\bin
CST vs CDT
What’s the difference between CST and CDT? Central Standard Time vs Central Daylight Time. In the central time zone we are currently in Central Daylight Time (UTC-5:00) because it’s currently daylight savings time (DST). November 1st daylight savings time ends and we’ll change to Central Standard Time (UTC-6:00) until March, 14 2021 when we’ll go back to Central Daylight Time.
Digital Clock in Java
Windows 10/Java SE14
LocalTimeExample.java
import java.lang.Thread;
import java.time.LocalTime;
class LocalTimeExample {
public static void cls() {
try {
new ProcessBuilder("cmd", "/c","cls").inheritIO().start().waitFor();
} catch(Exception E) {
System.out.println(E);
}
}
public static void display(int hour, int min, int sec){
cls();
System.out.printf("%d:%d:%d%n", hour, min, sec);
}
public static void main(String[] args) throws InterruptedException {
LocalTime thisSec;
for (;;) {
thisSec = LocalTime.now();
display(thisSec.getHour(), thisSec.getMinute(), thisSec.getSecond());
Thread.sleep(1000);
}
}
}
Preview CU offered in WU
Yesterday I got this update pushed out via WU automatic updates to my Dell Precision T7500 home computer from the public Microsoft Windows Update servers.
2020-07 Cumulative Update Preview for .NET Framework 3.5 and 4.8 for Windows 10 Version 2004 for x64 (KB4562899)
Another update is showing under optional updates.
No clue why Windows Update would push out a preview CU since I never asked for it, it automatically tried to install. I’m currently on the released (non-preview) 2004 version of Windows 10 and not in any Microsoft beta, insider or preview programs.
I’m keeping the .NET Framework CU preview update KB4562899 installed for now because I hadn’t had any of the problems (freezing, display issues) that started happening since installing version 2004. But I don’t plan on installing KB4568831.
How to get Bing Rewards mobile points on PC using Edge (Chromium) Browser
Tested this on Edge Chromium 83.0.478.54 (Official build) (64-bit) on Windows 10 64-bit version 1909 from a Dell Precision Workstation T7500.
Overview
According to https://account.microsoft.com/rewards/pointsbreakdown I can get 150 Bing Rewards points per day + 20 for using Edge browser for a total of 170 points per day. There’s also 100 points for using on a mobile device.
150 + 20 + 100 = 270 per day
Here’s how to get those extra 100 mobile points on a PC after you’ve accrued 170 points for the day if you don’t have a mobile device:
Steps
- Activate Developer Tools by pressing F12
- Toggle Device Toolbar (CTRL+SHIFT+M) (icon turns blue)
- Place cursor in search box
- Type search criteria
- Press enter
- Deactivate Developer Tools by pressing F12
- Refresh page (F5) to see points counter increment
Summary
To get the mobile points on a PC you need to have Developer Tools pane activated and the Device Toolbar (blue) activated.
Works the same in Chrome browser (tested on 83.0.4103.106 64-bit) just a slightly different icon:
Image of the Device Toolbar turned on in Chrome developer tools
Keyboard shortcuts are the same, F12 and CTRL+SHIFT+M works same in Edge and Chrome.
Windows 10 Cumulative Update
Noticed this in Windows Update today. Had to click on the Download and install now link to install it.
2020-03 Cumulative Update for Windows 10 Version 1909 for x64-based Systems (KB4541335)