Line chart of GINI coefficients for select economies since 1980
2015/04/02
Leave a comment
Based on this Dataset from the World Bank, a bit more recent than the Wikipedia Chart currently.
How to unstick the ALT key in KRDC RDP sessions
2015/03/15
Leave a comment
Categories: e-infrastructure
kde, krdc, linux, ms-windows, rdp
Getting Eclipse CDT to spell check non-source files
2015/03/02
Leave a comment
- Problem:
- Using Eclipse Luna CDT, with C/C++ spelling engine, to document C and C++ code in Doxygen (Eclox plugin),
- Spell check works for inline Doxygen documentation. My API-level code comments in *.[ch](pp)* files gets spell-checked alright (Well…:
- I had to download a decent dictionary to avoid recommendation like this one: . I am using the aspell dictionaries from here and here. This is before a restart/recheck:
- I still do not know how to teach the C++ spell check engine that a newline does not start a new sentence:
- The oft-referred to menu: Edit / Spell check does not show up for me:
- However, spell check ignores my standalone *.dox files with high-level documentation.
- What I have tried:
- Workaround:
- Terrible, but since a similar question is still open on stackoverflow): If you can (*.dox requires all comments to be within c-style comments anyway), rename your *.dox files to *.dox.cpp. Terrible, but works:
- A bit less terrible if you mange to store your standalone *.dox files as *.dox.cpp permanently do this if you get your Doxygen to handle these extensions.
- What is nice to see is that the spell-checker recognizes Doxygen’s built-in reserved words (as opposed to my custom-defined Doxygen-commands).
- Other things to try:
- I could not get Hunspell4Eclipse to work, despite going to considerable trouble getting the marketplace into my Eclipse installation
- I have not tried eSpell.
Bringing method documentation back into synch by using Textpad command line to jump to GrepWin matched line in file
2015/02/14
Leave a comment
- Objective: is checking, in one simple result window, multi-line matches of method signatures and their Doxygen comments from a multi-module, multi-directory C++ codebase, in order to spot inconsistencies, i.e. where code and documentation are out f synch:
- All this short of having to write a Parser or buying a tool like Atomineer Pro Documentation (which does look like it is “right on the money”, but, as it turned out to my surprise, also far short of getting this to work in Eclipse or on a Bash command line with Grep and Perl, ack (doesn’t do multi-line matches!), ag, or what-not. grepWin is free, has an easy-to-use, versatile interface, and proves, once again, to be a powerful little tool.
- A a sample (in reality not cut off, of course), 2 methods with their comments showing here:
- And I am only a click away from correcting errors I spot in my preferred editor that grepWin can link in “Settings””C:\Program Files (x86)\TextPad 7\TextPad.exe” %path%(%line%,0)
- Some grepWin quirk I do not understand:
Categories: e-infrastructure, service-is-documenting, service-is-programming
ack, bash, doxygen, eclipse, grep, grepwin, Perl, silversearcher, textpad
How to output a list of installed programs on Windows with PowerShell
2015/01/12
Leave a comment
A vanilla script, but including all Win32_Product class properties – a quick search found only a very basic version how to do this in PowerShell:
# to write a installed program listing to a CSV file - just adapt the output dir below Get-WmiObject -Class Win32_Product |` foreach{ $AssignmentType = $_.AssignmentType $Caption = $_.Caption $Description = $_.Description $IdentifyingNumber = $_.IdentifyingNumber $InstallDate = $_.InstallDate $InstallDate2 = $_.InstallDate2 $InstallLocation = $_.InstallLocation $InstallState = $_.InstallState $HelpLink = $_.HelpLink $HelpTelephone = $_.HelpTelephone $InstallSource = $_.InstallSource $Language = $_.Language $LocalPackage = $_.LocalPackage $Name = $_.Name $PackageCache = $_.PackageCache $PackageCode = $_.PackageCode $PackageName = $_.PackageName $ProductID = $_.ProductID $RegOwner = $_.RegOwner $RegCompany = $_.RegCompany $SKUNumber = $_.SKUNumber $Transforms = $_.Transforms $URLInfoAbout = $_.URLInfoAbout $URLUpdateInfo = $_.URLUpdateInfo $Vendor = $_.Vendor $WordCount = $_.WordCount $Version = $_.Version $Name | Select-Object ` @{n="AssignmentType";e={$AssignmentType}}, @{n="Caption";e={$Caption}}, @{n="Description";e={$Description}}, @{n="IdentifyingNumber";e={$IdentifyingNumber}}, @{n="InstallDate";e={$InstallDate}}, @{n="InstallDate2";e={$InstallDate2}}, @{n="InstallLocation";e={$InstallLocation}}, @{n="InstallState";e={$InstallState}}, @{n="HelpLink";e={$HelpLink}}, @{n="HelpTelephone";e={$HelpTelephone}}, @{n="InstallSource";e={$InstallSource}}, @{n="Language";e={$Language}}, @{n="LocalPackage";e={$LocalPackage}}, @{n="Name";e={$Name}}, @{n="PackageCache";e={$PackageCache}}, @{n="PackageCode";e={$PackageCode}}, @{n="PackageName";e={$PackageName}}, @{n="ProductID";e={$ProductID}}, @{n="RegOwner";e={$RegOwner}}, @{n="RegCompany";e={$RegCompany}}, @{n="SKUNumber";e={$SKUNumber}}, @{n="Transforms";e={$Transforms}}, @{n="URLInfoAbout";e={$URLInfoAbout}}, @{n="URLUpdateInfo";e={$URLUpdateInfo}}, @{n="Vendor";e={$Vendor}}, @{n="WordCount";e={$WordCount}}, @{n="Version";e={$Version}} }| Export-Csv c:\temp\installed-programs.csv -NoTypeInformation
Output:
Categories: e-infrastructure, service-is-documenting, service-is-programming
imaging, powershell, windows, wmi
Yet another couple of glitches solved in setting up Outlook 2013 with Gmail IMAP for GoogleApps
2014/12/19
Leave a comment
- I googled and followed this useful guide. However, a couple of glitches remained:
- Connection to Incoming mail server fails if you really just put your username:
- put instead of username@companygoogledomain.com:
- Test send of email message through outgoing server fails if you just followed instructions:
- Click on button: “More” / tab: “Outgoing Server” / do check box “My outgoing server requires authentication ” and log on (I now prefer to be explicit, after the initial mixup of usernames for incoming and outgoing), enter your full user@compgoogledomain.com and password. No need to enable SPA, though.
- Viola (and quousque tandem…, sigh ).
Categories: e-infrastructure, office-software
2013, gmail, imap, outlook
A little addendum about data types to the +N(“comment”) in-cell formula comment trick in Excel
=IF(
OR(
ISBLANK(
[Related issues]
),
( ISERR(
FIND(
“#“,
[Related issues]
)
) )
) +
N(
“do nothing if no related task in col:related issues“
),
““,
IF(
NOT(
ISERR(
FIND(
“,“,
[Related issues]
)
)
) +
N(
“do nothing if no 2nd value in col:related issues“
),
CONCATENATE(
MID(
MID(
[Related issues],
FIND(
“,“,
[Related issues]
) + 2,
LEN(
[Related issues]
) –
FIND(
“,“,
[Related issues]
) + 1 +
N(
“extracted the 2nd value from col:related issues“
)
),
FIND(
“#“,
MID(
[Related issues],
FIND(
“,“,
[Related issues]
) + 2,
LEN(
[Related issues]
) –
FIND(
“,“,
[Related issues]
) + 1
)
) + 1,
4
) +
N(
“extracted the 4# of id of related issue“
),
MID(
MID(
[Relatedissues],
FIND(
“,“,
[Relatedissues]
) + 2,
LEN(
[Relatedissues]
) –
FIND(
“,“,
[Relatedissues]
) + 1
),
FIND(
“ “,
MID(
[Related issues],
FIND(
“,“,
[Related issues]
) + 2,
LEN(
[Related issues]
) –
FIND(
“,“,
[Related issues]
) + 1
)
) + 1,
2 +
N(
“appended to or from to the 4# of id of related issue“
)
)
),
““
)
)