Code Is Poetry

Life is Binary

Posts

Wamp phpmyadmin access forbidden problem fix

You need to change the following in this file - c:\wamp\alias\phpmyadmin.conf (according to your phpmyadmin version name) <Directory "d:/wamp/apps/phpmyadmin4.1.14/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Require all granted php_admin_value upload_max_filesize 128M php_admin_value post_max_size 128M php_admin_value max_execution_time 360 php_admin_value max_input_time 360</Directory>

Read more

jQuery animated swap div content on hover effect

jQuery animated swap div content on hover effecthttp://www.robertkuzma.com/2011/01/jquery-animated-swap-div-content-on-hover-effect/http://spoonfedproject.com/jquery/jquery-image-slide-on-hover-effect/ jQuery ContentHover Pluginhttp://www.backslash.gr/demos/contenthover-jquery-plugin/#demo2 jQuery:$(function(){    $("#vertical div.wrap").hover(function(){        $(this).stop().animate({top:"-130px"},{queue:false,duration:200}); ...

Read more

Bootstrap 3 - Carousel - Right and left arrows align with image

Bootstrap 3 - Carousel - Right and left arrows align with imagehtml:  <div id="myCarousel" class="carousel slide" data-keyboard="true" data-pause="hover" data-ride="carousel" data-interval="3000"> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="1" class="active"></li> </ol> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="http://placehold.it/400x100" class="img-responsive...

Read more

bootstrap3 tabs with auto sliding

html: <div class="container"> <div class="col-md-12"> <h3 class="mor-panel-title">Discover how Digity can help your business:</h3> <div class="tabbable-custom"> <ul class="nav nav-tabs nav-justified"> <li class="active"><a data-toggle="tab" href="#tab_12_1" aria-expanded="true"><img style="padding-right: 3px;" width="21" height="23" alt="Support"...

Read more

gmail like top notification styling with css

gmail like top notification stylingCss:.notify-outer { left: 0; top: 0; margin: 0; font-family: arial, sans-serif; font-weight: bold; z-index: 8; position: fixed; text-align: center; width: 100%; } .notify-msg-box { position: relative; display: inline-block; /* visibility: hidden; */ border-radius:8px; padding: 6px 10px; background-color: #f9edbe; border: 1px solid #f0c36d; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); top: 2px;}html markup<div class="notify-outer "> <div...

Read more

What is the output of the following code?

class Bar { private $a = 'b'; public $c = 'd'; } $x = (array) new Bar(); echo array_key_exists('a', $x) ? 'true' : 'false'; Converting to array (Collected from php.net link) For any of the types: integer, float, string, boolean and resource, converting a value to an array results in an array with a single element with index zero and the value of the scalar which was converted. In other words, (array)$scalarValue is exactly the same as array($scalarValue). If an object is converted to an...

Read more