<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Wordpress on Amit Agarwal Linux Blog</title>
    <link>/categories/wordpress/</link>
    <description>Recent content in Wordpress on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sat, 30 May 2015 00:59:13 +0000</lastBuildDate>
    
	<atom:link href="/categories/wordpress/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>https site available now with cert from cacert.org</title>
      <link>/2015/05/30/https-site-cert-cacert-org/</link>
      <pubDate>Sat, 30 May 2015 00:59:13 +0000</pubDate>
      
      <guid>/2015/05/30/https-site-cert-cacert-org/</guid>
      <description>&lt;p&gt;More about &lt;a href=&#34;http://www.cacert.org/&#34;&gt;cacert.org&lt;/a&gt; :&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;CAcert.org is a community-driven Certificate Authority that issues certificates to the public at large for free.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Apache server stats with small and useful bash script.</title>
      <link>/2013/11/29/apache-server-stats-small-bash-script/</link>
      <pubDate>Fri, 29 Nov 2013 01:35:36 +0000</pubDate>
      
      <guid>/2013/11/29/apache-server-stats-small-bash-script/</guid>
      <description>&lt;p&gt;Just copy this script to your web-server &lt;a class=&#34;zem_slink&#34; title=&#34;Common Gateway Interface&#34; href=&#34;http://en.wikipedia.org/wiki/Common_Gateway_Interface&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;cgi-bin&lt;/a&gt; directory and enjoy.&lt;/p&gt;
&lt;p&gt;The script with show the common errors like &lt;a class=&#34;zem_slink&#34; title=&#34;HTTP 404&#34; href=&#34;http://en.wikipedia.org/wiki/HTTP_404&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;404 Error&lt;/a&gt;, &lt;a class=&#34;zem_slink&#34; title=&#34;List of HTTP status codes&#34; href=&#34;http://www.iana.org/assignments/http-status-codes&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;Internal Server Error&lt;/a&gt; and others. It will show the &lt;a class=&#34;zem_slink&#34; title=&#34;User agent&#34; href=&#34;http://en.wikipedia.org/wiki/User_agent&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;User agent&lt;/a&gt; distribution using simple commands like &lt;a class=&#34;zem_slink&#34; title=&#34;Grep&#34; href=&#34;http://en.wikipedia.org/wiki/Grep&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;grep&lt;/a&gt;, &lt;a class=&#34;zem_slink&#34; title=&#34;Uniq&#34; href=&#34;http://en.wikipedia.org/wiki/Uniq&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;uniq&lt;/a&gt;, &lt;a class=&#34;zem_slink&#34; title=&#34;AWK&#34; href=&#34;http://cm.bell-labs.com/cm/cs/awkbook&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;awk&lt;/a&gt; and so on.&lt;/p&gt;
&lt;p&gt;You would need to change the tfile – which is temporary file and also the access.log path in the next line.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Faster blog with stats removed</title>
      <link>/2011/06/18/faster-blog-stats-removed/</link>
      <pubDate>Sat, 18 Jun 2011 01:40:01 +0000</pubDate>
      
      <guid>/2011/06/18/faster-blog-stats-removed/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;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 &lt;a class=&#34;zem_slink&#34; title=&#34;Loader (computing)&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Loader_%28computing%29&#34;&gt;load time&lt;/a&gt;.&lt;/p&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://blog.amit-agarwal.co.in/2011/06/03/cr-post-pingfm-working-resolved/&#34;&gt;CR Post to Ping.fm not working &amp;#8211; resolved.&lt;/a&gt; (amit-agarwal.co.in)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://basnettips.wordpress.com/2011/05/24/compare-two-websites-load-time-learn-which-website-loads-faster/&#34;&gt;Compare Two Websites Load Time &amp; Learn Which Website Loads Faster&lt;/a&gt; (basnettips.wordpress.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://blog.amit-agarwal.co.in/2011/05/16/unix-shell-script-removing-duplicate-files/&#34;&gt;Unix shell script for removing duplicate files&lt;/a&gt; (amit-agarwal.co.in)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;border: medium none; float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>CR Post to Ping.fm not working – resolved.</title>
      <link>/2011/06/03/cr-post-pingfm-working-resolved/</link>
      <pubDate>Thu, 02 Jun 2011 21:42:23 +0000</pubDate>
      
      <guid>/2011/06/03/cr-post-pingfm-working-resolved/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;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 🙁&lt;/p&gt;
