2008-08-31

Thumbnailing in Nautilus

I was just using my laptop and things started slowing down and swapping like crazy and the other application began freezing. Not this again, I though. So, I switched to doing some tasks on the command-line where I got the notice that there was insufficient space left on my hard disk!

Oh dear, I thought, this must be because of the GNOME source code and my build of it. Well, I went about looking for other sources of junk to remove to free some small amount of space. Eventually. A few megabytes here, a few megabytes there. Actually a rather small lunch, but throwing stuff away can be expensive for my heart. Then, however, I found my free lunch! When I tried to check the size of the ~/.thumbnails directory, nothing happened! It kept working on it, and working on it, and working on it, to no avail. I thought: does the programme do anything stupid that requires more space than I have free? Well, that seemed improbable, so I decided to do a heuristic: find out how many files there are there and the average size of a small set of them. I had about 190,000 thumbnails averaging 50kB each! 36 minutes later, they were removed and I had 9GB back!

Some things I wish thumbnailing in GNOME would do:

  • prevent thumbnails from being generated for files within ~/.thumbnails. (That way, you won't infinitely generate them for infinitely many of them
  • either generate the hashed filenames from a hash of the actual file and not its path, so that way, if I move it or make a duplicate, I won't end up with multiple thumbnails; OR, when files are moved (at least in GNOME applications, which doesn't help my terminal behaviour), find the old thumbnail hashed from the old path and then rename it to a hash of the new path. I can see how the first would slow down thumbnailing, though I have a suspicion that the image down sampling isn't that fast either.
  • Better file system organisation of thumbnails. Right now, tens of thousands will accumulate in ~/.thumbnails/normal :|
  • A limit and some accurate way to determine when it was last used, so we can purge ones we never look at after a few months.

So, it's Open Source: why don't I try to do some of this myself? Well, I might, once I get work out of the way to-day :)

2008-08-26

Back It Up.

Blogger has changed its user interface slightly again. I am also back to using the "Blogger in Draft" dashboard. Yay.

I'm mostly writing this to document the copy command I use to merge directories these days:

