Friday, June 20, 2014

PHP Basic Concepts: Flag-like

Someone asked me, how to code this flag-like image. So, here is the code. I hope the sample script helps.


Note: These materials are used for basic web programming class of AMACDO, section A3/B3. 

PHP Basic Concepts Part1: Binary and Multiplication Table

These sample programs were coded using PHP scripts. If-Else statement and Looping statements were applied to these samples.



The first sample program used binary concepts; that all odds have a value of 1 and 0 for evens. In order to get this easily, use  modulus.

The second sample program used multiplication table concepts. The codes applied table tag of html for alignment purposes. 


Note: These materials are used for basic web programming class of AMACDO, section A3/B3. 

Tuesday, May 13, 2014

HOT TOPIC: NAPOLES LIST REVEALED, LACSON'S COPY


(UPDATED 6:32 p.m.) A total of 80 lawmakers, past and present, were in Senator Panfilo Lacson’s version of the list of names alleged mastermind Janet Napoles linked to the pork barrel scandal.

Aside from Senators Bong Revilla, Jinggoy Estrada and Juan Ponce Enrile, against whom charges are being pushed, the full list also included Malacanang allies.

Tagged in the so-called “Napoles list” are Senators Francis Escudero, Loren Legarda, Alan Peter Cayetano, Manny Villar, Koko Pimentel, who ran under the administration banned in polls.

More opposition senators were also in the list, including Senators JV Ejercito (as San Juan representative), Tito Sotto and Gringo Honasan. Ex-senator Robert Barbers was also in the list.
Budget Secretary Butch Abad was included in the roster as a member of Congress. Prior to his stint in the Cabinet, Abad sat as Batanes representative.

Lacson, now presidential assistant for rehabilitation and recovery, said he obtained the list from Napoles’ husband Jaime. It is only one of several versions of such a list.

Justice Secretary Leila De Lima has another list, which Napoles herself revealed to her in an affidavit. The Justice chief has yet to make public her version of the Napoles list.

The Senate Blue Ribbon Committee on Monday issued a subpoena for De Lima to disclose the list, amid rumors of efforts to “sanitize” the list of administration allies.

Aside from senators, 68 congressmen are also in Lacson’s version of the Napoles list. More prominent names included that of Mikey Arroyo, Iggy Arroyo, former Customs chief Ruffy Biazon and TESDA chief Joel Villanueva.

Officials from the Agriculture and Agrarian Reform departments, the National Livelihood Development Corp. and the Technology Resource Center were also named.

Missing from the Napoles list, however, is Senator Miriam Defensor-Santiago, who Lacson earlier tagged in the pork barrel scandal.

Santiago earlier slammed Lacson, who she said is acting as “attack dog” for Senator Juan Ponce Enrile. The senator added that she has never dealt with Napoles.

Abad also denied his involvement, saying, “I find it amusing, if not outright revolting, that I am once again in the crosshairs of those who want the Aquino Administration to fall.”

Here is the list of names (arranged according to document from Lacson):

Senate:
Ramon Revilla Jr.
Jinggoy Estrada
Juan Ponce Enrile
Tito Sotto
Loren Legarda
Koko Pimentel
Manny Villar
Alan Peter Cayetano
Gringo Honasan
Robert Barbers
Francis Escudero

Congress:
Jesus Judin Romualdo
Florencio Abad
Banzai Nieva
Maite Defensor
Mikey Arroyo
Joel Villanueva
Isidro Ungab
Reynaldo Umali
Salacnib Baterina
Conrad Estrella
Victor Ortega
Neil Benedict Montejo
Arthur Pinggoy
Samuel Dangwa
Florencio Flores
Erwin Chiongbian
Erico Fabian
Floriencio Miraflores
Napoleon Beration
Ricky Sandoval
Max Rodriguez
Rufus Rodriguez
Rizaline Seachon Llanete
JV Ejercito
Edgar Valdez
Scott Davis Lanete
Rafael Nantes
Sunny Rose Madamba
Ruffy Biazon
Gerald Gullas
Carlos Padilla
Rodolfo Plaza
Arnulfo Fuentebella
Raul Del Mar
Rommel Amatong
Marc Douglas Cagas
Digaden Dilangalen
Iggy Arroyo
Rodolfo Valencia
Eduardo Zialcita
Nanette Castelo Daza
Constantino Jaraula
Clavel Martinez
Manuel Ortega
Peter Falcon
Isidro Real
Corazon Malanyaon
Narciso Monfort
Uliran Joaquin
Juaquin Chipeco
Abdullah Dimaporo
Ernesto Pablo
Marcelino Libanan
Rolex Sulpico
Benasing Macambon, Jr.
Jesnar Falcon
Nasser Pangandaman
Hussein Pangandaman
Boy Umali
Amado Bagatsing
Oscar Malapitan
Ruben Ecleo
Arrel Olano
Jesli Lapuz
Oca Rodriguez
Victoria Alvarado
Generoso Tulagan
Prospero Nograles

Department of Agriculture:
Ofelia Agawin
Allan Umali
Proceso Alcala

Department of Agrarian Reform:
Teresita Panlilio
Narciso Nieto

National Livelihood and Development Council:
Alexis Sevidal

Technology Resource Center:
Antonio Ortiz
Dennis Cunanan

National Agribusiness Corporation:
Rhodora Mendoza
Antonio Ortiz

