Top 10 most ridiculous Windows Vista error messages – priceless though!!!

2010-02-10 0 min read Linux
\"Windows
Image by Stijn Vogels via Flickr

Windows Vista is always in the news on the blogosphere about how effective it performs. No matter what version of Vista you may be running, it’s

possible that you may have already seen these error messages more than once and may well probably be fed up with them!

Continue reading

Openoffice.org and/or Excel useful tips.

2010-02-10 2 min read Fedora Learning Linux

Today I was working on Excel sheets and had to do quite a lot of manipulations. Here are some of those:

  1. Find the value of the cell whose number is stored in another cell.

You can use the indirect function.

Here is example:

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_0022.jpe"><img class="size-full wp-image-959" title="indirect" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_0022.jpe" alt="indirect" width="354" height="98" />

That&#8217;s cool and easy.

  1. Indirect reference with some constant values.

You can add constant and cell id with &#8221;&&#8221;

Continue reading

Annotating the photograph with comments.

2010-02-10 1 min read Fedora Linux Photo

There is a nice Linux command called convert. This command can be used in various ways to do image manipulation. One of them is to embark your image with some text. Here is how to do it.

**echo &#8221;Annotating the image &#8221;$2&#8221; with $1&#8221;
convert -font  Verdana -pointsize 40 -fill red -draw &#8221;text 100,100 &#8221;$1&#8221;&#8221; &#8221;$2&#8221; &#8221;$2&#8221;
**

It will be good idea to save this as &#8221;annotate&#8221; as we will use this later too.

Continue reading

Script to Watch for Ubuntu 9.10 Launch – can be used in other scenarios.

2010-02-10 1 min read Linux

I know ubuntu is out already but this is something that you can use to monitor a webpage.

This script will run check a for the Ubuntu 9.10 launch once every 5 mins and let you know when it&#8217;s available:

while [ 1 ]; do if [ -z \"`curl -I \"http://cdimage.ubuntu.com/releases/9.10/release/\"|grep \"404\"`\" ]; then kdialog --msgbox \"9.10 Released\"; exit; fi; sleep 300;  done

<a href="http://feedads.g.doubleclick.net/~a/99XcDO7_UNXZESNlOirXkV4_tfA/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/99XcDO7_UNXZESNlOirXkV4_tfA/0/di" alt="" align="bottom" />
<a href="http://feedads.g.doubleclick.net/~a/99XcDO7_UNXZESNlOirXkV4_tfA/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/99XcDO7_UNXZESNlOirXkV4_tfA/1/di" alt="" align="bottom" />

Continue reading

bash script with sql to get the number of records from multiple tables.

2010-02-10 1 min read Bash Database Learning Linux Solaris

Here is the bash script:

#!/bin/sh
names[1]=errorlog
names[2]=amit1log
names[3]=amit2log
names[4]=amit3log
names[5]=amit4log
j=1
echo $1
for i in $( sqlplus amit/passwd@tns @get_count.sql |sed  -n &#8217;/COUNT/,/Disconnected/p&#8217;|sed &#8217;/COUNT/ d&#8217;|sed &#8217;/—/ d&#8217;|sed &#8217;/Disconnected/ d&#8217;|tr &#8217;n&#8217; &#8217; &#8217;  )
do
temp=${names[$j]}
let count=30-${#temp}
for ((I=1; I <= $count ; I++))
do
printf &#8221; &#8221;
done
echo  &#8221;${names[$j]}    : $i&#8221;
# echo $j
let j=j+1
done
echo
echo

and the required sql script:

select count() from errorlog;
select count(
) from amit1log;
select count() from amit2log;
select count(
) from amit3log;
select count(*) from amit4log;
quit;

Continue reading

x-marks saving lives.

2010-02-04 1 min read Firefox

Couple of days back my TeraByte HDD crashed and I lost almost everything, including my homedir. I will tell you my experiences and how my measures helped me lose not much data. So I will begin with one of the most important aspects. My BROWSER.

I have all my passwords stored in the browser and I rely on them so it is not stored anywhere else. Also, I have lot of bookmarks which help me do lot of stuff. Meaning, all these are very important for me. So, I had a backup plan for my passwords and bookmarks.

Continue reading

PackageKit error File \”/usr/share/PackageKit/helpers/yum/yumBackend.py\”, line 1215, in _get_depends_not_installed – Resolved

2010-02-04 1 min read Fedora

In packagekit, if you getting the error below:

Traceback (most recent call last):
File &#8221;/usr/share/PackageKit/helpers/yum/yumBackend.py&#8221;, line 1215, in _get_depends_not_installed
rc, msgs =  self.yumbase.buildTransaction()
File &#8221;/usr/lib/python2.6/site-packages/yum/__init__.py&#8221;, line 719, in buildTransaction
self.plugins.run(&#8217;postresolve&#8217;, rescode=rescode, restring=restring)
File &#8221;/usr/lib/python2.6/site-packages/yum/plugins.py&#8221;, line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File &#8221;/usr/lib/yum-plugins/remove-with-leaves.py&#8221;, line 71, in postresolve_hook
if opts.remove_leaves or remove_always:
AttributeError: &#8217;NoneType&#8217; object has no attribute &#8217;remove_leaves&#8217;

then you can resolve it. The solution to the problem is there in the traceback, luckily this time.

Continue reading
Older posts Newer posts