Skip to main content


Showing posts from 2015

Error: Element Style is Missing Required Attribute Scoped

A professional web developer always ensures if his website has any HTML error before delivering it to the client. I do it once the coding is finished. This post explains one error code I received while validating the HTML code. As I progress HTML validation with my websites, I met a new error "Error: Element style is missing required attribute scoped". Validator showed the lines where this error present. While checking the code I found the following lines.

<style >blockquote{clear: both;font-style: italic;margin-left: 10px;margin-right: 10px;position: relative;border: 0px;font-size: 20px;line-height: 200%;font-weight: light;width: 100%;font-family: 'Source Sans Pro',Helvetica,Arial,sans-serif;text-align: center;}</style>

The screenshot of the error message is shown below.

<style> is considered as part of CSS and anything written in it will be applied to the whole document. However, if we use the attribute scoped, the style applies only to its parent …

Element div not Allowed As Child of Element Span in this Context

Today morning I tested some of my websites using W3 validator ( to check whether they have any HTML errors. They were developed by a freelance HTML developer hired online. One website showed an error - "Error: Element div not allowed as child of element span in this context. (Suppressing further errors from this subtree)". This is one of the easiest error we can fix and it happens by a web developer who doesn't follow the basic rule of never put block-level elements inside inline elements. While testing the code I found the following lines which created the error.

<span class="mob-menu-toggle" data-target="#navbarCollapse" data-toggle="collapse"> <div id="nav-icon" > <span></span> <span></span> <span></span> <span></span> </div> </span>
Here, the block level element …

Prevent Malicious User Inputs In PHP Form

A professional website always must have a way to receive user inputs either in the form of a comment column or in the form of a user input form. It is a must for successful websites to receive feedback from their users but some malicious persons use this option to inject malicious scripts to the website. If the data entered by the user is directly inserted into the database, the situation is very critical. Luckily, PHP has some built-in functions to validate the data inserted by a user using the user input form. Before explaining those functions, it is better to understand the effects of tricky external credentials.

Effects of Malicious User Inputs on a Website
Though a PHP address form is intended to receive user details like name, address etc, it will take every string submitted unless we don't implement strict validation. If someone enters a script instead of name, it is possible that the form will accept it unless there is a validation. It will be extremely dangerous if we us…

Cloud Computing Advantages and Disadvantages

The buzzword of the moment is “cloud computing,” and competition is stiff to attract users to the variety of cloud services available. Simply put, cloud computing is the idea of accessing data storage and applications at a remote site over the Internet, rather than from a local network. In this article, we look at the major advantages and disadvantages of using cloud computing for a company. We cannot avoid the importance of cloud computing and we know it is the future. At the same time we must of aware of the risks in using cloud computing to store sensitive data of a company or institution. Final decision to use cloud computing for a company should fully depend on the detailed analysis of the risks and advantages of this new technology.

According to Gartner, one-third of all consumer data will be in the cloud by 2016, compared to 7% today.1 Microsoft has predicted that 74% of small and medium-sized businesses will use at least one cloud service by 2014.2

Most consumers have had a t…

Time and Work -Competitive Exam Questions and Answers With ShortCuts

If you are preparing for competitive examinations, one of the sure shot questions in aptitude is problems related to time and work. Though the questions are simple, without knowing the correct methods, there is a chance of making mistakes. This guide explains various shortcuts which can be used to answer the questions in the work and time section. If you have the correct formula, you can solve most of the questions by simply using it.

For those who are preparing for various government jobs through SSC, PSC and UPSC may find this guide helpful.

Important Formulas and Concepts

If a man completes certain work in 'n' days, work done by him in one day is 1/n.

If the work done by a man in one day is 1/n, he can finish the total work in n days.

Time and work are always inversely proportional to each other.

If M1 persons can do W1 work in D1 days and M2 persons can do W2 work in D2 days, the general formula to find the total work or total time is :

M1 * D1 * W2 = M2 * D2 * W1

It is impo…

Redirect Emails Received on GoDaddy Domain Email Accounts to Personal Email ID

GoDaddy professional email allows us to use email accounts associated with the domain names we own. I am using their Professional email with some of my websites and overall happy with their performance. However, the problem I am facing is having less time to monitor and manage all the accounts in a busy life. It is easy to log in and check the account if you have a handful of email accounts but for those who are managing multiple accounts, it is a difficult task. I too find it very difficult to open each email accounts to check whether received any important messages. Luckily there is a solution to this problem. This tutorial explains how to get a copy of the emails received on the GoDaddy professional email accounts to your personal email.

Configure GoDaddy WebMail to Send a Copy of Every Email Transfer

It is possible to configure GoDaddy webmail to send a copy of every email (both received and send) to a different email account. Using this feature, we can point our personal email ac…

L.C.M and H.C.F Shortcuts & Questions For PSC & UPSC Exams

If you are preparing for PSC and UPSC exams, one of the important section in quantitative aptitude is LCM and HCF. If you prepare properly, you can score 100 percent from this part. L.C.M. (Least Common Multiple) is the least non-zero number in common multiples of two or more numbers. H.C.F. (Highest Common Factor) is the highest common factor of two or more numbers which means the biggest number which divides each of them exactly.

Now let us check some interesting facts and formulas which help you to solve any questions asked in competitive exams by Banks, CAT, state and central Governments, etc.

Division Method to Find LCM and HCF

Before going for methods to solve LCM and HCF questions asked in aptitude examinations, let us check the methods to find these values using the division method.

1) Find the LCM of 12, 17, 30 using the division method

| 2| 12 , 17, 30 --------------------- |6, 17, 15 2 | -------------------------------- 3…

Problems With Receiving Emails On ZOHO Mail

