Skip to content

A semi-automatic record program to record user's work in order to promote work efficiency

Notifications You must be signed in to change notification settings

gtxistxgao/Logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logger System

Initiation time: 2016.9.5

Author: Tianxiang Gao

special thanks to lukeiscoding for suggesting windowbuilder, which saved my life from coding the frame.
inspired by Udacity's Python course. But I need a more customized program for self-using.

Project objective

Build a log system to promote the working efficiency.

Project basic idea

Break the working schedule into time intervals. At the end of each time interval, a window jumps out, and music plays. The user needs to record what he or she did in the previous time intervals. The program will automatically record the information into the log, which is represented as a text file named by the current date.

In brief, the program will work as following steps:

  1. start the program.

  2. pick up a song for each break to play

  3. set up how long the intervals should be

  4. start to run.

Then each time the window jumps out. The user needs to record what he or she has done in the previous passed interval. The program will write those into the log.

Language intended to use to implement: Java

Music format: MP3

Log format: text file

##Update 9.9

This small tool is aimed to break working time into time intervals and help the user to record each interval's work.

Because I used JLayer to play the mp3 file, which is licensed under LGPL, so this program is also licensed under LGPL.

Please contact me if any question or improvement for this program is necessary for me to know.

My email is: zjcxgaoxing@gmail.com

Tianxiang Gao 2016.9.10 Ames, Iowa.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

##How to use it?

Download: RunnableJarFile.zip

https://github.com/PosFrank/Logger/blob/master/RunnableJarFile.7z

unzip the file and click on the folder.

double click logger.jar file.

window

First window:

1. set the time interval;

2. set today's goal

3. choose a music file (mp3 format)

4. click "start to work" big button

Then after the time minutes you typed in the first window, the window will jump out again and play the music at the same time.

window

you can do three things on this window:

1. take note what you have done

window

2. change to another the music file to play (mp3 format)

window

3. change the length of the time interval.

window

The program will automatically record the progress in the "notes" folder. Each day, the program will only generate one record file.

Close the program: Any time the window shows up, click the X button on the right-top window.

Enjoy~

##Design notes:

###Use cases

  1. at the beginning of the program, a setting up window shows to set up three parameters: *interval length

*music file

*today's work objective

  1. begin from the start of the program, reminder window will jump out at the end of each time intervals.

  2. each reminder window give 4 options:

  • continue work

  • record work progress.

  • change interval length

  • change music

so 4 buttons will shows and a music play window shows.

####Setting up window

  1. one text field for setting how long the interval should be

  2. one button to choose the music file.

  3. one test field for list today's goal.

####Remindering window

  • Continue work -> Button

  • Work record progress -> Button

  • modify interval -> Button

  • modify music -> Button

#####Record Work Progress

  • Progress text -> Text Field

  • Save -> Button

#####Modify interval

  • interval length setting -> Text Field

  • save setting -> Button

######Modify Music

  • music choose -> Dir Button

  • save setting -> Button

####Logic

-> set up time and music
    -> break
        -> continue
        -> record note
        -> change interval
        -> change music

##progress: 2016.9.7 Midnight

Thanks to http://stackoverflow.com/questions/12057214/jlayer-pause-and-resume-song

Music resume problem resoloved.

Following is the new Main window:

This one looks decent.

main window2

click choose music file; then this dialogue jumps out.

main window2

we can use the three button to play the music, to decide if we want them.

Pause and Resume

##progress: 2016.9.9 Almost finished. Next, go into user test

I have finished all the feature on the design note. Next, I will use this tool tomorrow to see which part I have made more improve.

##progress: 2016.9.7

By using windowbuilder, things getting easier to organize those components.

main window2

we can also do a test play.

main window2

Problems need to be shoot:

  1. music needs to play on a seperate thread so that I can kill it during playing.
  2. that's all for now.

##progress: 2016.9.5 First time to implement a swing GUI program. Not very familiar with it. Spend some time do the initial learning. Get the first window as follow

enter image description here

useful resources: A Visual Guide to Swing

this guy makes some easy tutorials: enter link description here

About

A semi-automatic record program to record user's work in order to promote work efficiency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages