Minimize the download size for updates.

2010-02-10 1 min read Fedora Linux

Fedora has rolled out presto repositories. What this means to the users is that the download size for the updates would be greatly reduced. To use the feature, first install the yum plugin:

sudo yum install yum-presto.noarch

Presto uses delta rpms. These delta rpms are quite small in size (eg few kbs instead of 15 MB for firefox 3.5). These delta rpms are used to re-create the original rpm and this is completely transparent to the end user. So, next time when you update with the plugin installed you will see the difference in the download size.

Continue reading

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

How To Build A Self-hosted WordPress Blog For Free

2010-02-04 1 min read Linux

A blog is a layman-friendly variation of a website, and having a blog is one of the many ways to state your presence in the virtual world. While there are many hassle-free blog services out there that will take care of everything except automatically blog for you – like <a href="http://www.makeuseof.com/tags/blogger">Blogger and <a href="http://www.makeuseof.com/tags/wordpress">WordPress, nothing can beat a self-hosted blog in the terms of customization and self pride.

The problem is, the process of building your own self-hosted blog is (almost always) not free and is considered complicated. So most newbies will choose the easier path and never give themselves a chance to experiment.

Continue reading
Older posts Newer posts