Skip to main content

Some Changes to Come...

The name of this blog, as you know, is Learning Computer Programming but since long (actually start) we’ve only been discussing about two programming languages only (C & C++). I thought it’d be better if I discuss about other programming languages too, and since I’m deeply caught up with PHP as for now, we’ll be starting off with it.

This of course doesn’t mean that we’ll leave C++ or the topic of this blog will shift to PHP rather it means that the discussion here will not be limited to just one language.

This also doesn’t mean you’ll be seeing posts on all sorts of programming languages, as I said for the time being I’ll be posting articles on PHP and Web Programming.

Popular posts from this blog

Fix For Toshiba Satellite "RTC Battery is Low" Error (with Pictures)

RTC Battery is Low Error on a Toshiba Satellite laptop "RTC Battery is Low..." An error message flashing while you try to boot your laptop is enough to panic many people. But worry not! "RTC Battery" stands for Real-Time Clock battery which almost all laptops and PCs have on their motherboard to power the clock and sometimes to also keep the CMOS settings from getting erased while the system is switched off.  It is not uncommon for these batteries to last for years before requiring a replacement as the clock consumes very less power. And contrary to what some people tell you - they are not rechargeable or getting charged while your computer or laptop is running. In this article, we'll learn everything about RTC batteries and how to fix the error on your Toshiba Satellite laptop. What is an RTC Battery? RTC or CMOS batteries are small coin-shaped lithium batteries with a 3-volts output. Most laptops use

The Best Way(s) to Comment out PHP/HTML Code

PHP supports various styles of comments. Please check the following example: <?php // Single line comment code (); # Single line Comment code2 (); /* Multi Line comment code(); The code inside doesn't run */ // /* This doesn NOT start a multi-line comment block /* Multi line comment block The following line still ends the multi-line comment block //*/ The " # " comment style, though, is rarely used. Do note, in the example, that anything (even a multi-block comment /* ) after a " // " or " # " is a comment, and /* */ around any single-line comment overrides it. This information will come in handy when we learn about some neat tricks next. Comment out PHP Code Blocks Check the following code <?php //* Toggle line if ( 1 ) {      // } else {      // } //*/ //* Toggle line if ( 2 ) {      // } else {      // } //*/ Now see how easy it is to toggle a part of PHP code by just removing or adding a single " / " from th

Moving (Positioning) an Image Using JavaScript

In this post we’re going to learn how we can move an image around using JavaScript. We’ll have four control links (Left, Right, Up, Down) that’ll move the image. Reading along you’ll learn: What the absolute and relative positions do How some JavaScript function can be invoked automatically on page load How JavaScript can be used to manipulate the “style” properties of elements How JavaScript can be used to change these properties Okay, now let’s start! THEORY We’re going to have the following elements in the page: A container ( div ) An image Control links Container The container would be styled to have a size of 500px by 300px. It’d have position: relative which makes anything inside to be positioned with respect to this container. It’s done to make the image move independent of the placement of the container. We’ll also make the overflows from the container to be “ hidden ”. Image The image would be given position: absolute which means