for DIT 121
Create a program that will accept a string and the display the string in reverse format. The class name is DIT121xxx.
for DIT 122
Create a program the will accept an integer numbers a N times. Determine and display the lowest number. The class name is DIT122xxx.
for DIT 211
Create a program that will accept a string, counts and displays the numbers in the strings that you entered, without regard to case (uppercase versus lowercase letters). The class name is DIT211xxx.
for BSCS 121
Create a program that will accept 10 integer numbers. Determine and display the highest number. The class name is BSCS121xxx.
for BSIT 121
Create a program the will accept the gender of the students 10 students. Count and display the number of male and female students. The class name is BSIT121xxx.
for BSCS 122
Create a program that will accept 10 integer numbers. Determine and display the sum of all positive and negative numbers. The class name is BSCS122xxx.
for BSIT 122
Create a program that will accept 10 floating float numbers. Compute and display the average. Use any type of loop structures. The class name is BSIT122xxx.
Sunday, November 9, 2008
Monday, November 3, 2008
Java Language
What is Java?
A high-level programming language developed by Sun Microsystems. Java was originally called OAK, and was designed for handheld devices and set-top boxes. Oak was unsuccessful so in 1995 Sun changed the name to Java and modified the language to take advantage of the burgeoning World Wide Web.
Java is an object-oriented language similar to C++, but simplified to eliminate language features that cause common programming errors. Java source code files (files with a .java extension) are compiled into a format called bytecode (files with a .class extension), which can then be executed by a Java interpreter. Compiled Java code can run on most computers because Java interpreters and runtime environments, known as Java Virtual Machines (VMs), exist for most operating systems, including UNIX, the Macintosh OS, and Windows. Bytecode can also be converted directly into machine language instructions by a just-in-time compiler (JIT).
Java is a general purpose programming language with a number of features that make the language well suited for use on the World Wide Web. Small Java applications are called Java applets and can be downloaded from a Web server and run on your computer by a Java-compatible Web browser, such as Netscape Navigator or Microsoft Internet Explorer.
History of Java Language
The Java programming Language evolved from a language named Oak. Oak was developed in the early nineties at Sun Microsystems as a platform-independent language aimed at allowing entertainment appliances such as video game consoles and VCRs to communicate . Oak was first slated to appear in television set-top boxes designed to provide video-on-demand services. Just as the deals with the set-top box manufacturers were falling through, the World Wide Web was coming to life. As Oak’s developers began to recognize this trend, their focus shifted to the Internet and WebRunner, an Oak-enabled browser, was born. Oak’s name was changed to Java and WebRunner became the HotJava web browser. The excitement of the Internet attracted software vendors such that Java development tools from many vendors quickly became available. That same excitement has provided the impetus for a multitude of software developers to discover Java and its many wonderful features.
Features of Java
Object-Oriented - Java is a pure object-oriented language. This means that everything in a Java program is an object and everything is descended from a root object class.
Portable and Platform-Independent - Java compilers do not produce native object code for a particular platform but rather ‘byte code’ instructions for the Java Virtual Machine (JVM). Making Java code work on a particular platform is then simply a matter of writing a byte code interpreter to simulate a JVM. What this all means is that the same compiled byte code will run unmodified on any platform that supports Java.
Dynamically Linked - Java language was designed to adapt to an evolving environment. It is a more dynamic language than C or C++. Java loads in classes as they are needed, even from across a network. This makes an upgrade to software much easier and effectively. Classes in Java also have a run-time representation. In C or C++, you have a pointer to an object but you don't know what type of object it is, there is no way to find out. However, in Java, if a program is handed an object, it can find out what class it belongs to by checking the run-time type information.
Multithreaded - It is not hard to image why multithreading has become a must for a language like Java. An application has to be doing something while waiting for user input; In a GUI-based network application such as a Web browsers, there are usually multiple things going on at the same time. Java provides support for multiple threads of execution that can handle different tasks with a Thread class in the java.lang Package. The thread class supports methods to start a thread, run a thread, stop a thread, and check on the status of a thread . This makes programming in Java with threads much easier than programming in the conventional single-threaded C and C++ style.
Garbage Collection - the process of automatically freeing objects that are no longer referenced by the program. The name "garbage collection" implies that objects no longer needed by the program are "garbage" and can be thrown away. A more accurate and up-to-date metaphor might be "memory recycling." When an object is no longer referenced by the program, the heap space it occupies can be recycled so that the space is made available for subsequent new objects. The garbage collector must somehow determine which objects are no longer referenced by the program and make available the heap space occupied by such unreferenced objects. In the process of freeing unreferenced objects, the garbage collector must run any finalizers of objects being freed.
A high-level programming language developed by Sun Microsystems. Java was originally called OAK, and was designed for handheld devices and set-top boxes. Oak was unsuccessful so in 1995 Sun changed the name to Java and modified the language to take advantage of the burgeoning World Wide Web.
Java is an object-oriented language similar to C++, but simplified to eliminate language features that cause common programming errors. Java source code files (files with a .java extension) are compiled into a format called bytecode (files with a .class extension), which can then be executed by a Java interpreter. Compiled Java code can run on most computers because Java interpreters and runtime environments, known as Java Virtual Machines (VMs), exist for most operating systems, including UNIX, the Macintosh OS, and Windows. Bytecode can also be converted directly into machine language instructions by a just-in-time compiler (JIT).
Java is a general purpose programming language with a number of features that make the language well suited for use on the World Wide Web. Small Java applications are called Java applets and can be downloaded from a Web server and run on your computer by a Java-compatible Web browser, such as Netscape Navigator or Microsoft Internet Explorer.
History of Java Language
The Java programming Language evolved from a language named Oak. Oak was developed in the early nineties at Sun Microsystems as a platform-independent language aimed at allowing entertainment appliances such as video game consoles and VCRs to communicate . Oak was first slated to appear in television set-top boxes designed to provide video-on-demand services. Just as the deals with the set-top box manufacturers were falling through, the World Wide Web was coming to life. As Oak’s developers began to recognize this trend, their focus shifted to the Internet and WebRunner, an Oak-enabled browser, was born. Oak’s name was changed to Java and WebRunner became the HotJava web browser. The excitement of the Internet attracted software vendors such that Java development tools from many vendors quickly became available. That same excitement has provided the impetus for a multitude of software developers to discover Java and its many wonderful features.
Features of Java
Object-Oriented - Java is a pure object-oriented language. This means that everything in a Java program is an object and everything is descended from a root object class.
Portable and Platform-Independent - Java compilers do not produce native object code for a particular platform but rather ‘byte code’ instructions for the Java Virtual Machine (JVM). Making Java code work on a particular platform is then simply a matter of writing a byte code interpreter to simulate a JVM. What this all means is that the same compiled byte code will run unmodified on any platform that supports Java.
Dynamically Linked - Java language was designed to adapt to an evolving environment. It is a more dynamic language than C or C++. Java loads in classes as they are needed, even from across a network. This makes an upgrade to software much easier and effectively. Classes in Java also have a run-time representation. In C or C++, you have a pointer to an object but you don't know what type of object it is, there is no way to find out. However, in Java, if a program is handed an object, it can find out what class it belongs to by checking the run-time type information.
Multithreaded - It is not hard to image why multithreading has become a must for a language like Java. An application has to be doing something while waiting for user input; In a GUI-based network application such as a Web browsers, there are usually multiple things going on at the same time. Java provides support for multiple threads of execution that can handle different tasks with a Thread class in the java.lang Package. The thread class supports methods to start a thread, run a thread, stop a thread, and check on the status of a thread . This makes programming in Java with threads much easier than programming in the conventional single-threaded C and C++ style.
Garbage Collection - the process of automatically freeing objects that are no longer referenced by the program. The name "garbage collection" implies that objects no longer needed by the program are "garbage" and can be thrown away. A more accurate and up-to-date metaphor might be "memory recycling." When an object is no longer referenced by the program, the heap space it occupies can be recycled so that the space is made available for subsequent new objects. The garbage collector must somehow determine which objects are no longer referenced by the program and make available the heap space occupied by such unreferenced objects. In the process of freeing unreferenced objects, the garbage collector must run any finalizers of objects being freed.
Thesis Project
As an instructor and overall academic adviser of the 2009 BSCS and BSIT graduating batch of STI College Lucena I am proud to present the following Thesis projects:
Quezon Auction
An E-commerce website based on Quezon, Province Philippines wherein the sale of goods are bid ny intending buyers against one another for individual items, each of which is sold to the bidder offering the highest price.
Here are some screen shots of this project.
This is the main page of Quezon Auction with all the buttons / controls directing to your account, the auction listing, categories, community, entertainment, contact, terms and policies.
Auction Listing, where all items in auctioned are listed, also contains a list of top 5 popular and most valuable auction.
Item Posting (New Auction) - This is the very main page in posting new items for auction. This section is separated in four tabs to reduce space consumption, namely Bid Auction Details for Title and Description, Photos and Pictures, Settings for Auction Types and lastly the parameters to adjust overall control.
Web-based Ordering and Sales for Lucena-Based Fashion Designers
A community website for all fashion designers around Lucena City. All fashion designers in Lucena City can register to have an account to post their design items. They can also post some articles about their designs and post some videos of their fashion show.
Some screen shots of this thesis project.
This the Home Page of Lucena Fashion Store with all the list of contents about Fashion Trends, Designers, Latest Fashion News, and Style Notes. And some list of blogs post by the administrator and fashion designers.
Design Items Overview. In this page you can view all of design items posted by every fashion designer. You can select either you view the design item or you purchase the item through Paypal.
Post Item. In this page fashion designers post their new design item. The designer must select first the category, then put the price, and then browse the picture of the items to post.
Delete Me
One of the title of STI College approved thesis project.
Screen shots with description of their digital movie.
SID's Journey Beyond Mystery - A 3-Dimensional Adventure Game
For every generation there will come a goddess and choose one person who will have to take the chalenges. the person that will be choosen has to learn about the history world war 2.
Sid's journey beyond mystery "a 3d animated adventure game" is about a kid whose been curse by the goddess, and the only way to break it was to win all his challenges,
1st mission
started in a forest, this is where sid's starting point, he has to gather all the information that he will need , the information was all about the world war 2... but finding the information was not easy some are hidden and some are not..
2nd mission
finding the lost, Sid must find all the thing that the old man told to him. This "old man " is important to find in mission 1.
3rd mission
the beach, here sid's will find the enchanted creature to defeat him and get the item that he will need for the next round.
4th mission
the city, just like in the beach he will have to find the one who's holding the key to the next round but this one will not be that easy. He will have to go to some challenges and defeat him.
5th mission
to the orc village this will be the final stage where sid will have to answer all the question that is given to him, if he fail he will never return to being normal.
The House
A digital movie thesis project of BSIT in STI College.
The House is a story about a family in a farm, the story revolves on the main character named Gino, he's a hard-headed and naughty boy who always like to pull pranks on his babysitter and always disobey his parents. One day, when his parents went to town, he received a mail from his cousin who said that he would visit him one day. Later that day, he went outside to play, but he was stopped to see a piece of paper that happens to be a treasure map. The treasure also happens to be located inside the Old House, which is said to be rumored that ghost lived in there and they capture anyone who went inside. But even though he was warned by his parents, he decided to went inside the house to get the treasure. The software that we are using are Blender 2.47, it is the software we used mainly in 3D modeling and animating, we also use 3Ds Max for other model such as furnitures etc. Adobe Photoshop(any versions will do) mainly for texturing.
I am very much honoured to have mentored these students during their stay here in our institution.
Quezon Auction
An E-commerce website based on Quezon, Province Philippines wherein the sale of goods are bid ny intending buyers against one another for individual items, each of which is sold to the bidder offering the highest price.
Here are some screen shots of this project.
This is the main page of Quezon Auction with all the buttons / controls directing to your account, the auction listing, categories, community, entertainment, contact, terms and policies.
Auction Listing, where all items in auctioned are listed, also contains a list of top 5 popular and most valuable auction.
Item Posting (New Auction) - This is the very main page in posting new items for auction. This section is separated in four tabs to reduce space consumption, namely Bid Auction Details for Title and Description, Photos and Pictures, Settings for Auction Types and lastly the parameters to adjust overall control.
Web-based Ordering and Sales for Lucena-Based Fashion Designers
A community website for all fashion designers around Lucena City. All fashion designers in Lucena City can register to have an account to post their design items. They can also post some articles about their designs and post some videos of their fashion show.
Some screen shots of this thesis project.
This the Home Page of Lucena Fashion Store with all the list of contents about Fashion Trends, Designers, Latest Fashion News, and Style Notes. And some list of blogs post by the administrator and fashion designers.
Design Items Overview. In this page you can view all of design items posted by every fashion designer. You can select either you view the design item or you purchase the item through Paypal.
Post Item. In this page fashion designers post their new design item. The designer must select first the category, then put the price, and then browse the picture of the items to post.
Digital Movies - The thesis projects of BSIT students.
Delete Me
One of the title of STI College approved thesis project.
Screen shots with description of their digital movie.
SID's Journey Beyond Mystery - A 3-Dimensional Adventure Game
For every generation there will come a goddess and choose one person who will have to take the chalenges. the person that will be choosen has to learn about the history world war 2.
Sid's journey beyond mystery "a 3d animated adventure game" is about a kid whose been curse by the goddess, and the only way to break it was to win all his challenges,
1st mission
started in a forest, this is where sid's starting point, he has to gather all the information that he will need , the information was all about the world war 2... but finding the information was not easy some are hidden and some are not..
2nd mission
finding the lost, Sid must find all the thing that the old man told to him. This "old man " is important to find in mission 1.
3rd mission
the beach, here sid's will find the enchanted creature to defeat him and get the item that he will need for the next round.
4th mission
the city, just like in the beach he will have to find the one who's holding the key to the next round but this one will not be that easy. He will have to go to some challenges and defeat him.
5th mission
to the orc village this will be the final stage where sid will have to answer all the question that is given to him, if he fail he will never return to being normal.
The House
A digital movie thesis project of BSIT in STI College.
The House is a story about a family in a farm, the story revolves on the main character named Gino, he's a hard-headed and naughty boy who always like to pull pranks on his babysitter and always disobey his parents. One day, when his parents went to town, he received a mail from his cousin who said that he would visit him one day. Later that day, he went outside to play, but he was stopped to see a piece of paper that happens to be a treasure map. The treasure also happens to be located inside the Old House, which is said to be rumored that ghost lived in there and they capture anyone who went inside. But even though he was warned by his parents, he decided to went inside the house to get the treasure. The software that we are using are Blender 2.47, it is the software we used mainly in 3D modeling and animating, we also use 3Ds Max for other model such as furnitures etc. Adobe Photoshop(any versions will do) mainly for texturing.
I am very much honoured to have mentored these students during their stay here in our institution.
Sunday, November 2, 2008
Behind Google Adsense
What is a Google?
Google is the popular search engine. Google acts as an intermediary between a vast number of advertisers and an equally impressive number of website owners.
What is an AdSense?
AdSense is an advertisement serving program run by Google. Website owners can enroll in this program to enable text, image, and more recently, video advertisements on their websites. These advertisements are administered by Google and generate revenue on either a per-click or per-impression basis. Google is also currently beta-testing a cost-per-action based service.
Currently, AdSense uses JavaScript code to incorporate the advertisements into a participating website. If the advertisements are included on a website that has not yet been crawled by the Mediabot, AdSense will temporarily display advertisements for charitable causes, also known as public service announcements (PSAs).
AdSense delivers relevant text and image ads that are precisely targeted to your site and your site content. And when you add a Google search box to your site, AdSense delivers relevant text ads that are targeted to the Google search results pages generated by your visitors’ search request.
What is a Google AdSense?
Google AdSense is an advertising program that was launched in the middle of 2003 by Google.
Google AdSense is a fast and easy way for website publishers of all sizes to display relevant, unobtrusive Google ads on their website's content pages and earn money. Because the ads are related to what your users are looking for on your site, you'll finally have a way to both monetize and enhance your content pages.
The program is free, and combines pay-per-click and pay-per-impression advertising - meaning you get paid for valid clicks on the ads on your site or search results pages as well as impressions on your content pages. So go ahead and try this program. If you comply with the program policies, just complete the online application and select either or both of AdSense for content pages and AdSense for search.
Google's AdSense program lets you sell advertising space for other people's ads on your website--and not just any ads that Google chooses, but ads that are relevant to your site's content pages. The service is free, and you earn money every time someone clicks on an ad.
Google is the popular search engine. Google acts as an intermediary between a vast number of advertisers and an equally impressive number of website owners.
What is an AdSense?
AdSense is an advertisement serving program run by Google. Website owners can enroll in this program to enable text, image, and more recently, video advertisements on their websites. These advertisements are administered by Google and generate revenue on either a per-click or per-impression basis. Google is also currently beta-testing a cost-per-action based service.
Currently, AdSense uses JavaScript code to incorporate the advertisements into a participating website. If the advertisements are included on a website that has not yet been crawled by the Mediabot, AdSense will temporarily display advertisements for charitable causes, also known as public service announcements (PSAs).
AdSense delivers relevant text and image ads that are precisely targeted to your site and your site content. And when you add a Google search box to your site, AdSense delivers relevant text ads that are targeted to the Google search results pages generated by your visitors’ search request.
What is a Google AdSense?
Google AdSense is an advertising program that was launched in the middle of 2003 by Google.
Google AdSense is a fast and easy way for website publishers of all sizes to display relevant, unobtrusive Google ads on their website's content pages and earn money. Because the ads are related to what your users are looking for on your site, you'll finally have a way to both monetize and enhance your content pages.
The program is free, and combines pay-per-click and pay-per-impression advertising - meaning you get paid for valid clicks on the ads on your site or search results pages as well as impressions on your content pages. So go ahead and try this program. If you comply with the program policies, just complete the online application and select either or both of AdSense for content pages and AdSense for search.
Google's AdSense program lets you sell advertising space for other people's ads on your website--and not just any ads that Google chooses, but ads that are relevant to your site's content pages. The service is free, and you earn money every time someone clicks on an ad.
5 Black Hat SEO Terms You Need Know
Every industry is filled with terms that are specific to that industry. Some industries have niches with their own terminology. Such is the case with black hat SEO. Despite having a solid SEO background, I continue to come across terms from the black hat side of things whose meanings I don't know. Every time I do, I make a mental note, but I figured putting them down on "paper" would be a good idea so here's the first batch.
Link Building with XSS
Using vulnerabilities in a web site's underlying code to inject links to a site, ideally one trusted by search engines. The more complicated the CMS, the more likely there are going to be holes in it that can be exploited. Once the links are in place, pinging or linking to the exploit pages can speed up the indexing by search engines.
To hide your association with the link in case it is discovered, put the real site a hop or two away from the link. For example, make the link look like it's an affiliate link i.e. an affiliate you don't control and then you can deny all knowledge and feign anger at such abusive techniques.
Link Dumping
If you can isolate signatures in code that identify a particular piece of software, you can then automate link submissions. For example, if you can determine the signature used by a particular forum software, you can write software that crawls the web (or a list of URLs) to find instances of that software. Once identified, you can then use a script to create user profiles each with a link back to your site.
Automated Content Generation
This term usually refers to using content sources other than your own for creating web pages in an automated fashion. These pages don't necessarily make "sense" and are generally useless to users, but they target keywords that can bring traffic from search engines. Top rankings for competitive terms are unlikely, but it is possible to obtain rankings for the long tail of search which in aggregate can be quite lucrative.
Advanced techniques include measures to make the content unique by mixing from different sources, rearranging of text blocks, and/or replacing words with synonyms.
Parasite Hosting
This technique involves creating content on a host you don't control where the host in question is so trusted that your content can easily rank for the targeted keyword. Ideally the page would serve up legitimate-looking content to search engines, but redirect regular users to a page of your choice where you can monetize the traffic.
A variation of this includes finding no longer used accounts on sites like WordPress. Sometimes people get tired of their projects and just deactivate their accounts. This leaves a trusted URL up for grabs.
Override Back-Button Clicks
When a user leaves your site, you lose the opportunity to monetize that traffic. Instead, intercept the back-button click and direct the user to a page of your choosing. If you're really sneaky you can make the destination page LOOK like the page the user expects e.g. a search results page, but of course is actually that you can monetize.
original source… All Things SEM
Link Building with XSS
Using vulnerabilities in a web site's underlying code to inject links to a site, ideally one trusted by search engines. The more complicated the CMS, the more likely there are going to be holes in it that can be exploited. Once the links are in place, pinging or linking to the exploit pages can speed up the indexing by search engines.
To hide your association with the link in case it is discovered, put the real site a hop or two away from the link. For example, make the link look like it's an affiliate link i.e. an affiliate you don't control and then you can deny all knowledge and feign anger at such abusive techniques.
Link Dumping
If you can isolate signatures in code that identify a particular piece of software, you can then automate link submissions. For example, if you can determine the signature used by a particular forum software, you can write software that crawls the web (or a list of URLs) to find instances of that software. Once identified, you can then use a script to create user profiles each with a link back to your site.
Automated Content Generation
This term usually refers to using content sources other than your own for creating web pages in an automated fashion. These pages don't necessarily make "sense" and are generally useless to users, but they target keywords that can bring traffic from search engines. Top rankings for competitive terms are unlikely, but it is possible to obtain rankings for the long tail of search which in aggregate can be quite lucrative.
Advanced techniques include measures to make the content unique by mixing from different sources, rearranging of text blocks, and/or replacing words with synonyms.
Parasite Hosting
This technique involves creating content on a host you don't control where the host in question is so trusted that your content can easily rank for the targeted keyword. Ideally the page would serve up legitimate-looking content to search engines, but redirect regular users to a page of your choice where you can monetize the traffic.
A variation of this includes finding no longer used accounts on sites like WordPress. Sometimes people get tired of their projects and just deactivate their accounts. This leaves a trusted URL up for grabs.
Override Back-Button Clicks
When a user leaves your site, you lose the opportunity to monetize that traffic. Instead, intercept the back-button click and direct the user to a page of your choosing. If you're really sneaky you can make the destination page LOOK like the page the user expects e.g. a search results page, but of course is actually that you can monetize.
original source… All Things SEM
The One
Hmmm,, let me think first what would be I write here in this blog... think.. think.. and think..
The CCS dean of STI College Lucena inspires us to have this. After he had created already his own blog and incorporate the Google AdSense, he knew that he earns a dollar for an hour. He was excited to share this amazing program to his faculty, employees and students. He encouraged us to create a blog immediately with our free time instead of doing worthless things and build our own network of bloggers. That's the reason why I started to create my own blog and build our network. He is THE ONE and he is our mentor who motivate us in such a great thing. Thanks for having "the ONE"!
The CCS dean of STI College Lucena inspires us to have this. After he had created already his own blog and incorporate the Google AdSense, he knew that he earns a dollar for an hour. He was excited to share this amazing program to his faculty, employees and students. He encouraged us to create a blog immediately with our free time instead of doing worthless things and build our own network of bloggers. That's the reason why I started to create my own blog and build our network. He is THE ONE and he is our mentor who motivate us in such a great thing. Thanks for having "the ONE"!
Subscribe to:
Posts (Atom)