A little something about everything

internet marketing and website development made simple..

How to generate a self signed PEM file on windows using IIS.

First if you have not already install the IIS role on your windows system.

Open IIS and choose the top level folder(your server) then choose Server Certificates

Now choose Create Self Signed Certificate from the far right

friendly name should be the DNS name of the device you need to create the pem file for, then choose ok.

Now open the certificate manager on your system, to do this run mmc

File > Add/Remove snap-in

Choose Certificates > Add > Computer account > Next > Local computer > Finish > OK

Now expand the certificates folder you create the cert in, by default this is Personal > Certificates.

right click on the certificate you created and choose all tasks > export > next > No, > next > Base-64 > next > 

pick a file name

filename.cer

Now, you can rename the .cer file to .pem and that's it you're done.

Vertical alignment of a menu using pure css

Many methods for this are workarounds or hacks that break other elements or don't work on some browsers. However, you can do this quite simply using flex.

For example:

html

<body>
 <div id="menubox">
  <ul id="menu">
   <li>menu item 1</li>
   <li>menu item 2</li>
   <li>menu item 3</li>
  </ul>
 </div>
</body>

css

#menubox {
 position:absolute;
 display:flex;
 flex-direction: column;
 width:15rem;
 height:100%;
}
#menu {
 list-style:none;
 margin: auto 0;
}

 

Unable to access UNC server address from remote location | Logon failure: the user has not been granted the requested logon type at this computer.

This can be one of the most frustrating errors because your UNC path may work from some computers but not others. If you are receiving this error the following steps should solve the issue.

Go to Control Panel

  • change the view by to small icons
  • select "User Accounts"
  • select "Manage your credentials"
  • select "Windows Credentials"
  • then "Add a Windows Credential"

 

Now enter your UNC server and share path for example: \\UNCServer\SharedFolder 

Username and password, then click OK.

Now you should be able to access your UNC share from the windows explorer shell.

Staggered Animation in CSS for Slideshow

Concept:

Staggered animation to create a slideshow from pure CSS and HTML5

Demo

The CSS:

div {
  width: 100px;
  height: 100px;
  background: red;
  position: relative;
  -webkit-animation: mymove 5s infinite; /* Safari 4.0 - 8.0 */
  -webkit-animation-delay: 2s; /* Safari 4.0 - 8.0 */
  animation: mymove 5s infinite;
  animation-delay: 2s;
}
div#two {
	animation: mymove 5s infinite;
  animation-delay: 5s;
}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes mymove {
  from {left: 0px;}
  to {left: 200px;}
}

@keyframes mymove {
  from {left: 0px;}
  to {left: 200px;}
}

And the HTML:

<div id="one"></div>
<div id="two"></div>