One more fool got added in the list, this time he enjoyed doing that 
Friday, December 21, 2007, 09:47 AM - Fun
Hi All,

One more fool got added in the last article's "fools list"...
why?
He replied to the mail which I had sent to a lot of friends notifying about the updated article.

But only one mistake... (As usual a stupid one):

He clicked on reply to all and sent a "Private and personal message"



----------------------------------------------------------------
From: nishu.jameendar@consistent.co.in
To: aniruddha<at>somewhereontheplanet.com , plus a few more mail ids ...
Subject: RE: A foolproof story
Date: Fri, 21 Dec 2007 15:15:26 +0530

Tujha site chya clicks vaadhnya saathi bara FUNDA shodhun kadhlais re …….







Thanks & Regards

Replied to:
From: aniruddha<at>somewhereontheplanet.com
Sent: Friday, December 21, 2007 3:12 PM
To: nishu.jameendar@consistent.co.in, plus a few more mail ids ...
Subject: A foolproof story



Hey guys,


Read this fools story to become a "Fool Proof" person...
This is about two different fools, who did same stupid thing...

Most of you know one of them ;)
(Don't ask, about their whereabouts, I just wont tell you... but you can guess it..)
Follow this link to read the story...


Aniruddha



Never miss a thing. Make Yahoo your homepage.

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Consistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Consistent Systems Ltd. does not accept any liability for virus infected mails.
----------------------------------------------------------------

Moral of the story is you have to be very careful while on the:
WILD WILD WEB!

Aniruddha


add comment   |  permalink   |  related link   |   ( 3 / 217 )

Two fools proclaiming their foolishnes! 
Friday, December 21, 2007, 09:20 AM - Fun
Hey Guys,

I got two mail from two different persons who are claiming that they are fools!

Interested?

Read the mails:
(Actual mail ids and names are removed / changed)

----------------------------------------------------------------
First Fool
----------------------------------------------------------------
Date: Wed, 19 Dec 2007 18:18:37 +0000 (GMT)
From: Mechanical.Makrand<at>somewhereontheplanet.com
Subject: I am a fool
To: aniruddha<at>onsomeotherendofplanet.com
Message:
I am a fool I have kept logged in myself on a computer and got away....




----------------------------------------------------------------
Second Fool
----------------------------------------------------------------
Date: Fri, 21 Dec 2007 00:53:14 -0800
From: rahul.aaglave<at>yadnya.com
To: aniruddha<at>onsomeotherendofplanet.com
Subject: I am a fool
Message:
Hi,

I am a fool that I kept logged in and left the terminal...


----------------------------------------------------------------


I hope, everybody understands the seriousness of their IDENTITY!


Aniruddha
3 comments ( 93 views )   |  permalink   |  related link   |   ( 2.9 / 212 )

An amazing photograph 
Thursday, November 22, 2007, 11:42 AM - General
Here you can see an amazing photograph:

Can you find out whats odd?


Can not figure it out?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
OK, OK!
In a closer look you can find it out that the black camels are not camels at all, they are just SHADOWS! And the photograph is taken from sky to ground view! Thats just great!



Aniruddha
add comment   |  permalink   |  related link   |   ( 3 / 198 )

A short Trip to Mahabaleshwar 
Wednesday, November 14, 2007, 09:28 AM
Just 2-3 days ago I (Aniruddha) , Nitin Kshirsagar, Nityanand Parab & Bhushan Kamble had went to a short trip to Mahabaleshwar.
A few photographs (taken by Bhushan) can be seen here:-

Flying High:
Three para gliders flying in the sky:
(Although only one can be spotted in this photograph)

A comment from the crowd:
If you fell in water, you can try to swim... But what about the skies?
Another comment from the crowd:
Hope, they don't play "Kata Kati" in air!!
(Kata Kati is a game played using Kites, where everybody tries to cut the strings of other's Kites.)

A lot of other images are there and we really missed the high resolution cameras in Thoseghar (A place near Sajjangarh, Satara) waterfall.


Aniruddha

4 comments ( 52 views )   |  permalink   |  related link   |   ( 3 / 185 )

http://aniruddhas.com/tutorials/Hardening-CentOS-5.html 
Sunday, September 2, 2007, 11:49 AM - Tutorials
Hi,

Here is a simple guide to harden redhat / centos linux

Although its not based on hard and fast rules, you will get some
good hints how its done.

I hope it helps someone.


Thanks,

Aniruddha
2 comments ( 63 views )   |  permalink   |  related link   |   ( 3 / 263 )

Great quotes that will set a fire - Aniruddha 
Thursday, August 9, 2007, 08:58 AM - Think
Motivational

Mary Tyler Moore
"Take chances, make mistakes. That's how you grow. Pain nourishes your courage. You have to fail in order to practice being brave."


Samuel Johnson
"Few things are impossible to diligence and skill. Great works are performed not by strength, but perseverance."

Benjamin Disraeli (1804 - 1881)
"Dost thou love life? Then do not squander time, for that's the stuff life is made of."

David Lloyd George
"Don't be afraid to take a big step if one is indicated. You can't cross a chasm in two small jumps."

Narenda Rocherolle
"Aspiring to a small business that does what it does very well is a noble pursuit."

Anne Morrow Lindbergh
"Arranging a bowl of flowers in the morning can give a sense of quiet in a crowded day - like writing a poem, or saying a prayer."

Henry Wadsworth Longfellow
We judge ourselves by what we feel capable of doing, while others judge us by what we have already done.

Benjamin Disraeli (1804 - 1881)
Nurture your mind with great thoughts; to believe in the heroic makes heroes.

Bette Davis (1908 - 1989)
There are new words now that excuse everybody. Give me the good old days of heroes and villains. the people you can bravo or hiss. There was a truth to them that all the slick credulity of today cannot touch.

Bob Dylan (1941 - )
I think of a hero as someone who understands the degree of responsibility that comes with his freedom.

Ralph Waldo Emerson (1803 - 1882)
A hero is no braver than an ordinary man, but he is braver five minutes longer.

Susan J. Bissonette
An optimist is the human personification of spring.

Donald Trump (1946 - ), "Trump: Art of the Deal"
Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.


Aniruddha
add comment   |  permalink   |  related link   |   ( 3.1 / 201 )

Silver Jubilee (25,000) hits at www.aniruddhas.com - Aniruddha 
Friday, August 3, 2007, 07:14 AM - General
Hurray,

Thats just great! I had never thought that www.aniruddhas.com will go above a few hundred hits. But it just crossed the silver jubilee mark of twenty five thousand (25,000) hits.

I (Aniruddha) will grab this opportunity to thank all those visitors of www.aniruddhas.com that have visited www.aniruddhas.com and are continuing to visit. I would also like to ensure all the visitors of www.aniruddhas.com, that I will keep on adding some interesting content to the site.

This content will include tutorials, some random thoughts, some poems , jokes and essays.

Only one thing I would complain about is, a lot of visitors send mails through contact me section of the site. It would be better if comments are added to the respective sections. That would help everybody else in getting that information.

I hope that Aniruddha's blog at aniruddhas.com will be of some help to the visitors in some ways.

Thanks again,

Aniruddha
add comment   |  permalink   |  related link   |   ( 3 / 189 )

An Update to previous post about MIMEDefang filter 
Tuesday, July 24, 2007, 12:12 PM - Tutorials
This is in ref. with "A MIMEDefang filter to block spam, mail forging, adding boilerplates, smtp dictionary attacks"


Few Things that I had not mentioned clearly in the above post:
The filter DOES accept the first spam mail from any ip address, adds boilerplate ("the ip has got banned please contact admin in case of any issues...") and then sends it to the recipient.
Then it adds the ip into the database and the next time when spammer tries to connect to the server, it simply rejects the spammer.

This is the default behavior so that false alert should not ban the genuine user forever. This way the filter will become more and more mature as and when new ip addresses are banned.

But yes, If you want this action to be changed to:

"Discarding the first spam message from certain ip address too"
then I would suggest following change in the code:

------------------------Original code snippet---------

my($hits, $req, $names, $report) = spam_assassin_check();
action_change_header("X-Spam-Score","$hits :: $names ");
if (($hits > 10 ) && (!&ISMYIP($RelayAddr))) {
my $dbh = DB_CONNECT();
my $ath = $dbh->prepare(qq{insert into `blockedip` values('$RelayAddr')});
$ath->execute();
$ath->finish();

$dbh->disconnect();
$BOILit = "This is a Spammer $RelayAddr so it has got banned. Contact admin if any issues " ;

}
append_text_boilerplate($entity, "$BOILit ", 0);

}
# DO NOT delete the next line, or Perl will complain.
1;


------------------------Suggested code snippet---------

my($hits, $req, $names, $report) = spam_assassin_check();
action_change_header("X-Spam-Score","$hits :: $names ");
if (($hits > 10 ) && (!&ISMYIP($RelayAddr))) {
my $dbh = DB_CONNECT();
my $ath = $dbh->prepare(qq{insert into `blockedip` values('$RelayAddr')});
$ath->execute();
$ath->finish();

$dbh->disconnect();
$BOILit = "SpAmMeR";
}
if ($BOILit ne "SpAmMeR") {
append_text_boilerplate($entity, "$BOILit ", 0);
} else {
action_discard();
}
}
# DO NOT delete the next line, or Perl will complain.
1;


