Saturday, April 25, 2015

Blog #10: Tag, you're it!

Source: http://www.htmlandcssbook.com/press/

     I believe that a student's experience would not be complete if he/she never tried creating something using HTML and CSS. These are the basic structures and foundations of the simplest webpages out there. We now live in a world full of out-of-this-world inventions and high caliber technologies, and we would be left out if we won't understand even the roots on how these things emerge and were made. Also, it would be a work advantage if you understand and know how to use Hyper Text Markup Language and Cascading Style Sheets.


To know more about HTML and CSS, read the articles below. Otherwise, you may skip.
-------------------------------------------------------------------------------------------
Disclaimer: These are not from me, since I believe if I explain, I won't be able to do justice :P



source:
http://www.border7.com
/blog/07/27/
5-basic-html-codes-every
-ecommerce-merchants-should-know/
From: http://en.wikipedia.org/wiki/HTML

"Hyper Text Markup Language, commonly referred to as HTML, is the standard markup language used to create web pages. It is written in the form of HTML elements consisting of tags enclosed in angle brackets (like <html>). HTML tags most commonly come in pairs like <h1> and </h1>, although some represent empty elements and so are unpaired, for example <img>. The first tag in such a pair is the start tag, and the second is the end tag (they are also called opening tags and closing tags).

Web browsers can read HTML files and render them into visible or audible web pages. Browsers do not display the HTML tags and scripts, but use them to interpret the content of the page. HTML describes the structure of a website semantically along with cues for presentation, making it a markup language, rather than a programming language.

HTML elements form the building blocks of all websites. HTML allows images and objects to be embedded and can be used to create interactive forms. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. It can embed scripts written in languages such as JavaScript which affect the behavior of HTML web pages."


source:
https://bligusti.wordpress.com
/2012/06/07/panduan-membuat-css/

From:http://en.wikipedia.org/wiki/Cascading_Style_Sheets

Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup language. Along with HTML and JavaScript, CSS is a cornerstone technology used by most websites to create visually engaging webpages, user interfaces for web applications, and user interfaces for many mobile applications.

CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple HTML pages to share formatting by specifying the relevant CSS in a separate .css file, and reduce complexity and repetition in the structural content, such as semantically insignificant tables that were widely used to format pages before consistent CSS rendering was available in all major browsers."




-------------------------------------------------------------------------------------------

     Basically, HTML is the framework, and CSS is the design.

Source: http://www.westciv.com/style_master/academy
/css_tutorial/introduction/how_they_work.html

source: http://blog.formstack.com/2010/customize-form-buttons-with-css/

     How many web pages do you come across with in a day, or every after you type something in a search engine of your web browser? Have you ever encountered a search where there are less than a hundred web pages as results? There is no such thing! (unless there really is no such thing of what you are searching for haha) There are thousands and millions of results. Look:



     Most of these webpages are products of html! The fact that there are millions in existence proves how accessible HTML and CSS can be.

Webpages
Source: https://www.chromium.org/developers/design-documents/extensions/proposed-changes/apis-under-development/offscreen-tabs

    I've mentioned before that I've learned HTML, CSS, and JavaScript when I was in high school. My favorite lesson of the three was HTML. It was the easiest to understand. I liked CSS next, but not as much as HTML. I'm not much of a designer, and I'm just overwhelmed by the codes used in CSS because they're just so many, while HTML is just so simple. But it always amazes me how those simple codes bring life to HTML. How a boring code renders to a beautifully designed webpage.

     Which reminds me, I never told you how :P All you need to have is a text editor (notepad works for me, but I like Ubuntu's text editor because it highlights the tags, and it looks more encouraging than notepad's boring normal text lol), and save the file as .html or .htm and run it using a web browser, aaaaand you're good to go :)

     Our 10th exercise is creating a website with 3 pages, consisting of our personal info, our dreams, and our class schedule (not a picture, we must make it using codes). I'm afraid my CSS skills are no match to my imagination. I just hope I can make something appealing to the eyes hahaha.

     If you want to learn the basics of HTML and CSS, you can go visit http://www.w3schools.com/



