Bike light design

Sep. 20th, 2017 08:12 pm
jack: (Default)
[personal profile] jack
For a while I had the impression my back bike light remembered whether it was on or not when you removed and replaced the battery. And I wondered how that worked. A push-button that moved a physical toggle between three positions seemed implausible. But so did some tiny bit of persistent memory. My best guess is that there was a capacitor which held charge for a short time.

Now, I think I was completely wrong. I think that when you put the battery in, it *always* comes on. I just assumed that it would usually be off and didn't actually check that was true. So I got the impression it was lit *sometimes* on battery-connect, and connected that to the state it had before the battery was removed.

Wow, it's really easy to manufacture evidence for something even when you think you're avoiding that.

Presumably the "power on lit" is so that loose connections don't turn it off. OTOH, that would mean if it has a loose connection when it's being carried about, it might come on and drain the battery. Or maybe no-one thought about it and this just happened to be the case. Or maybe there's a regulation? I don't know.
monanotlisa: (ignoranus)
[personal profile] monanotlisa
Also off my trusty friendslist, here is a dossier on white supremacy in the US -- from a source on the inside who infiltrated key organizations for years.

White Supremacy background and history, plus of course present danger: The International Alternative Right


monanotlisa: Lucca Quinn, centered, looking thoughtful (lucca - the good fight)
[personal profile] monanotlisa
C/p'd from [personal profile] giandujakiss:

The GOP broke off bipartisan talks with Dems to shore up ACA's insurance markets, and now they're trying - again - to unilaterally repeal ACA and take with it a huge chunk of Medicaid (which will, of course, completely destabilize our entire healthcare system, but that's where we are).

You can find more information by googling Graham-Cassidy, but here's one link [on this new attempt to dismantle the ACA].

Apparently, Lindsey Graham - one of the bill's sponsors - got on Breitbart radio (yes, now we're integrating Breitbart into GOP mainstream, fun times ahead) to urge listeners to call in support of the new bill, so it's VERY IMPORTANT that the Senate be flooded with opposition calls.

Here is one script and information resource.

L'shanah tovah!

Sep. 20th, 2017 08:01 am
monanotlisa: (apples how you like dem)
[personal profile] monanotlisa
A little early, but I won't be around later, so: a happy start of the High Holy Days to you, if you celebrate!

My secular Jewish household will mostly eat apples and sweet honey when it comes to action. But both my wife and I will think of the Jewish community, in our different ways as an American Jew and a German Gentile.

Surfacing, the real-life edition

Sep. 17th, 2017 10:29 am
monanotlisa: Lincoln Lee against a red jagged background, captioned "mind is a razorblade" (Lincoln Lee - Fringe)
[personal profile] monanotlisa
Let's start with five good things about my life right now:

1. Ask, and ye shall receive. Under pressure at work to put together a presentation in October, I texted one of my non-profit co-founders on a whim, not expecting her to have time or interest in co-chairing a webinar. But she immediately said yes; we're having a planning session tonight. Now I'm both relieved and a little bit excited about the subject of much procrastination.

2. Our wedding celebration preparation is almost done. WHICH IS GOOD, BECAUSE IT IS NEXT WEEKEND. Can't claim I was the driving force here; my wife was much better. But still, I too knocked several preparation points off our list. There's a price to pay if neither you nor your life partner are Planners or Organizers, but we had the privilege to pay in hard coin (i.e. having vendors do more for us) rather than familial currency (i.e. putting it on a date fitting for her auntie, who would have loved to go full Weddingpalooza).

