AQ K.I.S.S

 

0 notes

 

0 notes

 

0 notes

The below article is part of a series I will be doing to help people better understand the world of Quality Assurance Professionals. Most people love our Split personalities :-).

http://www.bitdigest.net/number-1-reason-to-become-a-software-quality-assurance-professional-you-are-allowed-to-have-multiple-personalities/

 

0 notes

I have never been speed dating. Unless….you call leaving a date early after you have gotten all the information you need, than I have. However, I can assure you Java is much more interesting than one of “THOSE” dates.  

This tutorial will quickly breeze through Java. Maybe you need to know it for an interview or possibly for a Tech Meetup and you want to be able to add value to the conversation. It doesn’t matter what you are into I got you covered ;-).

Our Goal:

We are creating a class createfirstbook that will print a message “Aqueelah is Writing a Street Safety Book: http://hoodrulesthebook.com" on the console

Assumptions:

- You have downloaded Java (If not got to the following link): http://java.sun.com/javase/downloads/index.jsp

-You have set up your environment Variables “if required” (If Windows 7 you can view my previous post about JAVA): http://aq-kiss.tumblr.com/post/27368225595/setting-your-java-environment-variables-on-windows-7

- You are familiar with CMD (Command Prompt)

- You have Text Editor Software Installed such as NOTEPAD++ etc.

Things to know:

-These are Windows 7 based instructions you can view the links to figure out how to access on a particular OS (Operating System). However, everything else should be similar.

- We are only going to cover classes in this tutorial

- For creating a class we need to understand the below:

This class contains  public, static and void java keywords (these are pre-defined words in java which carries specific meaning).

- public keyword specifies the accessibility issues of a class. Here, It specifies that method can be accessed from anywhere.

- static keyword  indicates that this method can be invoked simply by using the name of the class without creating any class-object.

- void keyword specifies that this method will not return any type of data.

-main() method is the main entry point of the program, to start execution. First of all JVM calls the main method of a class and start execution .  JVM (Java Virtual Machine) is responsible for running java programs.

  1. args is a string array that takes values from java command line. It’s index starts from ‘0’. We can access values by writing args[0], args[1] etc.
  2. println() function prints the output to the standard output stream (monitor).
  3. out represents the standard output stream (monitor).

Steps to get Started:

- Open NOTEPAD++ or whatever text editor you have on your machine

- Copy and paste the below code

class createfirstbook{

 public static void main(String[] args) {

  System.out.println(“Aqueelah is Writing a Street Safety Book: http://hoodrulesthebook.com”);

  }

}

- Save your program as “createfirstbook.java”  in the appropriate directory

- From your Windows 7 machine go to the Start Menu and type CMD

- When you type CMD and your Command Prompt comes up make sure the directory is where your Java Programs are stored. For example in my case it is “C:\Users\agrant>”

- At the Command Prompt type – javac createfirstbook.java

- After your program is compiled and comes back with no errors at the second command prompt type – java createfirstbook

- Javac is to compile your Java Program which involves error checking

- Typing the second time is to run the program

- Since there are no errors in the above code it will execute and print

Aqueelah is Writing a Street Safety Book: http://hoodrulesthebook.com

Aqueelah Coding Blooper:  

(“There is always some Monday detail missing from the code” ~ Office Space the movie)

While creating this tutorial I had two different Java programs saved under different “names”. However, the code had the same class name which was “createfirstprogram”.  Every time I tried to compile the second program I received an error on “main”.

I renamed the class for this tutorial “class createfirstbook”, saved again and it compiled successfully. 

Are you ready for your second date with Java? Look out for most post in the near future.

Additional Resources:

http://docs.oracle.com/javase/tutorial/

http://docs.oracle.com/javase/tutorial/java/index.html

http://acronyms.thefreedictionary.com/CMD

 

0 notes

Okay so the Title of my post is a little drastic but it got your attention.

I’m on a journey to know every programming language that exists in some form or fashion.

I also know that Python is very big in the gaming industry and that is an industry I have recently become interested in. So let’s stop the chatter so you TOO can fall in love with code!

Things to know: 

Python is case sensitive

Python is easy to use which is another way of saying Python speaks English

Python is installed by default on most systems EXCEPT for Windows Machines

Assumption: You are on a Windows Machine

Steps for beginners to get going quickly:

- If Python is not already installed on your machine use the below link to download: 

http://www.python.org/download/  (FYI - If you are on Windows7 you most likely have a 64bit machine)

- Once you have downloaded you can go to your Start Menu and select Python27 or whatever version you have downloaded. Please note that this example is specific to Python27 however

- Select Python (Command Line) option

- Once you receive the Python (Command Line) pop up window start coding the following as an example:

print “Aqueelah is writing a Street Safety Book”

Your result for the above will be - Aqueelah is writing a Street Safety Book

How freaking simple was that?! 

- Now lets store a variable and then print it as we do in other programming languages on the Python (Command Line) start coding the following as an example:

my_variable=823

The above stores the variable for later use

print my_variable

Your result for the above will be 

823

Aqueelah Blooper Moment:

During coding you are NOT supposed to put ” (quotes) around the “my_variable” when you are trying to print as it recognizes it as a string when you do that.

So if you make a mistake and type:

print “my_variable” your result will be my_variable and NOT the stored number as you expected. 


Additional Resources:

http://www.learnpython.org/ (Free Interactive Tutorial where you won’t have to download Python to use)

http://docs.python.org/faq/windows

http://code.google.com/edu/languages/google-python-class/set-up.html

 

0 notes

Setting your Java Environment Variables on Windows 7

I was following instructions to Set my Java Environment up but the instructions were for Windows XP. So I had to find the setup for Windows 7 and felt like sharing :-). 

