Link:
https://dannyman.toldme.com/2007/06/20/photos-flickr-06/
My WordPress plugin, Photos Flickr, now supports sets. I spent a little time crafting up a nice default template. I also set up a “demo blog” to give an online demonstration of the new default template.
I had planned to “ship” this version last Friday, but it was a little more adventure than I had anticipated.
Photos Flickr is an early version of a plugin that I am developing for WordPress blog software to display a user’s Flickr album within their blog. The result? Someone with a WordPress blog can now have a basic interface to let readers view their Flickr images, using their own web site and design.
Photos Flickr makes use of Dan Coulter‘s PHPFlickr library, which in turn accesses the Flickr API.
What is New? What Has Changed?
- New: Added rudimentary support for sets.
- Changed: Fixed the tag-listing function to drop the last comma.
- Changed: A bunch of internal work for functions to understand the current “context” appropriately when navigating through a photostream, versus a set …
- New: Added
photos_photoset_title()
and photos_photoset_description()
- Changed:
is_photo()
returns current photo ID.
- New: Added
photos_photo_date_taken()
–support date format manipulation.
- New:
photos_photo_tag_list()
and photos_photo_photoset_list()
return lists of tags and photosets for a photo.
- Changed: Functions
photos_photo_(next|prev)_(href|url|title)
wrap around new private photos_private_getContext()
.
- New: New functions
photos_photoset_(next|prev)_(href|url|title)
wrap around new private photos_private_getContext()
.
- Changed: Disabled ALT and TITLE attributes on image links due to not-escaping-quotes issues.
- Changed: Renamed
photos_index()
to photos_photo_index()
and
photos_pageindex()
to photos_photo_pageindex()
with stub functions for
backwards-compatibility.
- Added: New
is_index()
returns photo, tag, or photoset to tell us what index has been requested.
- New: Added photos_photoset_index() function to display a “pretty” index of photosets.
- New: Added
photos_photo_index_href()
and photos_photoset_index_href()
functions to refer to photo index and photoset index pages.
There is plenty more work to make this an awesome plugin. You can track plans and progress on my “projects” page.
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/06/21/mac-os-x-sites-htaccess-allowoverride/
Problem
I just spent a fair amount of time wrestling with Apache on my Macintosh. The problem is that it simply refused to read the .htaccess
file in my user directory.
My First Approach
I took the “Unix Guy” approach and edited /etc/httpd/httpd.conf
to ensure that Apache was configured to consult my user’s .htaccess
file. I changed this bit:
<Directory /Users/*/Sites>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes FollowSymLinks IncludesNoExec
[ . . . ]
To read:
<Directory /Users/*/Sites>
# AllowOverride FileInfo AuthConfig Limit
AllowOverride All
Options MultiViews Indexes FollowSymLinks IncludesNoExec
[ . . . ]
But . . . nada. (more…)
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/06/23/my-bottled-water/
Back in 2003, I remember being a house guest to a gracious host. He had some other guests over and one asked “is the water safe to drink?” This was a local yuppie asking about the tap water in Oakland, CA. The Bay Area has some of the best tap water in the nation. Even so, I had to resist the urge to point out that when I was in France I had treated a bout of homesickness by skimming the “Lonely Planet USA” guidebook, which explained that, in fact, tap water in the United States is safe to drink in 99.9% of localities, and that anywhere that the water isn’t safe to drink there will be plenty of warning signs: it is reasonable to assume that any American tap water is “safe”.
A few years later, my then-wife and I were guests at my Boss’ house, and dinner was served. Bottled water was made available at each place setting–nothing fancy, just standard, probably-from-Costco bottled water. In Washington, DC. I rationalized that the Boss’ wife is from India, where serving a meal with bottled water could merely be customary. No need to make an ass of myself by offering my own cultural critique of the Boss’ family’s hospitality.
I read that San Francisco recently enacted a ban on spending any further money for bottled water by city departments–currently the city spends $500,000/year on bottled water. This figure seems excessive and wasteful, but then, I read that Muni was a big spender, and I figured those guys out in the street or running vehicles don’t have easy access to tap water. It needn’t be trucked in from somewhere else–just, you know, water-in-a-bottle can be convenient, when you’re not near a tap . . .
I don’t know that you can buy municipal tap water in San Francisco or if you’ll have to bottle your own. I have a feeling that the ban will result in an increase in purchases of bottled soda and other beverages, for those cases where it isn’t a question of bottled versus tap water, but beverage-in-a-bottle versus access-to-a-tap.
For me, the most valuable aspect of bottled water is the water bottles, which can be refilled and reused to deliver fresh, delicious tap water whenever you like. These bottles are rugged and last for years of normal use.
My favorite is the “New Zealand Eternal”–I snagged this during a job interview. On the one hand, bottling water in New Zealand and transporting it to North America is–frankly–immoral. On the other hand, since it is so flamboyantly wrong, they supply the nicest bottle!
The “Tropicana” bottle is pretty rugged and has a nice, wide mouth. There is also no ambiguity–if you see me drinking water from a Tropicana bottle then its pretty clear this is some home-refill job, and I’m not some asshole who has to maintain the purity of his bodily fluids by importing water from New Zealand!
12 Comments
Link:
https://dannyman.toldme.com/2007/06/26/too-close-for-comfort/
Copied without permission from the Readers Write section of “The Sun” May, 2007.
The theme was “Too Close for Comfort”.
NOT ONE WOMAN LOOKS UP WHEN I walk into the breast-cancer clinic and sit down. We are invisible to one another as we anxiously anticipate placing our bare breasts between the cold metal plates of the mammogram machine.
Before leaving home, I placed a rosary in my pocket. Now, I secretly move my thumb and forefinger from one royal blue bead to the next. Some of the women appear to be reading magazines, but I can tell by the way they turn the pages that it is only to give the impression of doing something. Next to me, a pretty, thirtyish woman talks nonstop on her cellphone, her body turned away to muffle her conversation.
When it’s my turn, I enter the dressing room as instructed, take off my clothes from the waist up, remove my deodorant with the wipe provided, and put on a pink gown. Then I wait in the second holding area until I am called behind door number two.
I always wonder if the technician (who says little and smiles even less) ever tires of looking at breasts. She expertly takes four frames, two of the right breast and two of the left, then tells me to return to the waiting room and not to get dressed until I am given permission. If some abnormality is discovered, more pictures will have to be taken. All of us waiting women long to hear the same five words: You may get dressed now.
After I am finally given permission to leave, I exit past the young woman on the cellphone, who is the last one still waiting at 6:30. She rocks forward and back, cupping her forehead in the palm of her hand, taking no notice of me. As I rush past her, relieved to be cleared for another year, my hand slips into my pocket and closes around the rosary. My fingers trace the cross, and I ask the Lord to have mercy on this woman.
Back on the street, I feel hungry. At the bottom of my purse I find a small dark chocolate that I packed this morning — in case of an “emergency.”
I hurry back to the waiting room, tap the woman on the shoulder, and hand her the chocolate. Her cheeks are wet, but she smiles
Adele Sweetman
Pasadena, California
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/06/27/photos-flickr-07/
Photos Flickr now supports pretty URLs, and sports an inline Function Reference, that should become pretty fully fleshed out in short order.
Pretty URLs? Yes! If you are using permalinks and mod_rewrite, compare these two URLs:
/?page_id=3&photoset=72157600167167486&photo=481023042
versus:
/photos/photoset/72157600167167486/photo/481023042
BUG: Uhm, actually, if you have pretty permalinks this plugin will break unless your post slug is photos
. . . I just tried to fix this but failed. Sorry about that.
See Photos Flickr in Action
What is New? What has Changed?
- New: Function Reference Manual
- Changed: Extended
photos_photo_index()
to support titles and descriptions, pimp out default template.
- Changed: References to
$_REQUEST
have migrated to refer to WordPress’ $wp_query->query_vars
.
- New: Checks if blog is
using_permalinks()
and if so, utilizes rewrite rules to make pretty permalinks.
- New Bug: Checks if blog is
using_permalinks()
and if so, rewrites URL links along the assumption that your page slug is photos
.
- New: Added
photos_photo_href()
function.
What is Fixed?
- Fixed: Minor fix to
photos_private_getContext()
to correctly get photoset
context.
There is plenty more work to make this an awesome plugin. You can track plans and progress on my “projects” page.
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/06/28/thank-you/
I received an e-mail:
As I noted on Flickr: I just received my first "payment" for carrying Amazon.com advertising on my web site. Neat! This is hardly “f_ck you” money, but it is greater than zero.
For the record, I have been with Google AdSense for over a year now. That service brings in enough to cover the costs of my home DSL and then a wee bit more. Thanks to the generosity of friends, the hosting costs of my web site are nil, but I could probably cover that with revenue.
Of course, I am operationally “cash flow positive” but no financial incentive for content, just yet. No incentive beyond rhetorical diarrhea. :)
Pie-in-the-sky, my web site receives around 10,000 unique visits per month. I could probably “monetize” that better, but as I like to say, if I had 200 times more traffic, I could cover all of my living expenses.
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/07/02/marriage-socrates-ferber-campbell-fellini/
The morning of July 2, I have arrived at the last page of June’s “The Sun” and find an occasion to chuckle:
“By all means marry: if you get a good wife, you’ll become happy; if you get a bad one, you’ll become a philosopher.”
–Socrates
Socrates is a mortal. And so am I.
“Wasn’t marriage, like life itself, unstimulating and unprofitable and somewhat empty when too well-ordered and protected and guarded. Wasn’t it finer, more splendid, more nourishing when it was, like life itself, a mixture of the sordid and the magnificent; of mud and stars; of earth and flowers; of love and hate and laughter and tears and ugliness and beauty and hurt.
–Edna Ferber
It was.
Yes, the title says “Two Perspectives” but we wouldn’t want this content to be too well-ordered, yeah? Here’s an assertion that I know many would take exception to. (more…)
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/07/04/independence-day/
[Update: weaselly underscores omitted from cuss words per Andrew Ho’s patriotic fervor, and because it might look neat.]
Girlfriend came over, with six peaches she picked from her peach tree this very morning. I washed the earwig out of one. We walked down to the beach, and back up again, stopping for pastries and a slice of pizza. We watched “Winged Migration” which is really good if you don’t pay attention to the self-important French people, and tolerate the silly parts when the bird flies up an out of the atmosphere to circle the Earth like Sputnik, except yeah, “no special effects were used while filming the birds.”
Saw the girlfriend off . . . neighborhood goes boom . . . boom . . . occasional bursts in the distance. A groovy Independence Day.
Then I see a URL to a comic strip with kids eating Bald Eagle tacos. Okay, crass. But the commentary rant is worth sharing:
I know I’m starting to sound like a curmudgeony old bastard but… it really did used to be better, even just a few years ago. I swear to God right now you could watch Dick Cheney beat a homeless vet to death with a cinder block and everybody would just kind of let out a weak sigh and go “only two more years” but then go into full-blown warrior mode when the Youtube button on their iPhone got scratched. Stand in line to buy portable telephone, wondering what you’ll say to the first person to ask you to touch it while the thing you Pledged Allegiance to everyday when you were growing up gets gang-banged by a handful of frat boys that pay less taxes than you and don’t have to go to jail when they may have committed treason.
And, quiet as I have kept, I gotta admit, I think the iPhone spectacle . . . geeks waiting in line to pay $600 for a cell phone with a $1400 service commitment . . . but what is worse is to hear President Bush prattling on about how we must defeat Al Qaeda in Iraq or else they’ll follow us home–the best that can be said for why we need to be over there is because we chose to go there and f_ck up that sh_thole of a countryfuck up that shithole of a country, and it is hella true if Dick Cheney beat the crap out of a homeless man we would just shake our heads with a tear in our eye. If you commit treason you should go to jail, even, hell, especially if you’re just some hack taking a bullet for the White House! GAH!
Okay, back to munching on my toast and pondering my regular life. If there’s a protest in the streets sign me up . . .
2 Comments
Link:
https://dannyman.toldme.com/2007/07/06/listening-to-users/
I recall Tom Limoncelli giving a presentation called “Time Management for System Administrators” and he explained how, as part of his routine, he would walk over by his customers–his users within the company he worked at–and check in at a regular time. Some days, they might ask questions that would reveal to him potential improvements in the systems architecture, and other times they might ask simple technical support questions. Either way, by dropping in at regular intervals, the users came to feel good about their Systems staff. This can be damned handy when, as they occasionally do, the systems go down hard, staff scramble to fight fires, and users are left out in the cold with little more to work with than their innate feelings about the Systems staff. If they like you, they will feel sympathetic in your hours of stress. If they don’t like you, they hope the present outage may be a nail in the coffin of your tenure.
I was put in mind of this by the story presented in today’s Daily WTF . . . the user, who could be described as “dim” had been following a really complicated, error-prone process. She had no idea that a trivial change to the system could be made to make her life easier. The hero of the story happened to be walking by, hear her frustration, politely inquire, and five minutes later, make betterness happen:
Still, there’s a good lesson here that’s often missed; pay attention to what users are doing with the provided system and by unblocking minor bottlenecks you can become the hero.
Amen. Amen. Amen. (more…)
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/07/12/powerset-premier/
Foreword: From a Top Blogger
I am a Top Blogger!
On June 28, 2007 I somehow found myself on a guest list of 35 people, “including top bloggers, top Web 2.0 companies, and members of the press.” We were guests of Powerset, to attend their premier public demonstration of their new natural-language search engine. Being as I must be, a top blogger I took notes on my Web 1.95 T-Mobile Sidekick.
I had previously applied to work at Powerset: where everybody gets a Mac. The offices are located near the Caltrain station, making them a reasonable commute for the Peninsula crowd as well as for those of us accustomed to public transportation. I had interviewed informally with a former colleague, who in sizing me up as a Systems Toolsmith, looked at me with pity when I confessed that my sole capacity for analyzing and expressing complexity is English, and not the formal notation Computer Scientists call “Big O.” (Why must they only hire smart people?)
He did, however, pique my curiosity. “The easy part” of building a new search engine, he had explained, was crawling the entire web. “The hard part,” he went on, was to bring in enough computing capacity to build natural-language indexes. To my ears, Powerset is pushing the envelope of what is feasible, which is cool. And as Google hath shewn, if you can build a better search engine, the world might beat a path to your URL.
Infiltration: Perimeter Security
Manipulate the Press with Special Kool-Aid
I found the corporate headquarters on-the-corner-of-Brannan-and-Fourth with only modest difficulty. Powerset had a guest list to get upstairs, but the building security guard informed me that if I was here for the Steelcase party on the ground floor, I should just go right in. Given my duties to the blogosphere, I indulged in a bit of Gonzo Blogulationalism, and crashed the Steelcase party for 25 minutes. Steelcase apparently designs really innovative office furniture that would look right at home in The Container Store. They also had a great spread of tasty Asian dishes, origami kits, and booze. I made sure to tip the bartenders for my Sapporo, and for the Anchor Steam that I pocketed for the journey upstairs to Powerset, where they had not only booze, but special Kool-Aid, and blue pills.
I was among the first to arrive at Powerset. I swiped a handful of Red Pills, and then a handful of Blue Pills, washing them down like candy with my illicit beer. As I waited for the jelly beans to kick in, I found myself chatting with a voluptuous and extremely blond computational linguist with a cool Nordic surname. She was afraid of being misquoted by would-be top bloggers, but I assured her that I am terrible at remembering names, and besides I had been ingesting dubious substances. I got her to admit that she had always approached her work with enthusiasm, but now she felt as if she was working in a company where every last person had great talent and intensity, on a project that she felt could improve the ability of people to search the Internet, and thereby change the world. To a person, the Powerset staff came off as sharp and enthusiastic. It seems that they do drink their own Kool-Aid.
The Powerset lobby quickly became choked with geeks–standards nerds–top bloggers, members of the press–and someone (Powerset) was giving booze to these god-damn animals–and hors d’œuvre! The mushrooms were seriously tasty. Before long, the Beautiful Norse Computational Linguist surprised the milling herd of geeks with a stream of self-confident ejective syllables, and we were ushered into the Powerlabs meeting room, where we took seats, kibitzed, and prepared to be dazzled.
Steve Newcomb, (pronounced “Nuke’m”) the COO, and other Powerset staff introduced themselves. Steve explained the Powerset tradition that every Thursday, at 4:20, all Powerset staff gather in the room where we were now assembled, and are invited to ask questions. The only rule on these occasions is that Steve has to give some sort of answer. It is in this spirit of openness that Powerset sought to present their technology to us. (more…)
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/07/13/keiths-iphone-review/
Keith just posted his review of the iPhone. I appreciate it because he is coming off of a Sidekick 3, and he’s a Unix geek. It sounds like he really likes the web browser, and that the e-mail client is mostly good. He is still getting used to typing on the screen. Personally, I think I would have a hard time giving up the tactile feel of the Sidekick 2 keyboard.
I got to play with Ari’s iPhone last week. The web browser is pretty nifty. It handles Google Maps really well and you can click on elements within a web page and zoom in on them, turning the thing left and right to get a better view. Looks great for navigating when lost, or for casual web browsing on the train.
My take? (more…)
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/07/15/donated-equipment/
One habit that I have is that if I have gear I’m not using, I tend to give it away or lend it out to friends and acquaintances who might better use it. Especially with technology, this seems like a good idea: the utility of high-tech equipment degrades rapidly, and if a piece of equipment is going to become obsolete in the coming decade, someone ought to get the value from it.
Of course, right now I am stumbling around the apartment, looking for that DVD writer I bought a few years back. Where is it? Maybe I gave it away to someone. I guess the virtue is proper, but the accounting could be better. All the same, the reason this even comes up is because I am assembling a new workstation, mostly from retired equipment donated by friends. The DVD writer is not even mission-critical: I just wish I knew if it was in the house or not. If not, I can install a CD writer, which was donated to me some years back.
By the way, if you’re reading this: thank you Brian, Andrew, Michael, Lorah, Dennis, and everyone else!
And, if I ever gave you a 5.25″ Sony DVD writer, please remind me! =D
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/07/16/oregon-closet-case/
The Week reminds me that the Red States really are a different planet:
“Residents of Keizer, OR., are complaining that the towns new cement traffic posts resemble male genitalia. The posts, installed at a pedestrian intersection, are cylindrical in form with a rounded, slightly offset head, and, according to City Manager Chris Eppley, look very different from how they did in the catalog. Eppley says the city hopes to make them less phallic by giving them metal collars and linking them with chains. If that doesn’t work, “we’ll have wasted $20,000, and we’ll have to do something different.”
I live in San Francisco. I can accept that somewhere in America God-fearing people live in fear of seeing even vaguely phallic symbols . . . but I live in San Francisco. Collars and chains?
Something different, indeed!
I found some photos. From Oregon. They’re (obviously) work-safe . . .
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/07/17/old-notes-manifesto-charter-work-life-love/
[Some notes jotted down in the Sidekick long ago. Good stuff, I think. Maybe I should tack it on the wall somewhere, study, perhaps revise . . .]
Work
The joy of understanding problems and developing the most gratifying solutions.
The joy of learning new technologies with which to solve problems.
The satisfaction of getting things done, and being a reliable and respected resource for my coworkers.
The rewarding nature of setting expectations and goals and meeting or exceeding them.
Life
The satisfaction of walking on the Earth at different time, places, and seasons throughout my life, understanding what is consistent in myself and the world and that what is variable and “in play”.
Making connections with people, from fleeting moments of acknowledging eye-contact, to soul-sharing relationships that stretch across years and decades.
To be sufficiently self-aware about my relationship with the greater world so that I don’t take more than I need to achieve happiness.
To experience with honest fidelity the joy and the pain, the happiness and the sorrow, and all the rest of feelings and experiences that are inevitably felt in life.
Love
To practice being open and vulnerable and accepting, to allow for the possibility of love and growth in the relationships in which I engage.
To be present and attentive, to listen with good heart and a sharp mind when people speak to me.
To notice and confront dishonesty.
When “in love” to explore my partner to learn what makes them feel loved, and practice “true giving” towards them.
To always be completely honest.
Feedback Welcome
Link:
https://dannyman.toldme.com/2007/07/18/email-defer/
So, I am pretty good at keeping on top of my Inbox. Every so often I plow through, and I “delete, delegate, defer, do” which means that mostly I delete or archive messages that require no action, or I’ll make entries in my calendar, then delete or archive, or I’ll write a reply, perhaps a lengthier reply. Or, I’ll transcribe the notes somewhere to work into an article, or whatever. When I’m done plowing, I sometimes have an empty Inbox. E-mail is triage and when that plate has cleared you can close it and go on to other things.
Sorting the mail . . . (CC:
KRCLA)
Delete, Delegate, and Do, are all really easy. They even map to the e-mail buttons fairly well:
Delete |
“Delete” or “Archive” buttons. |
Delegate |
“Forward” or make an entry in a bug / ticket system. |
Do |
“Reply” with an answer or note that things got done.. |
Defer |
??? . . . make an entry in your calendar? Tagging? |
Some casual poking reveals that this may be doable in Outlook, which really isn’t my style. Have any of my geeky readers thoughts or recommendations along these lines?
What I have tried, using Gmail: (more…)
3 Comments
« Older Stuff . . . Newer Stuff »
Arrr!
. . .
Avast!
Site Archive