Giter Club home page Giter Club logo

skllib's Introduction

SklLib

Library to ease common programming tasks.

skllib's People

Contributors

skarllot avatar

Stargazers

weli avatar

Watchers

 avatar James Cloos avatar  avatar

skllib's Issues

Config file validation bug

What steps will reproduce the problem?

  1. ConfigFileBase.IsValidFile(anyValidConfigFile)

What is the expected output? What do you see instead?
True is expected, but return false.

In IO.cs (b155a81) line 60, is validating section with ']'.
Need change "str.Length - 1)))" to "str.Length - 2)))".

ConfigFileBase Encoding

ConfigFileBase should allow to choose config file encoding.
Current release only read and write UTF-8 config files.

Basic multilocker

Should be developed a basic multilocker, based on:

  • Lock: _lock |= 1, _lock |= 2, _lock |= 4 ...
  • Unlock: _lock &= ~1, _lock &= ~2, _lock &= ~4 ...
  • Islocked: (_lock & 1) == 1, (_lock & 2) == 2, (_lock & 4) == 4 ...

Mask auto-complete bug

What steps will reproduce the problem?

  1. Choose a mask with 2 successive auto-complete characteres (ex: en-US
    telephone).
  2. Apply to a TextBox.
  3. Type a valid telephone, then try remove each character using backspace key.
  4. Not is possible remove all text typed.

What is the expected output?
Remove all text like a normal TextBox.

What do you see instead?
Is needed the use of delete key or selected all text and replace.

Implement a swap method

The core library should give a swap methods, like bellow:

void Swap<T>(ref T var1, ref T var2)
{
    T temp = var1;
    var1 = var2;
    var2 = temp;
}

void Swap(ref object var1, ref object var2)
{
    object temp = var1;
    var1 = var2;
    var2 = temp;
}

Trim process memory usage

This method, to trim memory usage from current process, should be release
on next library release:

void TrimCurrentMemoryUsage()
{
    IntPtr hProcess = System.Diagnostics.Process.GetCurrentProcess().Handle;
    SetProcessWorkingSetSize(hProcess, new IntPtr(-1), new IntPtr(-1));
}

[DllImport("Kernel32.dll")]
static extern bool SetProcessWorkingSetSize(IntPtr hProcess, IntPtr dwMinimumWorkingSetSize, IntPtr dwMaximumWorkingSetSize);

ConfigFileSerializer

Should be developed a ConfigFileSerializer class that works as
XmlSerializer class.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.