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 4,227 other subscribers

Archive for October, 2017

Loss of Hewlett-Packard Archive a Wake-Up Call for Computer Historians – IEEE Spectrum

Posted by jpluimers on 2017/10/31

How not to preserve computer history:

The Wine Country fires destroyed an irreplaceable piece of Silicon Valley history

Source: [WayBack/Archive.isLoss of Hewlett-Packard Archive a Wake-Up Call for Computer Historians – IEEE Spectrum

Via: [WayBackAlan Cox – Google+

–jeroen

Posted in History | Leave a Comment »

Especially important for Delphi users on Windows 10 Creators Update: IDE Fix Pack 6.1 released | Andy’s Blog and Tools

Posted by jpluimers on 2017/10/31

The new [Archive.isIDE Fix Pack 6.1 released | Andy’s Blog and Tools is huge, especially for Windows 10 targets:

Windows 10 Creators Update 1703 caused issues with all Delphi programs, libraries and packages because it changed how Windows loads imported DLLs in such a way that it causes performance issues and can crash the debugger.

Delphi 10.2 Tokyo Update 2 fixed this by not producing multiple dll import sections for one DLL anymore.

IDE Fix Pack 6.1 implements that “feature” for all previous Delphi versions (2009-10.1 Berlin) and extends it to not only eliminate duplicate dll imports but also duplicate delay dll imports.

There are also (optional) updates that you can enable with new compiler switches:

  • Eliminating fwait instructions (but be careful, as they can confuse the debugger)
  • Optimising calls to virtual methods through interfaces
  • Optimising certain function prolog code

There are some smaller changes too.

I’m going to try this soon.

–jeroen

Posted in Delphi, Development, Software Development | 2 Comments »

Firebird – generate time/date/timestamp values

Posted by jpluimers on 2017/10/31

I needed the script in [WayBackFirebird – generate time/date/timestamp values to reproduce a problem in Database Workbench <= 5.3.2 with exporting TIME and TIMESTAMP values to Excel xlsx format: the time portion got lost so

The bug is fixed so will appear in the next beta and release versions: [WayBack] 0001506: Timestamp export to Excel XLSX only shows date, Time fails, CSV shows both date and time – Bug & Feature Tracker @ Upscene.com

–jeroen

Read the rest of this entry »

Posted in Database Development, Development, Firebird, Software Development, SQL | Leave a Comment »

Until someone writes proper string visualisers for the Delphi debugger…

Posted by jpluimers on 2017/10/31

A few tricks to write long strings to files when the Delphi debugger cuts them off (just because they like using 4k buffers internally);

  • TStringStream.Create(lRequestMessage).SaveToFile('c:\temp\temp.txt')
  • TIniFile.Create('c:\a.txt').WriteString('a','a',BigStringVar)
  • TFileStream.Create('c:\a.txt', fmCreate or fmShareDenyNone).WriteBuffer(Pointer(TEncoding.UTF8.GetBytes(BigStringVar))^,Length(TEncoding.UTF8.GetBytes(BigStringVar)))

They all work form the debug inspector, but they do leak memory. See comments below.

Via:

–jeroen

Read the rest of this entry »

Posted in About, Conference Topics, Conferences, Delphi, Development, Encoding, Event, Software Development | 6 Comments »

Android app writers: How to lose your end-users’ notification privilege…

Posted by jpluimers on 2017/10/30

Android apps make sounds when posting notifications. So adding useless gets you on the blacklist quickly thereby disallowing your app for posting any notifications at all.

Kristian shows how and why at

How to lose notification privilege:

  1. Use notification for marketing.
  2. Long press.
  3. Disable.

It’s that easy. You never force grab my attention for marketing a second time, especially since Android notifications by default come with sound now. This one woke me up.

–jeroen

Posted in Android Devices, Google, Power User | Leave a Comment »

 
%d bloggers like this: