Decrease Window Border Size on Windows

Posted Posted in Windows

Open regedit. Goto HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics Set the values of BorderWidth and PaddedBorderWidth to 0 ref:  

Mysql dump encoding errors

Posted Posted in PHP

If you get some errors like ’ instead of apostrophe try the following   $contents = mb_convert_encoding( file_get_contents( ‘FILEPATH_OF_PROBLEMATIC_FILE’ ), “HTML-ENTITIES”, “UTF-8” ); file_put_contents(‘FILEPATH_OF_PROBLEMATIC_FILE–FIXED’, $contents);

Vertical align center

Posted Posted in CSS

If you want to align a div vertically center and you don’t know its height use the below code: .element { position: relative; top: 50%; […]

Pulse animation

Posted Posted in CSS

Create a circle and animate it forever! .cirlce { border: 1px solid #777; border-radius: 100%; height: 30px; width: 30px; background-color: #eee; animation: pulse 1s ease-out; […]


Posted Posted in PHP

Use the below function for small tests 🙂 /** * Print multiple arrays in a pretty way and die() * * @param mixed * @return […]

VideoJS with Youtube

Posted Posted in Video

Videojs with VideoJS Youtube Add CSS and JS resources <link href=”” rel=”stylesheet”> <script src=””></script> <script src=””></script> Then add your video. <video id=”vide-01″ class=”video-js vjs-default-skin” controls […]