captcha\’s implemented finally.

2010-04-30 1 min read Linux

For last couple of time I had tried to set the captcha to avoid spam. Getting nearly 2-3 spam now everyday and is on the increasing side, so finally I worked out to put the spam control meaasure – captcha’s.

With the captcha’s in place, I have removed the moderation on the comments, but still reserver the right to remove a comment without any reason.

If you find any issues with the captcha let me know at wordpress@amit-agarwal.co.in

Continue reading

AndreaMosiac.. The way to create a mosaic.

2010-04-30 1 min read Linux

<a href="http://www.andreaplanet.com/andreamosaic/download/" target="_blank">Download from here, AndreaMosaic. It us cinoketekt free for personal use and does just what the name says, creates mosaic. I tried this on Linux and was flawless with wine. Good show 🙂

Here&#8217;s how to use it:

Start AndreaMosaic

<img class="size-full wp-image-657" title="andreamosaic" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot-andreamosaic2.jpg" alt="andreamosaic" width="585" height="477" /><div class="zemanta-pixie">and select your base file by clicking on the &#8221;+&#8221;:<img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/pixy.gif" alt="" />

<div class="zemanta-pixie">

<img class="size-full wp-image-658" title="andreamosaic" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot-andreamosaic.jpg" alt="Base image" width="585" height="477" />

<div class="zemanta-pixie">And now select the images that would tile to give you the base image. Click on select tiles:
<div class="zemanta-pixie"><img class="alignnone size-full wp-image-659" title="tiles" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/tiles.jpg" alt="tiles" width="602" height="452" /> <div class="zemanta-pixie"> <div class="zemanta-pixie">To start off, click on ok and then create mosaic on the initial window and you get your first mosaic. Here&#8217;s an example: <div class="zemanta-pixie"><img class="alignnone size-full wp-image-660" title="mosaic" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/mosaic.jpg" alt="mosaic" width="450" height="319" /> <div class="zemanta-pixie"> <div class="zemanta-pixie">There are various settings you can tweak to get different effects, so enjoy 🙂

Continue reading

Local DNS Server for faster DNS response time

2010-04-30 1 min read Fedora Linux

Here&#8217;s a quick tip for faster DNS response time. I installed a local DNS server which can contact the remote DNS server and enabled caching for the local DNS server. This ensures that the response time for the DNS queries is much faster.

I am on Fedora 10, so here&#8217;s what I was required to do:

yum install dnsmasq

After this I created a file called /etc/resolve.dns with the nameserver address&#8217;s and heres what it looks like:

Continue reading

Delete all files in a folder that don't match a certain file extension

2010-04-30 1 min read Bash Fedora Linux

$ rm !(.foo|.bar|*.baz)

Deletes all files in a folder that are NOT *.foo, *.bar or *.baz files. Edit the pattern inside the brackets as you like.

  • <a href="http://www.commandlinefu.com/commands/view/5351/delete-all-files-in-a-folder-that-dont-match-a-certain-file-extension">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/hutch">View all commands by <a href="http://feeds2.feedburner.com/commands/by/hutch">hutch

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="" align="bottom" />

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

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

<img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~r/Command-line-fu/~4/TCRb2ku_V1Y" alt="" width="1" height="1" align="bottom" />

Continue reading

Setup of gdm

2010-04-29 1 min read Linux

gdmsetup is the command you are looking for… Just run gdmsetup and you get a whole lot of configurations that you can modify.

Building Your Own Linux Kernel, part 1

2010-04-29 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

There are a lot of reasons to customize your own Linux kernel: better performance, bugfixes, try out new features, and earn valuable geekcreds. In this new series Akkana Peck introduces us to the fundamental steps of building a Linux kernel.

URL: <a HREF="http://lxer.com/module/newswire/ext_link.php?rid=125920">http://lxer.com/module/newswire/ext_link.php?rid=125920

Do not close stderr

2010-04-29 1 min read Linux

<a href="http://bashcurescancer.com/do-not-close-stderr.html">A few years ago, I wrote a post commenting on how ugly this was:
$ someprog 2>/dev/null
I was nearly imploring the reader to close stderr:
$ someprog 2>&-
Some very knowledgeable anonymous commenter explained why that was a bad idea. At the time, I didn&#8217;t understand exactly what they were saying. As such, …

Older posts Newer posts