Archive for the Trainings Category

Creating a graph in PHP using PHPLOT object

Here is my example of creating a graph using an object – PHPLOT.  PHPLOT is an easy-to-use object which is now available and freeing yourself from lengthy code.  The only requirement is your knowledge in using a class, properties and methods.  The object is available is around the corner.

*********************************/
require_once(“mysqlidb.class.php”);
require_once(“config.php”);
require_once(“phplot.php”);

/* initialize connection */
$report = new mysqlidb(DB_HOST,DB_USER,DB_PWORD,DB_DATABASE);
$report->dbConnect(); //specify connection

$year = (!isset($_POST['year']))?date(“Y”):$_POST['year'];
/* retrieve result from database */
$query = “SELECT monthna,revenue FROM listofmonthlyrev WHERE ryear = $year”;
$report->viewRecord($query);

/* create an array */
$array_rep = array();
$ctr = 0;
while ($row = $report->fetchArray()){
$array_rep[$ctr] = array($row[0],$row[1]);
$ctr++;
}
/* free result */
$report->freeResult();

/* instantiate and define graph object */
$graph = new PHPlot();

/* assign data to plot */
$graph->SetImageBorderType(‘plain’);
$graph->SetPlotType(‘bars’);
$graph->SetDataType(‘text-data’);
$graph->SetDataValues($array_rep);

/* Main plot title */
$graph->SetTitle(“REVENUE FOR THE YEAR $year”);

/* Make sure Y=0 is displayed */
$graph->SetPlotAreaWorld(NULL, 0);

/* Y Tick marks are off, but Y Tick Increment also controls the Y grid lines */
$graph->SetYTickIncrement(100);

/* Turn on Y data labels */
$graph->SetYDataLabelPos(‘plotin’);

/* Turn off X tick labels and ticks because they don’t apply here: */
$graph->SetXTickLabelPos(‘none’);
$graph->SetXTickPos(‘none’);

/* With Y data labels, we don’t need Y ticks or their labels, so turn them off */
$graph->SetYTickLabelPos(‘none’);
$graph->SetYTickPos(‘none’);

/* Format the Y Data Labels as numbers with 1 decimal place. */
/* Note that this automatically calls SetYLabelType(‘data’). */
$graph->SetPrecisionY(1);

/* draw the graph */
$graph->DrawGraph();

/* close connection */
$report->disConnect();

graph using phplot

graph using phplot

Activity for I – BSICT students

Encode and save each of the html document including the embedded javascript below.  Also, study the embedded javascript for each document.  Open the document from an internet browser and draw the output in a coupon bond after clicking the click me button.  Deadline for the submission of this activity will be posted from this website or announce during the regular meeting.  Any clarification or inquiry post it by clicking the comments button below this article or message.

1.  Document number 1

<html>
<head>
<title>Javascript Number 1</title>
</head>
<body>
<input type=”button” value=”Click Me” onmousedown=”alert(‘My first javascript program.’)” />
</body>
</html>

2.  Document number 2

<html>
<head>
<title>Javascript Number 2</title>
</head>
<body>
<input type=”button” value=”Click Me”
onmousedown=”var strMessage = ‘My message using a variable.’; alert(strMessage)” />
</body>
</html>

3.  Document number 3

<html>
<head>
<title>Javascript Number 2</title>
</head>
<body>
<input type=”text” name=”txtInput” />
<input type=”button” value=”Click Me” onmousedown=”alert(txtInput.value);” />
</body>
</html>

Creating graph in PHP

The script below is a sample on how to create a bar graph using PHP language.

$arr_value = array(1 => 10, 2 => 20, 3 => 30, 4 => 40, 5 => 50);

/* image size and margin */
$img_height = 400;
$img_width = 600;
$margins = 20;

/* size of the graph – subtracting the size of borders */
$graph_width = $img_width – $margins * 2;
$graph_height = $img_height – $margins * 2;
$imageObj = imagecreate($img_width,$img_height); //create the image

/* define the width of the bar */
$bar_width = 20;
$total_bars = count($arr_value); //number of bars
//in – between spaces of the bar graph
$gap = ($graph_width – $total_bars * $bar_width)/($total_bars + 1);

/* define the colors which will be used for bars, backgrounds, lines and borders */
//int imagecollorallocate(image, int red, int green, int blue)
$bar_color = imagecolorallocate($imageObj,0,64,128);
$background_color = imagecolorallocate($imageObj,240,240,255);
$border_color = imagecolorallocate($imageObj,200,200,200);
$line_color = imagecolorallocate($imageObj,220,220,220);

