Friday 28 December 2012

Cloud Computing

Cloud Computing "C2" ;-
Cloud Architecture or Engineering which is popularly known to be Cloud Computing is majorly embraced by today's large Enterprises like Google, Amazon(EC2), Stackato, HP(which stepped up recently) and others. Cloud Computing which involves the use of Networked Computing Resources that are delivered or accessed as a service over a network, mostly a large and extensive network especially the Internet. The Cloud Computing has some features like Autonomic Computing, P2P Computing, Utility Computing, Client-Server Model, Extremely High-Processing Power Computers e.g., Mainframe Computers, Grid Computing. The "Cloud" name comes from the Highly Complex Architecture employed on the Servers that enables a variety of devices to use the Cloud Services that are usually abbreviated with an "aaS".
  • Infrastructure as a service (IaaS)
  • Platform as a service (PaaS)
  • Software as a service (SaaS)
  • Network as a service (NaaS)
  • Storage as a service (STaaS)
  • Security as a service (SECaaS)
  • Data as a service (DaaS)
  • Database as a service (DBaaS)
  • Test environment as a service (TEaaS)
  • Desktop virtualization
  • API as a service (APIaaS)
  • Backend as a service (BaaS)

PHP


PHP acronym  meaning Personal Home Page Tools changed to PHP: Hypertext Preprocessor in 1997, it was designed by Rasmus Lerdorf using C programming language in 1995. PHP is a more of a server-side scripting language than programming language because of it's weakly typed syntax and limited capabilities to system resources, designed for web development to develop web portals, applications and CMS(Content Management System). It has evolved over the years now has a CLI(Command Line Interface) and GUI-based capability to produce stand-alone GUI applications. Major softwares designed using PHP include Content Management Systems like, Joomla, Drupal, Wordpress, WikiMedia, etc. Current version of PHP is PHP 5.5.0 alpha released on November 2012, of which PHP 6 is yet to be released probably next year which is not known.

Java Enterprise Edition




Java Standard Edition acts as a core of Java's other editions, that is, Java EE, Java ME, Java FX, Java Card and PersonalJava. Java Enterprise Edition was added to give Java Technology an extended capability of distributed and multi-tier architectures, and web services that provides an extensive API to develop an enterprise applications, Large-scale software that includes network and web services that are robust, reliable, scalable, flexible, and highly secure to the desired industry standards. The Java EE platform has evolved over the years, currently known as Java EE 6(Java Enterprise Edition 6), Java EE 7 is the latest release.
  • J2EE 1.2(Dec 12, 1999)
  • J2EE 1.3(Sep 24, 2001)
  • J2EE 1.4(Nov 11, 2003)
  • Java EE 5(May 11, 2006)
  • Java EE 6(Dec 10, 2009)
  • Java EE 7(May 28, 2013) under JSR 342
 There are many application servers that support and can run Java Web or Enterprise Applications, but the preferred and recommended application server would be Glassfish Server Open Source Edition, current version v3. Java EE 6 is rich full of libraries and frameworks that has proved development to be quite of high complexities and this has been quite challenging for junior developers like me. I didn't mention about java-based build tool Ant which is proved to be very important for Web or Enterprise Application development. Java EE 6 which is multi-tier has the Client-tier(runs on Client's machine), Web-tier(runs on Web Server), Bussiness-tier(runs on Web Server), and the Enterprise-tier(runs on Database Server).

Thursday 22 November 2012

Python GUI Snippet

An example of a Hello World GUI snippet using Python programming language;-

#! /usr/local/bin/python
from Tkinter import *
root = Tk()
w = Label(root, text="Hello, World!\n")
w.pack()
root.mainloop()




Screenshots


Friday 9 November 2012

Towers of Hanoi


The Towers of Hanoi is one of the classic problem every budding computer scientist must grapple with. Legend has it that in a temple in the Far East, priests are attempting to move a stack of golden disks from one diamond peg to another. The initial stack has 64 disks threaded onto one peg and prearranged from bottom to top by decreasing size. The priests are attempting to move the stack from one peg to another under the constraints that exactly one disk is moved at a time and at no time may a larger disk be placed above a smaller disk. Three pegs are provided, one being used for temporarily holding disks. Supposedly, the world will end when the priests complete their task.


Friday 31 August 2012

First C/C++ Executable or Binary File

If your C/C++ configuration is okay you can be able to create an executable file with any kind of a normal text editor e.g., notepad if you're using windows. An executable file is also a binary file in other words.For your information you do not need any specialized editor to do this.

Let's do an example;
  1. Open your text editor i.e., notepad and type the following code;
             #include <iostream>
             #include <string>
             using namespace std;

             int main(){
             string n ("User");
             cout << "Enter your name: ";
             getline(cin, n);
             cout << "\nWelcome to C++ programming, " << n << "!\n" << endl;

             return 0;}

     2.  Save this file as Hello.cpp or Hello.cc on your desktop (Note: It should not have any other extension).
     3.  Go to your shell or command prompt and change directory to desktop, e.g.,
           cd  C:\Users\RAWG\Desktop
    4.   Type the following;
           c++ Hello.cpp                   {to compile c++}
    5.    An executable will be created on your desktop "a.exe".
    6.    On your command prompt or shell type the file's name "a" i.e., a.exe.
    7.    It should ask for your name then display "Welcome to C++ programming, <name>!".
    8.    Do the same process for a C executable save it as "Hello.c".
           Here is the code for a C executable;
            #include <stdio.h>

            int main(void )
           {
            printf("Welcome to C programming!\n" );
            return 0;}
   9. On any other platform go to your shell and use your OS editor follow the instructions as above.

  



