nonameable / photoringsql Goto Github PK
View Code? Open in Web Editor NEWPhotoring: Image collection visualization and traversal tool
Photoring: Image collection visualization and traversal tool
The README must give information on how to use and deploy the project
This issue is very similar to the others. A weird condition is met and the server throws an error. The code needs refactoring and cleaning, so it can work properly.
When a user selects the first or maybe one of the very first dimension values in the left widget, a weird border condition is met which triggers an error in the server that tries to bring the next batch of photos. This is an issue with the way the next batch of photos is selected. I suggest a clean reimplementation of this feature, since the code is quite difficult to follow.
getIndexOfDimensionID dimension_id = 4 center =3
getDimensionCounts name
obtained dimension counts from DB. Size: 490
getPreviousPhotos dimension_id:1
returnPreviousPhotosFromDimensionID dimension_id=1
/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
TypeError: Cannot read property 'dimension_name' of undefined
at Query._callback (/Users/damaderu/Documents/uniandes/temp/photoringSQL/server.js:124:32)
at Query.Sequence.end (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Sequence.js:88:24)
at Query._handleFinalResultPacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)
at Query.EofPacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Query.js:123:8)
at Protocol._parsePacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Protocol.js:279:23)
at Parser.write (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/Connection.js:103:28)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:277:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/damaderu/.npm/_logs/2018-09-11T15_26_23_366Z-debug.log
The dimension tags of the ring for each dimension (name, birth_date, age, pts, etc) overlap with the photos that are currently shown on the matrix. A user might click on one of these tags when she actually intended to click on one of the players. This triggers a change in dimension, making navigation cumbersome.
Sometimes when a user tries to go back to the previous dimension, a similar border condition is encountered and a server error is thrown. This is an issue with the way we are bringing the next batch of photos. This issue is hard to reproduce but occurs often.
This is the server console output:
getIndexOfDimensionID dimension_id = 24 center =23
getDimensionCounts name
obtained dimension counts from DB. Size: 490
getPreviousPhotos dimension_id:1
returnPreviousPhotosFromDimensionID dimension_id=1
/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
TypeError: Cannot read property 'dimension_name' of undefined
at Query._callback (/Users/damaderu/Documents/uniandes/temp/photoringSQL/server.js:124:32)
at Query.Sequence.end (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Sequence.js:88:24)
at Query._handleFinalResultPacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)
at Query.EofPacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Query.js:123:8)
at Protocol._parsePacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Protocol.js:279:23)
at Parser.write (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/Connection.js:103:28)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:277:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/damaderu/.npm/_logs/2018-09-11T15_42_00_130Z-debug.log
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.