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[’edit.php’][10]  = array( _x(’Add New’, ’post’), ’edit_posts’, ’post-new.php’ );

and add the below:

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

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

Find who is using my network – top for network utilization

2010-07-27 1 min read Fedora Linux

Ok here is something that I have been looking for something.  Now that I have conky installed, so I can see the bandwidth usage on my desktop but was wondering for sometimes, where actually so much is being used. So did some quick search to see if I can get that info and did not have to go too far 🙂

There is s  utility called iftop in the Fedora repo and at the <a href="http://www.ex-parrot.com/~pdw/iftop/" target="_blank">URL. Oh and how to use it, just type sudo iftop or if you have multiple network interface then you can do &#8221;iftop -f &#8221;. Thats pretty simple and cool.

Continue reading

Over 50 Free, Must-Have Open Source Resources

2010-07-27 0 min read Linux
\"no
Image via Wikipedia

OStatic: &#8221;n this post, you&#8217;ll find an updated set of more than 45 collections and resources. Hopefully, you&#8217;ll find something to learn from here, and the good news is that everything found in this post is free.&#8221;

<a class="zem_slink freebase/guid/9202a8c04000641f800000000003f3a0" title="Uniform Resource Locator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-11-23-003-35-RV-SW">http://linuxtoday.com/news_story.php3?ltsn=2009-11-23-003-35-RV-SW<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://technology.johnsamuel.in/main/index.php/2009/10/25/bit-ly-more-than-just-a-url-shortener/">bit.ly: More than just a URL shortener (technology.johnsamuel.in) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/01000062-d486-42d2-bd70-1cb729684b22/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b18.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading

PuTTY alternatives - AlternativeTo.net

2010-07-27 1 min read Uncategorized

I like PuTTY quite a bit but do not like the fact that it does not have any tab feature. So, if I am working on multiple machines then un-necessarily I will have too many windows open cluttering my desktop. So, here is the result of my quest to find the alternative:
<a href="http://alternativeto.net/desktop/putty/">http://alternativeto.net/desktop/putty/<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://blog.amit-agarwal.co.in/2010/06/05/putty-ssh-without-password/">PuTTY ssh without password (amit-agarwal.co.in) <li class="zemanta-article-ul-li"><a href="http://www.downloadsquad.com/2010/05/18/kitty-is-win32-native-putty/?zemanta-tracking">KiTTY is Win32-native PuTTY (downloadsquad.com) <li class="zemanta-article-ul-li"><a href="http://lifehacker.com/5541871/kitty-adds-session-saving-portability-and-more-to-putty">KiTTY Adds Session Saving, Portability, and More to PuTTY [Downloads] (lifehacker.com) <li class="zemanta-article-ul-li"><a href="http://blog.amit-agarwal.co.in/2010/04/11/putty-export-client-display-on-login-for-opening-x-application-and-terminal/">PuTTY export client display on login for opening X application and terminal. (amit-agarwal.co.in) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_e3.png" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">

Continue reading

importing outlook pst files in evolution in Fedora 13 ( Goddard)

2010-07-25 1 min read Fedora Linux

If you were using outlook and moved to some other <a class="zem_slink freebase/en/e-mail_client" title="Email client" rel="wikipedia" href="http://en.wikipedia.org/wiki/Email_client">mail client then you know the pain of moving the mails from outlook mail from outlook to any other client.

If you are using evolution on <a class="zem_slink freebase/en/fedora" title="Fedora" rel="homepage" href="http://fedoraproject.org/">Fedora, then you are in luck. Just install the plug-in and select the file to import as simple as that.

sudo yum install evolution-pst

Continue reading

List of commands you use most often

2010-07-25 1 min read Bash Linux

$ history | <a class="zem_slink" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head > /tmp/cmds | <a class="zem_slink" title="Gnuplot" rel="homepage" href="http://www.gnuplot.info/">gnuplot -persist <(echo 'plot "/tmp/cmds" using 1:xticlabels(2) with boxes') Plot your most used commands with gnuplot.

  • <a href="http://www.commandlinefu.com/commands/view/5845/list-of-commands-you-use-most-often">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/sthrs">View all commands by <a href="http://feeds2.feedburner.com/commands/by/sthrs">sthrs

<a href="http://www.commandlinefu.com">

by David Winterbottom (<a href="http://codeinthehole.com">codeinthehole.com)

<a href="http://feedads.g.doubleclick.net/~a/qns5iNy–6jXLRCLFY_jGnkB68s/0/da">
<a href="http://feedads.g.doubleclick.net/~a/qns5iNy–6jXLRCLFY_jGnkB68s/1/da">

Continue reading
Older posts Newer posts