d-ronin / autotown Goto Github PK
View Code? Open in Web Editor NEWAutotune Result Database
Autotune Result Database
Two dumps my end failed to fetch, with 416 response from Google storage thing. Checked them in Cloud Console and noticed they both have the same filename/path, and it's 0 bytes...
http://dronin-autotown.appspot.com/at/crash/ahFzfmRyb25pbi1hdXRvdG93bnIWCxIJQ3Jhc2hEYXRhGICAgJDVyNMKDA
http://dronin-autotown.appspot.com/at/crash/ahFzfmRyb25pbi1hdXRvdG93bnIWCxIJQ3Jhc2hEYXRhGICAgJCxqboIDA
So... the filename is the sha1 sum of the dump contents, that makes sense then.
mike@tracer:~$ echo -n '' | openssl sha1
(stdin)= da39a3ee5e6b4b0d3255bfef95601890afd80709
da/39a3ee5e6b4b0d3255bfef95601890afd80709 is the filename. ;)
Should probably check the length of the dump is non-zero there and return 400.
The guy did manage to send a non-empty dump: http://dronin-autotown.appspot.com/at/crash/ahFzfmRyb25pbi1hdXRvdG93bnIWCxIJQ3Jhc2hEYXRhGICAgJD45egLDA
The board UUID should be hidden to protect user privacy. Also, making the UUID public opens the door for abuse of the system by submitting data with the same UUID that will then be associated with another board, leading to a poor user experience.
@dustin, currently no way to get older crashes, can we do something like this (totally untested/written in github comment editor ๐)?
func handleRecentCrashes(w http.ResponseWriter, r *http.Request) {
c := appengine.NewContext(r)
start, err := strconv.Atoi(r.FormValue("start"))
if err != nil || start < 0 {
start = 0
}
q := datastore.NewQuery("CrashData").Order("-timestamp").Offset(start).Limit(50)
res := []CrashData{}
if err := fillKeyQuery(c, q, &res); err != nil {
log.Errorf(c, "Error fetching crash results: %v", err)
http.Error(w, err.Error(), 500)
return
}
mustEncode(c, w, r, res)
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.