If you are maintaining or hosting a website which is using php scripts like Drupal or WordPress CMS or any custom build website, then you will surely face “Fatal error: Maximum execution time of 30 seconds exceeded” error; if you have not faced yet. This error is very common in opensource CMS like WordPress, Drupal etc where lots of queries need to run to show the contents of some pages.
By default, hosting providers set 30 seconds execution time to any of your php scripts in their php configuration file i.e. ‘php.ini’. Usually you can’t this value as you will not have access to php.ini. Otherwise it’s just matter of one line change in php.ini.
Majority of servers have 30 seconds as maximum execution time. This image from sigsiu.net shows the stats of the servers vs maximum execution time.
Method 1
In case, you have access to php.ini file (if you are running website in localhost or VPS etc.) Find php.ini (will be inside Apache) and find max_execution_time keyword. Sometime, they allow you to create your own php.ini and it will override server’s php.ini value (If you are lucky).
Change the value from 30 to 300 (it’s in seconds)
[php]max_execution_time = 300[/php]
Method 2
Other way is to update max_execution_time value using .htaccess. Add below line in your .htaccess file in your root folder
[php]php_value max_execution_time 300[/php]
Method 3 (For Drupal)
Add below line in sites/default/settings.php
[php]ini_set(‘max_execution_time’, 0);[/php]
Note: You may face memory issue along with maximum execution time. In that case just add maximum memory limit in
.htaccess as php_value memory_limit 256M
ini as memory_limit = 256M ;
In Drupal at sites/default/settings.php as ini_set(‘memory_limit’, ‘256M’);
This infographics depicts the history of computer programming evolution. Like how Abacus, Charles babbage, Ada, Fortran, internet, Perl Python came into existence with classic pictures,examples and images. There are very interesting facts that you would surely like. Kindly like and share if you find it informative.
These are the few questions asked in HR interview (some of them already known to us)!! The answers are really stunning and inspiring. Thinking out of box!
A must read… Question 1: You are driving along in your car on a wild, stormy night, it's raining heavily, when suddenly you pass by a bus stop, and you see three people waiting for a bus:
An old lady who looks as if she is about to die.
An old friend who once saved your life.
The perfect partner you have been dreaming about.
Which one would you choose to offer a ride to, knowing very well that there could only be one passenger in your car?
Answer:
This is a moral/ethical dilemma that was once actually used as part of a job application.
* You could pick up the old lady, because she is going to die, and thus you should save her first;
* or you could take the old friend because he once saved your life, and this would be the perfect chance to pay him back.
* However, you may never be able to find your perfect mate again.
The candidate who was hired (out of 200 applicants) had no trouble coming up with his answer. Guess what was his answer?
He simply answered:
"I would give the car keys to my Old friend and let him take the lady to the hospital. I would stay behind and wait for the bus with the partner of my dreams."
Sometimes, we gain more if we are able to give up our stubborn thought limitations. Never forget to "Think Outside the Box."
Question 2: What will you do if I run away with your sister?" Answer: The candidate who was selected answered " I will not get a better match for my sister than you sir"
Question 3: Interviewer (to a student girl candidate) – What is one morning you woke up & found that you were pregnant. Girl – I will be very excited and take an off, to celebrate with my husband.
Normally an unmarried girl will be shocked to hear this, but she managed it well. Why I should think it in the wrong way, she said later when asked
Question 4: Interviewer: He ordered a cup of coffee for the candidate.
Coffee arrived kept before the candidate, then he asked what is before you? Answer:Candidate: Instantly replied "Tea"
He got selected.
You know how and why did he say "TEA" when he knows very well that coffee was kept before.
(Answer: The question was "What is before you (U – alphabet)
Reply was "TEA" ( T – alphabet)
Alphabet "T" was before Alphabet "U"
Question 5: Where Lord Rama would have celebrated his "First Diwali"? Answer: People will start thinking of Ayodya, Mitila [Janaki's place], Lanka etc…
But the logic is, Diwali was a celebrated as a mark of Lord Krishna Killing Narakasura.
In Dusavataar, Krishnavathaar comes after Raamavathaar.
So, Lord Rama would not have celebrated the Diwali At all!
Question 6: The interviewer asked to the candidate "This is your last question of the interview.
Please tell me the exact position of the center of this table where u have kept your files." Answer
Candidate confidently put one of his finger at some point at the table and told that this was the central point at the table.
Interviewer asked how did u get to know that this being the central point of this table,
then he answers quickly that sir u r not likely to ask any more question, as it was the last question that u promised to ask…..
And hence, he was selected as because of his quick-wittedness. ……..
Question 7: A man and his son are in a car crash. The father is killed and the child is taken to hospital gravely injured. When he gets there, the surgeon says, 'I can't operate on this boy – for he is my son!!!' How can this possibly be? Answer: The surgeon cannot operate on her own son; she is his mother.
Question 8: There are six eggs in the basket. Six people each take one of the eggs. How can it be that one egg is left in the basket? Answer: The last person took the basket with the last egg still inside.
Question 9: How could a baby fall out of a twenty-story building onto the ground and live? Answer: The baby fell out of a ground floor window.
Question 10: Acting on an anonymous phone call, the police raid a house to arrest a suspected murderer. They don't know what he looks like but they know his name is John and that he is inside the house. The police bust in on a doctor, an engineer, a lawyer and a fireman all playing poker. Without hesitation or communication of any kind, they immediately arrest the fireman. How do they know they've got their man? Answer: The fireman is the only man in the room. The rest of the poker players are women.
Never forget to "Think Outside the Box."
Got this in internet, thought its good to share with you readers.
Image Source: teluguone.com
What steps can I take to minimize spam email? What is spam email? Why is spam email an issue? Spam email is generally annoying, and can slow down computer networks and the delivery of legitimate email, and increase your download costs.
Why is spam email an issue?
Have you ever observed that you are getting few mails based on your search criteria. Even Google does so. In my Gmail inbox i find suggested mail based on my search on Google. Sometime you will get message like "Congrats! you won the lottery and so and so…", play this video, its amazing or some power point slides (either from your friend or from strangers).
Do you check these stuffs through any anti-virus before opening it?
I guess more than 75% users will say no. What if on click on such things will crash your system or will leak your personal information. Have you even thought about it? if not then start thinking….. This is what we call spam and through Social engineering it is very easy to get information about you and about your system.
You might have read or heard about web security that is being provided by any banks. They use "https" protocol to make it safe and a lot of security features are there. You might have read these few lines somewhere which is written below: We are committed to developing online and electronic products to help taxpayers meet their obligations and make the experience easier, cheaper and more personalized. We place significant effort and resources into ensuring the security and privacy of tax information and the integrity of our systems. However, it is equally important that you know about, and can minimize the risk of, certain information technology issues that could:
cause you significant inconvenience or costs
impact on your ability to deal with us electronically or online
result in the loss or damage of your electronic information, or
lead to your electronic records or tax details being misused.
If you manage your tax affairs using a computer system, or use the Internet or e-commerce systems to deal with the tax office, then you should be aware of spam email.
What is spam email?
Spam email is the electronic equivalent of junk mail. It is email that is not requested and usually not wanted. It is typically used to promote a particular product or service. The amount of spam being sent has increased significantly over the past few years. Some authorities claim that spam may account for up to 80% of all email in the world.
Spam email is generally annoying, and can slow down computer networks and the delivery of legitimate email, and increase your download costs.
Most significantly, spam email may be used to distribute computer viruses, spy ware or Trojans that could affect your computer or allow others to access your personal information. Related publications available are:
Delete all spam mail. Do not ask to be removed from a mailing list or follow hyperlinks to unsubscribe from further email. This just indicates your email address is active and you'll most likely receive even more unsolicited email.
Never purchase anything from a company that sends you spam email. This only supports the activity.
If you need to provide details to a particular website, review their privacy policies. Make sure you know what they will do with your email address and personal details. Do not provide your email address to any organisation you do not trust.
Set up a spam filter if your email program has this functionality. This can reduce spam by marking, blocking or deleting spam email.
Spam from Australian companies or individuals can be reported to the Australian Communications Authority (ACA) which administers the Spam Act 2003.
Spam emails produce as much greenhouse gas emissions each year as 3.1million cars, according to new research. A study for computer protection company McAfee showed that globally, spam uses 33 billion kilowatt hours (KWh) a year – enough energy to power 2.4million homes.
The research also found that the UK was the joint fourth biggest emitter of CO2 from spam in the world, creating 50,000 tonnes of carbon dioxide a year. Greenhouse gases: Spam uses 33 billion kilowatt hours a year – enough energy to power 2.4million homes, claims the research. The Carbon Footprint of Spam study by researchers ICF said that nearly four-fifths of the energy use associated with the emails was in end-users deleting spam and searching for legitimate emails.
The report also claimed that spam filtering currently saved enough energy to reduce emissions equivalent to taking 13 million cars off the road.
Jeff Green, senior vice president of product development and McAfee Avert Labs, said: 'As the world faces the growing problem of climate change, this study highlights that spam has an immense financial, personal and environmental impact on businesses and individuals.
'Stopping spam at its source, as well as investing in state-of-the-art spam filtering technology, will save time and money and will pay dividends to the planet by reducing carbon emissions as well.'
Note: I liked this article and read it somewhere a month ago, so thought to share with you people.