Skype : Sorry, we couldn’t connect to skype

Recently in my laptop and i had an problem with skype. It shows following message,

Sorry, we couldn’t connect to skype

and here is the solution for this problem,

  • open internet explorer browser
  • click “tools” -> “internet options” (if you don’t see the menu bar, then right click near tab and check “menu bar”)
  • click “advance” then click “reset” button
  • save and close internet explorer.

that’s it, now completely quit from skype and start again, hope you can login now 🙂




PHP – generate random code

The following php function code will generate random code , you have to call the function name with length for the code 🙂

function generateRandomCode($length)
$chars = "234567890abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$i = 0;
$url = "";
while ($i <= $length) {
$url .= $chars{mt_rand(0,strlen($chars))};
return $url;

and to view the out put just call the function like this

echo generateRandomCode(16);

that’s it.

Multi-level CSS Menu

Use this css to generate multilevel css drop down menu.


.nav ul
list-style-type: none;
padding: 0px;
margin: 0px;

.nav li{ font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:normal; color:#bcbdc0; list-style:none; display:inline; float:left; padding-left:20px; }

.nav li a, .nav li a:link, .nav li a:visited {
margin: 0px;

.nav li a:hover, .nav li a:active {
text-decoration: none;
margin-top: 0px;

.nav li li a, .nav li li a:link, .nav li li a:visited {
width: 100px;
font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:normal; color:#bcbdc0;
float: none;
margin: 0px;
padding: 5px 7px 5px 7px;
border-bottom: 1px solid #0E3B62;
border-left: 1px solid #0E3B62;
border-right: 1px solid #0E3B62;

.nav li li a:hover, .nav li li a:active {
color: #FFFFFF;
margin: 0px;
padding: 5px 7px 5px 7px;

.nav li ul {
position: absolute;
left: -999em;
height: auto;
width: 170px;
margin: 0px;
padding: 0px;
z-index: 100;
margin: 0 0 0 -12px;

.nav li ul li{

float: left;
list-style: none;
background: none;
font-family:Georgia, “Times New Roman”, Times, serif;

.nav li li {

.nav li ul a {
width: 140px;

.nav li ul a:hover, .nav li ul a:active {

.nav li ul ul {
margin: -27px 0 0 104px;

.nav li:hover ul ul, .nav li:hover ul ul ul, .nav li.sfhover ul ul, .nav li.sfhover ul ul ul {
left: -999em;

.nav li:hover ul, .nav li li:hover ul, .nav li li li:hover ul, .nav li.sfhover ul, .nav li li.sfhover ul, .nav li li li.sfhover ul {
left: auto;

.nav li:hover, .nav li.sfhover {
position: static;

Permalinks with Custom Post Types

1 register_post_type('property', array(
2 'label' => __('Real Estate'),
3 'singular_label' => __('Property'),
4 'public' => true,
5 'show_ui' => true, // UI in admin panel
6 '_builtin' => false, // It's a custom post type, not built in!
7 '_edit_link' => 'post.php?post=%d',
8 'capability_type' => 'post',
9 'hierarchical' => false,
10 'rewrite' => array("slug" => "property"), // Permalinks format
11 'supports' => array('title','author')
12 ));

Here important is #10 and #6 for custom permalink setting.