Interesting thought [WayBack] In windows, can I redirect stdout to a (named) pipe in command line? – Super User.
The only problem seems to be a good way of creating/removing those pipes.
–jeroen
Posted by jpluimers on 2019/01/14
Interesting thought [WayBack] In windows, can I redirect stdout to a (named) pipe in command line? – Super User.
The only problem seems to be a good way of creating/removing those pipes.
–jeroen
Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows | Leave a Comment »
Posted by jpluimers on 2019/01/10
A search for empty “Reference.cs” – Google Search seems to indicate this happens with referenced types that – despite turning off that option – from the Visual Studio 2017 IDE sometimes results in an empty Reference.cs.
My solution: import in an empty project, then move the reference to the existing project and add it.
[WayBack] c# – Sometimes adding a WCF Service Reference generates an empty reference.cs – Stack Overflow
–jeroen
Posted in .NET, C#, Development, Software Development, Visual Studio 2015, Visual Studio 2017, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2019/01/10

Using OpenSuSE Tumbleweed E20 on Raspberry Pi 3: accessing the enlightenment desktop over VNC after automatic logon I wanted to buy an on-line read-only diary to help my mentally retarded brother see what his next few days are going to be like.
He increasingly has difficulty handling a paper agenda and has an agenda with 30 minute blocks like [Archive.is] bol.com | Bureau Agenda 2017 – 1 dag per Pagina | 0041560163422 | Boeken (and the [Archive.is] picture on the right), but actually he needs 15 minute blocks during some portions of the day.
We call that kind “bureau agenda” which I think translates well into “desk diary”.
They were quite different from the agendas I used to have at school (:
[WayBack] [Zonder titel] Rijam agenda 1983/84 verzamelen? Stripcatalogus op Catawiki
For most school mates, they were more like this:
Had je een O’Neill of ging je voor De Familie Doorzon? De oude agenda’s uit je middelbare schooltijd zijn de verpersoonlijking van je eigen puber-ik. Afgelopen weekend startte in het Nationaal Onderwijsmuseum in Dordrecht de toffe tentoonstelling Grow Up over die vuistdikke, volgeplakte agenda’s.
Anyway, some ideas I initially had are below.
This is what I actually did:
iframe as per [Archive.is] Boyden, Mark – Embedding Google Calendars – Programming – Content andiframe heights as when you specify 100% it will shrink to the height of the content. For full screen height, the 100vh (ViewportHeight) seems to do the trick as per [WayBack] javascript – Full-screen iframe with a height of 100% – Stack Overflow and [WayBack] CSS Values and Units Module Level 3: Viewport-percentage lengths: the vw, vh, vmin, vmax unitsTwo things for the future:
Raspberry based:
mode, wkst, etc).Chromecast based:
–jeroen
Posted in Development, Google, GoogleCalendar, Hardware Development, JavaScript/ECMAScript, JSFiddle, LifeHacker, Power User, Raspberry Pi, Scripting, Software Development | 2 Comments »
Posted by jpluimers on 2019/01/09
Basically I learned that I should not only look for ClassType, but also for MetaclassType: [WayBack] Not a major problem, but given that xProp is a TRttiProperty instance is there a better way to get the ClassType of a property that is tkClass? – Chad Hower – Google+:
Chris Rolliston
The
System.Rttiway is this –
x := xProp.PropertyType.AsInstance.MetaclassType;Been in since
TRttiContextwas first added, IIRC.
It indeed has been documented since Delphi 2010: [Archive.is] Rtti.TRttiClassRefType.MetaclassType – RAD Studio VCL Reference
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2019/01/09
Though normally you would write documentation in reStructuredText, then generate HTML or PDF, often you find a part of the documentation source in HTML.
Here are some sites and tools I’ve used to convert HTML fragments to reStructuredText. I favour on-line over local command-line tools as usually these kinds of conversions are “one-time only”.
–jeroen
Posted in Development, Lightweight markup language, reStructuredText, Software Development | Leave a Comment »
Posted by jpluimers on 2019/01/09
In my search for starting the Windows Credential Manager from the console, I found [WayBack] Credential Manager Shortcut – Create – Windows 7 Help Forums explaining:
%windir%\explorer.exe shell:::{1206F5F1-0569-412C-8FEC-3204630DFB70}
This reminded me of From batch file or shortcut: start Windows Update (via: Windows 7 Help Forums) and batch-file trick: Starting Windows Explorer and selecting a file (“explorer” commandline parameters “/n” “/e” “/select” “/root” “/start” site:microsoft.com).
The odd thing is that some of the GUID shortcuts works fine using the shell::: syntax, but fail with the /e:: syntax, for instance Windows Update until Windows 8.1:
%windir%\explorer.exe shell:::{36eef7db-88ad-4e81-ad49-0e313f0c35f8}
%windir%\explorer.exe /e,::{36eef7db-88ad-4e81-ad49-0e313f0c35f8}
One day I’ll create a table of permutations for various Windows versions and execute options.
For now these links need to suffice:
–jeroen
Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows 9 | 1 Comment »
Posted by jpluimers on 2019/01/08
[WayBack] Delphi sorcery: Loop wars – measuring performance – already showing some nice optimisations that should have been in the RTL into the first place, – sprouted into a nice discussion at [WayBack] Since there was this offtopic argument going on about performance of for-in versus for-to. – Stefan Glienke – Google+ with some relatively straightforward forand for ... in loop compiler optimizations that could be done, but we have dreamt of for like the last decade or two.
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2019/01/04
Interesting: [WayBack] DBA Blog 2.0: Installing Zabbix into Azure using a MySQL PaaS
–jeroen
Posted in *nix, Azure Cloud, Cloud, Cloud Development, Development, Infrastructure, Monitoring, Power User, Software Development, Windows Azure, Zabbix | Leave a Comment »
Posted by jpluimers on 2019/01/03
Reminder to self: [WayBack] …The IOTAComponent method SetPropByName, when used for an integer property, always sets that property to 0 instead of the desired value…. – Thomas Mueller (dummzeuch) – Google+
Fix in GExperts for the Rename Component functionality in [WayBack] GExperts / Code / Commit [r2318]: Workaround for an apparent OTA-bug: IOTAComponent.SetPropByName for integers always sets the property to 0 instead of the given value. Now we compare the values and if they don’t match use RTTY on the NativeObject to set it. This seems to work. (The bug exists on Delphi 2007 and 10.2, I haven’t tested other versions. The bugfix also works on these versions.):
VInteger := StrToInt(Value);
Result := AComponent.SetPropByName(PropertyName, VInteger);
+ if AComponent.GetPropValueByName(PropertyName, TempInt) then begin
+ // Setting an integer property often (always?) fails, so we check the value here and if
+ // it is different, we use the native object to set the value. This works.
+ // (Example: Try to set the Interval property of a TTimer. It always gets set to 0.)
+ // This happens in Delphi 2007 and 10.2, I haven't tested other versions.)
+ // -- 2018-07-16 twm
+ if TempInt <> VInteger then
+ SetPropValue(NativeObject, PropertyName, VInteger);
+ end;
Only the IOTAComponent interface is mentioned (only once!) in the documentation at [Archive.is] Using Editor Interfaces – RAD Studio, so I have ambivalent feelings on how important this is for Embarcadero to fix IOTAComponent.SetPropByName.
It has been broken since at least Delphi 2007 as per GExperts fix and XE3 as per [RSP-20895] IOTAComponent.SetPropByName always sets an integer to zero – Embarcadero Technologies.
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »