As a Catholic country, Philippines commemorates Lenten Week to give due respect to Catholic celebrations and traditions to recognize the passion, death, and resurrection of Jesus Christ. For 2011, the Lenten week starts on April 18 and concludes on Easter Sunday.
Proclamation 84 from Office of the President declares that April 21 and April 22 shall be Maundy Thursday and Good Friday respectively and as such, the days shall be no - working days. I shall hold the days too for doing our year - end store inventory.
There has been a number of traditions and culture to celebrate Lenten Week to include religious readings, masses, happy Easter flowers to name a few.
Most people also use the time for short vacation and beach and mountain escapades. For my family, we can only use the Lenten week for reflection and meditation.
Thursday, March 31, 2011
PESO Program: Employment for Students and Out-of-School Youth
Now it is summer time, most students and teachers shall enjoy the two (2) month school break but there can be different ways to make the school break worthwhile. For one, Public Employment Service Office (PESO) offers a employment program for students and out - of - school youth during summer and Christmas break.
PESO's official website says and I qoute,
PESO's official website says and I qoute,
SPECIAL PROGRAM FOR EMPLOYMENT OF STUDENTS
Background
The Special Program for Employment of Students (SPES) is mandated under Republic Act No. 7323 otherwise known as “An Act to Help Poor But Deserving Students Pursue Their Education By Encouraging Their Employment During Summer and/or Christmas Vacations, Through Incentives Granted to Employers, Allowing Them to Pay Only Sixty Percentum of Their Salaries or Wages and the Forty Percentum Through Education Vouchers to be paid by the Government, Prohibiting and Penalizing the Filing of Fraudulent or Fictitious Claims, and For Other Purposes”, and amended by Republic Act No. 9547 entitled “an Act Strengthening and Expanding the Coverage of SPES, Amending for the Purpose Provisions Of R.A. No. 7323”.
The SPES is a joint undertaking of the Department of Labor and Employment, Department of Education, Commission on Higher Education, Department of Budget and Management, Department of Social Welfare and Development and the Department of Finance.
The Secretary of the Department of Labor and Employment is designated as Program Chairperson of SPES.
Objective
The objective of the SPES is to develop the intellectual capabilities of children of poor families and harness their potentials for the country, geared towards industrialization.
Specifically, the program aims to help poor but deserving students pursue their education by encouraging their employment during summer and/or Christmas vacations and providing income to finance / augment / subsidize their studies.
Coverage
The SPES is open to all qualified high school, college or vocational students or drop-outs and interested employers.
Students and Drop-outs
- 15-25 years old;
- enrolled during the present school year/term or during the school year/term immediately preceeding the summer vacation;
- dropout who intend to continue his education;
- parents’ combined net income after tax, including his/her own, if any, does not exceed the annual regional poverty threshold level for a family of (6) as determined by NEDA;
- garnerned a passing grade during the school year/term referred above or in case of dropout, the last year/term attended
- his/her parents has been displaced or about to be displaced due to business closure or work stoppage provided he/she meets 1, 2 and 4 above.
Employers
- any person or entity who has employed at least 10 workers at any given time during the past 12 months.
What are the documentary requirements for the students?
- Duly filled Registration Form 01 (3 copies) with ID pictures attached and attested by the school principal or registrar.
- Any of the following to attest his/her age:
Birth/baptismal certificate
Form 138 where age is specified
Joint Affidavit of two disinterested parties pertaining to the age of student.
- Any of the following to attest the students’ rating:
Form 138 (High School Report Card)
Certification by School Registrar that the student has a passing school grade during the previous semester/school year
Certified true copy of the student’s class card where his/her passing could be determined
Latest Income Tax Return of the Parents / or a certification from the Barangay Chairman as to the economic status of his/her family or a certification from employer/union president that the parent of the applicant is to be displaced or have been displaced.
How are students paid?
The student is paid a salary or wage not lower than the minimum wage for private employers or the applicable hiring rate for the national government and LGUs.
At least 60% of the salary will be paid by the employer in cash.
The remaining 40% of the salary will be paid by DOLE in the form of education voucher to the student or his/her beneficiaries as circumstances may warrant.
Where to Apply?
Students-applicants may apply at any of the following: DOLE Regional/District/Provincial Office, Public Employment Service Offices (PESOs), or other deputized entities.
Employers may signify their intention to hire students by signing a Pledge of Commitment and submitting it to the nearest PESOs/DOLE Regional Offices.
| Reactions: |
Thank God, It's School Vaction Time!
I have officially submitted my school clearance after having submitted all my requirements: grades, test papers, reports and class cards among others. So, while I miss my students, I can only enjoy the vacation and do what I need and want to do: blog updates, business records, and movie marathon.
My sister just bought a monopoly board, so, this will give the kids at home something to play with while I join them going through the board's rules.
In a few days, my family and I shall stay in our old home city for some rest and stock shopping, my kid will have time to bond with his cousins and aunts too.
My boss somehow managed to give me a few subjects for summer class, so, I might as well enjoy the short vacation until I hit the classroom and do my teaching again.
My sister just bought a monopoly board, so, this will give the kids at home something to play with while I join them going through the board's rules.
In a few days, my family and I shall stay in our old home city for some rest and stock shopping, my kid will have time to bond with his cousins and aunts too.
My boss somehow managed to give me a few subjects for summer class, so, I might as well enjoy the short vacation until I hit the classroom and do my teaching again.
Friday, March 25, 2011
Boost Your Personality
Personality seems to be a very common and simple word but oftentimes this gets a lot of attacks from within or otherwise. We really want to feel accepted, recognized, acknowledged and respected and we want to have that excellent personality any high - ace player has or Hollywood celebrity exudes. But, personality is not just something we buy out from the box, it is something that we should process within ourselves and project that confidence at all times.
But, our personality gets a downgrade if we tend to identify our lapses first before our strengths and when this happens, we let our insecurity dominates us. Thus, one fundamental rule in personality development is that you have to believe that you are unique and can stand out because of skill, talent or charm.
Once, you identify your strengths and lapses, get or seek help to correct your weaknesses, read reviews like side effects of extenze and articles to help you have a more confident YOU, enrol in trainings / sessions that can help you correct or improve your lapses.
With a correct and positive mindset of your individuality, you can also stand out in the crowd.
But, our personality gets a downgrade if we tend to identify our lapses first before our strengths and when this happens, we let our insecurity dominates us. Thus, one fundamental rule in personality development is that you have to believe that you are unique and can stand out because of skill, talent or charm.
Once, you identify your strengths and lapses, get or seek help to correct your weaknesses, read reviews like side effects of extenze and articles to help you have a more confident YOU, enrol in trainings / sessions that can help you correct or improve your lapses.
With a correct and positive mindset of your individuality, you can also stand out in the crowd.
| Reactions: |
College Joke: College Cure
source: www.basicjokes.com
Two men sank into adjacent train seats after a long day in the city. One asked the other, "Your son go back to college yet?"
"Two days ago."
"Mine's a senior this year, so it's almost over. In May, he'll be an engineer. What's your boy going to be when he gets out of college?"
"At the rate he's going, I'd say he'll be about thirty."
"No, I mean what's he taking in college?"
"He's taking every penny I make."
"Doesn't he burn the midnight oil enough?"
"He doesn't get in early enough to burn the midnight oil."
"Well, has sending him to college done anything at all?"
"Sure has! It's totally cured his mother of bragging about him."
Two men sank into adjacent train seats after a long day in the city. One asked the other, "Your son go back to college yet?"
"Two days ago."
"Mine's a senior this year, so it's almost over. In May, he'll be an engineer. What's your boy going to be when he gets out of college?"
"At the rate he's going, I'd say he'll be about thirty."
"No, I mean what's he taking in college?"
"He's taking every penny I make."
"Doesn't he burn the midnight oil enough?"
"He doesn't get in early enough to burn the midnight oil."
"Well, has sending him to college done anything at all?"
"Sure has! It's totally cured his mother of bragging about him."
Net Enrolment Rate in Philippine Schools Ain't Impressive
While basic and secondary education are practically free in the Philippines, not every Filipino child can go to school for endless reasons. National Statistical Coordination Board reveals that the Philippines falls short in reaching its target net enrollment rates. While elementary education aimed to have 93% in SY 2009 - 2010, the datum only shows 73.5 in SY 2005-2006 and believed to have failed in reaching their target. This is also true for secondary education where net enrollment in SY 2005 -2006 was 44.5% from a much higher target.
Normally the culprits of why drop - out rates remain to accelerate can be any or all of the following:
Poverty. Even if education is free, students are still constricted with daily allowances, fare, and projects that can cripple any parent's very limited budget;
Accessibility to School. While a school is placed within the heart of a small district, some students live in very remote areas that everyday travel to and fro school and home can be toilsome.
Vices. While the younger students are not allowed to leave their school premises not before school ends, college students can just leave school whenever they want and stay in any entertainment area like gaming centers, or drinking bars to name a few.
Wrong Crowd. Friends indeed create a big influence among students, thus, when students hang out with wrong friends, there is a very high possibility that they get to compromise their studies too.
With the reasons given, government authorities, teachers and parents should take a strong will and commitment to make sure that drop - out rates decline.
Normally the culprits of why drop - out rates remain to accelerate can be any or all of the following:
Poverty. Even if education is free, students are still constricted with daily allowances, fare, and projects that can cripple any parent's very limited budget;
Accessibility to School. While a school is placed within the heart of a small district, some students live in very remote areas that everyday travel to and fro school and home can be toilsome.
Vices. While the younger students are not allowed to leave their school premises not before school ends, college students can just leave school whenever they want and stay in any entertainment area like gaming centers, or drinking bars to name a few.
Wrong Crowd. Friends indeed create a big influence among students, thus, when students hang out with wrong friends, there is a very high possibility that they get to compromise their studies too.
With the reasons given, government authorities, teachers and parents should take a strong will and commitment to make sure that drop - out rates decline.
| Reactions: |
Common College Students' Problems
Having taught in college for over a decade made me witness different college student excel academically and socially while others fail because of chronic absences or low performance in school.
Normally, college students can attribute their low performance or failing marks to the following:
With these identified causes for delinquency, parents, teachers, government agencies and other stakeholders from effective alcohol rehab treatment centers and other rehabilitation facilities must take collective action to prevent or address these problems.
Students are not sole responsibilities of schools, thus, if we want to address common problems among college students, we can be all responsible partners.
Normally, college students can attribute their low performance or failing marks to the following:
- drug addiction;
- alcohol addiction;
- gang wars;
- financial limitations;
- family problems;
- social pressures;
- poor study habits
With these identified causes for delinquency, parents, teachers, government agencies and other stakeholders from effective alcohol rehab treatment centers and other rehabilitation facilities must take collective action to prevent or address these problems.
Students are not sole responsibilities of schools, thus, if we want to address common problems among college students, we can be all responsible partners.
| Reactions: |
Fool - Proof Tips to Pass Exams
Exams are quite common among students; in fact, if you are a college student, most schools offer two semesters in an academic year with at least two exams to endure.
But, earning a passing mark is not at all easy especially for the delinquent or struggling students. This is, however, also true about earning a good grade. So, to make sure that you pass your exams, you can make these tips some good habits, and earning a passing and remarkable grade can be easy as 1 - 2 - 3.
There is no easy way to earning an honest grade, but, with discipline and motivation, you can pass any exam with flying colors.
But, earning a passing mark is not at all easy especially for the delinquent or struggling students. This is, however, also true about earning a good grade. So, to make sure that you pass your exams, you can make these tips some good habits, and earning a passing and remarkable grade can be easy as 1 - 2 - 3.
- Secure a subject / course outline to guide you with the topics, readings, resources and do further study if needed. You can't capture everything your professor says, thus, doing your own readings can further reinforce your professor's inputs;
- Have a disciplined and well managed schedule. It is quite tempting if friends simply invite you for a weekend's escapade but when projects and other paper requirements are due, you only constrict your time to study for big exams;
- Prepare an outline from your readings or make a short guide for formulas, so, when you have time, you can review again but using your outline; You may use acronyms or hints just to help you remember concepts or formulas.
- Study a week earlier, so, you don't have to cram reading and remembering everything. With everything reviewed and covered with more than ample time, you manage to have fun in between exams.
There is no easy way to earning an honest grade, but, with discipline and motivation, you can pass any exam with flying colors.
| Reactions: |
More of Java's Graphics Samples
Graphics class as previously noted is used to set text or background colors, draw text and / or geometric shapes.
With the Graphics methods, we can draw different shapes of our own liking. The program below illustrates the use of fillPolygon to draw an octagon STOP sign and circles for PARKING sign.
Furthermore, Graphics class allows us to copy any section to another destination using copyArea ( ) method. This method can be written as,
g.copyArea(200,400,101,51,400,0);
The first two constants are the starting point for selection, and the next two constants shall be the width and height of selection while the last two constants shall be the starting point where selection shall be copied to. The program illustrates the use of copyArea and other polygon methods.
[+/-] show/hide
import java.applet.*;
import java.awt.*;
public class GraphicsPolygons extends Applet {
int xPoints[]={200,100,100,200,300,400,400,300};
int yPoints[]={100,200,300,400,400,300,200,100};
int size=xPoints.length;
int xArr[]={700,800,700,700};
int yArr[]={100,150,200,100};
int Zsize=xArr.length;
Font newFont = new Font("Tahoma", Font.BOLD, 50);
Font otherFont = new Font("Tahoma", Font.BOLD, 100);
Color newColor=new Color(.80F,1F,.50F);
public void init()
{
setBackground(Color.gray);
}
public void paint(Graphics g)
{
//draws a stop sign
g.setColor(newColor);
g.fillPolygon(xPoints,yPoints,xPoints.length); //to fill a solid polygon
g.setColor(Color.black);
g.fillRect(200,400,100,50);
g.setFont(newFont);
g.drawString("STOP", 200, 250);
//draws a parking sign
g.setColor(Color.red);
g.fillRoundRect(550,200,200,200,200,200);
g.setColor(Color.gray);
g.fillRoundRect(570,225,150,150,150,150);
g.copyArea(200,400,101,51,400,0);
g.setFont(otherFont);
g.setColor(Color.black);
g.drawString("P", 630, 320);
}}
With the Graphics methods, we can draw different shapes of our own liking. The program below illustrates the use of fillPolygon to draw an octagon STOP sign and circles for PARKING sign.
Furthermore, Graphics class allows us to copy any section to another destination using copyArea ( ) method. This method can be written as,
g.copyArea(200,400,101,51,400,0);
The first two constants are the starting point for selection, and the next two constants shall be the width and height of selection while the last two constants shall be the starting point where selection shall be copied to. The program illustrates the use of copyArea and other polygon methods.
[+/-] show/hide
import java.applet.*;
import java.awt.*;
public class GraphicsPolygons extends Applet {
int xPoints[]={200,100,100,200,300,400,400,300};
int yPoints[]={100,200,300,400,400,300,200,100};
int size=xPoints.length;
int xArr[]={700,800,700,700};
int yArr[]={100,150,200,100};
int Zsize=xArr.length;
Font newFont = new Font("Tahoma", Font.BOLD, 50);
Font otherFont = new Font("Tahoma", Font.BOLD, 100);
Color newColor=new Color(.80F,1F,.50F);
public void init()
{
setBackground(Color.gray);
}
public void paint(Graphics g)
{
//draws a stop sign
g.setColor(newColor);
g.fillPolygon(xPoints,yPoints,xPoints.length); //to fill a solid polygon
g.setColor(Color.black);
g.fillRect(200,400,100,50);
g.setFont(newFont);
g.drawString("STOP", 200, 250);
//draws a parking sign
g.setColor(Color.red);
g.fillRoundRect(550,200,200,200,200,200);
g.setColor(Color.gray);
g.fillRoundRect(570,225,150,150,150,150);
g.copyArea(200,400,101,51,400,0);
g.setFont(otherFont);
g.setColor(Color.black);
g.drawString("P", 630, 320);
}}
| Reactions: |
Thursday, March 24, 2011
Training and Works Maximize Your Summer Break
In a few days, schools shall be officially off with their academic year and while most schools offer summer classes as part of their academic programs, other schools simply take the two - month break from any academic job.
While these two months are welcoming to most teachers and students, parents are equally pleased to have the rest from paying tuition bills and school allowances among other things.
But, this summer break can be more worthwhile if students and parents use the break to enroll to any training and / or workshop to enforce old skills (i.e. dancing or singing), or acquire new skill (i.e. learning a new musical instrument, karate class, summer job).
The summer break can be a good time to enjoy the beaches and malls with friends or to start summer recreation to lose weights with Diet pills that work fast should you have weight loss goals before the new school year starts.
Whatever we choose as a summer activity, the bottom line is to have fun while we wait for the new school year. But, as a parent, I wish to enroll my kid to a summer activity that can make his school break more worthwhile and fun rather than his usual time on PSP or TV.
While these two months are welcoming to most teachers and students, parents are equally pleased to have the rest from paying tuition bills and school allowances among other things.
But, this summer break can be more worthwhile if students and parents use the break to enroll to any training and / or workshop to enforce old skills (i.e. dancing or singing), or acquire new skill (i.e. learning a new musical instrument, karate class, summer job).
The summer break can be a good time to enjoy the beaches and malls with friends or to start summer recreation to lose weights with Diet pills that work fast should you have weight loss goals before the new school year starts.
Whatever we choose as a summer activity, the bottom line is to have fun while we wait for the new school year. But, as a parent, I wish to enroll my kid to a summer activity that can make his school break more worthwhile and fun rather than his usual time on PSP or TV.
| Reactions: |
Java's Graphics Methods on Geometry
In a previous post on Graphics, the class can also draw geometric shapes like circles, rectangles, oval, squares, arcs and polygons to complement any other methods of Java.
The draw and fill methods can be used to draw an outline and solid shapes respectively. Thus, with the parameters required in methods, we can actually draw the shapes with specified size and position.
The program below allows the drawing of different shapes. To draw a polygon, we have to get the coordinates of points connecting the lines and use drawPolygon or fillPolygon methods to draw the shape.
int xPoints[]={42,52,72,52,60,40,15,28,9,32,42};
int yPoints[]={38,62,68,80,105,85,102,75,58,60,38};
:
:
g.drawPolygon(xPoints,yPoints,xPoints.length); //to fill a solid polygon
[+/-] show/hide
The draw and fill methods can be used to draw an outline and solid shapes respectively. Thus, with the parameters required in methods, we can actually draw the shapes with specified size and position.
The program below allows the drawing of different shapes. To draw a polygon, we have to get the coordinates of points connecting the lines and use drawPolygon or fillPolygon methods to draw the shape.
int xPoints[]={42,52,72,52,60,40,15,28,9,32,42};
int yPoints[]={38,62,68,80,105,85,102,75,58,60,38};
:
:
g.drawPolygon(xPoints,yPoints,xPoints.length); //to fill a solid polygon
[+/-] show/hide
import java.applet.*;
import java.awt.*;
public class GraphicsRectsCircles extends Applet {
int xPoints[]={42,52,72,52,60,40,15,28,9,32,42};
int yPoints[]={38,62,68,80,105,85,102,75,58,60,38};
int size=xPoints.length;
public void paint(Graphics g)
{
g.setColor(Color.blue);
g.drawLine(5,5,50,5);
g.drawLine(5,50,50,50);
g.drawLine(5,5,5,50);
g.drawLine(50,5,50,50);
g.fill3DRect(100,50,80,80,true);
g.setColor(Color.black);
g.drawRoundRect(20,20,80,80,0,0);
g.drawRoundRect(120,20,80,80,10,10);
g.drawRoundRect(220,20,80,80,40,40);
g.drawRoundRect(280,150,20,50,20,50);//oblong
g.fillRoundRect(320,20,80,80,80,80);
g.setColor(Color.blue);
setBackground(Color.pink);
g.fillRect(20, 160, 80, 80);
g.clearRect(40, 180, 50, 50);
g.fillArc(120, 160, 100, 100, 20, 320);
g.fillArc(200, 160, 100, 100, 340, 40);
g.fillArc(400, 160, 100, 100, 90, 270);
g.setColor(Color.yellow);
//g.drawPolygon(xPoints,yPoints,xPoints.length); //to draw a polygon outline
g.drawPolygon(xPoints,yPoints,xPoints.length); //to fill a solid polygon
// or through the lines below, produces same result
//Polygon myPolygon=new Polygon(xPoints,yPoints,size);
//g.fillPolygon(myPolygon);
}
}
import java.awt.*;
public class GraphicsRectsCircles extends Applet {
int xPoints[]={42,52,72,52,60,40,15,28,9,32,42};
int yPoints[]={38,62,68,80,105,85,102,75,58,60,38};
int size=xPoints.length;
public void paint(Graphics g)
{
g.setColor(Color.blue);
g.drawLine(5,5,50,5);
g.drawLine(5,50,50,50);
g.drawLine(5,5,5,50);
g.drawLine(50,5,50,50);
g.fill3DRect(100,50,80,80,true);
g.setColor(Color.black);
g.drawRoundRect(20,20,80,80,0,0);
g.drawRoundRect(120,20,80,80,10,10);
g.drawRoundRect(220,20,80,80,40,40);
g.drawRoundRect(280,150,20,50,20,50);//oblong
g.fillRoundRect(320,20,80,80,80,80);
g.setColor(Color.blue);
setBackground(Color.pink);
g.fillRect(20, 160, 80, 80);
g.clearRect(40, 180, 50, 50);
g.fillArc(120, 160, 100, 100, 20, 320);
g.fillArc(200, 160, 100, 100, 340, 40);
g.fillArc(400, 160, 100, 100, 90, 270);
g.setColor(Color.yellow);
//g.drawPolygon(xPoints,yPoints,xPoints.length); //to draw a polygon outline
g.drawPolygon(xPoints,yPoints,xPoints.length); //to fill a solid polygon
// or through the lines below, produces same result
//Polygon myPolygon=new Polygon(xPoints,yPoints,size);
//g.fillPolygon(myPolygon);
}
}
| Reactions: |
CHED Forbids "No Pemit, No Exam" Policy
For a struggling student who simply works his or her way to college with meager or close - to - nothing budget, the "No Permit, No Exam" Policy is simply an unacceptable ultimatum and total defeat, making the entire semester's work vain. So, I can only sympathize with students who oftentimes fail their semester's load because they can't take their final exams.
In a joint press conference, the Commission of Higher Education (CHED), Kabataan Partylist and National Union of Students of the Philippines (NUSP) warned schools to enforce the 2010 memo to disband any policy disallowing students to take their exams without permits.
So, the mandate of CHED to forbid HEI's from enforcing the "No Permit, No Exam" allows millions of students to take their exams provided HEI's have the authority to withhold students' grades, or disallow re - enrollment should financial obligations are still due.
This enforced policy shall be a relief to students and we can only hope that all schools can strictly implement.
In a joint press conference, the Commission of Higher Education (CHED), Kabataan Partylist and National Union of Students of the Philippines (NUSP) warned schools to enforce the 2010 memo to disband any policy disallowing students to take their exams without permits.
So, the mandate of CHED to forbid HEI's from enforcing the "No Permit, No Exam" allows millions of students to take their exams provided HEI's have the authority to withhold students' grades, or disallow re - enrollment should financial obligations are still due.
This enforced policy shall be a relief to students and we can only hope that all schools can strictly implement.
| Reactions: |
Students Get Busier with Semester's End
Schools in most places are about to end their school year and for my employer school, STI Gensan, we now conclude with our final exams until Saturday. By Monday, classes shall be officially over, however, until grades are not submitted yet, students just have to complete their pending class requirements.
Teachers are equally busy too as we check test papers, and prepare grades and other requirements due for clearance. Offices' computers and printers are among the busiest equipment and I am only grateful that I have my laptop and printer at home with color ink cartridges to do the paper works.
Since school shall be off soon, teachers and students, can only look forward to the summer break until first semester begins in June. For now, we can only endure the year - end requirements and it shall be fun time again.
Teachers are equally busy too as we check test papers, and prepare grades and other requirements due for clearance. Offices' computers and printers are among the busiest equipment and I am only grateful that I have my laptop and printer at home with color ink cartridges to do the paper works.
Since school shall be off soon, teachers and students, can only look forward to the summer break until first semester begins in June. For now, we can only endure the year - end requirements and it shall be fun time again.
| Reactions: |
Event Handling in Java Graphics Class
Graphics class in Java allows the creation of geometric shapes like circle, square, arcs, lines and polygons. More importantly, event handling is also possible. When we integrate event activities in a Graphic - oriented program, we simply employ the usual steps in embedding events: event interface, action listener, and event handler to respond.
The following methods are used to draw geometric shapes:
The program below illustrates the use of geometric methods and event handling.
[+/-] show/hide
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class GraphicsDemoCreateObject extends Applet implements ActionListener{
String companyName = new String (" S T I");
JButton moveButton = new JButton ("Move it.");
//Color newColor = new Color(100,20,255);//blue
Color newColor = new Color(255,20,255);
Font hell2Font = new Font ("Helvetica", Font.ITALIC, 12);
int x = 10, y = 50;
public void init()
{
setBackground(Color.yellow);
add(moveButton);
moveButton.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
Graphics gr = getGraphics();
gr.setFont(hell2Font);
gr.setColor(newColor);
gr.drawString(companyName,x+=20,y+=20);
//the condition below is to control the movement within applet page size
if (y>getSize().height)
moveButton.setEnabled(false);
gr.setColor(Color.black);
gr.drawOval(50,170,70,70);
gr.drawLine(85,240, 110,300);
gr.drawOval(100,170, 70,70);
gr.drawLine(135,240,110,300);
setBackground(Color.blue);
}
}
The following methods are used to draw geometric shapes:
- drawLine ( ) - to draw a line
- drawRect ( ) - to draw a rectangle or square
- drawRoundRect ( ) - to draw a rectangle with arc or circle
- drawOval ( ) - to draw an oval
- drawPolygon ( ) - to draw any polygon
The program below illustrates the use of geometric methods and event handling.
[+/-] show/hide
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class GraphicsDemoCreateObject extends Applet implements ActionListener{
String companyName = new String (" S T I");
JButton moveButton = new JButton ("Move it.");
//Color newColor = new Color(100,20,255);//blue
Color newColor = new Color(255,20,255);
Font hell2Font = new Font ("Helvetica", Font.ITALIC, 12);
int x = 10, y = 50;
public void init()
{
setBackground(Color.yellow);
add(moveButton);
moveButton.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
Graphics gr = getGraphics();
gr.setFont(hell2Font);
gr.setColor(newColor);
gr.drawString(companyName,x+=20,y+=20);
//the condition below is to control the movement within applet page size
if (y>getSize().height)
moveButton.setEnabled(false);
gr.setColor(Color.black);
gr.drawOval(50,170,70,70);
gr.drawLine(85,240, 110,300);
gr.drawOval(100,170, 70,70);
gr.drawLine(135,240,110,300);
setBackground(Color.blue);
}
}
| Reactions: |
Java's Graphics Class
Java allows the use of Graphics class to be the framework for setting text / background colors, changing font status, and drawing geometrical shapes and texts among others.
Just like the init method of Graphics, Java makes use of paint ( ) to create Graphics object where methods can be associated with.
One of the Graphics methods is the drawString ( ) that is used to write text of different font type, styles and size.
The program below illustrates the use of drawString.
[+/-] show/hide
/* sample program on graphics */
import java.applet.*;
import java.awt.*;
public class GraphicsDemo2 extends Applet {
String companyName = new String("STI");
Color newColor = new Color(100,20,255);//creating your own color
Font bigFont = new Font("Helvetica",Font.ITALIC,24);
public void paint(Graphics gr){
gr.setFont(bigFont);
gr.setColor(newColor);
gr.drawString(companyName, 10, 100);
gr.setColor(Color.magenta);
gr.drawString(companyName, 40, 140);
setBackground(Color.YELLOW);
}
}
Just like the init method of Graphics, Java makes use of paint ( ) to create Graphics object where methods can be associated with.
One of the Graphics methods is the drawString ( ) that is used to write text of different font type, styles and size.
The program below illustrates the use of drawString.
[+/-] show/hide
/* sample program on graphics */
import java.applet.*;
import java.awt.*;
public class GraphicsDemo2 extends Applet {
String companyName = new String("STI");
Color newColor = new Color(100,20,255);//creating your own color
Font bigFont = new Font("Helvetica",Font.ITALIC,24);
public void paint(Graphics gr){
gr.setFont(bigFont);
gr.setColor(newColor);
gr.drawString(companyName, 10, 100);
gr.setColor(Color.magenta);
gr.drawString(companyName, 40, 140);
setBackground(Color.YELLOW);
}
}
| Reactions: |
Monday, March 21, 2011
File Sharing Elevates Education
The surge of computer technology in 1980s made home computers or personal computers quite handy and affordable making the benefits of digital computing accessible to ordinary users. Gone were the days when only large enterprises could enjoy the speed, and accuracy of transaction processing like sales system or the storage security that ordinary cabinets can't endure and sustain. The digital hype even became more valuable and phenomenal when file sharing became possible.
While we take file sharing synonymous to sharing music, movies, novels, and electronic documents using removable media like CDs, DVDs, or flash drives, the process levels up as file sharing goes online making files accessible worldwide at anytime.
We create files to have soft copies of documents for future use and posterity that paper copy fail to sustain. And, storing these files onsite or online proves to be beneficial more than the hardware and maintenance costs they require. Imagine if important documents are lost to natural disasters like fire, the information or proof of transaction lost can hardly be reproduced. Consequently, paper documents complement stored files, so, they can be accessed at anytime.
The benefits of file sharing are also sought in enterprises regardless of their size or target market and industry. Most companies, government and private agencies, are dispersed geographically that access to remote files becomes pressing and relevant. For instance, business executives may wish to receive reports on business operations or ordinary citizens may simply report community activity through audio or video clips, and the use of Internet technology like FTP or emails makes online file sharing possible.
The academe is one of the industries that highly enjoy free file sharing and as students and faculty encourage learning resources between and among the academic staff and communities. They share researches, lectures, and academic journals without having to worry about transmittal fee or security issues. Technology indeed makes learning more easy, accessible and accurate that academic experts and communities convene online to share knowledge and wisdom to society.
Keeping files locally may be practical, however, when these files come in volume and / or require remote access, online file storage is only vital and needed. Companies, private or government, and even ordinary individuals may enjoy paid or free online file storage depending on their unique storage requirements.
Online file sharing and storage is without a doubt helpful, but, this does exist without any risk. It is then vital that users take smarter and practical moves to make sure that they don't violate any intellectual laws governing downloads or uploads. More importantly, users must only consider file sharing / storage service providers that provide 24/7 technical support and 99.99% reliability at all times. Whether the file sharing or storage cost may be free or not, the risks (i.e. information leaks) and downsides (i.e. forced ads on free services) that surround the task must be highly evaluated.
While we take file sharing synonymous to sharing music, movies, novels, and electronic documents using removable media like CDs, DVDs, or flash drives, the process levels up as file sharing goes online making files accessible worldwide at anytime.
We create files to have soft copies of documents for future use and posterity that paper copy fail to sustain. And, storing these files onsite or online proves to be beneficial more than the hardware and maintenance costs they require. Imagine if important documents are lost to natural disasters like fire, the information or proof of transaction lost can hardly be reproduced. Consequently, paper documents complement stored files, so, they can be accessed at anytime.
The benefits of file sharing are also sought in enterprises regardless of their size or target market and industry. Most companies, government and private agencies, are dispersed geographically that access to remote files becomes pressing and relevant. For instance, business executives may wish to receive reports on business operations or ordinary citizens may simply report community activity through audio or video clips, and the use of Internet technology like FTP or emails makes online file sharing possible.
The academe is one of the industries that highly enjoy free file sharing and as students and faculty encourage learning resources between and among the academic staff and communities. They share researches, lectures, and academic journals without having to worry about transmittal fee or security issues. Technology indeed makes learning more easy, accessible and accurate that academic experts and communities convene online to share knowledge and wisdom to society.
Keeping files locally may be practical, however, when these files come in volume and / or require remote access, online file storage is only vital and needed. Companies, private or government, and even ordinary individuals may enjoy paid or free online file storage depending on their unique storage requirements.
Online file sharing and storage is without a doubt helpful, but, this does exist without any risk. It is then vital that users take smarter and practical moves to make sure that they don't violate any intellectual laws governing downloads or uploads. More importantly, users must only consider file sharing / storage service providers that provide 24/7 technical support and 99.99% reliability at all times. Whether the file sharing or storage cost may be free or not, the risks (i.e. information leaks) and downsides (i.e. forced ads on free services) that surround the task must be highly evaluated.
| Reactions: |
Tuesday, March 15, 2011
Top Jobs Offering Career - Life Balance
I personally consider teaching as a lifelong learning, reading and endless skill upgrades. Personally, teaching is a tedious job as I attend to preparing lectures and exams, checking papers and making grades. But, normally, most schools offer two months in summer as no - class days and they still receive their paychecks. Teaching in usual days however is tedious but surprisingly it is one of the top careers that offer balance between life and career.
Yahoo cites the following top jobs with their justifications that offer a balance although in most jobs, I however disagree the inclusion.
Yahoo cites the following top jobs with their justifications that offer a balance although in most jobs, I however disagree the inclusion.
- medical assistant
- sales representative
- teacher
- technical writer
- administrative assistant
- web designer
- computer programmer
Monday, March 7, 2011
STI GenSan Goes for Expansion Plus More Academic Programs
One of the directly supervised schools by STI Educational Systems includes STI General Santos. And, from its humble beginnings with humps in between, my school employer takes pride in holding various academic programs in IT and business.
But, with aggressive vision, comes the expansion of STI GenSan to include a 3 - story building to house HRM faculty lounge, classrooms, toilets and laboratories.
Furthermore, we take pride in opening new programs to include AB MassComm and other unserved programs. So, with all the drastic changes, we are quite pressured to invite and to have freshmen and transferees to reach target of around 2000 enrolled students.
We can only be optimistic and support the marketing strategies of our school but with STI's national and global standards, updated academic programs, competent faculty and personnel and state - of - the - art laboratories, our end goals of achieving more enrollees shall be achieved in time.
But, with aggressive vision, comes the expansion of STI GenSan to include a 3 - story building to house HRM faculty lounge, classrooms, toilets and laboratories.
Furthermore, we take pride in opening new programs to include AB MassComm and other unserved programs. So, with all the drastic changes, we are quite pressured to invite and to have freshmen and transferees to reach target of around 2000 enrolled students.
We can only be optimistic and support the marketing strategies of our school but with STI's national and global standards, updated academic programs, competent faculty and personnel and state - of - the - art laboratories, our end goals of achieving more enrollees shall be achieved in time.
Labels:IT Education,lectures,schooling tips
| Reactions: |
Java Applet's Event Handling
Integrating events in our GUI - oriented program works the same for embedding events on applet and its components.
With the appropriate components and their respective events, we include the necessary event handlers or methods telling Java how it should respond.
The following are common events normally done in a GUI Java program:
button clicks
text field focus
check box selection
list selection
window movements
mouse movements
keyboard keys
So, it is quite important that we determine the needed action to be performed when we have component events. We next include the necessary interface and add a listener to our component. The button in the sample program below requires and event, thus, we write our codes as follows:
:
i:mport java.awt.event.*;
public class AppletSeatWork extends JApplet implements ActionListener{
JLabel name = new JLabel("Name: ");
JLabel course=new JLabel("Course: ");
JLabel rate=new JLabel ("Rate per unit:");
JLabel units=new JLabel ("Units Enrolled:");
JLabel tuition = new JLabel("Tuition Due:");
JButton compute =new JButton("Calculate");
:
:
public void init( ){
:
:
compute.addActionListener(this);
add(compute);
:
:}
With the event methods or event handlers, we specify the needed actions. The block of event method for button below illustrates the needed action to compute and display result in a text field.
public void actionPerformed(ActionEvent e)
{
double total = Double.parseDouble(trate.getText())*Double.parseDouble(tunits.getText());
ttuition.setText(""+total);
}
To see the complete program, simply click on read more link. So, apart from including the event package, writing the interface and event methods, we simply provide our applet codes, and events shall be written and performed just like any typical Java program.
[+/-] show/hide
import java.awt.FlowLayout;
import javax.swing.*;
import java.awt.event.*;
public class AppletSeatWork extends JApplet implements ActionListener{
JLabel name = new JLabel("Name: ");
JLabel course=new JLabel("Course: ");
JLabel rate=new JLabel ("Rate per unit:");
JLabel units=new JLabel ("Units Enrolled:");
JLabel tuition = new JLabel("Tuition Due:");
JButton compute =new JButton("Calculate");
JTextField tname = new JTextField(15);
JTextField tcourse = new JTextField(15);
JTextField trate = new JTextField(15);
JTextField tunits = new JTextField(15);
JTextField ttuition = new JTextField(15);
FlowLayout flow = new FlowLayout();
public void init()
{setLayout(flow);
add(name);
add(tname);
add(course);
add(tcourse);
add(rate);
add(trate);
add(units);
add(tunits);
add(tuition);
ttuition.setEditable(false);
add(ttuition);
compute.addActionListener(this);
add(compute);
}
public void actionPerformed(ActionEvent e)
{
double total = Double.parseDouble(trate.getText())*Double.parseDouble(tunits.getText());
ttuition.setText(""+total);
}
}
With the appropriate components and their respective events, we include the necessary event handlers or methods telling Java how it should respond.
The following are common events normally done in a GUI Java program:
button clicks
text field focus
check box selection
list selection
window movements
mouse movements
keyboard keys
So, it is quite important that we determine the needed action to be performed when we have component events. We next include the necessary interface and add a listener to our component. The button in the sample program below requires and event, thus, we write our codes as follows:
:
i:mport java.awt.event.*;
public class AppletSeatWork extends JApplet implements ActionListener{
JLabel name = new JLabel("Name: ");
JLabel course=new JLabel("Course: ");
JLabel rate=new JLabel ("Rate per unit:");
JLabel units=new JLabel ("Units Enrolled:");
JLabel tuition = new JLabel("Tuition Due:");
JButton compute =new JButton("Calculate");
:
:
public void init( ){
:
:
compute.addActionListener(this);
add(compute);
:
:}
With the event methods or event handlers, we specify the needed actions. The block of event method for button below illustrates the needed action to compute and display result in a text field.
public void actionPerformed(ActionEvent e)
{
double total = Double.parseDouble(trate.getText())*Double.parseDouble(tunits.getText());
ttuition.setText(""+total);
}
To see the complete program, simply click on read more link. So, apart from including the event package, writing the interface and event methods, we simply provide our applet codes, and events shall be written and performed just like any typical Java program.
[+/-] show/hide
import java.awt.FlowLayout;
import javax.swing.*;
import java.awt.event.*;
public class AppletSeatWork extends JApplet implements ActionListener{
JLabel name = new JLabel("Name: ");
JLabel course=new JLabel("Course: ");
JLabel rate=new JLabel ("Rate per unit:");
JLabel units=new JLabel ("Units Enrolled:");
JLabel tuition = new JLabel("Tuition Due:");
JButton compute =new JButton("Calculate");
JTextField tname = new JTextField(15);
JTextField tcourse = new JTextField(15);
JTextField trate = new JTextField(15);
JTextField tunits = new JTextField(15);
JTextField ttuition = new JTextField(15);
FlowLayout flow = new FlowLayout();
public void init()
{setLayout(flow);
add(name);
add(tname);
add(course);
add(tcourse);
add(rate);
add(trate);
add(units);
add(tunits);
add(tuition);
ttuition.setEditable(false);
add(ttuition);
compute.addActionListener(this);
add(compute);
}
public void actionPerformed(ActionEvent e)
{
double total = Double.parseDouble(trate.getText())*Double.parseDouble(tunits.getText());
ttuition.setText(""+total);
}
}
| Reactions: |
Look and Feel Good on Graduation Ball and Ceremony
Whenever the end of semester comes, schools from different levels get quite busy as they prepare for graduation programs. And, while they differ in graduation dates and traditions, the highlights of graduation ceremonies are centered around conferring of diplomas.
But, graduation programs are not just about academic certificates but also looking and feeling good about the core meaning of graduation ball and graduation ceremony.
So, when you know that you will really make it to earning your highly - sought diploma, wear the most appropriate attire specifically formal or casual gowns for women and tuxedo or simply long sleeves and decent ties from local stores or better yet from ties-necktie.com to boost.
More importantly, wear the prescribed shoes and appropriate facial and hair makeover to compliment the big day!
But, while your physical appearance can be your least of concerns, affirm the big day with pride, faith and hope.
But, graduation programs are not just about academic certificates but also looking and feeling good about the core meaning of graduation ball and graduation ceremony.
So, when you know that you will really make it to earning your highly - sought diploma, wear the most appropriate attire specifically formal or casual gowns for women and tuxedo or simply long sleeves and decent ties from local stores or better yet from ties-necktie.com to boost.
More importantly, wear the prescribed shoes and appropriate facial and hair makeover to compliment the big day!
But, while your physical appearance can be your least of concerns, affirm the big day with pride, faith and hope.
| Reactions: |
Sunday, March 6, 2011
Java Applet's Life Cycle
An applet goes through four different states:
Using init ( ) method, we can create an applet and if we don't want our applet to behave differently whenever we load or leave from the applet, Java provides the default start ( ), stop ( ) and destroy ( ) and generally, with empty bodies.
The sample program below shows the use of init ( ) and start ( ) and whenever we minimize our applet, the start ( ) method is called.
[+/-] show/hide
- init ( ) method - called whenever we initialize variables, define components or add them to our applet container;
- start ( ) method - called whenever the user (re)loads the applet;
- stop ( ) method - called whenever the user leaves the applet;
- destroy ( ) method - called when you exit the applet and removes the alloted resources.
Using init ( ) method, we can create an applet and if we don't want our applet to behave differently whenever we load or leave from the applet, Java provides the default start ( ), stop ( ) and destroy ( ) and generally, with empty bodies.
The sample program below shows the use of init ( ) and start ( ) and whenever we minimize our applet, the start ( ) method is called.
[+/-] show/hide
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Rose
*/
import java.applet.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class AppletGreetEvent extends Applet implements ActionListener {
JLabel greeting1 = new JLabel("Hello. Who are you?");
JLabel greeting2 = new JLabel();
Font bigFont = new Font("Times New Roman", Font.ITALIC,24);
JButton pressMe = new JButton("Press Me");
JTextField answer = new JTextField(" ",10);
public void init()
{
add(greeting1);
add(answer);
add(pressMe);
answer.requestFocus();// focus for the textfield
pressMe.addActionListener(this);
greeting2.setFont(bigFont);
add(greeting2);
}
public void start()
{ greeting2.setText("This is a sample applet.");}
public void actionPerformed(ActionEvent thisEvent)
{
String name=answer.getText();
greeting2.setText("Hi "+name);
validate();
}
}
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Rose
*/
import java.applet.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class AppletGreetEvent extends Applet implements ActionListener {
JLabel greeting1 = new JLabel("Hello. Who are you?");
JLabel greeting2 = new JLabel();
Font bigFont = new Font("Times New Roman", Font.ITALIC,24);
JButton pressMe = new JButton("Press Me");
JTextField answer = new JTextField(" ",10);
public void init()
{
add(greeting1);
add(answer);
add(pressMe);
answer.requestFocus();// focus for the textfield
pressMe.addActionListener(this);
greeting2.setFont(bigFont);
add(greeting2);
}
public void start()
{ greeting2.setText("This is a sample applet.");}
public void actionPerformed(ActionEvent thisEvent)
{
String name=answer.getText();
greeting2.setText("Hi "+name);
validate();
}
}
| Reactions: |
Java's Applets
Applet is a small program or utility in Java that requires small amount of resources for it to run. And, with this restricted size, it can only do a little to perform. We can actually embed applets in our Java program and run it using Java's Applet Viewer or in an HTML document with corresponding browser.
Applet is an object, component and container and with these features, we can do much of the works and features of typical component, container or object.
We support an applet using java.applet package and depending on the type of components, we invoke the needed package, javax.swing for swing applet and components or java.awt for awt applet and components.
Unlike a regular Java program, an applet does not require a main method. The Applet Viewer or the HTML document allows the execution of Java applet.
The sample program below illustrates the use of applet.
[+/-] show/hide
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.applet.*;
import java.awt.Color;
import java.awt.Font;
import java.awt.*;
/**
*
* @author Rose
*/
public class AppletGreet1 extends Applet {
Label greeting = new Label("Hello world");
Font myFont = new Font("Arial",Font.BOLD,50);
@Override
public void init()
{
setBackground(Color.pink);
greeting.setFont(myFont);
add(greeting);
}
}
Applet is an object, component and container and with these features, we can do much of the works and features of typical component, container or object.
We support an applet using java.applet package and depending on the type of components, we invoke the needed package, javax.swing for swing applet and components or java.awt for awt applet and components.
Unlike a regular Java program, an applet does not require a main method. The Applet Viewer or the HTML document allows the execution of Java applet.
The sample program below illustrates the use of applet.
[+/-] show/hide
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.applet.*;
import java.awt.Color;
import java.awt.Font;
import java.awt.*;
/**
*
* @author Rose
*/
public class AppletGreet1 extends Applet {
Label greeting = new Label("Hello world");
Font myFont = new Font("Arial",Font.BOLD,50);
@Override
public void init()
{
setBackground(Color.pink);
greeting.setFont(myFont);
add(greeting);
}
}
| Reactions: |
Subscribe to:
Posts (Atom)










