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

Archive for December, 2018

To Heap or not to Heap; That’s the Large Object Question? – CodeProject

Posted by jpluimers on 2018/12/27

Interesting discussion on an alternative to the LoH: [WayBackTo Heap or not to Heap; That’s the Large Object Question? – CodeProject.

Via: [WayBack] To Heap or not to Heap; That’s the Large Object Question?Detailed analysis of large object heap allocation impacts under .NET: “…would it be better t… – Lars Fosdal – Google+

–jeroen

 

Posted in .NET, Development, Software Development | Leave a Comment »

Delphi: AutoSize property resizes a container (panel, scrollbox, form, frame…) to grow it to fit all controls

Posted by jpluimers on 2018/12/26

A while back I needed a design-time way to automatically resize a Delphi container control (descendants from the, [WayBackTWinControl Class like [WayBack] TPanel, [WayBack] TScrollbox, [WayBack] TForm, [WayBack] TFrame) to grow/shrink so it just fits around it’s contained controls.

Back then I needed it for VCL design time, if possible taking into account non-visual components.

The [WayBackTControl.AutoSize Property does just that for visual controls and works way better than suggestions on doing this manually.

Manually adjusting many controls at design time is a tedious job, especially when trying to prevent mouse usage (I’ve had RSI in the early 1990s, so I’m extra careful).

Thanks Uwe Raabe for helping me out on this.

I’ve not had the need for non-visual components or FMX yet, but if I ever need it, then this piece of code by Stefan Glienke might work:

[Archive.is[Delphi] ResizeControlEditor – Pastebin.com

–jeroen

Source: [WayBack] Is there an expert that can resize a container (panel, scrollbox, form, frame, etc) to be just large enough so it fits all it components?So: grow when… – Jeroen Wiert Pluimers – Google+

Read the rest of this entry »

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

Need to play with this: Raspberry Pi web simulator from Microsoft Corporation

Posted by jpluimers on 2018/12/26

It’s been a while since [WayBack] +Microsoft Corporation has recently released a preview version of an open source +Raspberry Pi web simulator where you can connect sensors and component… – Jean-Luc Aufranc – Google+

Back then it was convoluted to get going. Hopefully by now that has changed.

So time to take another look during the holiday season:

 

It reminded me a lot of [WayBackBring ideas to life with free online Arduino simulator and PCB apps | Autodesk Circuits (a.k.a. circuits.io):

Read the rest of this entry »

Posted in *nix, Development, Hardware, Hardware Development, Hardware Interfacing, Linux, Power User, Raspberry Pi, Software Development | Leave a Comment »

TED Talks on Twitter: “The real reason female entrepreneurs get less funding: @KanzeDana… they get asked different questions than male ones”

Posted by jpluimers on 2018/12/26

Interesting watch: [WayBack] TED Talks on Twitter: “The real reason female entrepreneurs get less funding: @KanzeDana… “

Via: [WayBack] The real reason female entrepreneurs get less funding … Gender gap in startup funding: Dana Kanze and collaborators found a surprising… – Marjan Venema – Google+

Gender gap in startup funding: Dana Kanze and collaborators found a surprising, consistent trend: in meetings with funders, men and women were being asked completely different types of questions.

Video at [Archive.is/WayBackDana Kanze: The real reason female entrepreneurs get less funding | TED Talk

 

–jeroen

Posted in Awareness, History | Leave a Comment »

Carmen Verheul on Twitter: “ik lees miv tweede kerstdag van 7 tot 12 uur, matijn van 13 tot 19 uur, michel van 20 tot 24 uur… “

Posted by jpluimers on 2018/12/26

“@jpluimers @matijn ik lees miv tweede kerstdag van 7 tot 12 uur, matijn van 13 tot 19 uur, michel van 20 tot 24 uur”

Voor zometeen als we in het [Archive.is] Top 2000 Café | Beeld en Geluid zijn: [WayBack] Carmen Verheul on Twitter: “ik lees miv tweede kerstdag van 7 tot 12 uur, matijn van 13 tot 19 uur, michel van 20 tot 24 uur… “

De [WayBack] Over de NOS – Onze mensen: Nieuwslezers op Twitter:

In de nacht is er de “nieuwslezer van dienst”: [WayBackMatijn Nijhuis on Twitter: “de nachtlezer die voor alle zenders leest

Carmen en Matijn zijn sowieso een stel apart (:

–jeroen

PS: Het is al vaak door me heen gegaan. De lijm van Radio 2 zit in de nieuwslezers: de nieuwslezers hebben behalve een perfecte verbinding met de DJ’s, ook de verbinding tussen de diverse programma’s. Dat zorgt voor een totaal-sfeer over de dag heen wat bij andere zenders goeddeels ontbreekt. Wat inmiddels ook helpt is dat diverse DJ’s aan het einde de DJ van het volgende programma live in de uitzending hebben, maar de nieuwslezers vormen nog steeds de basis.

Read the rest of this entry »

Posted in LifeHacker, Power User, SocialMedia, Twitter | Leave a Comment »

eventviewer – View Shutdown Event Tracker logs under Windows Server 2008 R2 – Server Fault

Posted by jpluimers on 2018/12/25

Works on translated systems:

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

Or on one line:

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

I’ve adapted the custom view to include all these event IDs above:

  • 12: The operating system started at system time ‎<iso8601utc>.
  • 13: The operating system is shutting down at system time  <iso8601utc>.
  • 109: The kernel power manager has initiated a shutdown transition.
  • 1074: [WayBack] The process <process> has initiated the restart of <computer name> for the following reason: No title for this reason could be found.
    Minor Reason: <reason>
    Shutdown Type: <type>
  • 1076: [WayBack] The reason supplied by user <user name> for the last unexpected shutdown of this computer is: <error description>
    Reason Code: <error code>
    Bug ID: <bug id>
    Bugcheck String: <string>
    Comment: <comment>
  • 6008: [WayBack] The previous system shutdown at <time> on <date> was unexpected.

Steps for the custom view:

Open Event Viewer then

  • Right click Custom Views
  • Click Create Custom View
  • Under the Filter tab
    • Keep Logged as Any time
    • Select all the Event level types (Critical, Warning, etc.)
    • Choose by source = Windows Logs > System
    • For Event ID under the Includes/Excludes Event IDs section enter 12,13,1074,1076,6008 for the Event ID
  • Click Ok
  • Enter a name like Shutdown Events and any description then
  • Click Ok again to complete the custom event log.

Your new custom view should show up in the list of custom views with the correct filter applied.

Source: [WayBackeventviewer – View Shutdown Event Tracker logs under Windows Server 2008 R2 – Server Fault

–jeroen

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

50 Shades of Grain

Posted by jpluimers on 2018/12/25

Have a good holiday season!

[WayBack50 Shades of Grain – Lars Fosdal – Google+: Adult cereals.

Original from [WayBackShopping Can Be Quite Entertaining 20 pics

–jeroen

Read the rest of this entry »

Posted in Fun | Leave a Comment »

Time to let go of prejudices: We are all much more the same than we are different.

Posted by jpluimers on 2018/12/25

All of humanity is more alike than different. This holds for generations as well:

the findings suggest meaningful differences among generations do not exist!

Let this be a thought in these days at the end of december: enjoy that we all are so much alike, and help each other succeed.

Source: [WayBackGenerations At Work: Persistent Myths Vs. Actual Science | Corporate Rebels.

In an article for Forbes Magazine, we busted the persistent myth that different generations have different needs and desires at work. Back then we were talking about popular-press articles claiming that, for…

Via: [WayBack] Time to let go of prejudices: Generations At Work: Persistent Myths Vs. Actual Science | Corporate Rebels – Marjan Venema – Google+

–jeroen

Posted in About, History, Personal | 2 Comments »

It’s actually only “Helvetica” if it comes from the Helvetia region of Europe. Otherwise you have to call it “sparkling Arial”

Posted by jpluimers on 2018/12/24

Check out [WayBackPavel A. Samsonov on Twitter: “It’s actually only “Helvetica” if it comes from the Helvetia region of Europe. Otherwise you have to call it “sparkling Arial””

Too much font goodness:

–jeroen

Read the rest of this entry »

Posted in Font, Fun, Power User | Leave a Comment »

How to Setup Chroot SFTP in Linux (Allow Only SFTP, not SSH)

Posted by jpluimers on 2018/12/24

If you want to setup an account on your system that will be used only to transfer files (and not to ssh to the system), you should setup SFTP Chroot Jail.

This explains how: [WayBack] How to Setup Chroot SFTP in Linux (Allow Only SFTP, not SSH)

Posted in *nix, *nix-tools, Communications Development, Development, Internet protocol suite, Power User, SFTP, SSH, TCP | Leave a Comment »