############################
#CODE ENDED HERE
############################


Few more things that users keep on asking me:

1) About Boiler Plate Data:
These boiler plates are to be added manually and they are not added automatically.
Each mail account can have his /her own boiler plate.
Don't use this as a signature because this costs cpu power and other resources.
This is to be added as per the "Organizational role played by the mail account holder". Thats defined by the organizational policies in most cases.

2) Currently there are no tools to add or remove mail ids, blocked ips, boiler plates or for any data manipulation in the database.

3) About further developments of this basic simple filter:
Hmmm..
I am seriously thinking of creating A GPL based complete spam protection suit. Which would use:
i) SpamAssassin
ii) MIMEDefang
iii) Apache for web based administration
iv) MySQL
v) PHP as a development language for web based control panel.
vi) A MIMEDefang filter to bring i, ii, iv and sendmail together.
AND
vii) Most Important SENDMAIL!

I would appreciate if some one can suggest me features that should be included.

Hey, but I have not promised that I will be doing all of the above :WINK: though I would be very much happy if I can.




- Aniruddha Thombre
<a href="http://www.aniruddhas.com/" target="_blank">- Aniruddha Thombre</a>
1 comment ( 7 views )   |  permalink   |  related link   |   ( 3 / 206 )

MySQL Replication made simple  
Friday, July 20, 2007, 06:52 AM - Tutorials
MySQL Replication made simple

