问:
P2 repositories aggregator
we have several internal p2 repositories. Each repository has many versions of different features. We need to have an external update site for our clients. We would like to aggregate only specific versions of specific features. Would is a good way/tool to "aggregate" them?

For example we have a p2 repository repo1 with feature feature1 with versions 1.0.0, 2.0.0, 3.0.0 and another p2 repository repo2 with feature feature2 with versions 1.0.0 and 2.0.0.

We would like to aggregate versions 1.0.0 and 3.0.0 of feature1 and version 2.0.0 of feature2:

```<code>feature1
  1.0.0
  3.0.0
feature2
  2.0.0
</code>```

Currently we are looking at b3 and Nexus Pro. But maybe there is something better?

b3 allows only aggregating range of features and not specific versions.

Nexus Pro is more like proxy or "magic box". We want to have a separate physical copy (mirrored one) of p2 repository.

Any suggestions?

答:
p2.mirror can aggregate specified features and create a p2 repository. It is possible to configure it to download only required bundles too.

Here is an example which aggregates two versions of a feature:

```<code><p2.mirror>
  <repository location="${repositoryPath}" name="My External p2 Repository" append="false" />
  <source>
    <repository location="http://repository:8081/p2/project1" />
    <repository location="http://download.eclipse.org/eclipse/updates/3.6" />
    <repository location="http://repository:8081/p2/project2" />
  </source>
  <iu id="dk.sorokin.maksim.feature.feature.group" version="0.0.5.201012071808" />
  <iu id="dk.sorokin.maksim.feature.feature.group" version="2.0.0.201012071540" />
  <slicingoptions followStrict="true" />
</p2.mirror>
</code>```

Moreover, afterwards it is possible to run a eclipse.publish.featuresAndBundles task to categorize created repository.

Title: P2 repositories aggregator

Body:
we have several internal p2 repositories. Each repository has many versions of different features. We need to have an external update site for our clients. We would like to aggregate only specific versions of specific features. Would is a good way/tool to "aggregate" them?

For example we have a p2 repository repo1 with feature feature1 with versions 1.0.0, 2.0.0, 3.0.0 and another p2 repository repo2 with feature feature2 with versions 1.0.0 and 2.0.0.

We would like to aggregate versions 1.0.0 and 3.0.0 of feature1 and version 2.0.0 of feature2:

feature1
  1.0.0
  3.0.0
feature2
  2.0.0

Currently we are looking at b3 and Nexus Pro. But maybe there is something better?

b3 allows only aggregating range of features and not specific versions.

Nexus Pro is more like proxy or "magic box". We want to have a separate physical copy (mirrored one) of p2 repository.

Any suggestions?

Body:
p2.mirror can aggregate specified features and create a p2 repository. It is possible to configure it to download only required bundles too.

Here is an example which aggregates two versions of a feature:

<p2.mirror>
  <repository location="${repositoryPath}" name="My External p2 Repository" append="false" />
  <source>
    <repository location="http://repository:8081/p2/project1" />
    <repository location="http://download.eclipse.org/eclipse/updates/3.6" />
    <repository location="http://repository:8081/p2/project2" />
  </source>
  <iu id="dk.sorokin.maksim.feature.feature.group" version="0.0.5.201012071808" />
  <iu id="dk.sorokin.maksim.feature.feature.group" version="2.0.0.201012071540" />
  <slicingoptions followStrict="true" />
</p2.mirror>

Moreover, afterwards it is possible to run a eclipse.publish.featuresAndBundles task to categorize created repository.


来源: stackexchange

问:
VueJS with FullCalendar: load fullCalendar ONLY after linking scripts in index.html
I want to load fullCalendar into my Vue component but I get the error "fullCalendar is not a function". It seems as if all the scripts that I load in my index.html file are loaded after the Vue component is loaded

In my index.html file I have loaded the moment.min.js, jquery.min.js, and fullcalendar.min.js.

In my Calendar.vue, I have

```<code>export default {

    mounted () {
        $('#calendar').fullCalendar({})
    }

}
</code>```

The $ would not be available unless I explicitly do "import $ from 'jquery'", which suggests that the scripts in index.html file do not load until after the component.

How do I solve this problem?

ADDITIONAL DETAILS: I am using Webpack with VueJS provided by https://github.com/vuejs-templates/webpack and am thus using the VueJS npm module, while the jquery, moment and fullcalendar libraries are all from CDN's linked from my index.html.

答: Only way working for me is to import $ from 'jquery' and require('fullcalendar')</p>

ContentLicense: CC BY-SA 3.0

Body:
I want to load fullCalendar into my Vue component but I get the error "fullCalendar is not a function". It seems as if all the scripts that I load in my index.html file are loaded after the Vue component is loaded

In my index.html file I have loaded the moment.min.js, jquery.min.js, and fullcalendar.min.js.

In my Calendar.vue, I have

export default {

    mounted () {
        $('#calendar').fullCalendar({})
    }

}

The $ would not be available unless I explicitly do "import $ from 'jquery'", which suggests that the scripts in index.html file do not load until after the component.

How do I solve this problem?

ADDITIONAL DETAILS: I am using Webpack with VueJS provided by https://github.com/vuejs-templates/webpack and am thus using the VueJS npm module, while the jquery, moment and fullcalendar libraries are all from CDN's linked from my index.html.


问:
Vue Components not showing/updating
I am working in Laravel 5.4, and Vue components are not showing/updating.
I start a new project and create a route /chat in web.php

This is chat.blade.php

```<code><!DOCTYPE html>
<html>
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="css/app.css">
</head>
<body>
<div id="app">
<example></example>
<chat></chat>
</div>

<script type="text/javascript">
window.Laravel = { csrfToken: '{{ csrf_token() }}' };
</script>
<script src="js/app.js"></script>
</body>
</html>
</code>```

This is app.js

```<code>require('./bootstrap');
Vue.component('example', require('./components/Example.vue'));
Vue.component('chat', require('./components/Chat.vue'));

const app = new Vue({
el: '#app'
});
</code>```

Example and Chat components are some basic templates, I am not passing any data, just plain text.

Chat.vue

```<code><template lang="html">
<div id="content">
    <h1>Messages</h1>
    <p>Message text</p>
    <small>Hiii</small>
</div>
 </template>

<script>
export default {
}
</script>
</code>```

When I run php artisan for the first time, everything works. I try to edit some text in Chat.vue, like change 'Hiiii' to Hello, when I reload the page it won't change, it just stays the same. I tried restarting the pc, running php artisan again, anything I could think of.
I tried putting some Vue code directly in chat.blade.php, and than it works. It looks like it is not detecting changes in app.js and components.
FYI, I even deleted the Example.vue component. It still appeared on the page.

答:
copy this code in app.blade.php : </p>

```<code>const app = new Vue({
el: '#app'
});
</code>```

Title: Vue Components not showing/updating

Body:
I am working in Laravel 5.4, and Vue components are not showing/updating.
I start a new project and create a route /chat in web.php

This is chat.blade.php

<!DOCTYPE html>

    <title></title>
    <link rel="stylesheet" type="text/css" href="css/app.css">

<example></example>
<chat></chat>

This is app.js

require('./bootstrap');
Vue.component('example', require('./components/Example.vue'));
Vue.component('chat', require('./components/Chat.vue'));

const app = new Vue({
el: '#app'
});

Example and Chat components are some basic templates, I am not passing any data, just plain text.

Chat.vue

<template lang="html">

Messages

Message text

    Hiii

 </template>

When I run php artisan for the first time, everything works. I try to edit some text in Chat.vue, like change 'Hiiii' to Hello, when I reload the page it won't change, it just stays the same. I tried restarting the pc, running php artisan again, anything I could think of.
I tried putting some Vue code directly in chat.blade.php, and than it works. It looks like it is not detecting changes in app.js and components.
FYI, I even deleted the Example.vue component. It still appeared on the page.

Body:
copy this code in app.blade.php :

const app = new Vue({
el: '#app'
});


问:
"puts" method in rails 3
I've been doing some development with rails 3 and I was wondering why calling the "puts" method doesn't output to standard out.

How do I get this back?

答: You can also use the standard ruby way by calling STDOUT << 'your output'. Method put is not a rails speciality, it comes with ruby. If you use rails, you can also rely on the logger object.

ContentLicense: CC BY-SA 2.5

Title: "puts" method in rails 3


问:
Inversed pyramids patterns in Python -two patterns same figure
Trying to build pyramids in Python, something similar to the following

```<code>****
***
**
*     *
     **
    ***
   ****
</code>```

Please note there are TWO stars on line 4.  Currently all I have is this:

```<code>for stars in range(4,0,-1):
    print("*"*stars)
</code>```

Which yields the following:

```<code>****
***
**
*
</code>```

Please advise.

答:
Super ugly, adopted from this answer Python: Print a triangular pattern of asterisks.

```<code>for stars in range(4,1,-1):
    print("*" * stars)

print("*     *")

for g in range (5,2,-1):
    print(g * ' ' + (7-g) * '*')
</code>```

Disclaimer: I don't yet know the technicalities why it works, but I would happily dissect it and explain why it does if needed! :)

Body:
Trying to build pyramids in Python, something similar to the following

****
***
**
*     *
     **
    ***
   ****

Please note there are TWO stars on line 4.  Currently all I have is this:

for stars in range(4,0,-1):
    print("*"*stars)

Which yields the following:

****
***
**
*

Please advise.

Body:
Super ugly, adopted from this answer Python: Print a triangular pattern of asterisks.

for stars in range(4,1,-1):
    print("*" * stars)

print("*     *")

for g in range (5,2,-1):
    print(g * ' ' + (7-g) * '*')

Disclaimer: I don't yet know the technicalities why it works, but I would happily dissect it and explain why it does if needed! :)


问:
Microsoft Bot Framework - Unit Test Fail
I'm currently attempting to write unit tests for my bot, however, the test always fail when attempting to get a response. I've created a mock test which inherits DialogTestBase.

```<code>[TestClass]
public class Tests : DialogTestBase
{
    [TestMethod]
    public async Task TestDialogTest()
    {
        await TestDialogFlow(new TestDialog());
    }

    private async Task TestDialogFlow(IDialog<object> echoDialog)
    {
        // arrange
        var toBot = DialogTestBase.MakeTestMessage();
        toBot.From.Id = Guid.NewGuid().ToString();
        toBot.Text = "Hi";

        Func<IDialog<object>> MakeRoot = () => echoDialog;

        using (new FiberTestBase.ResolveMoqAssembly(echoDialog))
        using (var container = Build(Options.MockConnectorFactory | Options.ScopedQueue, echoDialog))
        {
            IMessageActivity toUser = await GetResponse(container, MakeRoot, toBot);

            Assert.IsTrue(toUser.Text.StartsWith("Hello"));
        }
    }

    private async Task<IMessageActivity> GetResponse(IContainer container, Func<IDialog<object>> makeRoot, IMessageActivity toBot)
    {
        using (var scope = DialogModule.BeginLifetimeScope(container, toBot))
        {
            DialogModule_MakeRoot.Register(scope, makeRoot);

            // act: sending the message
            await Conversation.SendAsync(toBot, makeRoot);
            return scope.Resolve<Queue<IMessageActivity>>().Dequeue();
        }
    }
}
</code>```

