<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Beth Elwell on Medium]]></title>
        <description><![CDATA[Stories by Beth Elwell on Medium]]></description>
        <link>https://medium.com/@BethElwell?source=rss-1fb18b83898e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*v0OSPU0o0VKfEv7g.jpg</url>
            <title>Stories by Beth Elwell on Medium</title>
            <link>https://medium.com/@BethElwell?source=rss-1fb18b83898e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 19:50:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@BethElwell/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ESLint for Your OpenStack Project]]></title>
            <link>https://medium.com/@BethElwell/eslint-for-your-openstack-project-e7024aa9f0b9?source=rss-1fb18b83898e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7024aa9f0b9</guid>
            <category><![CDATA[eslint]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[openstack]]></category>
            <dc:creator><![CDATA[Beth Elwell]]></dc:creator>
            <pubDate>Tue, 07 Feb 2017 09:53:14 GMT</pubDate>
            <atom:updated>2017-02-07T09:53:14.374Z</atom:updated>
            <content:encoded><![CDATA[<p>In my last article I talked about ESLint, why to use it, and how to set it up for your project. I am going to focus now specifically on OpenStack and the ESLint style guidelines that have been created by the community under the project name eslint-config-openstack with the vision of maintaining consistent code across OpenStack as a whole.</p><p>OpenStack is a very large code base, spanning dozens of git trees, with over a thousand developers contributing every 6 months. As such, common style helps developers understand code in reviews, move between projects smoothly, and overall make the code more maintainable.</p><p>One of the beauties of ESLint is that, despite there being one standardised set of rules created for OpenStack, ESLint permits the overriding of these rules on a per-project basis to ensure that no project is hindered by a generalised decision and projects do not have to forgo the use of eslint-config-openstack due to fears of these restrictions. Saying this however, the point of having these standardisations may be slightly defeated if the aim is not to stay as close to the common guidelines as possible.</p><h3>Installing eslint-config-openstack in Your Project</h3><p>To add these rules to your project, follow these steps.</p><p>1. Install the npm package to your project:</p><pre>npm install --save-dev eslint eslint-config-openstack</pre><p>2. Add extends: &quot;openstack&quot; to your ‘.eslintrc’ yaml file. If your project is using ES2015, add extends: openstack/es2015&quot; instead.</p><p>…And that’s it! You are all set up to use ESLint in your project. If you want to be a bigger part of the decisions that are made to eslint-config-openstack rather than having to customise the rules to your project locally, the project can always have new patches submitted and feedback on existing changes that are in review to become part of the main project.</p><p>For more information see:<br><a href="https://github.com/openstack/eslint-config-openstack">https://github.com/openstack/eslint-config-openstack</a><br><a href="https://review.openstack.org/#/q/project:openstack/eslint-config-openstack+status:open">https://review.openstack.org/#/q/project:openstack/eslint-config-openstack+status:open</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwcONz6AGWu030oNf8B2dg.jpeg" /><figcaption><a href="https://pixabay.com/en/t-for-two-together-partnership-1723941/">https://pixabay.com/en/t-for-two-together-partnership-1723941/</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7024aa9f0b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to ESLint Code Linting]]></title>
            <link>https://medium.com/@BethElwell/introduction-to-eslint-code-linting-c532ac18cb4d?source=rss-1fb18b83898e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c532ac18cb4d</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[eslint]]></category>
            <category><![CDATA[linter]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Beth Elwell]]></dc:creator>
            <pubDate>Fri, 27 Jan 2017 17:58:16 GMT</pubDate>
            <atom:updated>2017-01-27T17:58:16.365Z</atom:updated>
            <content:encoded><![CDATA[<p>Prior to the beginning of my time at HPE working on OpenStack, I have to admit I hadn’t really heard of EsLint. Sure, I had used JSLint and JSHint in the past, and I had sort of accepted that JSHint was good enough for what I was using and focused my brain attention elsewhere. Looking back, I wish I had heard of ESLint earlier and saved myself some headaches from the past! So, I’m getting ahead of myself. Let’s start at the very beginning, a very good place to start (as the Sound of Music song would advise) and look at what linting actually is. Disclaimer: I might have binge watched some old musicals last weekend…</p><h3>What is ‘linting’ and why should I lint my code?</h3><p>In short, linting is used to find inconsistent or undesirable code in a project. By linting your code you can catch bugs early, avoid potential mistakes, and keep your code clean. This is particularly useful in a large team environment as it means no matter what your coding habits and background, the written code should all look similar to everyone else’s who are writing by the same coding rules. Pretty awesome on projects no matter how big or small as one day someone else is going to have to come along and make sense of that code. That will be one heck of a lot easier if there is one main code style across the codebase as opposed to several styles and little to no consistency.</p><h3>Why ESLint?</h3><p>So I explained earlier how I used to use JSLint in the past. Indeed there are a few commonly used linters out there. The main ones I will mention here are JSLint, JSHint and ESLint. Yes, they are all linters, and as such they do all have similar goals. However there are some key differences when it comes to the configuration.</p><p>JSLint was originally created by Douglas Crockford and, by enforcing JSLint in your project you were enforcing the rules that came along with it with a fairly limited set of configuration options. While this is great if you want a simple setup and go solution with standardised linting and leave it at that, a lot of people, myself included, want a bit more flexibility than that and to choose what rules to enforce and which to leave open.</p><p>That is where JSHint came in. Anton Kovalyov forked off JSLint, added some awesomeness, and voila, a linter that lets you configure the settings to suit your project requirements.</p><p>Awesome, I hear you say, now where does ESLint come into all this? JSHint covers most use cases, but it can’t possibly cover them all out of the box. ESLint was written completely differently to allow you to easily create your own rules from scratch and have things exactly as flexible (or inflexible) as you want. Thank you Nicholas Zakas!</p><h3>How do I install ESLint?</h3><p>First and foremost, to run ESLint on Node.js, ensure you have installed npm. If npm is not installed, follow the instructions at <a href="https://www.npmjs.com/">https://www.npmjs.com/</a></p><p>You can then either install ESLint either globally or locally to the individual project. NPM recommends installing it locally if you want to include ESLint as part of your project’s build system (<a href="https://www.npmjs.com/package/eslint">https://www.npmjs.com/package/eslint</a>).</p><h3>Installing ESLint locally</h3><pre># Install eslint locally to the root of the project:<br>npm install eslint --save-dev<br># Create the configuration file:<br>./node_modules/.bin/eslint --init<br># run ESLint on any file or directory:<br>./node_modules/.bin/eslint filename.js</pre><h3>Installing ESLint globally</h3><pre># install globally<br>npm install -g eslint  <br># create global config file<br>eslint --init<br># run ESLint on any file or directory:<br>eslint filename.js</pre><h3>ESLint Configuration</h3><p>After running the init command (see above), an .eslintrc file will be created in your directory. In it, you’ll see some rules preconfigured. The format of the configuration is firstly the names of rule being confugured followed by the error level of the rule that can be one of the following:</p><p>“off” or 0 — turn the rule off<br>“warn” or 1 — turn the rule on as a warning<br>“error” or 2 — turn the rule on as an error</p><p>These levels allow you complete control over how ESLint applies rules for your project.</p><p>For more information on configuration see <a href="http://eslint.org/docs/user-guide/configuring">http://eslint.org/docs/user-guide/configuring</a><br>For a complete list of rules see <a href="http://eslint.org/docs/rules/">http://eslint.org/docs/rules/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c532ac18cb4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenStack, Devstack and Horizon — Installing and setting up a basic OpenStack environment]]></title>
            <link>https://medium.com/@BethElwell/openstack-devstack-and-horizon-installing-and-setting-up-a-basic-openstack-environment-5ebf14acee21?source=rss-1fb18b83898e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ebf14acee21</guid>
            <category><![CDATA[openstack]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[devstack]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Beth Elwell]]></dc:creator>
            <pubDate>Fri, 27 Jan 2017 17:54:21 GMT</pubDate>
            <atom:updated>2018-02-28T11:16:06.275Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Updated as of 28/Feb/2018</em></strong></p><p>It is recommended install Devstack on a virtual machine as you can easily get rid of it without having much to lose if it were to crash and also ensuring that everything related to it has been removed so there are no unexpected clashes or errors when you come to reinstall it.</p><p>With my particular setup, as a front end developer, I prefer working on my mac rather than directly on my virtual machine. Therefore in this walk through I will be talking about how to set up your virtual machine, installing devstack there, then accessing that devstack from outside of your vm and setting up horizon locally on your mac or whatever system you choose to operate on.</p><h3>Setting up your virtual machine</h3><p>For this setup I am using VMware Fusion, however you can also setup your DevStack virtual environment using Parallels or by using the free software VirtualBox.</p><p>1. Download the relevant version of Ubuntu for your operating system <a href="http://www.ubuntu.com/download/desktop">http://www.ubuntu.com/download/desktop</a></p><p>2. Start up your virtual machine software and create a new machine.</p><p>3. Select linux from the list of supported operating systems followed by ‘install from image’ and select the ubuntu image you downloaded in step 1.</p><p>4. Provide a name you want to give your VM and the location for your VM files i.e. C:\VM\</p><p>5. Under the settings for processors and memory, ensure that you give the VM a minimum of 2 processor cores and the memory to 4096mb.</p><p>6. If you are using a new version of VMware you will be able to just set the VM to inherit the same network settings as the host computer, however if you are using an older version or VirtualBox set the network type to use bridged networking.</p><p>7. Leave other settings as default, press finish and let the Ubuntu installation run it’s course.</p><p>With the above settings you should have an Ubunutu VM ready you to install Devstack.</p><h3>Installing Devstack</h3><ol><li>Login to your Ubuntu virtual machine with ssh or the console and create the non-root sudo user to run Devstack with:</li></ol><pre>sudo useradd -s /bin/bash -d /opt/stack -m stack</pre><p>2. Give the stack user sudo privileges:</p><pre>echo &quot;stack ALL=(ALL) NOPASSWD: ALL&quot; | sudo tee /etc/sudoers.d/stack</pre><p>Output should be: stack ALL=(ALL) NOPASSWD: ALL</p><p>3. Switch to stack user:</p><pre>sudo su - stack</pre><p>4. Install git:</p><pre>sudo apt-get install git</pre><p>5. Clone the Devstack repository, cd into it and change to the latest stable version. Currently (28/Feb/2018) the latest stable release is stable/pike however stable/queens will be released shortly:</p><pre>git clone http://github.com/openstack-dev/devstack<br>cd devstack/<br>git checkout stable/pike</pre><p>6. Find your virtual machine IP address. It might be worth considering setting up a static IP but that process is not documented here:</p><pre>sudo ifconfig</pre><p>7. Create or edit your local.conf to look similar to the following. Make sure to edit HOST_IP to your virtual machine IP address as above. Your local.conf can be edited and configured to your exact requirements (see <a href="https://docs.openstack.org/devstack/latest/configuration.html">https://docs.openstack.org/devstack/latest/configuration.html</a>) but this will set you up for a basic deployment:</p><pre>[[local|localrc]]<br>ADMIN_PASSWORD=secret<br>DATABASE_PASSWORD=\$ADMIN_PASSWORD<br>RABBIT_PASSWORD=\$ADMIN_PASSWORD<br>SERVICE_PASSWORD=\$ADMIN_PASSWORD<br>HOST_IP=0.0.0.0</pre><p>8. At this point I highly recommend creating a snapshot of the vm that you have set up ready to stack so that you can revert to this point if stack fails for any reason or if you need to run everything again later in time. It is a helpful point to revert to, make necessary changes, and re-run. Following this you are now ready to run the stack.sh file to start the build process:</p><pre>./stack.sh</pre><p>9. After it is done it will return a URL for horizon. Open that link in your browser and you should then be able to access the OpenStack Dashboard from inside your virtual machine. The IP in the URL will also be the IP of the virtual machine which you will use in the next section to setup the OpenStack host IP. To clarify this you might want to run ifconfig from the terminal which will return your IP.</p><h3>Known errors and workarounds</h3><ol><li>Permission denied: ‘/home/stack/.cache/pip/wheels/</li></ol><p>Run the following command and re-run ./stack.sh:</p><pre>sudo chown -R stack:stack /opt/stack</pre><p>2. Failure retrieving project_id for demo or when creating initial neutron network elements — ensure that the vm memory is large enough (I recommend 4096mb) and that you have added your HOST_IP to local.conf.</p><h3>Installing Horizon outside of the virtual machine</h3><p>1. Clone the Horizon git repository from OpenStack to your main working environment (i.e. outside of your virtual machine):</p><pre>git clone <a href="https://git.openstack.org/openstack/horizon">https://git.openstack.org/openstack/horizon</a></pre><p>2. Under horizon/openstack_dashboard/local replicate and then rename the file local_settings.py.example to local_settings.py:</p><pre>cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py</pre><p>3. Open up the local_settings.py file in your preferred text editor. Change the OPENSTACK_HOST to match the hostname of your OpenStack server — i.e. the IP of your devstack virtual machine. This should be at about line 149 of the code.</p><p>4. Horizon now uses tox to manage virtual environments for testing and other development tasks:</p><pre>pip install tox</pre><p>5. Boot up Horizon by running the following from the root of the Horizon repository. The default port for runserver is 8000 which might be already consumed by heat-api-cfn in DevStack, therefore I recommend adding ‘localhost:9000’ to the command as below to start the test server at <a href="http://localhost:9000/">http://localhost:9000</a> :</p><pre>tox -e runserver -- localhost:9000</pre><p>6. Login to the horizon dashboard using the username: admin and password: as set in stack.sh build of devstack.</p><h3>Installing the Ironic UI plugin for bare metal provisioning</h3><p>Intro to the Ironic UI: The Ironic UI is a Horizon plugin that will allow users to view and manage bare metal nodes, ports and drivers.</p><p>1. Clone the Ironic UI repository:</p><pre>git clone <a href="https://git.openstack.org/openstack/ironic-ui">https://git.openstack.org/openstack/ironic-ui</a></pre><p>2. Change into your local Horizon repository and run the venv. NOTE: this has been preinstalled when horizon was setup with ./run_tests.sh — do not reinstall venv</p><pre>source .venv/bin/activate</pre><p>3. Copy the enabled file from ironic-ui/enabled to horizon/openstack_dashboard/enabled</p><p>4. Change into the ironic-ui repository and package the plugin:</p><pre>pip install -e .</pre><p>This will create a python egg in the dist folder and will install the plugin into horizon’s python virtual environment</p><p>5. Change back into the horizon repository and bring up your environment:</p><pre>./run_tests.sh --runserver</pre><p>The Ironic Bare Metal Provisioning plugin should now be visible in the Horizon navigation.</p><p>To uninstall, use pip uninstall (find the name of the package to uninstall by running pip list from inside the horizon .venv). You will also need to remove the enabled file from the openstack_dashboard/enabled folder.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ebf14acee21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Journey to Logical Creativity]]></title>
            <link>https://medium.com/@BethElwell/the-journey-to-logical-creativity-6cf7f899e381?source=rss-1fb18b83898e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cf7f899e381</guid>
            <category><![CDATA[logical-thinking]]></category>
            <category><![CDATA[living-outside-the-box]]></category>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[thinking-outside-the-box]]></category>
            <dc:creator><![CDATA[Beth Elwell]]></dc:creator>
            <pubDate>Fri, 27 Jan 2017 17:46:08 GMT</pubDate>
            <atom:updated>2017-01-27T18:00:29.196Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h8NsbsLzAmmGXBa4ncbJzw.jpeg" /></figure><p>So I’ve been thinking a lot lately about boundaries. Limits we set ourselves and others. Now boundaries can be a good thing, but they can also bring destruction and prevent us from reaching our full potential not only in our work lives but in the way that we interact with other people in our everyday lives.</p><p>Who we are and how we act should be a decision we make on our own as we grow up, but so often that is determined by other people and judgement of what we wear, how we talk… all sorts of things.</p><p>You will almost certainly heard people talking about being more of either a left or a right brain thinker, more creative, more logical. The left hemisphere of the brain has logical and analytical qualities whereas the right hemisphere has creative qualities. I love that we are all different. That we can all prefer different aspects of everyday things and thrive under different conditions. Accountants passionate about numbers and designers passionate about…well…design. Creativity. But what happens when the two mix? Can people who are more ‘logical’ also turn on that other side of the brain and cross the boundary into learning to be creative? And in fact, more to the point, whoever said accountancy couldn’t be creative?</p><p>Within the web development world there is a huge amount of terminology thrown around. Back end, front end, designers and specialist UX developers, python specialists… I believe there will always be a preference and a natural place we will each find our place, like I will always love front end development and be geekily passionate about SASS. But if we limit ourselves to just those areas we never know what we might be missing! How by engaging the other side of our brains and pushing those defined limits we can do things we never knew we could do and perhaps find we can do more than we thought. How can we bring creativity to things that can seem like purely logical tasks? How can logical processes and thought take creativity to the next level?</p><blockquote><em>“Always dream and shoot higher than you know you can do. Don’t bother just to be better than your contemporaries or predecessors. Try to be better than yourself. — William Faulkner”</em></blockquote><p>The problem is how can we get to that place when we never give ourselves a chance? As a front end developer I would normally not be expected to be good at MySQL or PHP, database development…all that scary back end stuff. I have been lucky enough to work in an environment where I have had the flexibility and encouragement to play around and experiment. After 2 .5 years of web development I can say I love databases as well as the pretty interfaces I get to primarily work with. I enjoy seeing things come together and just work and so to some extent enjoy back end development just as much as front end, although I am not as proficient in it due to the amount of time I spend there.</p><blockquote><em>“Thinking about the whys of what we do and, for me, how I code…just because its a trend or we are told it is the ‘right’ way to do something doesn’t mean it shouldn’t be tested &amp; challenged. — Beth Elwell”</em></blockquote><p>People talk about full stack developers as unicorns…some mystical creature flying way up somewhere in the clouds vomiting rainbows…I hope one day to be able to call myself a full stack developer though I am not sure I’m there yet but I’m not gonna lie, I am no unicorn and I don’t want to be either! Trying out new things and pushing the boundaries that your clothing, job title, friends, family or religion define should be a natural part of life. Not accepting facts as facts until they have been tested to be so. Not accepting what you’ve been told is impossible but taking it and making it possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cf7f899e381" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>