Edit /etc/my.cnf on Primary / Master MySQL server from which you want to replicate the data
to add following lines:
------------------------------------------------------
#Name of Binary log File Which has to be provided to slave server too.
log-bin=mysql-bin.log

#Name of the database which you want to replicate or the one which you dont want to be replicated.
binlog-do-db=replicatethisdb
binlog-ignore-db=dontreplicatedb

#Unique server id (Unique among all replication master / slaves)
server-id=1
------------------------------------------------------

---------------------------------------------------------------------
Sample MySQL Configuration file On the Master:
/etc/my.cnf
---------------------------------------------------------------------
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-bin=mysql-bin.log
binlog-do-db=replicatethisdb
binlog-ignore-db=mysql

server-id=1

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
---------------------------------------------------------------------


restart mysql on server

Connect to the mysql server:-

mysql -u root -p

Execute following:-

GRANT REPLICATION SLAVE ON *.* TO 'slave'@'remote.hostname' IDENTIFIED BY '<some_password>';
FLUSH TABLES WITH READ LOCK;

#You need to say *.* not replicatethisdb.* as REPLICATION is an administrative right.


SHOW MASTER STATUS;
 +------------------+----------+----------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+-----------------+------------------+
| mysql-bin.000001 | 98 | replicatethisdb | mysql |
+------------------+----------+-----------------+------------------+

#Record filename and Position in above table.


on slave edit in /etc/my.cnf to add :

server-id=2
master-host = my.masterhostip.or.name
master-user = slave
master-password = some_password
replicate-do-db = replicatethisdb
log-warnings


restart mysqld on slave



On slave connect to mysql:

mysql -u root -p
#Stop slave if it is working with:
STOP SLAVE;

#Execute following:
CHANGE MASTER TO MASTER_HOST='my.masterhostip.or.name', MASTER_USER='slave', MASTER_PASSWORD='some_password', MASTER_LOG_FILE='recorded_log_file_name', MASTER_LOG_POS=recorded_log_position;

# that becomes following in our case:
CHANGE MASTER TO MASTER_HOST='my.masterhostip.or.name', MASTER_USER='slave', MASTER_PASSWORD='some_password', MASTER_LOG_FILE='mysql-bin.000001', MASTER_LOG_POS=98;


#Restart both mysql servers to check if it is working.
#To check that fire up following queries:
#This is to be executed on the master server
SHOW MASTER STATUS;

#This is to be executed on the slave server
SHOW SLAVE STATUS;

#Record log file names and positions and check if both are matching. It should, if it is working.

Thats it! We have got MySQL Replication working!
Isn't that "MySQL Replication made simple" ?




- Aniruddha Thombre
Other Tutorials on aniruddhas.com
2 comments ( 114 views )   |  permalink   |  related link   |   ( 2.9 / 205 )

MyDNS Features 
Tuesday, June 12, 2007, 06:42 AM - Tutorials
So, Whats MyDNS?

Its a DNS server.
For further details on how to install and configure it, you may have to visit:-
http://mydns.bboy.net/
or also mysql and postgresql's respective home pages.

We are just going to discuss the features and benefits of MyDNS

MyDNS:- MySQL (Also PostgreSQL) backed DNS server

Features:-

"stability, security, interoperability, and speed" as the author says!

No need to reload dns server after any change in any or all zones.
Speed is not affected no matter how many zones we have, and how many entries a zone has.
As it is backed up by MySQL /PostgreSQL we may load balance / mirror the databases.
The structure may look like this:-

1) Master DNS server
-- has a database holding all required zone info
-- that database is allowed to be replicated on slaves
-- gets zone info from zone files located on respective servers
-- we can use tools such as myphp or admin scripts for myDNS to change the settings for individual or all files manually whenever required
-- We can also use API's for control panels to directly modify the databases on DNS servers If any control panels such as plesk / cpanel etc are used.
-- Developing a simple application for a database with just two tables is not difficult :WINK: .
-- we can have completely different database server setup if required

2) Slave DNS server
-- database is replicated from the master dns server, every 60 seconds or so

If any thing goes wrong with master dns server (such as major hardware failures) we may immediately add master dns server's ip to the slave and stop replication process.

Homepage for MyDNS is located here:-

http://mydns.bboy.net/


- Aniruddha Thombre
2 comments ( 28 views )   |  permalink   |  related link   |   ( 2.9 / 186 )


Back Next