Logo
Color-Of-Code
  Home   All tags   Terms and Conditions

Work in progress: Content is being ported from the precedent site into this site

C# Extending classes

January 10, 2019

Possible ways to extend a class Meaning providing additional methods to a class Extension methods "Extension methods enable you to "add" methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original…

Windows Tweaks

January 10, 2019

Windows tips and tricks Windows 7 "god mode" This allows to see all system settings in one window. Create a folder named You can use anything in place of All Settings, the most important the point and what comes after the point. Energy options http…

Software metrics

January 09, 2019

Moving away from the old fashioned source code metrics Thanks to modern source code management, we are now able to collect not only spatial metrics on source code, but also temporal metrics. By spatial metrics, I mean the metrics measuring the…

Raspberry tweaks

January 09, 2019

Raspi Raspberry pi 2 OSMC installed as OS root account: ''osmc'', ''osmc'' by default Automatically expands to full SD size Enable WIFI: Internet radio: Added webinterface.chorus to have netbios resolution

Funani

January 09, 2019

REWORK NEEDED FUNANI GOAL: FUNANI is an open source project aiming at solving the management of large image and other media collections in a practical way. Finding the data you want in big data collections is usually a big pain and consumes a lot of…

Size Reporter

January 09, 2019

SizeReporter License Agreement . Introduction SizeReporter generates a CSV/TSV/XML report of the disk usage: CSV: Comma separated values (";") TSV: Tab separated values XML: XML format It runs from the console and can be triggered by scheduled jobs…

Stdc.NET

January 09, 2019

Stdc - Helps porting C code to .NET Rationale Porting C code to .NET doesn't sound like being fun. And it is mostly for sure not funny... The mind breaking rewriting of printf formatting code to String.Format formats can cost a bunch of time and is…

Database Terms

January 08, 2019

Database terms Definitions / Rules Entity <--> Database Table. \ Naming convention: singular, uppercase Instance of an entity <--> Database Row (or Tuple or Record) Attribute <--> Database Column (or Field). \ Naming convention: singular, lowercase…

Set Top Box

January 07, 2019

STB Linux OpenAtv Important Features: FBC (Full Band Capture), See https://wiki.openpli.org/Full Band Capture

DOORS DXL

January 07, 2019

DOORS DXL Tips Deactivation of (dangerous) the auto-declaration feature (put it for example in ) Pitfalls Beware of functions with string parameter Functions that have only one string as parameter IGNORE the parenthesis. This often leads to…

PERL

January 07, 2019

