-
Xml is a Joke
29 July, 2020Way back in the ancient times of 2006 I had a boss who wrote a xml sax parser in C++ because libraries were hard i guess. I got to debug bugs and use it and evntually wrote a object representation on top of it which used more memory and was 10% less awful to use. But everything was terrible so xml probably just didn’t have good libraries right.
Today I had to edit someone’s app.config and append to xml attributes that were really maps[string][]string / Dictionary<string,List
> that were hand serialized as"foo:bar,bunk;moo:brown,cow" Yuck. But this was just some awful dev right? So I aked to friends how they would serialize a map dict in xml.
I got
<MyAwesomeMap> <Entry> <Key>my key</Key> <Value> <List> <Entry>First one</Entry> <Entry> Second one </Entry> </List </Value> </Entry> </MyAwesomeMap>
and
<maptype> <entry key="key">value</entry> </maptype>
Okay those are better but certainly not consisteny. What does my old buddy powershell do
> @{foo="paul"} | ConvertTo-Xml -as string <?xml version="1.0" encoding="utf-8"?> <Objects> <Object Type="System.Collections.Hashtable"> <Property Name="Key" Type="System.String">foo</Property> <Property Name="Value" Type="System.String">paul</Property> </Object> </Objects>
Woof that’s not great here’s json for comparsion
> @{foo="paul"} | ConvertTo-Json { "foo": "paul" }
What aboutu go and python? Turns out their standard library marshallers won’t even take maps/dicts.
https://stackoverflow.com/questions/30928770/marshall-map-to-xml-in-go
https://pypi.org/project/dicttoxml/
Maps/dicts seem like pretty fundamental data types. Maybe XML was just never good all along.
Comments -
Garage brewery improvments
4 July, 2020likely.
- power strip with switches.
- pump arm
- auto sparge?
- pulley?
- hop spider?
- small stand.
- Mount pump.
- Mount light add hooks above fro
- remove carpet?
Hardrer
- 240 v power (steal ac?)
- Drain in floor or permanent tube?
- More space/ redo shelving?
-
Reiben Betrunken Lowe II
30 June, 2020Malt
- 6lbs pilsner malt
- 3 lb munich
- 2 lbs caramunich II
- 2 lbs dark munich
- 4 oz englisth choclate
Hops
- Mt Hood 1 oz - 60 min
- Mt Hood 1 oz - 5 min
Yeast
- Imperial - Harvest
Water
7.3? Gallon@158 strike. no sparge
Notes
- Dry and remember ph nuetralizer
- Yeast nutrient
- really slow start as I cooked it too much
-
Citrabomination
23 June, 2020Malt
- 10 lbs pale malt
- 1 lb Caramunich II
Hops
- Magnum 1 oz - 60 min
- Citra Cryo 1 oz - whirlpool @ 180 degrees
Yeast
- Imperial - Barbarian
Water
7.1? Gallon@158 strike. no sparge
Notes
- yeast nutrient @ 5 minutes
- Gypum @ boild
Dumped first batch on garage floor because of pump setup. Bubbling within 12 hours
Comments -
Carne Asada Street Tacos
26 May, 2020Ingredients
- Meat (About 3 lbs)
- Orange juice
- One large white onion
- Cilantro
- Lime juice
- Ground Cumin seed
- Garlic
- Salt
- Pepper
- Whte corn tortillas
MARINADE
Mix:
3-4 cups of orange juice (Enough to fully cover the meat in a freezer bag.
1 tablespoon of lime juice 1 tablespoon of ground cumin seed 1 tablespoon of minced garlic (Fresh is always best, but sometimes I use the stuff that comes in a jar) 1 tablespoon of finely chopped cilantro 1 teaspoon salt 1 teaspoon pepper
DIRECTIONS:
Put marinade in a large freezer bag, along with the meat and get enough air out of the bag so the meat is completely in the marinade.
Now, so far as time, I’ve sometimes only marinated the meat for a few hours. Mostly though, I like to let it sit in the refrigerator for two days.
I’ve read that the citric acids break down the meat, and it does seem to be more tender the longer you let it sit.
TOPPING:
There is nothing more than white onion and cilantro. Dice up a whole onion and mix in ¼ cup of chopped cilantro.
Comments
OLDER
- 26 May Beer pickles
- 25 May Life Lost
- 16 May Won't do what you tell me IPA
- 03 May This time is different
- 03 May Cheesy Shrimp and Grits
- 29 Mar Corona Testing in a distributed republic.
- 09 Mar Morbid Corona Bet
- 26 Feb Fullers ESBish
- 17 Feb Lego Collection
- 17 Feb GigaPilsner
- 14 Feb Reset Pull Request signoff
- 31 Jan Bitcoin Selfdriving Bet
- 14 Jan Golang thoughts
- 05 Jan Why Skiing
- 23 Dec Bolognese
- 05 Dec Oatmeal Stout
- 03 Nov To Test Drive.
- 24 Aug Dusseldorf Alt
- 24 Aug Cheif Curmudgeon
- 30 Jun A CI/CD we can believe in
- 25 Jun Productivity
- 13 Jun Classic Pine
- 05 Jun My Interview quesition
- 11 May Dunkel Schokolad
- 05 May Derby Fun 2
- 11 Apr Horse Power per Dollar
- 30 Mar Darkly Mild
- 30 Mar West Wheat
- 28 Mar Less Code
- 17 Mar China Future
- 04 Mar Street Corn
- 04 Mar Injera (Tibsi)
- 04 Mar Chicken Noodle Soup
- 01 Mar 747 rail gun
- 14 Feb A man for all seasons
- 13 Feb Ramayana and women
- 08 Feb Wintana Wine
- 26 Jan Flying Kolsch
- 10 Jan Netlify and blog thoughts
- 01 Jan Lip reading
- 27 Dec Pivo Clone (christmas justice)
- 17 Dec Brewing water
- 07 Dec Rasberry Brew
- 05 Dec Grapefruit Fish
- 29 Nov Ur Marzen
- 23 Nov Things we should tax.
- 18 Nov Panaoramas
- 18 Nov Brewie Repair
- 20 Oct Liberty Belles
- 15 Sep The Wreck Porter
- 11 Aug California Dunkel
- 04 Jul No Hard Feelings ESB
- 10 Jun Franks wheat
- 02 Jun Norse fun
- 02 Jun Brewie Review
- 28 May Choosing Life
- 27 May Pence and Mens Lizard brains.
- 22 May Lesser Known Romans
- 05 May Derby Fun
- 26 Apr Cowboy Morality
- 22 Apr Diogenes. Original Troll
- 21 Apr Finish the wonderland
- 12 Apr Real Blockchain
- 11 Apr I-90 Summits
- 10 Apr PCT Pack list
- 09 Apr Zelda
- 08 Apr sci-fi stack rank
- 07 Apr Why a blog?
- 01 Apr Catholic Libertarianism
- 11 Feb My Father
- 01 Jan Wintana's Winter Wonder beer.
- 01 Jan Willy's IPA
- 01 Jan Unfiltered Liberty
- 01 Jan Straight Jubel
- 01 Jan Straight Jubel (2011-11-23 version)
- 01 Jan Samoan Pale Ale.
- 01 Jan Riesen betrunken reden Lion
- 01 Jan Riesen betrunken reden Lion (2011-10-05 version)
- 01 Jan Original Sin Stout
- 01 Jan Old Hooker
- 01 Jan Old Crotchety
- 01 Jan Low Brau
- 01 Jan Low Brau 2.
- 01 Jan Ignoble India pale ale
- 01 Jan Hoptarded
- 01 Jan Harry Henderson's Oak Aged Stout
- 01 Jan Exiled Scot
- 01 Jan Bust me bagpipes scotch.
- 01 Jan American Dunkelweizen
- 25 Dec Why we goto church