&lt;p&gt;Now thanks to this post I am able to use the plugin again and thus update my status at multiple places again.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>using wordpress CLI to post to wordpress</title>
      <link>/2011/03/24/using-wordpress-cli-to-post-to-wordpress/</link>
      <pubDate>Thu, 24 Mar 2011 15:31:10 +0000</pubDate>
      
      <guid>/2011/03/24/using-wordpress-cli-to-post-to-wordpress/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;There is a very nice post here: &lt;a title=&#34;How to post content to a WordPress blog from the command line&#34; href=&#34;http://freesoftware.zona-m.net/how-to-post-content-to-a-wordpress-blog-from-the-command-line/&#34; target=&#34;_blank&#34;&gt;How to post content to a WordPress blog from the command line&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I tried this in &lt;a class=&#34;zem_slink&#34; title=&#34;Fedora (operating system)&#34; rel=&#34;homepage&#34; href=&#34;http://www.fedoraproject.org/&#34;&gt;Fedora&lt;/a&gt; 14 and here is the way to get this working in Fedora&lt;/p&gt;
&lt;div class=&#34;codecolorer-container text solarized-light&#34; style=&#34;overflow:auto;white-space:nowrap;width:550px;&#34;&gt;
  &lt;table cellspacing=&#34;0&#34; cellpadding=&#34;0&#34;&gt;
    &lt;tr&gt;
      &lt;td class=&#34;line-numbers&#34;&gt;
        &lt;div&gt;
          1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;
        &lt;/div&gt;
      &lt;/td&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;td&amp;gt;
    &amp;lt;div class=&amp;quot;text codecolorer&amp;quot;&amp;gt;
      su -&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; cpan&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; install WordPress::CLI WordPress::Post
    &amp;lt;/div&amp;gt;
  &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;Now, once the above completes make sure that the path /usr/local/bin is in you path.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>analyze debug queries output for wordpress</title>
      <link>/2011/02/09/analyze-debug-queries-output-wordpress/</link>
      <pubDate>Wed, 09 Feb 2011 15:25:14 +0000</pubDate>
      
      <guid>/2011/02/09/analyze-debug-queries-output-wordpress/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;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 &lt;a class=&#34;zem_slink&#34; title=&#34;The Queries&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/The_Queries&#34;&gt;the queries&lt;/a&gt; to DB along with the time taken for the query when a Admin user visits any page.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Adding a sub-menu in the wordpress admin menu :)</title>
      <link>/2010/07/29/adding-submenu-wordpress-admin-menu/</link>
      <pubDate>Thu, 29 Jul 2010 04:15:06 +0000</pubDate>
      
      <guid>/2010/07/29/adding-submenu-wordpress-admin-menu/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;For the impatient ones, first the code:&lt;br&gt;
(in wp-admin folder, open the file menu.php) and locate the code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$submenu[&amp;amp;#8217;edit.php&amp;amp;#8217;][10]  = array( _x(&amp;amp;#8217;Add New&amp;amp;#8217;, &amp;amp;#8217;post&amp;amp;#8217;), &amp;amp;#8217;edit_posts&amp;amp;#8217;, &amp;amp;#8217;post-new.php&amp;amp;#8217; );&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;and add the below:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$submenu[&amp;amp;#8217;edit.php&amp;amp;#8217;][7]  = array( _x(&amp;amp;#8217;Pending&amp;amp;#8217;, &amp;amp;#8217;post&amp;amp;#8217;), &amp;amp;#8217;edit_posts&amp;amp;#8217;, &amp;amp;#8217;edit.php?post_status=pending&amp;amp;post_type=post&amp;amp;#8217; );&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And now the explanation and why do you need this 🙂&lt;/p&gt;
&lt;p&gt;Problem:&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
