Using Angular with Bootsrap

You may want to utilize some of Angular’s functions within a Bootstrap layout. Here is an example of a full page layout done in Angular

<div ng-controller="AccordionDemoCtrl">
  <script type="text/ng-template" id="group-template.html">
    <div class="panel-heading">
      <h4 class="panel-title" style="color:#fa39c3">
        <a href tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading">
          <span uib-accordion-header ng-class="{'text-muted': isDisabled}">
    <div class="panel-collapse collapse" uib-collapse="!isOpen">
      <div class="panel-body" style="text-align: right" ng-transclude></div>

    <button type="button" class="btn btn-default btn-sm" ng-click=" = !">Toggle last panel</button>
    <button type="button" class="btn btn-default btn-sm" ng-click="status.isFirstDisabled = ! status.isFirstDisabled">Enable / Disable first panel</button>

  <div class="checkbox">
      <input type="checkbox" ng-model="oneAtATime">
      Open only one at a time
  <uib-accordion close-others="oneAtATime">
    <div uib-accordion-group class="panel-default" heading="Static Header, initially expanded" is-open="status.isFirstOpen" is-disabled="status.isFirstDisabled">
      This content is straight in the template.
    <div uib-accordion-group class="panel-default" heading="{{group.title}}" ng-repeat="group in groups">
    <div uib-accordion-group class="panel-default" heading="Dynamic Body Content">
      <p>The body of the uib-accordion group grows to fit the contents</p>
      <button type="button" class="btn btn-default btn-sm" ng-click="addItem()">Add Item</button>
      <div ng-repeat="item in items">{{item}}</div>
    <div uib-accordion-group class="panel-default" heading="Custom template" template-url="group-template.html">
    <div uib-accordion-group class="panel-default" is-open="status.isCustomHeaderOpen" template-url="group-template.html">
        Custom template with custom header template <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down': status.isCustomHeaderOpen, 'glyphicon-chevron-right': !status.isCustomHeaderOpen}"></i>
    <div uib-accordion-group class="panel-danger" heading="Delete account">
      <p>Please, to delete your account, click the button below</p>
      <button class="btn btn-danger">Delete</button>
    <div uib-accordion-group class="panel-default" is-open="">
        I can have markup, too! <i class="pull-right glyphicon" ng-class="{'glyphicon-chevron-down':, 'glyphicon-chevron-right': !}"></i>
      This is just some content to illustrate fancy headings.

Set a Google Timer Countdown

You know how whenever you need a 1 minute timer it takes at least 2 minutes to set a timer on your phone or watch?

Google has something for that.

Say you need to leave for work in 13 minutes? Just go to Google and enter “13 minute timer” and Google will set a timer. Click here for 13 minute Google timer

You can have it make a sound when it finishes or just keep things quiet. You can also send the timer over to any Android device or watch.

Times up…

google timer

Plesk Login Gives You a “502 Bad Gateway” Nginx Error

Posted January 6, 2016
by Seth Harden

Plesk isn’t quite sure the cause of this error but it seems to possibly be linked to exceeding your virtual disk space quota.

Here’s a fix that has worked for me.

Access your server via SSH.

Then you will need to edit the following file /etc/sw-cp-server/config

I typically use vi editor to edit files inside of SSH

So the command will be vi

Then scroll down till you find:

fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
Use the r button to write over 16 and 32 till you have:

fastcgi_buffers 32 32k;
fastcgi_buffer_size 64k;
Then press shift+:
Then type in wq! which will save the file and quit vi editor

Next, restart the following services:

/etc/init.d/sw-cp-server restart
/etc/init.d/sw-engine restart
You might get an error when restarting sw-engine about exceeding your disk quota. If so check out this article I wrote on cleaning off large files off your server:

That should solve your issue.