Agents:
Ruby Tuazon
Bryan Yamsuan
Jen Corpuz
Mat Ranillo
Pauline Labayen
Catherine Mae Santos
Patricia Agana Tan
Allen Ruste
Mon Arcenas

Credits:
https://ph.news.yahoo.com/lacson-s-version-of--napoles-list--revealed-093119746.html
Photo - google.com

Saturday, April 12, 2014

How to Install Red Hat 6.0 in an Easiest Way

This video will teach you on how to install Red Hat6 Operating System which is one of the Linux products. The video is made by the third year students of AMA Computer College as their partial requirement of CS342 course subject. The proponents use vernacular language in narrating the steps in stalling the OS to avoid issues. 

Feel free to comment.

Saturday, March 15, 2014

Looping Exercise

Exercise 1. Can you see the figure? Try to code this using looping statement(s). Use your logic skills to come up with this output. Note: Make sure to analyze first before putting it into written instructions. 

Tuesday, March 11, 2014

Basic Loop Concept: Example B


A Program instruction that repeats some sequence of statement in a specified number of times. Below are some examples of simple for loop.

Example No 3. Reversing the Numbers of Column A in Column B. The numbers to be outputted in column A are 1, 2, 4 and 8.


Example No 4. Row ODD is 1 and row EVEN is 0. The numbers to be outputted in column A are 1, 2, 4 and 8.


Example No 5. Row ODD is 0 and row EVEN is 1. The numbers to be outputted in column A are 1, 2, 3 and 4.


Basic Loop Concept: Example A

A Program instruction that repeats some sequence of statement in a specified number of times. Below are some examples of simple for loop.

Example No 1. Output 2, 4 and 6 in column A and 1, 2 and 3 in column B.


Example No 2. Ask the user to input a value and calculate its factorial value (n!). Example: if the number is 4, the result should be 24 (formula: 1x2x3x4).

Sunday, March 2, 2014

Difference between Good Stress and Bad Stress


Stress is part of day to day living of every individual. It is an external factor that a person may experience that affects his physical and mental well-being. Irritability, embarrassment, forgetful, headache and stomach distress are just few of the results of stress. If this is not properly handled, it may upshot to death.

Stress can be categorized into two – good and bad. Good stress is a tension that encourages the person to do his best in order to stop the uneasy feeling he suffers.  It helps to achieve our goals from our day to day tasks. This stress introduces us to new experiences that involve adjustments to different stimuli. It can also enhance the deductive reasoning of human being since it needs the person to think productively on how to respond to it.

Another type of tension is the bad stress. It is a tension that does not help us to achieve our day to day tasks.  It encourages the person to function not in full capacity making him to break down. Once bad stress occurs, a person may suffer symptoms like perspiration, headache, and trauma. This tension can also greatly affect the physical and mental well-being. People with mental disorders are caused by bad stress that is not properly managed before it gets worse.

Whether you like it or not, stress is inevitable. Even you are just sitting down and start thinking, stress is present. Stress can seriously affect the totality of human being that is why it requires creative response in order not to prolong the suffering. If you are well faceted enough to handle stress, it can help you to become more productive but, if you are too weak to face tensions, it can even kill you.

Now, it is up to you how will you control yourself from stress. Remember, in order to become the most successful person in the world needs a great power on how to stop those external factors affecting your well-being. 



Thursday, November 10, 2011

Importance of Information Technology to Society



               As the world advances in the realm of science and technology, the importance of Information  to society carve out a big role in this revolution. It has been said that the combination of computers and other high technologies is a natural breakthrough. It encroaches to the different areas of our lives and making us more gratified in all what we need and want. Faster data management, instant connection of different people around the globe, excellent decision making and ecstatic computer games are just few of the leads of information technology. Statistics proves that IT outgrowths continually soaring to the crest and becoming relentless. With the use of multiform programming, computer networking and hardware integration which are done by the experts, technologies become better complex. As the result, most of the people in the world largely depend on these scientific innovations.

           Information Technology has been utilized by different disciplines such as education, politics, economy, management and etc. Many institutions nowadays go beyond from traditional methods of teaching. Electronic learning has been practiced by different levels of education internationally where students could have the access to teaching materials. IT has been adopted also in politics especially in decision making. E- Commerce and online job application are the common benefits it could bring to field of economics. Because IT saves time and effort, economic advancement is also accelerating. Many managers, supervisors and employees are able to finish their tasks prior to the deadlines because of its proficiency in multi tasking jobs.

            Information Technology allows all people to acquire massive information through their fingertips, thus; it increases their level of cognizance and decreases biased judgment. Further, the impact of computer drastically changes lives from easy to easier. It shapes the society into more automated advance that requires less or no human intervention at all which minimizes stress, especially in the work place, and eliminate repetition of tasks, information deficiency and human risks due to negligence. Moreover, from the emergence of social networking sites and online gaming, the level of enjoyment of the people increases. Through these computer features, the world evolves closer together. They create a global village and allowing different countries around the globe to share information with each other thus, bridging the cultural gap.

            On the other note, IT does not only embrace the positive outputs. The sense of pressure is always present in every development. Hacking and cracking of confidential accounts are very common nowadays. Many people are encouraged to cheat using these gadgets. Human trafficking, fraud and defamation are becoming widespread which is definitely too far from over.

            Moreover, these drawbacks of Information Technology only mean that its pace requires proper control and direction of human in order to keep it excelling.