Thursday, February 14, 2013

Computer Graphics class projects (CSI 4341)


Computer Graphics class projects, OpenGL

This was Fall 2012 class on computer graphics with Dr. Fredrik Niemela. Here are videos of some of the class projects I did. Note that some parts (e.g. meshes for chess pieces) are not my work.

Virtual landscape

Clock

Moving Chess

(Note: the meshes for chess pieces were provided by Dr. Niemela)

Raytraced Chess

(Note: the meshes for chess pieces were provided by Dr. Niemela)

Thursday, January 10, 2013

New MySQL database

New database "x" with new user "x" with password "p".

CREATE DATABASE x CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
CREATE USER 'x'@'localhost' IDENTIFIED BY 'p';
GRANT ALL ON u.* TO 'x'@'localhost';

Use collation specific to your language, e.g. "utf8_czech_ci" if you want better sorting accuracy.

File permissions with ACL


Default group privileges for new files and directories:

setfacl -R -d -m g::rwX <path>

Don't forget to do chmod g+s to set setuid bit so that file objects inherit group.