Graphic Programming
Fisheye projection
Normalized device coordinates, NDC
sun-path projections
태양궤적도를 다음과 같이 여러 투영법으로 투영하여 작성하였다.
태양의 위치는 천구 위에 표현되기 때문에 3차원 구이다. 이것을 2차원 평면으로 표현하려면 투영법이 필요하다.
[ubuntu]How to check my System Specifications
[Problem]
How do I check my system specifications(or hardware configuration)?
[Solution]
– Use lshw(list hardware) as a root
1 |
$sudo lshw |
– Install it if needed
1 |
$sudo apt-get install lshw |
– If you want to see it on the web page
1 |
$sudo lshw -html > myspecs.html |
[Reference]
http://manpages.ubuntu.com/manpages/precise/man1/lshw.1.html
http://askubuntu.com/questions/55609/how-do-i-check-system-specifications
[wp]backWPup Error
- Problem 1
ERROR: ZipArchive returns status: Seek error: Invalid argument
- Guess 1
On 32bit system, you can’t generate ZIP files larger than 2GB.
(source https://bugs.php.net/bug.php?id=53587) - Solution 1
Zip to TAR - Problem 2
ERROR: If /home/www/mchangho/wp-content/uploads/1/1065465563.pdf will be added to your backup archive, the archive will be too large for operations with this PHP Version. You might want to consider splitting the backup job in multiple jobs with less files each.
우분투 보안 설정
Security patch for Apache
#추가 보안패치. (.git, .svn, .env 등 dot로 시작하는 파일 및 폴더 보호, Web Access가 되어서는 안될 파일들의 접근 제어)
1 |
$sudo vi /etc/apache2/apache2.conf |
파일 중간의 <FilesMatch “^\.ht”> 구문 다음에 추가한다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# deny file, folder start with dot <DirectoryMatch "^\.|\/\."> Require all denied </DirectoryMatch> # deny (log file, binary, certificate, shell script, sql dump file) access. <FilesMatch "\.(log|binary|pem|enc|crt|conf|sql|sh)$"> Require all denied </FilesMatch> # deny access. <FilesMatch "(pp_cli|pp_cli_x64|LICENSE|README\.md|composer\.json|COPYRIGHT|CONTRIBUTING\.md|LICENSE\.txt)$"> Require all denied </FilesMatch> |
[Reference]
https://blog.lael.be/post/73