-
Notifications
You must be signed in to change notification settings - Fork 3
/
notes.txt
77 lines (52 loc) · 3.14 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
To install dependencies:
----------------------------------------------------------------------
php composer.phar install
For the database, create a table named symfony (via SQL) and run:
----------------------------------------------------------------------
php app/console doctrine:schema:update --force
To run the app:
----------------------------------------------------------------------
php app/console server:run
Running on dev vs. prod modes:
----------------------------------------------------------------------
1) http://127.0.0.1:8000/app_dev.php/hello/Everaldo -> Opens the page in development mode.
2) http://127.0.0.1:8000/app.php/hello/Everaldo -> Opens the same page in production mode.
3) http://127.0.0.1:8000/hello/Reid -> Default is to open in development mode.
To see changes on the production ("prod") environment:
----------------------------------------------------------------------
php app/console cache:clear --env=prod
php app/console cache:clear (clears the dev env)
To create bundles using the Symfony console:
----------------------------------------------------------------------
php app/console generate:bundle -> Follow the instructions.
Symfony2 plugin for PhpStorm (really helpful!):
----------------------------------------------------------------------
http://goo.gl/KKdjSV
http://symfony2-plugin.espend.de/
For templating:
----------------------------------------------------------------------
Look at page 38 of the Symfony book "Optional Step 3: Create the Template".
Cheat Sheet
----------------------------------------------------------------------
http://www.symfony2cheatsheet.com/
Doctrine data types for entity fields
----------------------------------------------------------------------
http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html
Installing xdebug
----------------------------------------------------------------------
http://xdebug.org/wizard.php
To run the app in prod:
----------------------------------------------------------------------
php app/console cache:clear --env=prod & php app/console assetic:dump --env=prod --no-debug & php app/console server:run --env=prod --no-debug
TODO: When user is using webcam and clicks "Upload picture" before the check tick, page gets stuck. Fix that.
TODO: Compress and resize profile pictures before storing them.
TODO: Perceptron has no predict_proba.
TODO: Work on parameter logic (i.e., max_leaf_nodes and max_depth for DT).
TODO: Handle categorical features on python script (done -- monitor performance to make sure it won't explode [seems to be a problem with knn at times]).
TODO: On leaderboard, default to anonymous profile picture for users without one.
TODO: Profile picture no longer updating automatically when user uploads new image. Or is it? It did just now.
TODO: Leaderboard table User column renders with a much larger width than other columns. Try to fix that.
TODO: Display parameters on report page.
TODO: More intelligent management of potentially duplicate uploaded files.
TODO: Adjust max_features to account for when dimentionality reduction is used
TODO: Revise all parameter values for classifiers along with their corresponding defaults