Skip to main content

Posts

Showing posts from 2015

Error: Element Style is Missing Required Attribute Scoped

A professional web developer always ensure if his website has any HTML error before delivering it to the client. I too 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 pare…

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

Today morning I tested some of my websites using W3 validator (https://validator.w3.org) 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  happen 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 the 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 in to database, the situation is very critical. Luckily, PHP has some built in functions to validate the data inserted by a user using user input form. Before explaining those functions, it is better 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 strings 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 use t…

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 depends on the detailed analysis on 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 ta…

Time and Work -Competitive Exam Questions and Answers With ShortCuts

If you are preparing for competitive exams, one of the sure shot questions in aptitude is time and work related problems. Though the questions asked are simple, without knowing the correct methods, there is a chance of making mistakes. This guide explains various short cuts which can be used to answer the work and time related questions simply with complete solution. For those who are preparing for various government jobs through PSC and UPSC may find this guide helpful. I have solved some of the previous year Time and Work related PSC examination questions at the end of this tutorial. Some of the important concepts a student needs to know while answering Time and Work related aptitude questions are provided below.

Most Repeated Questions in PSC Examinations1 Questions Related to Samadhi Sthal Of Popular Indian Leaders 2PSC Questions in Diseases & Vaccines 3Important Medical Treatment Techniques PSC Questions4Questions & Solutions Related to LCM & HCF
If a man completes ce…

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 busy life. It is easy to login 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 for 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 Web Mail to Send a Copy of Every Email Transfer


It is possible to configure GoDaddy webmail to send a copy of every emails (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 get 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.
Most Repeated Questions in PSC Examinations1 Questions Related to Samadhi Sthal Of Popular Indian Leaders 2PSC Questions in Diseases & Vaccines 3Most Repeated Time & Work Questions by PSC 4Important Medical Treatment Techniques
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 th…

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 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 domain side is 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 email deliv…

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 browser using the foreach() loop. I created one HTML form with 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 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.



Reason:
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 makes the pro…

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 me the circumstances under which they levied AMB penalty. She explained me, HDFC had send 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 mean time and couldn't deliver the post. She also informed me HDFC doesn't intimate customers about account change via SMS but only through 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 in to ordinary savings account later. At the time of opening the account, they said, it's a salary account and the minimu…

Started Using Microsoft Office 365 From GoDaddy

I had been using GoDaddy web mail service for my domain based email server until yesterday. If any of my reader send me a message at admin@corenetworkz.com, 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 painful 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, at 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 web mail service to this one, I recommend you to continue reading.


Login Link for Microsoft Office 365

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

email + . + domain name

For example, login page for …

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 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 comput…

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 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. Me and he troubleshooted the issue together and fixed. Out of the experience with troubleshooting this device, I decide 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 exp…