cp -av --backup=numbered foo/* foo2/

I'm terrified of dataloss. That's why I use --backup=numbered. I usually merge too many files to make -i interactivity viable. -v verbosity helps me find out what things were backed up (would have conflicted), and -a preserves permissions and timestamps.

Actually, I think I should further investigate rsync. I want something that won't create backups if the files are truly the same (by checksum, or is time+size enough?) but does create unique backups elsewise. Actually, it sounds like this will do the trick

rsync -abz --progress

Right now, I'm orchestrating back-ups for my girlfriend and me. I have a 500GB external HD and she has a 250GB HD. I'm currently packing up the 500GB's contents onto her HD and then will be backuping up her HD and my own to the 500GB external HD. Going through an old backup, I realised that I had lost some files along the way, perhaps just through gross negligence. I'm not sure. I hope to one day retrieve my girlfriend's files locked away on her dead HD from a few months ago. Sigh.

2008-08-22

Found via Language log:

Question to Radio Yerevan

Is it correct that Grigori Grigorievich Grigoriev won a luxury car at the All-Union Championship in Moscow?

Answer

In principle, yes. But first of all it was not Grigori Grigorievich Grigoriev, but Vassili Vassilievich Vassiliev; second, it was not at the All-Union Championship in Moscow, but at a Collective Farm Sports Festival in Smolensk; third, it was not a car, but a bicycle; and fourth he didn't win it, but rather it was stolen from him.

2008-08-17

Spontaneous Update

I have quite a bit to write, and never any time to write it, all of a sudden. So, let's begin with contentless updates, hint at more, and then not indulge you any farther, hurrah?

Work Shirt Drama

At work, we get to dress casually throughout this summer. However, after that, we need to be more formal, to better impress potential clients who will go "Wow, look at how well dressed these people are! This is but one more point in favour of giving them my business!" It sounds shallow, yes, but apparently it works. Anyway, this necessitates a minor expansion to my wardrobe. It amuses me that, while at TRIUMF, most of my wardrobe would easily have been considered as business casual. I had a lot of formal-looking shirts at the time (though not dress shirts). In the 3 years since, I have a more casual wardrobe (not that I actually purchased much in the way of clothing), and left almost all of my formal wear back at my father's. I am impressed by how much it could change without me actively making any effort. I wonder what I will look like fashion-wise in another 3 years! Oh, the shallow prospects! I wonder whether I am shallow. Anyway, shallowness combined with incredible cheapness makes it very difficult to purchase new dress shirts. My requirements are that they fit (15" collars are too small, 16" collars are almost too big!), that they be black (I have actually put great effort into resisting the accumulation of black clothing- however, as my girlfriend notes: I look excellent in a black dress shirt), and that they cost me $15 or less! I investigated Zellers (poor selection of sizes, but nice prices), the Bay (poor prices, but a great selection of sizes), several miscellaneous outlets (prices or sizes always close, but not close enough), Winners (the worst place to look; it was in utter disarray), and Sears, where they had the best deal: 2 dress shirts for $20. Sadly, any package that came with a black one was accompanied by a white one. White isn't so very bad, but I already own one white shirt. OH THE SHIRT DRAMA.

I also acquired snazzy new shoes, but not the snazzy new jackets, found at Zellers. I will upload a photo, or claim to, and then never do it. I have an interest in minimising consumption. I needed shoes, more or less, due to the degradation of the only pair I own. That pair I've only had for four months, though, so they may be called a bad investment. I never really expected them to be very durable, and I abused them. At 4x the price of the last pair (which were $7, by the by), I am optimistic that my new shoes should make at least a year.

Olympian

I don't care about the Olympics, more or less. However, I have, in the past, enjoyed Kendo. Recently, in part due to my girlfriend resuming karate, I am considering resuming Kendo. However, I must find a dojo locally that does not take itself too seriously. The Burnaby one is particularly strict. I cannot bring myself to treat a lot of things very seriously anymore. My irreverence has grown. I seem to take late buses seriously enough, though... Ack! I will become Samurai once more.

I hear from a friend of my girlfriend who has been teaching English in Japan that the cuisine there isn't very vegetarian friendly, due to an inclination to include fish or fish-derivatives in many or most dishes. Yikes! Perhaps I should continue to admire their culture from afar.

Regarding the Olympics, I am mildly disappointed that Canada has started accruing medals. I was pleased to see the National Post list animals who can commonly best our best athletes in speed, weight-lifting, swimming, and jumping. Hurrah for the animal kingdom. They're never invited, mind you.

I have been fascinated by the International situation situated around Russia much more in the past few weeks. Russia seems to have acted rather cleverly. More than I would expect from most modern national governments. Not that my expectations are at all informed.

Dreams

Strangely, I saw my mother in a dream the other day. Do you know how, sometimes, a possibility has passed on, the feeling that, perhaps it might one day just resume being as it was, being possible? In this dream, I saw her at home with my father, and they were both quite happy, and I decided not to draw any attention to the improbability of the situation. I was quite content, despite the illogic, to let it be and be very happy with it. I think it was spurred by seeing a lady who looked like my mother sitting outside of my work the other day. I came very close to approaching her and asking her whether she was German, just to make sure. In reality, logic reigned supreme, sadly. Note to self: sabotage logic.

Sunday's Best

"Sunday's Best" is a neat album released by a friend of mine: Mike Harloff. He's an Ontarian who went to my high school, and the album is very nice. It is a bit mellow but not sad. It is soft but still indie. His Last.fm profile.

More to say

There's more to say, of course, and, of course, I won't say it. I have spent enough time away from bed and I cannot spare anything further! However, I would like to advocate Indie Bird's latest game, Swarm. It's a simple, fun, polished Indie game.

Good night

2008-08-16

When your children borrow your hammer, do you assume that it's to build a fort? a treehouse? Do you ever stop to think that they're just going to smash eggs in bird nests and the skull of your neighbour's poodle? I don't, because I do not have kids. Remember: uncertainty is born of child labour. Sometimes the U.S. seems like a child with a hammer. Unrelated is this comment from John McCain on Russia vs Georgia:

In the 21st century, nations don't invade other nations.

Sir Nils Olav, a knighted member of the Norwegian Guard and resident penguin at the Edinburgh Zoo, captivates me. It is imperative that, should Edinburgh ever be imperilled, that Norway deploy him to its defense, I feel. I do someday home that animals and humans might one day interact on a closer level of understanding.

I have sort of lost my blogging voice. Hmm.

2008-08-03

I am pretty happy right now. I just ate, the sun is shining, I might have acute bronchitis (which is usually viral (but sometimes bacterial) so usually you have to wait it out (but it would suck if it was bacterial (as I haven't submitted my health insurance forms yet :|))). Liv has a short day and will return soon. My jhbuild of GNOME is finally progressing. I am eating some of the best cherries I've ever tasted. And I have a shopping list to focus my afternoon with. Hand-soap, milk, toilet paper. Eventually, lamp, knife sharpener, tiny vacuum cleaner. In future living arrangements, I hope to be amiable with neighbours, so I can abuse their friendship for such conveniences as a vacuum cleaner.

Even things that are traditionally considered bad are a part of my good day. I cut my hand on my mushroom soup tin. The cut is very small and quaint. I wonder what in life has defined my expectations for happiness, because some of them are weird.

However, I am concerned with my recent interest in conveniences. We purchased a $4 popcorn popper the other day at my insistence. A pan is not good enough? Well, if we had a more suitable pan, perhaps it would be. Or a cover for the pan that barely touches the burner would be ideal. Perhaps it's not conveniences, so much as availability of decent tools. We have a pan that is way too big for many simple uses, one that is warped and hardly touches the burner (which is alright), and neither have lids. Regardless, I also have an urge for a blender to make smoothies from all the fruit we buy. I suppose that isn't unreasonable. At least I don't seem to care about a microwave too much. However, this all goes against the simple that I've been planning to lead. Hmm hmm hmm.

For some reason, my interest in ships and samurai has been increasing this year. Perhaps it is time to revisit Shogun.

Labels

#Microblog #General friends gnome google #School blogger linux school food web fedora life music bugs guelph technology #GNOME development kendo kosmokaryote ta vegan cell phones firefox open source computers internet picasaweb skedge speech Flesherton android birthday future git happy iaido jodo nlp security sleep vegetarianism winter work dad evolution gxml libgdata nature pidgin reading speechdispatcher stress vancouver christmas genderguesser liv phone travel ubuntu vala wind mobile #Development acer blogging canada dreams fun gitorious nightmares snow video writing xorg Nintendo ai anime baking cake cold cookies css djaqua family gdom german gseta halloween new years new zealand night people rhythmbox tablet x11 New York Toronto animal welfare art autumn bc books breath of fire II cat chocolate comments communication conversation dataloss duplicity environment flight gdata greyhound gtk home humanity laptop love math money morning movies nz pizza poverty programming psychology rain responsibility shopping sick tea the legend of zelda uoguelph vonage Hugo Nexus One Sudbury adventure age animals apple audible bash busy computer science data loss emacs encryption failure fedora 12 fedora 16 galaxy nexus germany gnome blog goals green health icarus im japan java laundry libxml2 magic mail mail-notification materialism memory muffins nerdfighteria netflix pets photography play politics privacy python quiet thrill receipts research rogers skating sound soy milk space sports stars style sushi synergy transit university value village video games weather web development webschwerver xml yojimbo Blassreiter CIS*2750 CIS*6890 Dutch Blitz Electric Networked Vehicle Empathy John Green Lord of the Rings OCUS Scott Pilgrim Thanksgiving The Frames Trick or Eat US animalia arboretum argument backup bad movies banana beard belladonna beta birds blogs brain breakfast browsers bus business calm catastrophe chat childhood clock colour confidence context cooking corporations cottage cthulhu culture dbus decay depth design discomfort dns dodgeball emusic energy english enhanced history evil exercise exhausted facebook fail feelings ferry film free friend fruit games gardening ghetto ghosts gmail google reader google wave google+ green roofs gsoc hair heat hungry ice cream imaqua instant messaging intelligence interest internet explorer japanese javascript joy knowledge language light loss lost macbook meaning melancholy memories mom namespaces neural networks news nintendo 3ds oceans oh the humanity pain past patches perl philanthropy pie pirates politeness preupgrade productivity pulseaudio purple quidditch recipes redundancy rpm rss rsync sadness science seasons senility sentimental sewing sharing sheep silicon motion sleep deprivation sleeping in smells software songs ssh star wars summer technical communication and research methods telephone test time time and space tired tragedy upgrade urban ecosystems via vihart vlogbrothers voice walking warmth water wave web design wild wireless wonder world youtube yum zellers #Wishlist 1602 1984 24fps 404 API All My Children Argentina Avatar: The Last Airbender Businesses CIS*6050 Christopher Plummer Claymore Con-G Creatures Darker than Black David Attenborough Dear Wendy Docking Station Dollhouse Dunedin Elliott Brood England Europe February Fergus Final Fantasy IX GNOME 3 HTC Hank Green I believe in a thing called love Ireland JRR Tolkien Melodies of Life Montréal Mother Mother Neil Gaiman Network Manager New York Philharmonic Nintendorks Norns North Korea NotesFromNewYork Ontario Orphen Oscars PEAP Pete Peterson Planet Fedora Questionable Content SIM Wireless Samsung Santa Claus Sauble Beach Snakes and Lattes Star Trek Steve Grand The Darkness The Hobbit The Stand Tianjin Tolkien UK Wolves in the Wall WordPerfect abrt advertisement aeroport airport express ajax al gore alarm clock aldiko algonquin alien alone ambition amusing amy winfrey angry birds anhosting anime north anon anxiety apology arcade ask assignments association analysis asynchronous ati automarker autonomous automobiles avatars awesome backtrack3 backyard bounty bandwidth banks baseball bathroom bats battery beaches beauty bed bees beetles bellaqua berlin bertrand russell bill gates biometrics black and white blockbuster bloomberg blue bohemian bonds book border boredom branding buffy buses buttons c# c++ cafe calligraphy camera cancer candy cards careless cars cast causality cbc celebrate certainty cgi challenger chaos theory charity charm cheap cherry blossoms chickens china chopsticks christianity chrome cities clarity classes clean cleaning clorox clorox green works cloud clubs cname codeviz coins comfort community compassion competence competition compiler compliments concert conservation consumption contagion contributing convenience convention cookie copyright corpses country court crafts crashes crates creative commons creativity criminals crosscanada cry cryptic csh cult current tv customer service cvs dance dark themes data mining databases death debug symbols debugging decor democracy desktop desktop summit despair digimon digital receipts disabilities disaster dispute dissection kit diy doubt dpkg drab dragon drano drano prevention drawing dress dtwydt dust dynamic typing e-mail earth earth day easy eating ebooks ecards economy editors education eeetop eggs el paso elections electronic receipts email enchant enterprising environmental science symposium eog epiphany eplugin equality equipment errors ether evoaqua expectations exploring ext3 extortion faery fest falafel fall familiarity fan favicon fears fedora 11 feed me fibonacci fiction file systems fire fireworks fish flexibility focus fonts forceps forgottotagit fork formal fortunate frameworks freedom freezing french fries friend's wedding fspot full moon funny furniture game boards garden gay rights gdb geek gifts gimp gio globalnewtgames glory gloves glue gm gnome keyring go ninja go goodbye goodfella's google books google talk government gp2x grad gratitude grey county groceries groups guerilla gardening guts habits haircut hal harry potter hdtv heart break help hewlett packard hijinx history holidays homelessness homework homosexuality horatio hornblower horror hot house howl hp hp lovecraft html humblebundle humour hyrule i am a carpet ibm thinkpad x41 ice ice cream sandwich ill inadequacy inconvenience industry information ink innovation integration interlocutor internet tv io irish it it is indigo jabber james bond jedi jobs julie thiel justice kayak kernel keyboard killme kinder kirby kiva knife knots koodo labels labs landau sacamoto languages late laurena law learning letstrace letter writing letters libnotify librpm libxml lilo limericks limits linksys live wallpapers livejournal loans local local food local install losher lyrics mac mini madness majesty malaria mario marketing martial arts massages matrices meat in vitro medicine meow metacity metadata microfinancing micropayments microsoft microwaves milk mind mindhacks missed the boat missing mold monitors monologue mood moon mosquitoes moss motivation mozilla mtp muffin muffinfilms mundane murder mushroom soup mystery nameservers nasa national treasure nausicaa navigating neighbours netgear network new users next year ninja turtles ninjas nodelist nointernet noise noisy non-root normality nostalgia notebooks notification-daemon novels november fair nuclear war numbers obscure obsolescence ocz olap olive open formats open music open souce open standards optimism orcas orchestra oreo oreos oscar otr overheat packing pan panda pants paper papers patience pattern recognition peanut butter pen pence pender penguins penmanship perfection performance personal pet rocks peterborough philosophy php pickman's model picnik pidgin plugins pintsize pizza hut planning plans plants pleasant plushies podcast pomplamoose positions posse power ppc practise premier preparation pressure private processes progress promise pumpkin pumpkin pie purchases qt quote rad radeon randall munroe raop rats reagan reality refactoring reflection refrigerators release religion resumes reuters rhino rhps road trips roar rot rtm sad salsa samurai sand scary scary movies scheduling schneier schwarting scp script seals search secrets self-interest self-navigating car senescence sensitivity sessions setbuilder sftp shame sheepo pistachio sherlock holmes ships shogun shoulder bag sigh sim city simafort simple sincerity skill skunks sky slackware slashdot sliver smiling snowboarding social society soft someonesmotherwantstoadoptme song sorrow soup sparklers speech dispatcher spellchecking spies spilt milk splendid splinter sshd stanley park starving steampunk storage streamlines stupid sucks sun super mario super mario land 3d surprise surrender survival skills suspense sweet swimming swings swords symphony tabs tasks technocracy teddy bears temperature term termcap testing tests texting the duke the fault in our stars the hulk the onion themes theory thingsidon'twanttodo thinking thought thoughts thrift stores tim mcgraw tim tams timber timbre time management time travel tin tin tools touch screen touchpack tour tourniquet trac tracker tradition trailer translation trees treestyle view trivia trouble truth turtles tv tx2500 tx2617 ugly logos un dinaru underwold unemployment united states updates upgrades uploading urban agriculture usb utopia vampires vanilla ice vday veggie challenge velociraptors velvet burger version control vi violin vlog voip waf waffles wahoo wanting waste web hosting webcomic webfonts webkit weekend weird werewolves what a wonderful town whic are also lazer powered white spot wifi wii wikisource williams wings wizard wordplay working writing voice xenophobia xephyr xkcd xmpp yoga youth z-index zoo

Blog Archive

About Me

My Photo
I am aeronautical, vanship-style.  I am olympic and mythical.  I rest on my laurels.