Magento How to debug blank white screen

This is how I got it corrected(Hope will help you guys): Use the following code in your index.php file ini_set(‘error_reporting’, E_ERROR); register_shutdown_function(“fatal_handler”); function fatal_handler() { $error = error_get_last(); echo(“<pre>”); print_r($error); } In my case it tolde me that error/503.php was unavailable. 3.The issue was with testimonial extension I used(http://www.magentocommerce.com/magento-connect/magebuzz-free-testimonial.html) I deleted the testimonial.xml file in … Read more

Determining if a form is completely off screen

Check with this function if Form is fully on screen: public bool IsOnScreen( Form form ) { Screen[] screens = Screen.AllScreens; foreach( Screen screen in screens ) { Rectangle formRectangle = new Rectangle( form.Left, form.Top, form.Width, form.Height ); if( screen.WorkingArea.Contains( formRectangle ) ) { return true; } } return false; } Checking only top left … Read more

How to support different screen size in android

For Different screen size, The following is a list of resource directories in an application that provides different layout designs for different screen sizes and different bitmap drawables for small, medium, high, and extra high density screens. res/layout/my_layout.xml // layout for normal screen size (“default”) res/layout-small/my_layout.xml // layout for small screen size res/layout-large/my_layout.xml // layout … Read more

Is there a way to determine android physical screen height in cm or inches?

Use the following: DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); double x = Math.pow(mWidthPixels/dm.xdpi,2); double y = Math.pow(mHeightPixels/dm.ydpi,2); double screenInches = Math.sqrt(x+y); Log.d(“debug”,”Screen inches : ” + screenInches); When mWidthPixels and mHeightPixels are taken from below code private void setRealDeviceSizeInPixels() { WindowManager windowManager = getWindowManager(); Display display = windowManager.getDefaultDisplay(); DisplayMetrics displayMetrics = new DisplayMetrics(); display.getMetrics(displayMetrics); // … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)