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 the ‘Fun’ Category

Laptop fan profiling, and debugging them – related to Profiling | CommitStrip

Posted by jpluimers on 2019/07/23

A while back, I posted the “profiling” CommitStrip on[WayBack] Profiling – Jeroen Wiert Pluimers – Google+. Boy how did I not know that within a week, I bumped into a “laptop fan profiling” artefact.

A coworker noticed, that when starting a thread based equivalent of [WayBack] TTimer Class (which cannot be used in services as it depends on the VCL), then sometimes the laptop fans would spin up.

What basically happened was that for certain combinations of Enabled and Interval the Execute would loop burning 100% of one CPU core.

With 3 or more – sometimes 2 – of these threads active on a 4+4 core (4 are hyper-threaded), the processor fan would start to spin like madness.

Finding the solution was somewhat easy too:

  • Process Explorer would show the thread IDs burning the most CPU cycles
  • Delphi shows the Thread IDs in the Thread Status pane (if they are named, the ID is at the end of the name in parenthesis)
  • At around Delphi 2010, you can Freeze or Thaw threads. This allows you to debug only a single thread by freezing all others.

Focussing on one thread, allowed a close inspection of the loop, quickly finding the actual cause and repairing it.

TTimer Thread

A similar and better class is at [WayBack] multithreading – TTimerThread – Threaded timer class – Code Review Stack Exchange, based on [WayBack] timer – Using VCL TTimer in Delphi console application – Stack Overflow.

Read the rest of this entry »

Posted in Conference Topics, Conferences, Debugging, Delphi, Development, Event, Fun, Multi-Threading / Concurrency, Profiling-Performance-Measurement, Software Development | Leave a Comment »

XKCD – Making Progress: lots of problems

Posted by jpluimers on 2019/07/10

I think the alt-text is even better than the cartoon itself:

I started off with countless problems. But now I know, thanks to COUNT(), that I have “#REF! ERROR: Circular dependency detected” problems.

Source: [WayBackXKCD 1906: I started the day with lots of problems. But now, after hours and hours of work, I have lots of problems in a spreadsheet.

–jeroen

Read the rest of this entry »

Posted in Agile, Development, Fun, Quotes, Software Development | Leave a Comment »

+Stefan Glienke​ at EKON21: I don’t count sheep, I count references.

Posted by jpluimers on 2019/07/08

+Stefan Glienke​ at EKON21:

I don’t count sheep, I count references.

Response from +Roald van Doorn​:

When you reach -1 you wake up from a nightmare.

Source: [WayBackJeroen Wiert Pluimers – G+

Posted in Conferences, EKON, Event, Fun, Quotes, T-Shirt quotes | Leave a Comment »

Geek And Poke: The New Developer

Posted by jpluimers on 2019/07/03

Old, but still so funny because it is so true: [WayBackGeek And Poke: The New Developer

–jeroen

via:

Read the rest of this entry »

Posted in Comics, Development, Documentation Development, Fun, Quotes, Software Development | Leave a Comment »

JS developers discover the char code for space is the same ASCII code for all browsers.

Posted by jpluimers on 2019/07/03

Somewhere in 2013, JavaScript developers found out the char code for space is the same ASCII code for all browsers at [WayBackJavascript Char Codes (Key Codes) – Cambia Research

An interactive javascript key code reference for javascript developers. Includes an interative text box where you can type a key and see it’s code along with a complete lookup table.

This contrary to EBCDIC, where space can be character code 40 and 41, but not at the same time (by [WayBack] Armin Kunaschik at[WayBack] Oh mein Gott – Kristian Köhntopp – Google+).

Via

–jeroen

Read the rest of this entry »

Posted in Development, Fun, JavaScript/ECMAScript, Scripting, Software Development | Leave a Comment »

As true today as it was when the book was written. “The psychology of computer programming” by @JerryWeinberg, 1971.

Posted by jpluimers on 2019/07/02

@ingorammer on Twitter [WayBack] a while back:

As true today as it was when the book was written. “The psychology of computer programming” by @JerryWeinberg, 1971:

Specifications evolve together with programs and programmers. Writing a programis a process of learning – both for the programmer and the person who commissions the program. Morover, this learning takes place in the context of a particular machine, a particular programming language, a particular programmer or programming team in a particular working environment, and a particular set of historical events that determine not just the form of the code but also what the code does!

Links:

–jeroen

Read the rest of this entry »

Posted in Development, Fun, History, Quotes, Software Development | Leave a Comment »

Supreme / Pearl Drums – Animal | Soundslice

Posted by jpluimers on 2019/06/27

[WayBack] Supreme / Pearl Drums – Animal | Soundslice. Found based on a low-quality video in a private FB channel.

This one is much better (:

–jeroen

Posted in Fun, LifeHacker, Music | Leave a Comment »

Amazon.com: Kaimebien I Before E Weird Grammar Teacher 11 Ounces Coffee Mug: Kitchen & Dining

Posted by jpluimers on 2019/05/20

Want: mug of [WayBackWeird Meme on me.me:
I Before E
Except When Your Feisty Foreign Neighbor Keith Leisurely Receives Eight Counterfeit Beige Sleighs From Caffeinated Atheist Weightlifters
Weird

Via:

See also I before E except after C – Wikipedia

Mug: [WayBackAmazon.com: Kaimebien I Before E Weird Grammar Teacher 11 Ounces Coffee Mug: Kitchen & Dining

–jeroen

Read the rest of this entry »

Posted in Fun, Quotes | Leave a Comment »

Did you hear about the man who got cooled to absolute zero? He’s 0K now.

Posted by jpluimers on 2019/05/09

Did you hear about the man who got cooled to absolute zero? He’s 0K now.

The oldest reference I could find is at [Archive.isScience Joke – 5.

Via G+

–jeroen

Posted in Fun | Leave a Comment »

@rw@mastodon.social on Twitter: “Personally, I prefer to increase the spacing for each successive indent according to the Fibbonaci sequence:… “

Posted by jpluimers on 2019/05/01

Awesome! [WayBack@rw@mastodon.social on Twitter: “Personally, I prefer to increase the spacing for each successive indent according to the Fibbonaci sequence:… “

Via [WayBack] The indentation debate just ended – G+ – CodeProject

–jeroen

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