Python Angles Visualization

On Quora, someone asked, “How can we write a python code to find the best angle that takes as arguments an initial elevation and initial velocity?” I said to myself, this is as good a time as any to write a Python program. Most good programs do not start with code. The first order of business was to review materials on deducing angles from an input of vectors. Create an approach, an informal design before creating a solution. What eventually follows is my first program in Python. Continue reading

Gautier RSS, Program Structure Overview

gautier_rss_20151009_program_structure

The screen shot of the program on the first page in this series of articles operates according to a defined logic. The sequence shown here is of a program that loads xml data into a sql database; translates that data into a format the general user-level portion of the software can understand; which then uses a module to map that data into a visual representation.

Another group of article describes the earlier part of the process. Gathering the data. That description is under the heading, Gautier RSS Engine. What follows below however, is what could be considered the visual aspect of the program. Major subsections of code for the user interface and 30,000ft level application code.

Continue reading

Gautier RSS, Data Translation Hierarchy

The process described on the previous page takes a certain form in this solution. It begins with a text file. This text file has two columns. Column A has the name of the rss feed and Column B has the web address where a feeds stream can be acquired. The program then issues a call over the network to get the data. The data then arrives as plain-text XML markup. An XML parser automates that step and translates the information into C++ data structures representing XML. Continue reading

Gautier RSS, Data Mapped to RSS Sections

The standard for rss is quite extensive and well researched. My use of it comes from a practical and pragmatic viewpoint. The main concern in this solution is the actual information which we can call the news headline, the headline’s summary, and a link where an article can be read in detail. I will focus on those elements and briefly illustrate how such information is represented in the context of rss.

RSS Representation

The format of the rss stream shown below comes from a snapshot of a rss stream from the BBC. I have highlighted in blue, one of the subsections comprising a single news item. The markup language is XML. It is very verbose. Here, we have each news item in a section marked by an tag. Continue reading

Gautier RSS, About HTML and XML

I start with a slight older version of the rss reader app that I built. It is a screen shot from Oct. 2nd. The latest version does a better job with presenting information full screen. This version however still illustrates one of the benefits of rss.

gautier_rss_older_version_Oct_2_2015

All the news items are in one place. That is huge time saver at the outset. With enough enhancement, this process could serve to increase the time available to a person for other things while remaining informed.

One of the downsides of surfing the web, a page at a time, is time suck. You can see quite a bit of information at once, but not as efficiently as is presented through a rss reader. It helps to see the two processes side-by-side. Continue reading

Gautier RSS, C++ and Technologies Description

Around 2009, I began alternating between operating systems in my personal/private use of computers. Sometime in 2010 or 2011, I slowly realized that languages and technologies I knew very well for the Microsoft environment would not travel with me.  This rss program is something I wrote out of curiosity and to solve some problems I had gathering information. I pursued a path that was not practical for me initially, but one I felt was worth the attempt. Continue reading

Gautier RSS Engine – Build

Code you write for a purpose is hardly useful if it cannot run as program. A compiler generally translates plain-text source code into a program that runs. A makefile is not required, it simply lists together various parameters you might otherwise enter by hand to initiate the conversion using various tools. The following makefile is used, primarily with g++, to convert the source code into the program shown on the previous pages. Continue reading