journal
all ![]() | Rob is 20,139 days old today. |
Entries this day: Fixed_DB_problem alex-outside fixed-emacs-hakyll.el jb-lesson-this-morning tutorial-running-hakyll-for-free-on-aws Fixed DB problem ##11:20 Thursday 30 October 2014## I'm not ~~ready~~ likely to file a bug report, but I had to change a field to UNSIGNED before I could use it in a math operation that resulted in a negative value. I wasn't trying to store a negative value, just WHERE 2014 - The field was unsigned smallint with value 2015. permalinkalex outside (written 09:59 Friday 07 November 2014 JST) Photo taken 30 October 2014 permalinkfixed emacs hakyll.el ##12:09pm Thursday 30 October 2014## Well it's not 100% yet, but at least it's not ridiculously broken. ##12:27pm## Sweet! Now it's working. https://gist.github.com/thunderrabbit/453c1e1c4a959f113d10/2dcf93f6fa89ecd389c7901699fb26b670a78881 I will probably remove the "description:" meta data (cause I never use it), and eventually I'd like to have default values for year, month, and date fields. ##14:00## Oh crud; it creates the files in the incorrect directory. ##20:07## Fixed. https://gist.github.com/thunderrabbit/453c1e1c4a959f113d10/88eec8d412c90c5eea5ca8ac77c732e554751006 permalinkjb lesson this morning ##09:03 Thursday 30 October 2014 JST## I've been teaching a lesson each Thursday morning for JB at a company office near Kawasaki station. Today new student Yohei arrived, though Chika, one of my "regulars" wasn't there, so still just two students, including Ayano. permalinktutorial running hakyll for free on aws ##20:20 Thursday 30 October 2014 JST## These notes should work for *nix, including OS X, which I'm using. Windows users may have to adapt when it comes to local stuff. Easy as
##1. sign up for AWS micro (free tier available)## I will probably go with all their defaults: ####Step 1:#### For this, I'm using ####Step 2:#### t2.micro (free tier eligible) ####Step 3 (Configture Instance details)#### leave defaults ####Step 4 Add Storage:#### Root /dev/xvda snap-62cf04aa 8GiB ~~Magnetic~~ gp2 Not Encrypted ####Step 5 Tag Instance:#### Anything you like is fine. For me:
####Step 6 Configure Security Group:#### Create a new security group. Any name is fine. Security group name: hakyll.robnugen.com Make sure it has the following two rules:
####Review and Launch#### I got a popup saying I can use SSD for free, so I'm selecing that. (I had selected Magnetic in step 4 above) ####Save the PEM#### The very final step results in a popup asking which PEM you want to use to access the server. If you don't have a PEM file, download and save the file in your ~/.ssh directory. After saving, set its permissions to 400:
##2. set up Nginx on server## ####Step 1, connect to server:#### Set up a config file in your local
And make it look something like this: Host * ServerAliveInterval 120 Host hakyll HostName your.ip.addr.ess User ec2-user IdentityFile ~/.ssh/your-pem-file.pem Now, connecting to the server is simple:
####Step 2, set up nginx:#### Install nginx on server:
##3. Set up Hakyll locally## We've done all the groundwork; the rest is easy! Back on your local computer: ####Step 1:####
Finished! Check out my journal on your server! Feel free to wipe the sub-directories in ~/journal/post and write your own. ;-) After each change, you can update the site like this:
permalink
|