It is man's ability to remember that sets us apart, we are the only species concerned with the past. Our memories give us voice, to bear witness to history so that others might learn, so they might celebrate our triumph and be warned of our failures ...

Steps to install s3cmd on a shared server

Filed Under (Uncategorized) by Abhishek Jain on 05-08-2010

S3cmd is a command line tool for uploading, retrieving and managing data in Amazon S3. It is best suited for power users who don’t fear command line. It is also ideal for scripts, automated backups triggered from cron, etc.

S3cmd is an open source project available under GNU Public License v2 (GPLv2) and is free for both commercial and private use. You will only have to pay Amazon for using their storage. None of these money go to S3cmd developers.

Mentioned below are the steps to install s3cmd on a shared server.

1. Download s3cmd

2. Copy it to any location on your server

3. Goto to the directory

4. Run python setup.py install –user
–user installs it in the user site-package

‘/home/foo_user/.local/lib/python2.6/site-packages’

5. Add the following to the end of your .bashrc file:
export PATH=$HOME/.local/bin:$HOME/.local/usr/bin:$PATH

“$HOME/.local/bin” prepends /home/foo_user/.local/bin to user’s PATH env variable. This variable is searched for directories, in order of occurrence – when executables are looked for.

6. Logout and login

7. Run s3cmd –configure

Update the credentials and you should be good to go.

Password-less login to your server

Filed Under (Uncategorized) by Abhishek Jain on 01-04-2010

The following three steps should do the job.

Step1

$local> ssh-keygen -t dsa

Step2

upload the ~/.ssh/id_sda.pub to server’s home

Step 3

$server> cat id_dsa.pub >> ~/.ssh/authorized_keys

You should be good to.

Twitter users meet in Pune …

Filed Under (Uncategorized) by Abhishek Jain on 02-06-2009

After last times Pune Tweetup where 60+ people attended it to make it the largest tweetup in India at that time and getting press coverage in Pune Mirror, DNA, Indian Express and TheTossedSalad which included twitter celebs giving a few tips on better mnmgt n usage of the service,

Agenda is Open. :)

Venue: The Mint Cafe, Below Pune IT Labs, Opposite Nilgiri Heights, Shivaji Housing Society, SB Road

Date: 6th June, Sat

Time: 6:30 pm

IE 6 related CSS issues

Filed Under (Uncategorized) by Abhishek Jain on 19-05-2009

Tagged Under : , , , ,

Am sure each and every developer must have banged his/her head on the keyboard because of what IE 6 does to the CSS. Cross browser behavior has always been an issue especially because of IE which maintains its own standard every where.
I came across the following code which might end atleast some of the nightmares.

Upgrade MSIE5-6 to be compatible with MSIE7.

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
<![endif]-->

Upgrade MSIE5-7 with advanced CSS features missing from MSIE7.

<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
<![endif]-->

You do not need to include IE7.js if you are using IE8.js

PNG

The script only fixes images named: *-trans.png

Unfortunately, the transparent background image cannot be tiled (repeated) using background-repeat. Nor can it be positioned using background-position.

SRC: http://code.google.com/p/ie7-js/

Caching of data retrieved from Database

Filed Under (Uncategorized) by Abhishek Jain on 18-05-2009

We had a requirement in which data for each user would be filtered based on the search criteria submitted by the user. Now the problem was that the number of records in the database would be huge, starting with more than 1 million records.

So hitting the database again and again didnt seem to make much sense.

Am looking into the following options to optimize things a little here

OSCache – http://www.opensymphony.com/oscache/
EHCache – http://ehcache.sourceforge.net/

In case anyone is aware of any better option, please lemme know

Migrate apps from Internet Explorer to Mozilla

Filed Under (Uncategorized) by Abhishek Jain on 13-05-2009

Tagged Under : , , , , ,

Ever have trouble getting your Internet Explorer-specific Web applications to work with Mozilla? This article covers common issues associated with migrating applications to the open source Mozilla-based browser. You’ll first learn basic cross-browser development techniques, and then develop strategies for overcoming the differences between Mozilla and Internet Explorer.

Click on the link below to read the article

SRC: IBM Developer Works

Another interesting link:

7 JavaScript Differences Between Firefox & IE

RELATIONSHIPS AND PHYSICS

Filed Under (Uncategorized) by Abhishek Jain on 01-05-2009

First things first ..  i was never great at physics so ignore my incorrect use of terminologies at times ..

I know this might sound a ll weird to some of us … i mean how can physics and relationships even
have anything common ..

Anyways, as far as my understanding of physics goes .. any particle in an uncomfortable (which can at times be termed as higher energy state) state has a tendency to come down to a more comfortable state ..now this
thing can be applied to humans as well .. in a relationship if either person involved is in a uncomfortable state he/she will have a tendency to move down to a comfortable state … the current situation in which one of the persons is uncomfortable might seem ok for the bond between the two .. similar to the bond between two particles ..but if you see deep down the bond,  there is a probability where it might not last for long .. because eventually the uncomfortable individual (particle) will tend to change .. and then will give rise to typical issues like “You  are no longer the same person and blah blah” .. now the million dollar question arises “Who was wrong in the whole process” … i suppose no one ..it was something deemed to happen .. what is important here to is to remember that if things don’t change or people involved don’t adapt and accept the other person the way he or she is .. its gonna rupture the bond between the two for sure .. or cause significant damage which one might not be able to recover from .. Just remember one thing .. if this bond breaks it will result in release of lot of energy .. which is true from physics point of view as well .. Trust me it wont be one person facing the brunt of everything .. it ll be equally faced by both involved .. One mistake which people tend to commit in such situations is assuming that i am facing more problems than the other person involved because of whatever happened .. a piece of advice .. don’t do that .. it ll only worsen things and in fact reduce whatever little probability/hope left for recreation of the bond .. BEST OF LUCK !!!…

Ya one more thing which i read somewhere (with some addition from my side) .. felt like sharing with you guys …
Its called the theory of “<strong>JIGSAW PUZZLE</strong>” .. as per the the theory ..The human brain draws a picture of somethingand then starts picking up pieces from the past which fit into that puzzle .. for example you are in a fight with someone .what happens next is that you draw a picture of that person in your mind . . and then start picking up pieces from the past that fit into that puzzle and strengthen you belief .. what eventually happens is that you start justifying your acts on the basis of that picture ijn your mind and enter a viscious cirle .. coming out of which might prove to be kinda difficult…so BEWARE !!! is all i wanna say .. stay away as far as possible from this theory and its implementation ..

Subscribe to Rss Feed : Rss