Sunday 26 August 2012

C/C++ Configuration

How to Configure C/C++ configuration on Debian 6;
  •  Download the respective GNU Linux c/c++ compiler archives namely,  gcc-core-3.4.5 and gcc-g++-3.4.5
  • Go to your shell or terminal and you'll need to a super user or root to install this.
  • On the terminal change directory to where the repositories or archives are located.
  • Type on the terminal cd <directory of archives> i.e., cd /home/rawg/Desktop 
  • Install using the following commands  apt-get install gcc-core and apt-get install gcc-g++ to install both C and C++ compilers.
To test if am right type c++ --version on the terminal  you should see your version of the compiler if it is successful.

On windows;
  1. First you need to be connected to the Internet 
  2. Download GNU's compilers either cygwin or mingw.
  3. Install one compiler
  4. Go to the installation directory of the compiler e.g., C:\MinGw\bin
  5. You'll need to copy the bin directory to your Path as I have done for Java compiler.
  6. Follow the same steps as the  Java configuration

Sunday 5 August 2012

Judge's Case Ruling on Google's android

Google's Android OS which is known to be written from the Java programming language(owned by Oracle), accused of using Java's APIs by Oracle. The judge's ruling about the case was Java's APIs aren't copyrighted or patented so Google was allowed to use Java API's in it's android system.Oracle also litigated Google last year which still Google won the lawsuit, Oracle is said to have lost billions of dollars.Oracle which still appears to relentless in the battle against Google.

Friday 20 July 2012

Java Standard Edition

JAVA SE SDK CONFIGURATION
Java Virtual Machine(JVM) configuration is the core of everything when it comes to Java applications either web or desktop wise, so it is a fundamental to first set up a Java Virtual Machine that is, Java SE SDK(Standard Development Kit) configuration before developing or running any application.This is the primal platform which java applications run on, by the way Java Standard Edition is also known as "Core Java".

On windows  
1. Locate My Computer icon either on the desktop or the start menu options.
2. Right click on the My Computer icon, left click on the pop menu options "Properties".
3.  The System Dialog window appears.




4. Click on the "Advanced" tab, just down on that tab click on "Environmental variables" button.






5. On the new dialog window that appeared go down to "System Variables" title click  Path variable.





6. Double click on the Path variable to edit, a new dialog window appears showing variable name and variable value.

7. On the Variable value text field click inside it, using the keyboard navigational keys scroll to start or end of the text field.
8. Now paste the "bin directory of your Java Development Kit(J.D.K.)", that is, for example,
"C:\Program Files\Java\jdk1.6.0_14\bin".





9. Click OK, then click OK  on the Environment Variables dialog window, you can even close the other windows.


Alternative 
 1. Click on Start button then click on the Control Panel(right of the Start Menu). 




 2. On the new window that has appeared click on Performance and Maintenance.




 3. Click on the System on the new appeared window and a System dialog window appears.




 4. The System Dialog window appears click on the "Advanced" tab, just down on that tab click on "Environmental variables" button.





5.  On the Environment Variables dialog window that appeared go down to "System Variables" title double click  on Path variable to edit.





6. A Edit System Variable dialog window appears showing variable name and variable value.
7. On the Variable value text field click inside it. 

8. Using the keyboard navigational keys scroll to start or end of the text field.

9. Now paste the "bin directory of your Java Development Kit(J.D.K.)", that is, for example, "C:\Program Files\Java\jdk1.6.0_14\bin".





10. Click OK, the Environmental Variables click OK, you can close other windows beneath.

To test your JVM type javac on the command prompt or shell if there is a message as "command not found or not recognized" then you'll need to need to repeat the steps above more carefully until you see many java's compiler options.

Thursday 19 July 2012

Tablets

HTC Flyer
HTC Flyer aka HTC Evo View 4G is a Tablet Computer manufactured by HTC Corporation released in May 2011. It runs on a 1.5GHz Qualcomm Snapdragon processor with Android OS Gingerbread, 1GB DDR2 RAM and a very impressive 7-inch TFT Multi-touch Capactive Touchscreen Display.




Apple iPad
The apple designed and marketed tablet computer has been a hit and is known to be the best tablets ever since start of tablets.
Nexus 7
Google's nexus 7 tablet developed with Asus is a 7-inch tablet known to have a direct competition with Amazon's tablet Kindle Fire.
Kindle Fire
Amazon's Kindle fire 7-inch tablet is said to be running on a forked version of android OS which amazon uses to market itself online through features like cloud accelerated Amazon Online App store.



Samsung Galaxy Tab
Samsung's 7-inch tablet computer characterized by a TFT-LCD touch screen that is enclosed in a plastic frame. It's 1.0 GHz processor which is a product of ARM architecture code-named "Humming-bird".