-
Notifications
You must be signed in to change notification settings - Fork 0
/
some directions to publish and analyze study.txt
81 lines (46 loc) · 2.05 KB
/
some directions to publish and analyze study.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
78
79
80
Things to change in Netlogo HTML
find "BUTTON" to locate the coordinates of the buttons. they look like
30
110
85
144
H
make the numbers all 0 - repeat for all keys
div classes to be hidden:
netlogo-subheader
netlogo-display-horizontal: this doesn't like display none
flex-column (its where the Export: and buttons are)
netlogo-speed-slider
netlogo-tab-area
hide them by adding a style="visibility: hidden;" attribute
style= "display: none;" attribute removes the area for it?
body {
-moz-transform: scale(0.8, 0.8); /* Moz-browsers */
zoom: 0.8; /* Other non-webkit browsers */
zoom: 80%; /* Webkit browsers */
}
add to the top css part to make it smaller
To grab a CSV:
login to server
delete old one
sudo rm /var/lib/mysql-files/db.tablename.txt
Run Mysql, using "sudo mysql" then use this command:
SELECT * INTO OUTFILE '/var/lib/mysql-files/db.tablename.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' FROM logger.response;
Read and download the file, db.tablename.txt which is a csv, you can copy it to root like this:
sudo cp /var/lib/mysql-files/db.tablename.txt output.txt
Then exit shell and scp it to your local machine:
scp -i "key.pem" [email protected]:output.txt out.txt
to dump database into file for part 1
in shell of server:
sudo mysqldump logger > test.mysql
https://www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-in-mysql-or-mariadb#:~:text=To%20import%20an%20existing%20dump%20file%20into%20MySQL,will%20bring%20you%20into%20the%20MySQL%20shell%20prompt
Download the mysql file using scp then
I recommend using mysql workbench and import the file directly to logger and then run Akshay's python script.
Otherwise manually:
To start login locally do this:
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe" -p -u root
R0b0tsAr3C00l!
DROP DATABASE logger; or where new_database has a number appended
CREATE DATABASE logger;
in cmd
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe" -u root -p new_database < test.mysql