phpmyadmin access problem and change server from URL

2012-09-30 1 min read Database Fedora

I was having issues with one of the phpmyadmin setups. The first server defined in the config file was not accessible and the theme that I was using was not allowing me to change the server from the first page. This resulted in a state where I was not able to access phpmyadmin in any way. I could not connect to any of the servers. And thus had to hack my way in to phpmyadmin to find out how to connect to other servers from URL. And here is my finding:

Continue reading

convert word document to html

2012-06-27 1 min read Fedora Linux

First install the required package:

sudo yum install wv

Description:

Description : Wv is a program that understands the Microsoft Word 6/7/8/9
binary file format and is able to convert Word
documents into HTML, which can then be read with a browser.

And here is the list of the programs that this utility provides:

/usr/bin/wvAbw
/usr/bin/wvCleanLatex
/usr/bin/wvConvert
/usr/bin/wvDVI
/usr/bin/wvDocBook
/usr/bin/wvHtml
/usr/bin/wvLatex
/usr/bin/wvMime
/usr/bin/wvPDF
/usr/bin/wvPS
/usr/bin/wvRTF
/usr/bin/wvSummary
/usr/bin/wvText
/usr/bin/wvVersion
/usr/bin/wvWare
/usr/bin/wvWml

So, if you want to convert a doc file to html just do:

Continue reading

g flag in :s useless in vim

2011-11-05 1 min read Vim Tips

Some time back there was a post on vim_use list about the “/g” flag for the search and replace functionality of the vim. And the response of “Tim Chase” on the same was very elaborate and interesting. I always knew that “/g” is only for replacing multiple occurrences on the same line, but here are few things that I did not know.

   :0/this/s//that

This one will only replace the first occurrence of this in the whole file.

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

Total upload and download on any interface.

2011-06-05 1 min read Bash Fedora

Something that I have been searching for a long time, finally some look inside the <a class=“zem_slink” title=“Procfs” rel=“wikipedia” href=“http://en.wikipedia.org/wiki/Procfs" _mce_href=“http://en.wikipedia.org/wiki/Procfs">/proc got me what I wanted. Hope this will save someone’s day. So far, the only option I could think of was to run conky which becomes a little heave on some of the very old laptops I have to use sometimes 🙁

  <td>
    <div class="text codecolorer">
      &nbsp;cat /proc/net/dev|grep eth2|awk '{print $2/1024/1024"&nbsp; "$10/1024/1024}'
    </div>
  </td>
</tr>
1
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

mysql output to an array for easy parsing.

2011-05-11 2 min read Bash Database

 

Today I was looking for some way to put the output of the mysql output in an array in a bash script. Quick google search yeilded to results something like this:

 

  <td>
    <div class="text codecolorer">
      output=$(mysql -e "select * from table")
    </div>
  </td>
</tr>
1

The problem with the above approach is that all the words go into separate index. So if you have a line that has space then that is split into multiple index’s. Not good…

Continue reading
Older posts