Weapon of Choice
Day one of #Adventurertober2020
For fun, I dove into procedural text generation using Improv. It works well enough – the fact that grammars are JSON files is tedious but you can create some interesting bits of text at random. After getting the hang of it, I went down the rabbit hole to generate descriptions of monuments a party might …
Many of us are stuck at home thanks to COVID-19 and while it’s important to get outside for some exercise, board games are a great way to pass the time and keep anxiety at bay. Today, I saw via ArsTechnica that Amazon is running a buy-two-get-one-free sale and includes some good games in the selection. …
Board Games to Get You Through Social Distancing Read More »
I want to access a local docker development environment from outside the host computer. This comes in handy for viewing a site on another device or sharing it with a client. There seems to be a couple of ways to do this documented online, but of course, none exactly worked for me. I’m going to …
Capturing my answer to a question on a mail list I’m on about paying attention to the Drupal admin and editor experience. Particularly, someone was asking if they should open their allowed HTML to allow pasting form and iframe tags versus the risk of being compromised by the same. My initial reply was: If your …
Creating a zip file is easy and Rob Allen has you covered on that front to get you started. I needed to do this to create a zip file of PDF files generated by Dompdf. It turns out, you can add files to a ZipArchive object without actually creating the file if you can get …
Creating ZIP files and streaming the response with Silex Read More »
When I started working as a web developer, there wasn’t a lot of guidance about what that meant as a career choice. Of course, back then we were getting over the excitement of the blink tag and the new design opportunities afforded by table tags. I had to figure out a career path, and I did manage to do just that by watching a lot of soccer.
Easy with image magick: # get the first page as a PNG convert -resize 1275×1650 “example.pdf”[0] cover.jpg # make the smaller version convert -resize 155×200 cover.jpg
This post explains an approach to generating fantasy maps that is really interesting. One part of generating a non-grid based map, is to use create Voronoi polygons around some random number of x,y points on the map. There’s a lot of heavy math involved, but there are libraries for calculating them with Python and even …
Ben Ramsey shared how he got started with PHP and had the great idea of asking others to write about their stories and tagging it as #20yearsofphp. This is my story. When I graduated from college in 2000, I began looking for a job without a clear idea of what I wanted to do. In grad …