(no subject)

Sep. 23rd, 2017 06:46 am
azurelunatic: A glittery black pin badge with a blue holographic star in the middle. (Default)
[personal profile] azurelunatic
Thursday was family games night, with pizza. [personal profile] sithjawa joined, as well as the partner's large array of siblings and their spouses/etc.

After games were done, my partner showed me Who Framed Roger Rabbit? out of the "You haven't seen that yet?" queue. And we watched more of The Orville, and I tested out my stand mixer by making some cookies.

Friday, in honor of the equinox, I baked a sweet cardamom loaf. Then we did a shopping run, and my partner made dinner.

These past two days have involved a lot of small gas-powered motors around. Partner has summoned a yard maintenance company to take care of some of the tree, bush, weed, and tenacious invasive morning glory things that the ex neglected in the interminable six months leading up to departure. It's been loud, but is so much better looking now. Though there are still some more things left for today, like the stack of lichen-covered branches in the driveway.

Choosing the ways

Sep. 20th, 2017 05:48 pm
gerald_duck: (quack)
[personal profile] gerald_duck
Suppose you wish to designate an option to a piece of hardware. You could stick down a little EEPROM, but maybe you'd prefer to make links, or join PCB tracks, without any active componentry.

You have Gnd, and N configuration lines each with weak pull-up. How many different values can you represent?

The most utterly naïve solution would be to encode N options by tying one of the lines to ground.

The marginally less naïve solution — and one that's very widely used — is to encode 2N options by tying any subset of the lines to ground.

However, if the configuration lines are independently bidirectional you can also tie them to one another. Denoting a ground connection by 0, n/c by 1 and commoned groups of lines by A, B, C, etc. the options with 2 lines become: 00 01 10 11 AA. With 3 lines: 000 001 010 011 100 101 110 111 0AA A0A AA0 1AA A1A AA1.

With 4 lines, things explode rather:
  • 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 (=16)
  • AA00 A0A0 A00A 0AA0 0A0A 00AA, AAA0 AA0A A0AA 0AAA, AAAA (=11)
  • AA01 A0A1 0AA1 AAA1, AA10 A01A 0A1A AA1A, A1A0 A10A 01AA A1AA, 1AA0 1A0A 10AA 1AAA (=16)
  • AA11 A1A1 A11A 1AA1 1A1A 11AA (=6)
  • AABB ABAB ABBA (=3)
…for a total of 52 options.


More generally, the number of options is BN+1, where B denotes a Bell number. My maths is rusty, but it looks like that grows faster than exponentially with the number of pins.

Is this a technique people actually use? Is there some reason I'm overlooking why it's a bad idea?

I mean, OK, I'll probably just use an EEPROM, but…

English usage

Sep. 18th, 2017 07:24 pm
damerell: NetHack. (Default)
[personal profile] damerell
Note: food eaten between supper and breakfast is incorrectly referred to as a midnight snack. The correct term is "dark lunch".

Long day!

Sep. 17th, 2017 02:46 am
azurelunatic: Polyamory infinite hearts, in a polymer-like grid (polymer)
[personal profile] azurelunatic
Breakfast with partner and metamour Leopard Girl.

Seanan McGuire event in Silverdale. We brought tribute, and were briefly Seanan's favorite. (Diet Dr Pepper and candy corn. Seanan is a being of predictable tastes.)

Mini muffin tin quest!

Partner made a note they should chat with our mutual friend in London about stuff. Hooray, viable communities.

Dinner for the extended polycule, with many dishes thanks to Trader Joe's. (Rice, orange chicken with extra zesty sauce but no carrots since we ran out, BBQ pork buns, pot stickers, spring rolls, and green beans. The rice and green beans weren't pre-packaged, and I do a little customization to the chicken by adding orange peel and scallions. The gyoza and bao steam over the rice, and the spring rolls could bake with the chicken. The green beans start frozen and get gently fried with seasonings. Usually it's butter and Montreal steak seasoning, but Stray Puppy Girl is very lactose intolerant, and Leopard Girl dislikes red pepper. So I went for sesame oil, garlic, onion, pepper, salt, ginger, a packet of soy sauce that needed using, and the excess teriyaki sauce from the other night. It turned out well. To my immense gratification, my partner really likes all the iterations of the green beans that I have made so far. Generally they disappear immediately.)

Club night. Without going into excessive detail, one of the groups near the people I was with were having a hilarious time, and kept setting each other off giggling. That prompted our group to giggle. The glee was infectious.

Everyone is spending the night. We hauled the camping pads out of the alleged guest room (it is currently not in a state for guests as my textiles have exploded all over it) and they're set up next to the futon in case it turns from cozy to crowded in the middle of the night. Things are well set up for breakfast, and there should be cheesecake at some point (thus the mini muffin tins).

Question thread #56

Sep. 16th, 2017 07:45 pm
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma posting in [site community profile] dw_dev
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.

music: 10 of the best

Sep. 13th, 2017 09:14 pm
forthwritten: white cassette tape lying on tangled magnetic tape (tape)
[personal profile] forthwritten
I've been really enjoying 10 of the best recently. With some bands, the appeal is in being reunited with songs dear as friends - revisiting them can be an experience in itself. With other bands that I know less well, it's learning of new-to-me songs, or seeing the music I know contextualised in a different way. With other bands, especially ones that I have listened to but lost track of, it's becoming aware of more recent work (especially when that work isn't easily accessed c.f. Burial's various EPs and collaborations). These are some of the lists I've particularly enjoyed or want to listen to later.

Genre
Northern Soul
Riot grrrl
Bollywood samples

Bands
Belle and Sebastian
Björk
Brian Eno
Burial
Cocteau Twins
David Bowie
Girls Aloud
Grace Jones
Joy Division
Leonard Cohen
Manic Street Preachers
Missy Elliott
Mogwai
Nick Cave
Pixies
PJ Harvey
Siouxsie and the Banshees
Slayer
Slipknot
St Vincent
Suede
Tori Amos