3. The cats are very affectionate these days. Still semi-feral, of course, and not into being petted :( or even touched, although Poppet tolerates it from my wife. But they are social with us, head-butting and nose-sniffing and watching us Do Important Human Things In The Kitchen through the glass without feigning the usual disinterest...okay, fine, sometimes they feign disinterest; they're cats. :)

4. If one door closes, a window opens. (It's small, but it's a window.) I was devastated when the only dedicated gluten-free sweet pastry shop in San Francisco with actually good baked goods (glutless) closed, but they have just re-opened as a delivery-only service for Fridays and weekends. Weekends aren't excellent for someone living in the East Bay, but Fridays, Fridays I shall feast on cake! Except this upcoming one, given no. 2.

5. No periods forevermore, and everything works. Once the non-surgery issues were resolved, for the most part, life without a uterus has been excellent...except on the one day of my cycle when everything is terrible and the world is dull and gray, of course. But even that pleases me conceptually, because that plus the other two signs of an upcoming period mean my left (heh) ovary has taken over the full hormone production, and I don't have to consider HRT.

Unfortunately, like humans are wont to, I make bad decisions in the spur of the moment, so right now I am struggling with an old-new issue. Oral surgery talk, pretty gruesome, so please mind the cut-tag )
jack: (Default)
[personal profile] jack
Removing code is good! But everywhere I've worked has had a "pile of makefiles" build system, which have invariably had problems when you remove a file, because the .d files are still hanging around, and make chokes on a source file because it doesn't have the headers it needed last time, even though they're actually not necessary to actually build the file.

And it's a matter of culture whether it's "when you check out code, you often need to make clean or make undepend somewhere to get it to compile" or "when you check in code, you need to find a workaround to make it build cleanly even if you've removed files".

Do people with more recent build tools than "make" avoid this problem?

However, after thinking it through carefully I eventually decided on one of the ways to makefiles cope with this correctly.

The trick

You still do "-include $(OBJ_FILES:%.c=%.d)" or equivalent.

But when you produce a .d file with gcc (usually as a side effect of producing a .o file via -MMD), add an extra line at the end of the recipe, a perl script which edits the .d file in-place and replaces each "filename.o: header1.h header2.h..." with "filename.o $(wildcard: header1.h header2.h...)"

That way, if any dependency has *changed* a rebuild is forced as normal. But only dependencies that actually exist become dependencies within the makefile. (Deleting a header file doesn't trigger a rebuild, but it doesn't with the old system either since the .o file already exists.)

I can share the exact script if anyone wants to see.

Yuletide nominations

Sep. 14th, 2017 10:40 pm
jack: (Default)
[personal profile] jack
I nominated for Yuletide. After lots of "how could I possibly choose", I decided that I might as well pick three works I liked and thought would make good fic, and not feel like I had to pick the BEST three. I can probably dredge up more obscure things I loved, and would really love to see fic from, but I find it hard to bring to mind things I've not thought of for ages.

There's lots of things I love, things like webcomics and webfiction which might deserve attention. I eventually chose three I thought would make good stories.

Elements (experiments in character design), the tarot-like cards showing a character for each chemical element. They're just so pretty, each looks like it tells a story. I was sad the physical cards seemed to be sold out and never for sale. They were nominated two years ago, and I was sad to see not last year.

And two webcomics, Leftover Soup (from Tailsteak, the author of the awesome 1/0, ooh, maybe I should submit that instead), and YAFGC (Yet Another Fantasy Gamer Comic, like Oglaf, very not safe for work, but sort of in a surprisingly wholesome way).

Did other people manage to nominate things?

I am also basking in the disconcertingly competent assumption that, I expect to be able to, just get a story done, without a whole lot of putting it off. I'm not at all used to signing up to something with a deadline and not assuming I'll panic but it's worth it!

I looked at my notes from last year for "what might I be interested in nominating next year". It was mostly the same sorts of things. Although one was, "Steven Universe, if it doesn't exceed the limit of number of works", I guess that must have happened now :) Although I find it really hard to predict. I went to look up Vorkosigan, the universe I was surprised was still eligible when I wrote for it two years ago, and it looks like there's more than a 1000 fics on ao3 from before that, am I misremembering how eligibility/search works?

On Anxiety, but funny

