Added categories to projects
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
			
		||||
 | 
			
		||||
title: "CHIP-8 (PHP)"
 | 
			
		||||
summary: "A CHIP-8 emulator written in PHP."
 | 
			
		||||
 | 
			
		||||
categories: ["PHP"]
 | 
			
		||||
 | 
			
		||||
# Optional external URL for project (replaces project detail page).
 | 
			
		||||
external_link: "https://github.com/furyfire/chip-8"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
title: "Codingtests"
 | 
			
		||||
summary: "Few solutions for classic online coding challenges. (CodeChef, ProjectEuler)"
 | 
			
		||||
 | 
			
		||||
categories: ["PHP", "C", "Lua", "Ruby"]
 | 
			
		||||
external_link: "https://github.com/furyfire/codingtests"
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
@@ -3,9 +3,8 @@
 | 
			
		||||
 | 
			
		||||
title: "Control Library"
 | 
			
		||||
summary: "A library for quick and easy implementation of regulation and control loops. (PID)"
 | 
			
		||||
authors: []
 | 
			
		||||
tags: []
 | 
			
		||||
categories: []
 | 
			
		||||
 | 
			
		||||
categories: ["C++"]
 | 
			
		||||
date: 2021-07-21T20:49:38+02:00
 | 
			
		||||
 | 
			
		||||
# Optional external URL for project (replaces project detail page).
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								content/project/imdb-to-hugo-md/featured.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								content/project/imdb-to-hugo-md/featured.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 26 KiB  | 
							
								
								
									
										48
									
								
								content/project/imdb-to-hugo-md/index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								content/project/imdb-to-hugo-md/index.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,48 @@
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
title: "IMDb to Hugo Markdown"
 | 
			
		||||
summary: "Convert a list of IMDb ratings to Markdown files suitable for Hugo"
 | 
			
		||||
date: 2021-08-01T11:56:05+02:00
 | 
			
		||||
categories: ["PHP"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
image:
 | 
			
		||||
  focal_point: ""
 | 
			
		||||
  preview_only: false
 | 
			
		||||
 | 
			
		||||
url_code: "https://github.com/furyfire/imdb-to-hugo-md"
 | 
			
		||||
---
 | 
			
		||||
# Auto-generated content
 | 
			
		||||
By definition, a static page generator does not support dynamic data.
 | 
			
		||||
 | 
			
		||||
Here I implement a solution that generates Markdown files for the Hugo page generator. 
 | 
			
		||||
 | 
			
		||||
# IMDb
 | 
			
		||||
I have used the IMDb service for years. I rate every movie I watch and use it as a reminder to myself of what movies I need to watch and which movies I have watched. (See https://www.imdb.com/user/ur25404390/ratings). Currently my list is well over 650 movies and counting. IMDb allows for exporting the list to CSV format, the CSV file 
 | 
			
		||||
 | 
			
		||||
The following fields are avaible in the CSV file. 
 | 
			
		||||
| Field          | Description                                                                                   |
 | 
			
		||||
|----------------|-----------------------------------------------------------------------------------------------|
 | 
			
		||||
| Const          | IMDb identifier                                                                               |
 | 
			
		||||
| Your Rating    | Your rating (0-10)                                                                            |
 | 
			
		||||
| Date Rated     | Date rated (YYYY-MM-DD)                                                                       |
 | 
			
		||||
| Title          | -                                                                                             |
 | 
			
		||||
| URL            | Direct URL to the IMDb page                                                                   |
 | 
			
		||||
| Title Type     | Movie/TV Series/TV Episode/TV Mini Series/TV Movie/TV Special/TV Short/Video Game/Video/Short |
 | 
			
		||||
| IMDb Rating    | Average IMDb Rating (0-10 with 1 digit)                                                       |
 | 
			
		||||
| Runtime (mins) | -                                                                                             |
 | 
			
		||||
| Year           | Release year.                                                                                 |
 | 
			
		||||
| Genres         | Comma separated list of genres                                                                |
 | 
			
		||||
| Num Votes      | Number of votes                                                                               |
 | 
			
		||||
| Release Date   | Official release date (YYYY-MM-DD)                                                            |
 | 
			
		||||
| Directors      | In quotes and comma separated if more than one.                                               |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Implementation
 | 
			
		||||
I opted to use PHP for the implementation.
 | 
			
		||||
 | 
			
		||||
 - To parse the CSV file I use the library leauge/csv. (https://csv.thephpleague.com/)
 | 
			
		||||
 - To scrape additional movie information from IMDb I used the library imdbphp/imdbphp. (https://github.com/tboothman/imdbphp)
 | 
			
		||||
 - To generate output .md files I used the Twig template engine. (https://twig.symfony.com/)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -4,7 +4,7 @@
 | 
			
		||||
title: "Tidstagning"
 | 
			
		||||
summary: "A very simple time tracking application written in C#.NET to be used for timing of yachtracing."
 | 
			
		||||
date: 2021-07-17T15:10:25+02:00
 | 
			
		||||
 | 
			
		||||
categories: ["C-Sharp"]
 | 
			
		||||
# Featured image
 | 
			
		||||
# To use, add an image named `featured.jpg/png` to your page's folder.
 | 
			
		||||
# Focal points: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user