Perl programming language perl :  Practical Extraction and Report Language Regular expressions %%{[(%%)^$.|*+?\   are metacharacters (must be escaped) regexes        consume as much input as possible (greedy by default) \ \b    matches word…

ACQC.Metrics

January 07, 2019

Advanced Code Quality Center ACQC-Metrics License Agreement . **Quantify the quality of your code and develop higher quality code! \ ** ACQC Metrics computes typical source code file and function metrics . What are metrics good for? Well, it…

BPMN plugin dokuwiki

January 07, 2019

BPMN IO plugin for Dokuwiki See https://www.dokuwiki.org/plugin:bpmnio Example

Test Flowchart

January 05, 2019

Test remark-flowchart Normal With color Tribut to locize END

Test Graphviz

January 05, 2019

Test remark-draw graphviz Examples taken from the DOT pocket reference Example 1: Simple Graph Example 2: K6 Example 3: Simple Digraph Example 4: Full Digraph Example 5: Showing A Path Note that there's also a shorthand method as follows: Example…

Test Mermaid

January 05, 2019

Test remark-draw mermaid Gantt sequenceDiagram classDiagram gitGraph

Test React

January 05, 2019

Test Embedded Counter component

Git-Annex

January 05, 2019

Git Annex Introduction git-annex main project page GitMinutes #16: Joey Hess on git-annex File synchroniszation using git-annex assistant Large file management with git-annex NOTE: gitlab migrated from git-annex to git-lfs: https://docs.gitlab.com…

Test Bob

January 05, 2019

Test remark-draw bob Illustration of svgbob capabilities Copied directly from the SvgBobRus repo .

Test

January 03, 2019

Test remark-draw dot Examples taken from the DOT pocket reference Example 1: Simple Graph Example 2: K6 Example 3: Simple Digraph Example 4: Full Digraph Example 5: Showing A Path Note that there's also a shorthand method as follows: Example…

GoF: Observer pattern

January 02, 2019

Observer Goal A subject object, maintains a list of its dependents, called observers, and notifies them automatically of any state changes. UML {{ http://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Observer.svg/500px-Observer.svg.png|Observer…

GoF: Singleton pattern

January 02, 2019

Goal Restrict instanciation of a class to one object. UML {{ http://upload.wikimedia.org/wikipedia/commons/thumb/f/fb/Singleton UML class diagram.svg/200px-Singleton UML class diagram.svg.png|UML Diagram}} C Having a sealed class and private…

GoF: Visitor pattern

January 02, 2019

Visitor Goals Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates. This pattern usually makes use of a double…

Calling Conventions

January 02, 2019

Calling Conventions A calling convention defines how data exchange is handled during a function call between a caller and callee. How/where parameters are stored and in which order Who is responsible of cleaning up the storage area for the parameters…

Git-Annex: Compile

January 02, 2019

Building git annex 64 bit version under windows Prerequisites cygwin 64 bit: gcc rsync git wget ssh gnupg git for windows 64bit Haskell 64 bit NullSoftInstaller for building the setup Get the source clone git-annex (git://git-annex.branchable.com…

Index page

January 01, 2019

Projects bpmnio plugin for Dokuwiki (open source) Funani is project aiming at managing large collections of pictures Stdc.Net helps to port C code to the .NET platform in an easy and fast way ACQC A platform for source code analysis Size Reporter…

Blender shortcuts

January 01, 2019

Blender Links to the very nice Blender Wiki mainly for my own convenience. For more advanced help and details regarding blender, please refer to it. Getting started Wikibooks hotkeys Blender HotKeys In-depth Reference

Common shortcuts

January 01, 2019

Common shortcut Key names   = Control key = Break key (usually in the top-right area of the keyboard) = Print screen key (usually near break)    = Windows key (or linux key on some keyboards!) Trick How to bring back a window out of screen: right…

Synology backup

January 01, 2019

Daten - Backup Wenn die Synology an ist, kann auf dem Backup (Nur Lesend) an diesem zugegriffen werden: \ SYNDEHAAN\NetBackup Die Anmeldung erfolg mit dem mitgeteilten Benutzerkonto. Die Daten werden in einen Verzeichnis gespiegelt und während des…

Synology settings

January 01, 2019

Settings (DS415+) Storage Calculators Synology RAID calculator Data loss RAID calculator RAID 5 vs RAID 6 RAID 5 vs SHR (German) Don't use RAID 5 on small arrays RAID 5 stops working in 2009 RAID 6 stops working in 2019 Beware of URE (Unrecoverable…

Hardware disk to vbox vdi

January 01, 2019

Hardware virtualization Ab in die VM Laufendes Windows-System mit Disk2VHD als virtuelle Maschine weiterverwenden Tested with Windows 7 disk2vhd: create a vhd (without vhdx!) transform the vhd into vdi with setup a vm with VirtualBox & test if you…

Linux Containers

January 01, 2019

LXC - Linux containers Wikipedia: LXC LXC tutorial step by step LXC Overview Exploring LXC networking Getting started LXCs System containers to isolate servives LAMP in an LXC Ubuntu setup Install basic support tools: Check the configuration: List…

C# equality vs identity

January 01, 2019

C# Equality vs Identity Reference Microsoft: Guidelines for Overriding Equals() and Operator == Pay attention Equality means the objects have the same value , but are not necessarily the same instance Identity means the objects point to the one and…

C# numeric promotions

January 01, 2019

Promotion rules are in some situations quite tricky to understand. Here is the list of applied rules so the situations where an explicit cast is needed get clarified. From ECMA-334 14.2.6.1 Unary numeric promotions Unary numeric promotion occurs for…

Funani: Data Storage

January 01, 2019

Data storage Rationale Data is stored on disk, Metadata is stored in a database. How the data in the database is structured is defined in another blueprint: metadata storage . The metadata in the database also contains a link back to the data. The…

Funani: Other software projects

January 01, 2019

Other Projects Free projects dealing with media management: kphotoalbum (GPL) : tool to help me describe my images, and to search in the pile of images. http://iipimage.sourceforge.net/ (GPL) : light-weight streaming client-server system for the…

Funani: Settings

January 01, 2019

Global Settings Rationale Global system settings have to be persisted. These settings are global to the whole system and allow administrators to steer and setup the global behavior of the system. Introduction By now it is not clear how many settings…

Funani: User Management

January 01, 2019

User Management Rationale Users must be declared and registered on the system to be able to access and record data on the system. Anonymous access can be granted to some extent with the exception of persisting all features and settings related to…

List of FOSS

January 01, 2019

Greatest Free and Open Source Software Quite often people hear or use software that is free of charge (freeware). Here I want to present great software that is additionally Open Source. This additional requirement is important to me as I like to have…

Stopwatch

December 30, 2018

Assembly (reference) Using directive Code Note is equivalent to

C# Clipboard Custom Format

December 28, 2018

Clipboard custom format CF_HTML HTML Clipboard format Code to convert a standard valid HTML string into CF_HTML, the clipboard representation of HTML

C# Detect if a process needs user input

December 28, 2018

Problem description Some time ago, I asked a question on stackoverflow.com. How to programmatically (C#) determine, if ANOTHER external application (native, java, .NET or whatever...) is currently demanding user input? Could this be done fully in…

Git: Bare

December 28, 2018

Git Bare After that git fetch will update all branches. See SO: Git Fetch fails to work on bare repo, but git pull works on normal repo for details

Git: Tagging

December 28, 2018

Git Tagging retroactively

Svn to Git

December 28, 2018

Backing up subversion repositories Introduction The source code is - as the name already tells - the real valuable data for software development. Therefore a proper backup of this important data is absolutely required. Backups shall provide…

Svn to Git

December 28, 2018

SVN to GIT Interesting additional tools Understanding git https://rtyley.github.io/bfg-repo-cleaner/ git-filter-branch git subtree split https://developer.atlassian.com/blog/2015/05/the-power-of-git-subtree/ Conversion of some properties (.gitignore…

C# Path Handling

December 28, 2018

Absolute and relative path manipulation Assembly (reference) Using directive Code to convert to an absolute path Converts path to an absolute path relatively to the basePath. The code also works properly if the path is already absolute. If the…

Derivatives

December 27, 2018

Derivatives is a constant , are functions of a variable Basic properties Product rule Quotient rule Chain rule Polynomials

Integrals

December 27, 2018

Integrals , , , , are constants , , are functions of a variable Basic properties Properties Chasles' theorem: Linearity Integration by substitution when substituting Integration by parts Common integrals Polynomials Others

Visio shortcuts

December 27, 2018

Visio keyboard shortcuts Visio shortcuts are not directly visible in the GUI hence the difficulty to get them. This list was contributed by Reinmar Mück. Many thanks for the effort. NOTE: This is a subset of the shortcuts optimized to contain the…

XML serialization

December 27, 2018

XML serialization Assembly (reference) Using directive Code: Creation of the serializer The following code generates a serialization assembly on the fly (on first execution). This assembly is then used to read and write objects of the specified type…

Funani: Rating

December 27, 2018

Rating Rationale The rating module enables users to rate an object in the Funani database: picture, video or just anything else. The rating enables a prioritization of the media being shown to users. Each user can modify his own rating and get…

Funani Technology

December 27, 2018

Introduction A set of standard tools has to be selected among a wide set of possibilities. What type of database to choose for storing and retrieving Metadata efficiently and scale with large amounts of data? Requirements Free and open source and…

SMTP

December 27, 2018

C# SMTP Assembly (reference) Using directive Code: send an Email For details: http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx

Patterns

December 27, 2018

Software Design Patterns Taken from Wikipedia, personal adaptations and additions made, shortened to be used as a small reference card, links back to wikipedia kept for details. See also Software Anti-Patterns . Architectural patterns Choice: How is…

C# String formatting

December 27, 2018

C# String formatting Formatting is bound to a type , so depending on which type of object you pass to String.Format, you have different format specifiers. The index specifies the position of the parameter that shall be used for that format specifier…

GIMP shortcuts

December 27, 2018

GIMP Gimp toolbox They are customizable in the Edit -> Keyboard Shortcuts menu The default shortcuts are presented here (From version 2.6) NR Key Name Type Default Ctrl Shift Alt 01 Rectangular selection Selection Rectangle Center Square 0…

Anti-Patterns

December 27, 2018

Software Anti-Patterns Taken from Wikipedia, personal adaptations and additions made, shortened to be used as a small reference card, links back to wikipedia kept for details. See also Software Design Patterns . Organizational anti-patterns Detect…

IXmlSerializable

December 27, 2018

IXmlSerializable Introduction Yeah, I know, this is yet another article about XML serialization... After having seen several issues in code using or demonstrating XML serialization on CodeProject (and having struggled with these issues myself!), I…

Programming Terms

December 26, 2018

I often had trouble reading complicated explanations about some terms and the list here tries to make a definition that can be understood by normal human beings without theoretical mathematics and other higher level skills. Letter Term Meaning "A…

Color of Code: License

December 26, 2018

FREEWARE SOFTWARE LICENSE AGREEMENT Copyright 2010-2019 Jaap de Haan, https://www.color-of-code.de NOTICE TO USER You may not use this software except in compliance with the License. Please, read this carefully. By using all or any portion of the…

StringBuilder

December 26, 2018

C# and performance of string building Introduction Strings are immutable in C#. That means that a string never gets modified by any operation. This implies that, when you call Replace for example the operation is never done in-place. Instead a new…

Funani: Architecture

December 26, 2018

Global architecture Client/Server The overall architecture is client/server based. Several clients can access the server at the same time. The server is holding the data to be served. This content is the raw data that was uploaded (the files) and…

Funani: Rationale

December 26, 2018

Funani: Rationale Why yet another media management system? There are already great existing free software projects aiming at similar goals. None of them could satisfy all these requirements: Robustness against file renaming (many tools just link…

Text to Speech

December 25, 2018

C# Text to Speech Assembly (reference) Using directive Code: say "hello world" Code: list available voices

C# Exception handling

December 24, 2018

C# Exception Handling Can I ignore exceptions? No. Exceptions are thrown by the .NET framework in many places, FileNotFoundException, FormatException on conversions, ... A ThreadInterruptedException may occur anywhen. On function calls you might…

Ubuntu Data Rescue

December 24, 2018

Ubuntu data rescue example 1: System does not boot anymore after an OS upgrade (kernel panic). Data is on a LVM. example 2: System does not boot anymore (HDD errors). Data is on an ext3 partition. Example 1 System does not boot anymore after an OS…

Ubuntu Tweaks

December 24, 2018

Ubuntu Tweaks BtrFS snapshot settings https://wiki.archlinux.org/index.php/snapper snapperd is managing the snapshots there are a couple of systemd services to trigger snapshots Disable snapshot on boot: Edit to reduce snapshot pressure on the…

Quotes

December 23, 2018

Quotes Computers We will encourage you to develop the three great virtues of a programmer: laziness, impatience, and hubris. - Larry Wall Walking on water and developing software from a specification are easy if both are frozen. - Edward V Berard If…

Haskell: category theory

December 22, 2018

Category Theory & Haskell programming language https://www.seas.upenn.edu/~cis194/spring15/lectures.html https://wiki.haskell.org/Learning_Haskell http://yogsototh.github.io/Category-Theory-Presentation https://bartoszmilewski.com/2014/10/28/category…

Chrome special pages

December 20, 2018

Chrome special pages The links were tested with google chrome version 42.0.2311.90 About pages for chrome page description about:about Lists some of the about pages about:blank Shows up a blank page about:conflicts Lists all loaded dlls and their…