A web-based system to manage office hours
ub-cse / officehours Goto Github PK
View Code? Open in Web Editor NEWA web-based system to manage office hours
License: GNU General Public License v3.0
A web-based system to manage office hours
License: GNU General Public License v3.0
Compile project in Scala SDK 2.13
While compiling the project with SDK 2.13, the compiler would throw illegal cyclic inheritance involving trait Iterable
.
J:\Code\OfficeHours\src\main\scala\model\OfficeHoursServer.scala:18:58
illegal cyclic inheritance involving trait Iterable
var usernameToSocket: Map[String, SocketIOClient] = Map()
Switching Scala SDK back to 2.12.9 would work.
I saw some posts about the illegal cyclic inheritance
error in StackOverflow, but not sure why, it might be an issue with Scala.
I recommend switching Scala SDK back to 2.12.9 if you meet the same issue before anyone figures out what causes the issue.
The server returns the current UNIX time in ms.
The server returns a time that is seemingly random.
Change System.nanoTime() to System.currentTimeMillis()
https://github.com/UB-CSE/OfficeHours/blob/develop/src/main/scala/model/OfficeHoursServer.scala#L63
class EnterQueueListener(server: OfficeHoursServer) extends DataListener[String] {
override def onData(socket: SocketIOClient, username: String, ackRequest: AckRequest): Unit = {
>>>>server.database.addStudentToQueue(StudentInQueue(username, System.nanoTime()))<<<<
server.socketToUsername += (socket -> username)
server.usernameToSocket += (username -> socket)
server.server.getBroadcastOperations.sendEvent("queue", server.queueJSON())
}
}
It is important to see when people have queued.
This information could help give an estimate of how long someone would have to wait before they queue or it could indicated that the TA's can not keep up with the demand.
According to https://docs.oracle.com/javase/8/docs/api/java/lang/System.html, System.nanoTime() returns the Returns the current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds.
, not the current UNIX time.
Should I just close my PR? Because otherwise it sticks at the top of my github feed. If these PR's were just for the sake of the assignment I can close it. But if you actually intend to merge some of these I can keep it up. I will probably just remove it by the end of the week if there isnt a response though.
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.