/* border within the perimeter of the graph */
//bool imagefilledrectangle(image, int x1, int y1, int x2, int y2, int color)
imagefilledrectangle($imageObj,1,1,$img_width-2,$img_height-2,$border_color);
imagefilledrectangle($imageObj,$margins,$margins,$img_width-1-$margins,$img_height-1-$margins,$background_color);

/* max height of the graph */
$max_value = max($arr_value);
$ratio = $graph_height/$max_value;

/* draw horizontal lines inside the graph area */
$horizontal_lines = 20;
$horizontal_gap = $graph_height/$horizontal_lines;
for($i=1; $i<=$horizontal_lines; $i++){
$y = $img_height – $margins – $horizontal_gap * $i;
//bool imageline(image, int x1, int y1, int x2, int y2, int color
imageline($imageObj,$margins,$y,$img_width-$margins,$y,$line_color);
$v = intval($horizontal_gap * $i/$ratio);
//bool imagestring(image, int font, int x, int y, int string, int color)
imagestring($imageObj,0,5,$y-5,$v,$bar_color);
}

/* Drawing the individual bar */
for($i=0; $i<$total_bars; $i++){
list($key,$value) = each($arr_value);
$x1 = $margins + $gap + $i * ($gap + $bar_width);
$x2 = $x1 + $bar_width;
$y1 = $margins + $graph_height – intval($value * $ratio);
$y2 = $img_height – $margins;
imagefilledrectangle($imageObj,$x1,$y1,$x2,$y2,$bar_color);
imagestring($imageObj,0,$x1 + 5,$y1 – 10, $value, $bar_color);
imagestring($imageObj,0,$x1 + 3,$img_height – 15,$key,$bar_color);
}

header(“Content-type:image/png”);
imagepng($imageObj);

Output of the above PHP script.

Bar Graph

Bar Graph

Online database for DMBS class is now online

Online projects for database class can now start uploading their files. Store your files on your respected directory and use user name and password which was given to you to transfer files via ftp applications.

Also, database can now be restore using the portal by following the link on DBMS Class – Online DB and use the codes which were given for every group to login. Only SQL queries can be use in restoring database.  In creating table, you have to prefix your 3 – letter code in your table name.  If you failed to include, your table might be removed from the database.

Checking of project will be on September 14, 2009 and for other announcement can be viewed on this website.

Learning Resources for IT students are now available

Electronic books for IT are now available. Just follow the link for training resources.

The Philnits Advantage

Manila Bulletin February 16, 2007 Business Profiles page B9

Allen Chan Country Manager & Founder, JMS Communications, Inc.

“The benefits of passing the PhilNITS exam were truly unexpected and indirect; none of this would have been possible without PhilNITS.”

At the start, Allen was skeptical about the PhilNITS certification exam (formerly JITSE). It was in 2004 that he decided to take the exams after extensive preparations, self-study and review. In order to prepare for the exams, he bought all reviewers and past exams. He wasn’t still sure if he could make it.

Taking the PhilNITS exam was a personal challenge. “I took it upon myself and maintained discipline to review and finish all the materials. I was even reading the materials while commuting in the train (LRT) and jeepney.”

With his thorough study, diligence in reading the review materials and confidence, Allen passed the exams. “Wow, I did it,” was his first reaction upon learning that he passed the exams. The excitement even run high when he was chosen as one of the scholars of AOTS to undergo a training in Japan. Allen started as a trainee at Japan Media Systems (JMS) in Tokyo after undergoing a six-month training in Bridge Software Engineer sponsored by the AOTS of Japan.

His knowledge and skills gave him a tremendous boost to pursue his career. Upon his return from training in Japan and equipped with the knowledge and skills he had learned, Allen was asked by JMS to set up a local IT company to service the requirements of JMS and its clients. Allen’s success is just one of the many Filipino IT professionals who passed the PhilNITS exams, a stepping stone to more opportunities and professional growth.

source: www.philnits.org

7 Top Information Technology and Technician Exams For Certifications

If you happen to be a professional working in the Information Technology (IT) industry, you would be aware of the intensely competitive nature of the industry and the constant need it imposes on an IT professional to upgrade skill sets as technology evolves. You may have felt the need to conquer a new technology or upgrade your existing skill set or just to see where you stand among your peers. If this is the case, it is time to explore the advantages that acquiring an IT certification can provide.