One of my friends is using ZOHO mail to manage his domain based email to send and receive official messages. Though he configured the service by himself, he failed to receive emails in the inbox. However, he can send messages without any issues. He was very frustrated because he lost many important messages due to this problem. Today he came to my home and asked me to troubleshoot it. The issue was very simple- wrong MX records. Everything in ZO Mail part is configured correctly but the actions on the domain side are pending. He purchased his domain name through GoDaddy and once changed the MX records, the problem disappeared. Anyone can make the same mistake, so I think it is better sharing the steps to fix email receiving troubles with ZOHO Mail.

Can Send Email But Cannot Receive in Inbox
Zoho Mail has a well-documented tutorial to set email delivery for domains purchased from a wide range of domain registrars. The below link will lead you to a tutorial where you can troubleshoot em…

Warning: Invalid Argument Supplied For foreach()

Today while refreshing my programming knowledge (those I left once completed my college), I repeatedly encountered an error message "Warning: Invalid argument supplied for foreach()". I was trying to display the items received from a checkbox form on the browser using the foreach() loop. I created one HTML form with the facility to receive multiple inputs from users using "checkbox" and pass them to action page using the method "POST". As we know, the multiple inputs create an array which can be accessed using $_POST["name given to checkbox"] and displayed using the foreach loop. However, instead of displaying the user inputs, I received the error message " Warning: Invalid argument supplied for foreach() ". You can see the browser response from the picture attached below.

foreach() works for arrays and if the passed variable is not a valid array, we will get the "Invalid argument' warning. To avoid this warning and ma…

HDFC Deducts Money From My Account Automatically(AMB CHRG INCL ST & CESS )

Update:Today (24/02/15) one HDFC representative contacted me after reading this complaint and explained to me the circumstances under which they levied AMB penalty. She explained me, HDFC had sent me a post about the change of account status from salary A/C to normal savings A/C but the postal address listed in the bank details pointed to my old office. Unfortunately, they changed the office in the meantime and couldn't deliver the post. She also informed me HDFC doesn't intimate customers about account change via SMS but only through the post.

For those who are managing multiple bank accounts may don't recognize the white collar theft by banks in the form of hidden charges and penalties. I have been facing such a situation for the past few months, but yesterday I found it.

I have one HDFC account which was started as a salary account and then transformed into an ordinary savings account later. They told me it's a salary account and the minimum balance can be 0 rupees…

Started Using Microsoft Office 365 From GoDaddy

I had been using GoDaddy webmail service for my domain based email server until yesterday. If any of my readers send me a message at, I would receive it on GoDaddy webmail. Today noon, I have migrated my webmail server from regular Godaddy webmail to Microsoft Office 365. The migration was not much stressful as I thought. However, I am afraid I lost some emails (fresh emails coming at the time of migration) during conversion time. According to their technical support, it may take up to 48 hours to start receiving emails to Office 365. Anyway, in the end, I am happy with this new product and that is why I am sharing my views with readers. If you don't know what is Office 365 and why do GoDaddy migrated their normal webmail service to this one, I recommend you to continue reading.

Login Link for Microsoft Office 365

It is easy to find the login link. all you have to do is to remember the following combination.

email + . + domain name

For example, the login page…

WAMP Server Is Offline Due to Internal Error

After a long while, I have decided to check some personal web projects I did during my college days. Most of them were done in PHP and My SQL. To test them I need to open them either in the local server (WAMP server I am using) or upload the entire files to a web server. Since it takes more time to upload entire project (it includes a lot of images too) to my web hosting account, I decided to check them on Local Host. Though everything looked fine, WAMP server showed offline. Its icon in system tray showed in red color as you can see in the image below.

I opened the program by clicking on it and tried to put it online by clicking "Put Online'.

This operation failed and I got an error messages "Could not execute menu item (internal error) [Exception] could not perform service action; The service has not been started" with an OK button.

So the reason for this problem is revealed. Some of the essential services needed to start this application are disabled on this com…

Setup Linksys WRT1900AC Router With Cable Broadband

My friend bought Linksys WRT1900AC to replace one of the older routers installed at his home. Reason for the upgrade was to replace the 802.11n network with the 802.11ac network. Though he completed the configuration by following the instructions came with the product, he couldn't go online. The same Internet connection is working perfectly fine with his older device. We troubleshoot the issue together and fixed. Out of the experience with troubleshooting this device, I decided to write a small guide for those who are facing any connection problems with WRT1900AC dual-band 4x4 Gigabit router. I hope this guide will be enough to identify hardware issues, configuration issues etc with it.

Detect Hardware Issues

To detect hardware problems of Linksys WRT1900AC router, we must check the power and Internet lights. Blinking amber Internet light indicates possible hardware problems. If you find any hardware troubles with it, you must immediately contact customer support before the expiry…

About Author

My photo
Alex George
Alex George has Engineering graduation in Computer Science and an MBA in Finance. He had been working as a senior Network Engineer for ten years. His specialization is in Cisco products. Traveling is one of his hobbies and visited various places as part of his onsite work. He visited different places as part of his onsite work like New York, Dubai, London, etc. Right now Alex is a director of one of the leading career development firms in India, which trains students for UPSC, SSC, and PSC examinations. He guides a lot of students to get selection for various prestigious institutions like CBI, Income Tax Department, etc. Alex George is a stock market investor and a very active intraday trader. Engineering Background: He has a B.Tech in Computer Science and Engineering and passed different network and security courses like CCNA, CCNP (Security), CEH, and various Microsoft certifications. Finance Background: Alex has an MBA in Finance. He is an active intraday trader and a Share Market Investor. Webmaster Skills: Alex is a blogger since 2004. He has a working knowledge of HTML, CSS, PHP, and JavaScrip.


Show more