Python, Linux, Docker, Selenium, Java, Devops
IntroductionLately I've started working on this pelican-plugin that will use special command in markdown article to "magically" change it's content into a fancybox-alike.I've started it with badly without TDD and that approach failed to leave me with successful plugin created.My failure was also in copy-pasting others plugins …
PrerequisitesI've initially looked at my source code and Github and found that I've got few things a bit wrongly implemented (not using properly <a href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself" rel="nofollow">DRY principle</a>.)I've found also that <code>gpxreader_test</code> branch should be finally merged to master.I've found also that android-initial startup as module that as not been …
Trackpoints Routepoints and WaypointsBefore today's change, in my source code for tests I had only trackpoints. This worked pretty well, but then I've figure out, I need to be able to check if someone's going to use different type of *points. And obviously I added this to my steps-to-make …
IntroductionAs you might probably read at <a href="fancybox-plugin-and-test-driven-development-flow.md" rel="nofollow">yesterdays article</a> I've finally found how I shoud follow TDD principle and "flow".It basically means, I will not create a bunch of tests, but instead I'll create a bunch of not-implemented methods/functions that are documented about their responsibilities but has no …
Test Driven Development FlowSo lastly I've introduced to myself a Test Driven Development, but unfortunatelly I didn't examine the flow and approach as much as I should.Thanks to <a href="https://sites.google.com/site/unclebobconsultingllc/" rel="nofollow">Uncle Bob</a> I've realized what exactly TDD flow looks like.1. Make a test that (should) fail.The idea is …
IntroductionI've informed you I'll be doing Business Logic for Biking Endorphines.To make best of my time I've considered to go with TDD and that's why I'll first implement Tests for Business Logic.This will propably shape all business logic, but I'll have already tests with myself for future …
Introduction - What's this Android application doing in python project??You may wonder why use Android application in python project??Python project was from the beginning only one part of product that I wanted to create.Second part was always the Android application that will gather data from GPS and show …
IntroductionAs I've informed you at post <a href="pelican-blog-with-pelican-bootstrap3-theme" rel="nofollow">Pelican Blog with Pelican-Bootstrap3 theme</a>, I've started working on fancy-box image viewer and adjusting it's usage for pelican blogging engine.FancyBox - What it is and how it worksQuoting product site:<code>FancyBox is a tool for displaying images, html content and multi-media in …</code>
IntroductionSo my first initial change for Parameterizing test-cases was a bit of failure - you can check this <a href="parameterized-django-testcases-at-biking-endorphines" rel="nofollow">Parameterized Django Testcases At Biking Endorphines</a>Let's change that :)Prerequisites - How to use Pytests1. Install pytests with pip :pip install pytest2. Import Pytest in your file containing tests:import pytest …
IntroductionAfter reviewing what is at the <a href="https://github.com/anselmos/Biking-Endorphines/tree/gpx_reader" rel="nofollow">gpx_reader branch</a> I've found #TODO that said about making mocks, but it was not best name for what I've intended to do. I've wanted to parameterized the TestCase, so I could use different type of test-source data for one and the same test …
IntroductionAs I've informed you at post <a href="pelican-blog-with-fabric-and-ftp-deployment-part2-on-2" rel="nofollow">Pelican blog with Fabric and FTP deployment part 2/2</a> I've started working on <a href="https://github.com/getpelican/pelican-themes/tree/master/pelican-bootstrap3" rel="nofollow">Pelican Bootstrap3 Theme</a>.it's a MIT licensed theme that supports categories, github project's information, social information and few others that I'm currently not interested in.How to use pelican-bootstrap3 …
Plan for this solutionThis time I had a plan.The plan assumed that I'll create initial solution for GPX reading information.Reading basic information like points and just create initial test-cases for this.I've even created a sub-class of GPXReader for Endomondo Specific format data, but thus far endomondo's …
GPX File Reader - initial requirements.Yeah so as I've announced at <a href="github-pages-and-travis-auto-deployment" rel="nofollow">Github Pages and Travis auto Deployment</a>, I'm starting work on GPX File reader.Let's first create a requirements on this task.What's our assumptions ?1. We will not invent wheel againI'm not going to create another library that …
FTP Deployment using ftputil for Pelican Blog.Process of creating Fabric Deployment with FTP included:1. Using Quickstarter for creating default pelican blog example.2. Setting-up FTP Server for testing.3. Adding ftp_upload task at Fabric default fabfile.py.4. Exploring and development of ftp_upload task using <a href="http://ftputil.sschwarzer.net/trac" rel="nofollow">ftputil</a> and <a href="https://docs.python.org/2/library/netrc.html" rel="nofollow">netrc …</a>
Auto Deployment of Pyreverse output to Github Pages!That's our today's goal - to achieve it there is a lot of middle steps to take-over.I've found a best tutorial I could - <a href="http://www.steveklabnik.com/automatically_update_github_pages_with_travis_example/" rel="nofollow">Automatically Update Github Pages with Travis</a>I've follow it with successful auto-updating github page.Ofcourse I've tweaked it to …