Assumptions: You have Windows 7 and you have recently downloaded “jdk1.7.0_05” from “http://java.sun.com/javase/downloads/index.jsp”

1) After you have downloaded right click on “My Computer”

2) When Control Panel appears click “Remote Settings”

3) Click “Advanced”

4) Click “Environment Variables”

5) When “System Properties” pop up appears go down to “System Variables” and click “New”

6) For Variable value “Path”

7) For Variable Name copy and paste “c:\Program Files\Java\jdk1.7.0_05\bin”

You should now be able to use the “javac” external command to compile your Java Programs

 

0 notes

“Programming Languages are like clothes, you don’t have to squeeze into one that doesn’t fit. Because there is always one that suits your style.
Aqueelah Grant
 

0 notes

“Through our greatest rejection comes our greatest direction
~ Unknown
 

0 notes

Continuation of: http://aq-kiss.tumblr.com/post/22233883202/html5-and-yahoo-small-business-hosting-issue

http://hisandhernews.com/aq_first_html5.html

There was a coding issue on my end where I had an additional  </video> closing tag which caused the player not to displayed. The visit.gif call that is generated from Yahoo is an unrelated issue. 

I am very excited that the aq_html5 player is working, now I have to make a few cosmetic tweaks. 

…stay tuned

 

0 notes

I spent my entire day at work today testing HTML5 players. Which included integrated third party Players. So I decided to come home and create one myself. I call it the AQ HTML5 PLAYER. 

http://hisandhernews.com/aq_first_html5.html - copy and paste in a supported HTML5 browser (Chrome, Safari, IE9, FF). Right click to view source code.

- I created a simple html page with <HTML> <HEAD> <TITLE> tags open and close

- I added some CSS for the background with <STYLE> tags open and close

- I used <BODY> tags to house the <video> tags open and close

- I used <video> tags and added <source> and scr tags 

- I added poster=”imagename.jpg” for Thumbnail image when video loads

- I added controls=”controls for the player controls

- I added tabindex=”0” to be able to allow the option to use keyboard to play/pause

- I added autoplay=”autoplay for playback preference

- I downloaded and utilized microconverter to convert my mp4 file to ogg and webm which are the 3 supported formats for html5

When I uploaded all the files to my Yahoo Small Business Account I was able to preview thumbnail image with player controls. However, it does not Autoplay. When it is clicked it launches in a smaller window and the Thumbnail image disappears. 

DEBUGGING the issue:

Loaded in Google Chrome and hit CTRL + SHIFT + I

The Developer Debugging Console throws the below call as an error and tells me to remove it. It also advises that this is being called directly from the Server. Which means it is being called from my Yahoo Server (hence the “webhosting.yahoo” call)

http://visit.webhosting.yahoo.com/visit.gif?&r=&b=Netscape%205.0%20%28Windows%20NT%206.1%3B%20WOW64%29%20AppleWebKit/535.19%20%28KHTML%2C%20like%20Gecko%29%20Chrome/18.0.1025.

MY ASSUMPTION/SOLUTION:
Is that I will have to contact Yahoo Small Business. However, I don’t believe this is a call that can be removed. I will have to do more research on the matter. In the meantime I will find another server to host my player on to confirm if this is the only issue. The resizing is a separate issue that I am investigating as well.