Good stuff. Foursquare is a service that really gets better by the month. It’s a perfect use case of aggregating user data for a better user experience. I’ve used the menus which were already in the app, and the presentation and access to data were already great. It’s good to know the gaps are going to be slowly filled.
NPR: Burgers for Bugs
Maybe It’s Time To Swap Burgers For Bugs, Says U.N. — The Salt @NPR. Interesting. Don’t see why not, after years of being a vegetarian. I hear the part about it being “gross”, but honestly meat doesn’t seem as appetizing when you don’t eat it, either.
RT @algore: Soil contains 1/3 of all living organisms, yet only 1% identified. What a beautifully complex place we call home
04302011325
Pruning APT Sources
I’ve used Debian and Ubuntu for a long while now, and managing its list of software sources has never been that much of a joy. It’s easy enough to add things in, but removing them is not always a great thing to do. If you have software installed from one of these sources, you probably want the updates, for security reasons if nothing else.
Still, I managed to go on a tear, installing all sorts of applications, and when the smoke cleared I was pretty sure I didn’t need everything that I had. It was time for a bit of cleaning up. Problem is, the APT tools don’t give you a lot of insight into how to proceed.
Disclaimer
I should add that there’s a good reason for this obscurity: if you have a package, and you drop the source, again, you run a good risk of having that software installed and never able to be updated.
Generate list
With your safety hat on, you can now proceed to running the following command:
for i in `dpkg --get-selections | cut -f1`; do \
grep -lr "^Filename: .*/${i}" \
/var/lib/apt/lists/ 2>/dev/null >> /tmp/list; \
done
The first line gets a list of the software which you have either installed or half installed (“deinstall”). For each of these packages, then, we perform a grep to look for that package in all the files in /var/lib/apt/lists/.
Process list
This list which you created is a bit of a mess. Each line is the filename from which you found the package, which corresponds to one of your software sources. Luckily, two stock utilities can clean this up:
sed 's/-[a-z0-9]\+_Packages$//' list | sort | uniq
You can omit the sed command if you’d like, but it will filter out duplicates for each architecture — well, in my case anyway, for amd64 and i386. The list still needs room for a bit of interpretation, but it should be easy enough to tie each line to a record in the /etc/apt/sources.list file, or in one of potentially many files in /etc/apt/sources.list.d/.
RT @DEVOPS_BORAT: Word “impossible” is not exist in devops vocabulary. Instead we are use “done by Q4″.
Nirnroot and bridges and twigs
It’s a rather blessed life with dreams like that. So many layers fit together and played in some strange space/land opera. My brain felt fully stimulated, raced to and fro across invisible boundaries. I was driving a van off a bridge just to swim up from the wreckage (metaphor), finding the first real nirnroot (Skyrim) by the shore, scurrying into sewer drains covered by twigs to get to the networks of unstrings dormitories. For whatever reason, I was also serenely taking a shit on a toilet situated in the middle of the aisles in a particular grocery store — it’s just what you did in this particular universe.
The dream made me think of a couple things. The first is that aging is a much more beautiful thing than we give it credit. The me from ten years ago was an idiot, and I don’t consider I’ve ever been a stupid man.
The second is that our brains just get to be better processors the longer their uptime, but there’s a limit to the usefulness of that. More and more we have to loosen the controls and our assumptions, so that new information can break through the natural barriers we put up to do the tasks normally at hand.