The dialog i'm testing is:

```<code>[Serializable]
public class TestDialog : IDialog
{
    public async Task StartAsync(IDialogContext context)
    {
        context.Wait(ProcessMessage);
    }

    public async Task ProcessMessage(IDialogContext context, IAwaitable<IMessageActivity> argument)
    {
        await context.PostAsync("Hello. I'm a bot");
        await context.PostAsync("How can I help?");

        context.Wait(ProcessRequest);
    }

    public async Task ProcessRequest(IDialogContext context, IAwaitable<IMessageActivity> argument)
    {
        var request = await argument;

        await context.PostAsync($"You asked the following question: {request}");

        context.Done(true);
    }
}
</code>```

When I run the test I get the following error:

Autofac.Core.DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details. ---> Invalid URI: The format of the URI could not be determined. (See inner exception for details.) --->System.UriFormatException: Invalid URI: The format of the URI could not be determined.

The problem happens in the GetResponse method when we send the request. Any help would be greatly appreciated.

答:
The GetResponse method should actually call SendAsync using scope and toBot as parameters:

```<code>await Conversation.SendAsync(toBot, makeRoot);
</code>```

I tried the code you've shared and after making this change, the test passes.

Body:
I'm currently attempting to write unit tests for my bot, however, the test always fail when attempting to get a response. I've created a mock test which inherits DialogTestBase.

[TestClass]
public class Tests : DialogTestBase
{
    [TestMethod]
    public async Task TestDialogTest()
    {
        await TestDialogFlow(new TestDialog());
    }

    private async Task TestDialogFlow(IDialog<object> echoDialog)
    {
        // arrange
        var toBot = DialogTestBase.MakeTestMessage();
        toBot.From.Id = Guid.NewGuid().ToString();
        toBot.Text = "Hi";

        Func<IDialog<object>> MakeRoot = () => echoDialog;

        using (new FiberTestBase.ResolveMoqAssembly(echoDialog))
        using (var container = Build(Options.MockConnectorFactory | Options.ScopedQueue, echoDialog))
        {
            IMessageActivity toUser = await GetResponse(container, MakeRoot, toBot);

            Assert.IsTrue(toUser.Text.StartsWith("Hello"));
        }
    }

    private async Task<IMessageActivity> GetResponse(IContainer container, Func<IDialog<object>> makeRoot, IMessageActivity toBot)
    {
        using (var scope = DialogModule.BeginLifetimeScope(container, toBot))
        {
            DialogModule_MakeRoot.Register(scope, makeRoot);

            // act: sending the message
            await Conversation.SendAsync(toBot, makeRoot);
            return scope.Resolve<Queue<IMessageActivity>>().Dequeue();
        }
    }
}

The dialog i'm testing is:

[Serializable]
public class TestDialog : IDialog
{
    public async Task StartAsync(IDialogContext context)
    {
        context.Wait(ProcessMessage);
    }

    public async Task ProcessMessage(IDialogContext context, IAwaitable<IMessageActivity> argument)
    {
        await context.PostAsync("Hello. I'm a bot");
        await context.PostAsync("How can I help?");

        context.Wait(ProcessRequest);
    }

    public async Task ProcessRequest(IDialogContext context, IAwaitable<IMessageActivity> argument)
    {
        var request = await argument;

        await context.PostAsync($"You asked the following question: {request}");

        context.Done(true);
    }
}

When I run the test I get the following error:

Autofac.Core.DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details. ---> Invalid URI: The format of the URI could not be determined. (See inner exception for details.) --->System.UriFormatException: Invalid URI: The format of the URI could not be determined.

The problem happens in the GetResponse method when we send the request. Any help would be greatly appreciated.

Body:
The GetResponse method should actually call SendAsync using scope and toBot as parameters:

await Conversation.SendAsync(toBot, makeRoot);

I tried the code you've shared and after making this change, the test passes.


问:
What does cors middleware do?
Was looking at some node js code which created some web API's
and came across  this:

```<code>//CORS Middleware
app.use(function (req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "GET,HEAD,OPTIONS,POST,PUT");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With,
contentType,Content-Type, Accept, Authorization");
next();
});
</code>```

Have looked around on the internet and can't seem to understand what it does?
Can someone please explain the purpose of cors middleware

答:
This link may help.

https://learn.microsoft.com/en-us/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api

CORS allows you to configure the web API's security. It has to do with allowing other domains to make requests against your web API. For example, if you had your web API on one server and your web app on another you could configure CORS in your Web API to allow your web app to make calls to your web API.

Title: What does cors middleware do?

Body:
Was looking at some node js code which created some web API's
and came across  this:

//CORS Middleware
app.use(function (req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "GET,HEAD,OPTIONS,POST,PUT");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With,
contentType,Content-Type, Accept, Authorization");
next();
});

Have looked around on the internet and can't seem to understand what it does?
Can someone please explain the purpose of cors middleware


问:
Issue with css and bootstrap grids
I'm kind of new at bootstrap, and I'm trying to practice this, I have a web is very simple I know, but I'm having troubles whith this, because The grid like It doesn't center the this, I already put the css, I don't know If you can tell me what it's going on, Be pacient with me I'm learning :(
If you be my guide I'll be so grateful

```<code><html>

<head>
    <meta charset="utf8"/>
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Mountain at my Gates</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href='https://fonts.googleapis.com/css?family=Lato:400,300,700' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="css/normalize.css">
        <link rel="stylesheet" href="css/main.css">
        <link rel="stylesheet" href="css/bootstrap.min.css">
        <link rel="stylesheet" href="css/font-awesome.min.css">
        <link rel="stylesheet" href="css/owl.carousel.css">
        <link rel="stylesheet" href="css/responsive.css">
        <link rel="stylesheet" href="css/style.css">

</head>

<body>
<header class="main_menu_sec navbar navbar-default navbar-fixed-top">
    <div class="container">
    <div class="row">
            <div class="col-lg-3 col-md-3 col-sm-12">
            <div class="lft_hd">
                    <a href="index.html"><img src="img/logo.png" alt=""/></a>
            </div>
            </div>

            <div class="col-lg-9 col-md-9 col-sm-12">
            <div class="rgt_hd">
            <div class="main_menu">
                <nav id="nav_menu">
                    <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                    </button>

                    <div id="navbar">
                            <ul>
                                <li><a class="page-scroll" href="index.html">Home</a></li>
                                <li><a class="page-scroll" href="#about">About</a></li>
                                <li><a class="page-scroll" href="#countsec">we</a></li>
                                <li><a class="page-scroll" href="#team">Team</a></li>
                                <li><a class="page-scroll" href="#contact">Contact Us</a></li>
                            </ul>
                        </div>
                </nav>
            </div>
            </div>
            </div>
    </div>
    </div>
</header>

<section id="slider_section">
<div class="container">
    <div class="row">
        <div class="slider">
            <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
            <ol class="carousel-indicators">
                    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                  </ol>

                  <!--- wrapper -->
                  <div class="carousel-inner" role="listbox">

                    <div class="item active">
                        <div class="wrap_caption">
                                 <div class="caption_carousel">
                                    <h1>I see a Mountain at my gates </h1>
                                    <p>I see more and more each day</p>
                                </div>
                        </div>
                </div>

                <div class="item">
                        <div class="wrap_caption">
                          <div class="caption_carousel">
                            <h1>What I give, it takes away</h1>
                            <p>Whether I go or when I stay</p>
                          </div>
                        </div>
                    </div>

                    <div class="item">
                        <div class="wrap_caption">
                          <div class="caption_carousel">
                            <h1>I see a mountain in my way</h1>
                            <p>It's looming larger by the day</p>
                          </div>
                        </div>
                    </div>

        </div>

        <a class="left left_crousel_btn" href="#carousel-example-generic" role="button" data-slide="prev">
                    <i class="fa fa-angle-left"></i>
                    <span class="sr-only">Previous</span>
                  </a>
                  <a class="right right_crousel_btn" href="#carousel-example-generic" role="button" data-slide="next">
                    <i class="fa fa-angle-right"></i>
                    <span class="sr-only">Next</span>
                  </a>

    </div>

</div>
</div>
</div>
</section>

<section id="about">
<div class="container">
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
                <div class="title_sec">
                    <h1>ABOUT</h1>
                    <h2>Mountain at my gates</h2>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
                <div class="abt">
                    <p>I see it more and more each day What I give, it takes away Whether I go or when I stay </p>
                </div>
            </div>
        </div>
    </div>
</section>

<section id="countsec">
        <div class="container">
            <div class="row">

                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">

                    <div class="count">
                    <i class="fa fa-user"></i>
                    <h2 class="counter">1994</h2>
                    <h4>I see a Mountain at my gates</h4>
                    </div>
                </div>

                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <div class="count">
                        <i class="fa fa-desktop"></i>
                        <h2 class="counter">21</h2>
                        <h4>I see it more and more each day</h4>
                        </div>
                </div>

                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="count">
                        <i class="fa fa-ticket"></i>
                        <h2 class="counter">02</h2>
                        <h4>It takes away </h4>
                    </div>
                </div>

                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="count">
                        <i class="fa fa-clock-o"></i>
                        <h2 class="counter">05</h2>
                        <h4>My mountain</h4>
                    </div>
                </div>

            </div>
        </div>

</section>

<section id="serv">
    <div class="container">
        <div class="row">

            <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
                <div class="title_sec">
                    <h1>Mountain at my gates</h1>
                    <h2>I see it more and more each day</h2>
                </div>
            </div>

            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                <div class="service">
                    <i class="fa fa-globe"></i>
                    <h2>web Development</h2>
                    <div class="service_hoverly">
                        <i class="fa fa-globe"></i>
                        <h2>web Development</h2>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas  , voluptate aspernatur!</p>
                    </div>
                </div>
            </div>

            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                <div class="service">
                    <i class="fa fa-paper-plane"></i>
                    <h2>E-mail marketing</h2>
                    <div class="service_hoverly">
                        <i class="fa fa-paper-plane"></i>
                        <h2>E-mail marketing</h2>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas  , voluptate aspernatur!</p>
                    </div>
                </div>
            </div>

            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                <div class="service">
                    <i class="fa fa-wordpress"></i>
                    <h2>WordPress</h2>
                    <div class="service_hoverly">
                        <i class="fa fa-wordpress"></i>
                        <h2>WordPress</h2>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas  , voluptate aspernatur!</p>
                    </div>
                </div>
            </div>

            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                <div class="service">
                    <i class="fa fa-paint-brush"></i>
                    <h2>Graphic Design</h2>
                    <div class="service_hoverly">
                        <i class="fa fa-paint-brush"></i>
                        <h2>Graphic Design</h2>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas  , voluptate aspernatur!</p>
                    </div>
                </div>
            </div>
    </div>
</section>

<section id="team">
    <div class="container">
        <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
                <div class="title_sec">
                    <h1>Team</h1>
                    <h2>Mountain</h2>
                </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12">
                <div class="all_team">

                    <div class="sngl_team">
                        <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-1.png" alt=""/>
                        <h3> Jamie Catllahan <span>Designer</span></h3>
                        <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
                </div>
                    <div class="sngl_team">
                        <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-2.png" alt=""/>
                        <h3>Lisa Kudrow <span> Manager </span></h3>
                        <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
                    </div>
                    <div class="sngl_team">
                        <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-3.png" alt=""/>
                        <h3> John Clarance <span>   Senior Manager   </span></h3>
                        <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
                    </div>

        </div>
    </div>
</section>

<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
        <script src="js/vendor/jquery-1.11.2.min.js"></script>

<script src="js/isotope.pkgd.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/appear.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/waypoints.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/showHide.js"></script>
<script src="js/jquery.nicescroll.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/scrolling-nav.js"></script>
<script src="js/plugins.js"></script>

<script>
    jQuery(document).ready(function( $ ) {
        $('.counter').counterUp({
            delay: 10,
            time: 1000
        });
    });
</script>

</body>
</html>
</code>```

and my css

```<code>body {

background : #fff;
}

body p {
color : #666666;
font-family : "Lato", sans-serif;
font-size : 14px;
letter-spacing : 1px;
}
body h1, h2, h3, h4, h5, h6 {
color : #141414;
font-family : "Lato", sans-serif;
font-size : 18px;
text-transform : capitalize;
font-weight : 800;
text-transform : uppercase;
}

a:hover {
text-decoration : none;
}
.navbar {
padding : 10px 0;
transition : background 0.5s ease-in-out, padding 0.5s ease-in-out;
}

#nav_menu ul {
float : right;
list-style : none outside none;
margin : 0;
padding : 0;
position : relative;
}
#nav_menu ul a {
color : #ffffff;
display : block;
font-family : lato;
font-size : 14px;
font-weight : bold;
line-height : 32px;
padding : 25px 14px;
text-decoration : none;
text-transform : capitalize;
transition : all 0.4s 0s ease;
}
#nav_menu ul li {
float : left;
padding : 0;
position : relative;
}
#nav_menu ul li a:hover {
transition : all 0.4s 0s ease;
background : #0078BF;
}
#nav_menu ul ul {
background : none 0 0 repeat scroll #0078bf;
display : none;
left : 0;
padding : 0;
position : absolute;
top : 100%;
z-index : 9999;
padding : 10px;
}
#nav_menu ul ul li {
float : none;
width : 200px;
}
#nav_menu ul ul a {
line-height : 120%;
padding : 10px 29px;
}
#nav_menu ul ul li a:hover {
transition : all 0.4s 0s ease;
background : #333333;
}
#nav_menu ul ul ul {
top : 0;
left : 100%;
}
#nav_menu ul li:hover > ul {
display : block;
}
#nav_menu ul li a i {
margin-left : 6px;
}

.title_sec {
margin : 0 auto;
padding : 0 0 25px 0;
text-align : center;
}
.title_sec h2 {
color : #606060;
font-size : 12px;
text-transform : uppercase;
letter-spacing : 1px;
}

.wrap_caption {
padding : 190px 0;
}
.slider {
display : block;
text-align : center;
vertical-align : middle;
width : 100%;
}
#slider_sec {
background-image : url(".../img/fnd.jpg");
background-position : center center;
background-repeat : no-repeat;
background-size : 100% 100%;
height : 100%;
width : 100%;
}
.left_crousel_btn, .right_crousel_btn {
color : #fff;
height : 20px;
position : absolute;
text-align : center;
top : 50%;
width : 20px;
font-size : 25px;
font-weight : normal;
}
.caption_carousel h1 {
font-family : lato;
font-size : 60px;
text-transform : capitalize;
color : #fff;
}
.caption_carousel p {
font-family : lato;
font-size : 14px;
color : #f6f6f6;
border-top : 1px solid #fff;
border-bottom : 1px solid #fff;
display : inline;
line-height : 35px;
padding : 8px;
}
.caption_carousel {
display : table-cell;
text-align : center;
vertical-align : middle;
height : 100%;
width : 100%;
margin : 0 auto;
display : block;
}
.carousel-indicators li {
background-color : #363636;
border : none medium;
border-radius : 5px;
cursor : pointer;
display : inline-block;
height : 6px;
text-indent : 0;
width : 25px;
}
.carousel-indicators .active {
width : 25px;
height : 7px;
background-color : #00AFF0;
}

.wrap_caption {
padding : 190px 0;
}

#about {
padding : 70px 0;
}

#countsec {
background : none 0 0 repeat scroll #f0f0f0;
padding : 90px 0;
}
.count h2 {
color : #515050;
font-size : 48px;
}
.count h4 {
font-size : 18px;
color : #515050;
text-transform : uppercase;
font-weight : 300;
}
.count {
text-align : center;
}
.count i {
color : #515050;
float : left;
font-size : 35px;
margin-top : 10px;
}
#pr_sec {
padding : 70px 0;
}

#pr_sec {
padding : 70px 0;
}
.serv {

transition: all 1s ease 0s;
-moz-transition: all 1s ease 0s;
-webkit-transition: all 1s ease 0s;border :1px solid #eeeeee;
cursor : pointer;
text-align : center;
padding : 61px 0;

}
.service:hover .service_hoverly {
display : block;
}
.service > h2 {
color : #515050;
font-size : 14px;
font-weight : 400;
text-transform : uppercase;
}
.service_hoverly h2 {
color : #515050;
font-size : 14px;
font-weight : 400;
text-transform : uppercase;
margin : 0;
padding-bottom : 30px;
}
.service i {
font-size : 50px;
color : #03B0F0;
position : relative;
}
.service_hoverly {

transition: all 1s ease 0s;
    -moz-transition: all 1s ease 0s;
    -webkit-transition: all 1s ease 0s;border :1px solid #03B0F0;
display : none;
padding : 25px 5px;
position : absolute;
top : 0;
background : #fff;
}
.service_hoverly i {
background : none 0 0 repeat scroll #fff;
font-size : 50px;
position : relative;
top : -50px;
}

#team {
padding : 70px 0;
}
.sngl_team h3 {
font-size : 14px;
text-transform : uppercase;
color : #333333;
}
.sngl_team {
text-align : center;
width : 100%;
}
.owl-item .sngl_team img {
margin : 0 auto;
text-align : center;
width : 130px;
}
.sngl_team span {
color : #00aff0;
font-family : lato;
font-size : 13px;
margin-left : 10px;
text-transform : uppercase;
}
.all_team .owl-controls .owl-prev i {
color : #3399ff;
font-size : 30px;
position : absolute;
top : 46%;
left : 0;
}
.all_team .owl-controls .owl-next i {
position : absolute;
top : 46%;
font-size : 30px;
color : #3399FF;
right : 0%;
}
.all_team .owl-controls .owl-dot {
background-color : #363636;
border : none medium;
border-radius : 5px;
cursor : pointer;
display : inline-block;
height : 6px;
text-indent : 0;
width : 25px;
margin-right : 5px;
}
.all_team .owl-controls .owl-dot.active {
background-color : #03B0F0;
}
.all_team .owl-controls {
display : inline-block;
width : 100%;
text-align : center;
}
</code>```

答:
Two places are not centered, I added a class and add it to the parent of the element you want to center:

```<code>.centered {
  text-align: center;
}
</code>```

Now the about text and the 4 grid below are centered.

body {
  background: #fff;
}

body p {
  color: #666666;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
}

body h1,
h2,
h3,
h4,
h5,
h6 {
  color: #141414;
  font-family: "Lato", sans-serif;
  font-size: 18px;
  text-transform: capitalize;
  font-weight: 800;
  text-transform: uppercase;
}

a:hover {
  text-decoration: none;
}

.navbar {
  padding: 10px 0;
  transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
}

#nav_menu ul {
  float: right;
  list-style: none outside none;
  margin: 0;
  padding: 0;
  position: relative;
}

#nav_menu ul a {
  color: #ffffff;
  display: block;
  font-family: lato;
  font-size: 14px;
  font-weight: bold;
  line-height: 32px;
  padding: 25px 14px;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.4s 0s ease;
}

#nav_menu ul li {
  float: left;
  padding: 0;
  position: relative;
}

#nav_menu ul li a:hover {
  transition: all 0.4s 0s ease;
  background: #0078BF;
}

#nav_menu ul ul {
  background: none 0 0 repeat scroll #0078bf;
  display: none;
  left: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  z-index: 9999;
  padding: 10px;
}

#nav_menu ul ul li {
  float: none;
  width: 200px;
}

#nav_menu ul ul a {
  line-height: 120%;
  padding: 10px 29px;
}

#nav_menu ul ul li a:hover {
  transition: all 0.4s 0s ease;
  background: #333333;
}

#nav_menu ul ul ul {
  top: 0;
  left: 100%;
}

#nav_menu ul li:hover>ul {
  display: block;
}

#nav_menu ul li a i {
  margin-left: 6px;
}

.title_sec {
  margin: 0 auto;
  padding: 0 0 25px 0;
  text-align: center;
}

.title_sec h2 {
  color: #606060;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wrap_caption {
  padding: 190px 0;
}

.slider {
  display: block;
  text-align: center;
  vertical-align: middle;
  width: 100%;
}

#slider_sec {
  background-image: url(".../img/fnd.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 100%;
  width: 100%;
}

.left_crousel_btn,
.right_crousel_btn {
  color: #fff;
  height: 20px;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 20px;
  font-size: 25px;
  font-weight: normal;
}

.caption_carousel h1 {
  font-family: lato;
  font-size: 60px;
  text-transform: capitalize;
  color: #fff;
}

.caption_carousel p {
  font-family: lato;
  font-size: 14px;
  color: #f6f6f6;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  display: inline;
  line-height: 35px;
  padding: 8px;
}

.caption_carousel {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.carousel-indicators li {
  background-color: #363636;
  border: none medium;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  height: 6px;
  text-indent: 0;
  width: 25px;
}

.carousel-indicators .active {
  width: 25px;
  height: 7px;
  background-color: #00AFF0;
}

.wrap_caption {
  padding: 190px 0;
}

#about {
  padding: 70px 0;
}

#countsec {
  background: none 0 0 repeat scroll #f0f0f0;
  padding: 90px 0;
}

.count h2 {
  color: #515050;
  font-size: 48px;
}

.count h4 {
  font-size: 18px;
  color: #515050;
  text-transform: uppercase;
  font-weight: 300;
}

.count {
  text-align: center;
}

.count i {
  color: #515050;
  float: left;
  font-size: 35px;
  margin-top: 10px;
}

#pr_sec {
  padding: 70px 0;
}

#pr_sec {
  padding: 70px 0;
}

.serv {
  transition: all 1s ease 0s;
  -moz-transition: all 1s ease 0s;
  -webkit-transition: all 1s ease 0s;
  border: 1px solid #eeeeee;
  cursor: pointer;
  text-align: center;
  padding: 61px 0;
}

.service:hover .service_hoverly {
  display: block;
}

.service>h2 {
  color: #515050;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.service_hoverly h2 {
  color: #515050;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  padding-bottom: 30px;
}

.service i {
  font-size: 50px;
  color: #03B0F0;
  position: relative;
}

.service_hoverly {
  transition: all 1s ease 0s;
  -moz-transition: all 1s ease 0s;
  -webkit-transition: all 1s ease 0s;
  border: 1px solid #03B0F0;
  display: none;
  padding: 25px 5px;
  position: absolute;
  top: 0;
  background: #fff;
}

.service_hoverly i {
  background: none 0 0 repeat scroll #fff;
  font-size: 50px;
  position: relative;
  top: -50px;
}

#team {
  padding: 70px 0;
}

.sngl_team h3 {
  font-size: 14px;
  text-transform: uppercase;
  color: #333333;
}

.sngl_team {
  text-align: center;
  width: 100%;
}

.owl-item .sngl_team img {
  margin: 0 auto;
  text-align: center;
  width: 130px;
}

.sngl_team span {
  color: #00aff0;
  font-family: lato;
  font-size: 13px;
  margin-left: 10px;
  text-transform: uppercase;
}

.all_team .owl-controls .owl-prev i {
  color: #3399ff;
  font-size: 30px;
  position: absolute;
  top: 46%;
  left: 0;
}

.all_team .owl-controls .owl-next i {
  position: absolute;
  top: 46%;
  font-size: 30px;
  color: #3399FF;
  right: 0%;
}

.all_team .owl-controls .owl-dot {
  background-color: #363636;
  border: none medium;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  height: 6px;
  text-indent: 0;
  width: 25px;
  margin-right: 5px;
}

.all_team .owl-controls .owl-dot.active {
  background-color: #03B0F0;
}

.all_team .owl-controls {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.centered {
  text-align: center;
}```
<pre class="snippet-code-html lang-html prettyprint-override"><code><link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<head>
  <meta charset="utf8" />
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <title>Mountain at my Gates</title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href='https://fonts.googleapis.com/css?family=Lato:400,300,700' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="css/main.css">
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <link rel="stylesheet" href="css/font-awesome.min.css">
  <link rel="stylesheet" href="css/owl.carousel.css">
  <link rel="stylesheet" href="css/responsive.css">
  <link rel="stylesheet" href="css/style.css">

</head>

<body>
  <header class="main_menu_sec navbar navbar-default navbar-fixed-top">
    <div class="container">
      <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-12">
          <div class="lft_hd">
            <img src="img/logo.png" alt="" />
          </div>
        </div>

        <div class="col-lg-9 col-md-9 col-sm-12">
          <div class="rgt_hd">
            <div class="main_menu">
              <nav id="nav_menu">
                <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                  </button>

                <div id="navbar">
                  <ul>
                    <li>Home</li>
                    <li>About</li>
                    <li>we</li>
                    <li>Team</li>
                    <li>Contact Us</li>
                  </ul>
                </div>
              </nav>
            </div>
          </div>
        </div>
      </div>
    </div>
  </header>

  <section id="slider_section">
    <div class="container">
      <div class="row">
        <div class="slider">
          <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
            <ol class="carousel-indicators">
              <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
              <li data-target="#carousel-example-generic" data-slide-to="1"></li>
              <li data-target="#carousel-example-generic" data-slide-to="2"></li>
            </ol>

            <!--- wrapper -->
            <div class="carousel-inner" role="listbox">

              <div class="item active">
                <div class="wrap_caption">
                  <div class="caption_carousel">
                    <h1>I see a Mountain at my gates </h1>
                    <p>I see more and more each day</p>
                  </div>
                </div>
              </div>

              <div class="item">
                <div class="wrap_caption">
                  <div class="caption_carousel">
                    <h1>What I give, it takes away</h1>
                    <p>Whether I go or when I stay</p>
                  </div>
                </div>
              </div>

              <div class="item">
                <div class="wrap_caption">
                  <div class="caption_carousel">
                    <h1>I see a mountain in my way</h1>
                    <p>It's looming larger by the day</p>
                  </div>
                </div>
              </div>

            </div>

              <i class="fa fa-angle-left"></i>
              <span class="sr-only">Previous</span>

              <i class="fa fa-angle-right"></i>
              <span class="sr-only">Next</span>

          </div>

        </div>
      </div>
    </div>
  </section>

  <section id="about">
    <div class="container">
      <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
          <div class="title_sec">
            <h1>ABOUT</h1>
            <h2>Mountain at my gates</h2>
          </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
          <div class="abt centered">
            <p>I see it more and more each day What I give, it takes away Whether I go or when I stay </p>
          </div>
        </div>
      </div>
    </div>
  </section>

  <section id="countsec">
    <div class="container">
      <div class="row">

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">

          <div class="count">
            <i class="fa fa-user"></i>
            <h2 class="counter">1994</h2>
            <h4>I see a Mountain at my gates</h4>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="count">
            <i class="fa fa-desktop"></i>
            <h2 class="counter">21</h2>
            <h4>I see it more and more each day</h4>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="count">
            <i class="fa fa-ticket"></i>
            <h2 class="counter">02</h2>
            <h4>It takes away </h4>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="count">
            <i class="fa fa-clock-o"></i>
            <h2 class="counter">05</h2>
            <h4>My mountain</h4>
          </div>
        </div>

      </div>
    </div>

  </section>

  <section id="serv">
    <div class="container">
      <div class="row">

        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
          <div class="title_sec">
            <h1>Mountain at my gates</h1>
            <h2>I see it more and more each day</h2>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="service centered">
            <i class="fa fa-globe"></i>
            <h2>web Development</h2>
            <div class="service_hoverly">
              <i class="fa fa-globe"></i>
              <h2>web Development</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas , voluptate aspernatur!</p>
            </div>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="service centered">
            <i class="fa fa-paper-plane"></i>
            <h2>E-mail marketing</h2>
            <div class="service_hoverly">
              <i class="fa fa-paper-plane"></i>
              <h2>E-mail marketing</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas , voluptate aspernatur!</p>
            </div>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="service centered">
            <i class="fa fa-wordpress"></i>
            <h2>WordPress</h2>
            <div class="service_hoverly">
              <i class="fa fa-wordpress"></i>
              <h2>WordPress</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas , voluptate aspernatur!</p>
            </div>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="service centered">
            <i class="fa fa-paint-brush"></i>
            <h2>Graphic Design</h2>
            <div class="service_hoverly">
              <i class="fa fa-paint-brush"></i>
              <h2>Graphic Design</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas , voluptate aspernatur!</p>
            </div>
          </div>
        </div>
      </div>
  </section>

  <section id="team">
    <div class="container">
      <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
          <div class="title_sec">
            <h1>Team</h1>
            <h2>Mountain</h2>
          </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12">
          <div class="all_team">

            <div class="sngl_team">
              <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-1.png" alt="" />
              <h3> Jamie Catllahan <span>Designer</span></h3>
              <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
            </div>
            <div class="sngl_team">
              <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-2.png" alt="" />
              <h3>Lisa Kudrow <span> Manager </span></h3>
              <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
            </div>
            <div class="sngl_team">
              <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-3.png" alt="" />
              <h3> John Clarance <span>   Senior Manager   </span></h3>
              <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
            </div>

          </div>
        </div>
  </section>

  <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  <script src="js/vendor/jquery-1.11.2.min.js"></script>

  <script src="js/isotope.pkgd.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/jquery-ui.js"></script>
  <script src="js/appear.js"></script>
  <script src="js/jquery.counterup.min.js"></script>
  <script src="js/waypoints.min.js"></script>
  <script src="js/owl.carousel.min.js"></script>
  <script src="js/showHide.js"></script>
  <script src="js/jquery.nicescroll.min.js"></script>
  <script src="js/jquery.easing.min.js"></script>
  <script src="js/scrolling-nav.js"></script>
  <script src="js/plugins.js"></script>

  <script>
    /*
    jQuery(document).ready(function($) {
      $('.counter').counterUp({
        delay: 10,
        time: 1000
      });
    });
    */
  </script>

</body>

</html></code>```

Title: Issue with css and bootstrap grids

Body:
I'm kind of new at bootstrap, and I'm trying to practice this, I have a web is very simple I know, but I'm having troubles whith this, because The grid like It doesn't center the this, I already put the css, I don't know If you can tell me what it's going on, Be pacient with me I'm learning :(
If you be my guide I'll be so grateful

    <meta charset="utf8"/>
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Mountain at my Gates</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href='https://fonts.googleapis.com/css?family=Lato:400,300,700' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="css/normalize.css">
        <link rel="stylesheet" href="css/main.css">
        <link rel="stylesheet" href="css/bootstrap.min.css">
        <link rel="stylesheet" href="css/font-awesome.min.css">
        <link rel="stylesheet" href="css/owl.carousel.css">
        <link rel="stylesheet" href="css/responsive.css">
        <link rel="stylesheet" href="css/style.css">

                    <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">

                    </button>

Home

About

we

Team

Contact Us

I see a Mountain at my gates

I see more and more each day

What I give, it takes away

Whether I go or when I stay

I see a mountain in my way

It's looming larger by the day

                    Previous

                    Next

ABOUT

Mountain at my gates

I see it more and more each day What I give, it takes away Whether I go or when I stay

1994

I see a Mountain at my gates

21

I see it more and more each day

02

It takes away

05

My mountain

Mountain at my gates

I see it more and more each day

web Development

web Development

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas  , voluptate aspernatur!

E-mail marketing

E-mail marketing

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas  , voluptate aspernatur!

WordPress

WordPress

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas  , voluptate aspernatur!

Graphic Design

Graphic Design

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas  , voluptate aspernatur!

Team

Mountain

 Jamie Catllahan Designer

Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant

Lisa Kudrow  Manager

Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant

 John Clarance    Senior Manager

Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant

and my css

body {

background : #fff;
}

body p {
color : #666666;
font-family : "Lato", sans-serif;
font-size : 14px;
letter-spacing : 1px;
}
body h1, h2, h3, h4, h5, h6 {
color : #141414;
font-family : "Lato", sans-serif;
font-size : 18px;
text-transform : capitalize;
font-weight : 800;
text-transform : uppercase;
}

a:hover {
text-decoration : none;
}
.navbar {
padding : 10px 0;
transition : background 0.5s ease-in-out, padding 0.5s ease-in-out;
}

#nav_menu ul {
float : right;
list-style : none outside none;
margin : 0;
padding : 0;
position : relative;
}
#nav_menu ul a {
color : #ffffff;
display : block;
font-family : lato;
font-size : 14px;
font-weight : bold;
line-height : 32px;
padding : 25px 14px;
text-decoration : none;
text-transform : capitalize;
transition : all 0.4s 0s ease;
}
#nav_menu ul li {
float : left;
padding : 0;
position : relative;
}
#nav_menu ul li a:hover {
transition : all 0.4s 0s ease;
background : #0078BF;
}
#nav_menu ul ul {
background : none 0 0 repeat scroll #0078bf;
display : none;
left : 0;
padding : 0;
position : absolute;
top : 100%;
z-index : 9999;
padding : 10px;
}
#nav_menu ul ul li {
float : none;
width : 200px;
}
#nav_menu ul ul a {
line-height : 120%;
padding : 10px 29px;
}
#nav_menu ul ul li a:hover {
transition : all 0.4s 0s ease;
background : #333333;
}
#nav_menu ul ul ul {
top : 0;
left : 100%;
}
#nav_menu ul li:hover > ul {
display : block;
}
#nav_menu ul li a i {
margin-left : 6px;
}

.title_sec {
margin : 0 auto;
padding : 0 0 25px 0;
text-align : center;
}
.title_sec h2 {
color : #606060;
font-size : 12px;
text-transform : uppercase;
letter-spacing : 1px;
}

.wrap_caption {
padding : 190px 0;
}
.slider {
display : block;
text-align : center;
vertical-align : middle;
width : 100%;
}
#slider_sec {
background-image : url(".../img/fnd.jpg");
background-position : center center;
background-repeat : no-repeat;
background-size : 100% 100%;
height : 100%;
width : 100%;
}
.left_crousel_btn, .right_crousel_btn {
color : #fff;
height : 20px;
position : absolute;
text-align : center;
top : 50%;
width : 20px;
font-size : 25px;
font-weight : normal;
}
.caption_carousel h1 {
font-family : lato;
font-size : 60px;
text-transform : capitalize;
color : #fff;
}
.caption_carousel p {
font-family : lato;
font-size : 14px;
color : #f6f6f6;
border-top : 1px solid #fff;
border-bottom : 1px solid #fff;
display : inline;
line-height : 35px;
padding : 8px;
}
.caption_carousel {
display : table-cell;
text-align : center;
vertical-align : middle;
height : 100%;
width : 100%;
margin : 0 auto;
display : block;
}
.carousel-indicators li {
background-color : #363636;
border : none medium;
border-radius : 5px;
cursor : pointer;
display : inline-block;
height : 6px;
text-indent : 0;
width : 25px;
}
.carousel-indicators .active {
width : 25px;
height : 7px;
background-color : #00AFF0;
}

.wrap_caption {
padding : 190px 0;
}

#about {
padding : 70px 0;
}

#countsec {
background : none 0 0 repeat scroll #f0f0f0;
padding : 90px 0;
}
.count h2 {
color : #515050;
font-size : 48px;
}
.count h4 {
font-size : 18px;
color : #515050;
text-transform : uppercase;
font-weight : 300;
}
.count {
text-align : center;
}
.count i {
color : #515050;
float : left;
font-size : 35px;
margin-top : 10px;
}
#pr_sec {
padding : 70px 0;
}

#pr_sec {
padding : 70px 0;
}
.serv {

transition: all 1s ease 0s;
-moz-transition: all 1s ease 0s;
-webkit-transition: all 1s ease 0s;border :1px solid #eeeeee;
cursor : pointer;
text-align : center;
padding : 61px 0;

}
.service:hover .service_hoverly {
display : block;
}
.service > h2 {
color : #515050;
font-size : 14px;
font-weight : 400;
text-transform : uppercase;
}
.service_hoverly h2 {
color : #515050;
font-size : 14px;
font-weight : 400;
text-transform : uppercase;
margin : 0;
padding-bottom : 30px;
}
.service i {
font-size : 50px;
color : #03B0F0;
position : relative;
}
.service_hoverly {

transition: all 1s ease 0s;
    -moz-transition: all 1s ease 0s;
    -webkit-transition: all 1s ease 0s;border :1px solid #03B0F0;
display : none;
padding : 25px 5px;
position : absolute;
top : 0;
background : #fff;
}
.service_hoverly i {
background : none 0 0 repeat scroll #fff;
font-size : 50px;
position : relative;
top : -50px;
}

#team {
padding : 70px 0;
}
.sngl_team h3 {
font-size : 14px;
text-transform : uppercase;
color : #333333;
}
.sngl_team {
text-align : center;
width : 100%;
}
.owl-item .sngl_team img {
margin : 0 auto;
text-align : center;
width : 130px;
}
.sngl_team span {
color : #00aff0;
font-family : lato;
font-size : 13px;
margin-left : 10px;
text-transform : uppercase;
}
.all_team .owl-controls .owl-prev i {
color : #3399ff;
font-size : 30px;
position : absolute;
top : 46%;
left : 0;
}
.all_team .owl-controls .owl-next i {
position : absolute;
top : 46%;
font-size : 30px;
color : #3399FF;
right : 0%;
}
.all_team .owl-controls .owl-dot {
background-color : #363636;
border : none medium;
border-radius : 5px;
cursor : pointer;
display : inline-block;
height : 6px;
text-indent : 0;
width : 25px;
margin-right : 5px;
}
.all_team .owl-controls .owl-dot.active {
background-color : #03B0F0;
}
.all_team .owl-controls {
display : inline-block;
width : 100%;
text-align : center;
}

Body:
Two places are not centered, I added a class and add it to the parent of the element you want to center:

.centered {
  text-align: center;
}

Now the about text and the 4 grid below are centered.

body {
  background: #fff;
}

body p {
  color: #666666;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
}

body h1,
h2,
h3,
h4,
h5,
h6 {
  color: #141414;
  font-family: "Lato", sans-serif;
  font-size: 18px;
  text-transform: capitalize;
  font-weight: 800;
  text-transform: uppercase;
}

a:hover {
  text-decoration: none;
}

.navbar {
  padding: 10px 0;
  transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
}

#nav_menu ul {
  float: right;
  list-style: none outside none;
  margin: 0;
  padding: 0;
  position: relative;
}

#nav_menu ul a {
  color: #ffffff;
  display: block;
  font-family: lato;
  font-size: 14px;
  font-weight: bold;
  line-height: 32px;
  padding: 25px 14px;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.4s 0s ease;
}

#nav_menu ul li {
  float: left;
  padding: 0;
  position: relative;
}

#nav_menu ul li a:hover {
  transition: all 0.4s 0s ease;
  background: #0078BF;
}

#nav_menu ul ul {
  background: none 0 0 repeat scroll #0078bf;
  display: none;
  left: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  z-index: 9999;
  padding: 10px;
}

#nav_menu ul ul li {
  float: none;
  width: 200px;
}

#nav_menu ul ul a {
  line-height: 120%;
  padding: 10px 29px;
}

#nav_menu ul ul li a:hover {
  transition: all 0.4s 0s ease;
  background: #333333;
}

#nav_menu ul ul ul {
  top: 0;
  left: 100%;
}

#nav_menu ul li:hover>ul {
  display: block;
}

#nav_menu ul li a i {
  margin-left: 6px;
}

.title_sec {
  margin: 0 auto;
  padding: 0 0 25px 0;
  text-align: center;
}

.title_sec h2 {
  color: #606060;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wrap_caption {
  padding: 190px 0;
}

.slider {
  display: block;
  text-align: center;
  vertical-align: middle;
  width: 100%;
}

#slider_sec {
  background-image: url(".../img/fnd.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 100%;
  width: 100%;
}

.left_crousel_btn,
.right_crousel_btn {
  color: #fff;
  height: 20px;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 20px;
  font-size: 25px;
  font-weight: normal;
}

.caption_carousel h1 {
  font-family: lato;
  font-size: 60px;
  text-transform: capitalize;
  color: #fff;
}

.caption_carousel p {
  font-family: lato;
  font-size: 14px;
  color: #f6f6f6;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  display: inline;
  line-height: 35px;
  padding: 8px;
}

.caption_carousel {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.carousel-indicators li {
  background-color: #363636;
  border: none medium;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  height: 6px;
  text-indent: 0;
  width: 25px;
}

.carousel-indicators .active {
  width: 25px;
  height: 7px;
  background-color: #00AFF0;
}

.wrap_caption {
  padding: 190px 0;
}

#about {
  padding: 70px 0;
}

#countsec {
  background: none 0 0 repeat scroll #f0f0f0;
  padding: 90px 0;
}

.count h2 {
  color: #515050;
  font-size: 48px;
}

.count h4 {
  font-size: 18px;
  color: #515050;
  text-transform: uppercase;
  font-weight: 300;
}

.count {
  text-align: center;
}

.count i {
  color: #515050;
  float: left;
  font-size: 35px;
  margin-top: 10px;
}

#pr_sec {
  padding: 70px 0;
}

#pr_sec {
  padding: 70px 0;
}

.serv {
  transition: all 1s ease 0s;
  -moz-transition: all 1s ease 0s;
  -webkit-transition: all 1s ease 0s;
  border: 1px solid #eeeeee;
  cursor: pointer;
  text-align: center;
  padding: 61px 0;
}

.service:hover .service_hoverly {
  display: block;
}

.service>h2 {
  color: #515050;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.service_hoverly h2 {
  color: #515050;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  padding-bottom: 30px;
}

.service i {
  font-size: 50px;
  color: #03B0F0;
  position: relative;
}

.service_hoverly {
  transition: all 1s ease 0s;
  -moz-transition: all 1s ease 0s;
  -webkit-transition: all 1s ease 0s;
  border: 1px solid #03B0F0;
  display: none;
  padding: 25px 5px;
  position: absolute;
  top: 0;
  background: #fff;
}

.service_hoverly i {
  background: none 0 0 repeat scroll #fff;
  font-size: 50px;
  position: relative;
  top: -50px;
}

#team {
  padding: 70px 0;
}

.sngl_team h3 {
  font-size: 14px;
  text-transform: uppercase;
  color: #333333;
}

.sngl_team {
  text-align: center;
  width: 100%;
}

.owl-item .sngl_team img {
  margin: 0 auto;
  text-align: center;
  width: 130px;
}

.sngl_team span {
  color: #00aff0;
  font-family: lato;
  font-size: 13px;
  margin-left: 10px;
  text-transform: uppercase;
}

.all_team .owl-controls .owl-prev i {
  color: #3399ff;
  font-size: 30px;
  position: absolute;
  top: 46%;
  left: 0;
}

.all_team .owl-controls .owl-next i {
  position: absolute;
  top: 46%;
  font-size: 30px;
  color: #3399FF;
  right: 0%;
}

.all_team .owl-controls .owl-dot {
  background-color: #363636;
  border: none medium;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  height: 6px;
  text-indent: 0;
  width: 25px;
  margin-right: 5px;
}

.all_team .owl-controls .owl-dot.active {
  background-color: #03B0F0;
}

.all_team .owl-controls {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.centered {
  text-align: center;
}

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<head>
  <meta charset="utf8" />
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <title>Mountain at my Gates</title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href='https://fonts.googleapis.com/css?family=Lato:400,300,700' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="css/normalize.css">
  <link rel="stylesheet" href="css/main.css">
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <link rel="stylesheet" href="css/font-awesome.min.css">
  <link rel="stylesheet" href="css/owl.carousel.css">
  <link rel="stylesheet" href="css/responsive.css">
  <link rel="stylesheet" href="css/style.css">

</head>

<body>
  <header class="main_menu_sec navbar navbar-default navbar-fixed-top">
    <div class="container">
      <div class="row">
        <div class="col-lg-3 col-md-3 col-sm-12">
          <div class="lft_hd">
            <a href="index.html"><img src="img/logo.png" alt="" /></a>
          </div>
        </div>

        <div class="col-lg-9 col-md-9 col-sm-12">
          <div class="rgt_hd">
            <div class="main_menu">
              <nav id="nav_menu">
                <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                  </button>

                <div id="navbar">
                  <ul>
                    <li><a class="page-scroll" href="index.html">Home</a></li>
                    <li><a class="page-scroll" href="#about">About</a></li>
                    <li><a class="page-scroll" href="#countsec">we</a></li>
                    <li><a class="page-scroll" href="#team">Team</a></li>
                    <li><a class="page-scroll" href="#contact">Contact Us</a></li>
                  </ul>
                </div>
              </nav>
            </div>
          </div>
        </div>
      </div>
    </div>
  </header>

  <section id="slider_section">
    <div class="container">
      <div class="row">
        <div class="slider">
          <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
            <ol class="carousel-indicators">
              <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
              <li data-target="#carousel-example-generic" data-slide-to="1"></li>
              <li data-target="#carousel-example-generic" data-slide-to="2"></li>
            </ol>

            <!--- wrapper -->
            <div class="carousel-inner" role="listbox">

              <div class="item active">
                <div class="wrap_caption">
                  <div class="caption_carousel">
                    <h1>I see a Mountain at my gates </h1>
                    <p>I see more and more each day</p>
                  </div>
                </div>
              </div>

              <div class="item">
                <div class="wrap_caption">
                  <div class="caption_carousel">
                    <h1>What I give, it takes away</h1>
                    <p>Whether I go or when I stay</p>
                  </div>
                </div>
              </div>

              <div class="item">
                <div class="wrap_caption">
                  <div class="caption_carousel">
                    <h1>I see a mountain in my way</h1>
                    <p>It's looming larger by the day</p>
                  </div>
                </div>
              </div>

            </div>

            <a class="left left_crousel_btn" href="#carousel-example-generic" role="button" data-slide="prev">
              <i class="fa fa-angle-left"></i>
              <span class="sr-only">Previous</span>
            </a>
            <a class="right right_crousel_btn" href="#carousel-example-generic" role="button" data-slide="next">
              <i class="fa fa-angle-right"></i>
              <span class="sr-only">Next</span>
            </a>

          </div>

        </div>
      </div>
    </div>
  </section>

  <section id="about">
    <div class="container">
      <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
          <div class="title_sec">
            <h1>ABOUT</h1>
            <h2>Mountain at my gates</h2>
          </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
          <div class="abt centered">
            <p>I see it more and more each day What I give, it takes away Whether I go or when I stay </p>
          </div>
        </div>
      </div>
    </div>
  </section>

  <section id="countsec">
    <div class="container">
      <div class="row">

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">

          <div class="count">
            <i class="fa fa-user"></i>
            <h2 class="counter">1994</h2>
            <h4>I see a Mountain at my gates</h4>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="count">
            <i class="fa fa-desktop"></i>
            <h2 class="counter">21</h2>
            <h4>I see it more and more each day</h4>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="count">
            <i class="fa fa-ticket"></i>
            <h2 class="counter">02</h2>
            <h4>It takes away </h4>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="count">
            <i class="fa fa-clock-o"></i>
            <h2 class="counter">05</h2>
            <h4>My mountain</h4>
          </div>
        </div>

      </div>
    </div>

  </section>

  <section id="serv">
    <div class="container">
      <div class="row">

        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
          <div class="title_sec">
            <h1>Mountain at my gates</h1>
            <h2>I see it more and more each day</h2>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="service centered">
            <i class="fa fa-globe"></i>
            <h2>web Development</h2>
            <div class="service_hoverly">
              <i class="fa fa-globe"></i>
              <h2>web Development</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas , voluptate aspernatur!</p>
            </div>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="service centered">
            <i class="fa fa-paper-plane"></i>
            <h2>E-mail marketing</h2>
            <div class="service_hoverly">
              <i class="fa fa-paper-plane"></i>
              <h2>E-mail marketing</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas , voluptate aspernatur!</p>
            </div>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="service centered">
            <i class="fa fa-wordpress"></i>
            <h2>WordPress</h2>
            <div class="service_hoverly">
              <i class="fa fa-wordpress"></i>
              <h2>WordPress</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas , voluptate aspernatur!</p>
            </div>
          </div>
        </div>

        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
          <div class="service centered">
            <i class="fa fa-paint-brush"></i>
            <h2>Graphic Design</h2>
            <div class="service_hoverly">
              <i class="fa fa-paint-brush"></i>
              <h2>Graphic Design</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore ab odio quas , voluptate aspernatur!</p>
            </div>
          </div>
        </div>
      </div>
  </section>

  <section id="team">
    <div class="container">
      <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12 ">
          <div class="title_sec">
            <h1>Team</h1>
            <h2>Mountain</h2>
          </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs12">
          <div class="all_team">

            <div class="sngl_team">
              <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-1.png" alt="" />
              <h3> Jamie Catllahan <span>Designer</span></h3>
              <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
            </div>
            <div class="sngl_team">
              <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-2.png" alt="" />
              <h3>Lisa Kudrow <span> Manager </span></h3>
              <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
            </div>
            <div class="sngl_team">
              <img src="http://wedesignthemes.com/themes/dt-mountcool/wp-content/uploads/2015/10/img-3.png" alt="" />
              <h3> John Clarance <span>   Senior Manager   </span></h3>
              <p>Lorem ipsum dolor sit amet, consecttur adipisicing elit. Laudant</p>
            </div>

          </div>
        </div>
  </section>

  <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  <script src="js/vendor/jquery-1.11.2.min.js"></script>

  <script src="js/isotope.pkgd.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/jquery-ui.js"></script>
  <script src="js/appear.js"></script>
  <script src="js/jquery.counterup.min.js"></script>
  <script src="js/waypoints.min.js"></script>
  <script src="js/owl.carousel.min.js"></script>
  <script src="js/showHide.js"></script>
  <script src="js/jquery.nicescroll.min.js"></script>
  <script src="js/jquery.easing.min.js"></script>
  <script src="js/scrolling-nav.js"></script>
  <script src="js/plugins.js"></script>

  <script>
    /*
    jQuery(document).ready(function($) {
      $('.counter').counterUp({
        delay: 10,
        time: 1000
      });
    });
    */
  </script>

</body>

</html>


问:
TypeError: Image data can not convert to float - using NcML arrays
I am attempting to run NDVI change analysis using NcML arrays I pulled off  http://www.auscover.org.au/purl/lpdaac-mosaic-mod13q1-v5 using xarray and opendap.

I have sliced the data I need and assigned them to before, during, and post fire variables.

Now when I try to show the three plots in the same figure I receive an error: 'Image data can not convert to float'. Have I missed something? I thought the arrays I was assigning were xml and not images?

Any advice would be appreciated because this report is due tomorrow.

```<code>import xarray as xr
import numpy as np
import pandas as pd

import matplotlib.pyplot as plt
import seaborn
%matplotlib inline
seaborn.set_style('dark')

NDVI_aggr_data_url = 'http://data.auscover.org.au/thredds/dodsC/auscover/lpdaac-aggregates/c5/v2-nc4/aust/MOD13Q1.005/MOD13Q1.aggregated.aust.005.normalised_difference_vegetation_index.ncml'

NDVI_aggr = xr.open_dataset(NDVI_aggr_data_url)
NDVI_aggr

lat_bounds = slice(-36.341, -36.645)
lon_bounds = slice(146.666, 147.133)

time_bounds = slice('2017-02-08', '2017-02-20')

beechworth_NDVI_post = NDVI_aggr.sel(
    latitude=lat_bounds, longitude=lon_bounds, time=time_bounds)
beechworth_NDVI_post

beechworth_NDVI_post.load()
plt.rcParams["figure.figsize"] = (12,10)

beechworth_NDVI_post.ndvi.plot.imshow(col='time', cmap='viridis')
plt.title('NDVI - 18 February 2017', y=1.1)
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.savefig("2017_NDVI_test1.png", dpi=100)

post = beechworth_NDVI_post

lat_bounds = slice(-36.341, -36.645)
lon_bounds = slice(146.666, 147.133)

time_bounds = slice('2009-02-07', '2009-02-20')

beechworth_NDVI_during = NDVI_aggr.sel(
    latitude=lat_bounds, longitude=lon_bounds, time=time_bounds)
beechworth_NDVI_during
beechworth_NDVI_during.load()
plt.rcParams["figure.figsize"] = (12,10)

beechworth_NDVI_during.ndvi.plot.imshow(col='time', cmap='viridis')
plt.title('NDVI - 18 February 2009', y=1.1)
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.savefig("2009_NDVI.png", dpi=100)

during = beechworth_NDVI_during

lat_bounds = slice(-36.341, -36.645)
lon_bounds = slice(146.666, 147.133)

time_bounds = slice('2008-02-07', '2008-02-20')

beechworth_NDVI_before = NDVI_aggr.sel(
    latitude=lat_bounds, longitude=lon_bounds, time=time_bounds)
beechworth_NDVI_before

beechworth_NDVI_before.load()
plt.rcParams["figure.figsize"] = (12,10)

beechworth_NDVI_before.ndvi.plot.imshow(col='time', cmap='viridis')
plt.title('NDVI - 18 February 2008', y=1.1)
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.savefig("2008_NDVI.png", dpi=100)

before = beechworth_NDVI_before

figure, ax_s = plt.subplots(ncols=3)
plt.title('NDVI in Beechworth before, during, and after a bushfire')
for data, ax in zip([before, during, post], ax_s):
    ax.imshow(data, cmap='viridis', vmin=0, vmax=0.9)
</code>```

答:
looks like your data sub-setting has couple of issues. here is an example, use appropriate selection.

```<code>before = beechworth_NDVI_before.isel(time=0,nv=1).ndvi
during = beechworth_NDVI_during.isel(time=0,nv=1).ndvi
post = beechworth_NDVI_post.isel(time=0,nv=1).ndvi

figure, ax_s = plt.subplots(ncols=3)
plt.title('NDVI in Beechworth before, during, and after a bushfire')
for data, ax in zip([before, during, post], ax_s):
    ax.imshow(data, cmap='viridis', vmin=0, vmax=0.9)
</code>```

leads to

ContentLicense: CC BY-SA 4.0

Body:
I am attempting to run NDVI change analysis using NcML arrays I pulled off  http://www.auscover.org.au/purl/lpdaac-mosaic-mod13q1-v5 using xarray and opendap.

I have sliced the data I need and assigned them to before, during, and post fire variables.

Now when I try to show the three plots in the same figure I receive an error: 'Image data can not convert to float'. Have I missed something? I thought the arrays I was assigning were xml and not images?

Any advice would be appreciated because this report is due tomorrow.

import xarray as xr
import numpy as np
import pandas as pd

import matplotlib.pyplot as plt
import seaborn
%matplotlib inline
seaborn.set_style('dark')

NDVI_aggr_data_url = 'http://data.auscover.org.au/thredds/dodsC/auscover/lpdaac-aggregates/c5/v2-nc4/aust/MOD13Q1.005/MOD13Q1.aggregated.aust.005.normalised_difference_vegetation_index.ncml'

NDVI_aggr = xr.open_dataset(NDVI_aggr_data_url)
NDVI_aggr

lat_bounds = slice(-36.341, -36.645)
lon_bounds = slice(146.666, 147.133)

time_bounds = slice('2017-02-08', '2017-02-20')

beechworth_NDVI_post = NDVI_aggr.sel(
    latitude=lat_bounds, longitude=lon_bounds, time=time_bounds)
beechworth_NDVI_post

beechworth_NDVI_post.load()
plt.rcParams["figure.figsize"] = (12,10)

beechworth_NDVI_post.ndvi.plot.imshow(col='time', cmap='viridis')
plt.title('NDVI - 18 February 2017', y=1.1)
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.savefig("2017_NDVI_test1.png", dpi=100)

post = beechworth_NDVI_post

lat_bounds = slice(-36.341, -36.645)
lon_bounds = slice(146.666, 147.133)

time_bounds = slice('2009-02-07', '2009-02-20')

beechworth_NDVI_during = NDVI_aggr.sel(
    latitude=lat_bounds, longitude=lon_bounds, time=time_bounds)
beechworth_NDVI_during
beechworth_NDVI_during.load()
plt.rcParams["figure.figsize"] = (12,10)

beechworth_NDVI_during.ndvi.plot.imshow(col='time', cmap='viridis')
plt.title('NDVI - 18 February 2009', y=1.1)
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.savefig("2009_NDVI.png", dpi=100)

during = beechworth_NDVI_during

lat_bounds = slice(-36.341, -36.645)
lon_bounds = slice(146.666, 147.133)

time_bounds = slice('2008-02-07', '2008-02-20')

beechworth_NDVI_before = NDVI_aggr.sel(
    latitude=lat_bounds, longitude=lon_bounds, time=time_bounds)
beechworth_NDVI_before

beechworth_NDVI_before.load()
plt.rcParams["figure.figsize"] = (12,10)

beechworth_NDVI_before.ndvi.plot.imshow(col='time', cmap='viridis')
plt.title('NDVI - 18 February 2008', y=1.1)
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.savefig("2008_NDVI.png", dpi=100)

before = beechworth_NDVI_before

figure, ax_s = plt.subplots(ncols=3)
plt.title('NDVI in Beechworth before, during, and after a bushfire')
for data, ax in zip([before, during, post], ax_s):
    ax.imshow(data, cmap='viridis', vmin=0, vmax=0.9)

Body:
looks like your data sub-setting has couple of issues. here is an example, use appropriate selection.

before = beechworth_NDVI_before.isel(time=0,nv=1).ndvi
during = beechworth_NDVI_during.isel(time=0,nv=1).ndvi
post = beechworth_NDVI_post.isel(time=0,nv=1).ndvi

figure, ax_s = plt.subplots(ncols=3)
plt.title('NDVI in Beechworth before, during, and after a bushfire')
for data, ax in zip([before, during, post], ax_s):
    ax.imshow(data, cmap='viridis', vmin=0, vmax=0.9)

leads to


问:
Search cursor disappearing when cancel button hidden
I followed the great directions in this post to subclass a search bar and search controller that does not show the cancel button. However, there is now no cursor in my search bar when I start editing. I've tried setting the tint for the search bar, which I've seen as an answer in many posts, in various delegate methods. The tint is technically being set correctly, as I can see when I test it by setting my search controller to be the standard UISearchController. But as soon as I set it to my subclass SearchControllerWithoutCancel the cursor goes away.

Here are my subclasses:

```<code>class SearchBarWithoutCancel: UISearchBar {
override func layoutSubviews() {
    super.layoutSubviews()
    setShowsCancelButton(false, animated: false)
}
</code>```

}

class SearchControllerWithoutCancel: UISearchController, UISearchBarDelegate {

```<code>lazy var _searchBar: SearchBarWithoutCancel = {
    [unowned self] in
    let result = SearchBarWithoutCancel(frame: .zero)
    result.delegate = self

    return result
    }()

override var searchBar: UISearchBar {
    get {
        return _searchBar
    }
}
</code>```

}

And here's my addSearchController method which I call from viewDidLoad()

```<code>func addSearchController() {
    searchController.searchResultsUpdater = self

    searchController.dimsBackgroundDuringPresentation = false
    searchController.hidesNavigationBarDuringPresentation = false

    searchController.searchBar.autocapitalizationType = .none
    searchController.searchBar.searchBarStyle = .minimal
    searchController.searchBar.tintColor = UIColor.black

    self.definesPresentationContext = true

    tableView.tableHeaderView = searchController.searchBar
}
</code>```

Has anyone encountered this before? Thanks :)

答:
indeed when the cancel button is hidden, the cursor tint color resets itself

in your SearchBarWithoutCancel remove the layoutSubviews and override setShowsCancelButton :

```<code>override func setShowsCancelButton(_ showsCancelButton: Bool, animated: Bool) {
    //nothing
}}
</code>```

objective-c version

```<code>-(void) setShowsCancelButton:(BOOL)show animated:(BOOL)animated
{
    //nothing
}
</code>```

Body:
I followed the great directions in this post to subclass a search bar and search controller that does not show the cancel button. However, there is now no cursor in my search bar when I start editing. I've tried setting the tint for the search bar, which I've seen as an answer in many posts, in various delegate methods. The tint is technically being set correctly, as I can see when I test it by setting my search controller to be the standard UISearchController. But as soon as I set it to my subclass SearchControllerWithoutCancel the cursor goes away.

Here are my subclasses:

class SearchBarWithoutCancel: UISearchBar {
override func layoutSubviews() {
    super.layoutSubviews()
    setShowsCancelButton(false, animated: false)
}

}

class SearchControllerWithoutCancel: UISearchController, UISearchBarDelegate {

lazy var _searchBar: SearchBarWithoutCancel = {
    [unowned self] in
    let result = SearchBarWithoutCancel(frame: .zero)
    result.delegate = self

    return result
    }()

override var searchBar: UISearchBar {
    get {
        return _searchBar
    }
}

}

And here's my addSearchController method which I call from viewDidLoad()

func addSearchController() {
    searchController.searchResultsUpdater = self

    searchController.dimsBackgroundDuringPresentation = false
    searchController.hidesNavigationBarDuringPresentation = false

    searchController.searchBar.autocapitalizationType = .none
    searchController.searchBar.searchBarStyle = .minimal
    searchController.searchBar.tintColor = UIColor.black

    self.definesPresentationContext = true

    tableView.tableHeaderView = searchController.searchBar
}

Has anyone encountered this before? Thanks :)

Body:
indeed when the cancel button is hidden, the cursor tint color resets itself

in your SearchBarWithoutCancel remove the layoutSubviews and override setShowsCancelButton :

override func setShowsCancelButton(_ showsCancelButton: Bool, animated: Bool) {
    //nothing
}}

objective-c version

-(void) setShowsCancelButton:(BOOL)show animated:(BOOL)animated
{
    //nothing
}


问:
find and replace string in a file
I'm trying to find and replace a string in a folder of files.

Could someone possibly help me?

My script is as follows:

```<code>#!/bin/bash
OLD="This is a"
NEW="I am a"
DPATH="/home/user/test/*.txt"
BPATH="/home/user/test/backup/foo"
[ ! -d $BPATH ] && mkdir -p $BPATH || :
for f in $DPATH
do
  if [ -f $f -a -r $f ]; then
    /bin/cp -f $f $BPATH
    sed "s/$OLD/$NEW/g" "$f"
   else
    echo "Error: Cannot read $f"
  fi
done
</code>```

Now this seems to find the string 'This is a' and replaces with 'I am a', but this only prints to screen.

I need it to replace in the files themselves.

Thanks

答:
The output goes to screen (stdout) because of the following:

```<code>sed "s/$OLD/$NEW/g" "$f"
</code>```

Try redirecting to a file (the following redirects to a new files and then renames it to overwrite the original file):

```<code>sed "s/$OLD/$NEW/g" "$f" > "$f.new" && mv "$f.new" "$f"
</code>```

Title: find and replace string in a file

Body:
I'm trying to find and replace a string in a folder of files.

Could someone possibly help me?

My script is as follows:

#!/bin/bash
OLD="This is a"
NEW="I am a"
DPATH="/home/user/test/*.txt"
BPATH="/home/user/test/backup/foo"
[ ! -d $BPATH ] && mkdir -p $BPATH || :
for f in $DPATH
do
  if [ -f $f -a -r $f ]; then
    /bin/cp -f $f $BPATH
    sed "s/$OLD/$NEW/g" "$f"
   else
    echo "Error: Cannot read $f"
  fi
done

Now this seems to find the string 'This is a' and replaces with 'I am a', but this only prints to screen.

I need it to replace in the files themselves.

Thanks

Body:
The output goes to screen (stdout) because of the following:

sed "s/$OLD/$NEW/g" "$f"

Try redirecting to a file (the following redirects to a new files and then renames it to overwrite the original file):

sed "s/$OLD/$NEW/g" "$f" > "$f.new" && mv "$f.new" "$f"


问:
Select all sales from a certain date thats specified
I have a coupon and would like to get all the rows that used a promo code after the creation date.

