Check out my photoset on Flickr to see how I made roast duckling and a lovely duck gravy.
classimy.com
0 Comments Published by stephan December 5th, 2008 in Internet, Web 2.0, mobile, personal news, programminghttp://classimy.com/
It’s a classified ads site between Craig’s List and eBay, focused on face to face sales for cash, with a streamlined interface and (soon) integration with your digital world. I’m pretty proud of it, and think it may find its audience.
There’s no listings yet - and that’s where I need your help. If you’ve got stuff to sell, or you know someone who does, please come list it on the site.
Please help me out if you can - test the site, try to break it, and if you find a bug or just have a suggestion, use the “bug report” link at the top and I’ll find out about it.
Thank you all so much for your help!!!
Rails custom FormBuilder made way, way easy
0 Comments Published by stephan November 21st, 2008 in programming
I wanted to give my Ruby on Rails app a simple jQuery driven custom boolean field, styled as a lock for security purposes. You know, click on the lock and it opens, click on it again and it closes. Just like the lock there to the right - go ahead, click on it :).
I especially wanted to use it like the other Form Builder tags within a form_for block, just the same as I would use a checkbox, like this:
form_for(current_user, :builder => IconFormBuilder) do |f|
f.privacy_field :share_this
end
It turns out this isn’t a difficult thing to do, but I couldn’t find any blog posts that show just how easy it is, so I struggled for a while. Hopefully, I’ll save you the trouble. Most of the posts I found weren’t trying to do anything this simple.
This article at Aldenta shows how to use metaprogramming to insert your new form method into the existing form tags. The only practical use I can see for all that trouble is to save you the trouble of adding :builder to your form_for tag… and I don’t really mind using :builder to be specific with my intent.
Several sources, including Advanced Rails Recipes and an article at OnRails, show how to wrap all of the existing form elements in the builder, again using metaprogramming. Nice, but not what I was looking for.
Both of these articles hint at the solution, but no one had cut it down to the essence. I finally came up with this. Make a file called “icon_form_builder.rb” in app/helpers. Name it whatever you want - just so the class name and the file name match. I always get so confused figuring out where to put new things in Rails, but this seems like the right spot.
class IconFormBuilder < ActionView::Helpers::FormBuilder
def lock_icon(value)
if value
"function_icon_set/lock_open_48.png"
else
"function_icon_set/lock_48.png"
end
end
def privacy_field(method, options={})
retString = hidden_field(method, options)
retString += @template.image_tag(
lock_icon(@object[method]),
:onclick => ("h=$('##{object_name}_#{method}');"+
"if(h.val()=='t'){h.val('f');$(this).attr({src:'/images/#{lock_icon(false)}'})}"+
"else {h.val('t');$(this).attr({src:'/images/#{lock_icon(true)}'})}"))
return retString
end
end
lock_icon is just a convenience to DRY up the selection of an image (my working version is drier all round). The javascript just uses jQuery to toggle the image and the hidden field. I’m using a lovely free icon set by Function Design & Development Studio.
Note that we’re defining a new field tag - but you can just as easily redefine an existing one. Just change “privacy_field” to, say, “check_box” and all of the checkboxes on your page will be redefined as locks! I didn’t want to do that here, but it’s that easy.
There a bit more to know for getting fancy - but this should get you started!
Why Proposition 8 is actually sort of OK with me
0 Comments Published by stephan November 19th, 2008 in politics, religion, sex, thoughts/rantsI need to start this off by saying that I did, in fact, vote against Proposition 8. A great many of my friends are gay, I support them with all of my heart, and fully understand why this means so much to them. But I feel like I didn’t really stick to my moral compass by voting against it.
I consider myself a libertarian, somewhat of a radical one in theory, though real world practice doesn’t fit in with those ideals. From that point of view, I have to ask “What the hell does government have to do with marriage in the first place?”
The question, to me, shouldn’t be “why can’t gay people get married?” but rather, “why does the government have anything at all to do with marriage?” Marriage is ultimately a religious institution.
I can certainly see the value to the public of the government being in the business of registering and managing romantic partnerships - though the ultimate utility is in providing a registry for potential reproduction, a shortcut way to establish heredity or the plausible explanation of same (e.g. secret adoptions, illegitimate children, etc, which are far more common than one is led to believe), which just isn’t possible for a gay couple (yet!). It isn’t possible for an infertile couple either, but to a casual observer, they have plausible deniability for a child, whether adopted or fathered by some party other than the husband of the pair.
But marriage? Why does it have to be called marriage? How is that the government’s business? I’m against gay marriage, because I don’t see what the government has to do with marriage, and why in heavens name should we give them MORE power? It’s bad enough that the State has its nose in heterosexual partnerships; do gay people want to invite government into their bedroom?
Let’s take another tack: historical precedent. There are very few examples of legitimized same-sex unions in the history of any culture on earth. There are some examples in China, Japan, ancient Rome & Greece, etc., but they are the exception rather than the rule.
On the other hand, polygamous relationships have been common to nearly EVERY culture at one time or another - and are still quite common in some parts of the world. Please note that plural marriages still provide that official stamp of heredity, whether actual or spurious.
Given that cultural context, why has same-sex marriage become a political hot-button, while plural marriage has been given the short shrift? Until a few weeks ago in this state, I could marry a man or a woman, but only one partner.
(just curious - does anyone know what happens when someone from a polygamous country emigrates to the US with their spouses? Do they have to pick one?)![]()
The argument has been made that Proposition 8 is a form of discrimination, with television ads comparing it to the Holocaust, or at least the internment of the Japanese. I reply, somewhat tongue in cheek, “That’s ridiculous: a lesbian has the same right to marry a man as a straight woman!” But it’s true, Prop 8 doesn’t propose different rights for different people at all! Prop 8 forbids a straight man from marrying another straight man just as much as it prevents a gay couple from marrying!
Gay marriage opens the system up to further abuse in contexts such as taxes and immigration - not that straight marriage doesn’t sometimes already abuse the system, but this is yet another avenue. If these “marriage benefits” are so valuable, I’m certain we’ll see straight men and women engaging in gay marriages for the financial benefits, without the fear of their parter becoming attached and trying to make the union “real.”
I have a very dear friend who is an illegal alien in this country, who I’ve blogged about before in “regarding immigration“. If same sex marriage conferred the same citizenship benefits as conventional marriage (it doesn’t, I checked), I would marry “Juan” in a minute to get him a green card. That’s abuse.
The problem isn’t that gay people can’t marry one another - the problem is that the government gives any favors at all to married couples.
The solution as I see it is a far more radical one than legalizing gay marriage… I think the political institution of marriage should be dissolved entirely. If there is some legitimate need for partner benefits, the government can continue to officiate unions of any number of consenting partners, un pain, un vin, et une bourse. Better yet, just let people execute the legal aspects of marriage as a business contract. That’s what it is anyway - a business contract with boilerplate text that is embedded in our legal and social code. There can be a standard marriage contract - available wherever business forms are sold, like leases, wills and divorces, as a book or software - and those that want to go beyond that can hire a lawyer to write it up any way they want. This is already in practice for some polyamorous families. I expect it doesn’t work any better or worse than traditional marriage.
Let the church be the arbiter of “marriage” in whatever form makes sense to the participants, whether it’s a man and a woman, two men, or three women, four men, and a mountain goat. Let’s keep the government out of our bedrooms and personal business.
I’ll continue to support and vote for gay marriage - I realize that the secular institution of marriage isn’t going anywhere soon. Gay marriage is the most practical way of providing equality and a level playing field.
But it’s not the best way, or the right way.
Take This Job and Shove It
0 Comments Published by stephan.com November 13th, 2008 in experiences, movie/tv/books, personal news, photos, video clipHere’s a short clip of me playing Harry Meade, Jr. in the 1981 film Take This Job and Shove It. This was shot in 1980 in Dubuque, Iowa, so I’d be 12 years old.
My father is played by David Keith, who later went on to hang himself in An Officer and a Gentleman, and my mom was Penelope Milford, who got hit by a car in Endless Love. My sister is credited as Mary Pat Hennager, who I remember was a local Dubuque resident.
I still get royalties from this - around $25 per decade - so please go buy the movie.
http://en.wikipedia.org/wiki/Take_This_Job_and_Shove_It_(film)
http://www.imdb.com/title/tt0083163/
In the interest of saving money, breaking the cycle of eating fast food twice a day, and cleaning the detritus from my pantry, a couple of weeks ago, I decided to trim my grocery budget to ZERO and commit to eating whatever I had in the house until it runs out. I had bought a bunch of 50% off stuff from an Albertson’s closing down a month or two ago, and my cupboards had been overflowing since then anyway. I’m just buying staples, which for me is milk and Coca-Cola.
Two weeks later, I’m just barely beginning to get to the good stuff. Bear in mind I’m quite clueless about cooking, though I’ve been watching Alton Brown a lot and dreaming. I came up with this from only stuff I’ve had around for a while.
* 1 package of Farmhouse Long Grain & Wild Rice. No idea when I got it. Prepared according to directions.
* 2 italian sausages - first bought in a six pack in February for making pizza and frozen since then - started thawing them yesterday with no clue what I was going to do with it. Googled what to do with them, decided to cut off the casings and fry them up in:
* olive oil from one of the 3 or 4 unfinished bottles floating around. Just a little bit - my first chance to try this awesome cast iron pan - part of a whole set I bought from a thrift store for $50 a while back. While that was cooking, I got the idea to try something I had heard of, but wasn’t sure what it was: deglazing. Huh, says you can use water, but wine is best. I drank all that… except
* A mini bottle of Delicato White Zinfandel - 187 ml, a four pack of crappy wine my ex-gf bought and drank only one of. Perfect!!! I spent like 5-10 minutes pouring that in and scraping while the rice finished cooking, and even added a little teeny bit of:
* flour - left over from my bread machine experiments. Ooh, this is working, I’ve got a sort of tasty little sauce going on here! WTF! WWAD? (What Would Alton Do)
* Kosher salt. I have no idea if this did anything useful, but I put some in. Alton puts it in everything. OK, one more item, something to pretend I’m being semi-healthy. Aha!
* A can of peas, drained. Again, no clue where I got this or how long it had been on the shelf. It might’ve come back from Burning Man. I threw the rice back into the deglazed pan, threw back in the sausage (which I had drained), and put in the peas. I heated the whole mixture up in a pan, and am eating it from a bowl, and it’s pretty yummy.
Did I do this "right"? I have no clue, but it’s edible and totally from what I already had in the house. I’m pretty proud of myself!
Honest, it’s been two weeks, I’ve only eaten outside food maybe three times, and I’ve still got 2 packages of tuna, 2 salmon steak, 1 crab, some sea scallops, 2 more sausages, chicken wings, frozen burgers, bread machine mix, frozen potatoes, soups, rice, noodles, etc. Amazing the amount of stuff I’ve accumulated.
So I’m thinking I can go another two weeks of zero food budget, which is going to save me an insane amount compared to what I usually spend on restaurants, frozen meals and the like. Seems healthier.
I’ve even got at least one or two more servings of this stuff!
Not sure if anyone is still reading here, but I thought I’d mention that my (grand)father passed away a couple of hours ago.
It’s not a terrible shock - he’s been declining for, years, really. For a long time he’s been asking “why won’t jesus take me?” and wanting to die. The past few weeks were getting really difficult.
I’ll probably be in Chicago within the next week.
re: jury duty
0 Comments Published by stephan September 27th, 2008 in experiences, personal news, politics, thoughts/rantsI got called for jury duty this week, got released yesterday, here’s the description I wrote for my boss:
I got potentially picked for a jury, gang member with face tattoos, two counts (1) felony possession of firearm, (2) possession of marijuana with intent to sell. 36 brought in, 12 needed, 18 interviewed in the first pass. Defense burned witnesses like crazy, I got brought up the last of 6 more. I would have wound up an alternate for the 6-7 day trial, but…
I said I couldn’t convict a guy for possession of marijuana, that I’ve enjoyed it for 25 years and had a prescription, believed in jury nullification and that the law was without merit. That if it was another drug, like meth, I could be fair, or if it was the gun charge alone. “What about selling it?” “Well, my best friend got through college like that. Look, this guy maybe had a gun, he’s obviously not the most friendly salesman in the world, but still, the law is wrong.”
The judge threatened me “well, then we’ll have to find you a civil case” - with the implication that if I wanted to act like that, he’d damn well find me a six month boring money case. I had to report back to the selection room after lunch. Lovely. Eh, I figured even it went a day or two longer than the last one, it would be better for my safety if this gangbanger didn’t see my face for a week - I can tell by his tattoos he was a “Lennox 13″ from Van Nuys.
But then, before I could even sit down, I got called back up and handed my certification, I was done. Nice! So, I’m all done. I feel sort of bad that I kinda weaseled out of it, but I stuck to my moral compass and got rewarded
–
update, a couple of months later: just before they called my jury, they picked a huge list of people and told them they could be on this case for SIXTY days - that’s about 3 months. In retrospect, I think this means I just barely missed getting called for the Phil Spector trial!
Send me mail in Black Rock City!
0 Comments Published by stephan August 24th, 2008 in burning man, personal newsWhoever is out there reading:
Did you know you can send mail TO Black Rock City? Send me a letter or something! My address for the next week is:
Cheruborg
Destiny Lounge
2:00 Portal (near the plaza)
c/o BRCPO
Burning Man
Gerlach, NV 89142
If I’ve got the postage, I’ll even write you back! I’d send it by Wednesday if I were you, though, or else it’ll likely bounce.
I’m just about done getting set up to set off tomorrow, arriving at Home on Monday AM.
http://www.blackrockcitypostoffice.org/
On the Playa - Destiny Lounge, 3:00 Keyhole
0 Comments Published by stephan August 21st, 2008 in burning man, experiences, personal newsIt’s official! I’ve signed on with Destiny Lounge, practically on the Esplanade at 3:00 - I’d guess you’d call it “3:00 Portal”.
Come on by and enjoy lemonade and iced tea, try our games, Fling Of Destiny and Rock Your Balls, and enjoy music by Spirit Fire.
Can’t wait to see you all out there!
Search
About
stephan.com is a los angeles based artist/consultant/dancer/technologist email: stephan@stephan.com
Twitter Updates
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Dec | ||||||
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Categories:
Latest
- Roast duck and Duck gravy
- classimy.com
- Rails custom FormBuilder made way, way easy
- Why Proposition 8 is actually sort of OK with me
- Take This Job and Shove It
- Stephan’s invention: white trash risotto
- my father passed away
- re: jury duty
- Send me mail in Black Rock City!
- On the Playa - Destiny Lounge, 3:00 Keyhole





