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,839 other subscribers

Archive for the ‘Power User’ Category

PowerShell – query reboot/shutdown events

Posted by jpluimers on 2018/06/19

Thanks [WayBackgbabu for the below PowerShell ide

As PowerShell command:

Get-EventLog System | Where-Object {$_.EventID -eq "1074" -or $_.EventID -eq "6008" -or $_.EventID -eq "1076"} | ft Machinename, TimeWritten, UserName, EventID, Message -AutoSize -Wrap

Based on it and my own experience, thse Event IDs can be interesting:

  • 41 – The system has rebooted without cleanly shutting down first
  • 109 – The kernel power manager has initiated a shutdown transition.
  • 1073 – The attempt by user [domain]\[username] to restart/shutdown computer [computername] failed.
  • 1074 – The process [filename].[extension] has initiated the restart of computer [computername] on behalf of user [domain]\[username\ for the
  • 1076 – ???
  • 6008 – The previous system shutdown at [time-in-local-format] on [date-in-local-format] was unexpected.

You can also run this as a batch file, but not you need to escape the pipe | into ^| like this:

PowerShell Get-EventLog System ^| Where-Object {$_.EventID -eq "1074" -or $_.EventID -eq "6008" -or $_.EventID -eq "1076"} ^| ft Machinename, TimeWritten, UserName, EventID, Message -AutoSize -Wrap

If you have PowerShell 3.0 or greater, then you can use the [Archive.is-In operator:

PowerShell Get-EventLog System ^| Where-Object {$_.EventID -in "41", "109", "1074", "6008", "1076"} ^| ft Machinename, TimeWritten, UserName, EventID, Message -AutoSize -Wrap

–jeroen

Posted in Batch-Files, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Leave a Comment »

Lidl W5 oils are identical to Pennasol types

Posted by jpluimers on 2018/06/18

For my link archive: [WayBackW5motorolja på Lidl

Ihr Fax vom 21.10.2009

Sehr geehrter Herr Stanusic,

gern bestätigen wir Ihnen, dass entsprechend der folgenden Aufstellung die Produkte identisch sind.

PENNASOL Multigrade Super HD 15W40 = W5 CARCARE Engine Oil 15W40
PENNASOL Super Light 10W40 = W5 Ecotech Engine Oil 10W40
PENNASOL Super Pace 5W40 = W5 Supertech Engine Oil 5W40
Mit freundlichen Grüßen

Mineralöl-Raffinerie Dollbergen GmbH

i.V. Hartmann i.A. Fricke

On the label:

Read the rest of this entry »

Posted in cars, E46 320i touring, LifeHacker, Power User | Leave a Comment »

Choosing a centralized logging and monitoring system

Posted by jpluimers on 2018/06/18

Interesting read:

Searching through logs and remoting to a machine to check it’s load is not a fun thing to do. This is why I’ve decided to look for a centralized logging service. And what I’ve chosen.

It looks like Microsoft App Insight is very much worth trying.

–jeroen

Posted in *nix, Development, Monitoring, Power User | Leave a Comment »

Practical Color Theory for People Who Code

Posted by jpluimers on 2018/06/18

Recommented reading and playing: [Archive.isPractical Color Theory for People Who Code which is not just about the colour wheel, but also about:

  • desaturation
  • mixing
  • contrast for tints and shades

Oh: don’t forge the “Party Mode” (:

–jeroen

PS:

 

Posted in Color (science), Color (software development), Development, LifeHacker, Power User, science, Software Development, UI Design | Leave a Comment »

These bone-conduction glasses are on sale for less than USD 70…

Posted by jpluimers on 2018/06/15

From a while back, but intrigued me as I wasn’t aware that bon conduction devices had become so affordable.

[WayBack] These bone-conduction glasses are on sale for $69 Would you wear them? They can be fitted with sunglasses or prescription lenses, and you can use the… – Mike Elgan – Google+

My ~60 dBA Unilateral hearing loss – Wikipedia of my left ear is only through the air: my bone conduction hearing loss – though still significant – is far less.

Since my right ear is very good, a regular hearing aid is of no use: the human brain effectively shuts down the left ear when the quality difference between the two ears is too large.

For listening to music or phone conversations however, conduction based hearing might allow me to get a bit more of a stereo sound.

Time to find out which ones work for me and which don’t, so here are a few links that describe (lists of) potential devices:

  • [WayBack] Are bone conduction headphones good enough yet? – The Verge
  • Bone conduction headphones are the best and only true open ear headphones. They allow users to take calls or listen to music while still being completely aware of their surroundings. They’re an awesome alternative to traditional headphones.[WayBack] Best Bone Conduction Headphones of 2018: A Complete Guide –Everyday Hearing
  • The first and most important thing you should know is that bone conduction headphones are nowhere near traditional headphones (no matter if they are on-ear, over-ear, in-ear) when it comes to sound quality. Even those really expensive bone conduction headphones (AfterShokz Trekz Titanium and Trekz Air) are not as good as some average traditional headphones. So, if you are looking for high-fidelity sound, you are in the wrong place. Traditional headphones offer much better sound quality with much cleaner and punchier bass than bone conduction headphones. Bass response is probably the worst thing about bone conduction headphones.On the positive side, bone conduction headphones leave your ears open and allow them to breathe. If you can’t stand having your ears covered or having something inside your ear canal, bone conduction headphones might be the solution you’ve been looking for (the earpieces of bone conduction headphones usually rest on the temporal or lower jaw bones (mandibles), right in front of your ears).

    Because of this open-ear design, bone conduction headphones make you more aware of your surroundings. You will be able to hear all that’s going on around you while listening to music, and if that’s something you prefer, bone conduction headphones are the best choice.

    [WayBack] 9 Best Bone Conduction Headphones In 2018 – AudioReputation.com

–jeroen

Pictures from the Verge and Everyday Hearing

Read the rest of this entry »

Posted in LifeHacker, Power User | Leave a Comment »

Check if a domain is services by GMail for Business (former Google Mail for your domain)

Posted by jpluimers on 2018/06/15

Google can service mail for a domain. Alphabet has renamed this service over time:

Anyway: at the time of writing it is at https://gsuite.google.com/products/gmail/.

If you send mail to such a domain and the user doesn’t exist, you get a confusing error message like this:

<<< 550 5.1.1 https://support.google.com/mail/?p=NoSuchUser [^] j191si981824wmd.134 - gsmtp

So I wanted to test if a domain is being services by gmail and found this StackExchange question:

Basically you can test it in two ways:

dig takeheart.com mx
takeheart.com. 86399 IN MX 20 ALT1.ASPMX.L.GOOGLE.com.
takeheart.com. 86399 IN MX 30 ALT2.ASPMX.L.GOOGLE.com.
takeheart.com. 86399 IN MX 10 ASPMX.L.GOOGLE.com.
takeheart.com. 86399 IN MX 40 ASPMX2.GOOGLEMAIL.com.
takeheart.com. 86399 IN MX 50 ASPMX3.GOOGLEMAIL.com.

–jeroen

Puns:

–jeroen

 

Posted in Google, Google Apps, Power User | Leave a Comment »

gmail – Way to automatically download or print attachments or URLs from emails with specific labels – Web Applications Stack Exchange

Posted by jpluimers on 2018/06/15

Seems that IFTTT might be able to help me out here: [WayBack] gmail – Way to automatically download or print attachments or URLs from emails with specific labels – Web Applications Stack Exchange

[WayBackCreate a new document in GDrive when you receive a digital receipt in your Gmail. #drive #gmail #rec – IFTTT

–jeroen

Posted in GMail, Google, Power User | Leave a Comment »

Firebird error “Operating system call _beginthreadex failed. Error code 8” can mean your server process ran out of memory

Posted by jpluimers on 2018/06/14

On a production system we had this error occurring without warning:

Operating system call _beginthreadex failed. Error code 8

The cause was running out of private bytes or virtual size as they were almost 2 gigabyte which is too much for a 32-bit process:

The not so nice thing is that there were no memory warnings in the Firebird.log file at all.

In the client application the DAC (Data Access Layer) was getting lots of  “unable to allocate memory from operating system” errors back from Firebird (and logging them in the client log file), so the client didn’t run out of memory: the server did.

This was with 2.5.2.26540 (at that time the most recent version) and it looks like more people suffer from this:

We put a monitor to watch the fbserver.exe process and warn us if it was reaching 1.5 gigabyte so we could re-start it before running out of memory.

–jeroen

Posted in Database Development, Development, Firebird, Power User | 2 Comments »

SD cards solutions to add 256 gigabyte to your non USB-C Retina MacBook

Posted by jpluimers on 2018/06/12

I was asked what I used to extend my Retina Macbook storage. Mine still has an SD-card slot so the sit flush solutions below work fine.

I could have used USB-3 to micro-SD card adapters that sit flush.

There are no USB-C to micro-SD adapters that sit flush, so they do not work for more modern Retina MacBook devices.

Via: [WayBack] Haha wow. Apple announced new Macbook Pro’s just little over 6 months after they did the last models. And now you do get all the stuff you wanted back then… – Jeroen Wiert Pluimers – Google+ (except 32 gigabyte RAM, that’s for later).

Either [WayBackTranscend 256GB JetDrive Lite 360 Storage Expansion Card for 15-Inch MacBook Pro with Retina Display (TS256GJDL360)

Or the adapter [WayBack] BASEQI aluminum microSD Adapter for MacBook Pro 15″ Retina (Late 2013 onwards) and one of:

–jeroen

Read the rest of this entry »

Posted in Apple, LifeHacker, Mac, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, Power User | Leave a Comment »

Stop Spotlight from Indexing Time Machine Backup Volumes & External Drives

Posted by jpluimers on 2018/06/11

  1. Connect the volume you want excluded to the Mac, even if Spotlight is currently indexing
  2. Launch “System Preferences” and click on “Spotlight” followed by the ‘Privacy’ tab
  3. Drag the drives icon into the Privacy window

Source and more information (including how to do this from the terminal): [WayBackStop Spotlight from Indexing Time Machine Backup Volumes & External Drives

–jeroen

Posted in Apple, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, macOS 10.12 Sierra, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »