Posts Tagged ‘god’

How to disable nginx static requests access.log logging

Monday, March 5th, 2012

NGINX logo Static Content Serving Stop logging

One of the companies, where I'm employed runs nginx as a CDN (Content Delivery Network) server.
Actually nginx, today has become like a standard for delivering tremendous amounts of static content to clients.
The nginx, server load has recently increased with the number of requests, we have much more site visitors now.
Just recently I've noticed the log files are growing to enormous sizes and in reality this log files are not used at all.
As I've used disabling of web server logging as a way to improve Apache server performance in past time, I thought of implying the same little "trick" to improve the hardware utilization on the nginx server as well.

To disable logging, I proceeded and edit the /usr/local/nginx/conf/nginx.conf file, commenting inside every occurance of:

access_log /usr/local/nginx/logs/access.log main;

to

#access_log /usr/local/nginx/logs/access.log main;

Next, to load the new nginx.conf settings I did a restart:

nginx:~# killall -9 nginx; sleep 1; /etc/init.d/nginx start

I expected, this should be enough to disable completely access.log, browser request logins. Unfortunately /usr/local/nginx/logs/access.log was still displaying growing with:

nginx:~# tail -f /usr/local/nginx/logs/access.log

After a bit thorough reading of nginx.conf config rules, I've noticed there is a config directive:

access_log off;

Therefore to succesfully disable logging I had to edit config occurance of:

access_log /usr/local/nginx/logs/access.log main

to

After a bit thorough reading of nginx.conf config rules, I've noticed there is a config directive:

access_log off;

Therefore to succesfully disable logging I had to edit config occurance of:

access_log /usr/local/nginx/logs/access.log main

to

access_log /usr/local/nginx/logs/access.log main
access_log off;

Finally to load the new settings, which thanksfully this time worked, I did nginx restart:

nginx:~# killall -9 nginx; sleep 1; /etc/init.d/nginx start

And hooray! Thanks God, now nginx logging is disabled!

As a result, as expected the load avarage on the server reduced a bit 🙂

How to change default Comments and No Comments location in WordPress in wordpress default theme

Tuesday, April 5th, 2011

For a number of time I’ve been planning to change my blog comments placement. Until this very day however I’ve kept the default wordpress theme’s Comments button placement.

I realize the default Comments button placement is a bit hard to see and not that much intuitive for the user that enters my blog for a first time.

My first guess was that there might be somewhere a wordpress plugin which will allow me to adjust my comments button placement.
After some research online and a realization that probably there is no such plugin existing yet. I’ve forced myself to tune it up myself.

It was clear to me that in order to change the it will be necessery to edit the WordPress templates files. I’m not a designer and when I hear about templates I usually get scared, however I took the time to take a look at the default wordpress template and find out actually that template modifications is actually rather easier than I thought.

My previous idea was that in order to edit templates you have to be some kind of CSS and HTML guru (which I’m not). Nevertheless it seems that in order to play and adjust in a good way the templates you don’t need ot be a pro.
Even an uneducated fool like myself can easily do almost everything he thinks of throughout few lines of code in the wp templates.

To get back to the major topic thanks God after a bit of review and reading of wordpress.org documentation and some user forums. I’ve figured out that in order to change my Comments placement you need to modify the file:
 

  • blog/wp-content/themes/default/index.php

In index.php find the line starting with:

You will notice within this opened paragraph the php code:

<?php the_tags('Tags: ', ', ', '
'); ?> Posted in <?php the_category(', ') ?>
| <?php edit_post_link('Edit', '', ' | '); ?>
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

This is the actual default theme php code that makes the wordpress Comments or No Comments that maes the comments appear on the blog.

Now I’ve decided to let this be as it is but add one more Comment button to wordpress on a different location that is more appealing to my blog visitors

After quick evaluation I’ve determined that probably the best location that the Comments button should have is right after the end of the post text

If you think my idea for button placement is appropriate, to set this location for the Comments button, you will have to find the follwoing code in index.php:

<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>

Right after the end of this code place the following code:

<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</div>

Can you believe this Animal really exists – OLM !!! ;)

Monday, January 16th, 2012

Olm Salamander one of the weirdest creatures to be seen in Slovenian Caves

No this is not Aliens, like monster character!
It is a real existing creature that even up to this day lives on earth.
Olm Salamander one of the weirdest creatures in Slovenia

I though OLM is a joke, but actually its real. IT lives in Slovenian Mountain caves 😉

Shining OLM weird earthly creature ling

Looking at the Olm one can be stunned on the great diversity of God's creation.

Olm even shines 😉