Many vendors and third party bodies offer IT certification. Choosing the right IT certification would depend on what your current line of work is. Whether you plan to build on your existing skills or strike out a radically different course professionally, you have to make a decision on the type of certifications. You may opt for a certification provided by vendors like Microsoft, Oracle or Cisco or go in for certification by professional bodies like CompTIA.

Here are seven most sought-after IT certifications in no particular order:

- CompTIA Security+ – This is a certification for IT professionals with at least two-years of industry experience. It is not vendor-specific and is a test of the professional’s knowledge of the fundamentals of security.

-Cisco CCIE/CCNA – This is a certification provided by Cisco Systems for networking professionals. The CCIE is a comprehensive certification for experts, and the CCNA is meant to improve the skills of those with some experience.

-CompTIA A+ – This is tailored for validating the expertise in hardware and can be a valuable certification for computer-related maintenance and support professionals.

-Microsoft MCITP – MCITP stands for Microsoft Certified IT Professional and is a prestigious one meant for professionals in database, enterprise and server administration. This new certification offered by Microsoft assesses an individual’s capability in meeting the demands of common job roles in the IT industry.

-Microsoft MCSE/MCSA – MCSE (Microsoft Certified Systems Engineer) and MCSA (Microsoft Certified Systems Administrator) are two of the earliest certifications offered by Microsoft that still command respect in the industry. Both certifications demand a certain level of experience and involve a number of grueling examinations.

-Microsoft MCA – MCA (Microsoft Certified Architect) is a certification open to professionals who have a minimum of three years of experience on advanced IT architecture. This is a peer-evaluated certification and is awarded to very few of the aspirants. Obtaining this is considered an achievement in itself and is rated highly in the industry.

-RHCE/RHCA – With the proliferation of Linux based systems, there is a great demand for certified Linux professionals and RHCE (Red Hat Certified Engineer) and RHCA (Red Hat Certified Administrator) are two certifications awarded by Red Hat Inc.; one of the prominent distributors of Linux Operating Systems.

Ms. Pinky is a Computer Support Specialist for more than 25 years. Has a Bachelor of Science Degree in Computer Engineering, MS Research work in Systems Engineering.

Get more free computer tips on her blog at http://www.computerhelpdeskandsupport.com/

Article Source: http://EzineArticles.com/?expert=Pinky_Mcbanon

10 Multiple Choice Questions Free – CCNA Practice Exam – 640-802

Cisco Certified Network Associate (CCNA)

After you study your text books it is important to test your newly acquired knowledge and see just how well you have absorbed the material. Practice exams….

- Reinforce what you learnt – fill in the gaps of what you missed
- Get you used to answering questions to build confidence and familiarity

Here are 10 Multiple Choice exams questions for you to practice on:

Question 1# – Which of the following are ways to provide login access to a router? (choose all that apply)

A. HTTP
B. Aux Port
C. Console
D. LLC
E. Telnet
F. SNMP

Question 2# – Which statement is true regarding the user exec and privileged exec mode?

A. They both require the enable password
B. User exec is a subset of the privileged exec
C. The ‘?’ only works in Privileged exec
D. They are identical

Question 3# – This modem standard has a speed of 28.8k and has error-correction features.

A. V.42
B. V.32bis
C. V.90
D. V.34

Questions 4# – What would be the proper command to set a DCE clock rate of 56k for a serial interface?

A. Router (config) # clockrate 56000
B. Router# clockrate 56000.
C. Router (config-if) #clock rate 56000
D. Router (config-if) # clockrate 56k

Question 5# – What is an example of a MAC address?

A. Az32:6362:2434
B. BA:281x:8288
C. 101:354:665:8734:ffd6:8023
D. A625:cbdf:6525

Question 6# – Which command does not show that two devices are failing to route packets between them successfully?

A. show interface
B. trace
C. telnet
D. ping

Question 7# – You are designing a network which needs to support 200 users. You don’t plan to extend the segment beyond the current number of users. Which subnet mask would best meet your needs? Select the best answer.

A. 255.255.0.0
B. 255.255.255.0
C. 255.0.0.0
D. 255.224.0.0
E. 255.255.255.200

Question 8# – MAC is to Ethernet what ________ is to Frame Relay.

A. DLCI
B. LCI
C. PVC
D. None of the above

Question 9# – The 802.2 frame specifies a type whereas 802.3 frame specifies a length:

A. True
B. False

Question 10# – What is used to see if a client is still connected to a NetWare server?