Sep. 13th, 2017 08:25 am
monanotlisa: Misty Knight lookin' hilarified (misty knight - luke cage)
[personal profile] monanotlisa
That "Distracted Boyfriend Meme"? It's really not that funny in the original, but I keep cracking up about all the clever fandom renditions...and threw my hat in the ring to make one myself (with that handy meme generator out there on the internets):

I made dis (on tumblr)


Yuletide

Sep. 13th, 2017 08:15 am
monanotlisa: (otw)
[personal profile] monanotlisa
ON THE PLUS SIDE, Y'ALL, Yuletide nominations are open!

These are mine, below the cut: My Yuletide Noms )

What, ouch, and also -- already?

Sep. 13th, 2017 07:43 am
monanotlisa: philipp broyles in b/w, captioned with his name (broyles back - fringe)
[personal profile] monanotlisa
:: It's raining. I would have never grasped the weight of this statement in 2012 when I came here, but the song is true, mildly modified: It never rains in Northern California in summer. It's the softest and gentlest reminder of climate change, and the polar opposite of what the folks in the Caribbean, Cuba, and states like Florid and Texas experience. But...it's a reminder.

:: Also a reminder of my short memory when it comes to non-chronic pain: God, my lower jaw hurts. Yesterday I tried to have the implant for my lower jaw put in, finally. But even with "perfect-looking" bone (after chewing in the front to remind my jaw of its job; after popping calcium pills like it was my job) there was simply too little of it post-accident. Cutting for tooth surgery details )

:: My boss is back in the office today. I am quivering in what might feasibly be boots (given said weather situation).

(no subject)

Sep. 12th, 2017 10:08 am
sixbeforelunch: riker in star trek: first contact, no text (trek - first contact riker)
[personal profile] sixbeforelunch
Can someone give me the tl;dr on My Immortal and the reveal of the author's identity? I keep seeing it come up but I can't figure out what's going on...
monanotlisa: (spring sky)
[personal profile] monanotlisa
:: Went on a bucket-listed trip to Angel Island in the Bay of San Francisco with a bunch of excellent fangirls, from [personal profile] cofax7 over [personal profile] laurashapiro over [personal profile] shrift to ladies who are not on my friendslist but really need to be.

:: Am contemplating what to do regarding the Equifax breach that stole my data -- might even write about it; it's not my core area of expertise but adjacent enough that a contribution could help others. Partially, I'm fed up because of yet more US-American privacy and security practices that run roughshod over individuals, and partially because two of the consumer reporting agencies, namely Equifax (surprise) and Experian don't let me do online credit freezes. Only TransUnion gave me the easy option of five minutes and ten bucks. I'll also look into the forced arbitration clause and the signing away of any class action rights, so let me know if you want to know the results.

:: Politics remain dire, but talking about them yesterday helped. By law I am not allowed to participate in politics directly or contribute financially (foreigner and all) but that makes me ever more determined to help. In these times of DACA danger, it's ever more the immigration side. Please, US friends, remember all of us who have no voice but everything to lose.

:: Planning for the big day goes apace. By "apace" I mean "haltingly and in quite an incompetent manner", but at least I am working on being an adult doing adult things. See also the subject line (yes, I would eventually get to it): I will never ever be a good planner or organizer of personal affairs, but it's time to stop beating myself up over it. I was talking on the phone to my best friend from US High School yesterday -- and the fact I braved the telephone should tell you how much I love her -- and had to stop her from putting herself (an accomplished professional owning a place in the City of Boston) down. Your late 30s and early 40s are a great time to realize that you're never going to be The Perfect Adult, but that this is alright; you'll make do.

:: My physical health, minus the chronic conditions, is excellent, almost two months post-surgery. Except for when I look down at the three tiny scars, I'm suffering no ill effects. I can run 10k with ease, I can swim for an hour, I can hike the hills of bay islands happily. Everything is in working order; I can scratch two regular medications off my list completely and, what's best, no. More. Pain. :)