Wednesday, March 27, 2013

Hanling "Fatal error: Maximum execution time of 30 seconds exceeded" in PhpMyadmin

Phpmyadmin caches pages and if one encounter the "Fatal error: Maximum execution time of 30 seconds exceeded" on a page, that page will be shown every time they click on that url. Apache restart or quitting all services and shutting down wamp or xamp won't solve the issue.
The solution
  1. Open that link in a new tab.(You will see the page with the error)
  2. Change the token value in the navigation textfield. You will see something like token=8318feae751e3db846d6a703cf6bc757  change just one of the token characters example 8318feae751e3db846d6a703cf6bc757 changes to 8318feae751e3db846d6a703cf6bc758
  3. Press the enter key
With this done you can get access to the page and do your stuff.

Sunday, February 3, 2013

The extinction of syntax errors.

IDEs have done a great deal in making syntax errors in applications a thing of the past. Unless someone has got the time to code in non-syntax error highlighting editors, they will encounter syntax errors only when they are typing codes, not when the application build is complete.
21st century coders think of application logic so whenever they have a bug to deal with, it is more of a logical error.
IDEs like the OutSystems Agile Platform Studio http://www.outsystems.com/ take application logic to another level by letting the developer create application logic flow as flowcharts. No coding required.


Monday, January 28, 2013

Write Once, Run Anywhere Mobile Apps

Thinking of developing apps for iPhone and getting stuck because of Apple's buy-a-Mac-before-you-can-develop-for-our-iDevices policy? Relax. Enter codenameone . You write your mobile application in Java and deploy to iPhone/iPad, Android, Blackberry, Windows Phone and J2ME.
What is the catch here. True native applications with lightning speed performance not HTML5 apps. Check out these links to see for yourself why facebook dumped their HTML5 apps for Android and iPhone and went back to native
Facebook doubles iPhone app speed by dumping HTML5 for native code
Facebook Android app drops HTML5 and rolls out rebuilt native app
Codename Designer lets developers create their GUIs faster. Coding logic of the the apps is truly fun. The coding style takes the pain in coding out for developers to write apps with the minimum lines of codes possible.
Have an mobile app idea? Just use Codenameone to develop it because it rocks.

Tuesday, February 14, 2012

Handling PHP Warning: Cannot modify header information - headers already sent

This can be a nightmare for a developer if they want things done quick. It is caused when a page/file which has already been requested get requested (require_once, require, include) again in the same script.
At times a developer need to get the thing to work at all costs and the only way to achieve is code hack. Simply tell PHP to keep its warning off just before the include or require statement and its warning on after it.
For instance I am requiring a file named cannotmodiy.php and the error occurs. The solution is
<?php

error_reporting(0);
require_once 'cannotmodify.php';
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
// other codes continue

?>
So you tell php, hey! I know what I am doing. Keep your mouth shut. Then after that you tell php to speak of any errors it sees. As simple as that.



Monday, October 10, 2011

Codeless Development

Most programmers never welcomed the very idea of clicking to get their jobs done. Some still hold on tight to the opinion that real programmers don't click, they code. Those who clicked were deemed not to be real programmers.
Technology has evolved and most programmers are left with no other option than to change to adapt to current trend of software engineering practices-codeless development.
Microsoft developers were deemed as lazy folks since almost 95% - my prediction - of the job is done for them when they click. Other companies had to look smart to attract developers with the clicking-to-develop methodology. From NetBeans to Eclipse to Oracle JDeveloper Studio to Qt ... and the list goes endless, everyone is empowering programmers to go codeless. I have been telling other developers who have prejudice against codeless software development that they will phase out.
I got this from  a three times champion developer from a codeless training workshop - forgotten whether that guy is a champion java developer or nokia developer - that last years nokia developer challenge was won by designers who spent six weeks in bringing out their application. Other started for months stressing their bones out. At the end of the day the clickers won the game.
Come on, if doctors use sophisticated technology to treat their patients, it doesn't mean they don't know doctoring. As developers, we are at the heart of empowering others to work smarter. We will be despecable folks if we live a chemotherapic coding lifestyle by working super slow with old, archaic and unproductive methods.
Codeless all the way!

Tuesday, September 27, 2011

Why Computing Professionals should not hate Microsoft

Most computing professionals start with Windows OS and when they feel geeky stop using the OS altogether. Web developers hate IE because it punishes them every now and then. They wish IE does not exist.
One should not hate any technology because there are flaws in their product. There is nothing like a perfect system. Humans are never perfect so one should not expect perfection from their products.
Being trained to think positive, I always look at the positive side of any technology and use it to my advantage.
Guess what, Microsoft products have been saving me lots of time in whichever activity I am performing. I know when to use them to achieve my goals. All that matters is the work gets done not how one stressed their DNAs out to get the work done. I always try to get other professionals to know how I cheat with Microsoft products to obtain quick results but they hold so huge a prejudice against Microsoft that they always turn the offer down. Do I care, they should continue stressing their DNAs out. No one will appreciate a work done without crazy deadlines met. Deadlines matter most in projects.
Looking at the positive side of things is always the course of wisdom which empowers one to throw away prejudice they hold against anything they see. Microsoft always saves my day.

Wednesday, August 10, 2011

Working Smarter

We are in a fast-paced world where everything depends on working with speed. That is the main reason why IDEs like NetBeans is one of my favorite when I am working on Java or PHP projects. One developer I know run away from an IDE which stresses developers up before they can get things done. He said everything in there required configuring this and that.
On the contrary,  everything in NetBeans is about automated tasks. That guy is mad about NetBeans and says he wonders which IDE can attract him.
I think the issue of IDE preference is all about what someone has trained themselves to love using. But trust me on this: some are easier to use than others and it depends on the task one is performing. I jump form one IDE to another to work smarter based on the task I have at hand.
One should explore and know what to use when the need arises. And if one becomes a seasoned IDE user like me they will not hate any IDE because it has stressed them in one way or the other.