Articles

XML Elements Versus Attributes

By: Stephen Patrick | 03 Jun 2016 | Category: XML Introduction

XML Elements Versus Attributes

XML allows you to declare data in both elements and attributes. A common question in XML design is whether to use an element or attribute for a data item.

Read More

XML Naming Styles

By: Stephen Patrick | 03 Jun 2016 | Category: XML Introduction

XML Naming Styles

We can use different styles for representing names within our XML document. However, the naming style we choose for our documents should be consistent.

Read More

XML Element Naming

By: Stephen Patrick | 03 Jun 2016 | Category: XML Introduction

XML Element Naming

In this section we will talk briefly about some of the best practices regarding XML Elements. When choosing names for your XML language, you should pick descriptive names that closely match your domain. When choosing names for your XML language, you should pick descriptive names that closely match your domain. For example if we are considering a sentences we could have element names such as sentence, word etc.

Read More

XML Attributes

By: Stephen Patrick | 03 Jun 2016 | Category: XML Introduction

XML Attributes

We have previously talked about XML elements and have said that XML elements should resemble concepts in the domain of interest. In this section we talk about XML attributes. An XML Attribute can be contained within the start tag of XML Element. An XML Attribute can be contained within the start tag of XML Element. Attributes allow you to define characteristics on an element. XML attributes allow you to provide an XML element with more data that describes it.

Read More

XML Elements

By: Stephen Patrick | 03 Jun 2016 | Category: XML Introduction

 XML Elements

XML is an eXtensible markup language. We will talk about the different components that make up an XML document specifically in this section we will talk about XML Elements. An XML element is the basic unit of structure in an XML document. An element in an XML document is delimited by a start tag and an end tag.

Read More

Python Hello World

By: Stephen Patrick | 29 May 2016 | Category: Python Introduction

Python Hello World

A first example in Python Programming. We will use the python command line interpreter to demonstrate some examples. To start the python command line start your version of python on the command line. The python print command prints to the standard output.

Read More

How Is Python Supported

By: Stephen Patrick | 29 May 2016 | Category: Python Introduction

How Is Python Supported

Python is supported by the Python Software Foundation. The Python Software Foundation is a non profit organization that supports Python. The Organization deals with intellectual property issues, and, promotes python through conferences which are some of the largest python conferences in the world.

Read More

What Is Python Used For

By: Stephen Patrick | 29 May 2016 | Category: Python Introduction

What Is Python Used For

Python is a general purpose programming language. It can be used for a wide variety of tasks and applications. Some of these include Systems Programming, Image Processing, Internet Programming, Scientific Computing, Database Programming, and Game Programming.

Read More

Python Overview

By: Stephen Patrick | 29 May 2016 | Category: Python Introduction

Python Overview

Python is a high level programming language. Python is also an interpreted programming language, it has a large following which includes the scientific community. Python is a general purpose programming language and, is one of the most popular dynamic, programming languages, along with Perl, Ruby.

Read More

Python VirtualEnvWrapper Install Linux

By: Stephen Patrick | 28 May 2016 | Category: Python Setup Linux

Python VirtualEnvWrapper Install Linux

To install virtualEnvWrapper you can use PIP. You must also call the virtualenvwrapper.sh shell script to initialize the tool. It is recommended you put this into your shell start up script. The WORKON_HOME environment variable sets the location of where the virutal environment

Read More

Python VirtualEnvWrapper Install Windows

By: Stephen Patrick | 28 May 2016 | Category: Python Setup Windows

Python VirtualEnvWrapper Install Windows

As we mentioned to install virtualenvwrapper on Linux we can use virtualenvwrapper. However, on windows is not that convenient to use virtualenvwrapper as this gives us a script for running on a Linux shell. Instead we can use a tool specifically for windows called virtualenvwrapper-win.

Read More

Python VirtualEnvWrapper

By: Stephen Patrick | 28 May 2016 | Category: Python Setup

Python VirtualEnvWrapper

Python virtual environment wrapper is a tool which simplifies working with virtualenv. It provides simplified commands and places all your virtual environments in one place. Therefore, we recommend if you decide to use virtual environment you also install VirtualEnvWrapper

Read More

Python VirtualEnv

By: Stephen Patrick | 28 May 2016 | Category: Python Setup

Python VirtualEnv

Python virtual environment is useful Python tool, to create isolated environments for developing, and executing Python code. Consider, developing python code, without using this tool or any other tool for that matter. We install a version of python, and the dependencies (python packages) we need to develop and run our application. The python version we use, is most likely installed globally on our system. When we install packages these packages are installed into the global python installation.

Read More

Python Pip Setup Windows

By: Stephen Patrick | 28 May 2016 | Category: Python Setup Windows

Python Pip Setup Windows

With Python 2.X Pip is already installed if you have a version greater than 2.7.9. For Python 3.X, if you are using a version greater than Python 3.4 Pip comes installed by default. However you will need to upgrade PIP.

Read More

Python Pip Setup

By: Stephen Patrick | 28 May 2016 | Category: Python Setup

Python Pip Setup

PIP is a package management tool. It allows you to manage python software packages. Pip can stand for either "Pip Installs Packages" or "Pip Installs Python". Pip is useful as it allows you to automate the installation of packages.

Read More

Python Setup Windows

By: Stephen Patrick | 28 May 2016 | Category: Python Setup Windows

Python Setup Windows

Python is able to run on the windows platform. The first step is deciding on what version of python you wish to install. Python at the time of writing can be classified into two main versions. Python 2.X and Python 3. If you need to support Python 2.X and the code you are are using does not support Python 3 then you should stick with Python version 2.X.

Read More

XML Hello World

By: Stephen Patrick | 28 May 2016 | Category: XML Introduction

XML Hello World

As we have said XML is an extensible markup language. XML is a format for giving structure, and also semantics to data. XML stems from Standard Generalized Markup Language (SGML). SGML is the ancestor if you like of the XML Language.

Read More

XML Overview

By: Stephen Patrick | 27 May 2016 | Category: XML Introduction

XML Overview

What is XML ? Well XML stands for eXtensible markup language. So what is a markup language, well a markup language is a language that has features we use to augment text. It enables us to give semantics to text.

Read More

Java String: Trim Leading Whitespace From String

By: Stephen Patrick | 27 May 2016 | Category: Java String

Java String: Trim Leading Whitespace From String

The java string class comes packaged with a trim method. The java string trim method removes the leading and trailing whitespace from a java String. The trim method of the java string class can be useful to normalize a string before we perform comparison operations or displaying it on some medium. Below we will write some code to implement a trim method to remove all leading whitespace from a java string.

Read More

Java String: Trim All Whitespace From String

By: Stephen Patrick | 27 May 2016 | Category: Java String

Java String: Trim All Whitespace From String

The java string class comes packaged with a trim method. The java string trim method removes the leading and trailing whitespace from a String. Let's write some code to implement a variation of the java string trim method. This method will take a java string but instead of removing the leading and trailing whitespace from a java string, we will remove all of the white space from a java string.

Read More

Popular Articles