A. Spoofing TCP/SAP
B. Watchdog packet
C. GNS Round Robin
D. DNS Round Robin

ANSWERS

Question 1 – Correct Answers: B,C,E
Question 2 – Correct Answers: B
Question 3 – Correct Answers: A
Question 4 – Correct Answers: C
Question 5 – Correct Answers: D
Question 6 – Correct Answers: A
Question 7 – Correct Answers: B
Question 8 – Correct Answers: A
Question 9 – Correct Answers: A
Question 10 – Correct Answers: B

By Georgie Stath – Certification Help is a beginners guide to getting certified. Also find 8 Accelerated Learning Techniques that will see you getting certified faster.

Article Source: http://EzineArticles.com/?expert=Georgia_Stath

Why Should You Get Microsoft And Cisco Certification?

Certifications are becoming a necessary part in the IT industry. They were established to guarantee that IT professionals followed a standard set of rules using a standard set of skills to ensure proper interaction with various areas of IT. Many certifications such as Microsoft, Oracle, and Cisco are developing rapidly in the field of IT.

I must say if a job is worth doing then its worth doing well to get a computer certification. Unless you are completely confident in your full understanding of all aspects of the world of PCs, you should take the chance and register for one of the training programs. These programs are developing such as to help you more.

These certifications will generally train you in the areas of “computer architecture, memory, modems, printers, hard disk setup and operating system optimization.

These certifications consist of two usual Exams. If you’re interested in information technology and are considering your possibility as a computer service technician, these entry-level certification could be perfect for you. Some certifications are for beginners, some are for experts. Understanding where you fit into that spectrum will help you determine which certifications are appropriate for you.

You do not need high level certification in order to obtain an entry-level job. What you do need in addition to the crest that you picked up are a professional resume, good cover letter, interview skills, a desire to learn, and a personality that makes companies want to hire you. Your first job will likely be at a help desk, working in a Tech support call center, contract work through a temp agency, etc. but you must have to go through any kind of certification before getting a job for your own convenience.

Learn more about CCNA Security, CCNA Voice and CCNA Wireless.

Article Source:

Certification Requirements For Beginning IT Professionals

Those who are interested in going to work in the information technology field are probably aware that certifications are very important. When hiring IT workers, employers frequently look for candidates who have specific certifications.

For entry-level positions, employers want to see certifications that validate that applicants truly have basic skills and an aptitude for IT work. Some companies will not even consider hiring entry-level candidates who do not have at least one professional certification. Even in cases where certification isn’t mandatory, it is certainly something IT employers view favorably.

Which Certifications Do I Need?

There are many different types of IT skills and jobs. Accordingly, there are many different certifications, each of which validates a specific skill set. The type of certification that you will need depends upon a number of factors, including: the industry you want to enter, the geographic location where you want to work, a company’s requirements, your background, and many other variables.

Popular Entry-Level Certifications:

Some of the most popular certifications for entry-level computer technical support professionals include:

• Microsoft Certified Professional (MCP)
• CompTIA Network+
• CompTIA Security+
• CompTIA A+
• Cisco Certified Network Associate (CCNA)

Keep in mind that this is not an all-inclusive list of entry-level IT certifications. Be sure to research your geographic market, industry, and type of position desired to learn which types of certifications will be the most beneficial to you.

How Do I Get Certified?

Before you take a certification exam, it is a good idea to make sure that you have the knowledge and skills necessary to be successful. There are a number of different practice tests for most certification exams. These practice tests can give you an idea of whether or not you are ready to sit for certification, or if you need to complete additional training prior to testing.

If you do need additional training, check out your options for online training as well as instructor-led training in your local area. Once you have the skills you need, then it may be time to register for your chosen exam.

Each vendor has different policies, fees, and requirements. Most IT certification exams are available at your local PearsonVUE testing center. Choose a convenient, comfortable testing center that meets your needs. Exam vendors frequently offer special pricing and promotions, so you should check for the best deals on certification testing vouchers. Your local testing center is often a good resource for information about the best deals on test vouchers.

Randall Olson is the Director of Information Technology for Mobile Technical Institute & MTI Business Solutions (http://www.mobiletechwebsite.com). He oversees the firm’s high stakes certification testing center, conducts computer application training, and manages MTI’s online learning programs. MTI is a full service training and consulting firm, providing open enrollment and on-site employee development training, database development, and website solutions.

Article Source: http://EzineArticles.com/?expert=Randall_Olson