Categories
Android

Android Material Design Best Practices in a Bottle

This post provides a compressed tl;dr of the Android Material Design guide with Android Devices in Mind. Raising Things We need to raise view elements, which is essentially giving a shadow and emphasis to elements. Make use of the elevation attribute. As a short guide: app bar: 2dp floating button: 6dp card: 2dp anything raised: […]

Categories
Android

Use Retrofit with a self-signed or unknown SSL certificate in Android

In this post I will highlight how to use Retrofit with a self-signed or unknown SSL certificate in Android First of all, this is hell in a cell. took me 8 hours to accomplish this from the point of a working Service/API Manager that uses the Retrofit Rest Client for android.   Android is Implicitly […]

Categories
PHP PHP 5

How to ace a PHP job test in South Africa

Initial Preparation First of all do a project in PHP that utilises the database. I am talking about pure PHP and not a framework. Remember to turn make sure you set the following configuration settings. display_errors = 1; error_reporting(E_ALL); You can always view the php documentation which is always of great help.  Get ready for […]

Categories
wordpress

Debug WordPress PHP Whitescreen of Death

This article highlights what you need to do to debug a WordPress Whitescreen of Death whether in the dashboard or frontend. Go to: wp-config.php Then change: define(‘WP_DEBUG’, false); To: define(‘WP_DEBUG’, true); Source: Tutsplus Fix WordPress White Screen of Death

Categories
css HTML5

Specificity: Why my CSS is being cancelled out even though it is loaded after other CSS?

Your answer is Specificity Specificity is a mechanism within the CSS cascade that aids conflict resolution Basically it determines preference of CSS styles, over and above the cascading nature of stylesheets Order of Precedence of Specificity: Type Specificity Inline Style Highest Highest Number of #id selectors Wins Highest number of class, attribute and pseudo selectors […]