Comments (5)
My log file names are:
keyfreq_.txt
keyfreqraw.txt
window_1417327200.txt
keyfreq_1417240800.txt
window_.txt
keyfreq_1417327200.txt
window_1417240800.txt
can the error come frome those files where the names have no timestapm in the names(like windows_.txt)?
I also tried to debug and after executing this code, but without of casting to int
the ts variable stores this values: "['1417240800', '', '', '1417240800']".
L = []
L.extend(glob.glob("logs/keyfreq__.txt"))
L.extend(glob.glob("logs/window__.txt"))
L.extend(glob.glob("logs/notes_*.txt"))
extract all times. all log files of form {type}_{stamp}.txt
ts = [x[x.find('_')+1:x.find('.txt')] for x in L]
from ulogme.
Hi,
strange that this is happening - you're right there should be timestamps following the underscore. Somehow the code is failing to get the timestamp, or compute it sometimes. I haven't seen this issue so far with anyone before so I'm not sure what this could be. Ideally you'd descend down into the code (the logging code is relatively simply) and try to do those calls in console to try to narrow down what's going on.
Sorry I don't have very useful comments about this.
from ulogme.
I wasn't able to reproduce the problem again. I tried at least for 12 times to delete the whole statistic, but ulogme was every time able to create files with correct time stamps. don't know why it was not working for the very first time.
from ulogme.
I did have the same error in OS X.
First time I run ./ulogme.sh by using python 3.3.
Then keyfreq_.txt become in logs/.
Then I got the same error described by @xf0e.
Deleting files in logs/ and rerun ./ulogme.sh by using python 2.7.8 fixed the problem.
from ulogme.
Had a weird experience where keyfreq_.txt
kept reappearing in logs/
every couple seconds, causing updateEvents()
to fail with
ts = [int(x[x.find('_')+1:x.find('.txt')]) for x in L]
ValueError: invalid literal for int() with base 10:
even though ps -fA | grep ulogme
showed no active ./ulogme.sh
processes. Turned out there was a zombie bash ulogme.sh
from hours before that was putting them there. If anyone keeps running into the invalid literal error, try doing a ps -fA | grep bash
and killing old bash processes that may be running ulogme.
from ulogme.
Related Issues (20)
- UI defect: on 'barcode' view, hovering right edge items gets its text outside the screen HOT 2
- __LOCKEDSCREEN didn't catch a thing (Yosemite). 'loginwindow' did HOT 4
- osx rare errors HOT 1
- Wanted: a way to delete notes HOT 1
- Nothing else than "Locked Screen" HOT 2
- Logging time spent inside a particular folder
- UI Window Blank
- Use of xinput under linux could remove sudo requirement HOT 1
- Failed to detect locked screen, show up as nux input window instead
- SyntaxError HOT 4
- Problem with xscreensaver HOT 3
- Starting ulogme at login HOT 3
- Python 3 support not present. HOT 2
- Notes aren't properly escaped in Python, security concern
- October 11st, 12nd, 13rd
- overview not working HOT 1
- How long does it take the .sh file to run? HOT 3
- Incorrect comment in render_settings_examples.js
- Keystroke counting requires new permissions in Mac OSX
- Ulog
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ulogme.