Each sale is timestamped and the coupon created is time stamped. Id like to select all the sales that are made after the coupon day.

Heres what I have.

```<code>$coupon = $this->db->query("SELECT * FROM group_coupon WHERE code='test' AND active='1'");

if (count($coupon) > 0) {

  $amount = $this->db->query("SELECT * FROM group_coupon WHERE code='test'")->row()->amount;

  $quantity = $coupon->row()->quantity;
    echo "Quantity: " . $quantity;

echo "Time: " . $coupon->row()->timestamp;

// I know the query is wrong
$time_st = $coupon->row()->timestamp;
   $all = $this->db->query("SELECT * FROM sale WHERE coupon='test' AND $time_st > timestamp")->row()->coupon;

// then id like to do a count($all)

}
</code>```

答:
You've made a bit of a logic error.

Let's say that the coupon you're checking was made at 1 pm and that time is represented by the number 100 (which is $time_st in this case). Then, there's another coupon made one hour after at 2 pm, represented by 200 (timestamp). You then check if $time_st > timestamp and this evaluates to 100 > 200 and this is not true.

What you want to do is check if the timestamp of the coupon you're checking is less than the other timestamps, so you know that they were made in the future.

Your query should be:

```<code>$all = $this->db->query("SELECT * FROM sale WHERE coupon='test' AND $time_st < timestamp")->row()->coupon;
</code>```

Body:
I have a coupon and would like to get all the rows that used a promo code after the creation date.

Each sale is timestamped and the coupon created is time stamped. Id like to select all the sales that are made after the coupon day.

Heres what I have.

$coupon = $this->db->query("SELECT * FROM group_coupon WHERE code='test' AND active='1'");

if (count($coupon) > 0) {

  $amount = $this->db->query("SELECT * FROM group_coupon WHERE code='test'")->row()->amount;

  $quantity = $coupon->row()->quantity;
    echo "Quantity: " . $quantity;

echo "Time: " . $coupon->row()->timestamp;

// I know the query is wrong
$time_st = $coupon->row()->timestamp;
   $all = $this->db->query("SELECT * FROM sale WHERE coupon='test' AND $time_st > timestamp")->row()->coupon;

// then id like to do a count($all)

}

Body:
You've made a bit of a logic error.

Let's say that the coupon you're checking was made at 1 pm and that time is represented by the number 100 (which is $time_st in this case). Then, there's another coupon made one hour after at 2 pm, represented by 200 (timestamp). You then check if $time_st > timestamp and this evaluates to 100 > 200 and this is not true.

What you want to do is check if the timestamp of the coupon you're checking is less than the other timestamps, so you know that they were made in the future.

Your query should be:

$all = $this->db->query("SELECT * FROM sale WHERE coupon='test' AND $time_st < timestamp")->row()->coupon;


问:
Putting a statement in once before the loop
My working code:

public class SimpleStackDemo {

```<code>public static void main(String[] args) {

    SimpleStack sT1 = new SimpleStack(10);
    char ch;

    System.out.println("Outputs:" + "\rDemonstrate SimpleStack" + "\n");
    System.out.println("Push 10 items onto a 10-element stack." + "\rPushing: ");

    for(ch = 'A'; ch < 'K'; ch++) {
        sT1.push(ch);
        System.out.print(ch);
</code>```

Gives me this output:

```<code>Outputs:
Demonstrate SimpleStack

Push 10 items onto a 10-element stack.
Pushing:
ABCDEFGHIJ
</code>```

But I want it to give me this output:

```<code>Outputs:
Demonstrate SimpleStack

Push 10 items onto a 10-element stack.
Pushing: ABCDEFGHIJ
</code>```

I can't figure out how to bring the A-J up one in front of Pushing: . I have tried \b , I have tried putting it within the loop and before the loop, and I will either get Pushing: A Pushing: B etc or some other iteration where pushing gets thrown in multiple times.

Is this a simple thing I am not seeing which doesn't require me to do a whole new block of coding?

答:
Why not just use System.out.print() for the label:

```<code>System.out.println("Push 10 items onto a 10-element stack.");
System.out.print("Pushing: ");

for (ch = 'A'; ch < 'K'; ch++) {
    sT1.push(ch);
    System.out.print(ch);
}
</code>```

Note that I removed the \r you were using as newline and instead used System.out.println().  This will let Java use the line separator which is appropriate for your system.

Body:
My working code:

public class SimpleStackDemo {

public static void main(String[] args) {

    SimpleStack sT1 = new SimpleStack(10);
    char ch;

    System.out.println("Outputs:" + "\rDemonstrate SimpleStack" + "\n");
    System.out.println("Push 10 items onto a 10-element stack." + "\rPushing: ");

    for(ch = 'A'; ch < 'K'; ch++) {
        sT1.push(ch);
        System.out.print(ch);

Gives me this output:

Outputs:
Demonstrate SimpleStack

Push 10 items onto a 10-element stack.
Pushing:
ABCDEFGHIJ

But I want it to give me this output:

Outputs:
Demonstrate SimpleStack

Push 10 items onto a 10-element stack.
Pushing: ABCDEFGHIJ

I can't figure out how to bring the A-J up one in front of Pushing: . I have tried \b , I have tried putting it within the loop and before the loop, and I will either get Pushing: A Pushing: B etc or some other iteration where pushing gets thrown in multiple times.

Is this a simple thing I am not seeing which doesn't require me to do a whole new block of coding?

Body:
Why not just use System.out.print() for the label:

System.out.println("Push 10 items onto a 10-element stack.");
System.out.print("Pushing: ");

for (ch = 'A'; ch < 'K'; ch++) {
    sT1.push(ch);
    System.out.print(ch);
}

Note that I removed the \r you were using as newline and instead used System.out.println().  This will let Java use the line separator which is appropriate for your system.


问:
disable button programmatically primefaces
I want to disable the submit button of my signup form if username exist in database i tried multiple solutions but no one works

my xhtml

```<code><h:outputLabel for="#{userBean.username}" value="UserName" />
<p:inputText styleClass="input" id="username" value="#{userBean.username}" label="UserName " required="true"
    requiredMessage="Username is required"
    validatorMessage="UserName should be of maximum length 20 chars">
    <f:validateLength maximum="20"></f:validateLength>
    <p:ajax  event="keyup" listener="#{userBean.searchByUsername()}" update="usernamegrowl,signupButton" />
                </p:inputText>
<p:message  id="usernamemessage" for="username"></p:message>
<p:commandButton id="signupButton" value="SignUp"  action="#{userBean.persistUser()}"
                ajax="false" disabled="#{userBean.message}"></p:commandButton>
</code>```

my method searchByUsername

```<code>public void searchByUsername() {
    User user = userService.findUserByUserName(getUsername());
    if (user != null) {
        FacesContext.getCurrentInstance().addMessage("usernamegrowl",
                new FacesMessage(FacesMessage.SEVERITY_ERROR, "username is alredy used", ""));
        RequestContext.getCurrentInstance().execute("document.getElementById('signupform:signupButton').setAttribute('disabled', 'true');");

        setMessage(false);
    }
    else
        setMessage(true);
    RequestContext.getCurrentInstance().execute("document.getElementById('signupform:signupButton').setAttribute('disabled', 'false');");

}
</code>```

答:
update is space-separated.

For a detailed information about process/update and execute/render please read this answer.

Body:
I want to disable the submit button of my signup form if username exist in database i tried multiple solutions but no one works

my xhtml

<h:outputLabel for="#{userBean.username}" value="UserName" />

    <f:validateLength maximum="20"></f:validateLength>

my method searchByUsername

public void searchByUsername() {
    User user = userService.findUserByUserName(getUsername());
    if (user != null) {
        FacesContext.getCurrentInstance().addMessage("usernamegrowl",
                new FacesMessage(FacesMessage.SEVERITY_ERROR, "username is alredy used", ""));
        RequestContext.getCurrentInstance().execute("document.getElementById('signupform:signupButton').setAttribute('disabled', 'true');");

        setMessage(false);
    }
    else
        setMessage(true);
    RequestContext.getCurrentInstance().execute("document.getElementById('signupform:signupButton').setAttribute('disabled', 'false');");

}


问:
ActiveMQ memory consumption through the roof (page file)... what to do?
We're using an older version of ActiveMQ (5.3.2) (see: Is activemq reliable?)

We've removed persistence because we needed more speed. Our worker can keep up with the messages, but, even though the queue typically is at 0 pending, after about 45000 messages processed (a message is typically 100 chars long), the Page file is 8GB!! It doesn't stop there though, it continues until 15 GB is reached  (Our server has 16gb memory)!

Stopping the ActiveMQ process doesn't clean up this pagefile, it remains this huge indefinately.

these are the settings we use:

```<code><policyEntry queue=">" producerFlowControl="false" memoryLimit="2gb">
</policyEntry>
</code>```

and

```<code><systemUsage>
    <systemUsage>
        <memoryUsage>
            <memoryUsage limit="20 mb"/>
        </memoryUsage>
        <storeUsage>
            <storeUsage limit="1 gb"/>
        </storeUsage>
        <tempUsage>
            <tempUsage limit="100 mb"/>
        </tempUsage>
    </systemUsage>
</systemUsage>
</code>```

What do we need to do to keep memory usage in 'normal' levels?

Our server: Windows 2003 (64bit). ActivemQ (5.3.2), with Java64 bit (1.6.0__22)

答: Can you post your full ActiveMQ configuration ? Have you set persistent = false on the ActiveMQ broker? I think what is happening is that because you've turned off flow control, and only have allowed 20mb of memory to be used by the broker - your messages are being paged to disk in temporary storage. If persistent=false this shouldn't happen - but do enable flow control - it will help ;)</p>

Body:
We're using an older version of ActiveMQ (5.3.2) (see: Is activemq reliable?)

We've removed persistence because we needed more speed. Our worker can keep up with the messages, but, even though the queue typically is at 0 pending, after about 45000 messages processed (a message is typically 100 chars long), the Page file is 8GB!! It doesn't stop there though, it continues until 15 GB is reached  (Our server has 16gb memory)!

Stopping the ActiveMQ process doesn't clean up this pagefile, it remains this huge indefinately.

these are the settings we use:

<policyEntry queue=">" producerFlowControl="false" memoryLimit="2gb">
</policyEntry>

and

<systemUsage>
    <systemUsage>
        <memoryUsage>
            <memoryUsage limit="20 mb"/>
        </memoryUsage>
        <storeUsage>
            <storeUsage limit="1 gb"/>
        </storeUsage>
        <tempUsage>
            <tempUsage limit="100 mb"/>
        </tempUsage>
    </systemUsage>
</systemUsage>

What do we need to do to keep memory usage in 'normal' levels?

Our server: Windows 2003 (64bit). ActivemQ (5.3.2), with Java64 bit (1.6.0__22)