Tags → programming 
-
Make XML Sitemaps Easily with PHP!
I am a huge fan of simple solutions for the web. So many solutions require tons of tooling or a giant content management system and those things are brittle over the long haul of time. XML Sitemaps help search engines, notably Google but other search engines too. In October 2009 I created this code to…
-
Adding tags to blog posts retroactively.
I’ve been reflecting my instagram posts back to this blog for a while now. One of the conventions there is mentioning people with the @mention and hashtagging posts with #hashtags. It has bothered me for a while that I didn’t ingest those tags and mentions in some manner. I left this lay for a long…
-
CALL CHAR
100 CALL CLEAR 110 CALL CHAR(96, “FFFFFFFFFFFFFFFF”) 120 CALL CHAR(42, “0F0F0F0F0F0F0F0F”) 130 CALL HCHAR(12,17,42) 140 CALL VCHAR(14,17,96) 150 FOR DELAY=1 TO 500 160 NEXT DELAY The first time I ever programmed it was from this page. And I made graphics in 8 by 8 squares on graph paper for months after that. Then I’d painstakingly…
-
“Harold, they’re bots.”
Found on FlowingData: Bot or Not: A Twitter user classifier which uses machine learning. The source code is here. Previously: I wrote about writing @bloggingbot. “Harold, they’re bots.”
-
“Leverage browser caching”
I was looking at Google Pagespeed Insights results today for my website today. And I got this feedback: Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network. Leverage browser caching…
-
Color the Smiley
Over the years I have made a lot of little web experiments and geegaws. I’ve made hangman games and drawing programs and random text generators. At one place I worked I helped make a thing that would turn an uploaded photo of a face into a Terminator face! I’ve made so many of these kind…
-
I blogged for 17 years and all I got were these lousy Markov chains.
In which I turn my experiments with turning written text into Markovify-generated sentences into a cool Twitter bot.
-
Markov Chains are hilarious.
I’ve wanted to make Markov chain generated sentences based on this blog for a long while. Wednesday night, I did. It took me under an hour! Why have I avoided it thinking it’d be difficult? Probably I thought it’d take a long time and would be lame. NOT SO First, I exported the contents of…
-
Suspicious Activity: “An admin user with the username backup was created outside of WordPress”
On 14 February 2018, WordFence alerted me to highly suspicious behavior. This is the format of the email I received from WordFence version 4.9.3: This email was sent from your website “[REDACTED BLOG NAME]” by the Wordfence plugin. Wordfence found the following new issues on “[REDACTED BLOG NAME]”. Alert generated at Wednesday 14th of February…