Sunday, 9 December 2012

pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)

I was looking for information on how to inflect nouns after numerals in Polish - specifically, whether numbers such as 31, 32, 33, 34, 35 cause numbers to inflect like after 1, 2, 3, 4, 5 or not.

So I googled for people announcing their age ("mam [number] [years]") to see what form the word for "years" took.

And when I type in "mam [number]", Google autocomplete (or whatever it's called) helpfully suggests, for example, "mam 21 lat" but "mam 22/23/24 lata" and then again "mam 25 lat". So -1 doesn't make it use the nominative singular as with just "1", but -2/-3/-4 does use the nominative plural as with the paucal 2/3/4. And then -5 uses the genitive plural as with 5, as does -1.

But that's not the whole story: after typing (say) "mam 23 " (with the space at the end), Google usually suggested not merely "mam 23 lata" but the top suggestions usually were "mam ... lat(a) i jestem prawiczkiem/dziewicą" (I'm ... years old and I'm a virgin) - sometimes even the #1 suggestion! (Well, and also "... i jestem sama".)

I wonder whether that's an artifact of the type of situations where people typically use the wording "I'm ... years old", or whether it says something about Polish society....

pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)

I generally like to have my file timestamps represent the real date of last modification, rather than the time at which I acquired the file.

To that end, for example, I generally try to download files using a method that preserves the file’s timestamp (such as using GetRight or curl rather than my browser).

However, sometimes I do use the browser, or I get the file from a source which had not preserved the file’s timestamp itself.

With PDF files, though, I find that most of them have a modification timestamp in the file’s metadata itself (and those that don’t often have at least a creation timestamp). So I occasionally update file timestamps based on that timestamp saved inside the file.

I used to do that manually, by looking at the “PDF” tab of the file’s properties and then modifying the file’s timestamp in my file manager.

But then I found that I could use Phil Harvey’s exiftool to do so.

Exiftool was designed to work with EXIF metadata in images, as the name suggests, but it can read (and sometimes write) metadata from other file formats as well, such as PDF, MP3, and others.

So I found I could use it to copy the metadata modification time to the filesystem modification time, with an invocation something like this:

perl -S exiftool "-FileModifyDate<ModifyDate" *.pdf

(Depending on how you installed it, the perl -S exiftool bit might be merely exiftool.)

The operative bit is the "-FileModifyDate<ModifyDate" bit (in double quotes due to the presence of <, which would otherwise have a special meaning): it copies the “modify date” metadata field to the file’s modification date. (If the PDF file has no modification date but does have a creation date, then use CreateDate instead of ModifyDate.)

And presto! All PDF files in the directory have “proper” modification dates.

Profile

pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
Philip Newton

June 2015

S M T W T F S
 12 3456
78910111213
14151617181920
2122232425 2627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Tuesday, 22 July 2025 15:00
Powered by Dreamwidth Studios