Agile Framework – Scrum Methodology (Framework)

Tuesday February 23, 2016.

Last night at school I was kinda hit by a thought. By thinking that I should learn PHP before I even begin a project is like keeping myself in a silo. All I need to do is learn the stuff I need from PHP then move on. I would just be wasting time learning useless stuff.

So if I want to write a blog engine what do I need.

User Story: As a developer I want to write a blog engine so I can document my development.

Acceptance criteria:

  • New post button
  • Title field -done 5 min
  • Body text field – done – 5 min
  • Submit Button – done – 5 min

As a developer I want to write a blog engine so I can learn web development.

Acceptance criteria:

  • Must run on server – runs on local host
  • Use database to store posts
    • learn how to connect to database PHP – done – 5 min
    • add entries to database through a web form – done – 45 min
    • retrieve and format entries to be viewed on page
  • Model, view, controller. Model:database, View:HTML and CSS, Controller: PHP

So I imagine the first thing that should happen is the page loads then php goes to the data base to retrieve what should be the first posts on the front page of the blog. All the menus will be lists in the database. For example the sidebar navigation links for learningPHP will be loaded into whatever page is part of the  learningPHP category

Wednesday February 24, 2016.

Yesterday went pretty well.

Today I want better adhearance to the methodology.

  • What are my user stories?
  • Can they be broken down into fine grain user stories?
  • Assign story points to each story.
  • What are the tasks for each user story?
  • Give each task a time value.

User Story: As a developer I want to write a blog engine so I can document my development.

  • As a user I want to create a new post so I can log my work
    • New post button – This is gone
    • Title field -done
    • Body text field – done
    • Submit Button – done
    • Fields required to post available at the bottom of the page.
  • As a users I want me posts to be formatted and presented on the page so they can be easily viewed.
    • retrieve post from data base – done – 10 min
    • program php to generate html body – this needs to be broken down into a finer grain story.
      • learn database data types, length, date
      • database title field must accommodate type and length <h2>
      • database body field must accommodate type and lenght <p>
      • add category field <h3>
        • category field must accommodate type and length
      • add date field

As a developer I want to generate an ERD model of my database so I can begin planning how to program it.

What do I really want? I want to be using the new database method already.

Thursday February 25, 2016.

As a developer I want to diagram out my system so I can get a better scope of the whole project.

Friday February 25, 2016.

As a developer I want to diagram out my system so I can get a better scope of the whole project.

  • ERD diagram of the database model – done 20 min
  • Class diagram of the PHP controller – 20 min
  • Prototype of the HTML CSS
    • title
    • side nav
    • top nav

Same as yesterday because I didn’t do it. OK. Quick brain dump. What do I need to do to make this happen? I’m going to go with the MVC approach. I think I need to learn a bit more PHP. Maybe a temporary add category button. The table should only hold unique instances of categories.

As a user I want to create new categories so I can organize my blog posts.

  • create category button
  • home button
  • create category page
  • CRUD category

Sunday February 28, 2016 – Diagram user Stories

As a developer I want to create a class diagram of how the PHP controller is going to work so I can understand the controller requirements.

  • diagram must include utility class objects
    • CRUD class
  • diagram must include data class objects – consider inheritance and polymorphism
    • post class
    • comment class
    • user class
    • category class
    • tag class

As a developer I want to create a




Android Development Training – Building Your First App

Understand basic XML compontents of Android user interface

– AndroidManifest.xml – I think this is the first xml to run before the main_layout.xml files
– fragment_main.xml – main view layout, viewgroup that holds views
– strings.xml – xml document that holds layout string object
– something – resource file that holds references to your apps resource object.

Is the viewgroup container that holds the elements you see on screen ie; buttons, text fields?

Yes the viewgroup is a container that holds the elements you see on screen like buttons and text fields. It appears that these elements are referred to as views.

initial ultimate goal – create a button that calls a java resourse.

After having no luck opening my app in the AVD (android virtual device) and on my tablet I decided to start from scratch. The app would install but would not open automatically nor display an icon anywhere in the launcher. I decided to go into the android SDK manager and install Android 4.4.2 API 19 Kitkat SDK rather than 4.4W (wear stupid) or L 20 api preview.

This time I created a new project and chose activity and fragment rather than blank activity. The tutorials directed me to choose blank activity however not fragment_main.xml was included when creating the project.

It appears that eclipse and Android need to be properly updated to fix the lack of frangment_main.xml and activity_main.xml

I tried with the windows version and got the same result. I think I will just have to accept the fact that I will be creating my own fragment and main xml layouts

After speaking with a developer at Bitter, I decided it best I downloaded the Android studio. He suggested that the tutorial written online are already geared for the new Android Studio. I did the initial tutorial and I was able to get the app running on my tablet and virtual device.

Saturday August 08 2015.

Activities are the java component of an android app. The XML layout could be considered the swing aspect of the application. Viewgroups can be considered the containers and views can be considered the components. Like swing, the view or component has to call the activity.

Q: Where do we define the activity or in other words; how do we point to the java file that we are going to use?

A: The is declared in the AndroidManifest.xml as an <activity> element within the <application> element

Q: How do we activate the new Activity?

A: android:onClick=”sendMessage”/> call the sendMessage() method in the file.

Q: How does it know to call the sendMessage() method in the

A: I’m guessing because MainActivity is set as the context in the LinearLayout element at the line tools:context=”com.example.firstproject.MainActivity”


Log4j2 – Basic Logging For Java Development – Eclipse


The purpose of this exercise is to implement Log4j2 as a console logger and file logger for Java development.

1. Download

2. In Windows explorer create a /lib/ folder in you project parent folder if one does not exist, typically the same folder that contains your /src/ package folder.

3. In Windows explorer move log4j-api-2.3. and log4j-core-2.3 jar files from the zip into the /lib/ folder you created

4. Right click and refresh your project in Eclipse Package Explorer to make the /lib/ folder visible

5. Right click log4j-api-2.3 and log4j-core-2.3 in the /lib/ folder and select Build Path -> Add to Build Path

  • /lib/ is not a package folder, /src/ is a package folder

6. Create log4j2.xml in your project /src/ folder so it is part of your class path – this is your configuration file.

 <?xml version="1.0" encoding="UTF-8"?>
 <Configuration status="DEBUG">
 <Console name="Console" target="SYSTEM_OUT">
 <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
 <File name="MyFile" fileName="all.log" immediateFlush="false" append="false">
 <PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
 <Root level="debug">
 <AppenderRef ref="Console" />
 <AppenderRef ref="MyFile"/>

7. Create a text file in your project parent directory and save it as all.log

For some unknown reason the logger didn’t work correctly the first time and even though the files were in the right place and the setting were correct. The logger couldn’t find the configuration file initially. I tried moving log4j2.xml to /src/main/resources/ with no success. Only after moving it back to /src/ did it finally kick in. I found this to be the same case when I implemented it for the first time in another project.