while I was doing some server maintenance for a customer last night it required that i find out what cron jobs were in the cron tabs of all the users on the machine. I found this handy script that will list out all the cron jobs for all the users
for user in $(cut -f1 -d: /etc/passwd)
do echo $user && crontab -u $user -l
echo ” ”
I have upgraded to ubuntu 11.10 oneiric ocelot yesterday from 11.04 hear are my thoughts on it.
- The interface has been polished and the Unity interface is usable now
- I like the new login screen with its smooth animation. But some how when you lock the machine the old interface is visible
- The lock screen animation is much smoother now
- The icons that have been used look much nicer and cleaner
- search inside unity works and their no lag between pressing the windows key and the unity menu opening up
- The new Empathy and Gwibber looks really nice
- The new software center is really nice and easy to find applications
I was browsing Reddit and I stumbled upon a small sub-reddit at /r/Earthporn this small conner of Reddit had higres pictures of earth scenery. From there i was directed to /r/CityPorn, /r/SpacePorn , /r/MachinePorn, /r/AnimalPorn and /r/BotanicalPorn all HD pic. This got me thinking since i am lazy as fuck i did not want to spend every day going through six sub-reddit download and save them the best way to do is to automate the process.
In order to download the images the first thing that needed to be down was to harvest the urls from the sub-reddits home page. I could have gone and screen scraped with beautiful soup but reddit provides this nifty feature where by if you append .json to end of a url eg http://www.reddit.com/r/earthporn/.json it will return the json file for the corresponding page with posts and urls and other data (also if you append .xml it will return and XML file with the pages data ). This allows me to skip all the dirty crud of passing html of a constenly changing page. Below is the version 0.0.1 of URL harvester code.
Right now, its raining methane on Titan. The planet Uranus, apparently trying to live up to its name, is orbiting the sun sideways, while venus spins backwards. There ares stars exploding, black holes gorging, galaxies colliding.
And here we sit, on a planet pock-marked by collisions, rocked by earthquakes, shaken by storms. a planet doomed to be fried with radiation as its magnetic fields collapse, until finally the sun grows into a red giant and leaves nothing of the Earth but dust.
Here we sit, glasses on over noses, inhalers in our pockets, braces on our teeth, waiting to die as our heart muscles expires, our cells decide to grow forever, or blood vessels just pops and some times in unnatural ways too.
here we sit, and some of us say, behold, look at the order of it all
Inspiring to say to least. We need more eloquent people like Carl Sagan to save us from the bearded know nothings that want to take us back to stone age.
View of Earth and the Moon From Mercury. Image Taken by Messenger space probe in orbit around Mercury
From this distant vantage point, the Earth might not seem of particular interest. But for us, it’s different. Look again at that pale white dot. That’s here, that’s home, that’s us. On it everyone you love, everyone you know, everyone you ever heard of, every human being who ever was, lived out their lives. The aggregate of our joy and suffering, thousands of confident religions, ideologies, and economic doctrines, every hunter and forager, every hero and coward, every creator and destroyer of civilization, every king and peasant, every young couple in love,every redditor, every mother and father, hopeful child, inventor and explorer, every teacher of morals, every corrupt politician, every ‘superstar,’ every ‘supreme leader,’ every saint and sinner in the history of our species lived there – on a mote of dust suspended in a sunbeam.