Do you ever need to install a rpm package however don’t have permission to do it as root. You can install the rpm in your personal home folder as long as all the pre-requisites are met.
Here is how.
Step 1. Intialize your own private rpm db
|
|
rpm --initdb --root /home/username/local --dbpath /home/username/local/lib/rpm |
Step 2. See what files are in the rpm and where they will be installed by default. Relocate the path to your rpm root directory.
|
|
rpm -qlp package.rpm |
This will list all the files in the rpm. If they all start with /usr, we can just use /home/username/local as the new path as shown below.
Step 3. See if all dependent rpm met?
|
|
rpm -ivh package.rpm |
This will fail as you don’t have permission to install. However if doesn’t complain about dependent files then you are good. Other install the dependent rpms first.
Step 4. Install the rpm
1 2 |
rpm --root /home/username/local --dbpath /home/username/local/lib/rpm \ --relocate /usr=/home/username/local --nodeps -ivh package.rpm |
You have to add the flag –nodeps as the dependent rpms are in the system rpm database but not in your own.
I needed to disable a site from executing body onload event. Onload code actually opened the print dialog box and closed the window when the print dialog is closed. However I needed to see how the page looks like in the browser without actually printing.
Greasemonkey came to rescue. I just created a very simple script and added
|
|
document.body.setAttribute('onload',''); |
Hope this helps somebody out there.
References:
Google Group Discussion
Recently I saw an interesting job posting for an Ruby on Rails developer at Rubyrockstars.com. The folks at Payscroll.com(yeah it’s a salary research company) are advertising a rails guy at 15$-20$ bucks an hour and that also with 50% salary deferred plan. So if you do the math then it’s $7.50 to $10 bucks per hour and it’s pretty borderline minimum wage for sure and don’t get me started on the equity crap some equity.
So that brings the question: is it so bad in US that Rails coder are willing to work for minimum wage? or is it something outsourcing wage at going rate?
Confuses the hell out of me.
Update
Clueless Job Posting. Read This
If you need to backup or copy a huge directory to multiple disks then this might be useful to you. I am on Mac OS X Leopard.
1 2 3 4 5 6 7 |
# Create a image of the folder. hdiutil create -o Image.dmg -format UDRO -srcfolder SourceFolder # Segment the image into multiple segments. hdiutil segment -o Image.Segment.dmg -segmentSize 4.7g Image.dmg |
The above command would split the Image.dmg into multiple segments of Size 4.7GB. The first one would be named Image.Segment.dmg and the rest would be Image.Segment.001.dmg and so on. Burn them to individual disks as you like. To mount the images, mount(double click) the first segment. Mac would do the rest.
I just heard this. There is a new law going around in India where Police can’t arrest a person if the offense carries a penalty of upto 7 yr jail term. I would be honest to say that I don’t know much about this law or don’t know what is the motivation behind this. But this sounds really bad on first read.
In India, attempt to commit culpable homicide, robbery, attempt to suicide, kidnapping, voluntarily causing grievous hurt, cheating, outraging a woman’s modesty and death caused by negligence ( source times of India) are all offenses for which this law would apply and the police can’t arrest.
I think Police in India are a clueless and corrupt bunch. But cutting the criminals a slack no matter what is the reason is insane. Just look at Oakland. When crime occurs our Mayor Ron Dellum blames everybody except the criminals. What else would justify random violence during a protest of police brutality ( which I think sucks and the officer should be hold accountable). That also during second time around when everybody was expecting it and were prepared to deal with it.
Wow… Please somebody educate me!!!!!!!!!



