(allows to switch between routes without reloading already loaded routes)
use this way:
@NgModule({
...
providers: [
{provide: RouterOutlet, useClass: PersistentRouterOutlet }
]
})
export class MyRoutingModule
{
...
β‘οΈ Index page: cheatsheets/index.md
π Cheatsheets for Topics: Cloud, DevOps, GCP, Helm, Angular, Rx, and Search-Solutions
β€οΈ One of the highlights: Comparison of State Management Solutions for Angular Apps:
(allows inserting HTML into the DOM)
{{ value | truncate:99 }}
(handeles recursive string-replacement in arbitrary objects and allows the generation of XML objects)
(unites value holder variable with EventEmitter)
starts all necessary apps for ng2 development: node, vscode, browser and 'ng serve'
(see comments for setting the necessary content of npmrc)
π§ necessary directory structure:
-- devenv
---- git
---- MsVSCode
---- nodejs
-- [yourapp]
supports accessing XML SOAP WebServices from Angular 2 apps
and
maps the response to native TypeScript objects
(based on https://github.com/autopulous/angular2-soap)
with LDAP helper, table column helper, Excel support, Templater, Logging, Utils, and
LINQ Extension:
Do you need to use a linq-based environment to call a stored procedure with unknown/unpredictable return structures?
You can use linq/LinqExtensions.cs
(as a simple 'dynamic' keyword does not lead to the expected result)
π Example:
public string getProcReturnAttribute(DataContext dataContext, string sAttrName)
{
string query = "EXEC [dbo].[SPO_GetData] {0}, {1}, {2}";
query = string.Format(query, οΏ½nameοΏ½, anEmail == null ? "NULL" : "'" + anEmail + "'", anID);
var datas = LinqExtensions.ExecuteQuery(dataContext, query);
foreach(var data in datas)
{
//data.getAllAttrs();
string sAttrVal = data.getAttr(sAttrName);
if(ILikeThisAttrVal(sAttrVal))
return sAttrVal;
}
return null;
}
A short presentation & introduction to its application in practice.
π docker/docker.pptx
MFC Visual Studio project to send Email through Outlook (COM)
π outlookEmailSender/sender.vcproj
π nagios_dyn_check_http.pl
Perl script to be called by NAGIOS to check if the HTTP connection is alive
π nagios_dyn_check_http/check_http.pl
Create a dynamic server landscape visualization with data flow, graphs and plots
Used technologies:
jQuery, AngularJS, jqPlot, Raphael (β€οΈ) ( https://en.wikipedia.org/wiki/Rapha%C3%ABl_(JavaScript_library) )
MFC Visual Studio 6.x project
Perl library with project independent useful functions
(e.g. cfg, logging, trim, ...)
π pllib/pllib.pl
Oracle DB search all Tables
Procedure with Bulk and Cursor operation
π sql/*.sql
Objective C Library with project independent useful functions
(e.g. XML parser, HTML parser, ZIP, ...)
π iIOS_objc_lib/*
HTML parser, Progress-Dialog,
OLE Automation to convert HTML to RTF with Word (COM)
Example:
void ConverttoRTF()
{
COLEWordAutomation _word;
if(FAILED(_word.m_hr))
return;
_word.OpenDocument(m_sInputFile);
//while(_word.Search("^g"))_word.Delete(); //don't remove pics!!!
CString sExt = ".rtf";
int iSaveAsType = RTF;
{ //DOC begin
CString soutputfile(m_sOutputFile+":");soutputfile.MakeLower();
if(soutputfile.Find(".doc:") > 1)
{
sExt = ".doc";
iSaveAsType = DOC;
{
CComPtr<IDispatch> pDispDocs;
pDispDocs.Attach(_word.m_pDispActiveDoc);
_word.EmbedPictures(pDispDocs);
pDispDocs.Detach();
}
_word.SaveAs(m_sOutputFile, iSaveAsType);
_word.CloseDocument();
_word.CloseWord();
return;
}
} //DOC end
_word.SaveAs(m_sOutputFile+sExt, iSaveAsType);
_word.CloseDocument();
_word.OpenDocument(m_sOutputFile+sExt);
{
CComPtr<IDispatch> pDispDocs;
pDispDocs.Attach(_word.m_pDispActiveDoc);
_word.EmbedPictures(pDispDocs);
pDispDocs.Detach();
}
_word.SaveAs(m_sOutputFile, iSaveAsType);
_word.CloseDocument();
::DeleteFile(m_sOutputFile+sExt);
_word.CloseWord();
}
Use the PlantUML Editor