Olm Proteus Anguinus Postojnska Jama Slovenia
 

Fix to Nagios is currently not checking for external commands

Wednesday, August 24th, 2011

While I was deploying a new Nagios install to Monitor some Windows hosts I’ve came across the following error in Nagios’s web interface:

Sorry, but Nagios is currently not checking for external commands, so your command will not be committed!
Read the documentation for information on how to enable external commands...

This error is caused by an option configuration for /etc/nagios/nrpe.cfg (part of the nrpe-nagios-server Debian package.

The config variable in nrpe.cfg causing the error is check_external_command=0 , the fix comes to changing the variable to:

check_external_command=1

As well as restart the /etc/init.d/nagios-nrpe-server and /etc/init.d/nagios3 services:

debian:~# /etc/init.d/nagios3 restart
...
debian:~# /etc/init.d/nagios-nrpe-server
...

This changes has work out the error Sorry, but Nagios is currently not checking for external commands, so your command will not be committed! , however immediately after another kind of error appared in Nagios web interface when I tried to use the send Nagios commands button. The error was:

Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'!

This error is due to a deb package, which seems to be affecting the current deb versions of Nagios shipped with Debian 6 Squeeze stable, as well as the Latest Ubuntu release 11.04.

Thanksfully there is a work around to the problem I found online, to fix it up I had to execute the commands:

debian:~# /etc/init.d/nagios3 stop debian:~# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
debian:~# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
debian:~# /etc/init.d/nagios3 start

And hooray Thanks God the error is gone 😉

Johny Cash one of the greatest musicians of our time

Tuesday, May 17th, 2011

I remember about Johny Cash’s Hurt song as the nine inch nails cover was a very favourite one to me for quite a few years, in the meantime I reviewed Johny Cash’s musical works and decided to check some biographic info about Johny Cash I was surpirsed to find out Johny Cash used to create a lot of music about the Lord Jesus Christ and shocked by the fact he had a long period in his life in which he was a devoted Christian!

I’m really happy to find out this info as one I’m a christian myself and two he is one of the most influential musicians of the last 150 years, not to say of all times.

His biography is quite a bizarre one full of falling and standings, anyways i would skip the talks now and suggest for my readers to enjoy Johny’s Cash few notable songs:


Johny Cash – Hurt Video


Johny Cash – Ring of Fire Video


Johny Cash – San Quentin (Live From Prison)


Johny Cash – Redemption Video


Johny Cash – I walk the Line Video


Johny Cash – God’s Gonna Cut you Down
Awesome music ain’t it ? 🙂

The third day after Resurrection (Easter)

Monday, April 25th, 2011

It’s the third day, after the saviour’s tomb was found empty. The third day after the evel living has manifested his divinity by showing himself alive to The Holy Virgin Mary (Theotokos) to Mary Magdalene and to few of the Holy Apostles.
The upcoming week is called within the Church The Bright Week
The whole week is a week of a divine spiritual joy which we all the Christians experiens (feels).

God is really graceful to us the sinners in this holy days of the year.

Christ is Risen! Truly He is Risen! Happy Easter! / The Miracle of the Holy Fire in Jerusalem

Sunday, April 24th, 2011

Christ is Risen Icon

“Christ is risen from the dead,
trampling down death by death,
and on those in the tombs bestowing
life!”

Happy Easter to all my beloved readers. In relation to the Greatest feast of all times I wish to all my readers a lot of good health, a lot of success in all good, and a lot of love. Rejoice for the Lord and Saviour of mankind has been risen!

In Jerusalem the Holy Fire has descended from Heaven. For all Unorthodox Christians, it’s important to note that the Holy Fire is the miracle confirming that the Christian Orthodox faith is the true ancient Christian faith in fulness!

Each year the Holy Fire descends from heaven and lights up the candle of the Patriarch of the Jerusalem Church. This only happens on the Orthodox Easter! This is without question a great miracle and a very graceful act by which God shows us he has not left us behind.

Here is a video you can watch, where you can see the miracle happening as well as a discussion, is really the miracle real:

Miracle of the Holy Fire in the Holy Sepulchre (Jesus’s Tomb) in Jerusalem – Easter 2011

Holy Light (Holy Fire) in Jerusalem: Proofs & Testimonies

During the three days in which, we the Christians celebrate the glorious Resurrection of our Lord and Saviour. It’s accepted that the ordinary “Hi” or “Hello” greeting we use daily, is ex-changed for “Christ is Risen!” 🙂

The word “Easter” used for the Resurrection 3 day feasts is also interesting as it comes from “Eastern” – (e.g. Eastern Orthodox Church) 🙂