Giter VIP home page Giter VIP logo

productivity.activitylog's People

Watchers

 avatar  avatar

Forkers

poa00

productivity.activitylog's Issues

Efficient file format

We need to store data very efficiently.
All strings should be stored only once.

One solution is to create a single file with strings. Each string has a number index assigned.

$1=ActivityStarted
$2=ActivityEnded
$3=C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
$4=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe

Then day log files will use these variables when storing logs.

1;$1;$3;New Tab;2017-07-11_14:44:49
1;$2;$3;New Tab;2017-07-11_14:44:55

When title is set right after window is created

Typically, windows is created and shown with empty title.
Then title is set, but event is to fired, and when active windows is changed, event is logged with title (instead of empty one).

So, fix events with empty title for windows shown before setting title.

Domain repository

Use append-line only file format for performance reasons.
Each event uses single line and semicolon separated values.

Changes that are needed to check

Foreground process changed
Another process has raised to foreground. We need an id of a previous process and the current one.

Window title changed
Typical for web browser. User navigates to a new page, process id is still the same, but title has changed. This can be change in the activity category.

Application Summary

  • Select date from and to.
  • Display list of applications.
  • Under each application display list of window titles.

Categorizing activity

User should be able to define rules based on ApplicationPath and WindowTitle to categorize acitivity.

Use EventSourcing for domain

Base events:

ActivityStarted

  • ApplicationPath
  • WindowTitle
  • StartedAt

ActivityEnded

  • ApplicationPath
  • WindowTitle
  • EndedAt

Periodic temp save

We should periodically save current time stamp for cases when the application crashes (or is not turned off correctly).

After next startup we should generate appropriate ActivityEnded event.

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.