<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-05-01:143160</id>
  <title>Ordinary Day</title>
  <subtitle>And it's all your state of mind</subtitle>
  <author>
    <name>Anna the Piper</name>
  </author>
  <link rel="alternate" type="text/html" href="https://annathepiper.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://annathepiper.dreamwidth.org/data/atom"/>
  <updated>2019-02-20T00:30:40Z</updated>
  <dw:journal username="annathepiper" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-05-01:143160:1823546</id>
    <link rel="alternate" type="text/html" href="https://annathepiper.dreamwidth.org/1823546.html"/>
    <link rel="self" type="text/xml" href="https://annathepiper.dreamwidth.org/data/atom/?itemid=1823546"/>
    <title>Coding projects update</title>
    <published>2019-02-20T00:30:40Z</published>
    <updated>2019-02-20T00:30:40Z</updated>
    <category term="coding project"/>
    <category term="wordpress"/>
    <category term="python"/>
    <category term="java"/>
    <category term="github"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">&lt;p&gt;As of this writing, I now have a total of five repositories on my Github account: the misc-configs repo for various config/supplementary files, and two each for Java and Python work. For each of those languages, I have a repo for the REST API portion of this project, and one for the Selenium.&lt;/p&gt;
&lt;p&gt;All of the repos can be seen on my &lt;a href="https://github.com/annathepiper"&gt;Github account&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What I&amp;#8217;ve been calling the rough &amp;#8220;phase 1&amp;#8221; of this project is now more or less complete. I&amp;#8217;ve got basic test cases in place in both languages for both the REST API side, and the Selenium side. As I&amp;#8217;ve written about before, the API tests are dealing with the service endpoints that handle publicly viewable information. The Selenium tests are mostly oriented around testing parts of the homepage of my little test WordPress site.&lt;/p&gt;
&lt;p&gt;Now I&amp;#8217;m moving into the rough &amp;#8220;phase 2&amp;#8221;. In this phase, I&amp;#8217;m adding more Selenium tests. This&amp;#8217;ll include adding some sidebar tests for the homepage, as well as tests for additional sections of the site (a post and a page), and making sure that the elements are correct on the selected links. I&amp;#8217;ll also be testing site search and adding a new comment to a previously existing post, since that&amp;#8217;s something I can do without authentication.&lt;/p&gt;
&lt;p&gt;&amp;#8220;Phase 3&amp;#8221; of this project will get into dealing with stuff that requires authentication. From the REST API side, this&amp;#8217;ll mean dealing with the service endpoints that handle things at the site admin level (such as making a new post or comment, or editing a previously existing one). From the Selenium side, I&amp;#8217;ll want to see about verifying logging in and logging out of the site, and making sure that the links displayed in the &amp;#8220;META&amp;#8221; area of the sidebar update themselves accordingly.&lt;/p&gt;
&lt;p&gt;(NOTE: I am NOT going to try to test the actual WordPress admin UI. That&amp;#8217;s a whole different kettle of fish than testing a front-facing site.)&lt;/p&gt;
&lt;p&gt;In related news, I&amp;#8217;ve also discovered the Githubs &amp;#8220;Projects&amp;#8221; functionality, and I&amp;#8217;ve made myself a project there to cover the work I&amp;#8217;m doing. This amuses me, as their Projects board looks a &lt;i&gt;lot&lt;/i&gt; like JIRA, the bug tracking/project management software we used at my Former Day Job, as well as at the short contract I had after the layoff at the tail end of last year.&lt;/p&gt;
&lt;p&gt;Interested parties can find my current active project on my &lt;a href="https://github.com/annathepiper?tab=projects"&gt;Github projects page&lt;/a&gt;. I&amp;#8217;ll be adding additional projects to that once this one is complete&amp;#8211;like the WordPress plugin work I want to do!&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve actually had job recruiters and interviewers ask me about this work, now that I&amp;#8217;ve got a link to my Github on my resume. This has proven beneficial in interviews I had last week, and I even got useful tips on additional libraries I can research, as well as aspects of version 8 of Java I hadn&amp;#8217;t had experience with yet. I&amp;#8217;ve gotten positive feedback about how I do comments on things, as well as on the various Readmes I&amp;#8217;ve put on the repos.&lt;/p&gt;
&lt;p&gt;So while the work hasn&amp;#8217;t yet actually proven critical in landing me a job, it &lt;i&gt;has&lt;/i&gt; proven useful in helping me demonstrate that I not only know how to code, but that I like it well enough to do it on my own time and to plan out larger projects.&lt;/p&gt;
&lt;p&gt;This is, I feel, a very valuable thing for me to be able to demonstrate.&lt;/p&gt;
&lt;p style="text-align: right"&gt;&lt;small&gt;Mirrored from &lt;a href="http://www.annathepiper.org/2019/02/19/coding-projects-update-2/" title="Read Original Post"&gt;annathepiper.org&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=annathepiper&amp;ditemid=1823546" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-05-01:143160:1821734</id>
    <link rel="alternate" type="text/html" href="https://annathepiper.dreamwidth.org/1821734.html"/>
    <link rel="self" type="text/xml" href="https://annathepiper.dreamwidth.org/data/atom/?itemid=1821734"/>
    <title>Today&amp;#8217;s WordPress Test Demo update</title>
    <published>2019-01-24T01:43:26Z</published>
    <updated>2019-01-24T01:43:26Z</updated>
    <category term="geekery"/>
    <category term="rest api"/>
    <category term="wordpress"/>
    <category term="java"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">&lt;p&gt;Good progress on the coding project today! \0/ Things accomplished:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Added new test cases involving Categories, Tags, Pages, and Comments, to bring the total number of test cases up to 10
&lt;li&gt;Added the ability to run the cases via a Maven configuration as well as TestNG, and updated my pom.xml to use the testng.xml as its suite file
&lt;li&gt;Checked all the new test cases and related work into wp-test-demo-java
&lt;li&gt;Renamed my wordpress-dev repo to misc-configs, because that&amp;#8217;s really what it&amp;#8217;s for miscellaneous config files
&lt;li&gt;Updated my Postman collection to include all the endpoints for the test cases I wrote today, and checked the new version of that into misc-configs
&lt;li&gt;Updated the Readmes on both &lt;a href="https://github.com/annathepiper/wp-test-demo-java/blob/master/README.md"&gt;wp-test-demo-java&lt;/a&gt; and &lt;a href="https://github.com/annathepiper/misc-configs/blob/master/README.md"&gt;misc-configs&lt;/a&gt; to more clearly explain what the repos are for, particularly wp-test-demo-java, as I&amp;#8217;ll be pointing recruiters at that
&lt;li&gt;Installed Jenkins (again) on my dev laptop, so that I can run the automation as a local Jenkins job as well as within IntelliJ, and to keep up my practice using Jenkins
&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I have decided, too, that I&amp;#8217;ll be doing this project in phases.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Phase 1&lt;/b&gt;: REST API tests that hit the endpoints that can serve up publicly available data. I.e., the kinds of data you&amp;#8217;d see as a user just browsing a WordPress site.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Phase 2&lt;/b&gt;: Selenium-based tests that will do front-end type tests. For example, &amp;#8220;If I click on this link, does it take me to this expected target page?&amp;#8221; Or, &amp;#8220;If I click on this thing on the menu, do I get the correct dropdown off of it?&amp;#8221;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Phase 3&lt;/b&gt;: This is the ambitious part. There are also REST API endpoints for WordPress that&amp;#8217;ll let you get at the stuff you&amp;#8217;d ONLY see as an authenticated user, such as post revisions and settings and the like. Time permitting, I may learn about the various ways to actually do that authentication properly so that the test suite can actually get at those endpoints.&lt;/p&gt;
&lt;p&gt;Right now, though, I&amp;#8217;m going to focus on phases 1 and 2.&lt;/p&gt;
&lt;p style="text-align: right"&gt;&lt;small&gt;Mirrored from &lt;a href="http://www.annathepiper.org/2019/01/23/todays-wordpress-test-demo-update/" title="Read Original Post"&gt;annathepiper.org&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=annathepiper&amp;ditemid=1821734" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-05-01:143160:1820801</id>
    <link rel="alternate" type="text/html" href="https://annathepiper.dreamwidth.org/1820801.html"/>
    <link rel="self" type="text/xml" href="https://annathepiper.dreamwidth.org/data/atom/?itemid=1820801"/>
    <title>Practicing with running WordPress in Docker today</title>
    <published>2018-12-27T22:52:45Z</published>
    <updated>2018-12-27T22:52:45Z</updated>
    <category term="geekery"/>
    <category term="docker"/>
    <category term="wordpress"/>
    <category term="docker compose"/>
    <dw:security>public</dw:security>
    <dw:reply-count>2</dw:reply-count>
    <content type="html">&lt;p&gt;So one of the things I want to do during my between-jobs downtime is practice my coding. And in particular, since I thought it&amp;#8217;d be nice to a) start small and b) play with something I&amp;#8217;m actually interested in coding (as opposed to, say, just focusing on random interview-type questions which will eventually bore me to tears), I decided I&amp;#8217;d try to play with making a small WordPress plugin.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve already done one that I&amp;#8217;m running locally on Annathepiper.org: namely, to show y&amp;#8217;all my archive of roleplay logs. Eventually I want to do a newer version of that, something that might let me actually practice setting up a simple web service.&lt;/p&gt;
&lt;p&gt;For now though I&amp;#8217;m going to do something less complicated. There&amp;#8217;s a very old plugin called &amp;#8220;lj-tag-parser&amp;#8221;. This thing has a very simple job: allowing the LJ-style syntax for usernames and communities in your WordPress posts and comments. I&amp;#8217;m using it right here on annathepiper.org, which is why you can actually see LJ-style usernames and tags if I write something like, say, &lt;nobr&gt;&lt;a href="http://www.livejournal.com/userinfo.bml?user=annathepiper"&gt;&lt;img src="http://stat.livejournal.com/img/userinfo.gif" alt="userinfo" width="17" height="17" style="margin-left: 5px; display: inline; border: 0pt none; vertical-align: middle;" /&gt;&lt;/a&gt;&lt;a href="http://www.livejournal.com/users/annathepiper/"&gt;&lt;b&gt;annathepiper&lt;/b&gt;&lt;/a&gt;&lt;/nobr&gt;.&lt;/p&gt;
&lt;p&gt;However, this thing hasn&amp;#8217;t been updated in ages. And I thought it&amp;#8217;d be nice to expand it to allow Dreamwidth-style syntax in addition to LJ-style, and possibly also allow generation of such tags via shortcodes.&lt;/p&gt;
&lt;p&gt;But before I do all of that, I wanted to make sure I could set up a clean WordPress dev install.&lt;/p&gt;
&lt;p&gt;In the past, when I&amp;#8217;ve played around with dev-type WordPress stuff, I just did this on a separate blog on my annathepiper.org network. But coming at this with my SDET hat on, I thought it&amp;#8217;d be cleaner and more appropriate to developing my coding experience if I set it up the way I&amp;#8217;d do it in a work environment.&lt;/p&gt;
&lt;p&gt;Which means a brand new, clean WordPress dev install. And in particular, using official WordPress and MySQL images from Docker.&lt;/p&gt;
&lt;p&gt;For those of you who aren&amp;#8217;t in the tech industry, suffice to say that Docker is a tool that lets you do exactly this kind of thing. You can set up a thing you want to play with in its own little container on your system, without having to worry about it interfering with anything else you might be doing. Docker lets you go about this in a few different ways. You can go get official images for things (like, say, the latest WordPress install) and do a single run using that image.&lt;/p&gt;
&lt;p&gt;Or, if you want to do something a bit more complicated (like, say, running the official WordPress image AND a MySQL image that you&amp;#8217;ll need to actually power the WordPress install), you can chain them together using a thing called Docker Compose.&lt;/p&gt;
&lt;p&gt;Docker Compose works by you setting up all the config data you need in a file called docker-compose.yml. I&amp;#8217;m still fairly new to the syntax this thing requires, but fortunately, I learned a bit about it while I was still at my previous day job at Big Fish. So I was able to utilize that knowledge to build a file that&amp;#8217;d let me set up that clean WordPress dev install I want.&lt;/p&gt;
&lt;p&gt;I did have to jump through a few hoops to get all the info I needed, though. Here are some pages that proved useful:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://medium.com/@tatemz/local-wordpress-development-with-docker-3-easy-steps-a7c375366b9"&gt;Local WordPress Development with Docker: 3 Easy Steps&lt;/a&gt; on Medium (for initial tips on what images I needed, as well as a handy note in the comments re: adding PHPMyAdmin)
&lt;li&gt;&lt;a href="https://github.com/rimiti/wordpress-dockerized-environment"&gt;WordPress Dockered Environment&lt;/a&gt; on Github (where I looked at that user&amp;#8217;s example docker-compose.yml)
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/34068671/docker-compose-wordpress-mysql-connection-refused"&gt;docker-compose wordpress mysql connection refused&lt;/a&gt; on Stack Overflow, to solve an issue I was seeing in my Compose logs
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/29924843/how-do-i-set-hostname-in-docker-compose"&gt;How Do I Set Hostname in Docker Compose?&lt;/a&gt;, also on Stack Overflow, to see what settings I needed to allow for a friendly hostname, vs. just having to say &amp;#8220;localhost&amp;#8221; in my dev URL
&lt;li&gt;&lt;a href="https://www.linode.com/docs/quick-answers/linux/wordpress-with-docker-compose/"&gt;Install WordPress with Docker Compose&lt;/a&gt; on Linode.com, which helped me solve an issue with the dev site not properly loading its assets
&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;So now, as of this writing, I have a nice little set of Docker containers running on my dev box on Linux. And the nice thing about doing this via Docker, especially, is that I could take this exact same docker-compose.yml, reboot my box into Windows, and use it there too. All I need to be running locally is Docker and Docker Compose. The rest of it comes in with the images I specify!&lt;/p&gt;
&lt;p&gt;And for the interested, I have checked in my final docker-compose.yml up on my personal Github account, and you can see it &lt;a href="https://github.com/annathepiper/wordpress-dev/blob/master/docker-compose.yml"&gt;right here&lt;/a&gt;.&lt;/p&gt;
&lt;p style="text-align: right"&gt;&lt;small&gt;Mirrored from &lt;a href="http://www.annathepiper.org/2018/12/27/practicing-with-running-wordpress-in-docker-today/" title="Read Original Post"&gt;annathepiper.org&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=annathepiper&amp;ditemid=1820801" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-05-01:143160:1820055</id>
    <link rel="alternate" type="text/html" href="https://annathepiper.dreamwidth.org/1820055.html"/>
    <link rel="self" type="text/xml" href="https://annathepiper.dreamwidth.org/data/atom/?itemid=1820055"/>
    <title>Upgraded annathepiper.org to WordPress 5.0</title>
    <published>2018-12-08T08:10:33Z</published>
    <updated>2018-12-08T08:10:33Z</updated>
    <category term="wordpress 5.0"/>
    <category term="wordpress"/>
    <dw:security>public</dw:security>
    <dw:reply-count>2</dw:reply-count>
    <content type="html">&lt;p&gt;This is a test, this is a test, this is a test. This is me playing with the new &amp;#8220;Gutenberg&amp;#8221; editor that comes with WordPress 5.0, and yep, this is sure different.&lt;/p&gt;



&lt;p&gt;Gutenberg is oriented around the concept of &amp;#8220;blocks&amp;#8221;. It keeps offering me things to do to various types of them, including paragraphs and shortcodes. I&amp;#8217;m not sure yet if I like this experience yet. But at least there&amp;#8217;s a plugin I can install to restore the classic editor if I decide to get rid of this.&lt;/p&gt;



&lt;p&gt;For now, anyway, I&amp;#8217;ve got this version of WordPress installed on my personal network of sites (which includes both annathepiper.org and angelahighland.com). Assuming nothing obviously explodes, I&amp;#8217;ll be rolling it around to the other sites hosted on murkworks.net this weekend.&lt;/p&gt;
&lt;p style="text-align: right"&gt;&lt;small&gt;Mirrored from &lt;a href="http://www.annathepiper.org/2018/12/08/upgraded-annathepiper-org-to-wordpress-5-0/" title="Read Original Post"&gt;annathepiper.org&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=annathepiper&amp;ditemid=1820055" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-05-01:143160:1814264</id>
    <link rel="alternate" type="text/html" href="https://annathepiper.dreamwidth.org/1814264.html"/>
    <link rel="self" type="text/xml" href="https://annathepiper.dreamwidth.org/data/atom/?itemid=1814264"/>
    <title>My Wordpress-&amp;gt;Dreamwidth crossposting is broken, boo</title>
    <published>2017-10-02T03:49:11Z</published>
    <updated>2017-10-02T03:49:11Z</updated>
    <category term="wordpress"/>
    <category term="annathepiper.org"/>
    <category term="geekery"/>
    <category term="logs"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">For whatever reason, my ability to crosspost from Wordpress-hosted blogs on murkworks.net over to this Dreamwidth account is b0rked. I have a ticket open with the support folks about this, but until we figure out what's going on, I'll need to direct y'all over to the posts I'm making on my home sites in the meantime.&lt;br /&gt;&lt;br /&gt;Like this one, which is mostly interesting to any of my pals from my days on MUSHes, since this impacts my old Roleplay Logs archive on annathepiper.org:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.annathepiper.org/2017/10/01/some-housekeeping-updates/"&gt;http://www.annathepiper.org/2017/10/01/some-housekeeping-updates/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Basically, I had to do some rejiggering of plugins on annathepiper.org, due to things getting deprecated and/or outright vanishing off of the Wordpress.org plugins repo. As a result I got to teach myself how to do shortcodes in a custom Wordpress plugin, which was kinda fun!&lt;br /&gt;&lt;br /&gt;As I say in the post over on annathepiper.org, if anybody sees anything funky looking there, do let me know.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=annathepiper&amp;ditemid=1814264" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