Saturday, April 18, 2015

Blog #9: C is for Computer Programming

Basic Programming Using the C Programming Language


     This was not my first time to encounter computer programming. But I was not an expert, actually the opposite. When I was in my 2nd year of high school, we had a programming subject where we learned HTML, CSS and Java. I passed the subject, but to be frank, I had little to none info retained in my brain -_- I survived merely by asking my classmates for some help, and probably our teacher curved our grades. Heehee. I do remember a few things from html though, the "marquee" and the "blink" :P

     The second time I encountered programming was here in college. I mentioned last time that I had a subject named AMAT 150 (Computer Programming), where we used Plato IDE and the Fortran Programming Language (that's probably jurassic programming), where I learned a lot and enjoyed so much though it was as tedious as any other subject. The semester after that, we had MATH 174 (Numerical Analysis 1) where we used Scilab. Scilab is an open source software and is widely used in secondary and higher education institutions for teaching mathematics, engineering sciences and automatic control engineering (from http://www.scilab.org/). We also made codes that help in solving various mathematical problems (trust me, you wouldn't want to know), which is why AMAT 150 is its prerequisite. Though I have enjoyed AMAT 150 so much, what I felt with MATH 174 was actually the opposite, that I almost failed the subject, thank God I did not! The codes were too hard for my brain to comprehend, and probably because 15 units out of my 18 units were majors and electives that my brain chose not to work anymore. LOL. It was too mathematical and theoretical, and yet we fuse programming with it, so how on earth o.o

http://www.quickmeme.com/meme/3rf9j4

     C programming was fun and easy to understand, also because I had a little background on programming, and already encountered if-else, etc.

     Okay so here are some screen captures of the exercises we did in our laboratory class. The text editor (white) is where we input our commands using the c language, and the terminal (black) is where the commands are executed.

Program that prints "Hello World!"

Program that gets the sum of 2 and 5

Program that gets the sum of two numbers (integer and decimal)


Program that gets the sum of two numbers, and the difference of the two numbers if the sum is less than 200 (otherwise, "Gravity ang laki ng sum!" will be printed)

Program that computes for the GWA from the given subjects, and prints PASS if GWA is less than 3.0, otherwise prints FAIL

Saturday, April 11, 2015

Blog #8: ○ ▱ ▭ ◇ ⇆

     Finally, something with less math and more programming! :P

     Our lesson this week was about Introduction to Computer Problem Solving. The goal of the lesson was to teach us to solve problems - but not always math problems, including the beginning of the problem, every step that leads to the desired solution, up to the solution or the end - and illustrate the problems using flowchartswhich explains these: ○ ▱ ▭ ◇ ⇆

     As an Applied Mathematics student, I have programming courses in my curriculum. The lesson we had this week reminded me of my programming subject last year, AMAT 150: Computer Programming. I was happy with the lesson we had because it was something that reminded me of one of my favorite subjects of all time. 



     What the hell are these symbols for? That was my reaction when I saw these symbols being written by our instructor on the board. At first glance we may be confused on what these are for.
     Given these labels, we now understand that the symbols given earlier are commands or steps in coloring cells. Consider a 5x5 table:

     The symbols were steps in coloring a 3x3 square with a hollow center within the 5x5 square. These steps, or sequences, are called algorithms. The two common representations of algorithms are pseudo-codes and flowcharts. Flowcharts are graphical representation of algorithms. Pseudo codes are the set of steps like in flowcharts, but written in phrases or sentences, including if-then statements found in flowchart diamonds.


from http://teachwithict.weebly.com/computing-blog/category/algorithms#sthash.FPdgHz7L.dpbs

Some pseudo code and flowchart examples:
from httpswww.youtube.comwatchv=vOEN65nm4YU

from http://www.csgcse.co.uk/programming/flowcharts-pseudocode/

     We had a fun activity which is called the "HOUR OF CODE" from http://code.org/ (please do visit this site!) and they have this advocacy: Every student in every school should have the opportunity to learn computer science. It was fun solving the problems! It brings out your inner child, while still being challenging. Try it out!