https site available now with cert from cacert.org

2015-05-30 1 min read Wordpress

More about cacert.org :

 

CAcert.org is a community-driven Certificate Authority that issues certificates to the public at large for free.

CAcert’s goal is to promote awareness and education on computer security through the use of encryption, specifically by providing cryptographic certificates. These certificates can be used to digitally sign and encrypt email, authenticate and authorize users connecting to websites and secure data transmission over the internet. Any application that supports the Secure Socket Layer Protocol (SSL or TLS) can make use of certificates signed by CAcert, as can any application that uses X.509 certificates, e.g. for encryption or code signing and document signatures.

Continue reading

Apache server stats with small and useful bash script.

2013-11-29 3 min read Bash Linux Uncategorized Wordpress

Just copy this script to your web-server cgi-bin directory and enjoy.

The script with show the common errors like 404 Error, Internal Server Error and others. It will show the User agent distribution using simple commands like grep, uniq, awk and so on.

You would need to change the tfile – which is temporary file and also the access.log path in the next line.

Just re-direct the output to some file with html extenstion. You could even put this in the cron which re-directs the output to some html in server document root.

Continue reading

Faster blog with stats removed

2011-06-18 1 min read Wordpress

I was thinking of removing the statpress plugin for quite some time now, but did not have a good alternative. Today finally I managed to do this as I had few hours to spare. Now that this is done, you should not be getting the database error that some of you on IE were getting and also should have a nicer experience in terms of page load time.

Enhanced by Zemanta

CR Post to Ping.fm not working – resolved.

2011-06-02 1 min read Wordpress

Last couple of months I was having a tough time getting the plugins in my wordpress to work with the ping.fm service.  This is the only service that I rely on to post my blogs. So, basically I was left with no mechanism to publish my new posts 🙁

Now thanks to this post I am able to use the plugin again and thus update my status at multiple places again.

Continue reading

using wordpress CLI to post to wordpress

2011-03-24 1 min read Bash Wordpress

There is a very nice post here: How to post content to a WordPress blog from the command line

I tried this in Fedora 14 and here is the way to get this working in Fedora

  <td>
    <div class="text codecolorer">
      su -<br /> <br /> cpan<br /> <br /> install WordPress::CLI WordPress::Post
    </div>
  </td>
</tr>
1
2
3
4
5

Now, once the above completes make sure that the path /usr/local/bin is in you path.

Continue reading

analyze debug queries output for wordpress

2011-02-09 2 min read Wordpress

Some time back, my website became too slow and I started getting timeout response for quite a lot of my pages. When I analyzed things, I found the issue was with the DB queries taking a lot of time. So, I thought of getting my hands dirty and started with installing the plugin “Debug Queries”. Just in case, you don’t know about the plugin, it lists all the queries to DB along with the time taken for the query when a Admin user visits any page.

Continue reading

Adding a sub-menu in the wordpress admin menu :)

2010-07-29 2 min read Wordpress

For the impatient ones, first the code:
(in wp-admin folder, open the file menu.php) and locate the code:

$submenu[&#8217;edit.php&#8217;][10]  = array( _x(&#8217;Add New&#8217;, &#8217;post&#8217;), &#8217;edit_posts&#8217;, &#8217;post-new.php&#8217; );

and add the below:

$submenu[&#8217;edit.php&#8217;][7]  = array( _x(&#8217;Pending&#8217;, &#8217;post&#8217;), &#8217;edit_posts&#8217;, &#8217;edit.php?post_status=pending&post_type=post&#8217; );

And now the explanation and why do you need this 🙂

Problem:

There is no direct mechanism to access the pending posts in WP admin. I generally post through email and mark them as pending. So, whenever I go to my admin POSTs page, I will look through the list of pending items and post them as and when required. For this, when I am done with changes in one item, I need to either modify the address bar or need to go to posts link and then click the Pending items.

Continue reading