The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

Archive for 2019

Windows 10: force to sleep at night, but allow wake up for Windows Updates

Posted by jpluimers on 2019/03/04

I do not like a machine that sleeps after a certain amount of inactivity as I might have a long running job going on.

Usually however, I do like to have a machine off at night, even if I forget to put it asleep.

Exceptions for sleeping are just two:

  • automatic back-up schedule
  • allowing Windows Updates

Luckily you can tell Windows 10 to allow for all cases.

Enabling wake-up during Windows Updates

Note I’m not fully sure which BIOS settings you need to enable – if any- to have this work on all systems. Wake up works on my machine for these [WayBackpsshutdown parameter combinations:

  • psshutdown.exe -h -t 0 (Hibernate)
  • psshutdown.exe -d -t 0 (Suspend)

It fails with these:

  • psshutdown.exe -s -t 0 -f (Shutdown without poweroff)
  • psshutdown.exe -k -t 0 (Poweroff)

The odd thing: Wake-on-LAN can usually wake up the last two.

This is done with the gpedit.msc (via [WayBackHow to prevent Windows 10 waking from sleep when traveling in bag? – Super User, thanks xxxbence)

Follow this path:

  1. Local Computer Policy
  2. Computer Configuration
  3. Administrative Templates
  4. Windows Components
  5. Windows Update

Double click Enabling Windows Update Power Management to automatically wake up the system to install scheduled updatesto show the below dialog.

Enable it:

so it looks like this:

Forcing sleep (in my case hibernate) using the Task Scheduler

In Windows 7..10: disable shutdown/hibernate/sleep/restart from UI I wrote about shutdown /h /f to hibernate a machine. You can force to run this from the taskschd.msc (Windows Task Scheduler):

I wanted history for tasks, so I started taskschd.msc as Administrator, then on the right Actions Pane, I clicked on Enable All Tasks History:

 also explained in [WayBackHow can I enable the Windows Server Task Scheduler History recording? – Stack Overflow and can be verified/set on the console as well:

  • Get as any user: wevtutil get-log Microsoft-Windows-TaskScheduler/Operational
  • Set as Administrator: wevtutil set-log Microsoft-Windows-TaskScheduler/Operational /enabled:true

I named the task __ sleep at 2300 with these settings:

Ensure the Program/script itself is shutdown and the parameters are /h /f:

–jeroen

Posted in Power User, Windows, Windows 10 | Leave a Comment »

Supermicro | Products | Motherboards | Xeon® Boards | X10SRH-CF

Posted by jpluimers on 2019/03/01

I still like this board: [WayBackSupermicro | Products | Motherboards | Xeon® Boards | X10SRH-CF.

It’s in my main virtualisation workhorse, uses little power, has loads of disk (SAS/SATA) ports, IPMI, two network connections and enough slots for memory and I/O to be extensible.

I use it for most of my software development even when on the road: VPN home over one of the fiber connections and it screams.

Some links, as SuperMicro tends to hide them behind POST requests:

–jeroen

Posted in Development, ESXi6.5, Hardware, Mainboards, Power User, Software Development, SuperMicro, Virtualization, VMware, VMware ESXi, X10SRH-CF | Leave a Comment »

Windows 10: mounting an ISO to a specific drive letter and keeping that drive letter after boot

Posted by jpluimers on 2019/03/01

I tried finding a way with the built-in Windows tools to keep an ISO mounted to a specific drive letter (some software remembers the drive letter it got installed from and disallows changing it).

I couldn’t. Luckily there is WinCDEmu which supports more formats than the built-in Windows tools as well.

[WayBackWinCDEmu – How to keep images mounted

  1. Right click the ISO file
  2. Choose Select drive letter & mount
  3. In the popup dialog, put check marks if you need any of these options:
    • Disable autorun for this time
    • Keep drive after restart

So I can add that to the list of WinCDEmu features I wrote about before (from newer to older):

WinCDEmu is open source; if you want to build it from scratch, you need these repositories:

 

–jeroen

Posted in Power User, Windows, Windows 10 | Leave a Comment »

Windows 10 Feature Focus: Backup and Recovery – Thurrott.com

Posted by jpluimers on 2019/03/01

I totally forgot that the Windows 7/8/8.1. stuff (that makes a back-up to VHD/VHDX) is still in the Control Panel:

While Windows 10 doesn’t actually add any new backup or recovery tools, it provides great upgrades to the tools it previously offered in Windows 7 and 8.

Source: [WayBackWindows 10 Feature Focus: Backup and Recovery – Thurrott.com

Read the rest of this entry »

Posted in Power User, Windows, Windows 10 | Leave a Comment »

There’s recently been a question about moving G+ Photos to Google Photos. [Th…

Posted by jpluimers on 2019/03/01

[WayBack] There’s recently been a question about moving G+ Photos to Google Photos. [That is, Photos posted to Google+] Just been playing with this. Here’s one… – Julian Bond – Google+

Before I forget:

Here’s one route.

  1. Go to Google Photos settings and set Google Drive –
    Sync photos & videos from Google Drive.
  2. Google Takeout. G+Streams.Photos.
  3. Unzip locally.
  4. Copy the contents of ‘Takeout\Google+ Stream\Photos\Photos from posts‘ to a directory in Google Drive\My Pictures
  5. Fire up “Backup and Sync from Google” to upload
  6. Check the photos are now present in Photos.

And https://get.google.com/albumarchive/

Via: [WayBack] There’s recently been a question about moving G+ Photos to Google Photos. Just been playing with this. Here’s one route. 1. Go to Google Photos setti… – Alan Cox – Google+

–jeroen

Posted in G+: GooglePlus, Google, Google Photos, GoogleDrive, Power User | Leave a Comment »

My contributions to RAD Studio – Jose León – Medium

Posted by jpluimers on 2019/02/28

For my link archive, as a reminder to check the Sistel JIRA tool, which is an IDE like tool for JIRA: [WayBack] Business Process Studio for JIRA | Sistel

He has some very interesting posts at [Archive.isJose León – Medium.

Via:

–jeroen

Read the rest of this entry »

Posted in Delphi, Development, Issue/Bug tracking, JIRA, Software Development | Leave a Comment »

performance – Why is this C++ code faster than my hand-written assembly for testing the Collatz conjecture? – Stack Overflow

Posted by jpluimers on 2019/02/28

Geek pr0n at [WayBackperformance – Why is this C++ code faster than my hand-written assembly for testing the Collatz conjecture? – Stack Overflow

Via: [WayBack] Very nice #Geekpr0n “Why is C++ faster than my hand-written assembly code?” The comments are of high quality i… – Jan Wildeboer – Google+

–jeroen

Posted in Assembly Language, C, C++, Development, Software Development, x64, x86 | Leave a Comment »

Anyone who knows about http://sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches/RADStudio_Rio ?

Posted by jpluimers on 2019/02/28

It look likes sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches/RADStudio_Rio is gone (though docwiki has more than a couple 100 mentions of [Archive.is] “radstudiodemos” and [Archive.is] “RADStudio_Rio”), for instance here:

I have not seen an announcement of this branch disappearing, so I wonder what happened and why.

sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches was a great resource, as it had a consistent history from Delphi XE through 10.2 Tokyo (apparently there used to be 10.3 Rio too) that made it very easy to see the differences in various versions, giving a great indication of new features and differences in products, often before the docwiki got updated to reflect them.

SVN not being centralised, now makes this chain break for Delphi 10.3 Rio, which is quite a pity.

If anyone has the complete SVN history including Delphi 10.3 RIO, please let me know: Delphi 10.3 Rio Update 1 now finally being out likely means many more people start using it as initial issues found in the public have been fleshed out.

It would have been so much more convenient to have for instance a git converted repository keeping all the history and including Delphi 10.3 Rio somewhere.

If anyone has that, I’d be interested in that too. One can dream, right?

Sidenote

I bumped into this via a link pointing to URLs having these fragments in them, which are now invalid:

This means I have to fix some 150 links later: [Archive.is] site:wiert.me “radstudiodemos” – Google Search.

It looks like radstudiodemos.svn.sourceforge.net/svnroot/radstudiodemos/trunk got replaced with sourceforge.net/p/radstudiodemos/code/HEAD/tree/trunk and https://svn.code.sf.net/p/radstudiodemos/code/trunk, which should give me a head-starting on how to fix the links.

–jeroen

 

 

Posted in Delphi, Delphi 10.3 Rio (Carnival), Development, Software Development | 1 Comment »

Bye, Bye, Google · Bogdan Popa

Posted by jpluimers on 2019/02/28

Interesting approach: saying good bye isn’t that hard if you do not share a lot things with other people through it.

[WayBackBye, Bye, Google · Bogdan Popa:

I spent this past weekend de-Google-ifying my life and, despite my expectations, it wasn’t too hard to do. I started by moving all of my websites off of Google App Engine and onto a dedicated box that I had already owned. That was straightforward enough. Next, I removed any Google Analytics snippets from each of them and replaced those with my own analytics server that I had built a while back (it doesn’t store any PII, only aggregate information (and very little of that, too)).

Via:

This might be a viable mail alternative: [WayBack] Reliable Email Provider, Inbox Email & Resource Center | inbox.com

Simplify your online communication with one login to secure email communication, organize conversations, and fine-tune archive searches.

Via: [WayBack] Thank you for following us! It’s been our pleasure to build a community with all of you. In the coming weeks, we’ll be closing this page. Please find us… – Google – Google+

Thank you for following us! It’s been our pleasure to build a community with all of you. In the coming weeks, we’ll be closing this page. Please find us here to stay connected:

www.youtube.com/google
www.twitter.com/google
www.instagram.com/google
www.facebook.com/google

–jeroen

Posted in G+: GooglePlus, Google, LifeHacker, Power User, SocialMedia | Leave a Comment »

We are searching for some Automation Testing Framework, different from Test Complete…

Posted by jpluimers on 2019/02/27

For my link archive: [WayBack] We are searching for some Automation Testing Framework, different from Test Complate… Any ideas? We are trying to select a tool for automating an ap… – Avatarx – Google+

–jeroen

Posted in Development, Software Development, Testing | Leave a Comment »