gnomecc color scheme - my favourite.

2010-07-11 1 min read Fedora

my favourite <a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2009/06/gtkrc-2.0-gnome-color-chooser">gtkrc-2 file.

Snapshot of how it looks.

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2009/06/desktop.jpg"><img class="size-medium wp-image-796" title="desktop" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2009/06/desktop-300x187.jpg" alt="desktop" width="300" height="187" /><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_e1.png" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">

jumps and marks in vim

2010-07-11 3 min read Linux Vim Tips

First we will talk about jumps in vim. Very useful for <a class="zem_slink freebase/en/navigation" title="Navigation" rel="wikipedia" href="http://en.wikipedia.org/wiki/Navigation">navigation and jumping around the vim. The jumps are commands that lets you jump from one location to another location, like {{ or [[ and so on … From the help file of vim

A &#8221;jump&#8221; is one of the following commands: &#8221;&#8217;&#8221;, &#8221;`&#8221;, &#8221;G&#8221;, &#8221;/&#8221;, &#8221;?&#8221;, &#8221;n&#8221;,
&#8221;N&#8221;, &#8221;%&#8221;, &#8221;(&#8221;, &#8221;)&#8221;, &#8221;[[&#8221;, &#8221;]]&#8221;, &#8221;{&#8221;, &#8221;}&#8221;, &#8221;:s&#8221;, &#8221;:tag&#8221;, &#8221;L&#8221;, &#8221;M&#8221;, &#8221;H&#8221; and
the commands that start editing a new file.  If you make the <a class="zem_slink freebase/en/cursor" title="Cursor (computers)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Cursor_%28computers%29">cursor &#8221;jump&#8221;
with one of these commands, the position of the cursor before the jump is
remembered.  You can return to that position with the &#8221;&#8217;&#8217;&#8221; and &#8221;“&#8221; command,
unless the line containing that position was changed or deleted.

Continue reading

New Improvements in the site and added few more features.

2010-07-11 2 min read Uncategorized

Last couple of days I have spent quite some time on the <a class="zem_slink freebase/guid/9202a8c04000641f8000000000041684" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website design and format and performance along with moving my Hosting Provider.

Here are couple of things that you would notice immediately:

  1. Site loading time is decreased substantially. I saw it loading in 5 seconds from my system.

  2. I have moved my hosting from ZNetIndia to <a class="zem_slink freebase/guid/9202a8c04000641f80000000003f4284" title="Go Daddy" rel="geolocation" href="http://maps.google.com/maps?ll=33.617409,-111.90477&spn=0.01,0.01&q=33.617409,-111.90477%20%28Go%20Daddy%29&t=h">GoDaddy. Though the users do not have any direct impact in experience but that has definitely improved the performance. I have spent quite some amount of money on this and would request the viewers to click on the <a class="zem_slink freebase/guid/9202a8c04000641f800000000042acea" title="Google" rel="homepage" href="http://google.com">Google Advertisements to help me cover it. You help is much appreciated. Other way you can help is by way of buying my photos from my <a title="My E Sop" href="http://shop.amit-agarwal.co.in" target="_blank">e-shop.

    Continue reading

CLI Color and bash prompt.. some colored fun with prompts in bash

2010-06-29 5 min read Bash Fedora Linux

There are two ways to do it, one is with tput command. We will see that some other time, today we will consider the escape sequence way.

First we need to understand the colors as understood by bash. Some time back a fried of mine gave me this little script to find the colors. You can download it <a href="http://blog.amit-agarwal.co.in/2009/03/bash_colors" target="_blank">Script bash colors. Here is the script

#!/bin/bash

T=&#8217;amit agarwal&#8217;   # The test text

Continue reading

Solaris one liners

2010-06-29 11 min read Solaris

http://www.unixguide.net/sun/sunoneliners.shtml

Unix/Solaris: One-Liners

Source: http://www.kevlo.com/~ebs/unix_commands.txt

Listed here are a bunch of unix commands.

–> change file date stamp

touch –t 199906042020 filename

–> move partitions

ufsdump 0f – /dev/rdsk/c0t0s0s0 | (cd /home; ufsrestore xv -)

–> lay down file system with 1% minfree and inode density

newfs –m1 –i81920 /dev/rdsk/c0t0d0s0

–> check file system

fsck /dev/rdsk/c0t0d0s0

Q: starting sybase

login as sybase, run: ./install/RUN_SYBASE

Q: logging in as sybase sa

isql -U sa

Continue reading

Recovering Deleted Files With lsof

2010-06-29 1 min read Fedora Linux

Quick update, found this nice article on how to recover deleted file, if its still open by some process.
<a href="http://www.serverwatch.com/tutorials/article.php/3822816">Recovering Deleted Files With lsof

blogtk — Unsupported XML-RPC protocol

2010-06-29 2 min read Linux

Earlier I had talked about this blog client, did I. If not then there is a nice blogging clinet called BloGTK, which can be used directly to post into the blog.

So today I reinstalled it and I was completely at loss with the client being unable to start with the error below:

/usr/lib/python2.5/site-packages/blogtk/BloGTK.py:407: GtkDeprecationWarning: gtk.TRUE is deprecated, use True instead
self.publishCheck.set_active(gtk.TRUE)
Traceback (most recent call last):
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 1244, in module
blogtk = BloGTK()
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 138, in __init__
self.grabConfig()
File &#8221;/usr/lib/python2.5/site-packages/blogtk/BloGTK.py&#8221;, line 426, in grabConfig
self.rpcServer = proxy.get_xmlrpc_server(self.url)
File &#8221;/usr/lib/python2.5/site-packages/blogtk/proxy.py&#8221;, line 66, in get_xmlrpc_server
return server(url)
File &#8221;/usr/lib/python2.5/xmlrpclib.py&#8221;, line 1414, in __init__
raise IOError, &#8221;unsupported XML-RPC protocol&#8221;
IOError: unsupported XML-RPC protocol

Continue reading
Older posts Newer posts