Internet Programming Notes and Records
Previous Project Experience
- Use Java to develop and optimize a simple motion scheduling and path planning algorithm for industrial machine (during work).
Mainly based on the A* algorithm. - Use Java to develop a multi-layer encryption cloud storage software (during undergraduate period)
- Design and development of an Online Mobile Market System
Practical homework tips: CI6206
- When use the higher version of tomcat (like version 8.5), it is very likely to happen this situation: the console report connection failure with database. One way to fix that is to use the new/lastest version of mysql connnector (like fullname is [mysql-connector-java-8.0.21.jar]).
CI6206 Group Project - Social Network Website
Preparation
aliahmadi4/WAP-SocialNetwork - Rejected
No time to get familiar to IDEA in such short timeasaunin/social-network-spring - Rejected
No time to get familiar to Spring MVCSathveegan/Social-App-JAVA-Servlet-JSP - Choosen
deployment: 1) fix database problem by change mysql.jar version to V8.02) change all jsp file into the "/WebContent" 3) after putting image or external files, should refresh the project in eclipse to make the changes valid.
Addtional functions
Upload image as personal avatar
Bunoob.com example of upload file
“Server Tomcat v8.5 Server at localhost failed to start” - because I changed xml in codeSearch function
Tips: 1) slides and example from class2) Should delete the line "Collections.sort(searchUsers);" in UserDAO, which would cause the return value of function "getUsersByName" be null and cause error. The real cause is that the sort function would fail when there is several same value of names. 3) [bootstrap table setting](https://blog.csdn.net/Fanbin168/article/details/53208869) / [runoob document](https://www.runoob.com/bootstrap/bootstrap-tables.html)
Add Friend and Search Friend
Tips: 1) Auto_increment in mysql2) [avoid mysql insert the replicate data into table](https://blog.csdn.net/u010366748/article/details/89138334)
Adjust appearance of Website
Tips: 1) error “The requested resource [/SocialNetworkWebsite/WebContent/image/login-background.jpg] is not available”2) [runoob css-background](https://www.runoob.com/css/css-background.html) 3) [set background picture](https://blog.csdn.net/lanjie_gunger/article/details/50471225)
Improvement aspects
technical
- 在Friend页面中搜索后显示用户姓名————sql语句+session就能实现
- 朋友关系查询改为单向查询
- 按照用户名显示关注的人的post
- 头像直接上传到 sever engine 中
- 增加用户名防sql注入
system
- 对post的评价、点赞和转发
- 特别关注功能、红点提醒
- 结合云平台改为可以自己方便部署的小型内部社交系统——开源软件方向
- 技术栈更新为spring mvc
CI6206 Technology Reserch Paper - Cloud Computing
- Large scale AI Recommendation System - Rejected
facebook - ai tool apis
facebook - starspace
implementation sample of recommendation system
Too complicated, hard to deploy on JSP+Servlet system, which is very small. - samll scale python recommendation system - can try if have time
example
Contents
Report PDF:
Reference
program:
- Sathveegan/Social-App-JAVA-Servlet-JSP
- aliahmadi4/WAP-SocialNetwork
- asaunin/social-network-spring
- how to totally delete TeamViewer in Mac / NTU internal network would block the sign-in and internet process of TV, can try to use VPN to fix this problem.
deploy-Dataflow:
- what does groupID or artifactID in dataflow mean?
- Error: “Missing object or bucket in path: ‘gs://staging-buket-test/‘, did you mean: ‘gs://some-bucket/staging-buket-test’?” / How to fix