content
stringlengths
10
4.9M
Immunological signature of patients with thymic epithelial tumors and Good syndrome Background Thymic epithelial tumors (TETs) are frequently accompanied by Good Syndrome (GS), a rare immunodeficiency, characterized by hypogammaglobulinemia and peripheral B cell lymphopenia. TETs can be also associated to other immunological disorders, both immunodeficiency and autoimmunity. Methods In this study, we enrolled TET patients with GS to address differences between patients with or without associated autoimmune diseases (AD). We analyzed the immunophenotype from peripheral blood of these patients focusing on selected immune cell subsets (CD4+T cells, CD8+T cells, T regulatory cells, NK cells, B-cells, monocytes, eosinophils, basophils, neutrophils) and serum levels of cytokines, chemokines and growth factors. Results We observed higher number of leucocytes, in particular lymphocytes, B lymphopenia and lower number of T regulatory cells in TET patients with associated AD compared to TET patients without AD. In the group of TET patients with AD, we also observed increased serum levels of IL-15, VEGF, IP-10, GM-CSF, IL-6, and MIP-1α. Thus, we identified considerable differences in the lymphocyte profiles of TET patients with and without ADs, in particular a reduction in the numbers of B lymphocytes and T-regulatory cells in the former, as well as differences in the serum levels of various immune modulators. Conclusions Although the pathogenic mechanisms are still unclear, our results add new knowledge to better understand the disease, suggesting the need of surveilling the immunophenotype of TET patients to ameliorate their clinical management. Introduction Thymic epithelial tumors (TETs) are rare cancers originating from the thymus. The annual incidence of TETs is reported as 1.3 to 3.2 per million (1), with a mean age of diagnosis of 50-60 years. TETs are classified in thymoma, grouped into five types (A, AB, B1, B2 and B3), and thymic carcinoma (2). Current multimodality therapies (chemotherapy, surgery and radiotherapy) are reasonably effective in less advanced tumors (3). However, the rarity of these tumors highly delays the development of alternative therapeutic strategies and makes the management of TETs extremely challenging. TETs represent a particular type of malignancies as concerns clinical features, characterized by the singular combination with paraneoplastic syndromes, like autoimmune diseases (AD) (4) or immunodeficiency (5,6). Among TETs, thymoma is the most prevalent, and is frequently associated with AD, followed by thymic carcinoma, which is instead rarely associated with AD. Most common AD associated with TETs are myasthenia gravis (MG), Graves' disease, Hashimoto's thyroiditis, aplastic anemia, pure red cell aplasia (PRCA), autoimmune hemolytic anemia, lichen planus pemphigus, systemic lupus and others. MG is frequently observed in thymoma patients showing an incidence up to 46% (7,8). A multicenter retrospective study in TET patients reported PRCA as the most common type of cytopenia (30% of the cases) (9). Inflammatory bowel disease (IBD) and lichen planus have been reported as other autoimmune conditions (8,10,11). An open-label phase II trial aimed to address efficacy and safety of pembrolizumab in patients with TETs, reported as adverse events among others, MG (6.1%) and thyroiditis (3.0%) (12). The coexistence of thymoma with poliautoimmunity such as rheumatoid arthritis (RA) and Hashimoto's thyroiditis was described in a case report in which, the treatment with immunosuppressant improved swelling of joints and stiffness and reduced the tumor, thus suggesting autoimmune response as a common mechanism of these diseases (13). Indeed, a retrospective search of surgical database for patients operated for thymoma revealed inter-relationship between thymomas and MG or other autoimmune syndromes (14). In a retrospective study on 260 patients with thymoma, Isaac's syndrome was reported as the second most frequent AD after MG (15). This incidence was confirmed in another study (3.5%) reporting no risk factor for developing AD after thymectomy (16). Thymectomy is recommended for all MG patients with thymoma, however, its impact on the outcome of other AD is variable, and in some cases, might worsen the evolution of the disease (17, 18). A less frequent and under-evaluated parathymic syndrome, in the spectrum of autoimmunity and immunodeficiency is Goodʼs syndrome (GS) (19,20). GS displays hypogammaglobulinemia, low or absent B cells, abnormal CD4/CD8 T cell ratio and compromised T cell response to mitogens. Patients with GS frequently undergo fungal, bacterial and opportunistic infections due to humoral and cellmediated immunodeficiency and their management is quite challenging because of the sequelae of tumor-related therapies and life-threatening problems (6). An observational study suggested that chemotherapy administered to TET patients could be adopted also in patients with GS and/or immune cytopenia but required a very accurate monitoring. The authors highlighted the relevance of screening for immunological characteristics of GS patients with autoimmune cytopenia before the administration of immunosuppressive treatments. In this context, the evaluation of immunoglobulin titers, B cell counts and CD4+ T lymphocyte phenotyping is mandatory (9). Notably, the mortality rate of these patients receiving immunoglobulin replacement therapy, was reduced compared to previous studies (10,21,22); the deaths reported in advanced tumors were ascribed to frequent infections likely occurring for the several courses of chemotherapy (9). The increased prevalence of AD and immunodeficiency in TET patients is supportive of cell-mediated immune defect. Some abnormalities that may influence normal T-cell development have been detected in thymomas. In particular, a distorted tumor architecture and low expression of MHC class II on neoplastic cells was observed as well as the absence of the autoimmune regulator (AIRE) gene and a reduced production of T -regulatory (Treg) cells. Studies trying to address the immunological mechanisms responsible of these findings in thymoma, suggested aberration of T cell subsets and cytokines (23). In patients with thymoma and GS, a progressive decline of B, CD4+T and natural killer (NK) cells was observed (24). Defect of Treg cells in thymoma patients has been investigated in thymoma-associated MG, suggesting a Treg cell role in MG development (25)(26)(27)(28). In this study, we addressed differences Patients Patients recruited at the Rare Tumors Coordinating Center of Campania Region (CRCTR), of Federico II of Naples from June 2019 provided informed consent for their blood sample collection. Thymus neoplasia was rated in agreement with the World Health Organization (WHO) classification and tumor stage was determined according to the Masaoka staging system (29). Patients donating blood had been for at least 3 weeks treatment-free. For the aims of this study, patients with TETs were divided in two groups: patients with only GS (12 patients) and patients with GS plus AD (TET-AD, 17 patients). Blood cell count The blood collected from patients was processed for routine hematology. Laboratory data were used to obtain white blood cell (WBC) counts, absolute lymphocyte, neutrophil, monocyte, eosinophil and basophil counts. These parameters were compared to the normal range in Table 1. Immunofluorescent staining and lysis of whole blood Peripheral blood from patients was processed for immunophenotyping, according to the 8-color immuno phenotyping kit and Treg detection kit (CD4/CD25/CD127) instructions (MACS, Miltenyi biotec). Whole blood (100µl) from each patient was stained with 10 µl of 8-color immunophenotyping cocktail containing fluorochromeconjugated antibodies: anti-CD3 conjugated to PE, anti-CD4 conjugated to VioBright 667, anti-CD8 conjugated to APC-Vio 770, anti-CD14 conjugated to VioBlue, anti-CD16 conjugated to VioBright 515, anti-CD19 conjugated to PE-Vio 770, anti-CD45 conjugated to VioGreen, anti-CD56 conjugated to VioBright 515. Additionally, 10µl of 7-AAD staining solution were added to each tube. Stained blood was incubated 10' in the dark at room temperature (RT). After the incubation, red blood cell lysis solution (2 ml, 1X) was added to each tube and immediately vortexed thoroughly for 3 seconds and incubated for 15' in the dark at RT. Solution was aspirated after centrifugation at 300g for 10'. Cell pellet was re-suspended in a suitable amount of buffer and immediately subjected to by flow cytometry (BD LSRFortessa, BD Biosciences, San Jose, CA, USA), analyses were performed using Flowlogic Software (MACS, Milteny Biotech). Similar procedure was adopted after staining the whole blood (100 µl x tube) with Treg detection staining cocktail containing fluorochrome-conjugated antibodies: anti-CD4 conjugated to FITC, anti-CD25 conjugated to APC, anti-CD45 conjugated to Vio Blue, anti-CD127 conjugated to PE. Statistical analyses Results are presented as mean values ± standard deviation (SD). Statistical analyses were performed using GraphPad 8.0 software (GraphPad Software Inc., La Jolla, Ca). D'Agostino-Pearson normality test was used to evaluate whether the continuous data were normally distributed, and a two-tailed t-test for independent samples was used. Alternatively, we used Mann-Whitney test for non-parametric analysis. Grouped data were analyzed by Two-way Anova. Detected outliers were removed according to ROUT method with Q coefficient 1%. p values <0.05 were considered statistically significant. Background characteristic of patients Clinical features of TET-GS patients with and without AD are detailed in Table 2, as regard of age, sex, thymectomy, tumor histology and stage, MG and other AD, second primary cancer, incidence of infections. Quantification of leucocytes by blood cell count The number of WBCs was determined from blood cell count. We observed in TET-AD patients a higher number of leucocytes (9021,3 ± 3658,32 in 15 patients) with respect to TET patients (6010 ± 1966,51) as reported in Table 1, and the increase was statistically significant ( Figure 1A). In order to assign the increase observed in total leucocytes to a particular cell population, we reported also the number of lymphocytes, neutrophils, monocytes, eosinophils and basophils. The contribution of lymphocytes to the increased number of leucocytes in TET-AD group was statistically significant, whereas in other cell populations no difference was observed between the two groups of patients ( Figure 1B; Table 1). Identification and quantification of immune cell populations by flow cytometry The increase of the number of lymphocytes observed in TET-AD patients (Figure 1), prompted us to investigate potential difference between the two groups of patients in the percentage of lymphocyte subsets: T, (CD3+, CD4+, CD8+), B (CD19+) and natural killer (NK, CD56+). First, we selected live leukocytes, based on CD45 immunodetection, separated from debris via forward scatter (FSC) and side scatter (SSC). On live leukocytes, immune cell subsets were identified by gating strategies. The sentence can be: We observed a slight increase of T cell subsets (CD3+, CD4+, CD8+ T cells) in TET-AD patients compared to TET patients although differences did not reach statistical significance, similar values of CD4/CD8 ratio, normally greater than 1 (31) in TET and TET-AD patients were also detected: 0.91 ± 0.13 and 0.95 ± 0.09 (mean ± SEM), respectively. The reduced CD4/CD8 ratio compared to the normal range is consistent with the slight increase of CD8+ versus CD4+ T cells observed in both the groups, although the differences were not statistically significant. We observed a decrease of B cells, whose levels are much lower compared to T lymphocytes, in TET-AD patients with respect to TET patients without AD ( Figure 2B). The analyses of NK cells revealed no difference between the two groups of patients with means ± SEM of 4.68 ± 1.07 and 4.50 ± 0.78 in TET and TET-AD patients respectively (data not shown). Monocytes were distinguished, based on CD14 surface marker and further divided into classical, intermediate and non-classical monocytes by CD16 expression. Neutrophils and eosinophils were distinguished based on CD16 + /SSC high and CD16 -/SSC high populations. However, the analyses of monocytes, neutrophils and eosinophils did not show any significant difference between TET and TET-AD patients (not shown). Treg cells, evaluated on CD4+T cells, were identified gating CD25 high CD127 dim/neg surface markers. Treg cells ( Figure 2C), were down-regulated in TET-AD patients. A normal range of Treg cells previously evaluated on healthy individuals by CD25 high CD127 dim/neg markers reported a variation from 6-8% of circulating CD4+ T cells (32). In our data the values obtained ( Figure 2C) report means ± SEM of 8.31 ± 1.29 and 4.21 ± 0.64 in TET and TET-AD patients respectively. Thus, the value of Treg cells we observed in TET-AD patients is under the limit of the normal range. Analysis of circulating levels of cytokines, chemokines, and growth factors The analysis of a panel of cytokines, chemokines, and growth factors (Table 3) Discussion Immunodeficiency and autoimmunity were previously described as combined features in patients with thymoma (33, 34) highlighting a poor outcome (with the exclusion of MG) of these patients (23). In a previous study, we characterized immunophenotype and T cell repertoire in a cohort of 30 A 0 6 (35%) thymoma patients. We observed that GS development was accompanied by a progressive reduction of B, CD4+ and NK lymphocytes, modifications paired with naïve CD8+ CD45+RA +T cell subsets (24). Accumulation of naïve CD8+ CD45+RA+T cells is assumed as a hallmark of thymoma and has been reported to be more severe in subgroup of patients with MG (35). Consequently, GS patients often display an inverse CD4+/CD8+ ratio, CD4+ T cell lymphopenia, and impaired T cell mitogenic response (22). In the present study, we investigated the immunological abnormalities in patients with TETs associated with GS in the presence or in the absence of autoimmunity, which GS is the most common manifestation observed in these patients. The increased number of leucocytes in the TET-AD group of patients supports a profile of autoimmunity. In particular, we detected that lymphocytes represent the immune cell population accounting for leucocyte increase in TET-AD patients because no increase in other cell subsets (neutrophils, monocytes, eosinophils, basophils) was observed. The total number of lymphocytes accounts for T, B and NK cells. However, since B cells are scarcely present in TET-AD patients and NK cells are low in percentage and not different between TET and TET-AD patients, we speculated that the increase in the absolute number of lymphocytes might be due to the T cell compartment. However, the percentage of CD3+, CD4+ and CD8+ T cells although slightly increased in TET-AD patients compared to TET patients, did not reach the statistical significance. B lymphopenia typically observed in patients with clinical signs of GS immunodeficiency, was more marked in TET-AD than in TET patients. We previously suggested that the oligoclonal expansion of CD8 +T cells reported in the bone marrow of GS patients might mediate B cell precursor killing and consequently peripheral B cell loss (24). In our cohort of TET-AD patients, these mechanisms might be exacerbated by enhanced peripheral CD8+T cell activity, thus explaining the discrepancy between the two groups of patients in B lymphopenia. This hypothesis is supported by a study in a mouse model demonstrating that CD8+T cells primed by cytokines of innate immune response such as IL-15, of which we detected an increase in TET-AD patients, display enhanced responsiveness to antigens/autoantigens or to weakly agonistic TCR ligands. The results of this study suggested a role of inflammatory cytokines in triggering autoreactive CD8+T cells (36). Indeed, Treg cell percentage was lower in TET-AD patients compared to TET patients. Treg cells play a fundamental role in the maintenance of self-tolerance and controlling autoimmunity. It was suggested that Treg cell decrease in the thymic tissues of patients with thymoma might trigger the development of MG and our data seem to support this hypothesis. Indeed, neoplastic transformation in thymoma possibly has a role in the abnormal processes of positive and B A FIGURE 1 Leucocyte and immune cell subset counts in thymoma patients. Blood samples collected from patients with TETs and TET-AD, both with GS, were processed for blood cell count analysis. The number of leucocytes (A) and the number of lymphocytes, neutrophils, monocytes, eosinophils and basophils (B) expressed in leucocytes/µl and immune cell/µl respectively is reported for both groups of patients. Results are represented as mean values ± SD in box plots. Unpaired parametric two tailed t test was performed for the analyses of leucocytes, neutrophils, monocytes and basophils. Mann-Whitney test was used for the analyses of lymphocytes and eosinophils *p < 0.05. negative selection of thymocytes that guide to the loss of selftolerance and increase of autoreactive T lymphocytes in the peripheral blood (7). Changes in Treg cell number and distribution in the peripheral blood of thymoma patients with MG was extensively investigated. However, no conclusive data were reached. In this context, our analyses of a large panel of cytokines, chemokines, and growth factors highlighted the modulation of IL-15, IL-6, VEGF, IP-10, GM-CSF and MIP-1a with differences observed between the two groups of patients. In particular, we detected higher levels of all these factors in TET-AD than in TET patients. Il-15 is a pleiotropic pro-inflammatory cytokine endowed with numerous biological functions (37), ranging from T cell (38), neutrophil and macrophage activation to a critical role in dendritic cell activity in several systems (37). In various AD, increased levels of IL-15 in inflamed tissues and in the circulation were reported, likely contributing to AD pathogenesis (39). Additionally, previous studies described the key role of this cytokine in MG pathogenesis, suggesting that its release by muscle cells (39), worsened inflammation and the clinical course. Our data are in agreement with above reported studies and suggest that the increase of IL-15 in TET-AD patients might sustain T cell enhanced population and autoimmunity. Indeed, a study suggested that IL-15 enhanced effector T cell activity in the presence of Treg, and although functional in Treg, did not modify their inhibitory function (40). In multiple sclerosis, an AD with inflammatory component, IL-15 was reported to potentiate CD8+T cell activity (41) and promote their production of GM-CSF (42). IL-6 plays various role in AD, its abnormal regulation or oversecretion can lead to the occurrence of AD. IL-6 was demonstrated to contribute to the development of autoreactive CD4+T cell responses by suppressing the induction of Treg cells (43). IL-6 regulates the balance between Th17 and Treg cells, for example, in experimental autoimmune MG (EAMG), the treatment of myasthenic rats with neutralizing anti-IL-6 antibodies shifted the equilibrium in favor of Treg cells with consequent arrest of EAMG (44). A very recent study demonstrated increased levels of IL-6 in patients with MG and thymoma compared to patients with thymoma alone, thus suggesting its association with MG and its potential role in Treg cell decrease (45). Indeed, IL-6 was also reported to inhibit Treg cell differentiation induced by TGF-b (46) Our results showing increased IL-6 serum levels in TET-AD patients compared to TET patients, support the role of this cytokine in sustaining AD and contributing to Treg cell decrease. A cytokine profile of GS patients is not available, however, it was suggested that recurrent respiratory infections suffered by these patients could be related to the intracellular expressions of IL-17A and IFN-g (47). The role of VEGF in supporting the growth of some thymomas was suggested in a study reporting a correlation between VEGF receptor (VEGF-R) in endothelial and epithelial cells and the levels of VEGF (48). In a previous report, no differences in VEGF levels were detected between patients with MG and thymoma and patients with MG without thymoma, however, the increased levels of VEGF observed suggested its potential role in the pathogenesis MG (39). Our data support this hypothesis highlighting the increase of VEGF levels in TET-AD patients with respect to TET patients without AD. The increase of IP-10 in TET-AD patients is consistent with the role of this chemokine in AD pathogenesis. IP-10 detected at high levels in peripheral fluids is a marker of host immune response, particularly T helper (Th)1 orientated. In particular, the enhanced production of IFN-g and TNF-a stimulates IP-10 secretion by various cells perpetuating the autoimmune process (49). GM-CSF is involved in the inflammatory context of many AD. GM-CSF was observed in the peripheral blood of RA patients and its production by CD4+ cells was related to Th1 activation and IL-15 (50). Indeed, GM-CSF was reported to mediate autoimmunity by enhancing IL-6-dependent survival of antigen specific CD4+ T cells and promoting generation and maintenance of Th17 cells in vivo (51). We observed increase of GM-CSF in TET-AD patients with respect to TET patients, consistently with its role in AD. MIP-1a is a pro-inflammatory chemokine secreted by various types of immune cells upon activation and plays important roles in cell recruitment, trafficking and inflammatory responses. MIP-1a also emerged as a prognostic biomarker in both solid and hematological malignancies (52). The increased levels of MIP-1a FIGURE 3 Serum concentration of cytokines, chemokines and growth factors. Histograms indicate cytokine concentrations (pg/ml) in TET (N = 8) and TET-AD (N = 9) patients. The histogram of IL-6 includes TET (N = 7) and TET-AD (N = 9) patients. The histogram of MIP-1a includes TET (N = 7) and TET-AD (N = 8) patients. Results are indicated as mean ± SD. A two-tailed t-test for independent samples test was performed to analyze data (*p < 0.05; **p < 0.01). detected in TET-AD patients are in agreement with the increased amount of leukocytes and lymphocytes observed in this group of patients. The exclusion of AD contribution or a control for AD might be a limitation in our study. However, we have to consider that a proper AD control should require a not compromised B cell evolution like that reported in our patients, since it is accepted a collaboration of T cells and B cells in driving autoimmunity. Indeed, the recurrent infections in these patients make unique their immune system and difficult to compare with a "normal" immune system with AD. It was reported a multifaceted relationship between infections and autoimmunity. In particular, it was suggested that pathogens can shift the balance Th1-Th2 towards an immunosuppressive status, or infections in other locations might recall autoreactive cells preventing them from reaching and destroying the sites of autoimmunity (53). In conclusion, our study reports a profound remodeling in the B and T lymphocytes, highlighting differences in the Treg cell subset between TET-AD and TET patients. Additionally, secreted factors, cytokines and chemokines sustain the AD process. Although the pathogenic mechanism is still undefined, our data contribute to a better knowledge of the disease and suggest the need of surveilling the immunophenotype of these patients to ameliorate the clinical management, as summarized in Figure 4. Moreover, our study suggests that the identified immuno-profiles of patients with both thymic tumors and AD resemble those of TET patients responding to immune-checkpoint inhibitors, with relative high toxicity. The clinical management of patients with TETs and GS is still challenging and matter of debate. In case of coexisting AD, considering the greater decrease of B lymphocytes, the physician should carefully consider the management of immunosuppressive treatments in patients with TETs, thus we believe that a multidisciplinary approach is mandatory. Data availability statement The original contributions presented in the study are included in the article/supplementary material. Further inquiries can be directed to the corresponding authors. Ethics statement The studies involving human participants were reviewed and approved by Comitato Etico Università degli studi di Napoli Federico II, Dipartimento di Medicina Pubblica e della Sicurezza Sociale -Sezione di Medicina Legale -Edificio 20 -in Via S. Potential mechanism in TET-AD patients. The presence of CD3+T cells is influenced by pro-inflammatory cytokines able to regulate CD4+ and CD8+ T cell function in the context of TETs with GS and AD. IL-6 is known to promote autoreactive CD4+ T cells and inhibit Treg cells. We propose that IL-6 elicits both the reported functions in TET-AD patients enabling CD4+ T cells to secrete GM-CSF known to enhance IL-6dependent survival of CD4+ T cells. IL-6 might contribute to the decrease of Treg cells observed in TET-AD patients. On the other hand, IL-15 might support CD8+T cell function favoring its inhibitory effects on B cell development and likely inducing the secretion of GM-CSF by CD8+T cells that further sustains IL-6 activity. VEGF and IP-10 might exert a role in TET growth and in AD pathogenesis, whereas MIP-1a might be also involved in TET growth, and in the observed increased numbers of leukocytes and lymphocytes and in immune cells trafficking.
/** * This method toggles the selection booleans over a range of data indexes * * @param start * @param end */ public void toggleSelectRange(int start,int end) { debug("Toggling start index [" + start + "] to end index [" + end + "]", 8); if(start > end) { int tmp = start; start = end; end = tmp; } if(start < 0) { start = 0; } if(end > map.getMaxIndex()) { end = map.getMaxIndex(); } for(int i = start;i <= end;i++) { if(drawSelection.isIndexSelected(i)) { drawSelection.setIndexSelection(i,false); } else { drawSelection.setIndexSelection(i,true); } } }
//------ OLD SOOT FUNCTIONS CULLED FROM HERE ---- double CamSoot::gridFunction(const int k, const int n, const int m) { double gfun = 0; for (int l=0; l<=k; ++l) { int i = 6*(k-l+n); int j = 6*(l+m); gfun += bnCoeff(l,k) *( reducedMoments(i+1)*reducedMoments(j-3)+ 2*reducedMoments(i-1)*reducedMoments(j-1)+ reducedMoments(i-3)*reducedMoments(j+1) ); } return gfun; }
Comparing the Binding Interactions in the Receptor Binding Domains of SARS-CoV-2 and SARS-CoV SARS-CoV-2, since emerging in Wuhan, China, has been a major concern because of its high infection rate and has left more than six million infected people around the world. Many studies endeavored to reveal the structure of the SARS-CoV-2 compared to the SARS-CoV, in order to find solutions to suppress this high infection rate. Some of these studies showed that the mutations in the SARS-CoV spike (S) protein might be responsible for its higher affinity to the ACE2 human cell receptor. In this work, we used molecular dynamics simulations and Monte Carlo sampling to compare the binding affinities of the S proteins of SARS-CoV and SARS-CoV-2 to the ACE2. Our results show that the protein surface of the ACE2 at the receptor binding domain (RBD) exhibits negative electrostatic potential, while a positive potential is observed for the S proteins of SARS-CoV/SARS-CoV-2. In addition, the binding energies at the interface are slightly higher for SARS-CoV-2 because of enhanced electrostatic interactions. The major contributions to the electrostatic binding energies result from the salt bridges forming between R426 and ACE-2-E329 in the case of SARS-CoV and K417 and ACE2-D30 in the SARS-CoV-2. In addition, our results indicate that the enhancement in the binding energy is not due to a single mutant but rather because of the sophisticated structural changes induced by all these mutations together. This finding suggests that it is implausible for the SARS-CoV-2 to be a lab-engineered virus. A highly infectious strain of coronavirus, known as SARS-CoV-2, was first reported in Wuhan China on the 31st of December 2019. According to the World Health Organization (WHO), 1 this strain has, as of May 29th, 2020, resulted in more than 5 million infections and over 300,000 deaths all over the world. Previous studies conducted on the first SARS-CoV strain showed that the most likely mechanisms by which the virus interacted with a cell were mediated by the receptor binding domain (RBD) on the spike protein (S protein), which binds with the peptidase domain of the human angiotensin-converting enzyme 2 (ACE2). 2 Similarly, SARS-CoV-2 was proposed to enter the cells through the RBD. 3−5 However, according to the latest resolved structure using Cryoelectronic microscopy, 5 several mutations were identified in the RBD, which include V404 → K417, R426 → N439, Y442 → L455, L443 → F456, L460 → F473, L472 → F486, L479 → Q493, D480 → S456, Y484 → Q498, and T487 → N501. Furthermore, another study using comparative genomics identified only 5 mutations and stated that RBD does not contain insertion or deletion. 6 The V404 → K417 mutation balances the R426 → N439, because they can cause addition and removal of the positively charged amino acids, respectively. Moreover, the D480 → S456 mutation removes a negatively charged amino acid and is, therefore, expected to make the electrostatic surface potential of SARS-CoV-2 more positive. In this work, we study the binding interaction between the amino acids on the interface between the ACE2 receptor and the S protein of SARS-CoV and SARS-CoV-2 viruses using molecular dynamics (MD) simulations and Monte Carlo (MC) sampling. The crystal structure PDB ID 2AJF, 7 which includes the receptor binding domain RBD of SARS-CoV and the ACE2, was first MD optimized using openMM software, 8−13 followed by running Monte Carlo simulations using MCCE (Multi Conformer Continuum Electrostatic) software, 14,15 to sample the protonation states of the amino acids. The electrostatic interactions between the different amino acids' conformers were calculated by solving the Poisson−Boltzmann equation using DELPHI. 16 The generated conformers' occupancies based on Boltzmann distributions were used to calculate the electrostatic and van der Waals interactions between the amino acids in the SARS-CoV and the ACE2. To study the interactions between the SARS-CoV-2 and the ACE-2, the mutants V404K, R426N, Y442L, L443F, F460Y, L472F, N479Q, D480S, Y484Q, and T487N were constructed based on the cryoEM structure PDB ID 6M17. 7 The simulations were performed by replacing the side chains in the native structures with the proper side chains of the mutants using MCCE. Several confirmations of the side chains were created to avoid van der Waals clashes. The side chain conformers with the highest Boltzmann occupancies were then MD optimized, followed by using MCCE to calculate the binding energies. The electrostatic potential maps of SARS-CoV, SARS-CoV-2, and ACE2 were calculated using Adaptive Poisson− Boltzmann Solver (APBS). 15 While both SARS-CoV and SARS-CoV-2 showed positive potentials (Figure 1a,b), ACE2 exhibited a negative electrostatic potential at the RBD, as shown in Figure 1 c. However, the potential observed for SARS-CoV-2 was more positive, which consequently resulted in a greater electrostatic interaction between ACE2 and SARS-CoV-2. This could be explained by the replacement of the negatively charged amino acid Asp by a neutral Ser (D480S). The optimized structure of SARS-CoV showed a salt bridge between SARS-CoV-R426 and ACE2-E329 (Figure 2a), which dominated the electrostatic interactions with the ACE2. In the case of SARS-CoV-2, the corresponding salt bridge was shown to be forming between CoV-2-K404 and ACE2-D30 ( Figure 2b). However, the latter exhibited a higher electrostatic interaction by 1.4 kcal/mol ( Table 1). The contribution in the free energy formation of the salt bridges (ΔG) is dominated by the pariwise acid/base interactions (Table S4). The total electrostatic interactions between the SARS-CoV-2 and the ACE-2 is 3 kcal/mol higher than SARS-CoV (Table S1). The contribution of a single mutant to the electrostatic binding energies is very small (Table S1). However, these mutants induce structural changes that increase the favorable van der Waals interactions in SARS-CoV-2. A maximum van der Waals interaction of 1.6 kcal/mol was observed between SARS-CoV-Y457 and ACE2-T27, whereas for SARS-CoV-2 the maximum van der Waals interaction observed between CoV2-D491 and ACE2-K353 was 2.1 kcal/ mol ( Table 1). The total van der Waals contribution to the binding energy was 4 kcal/mol. The total sum of binding Table S3 shows the surface-accessible areas of the amino acids. Table S1 includes more information about the electrostatic and van der Waals interactions between SARS-CoV, SARS-CoV-2, and ACE2. The Journal of Physical Chemistry Letters pubs.acs.org/JPCL Letter interactions between the SARS-CoV-2 and the ACE2 receptor was found to be ∼7 kcal/mol, which is higher than the total binding energy in the case of SARS-CoV by a factor of 1.54. To obtain a better sampling we calculated the electrostatic interactions between SARS-CoV/SARS-CoV-2 and the ACE2 for different MD trajectories at 100, 200, and 300 ps. The binding energies for SARS-CoV/SARS-CoV-2 are comparable. However, on average the SARS-CoV-2 binds stronger than the SARS-CoV (Table S2). Furthermore, to illustrate the overall structural changes in the S-protein in SARS-CoV-2, we calculated the binding energies starting from the cryo-Em structure resolved for the Sprotein of SARS-CoV-2 and the ACE2 (PDB ID: 6M17). We found that the total binding energy in the case of SARS-CoV-2 is stronger, where the electrostatic and van der Waals interactions are 3 and 1 kcal/mol, respectively, higher than in case of the SARS-CoV. Several studies proposed that the increased virulence of SARS-CoV-2 is due to its higher binding affinity to the ACE2 receptor. 3,6,7 Yan et al. proposed that mutation V404 → K417 may result in higher binding affinity due to the salt bridge between K417 and D30, whereas the R426 → N439 mutation would weaken the interaction with E329. 7 However, our simulations show that the V404 → K417 mutation increased the binding affinities because of favorable electrostatic interactions that are greater than the energy losses induced by R426 → N439 mutation. Additionally, mutation L472 → F486 was proposed to weaken van der Waals contact with Met 82 of ACE2. In contrast, the relaxed structure showed a van der Waals attraction of −1.32 kcal/mol. 7 The structural changes induced by these mutations likely conferred stability to SARS-CoV-2 as it binds to ACE2. This agrees with the study of Ortega et al., 17 in which they found that two main residues (479 and 487) have been associated with human ACE2 recognition. They further found a higher number of residues in the SARS-CoV-2 capping loops and attributed the more favorable binding affinity of −15.7 kcal/mol as opposed to −14.1 kcal/mol for SARS-CoV. 17 Our results also agree with the experimental work of Wallas et al, where they studied the binding kinetics and affinity of the purified human ACE2 to both SARS-CoV-2 and SARS-CoV. They found that the equilibrium dissociation constant in the case of the first is ∼4 times lower than the second, indicating much higher affinity between SARS-CoV-2 and ACE2. 18 In summary, we show that the total binding energy between ACE2 and SARS-CoV-2 is higher than in the case of SARS-CoV, because of enhanced electrostatic interactions induced by the SARS-CoV-2 mutations. Based on our calculations, there is no significant contribution from a single mutant to the binding energies; however, these mutations induce sophisticated structural changes that enhance the electrostatic and van der Waals binding energies. These results might also support the idea that it is unlikely that the SARS-CoV-2 is lab engineered, but rather a result of a biological evolution. 19 ■ ASSOCIATED CONTENT Detailed description of the MCCE and MD calculations, Table S1 of interactions between amino acids within the RBD, Table S2 of the electrostatic and van der Waals interaction for different MD trajectories, and Table S3 of the surface exposure of key amino acids, Table S4 of the ΔG's of the ACE2-D30/SARS-CoV-R426 and ACE2-E329/SARS-CoV-2-K404 salt bridges and the coordinates of the relaxed SARS-CoV-2 structures (PDF)
#!/usr/bin/python import sys import re cin = sys.stdin.readlines() def str_to_int(s): base = 1 step = 26 sum = 0 for ch in s[-1::-1]: sum += base*(ord(ch) - ord('A') + 1) base *= step return sum def int_to_str(n): n = n - 1 base = 26 s = '' while n >= 0: s += chr(ord('A') + n % base) n = n / base - 1 return s[-1::-1] for i in range(int(cin[0].strip())): line = cin[i + 1].strip() m = re.match(r"^([A-Z]+)(\d+)$", line.strip()) if m: print("R" + m.groups()[1] + "C" + str(str_to_int(m.groups()[0]))) continue m = re.match(r"^R(\d+)C(\d+)$", line.strip()) if m: print(int_to_str(int(m.groups()[1])) + m.groups()[0]) continue print("FAIL")
// Dependencies returns all dependencies, including transitive ones, for a library func Dependencies(dir, lib string) map[string]string { r := map[string]string{} file, err := File(filepath.Join(dir, lib, FileName)) if err != nil { return r } for dependency, version := range file.Require { if "php" == dependency { continue } else if _, ok := r[dependency]; ok { continue } r[dependency] = version for transitive, version := range Dependencies(dir, dependency) { r[transitive] = version } } return r }
/** * Validates if at least one recipient is specified * * @return */ @AssertTrue(message = "One of to, cc or bcc must be specified") @Schema(accessMode = READ_ONLY) public boolean isRecipientSpecified() { return !CollectionUtils.isEmpty(to) || !CollectionUtils.isEmpty(cc) || !CollectionUtils.isEmpty(bcc); }
def nearestNeighbourSolution(dist_matrix): node = random.randrange(len(dist_matrix)) result = [node] nodes_to_visit = list(range(len(dist_matrix))) nodes_to_visit.remove(node) while nodes_to_visit: nearest_node = min([(dist_matrix[node][j], j) for j in nodes_to_visit], key=lambda x: x[0]) node = nearest_node[1] nodes_to_visit.remove(node) result.append(node) return result
<gh_stars>10-100 // NG import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { A11yModule } from '@angular/cdk/a11y'; // App import { NovoOverlayModule } from '../overlay/Overlay.module'; import { NovoTooltipModule } from '../tooltip/Tooltip.module'; import { NovoSelectElement } from './Select'; @NgModule({ imports: [CommonModule, FormsModule, A11yModule, NovoOverlayModule, NovoTooltipModule], declarations: [NovoSelectElement], exports: [NovoSelectElement], }) export class NovoSelectModule {}
Durability Improvement of Pt/RGO Catalysts for PEMFC by Low-Temperature Self-Catalyzed Reduction Pt/C catalyst used for polymer electrolyte membrane fuel cells (PEMFCs) displays excellent initial performance, but it does not last long because of the lack of durability. In this study, a Pt/reduced graphene oxide (RGO) catalyst was synthesized by the polyol method using ethylene glycol (EG) as the reducing agent, and then low-temperature hydrogen bubbling (LTHB) treatment was introduced to enhance the durability of the Pt/RGO catalyst. The cyclic voltammetry (CV), oxygen reduction reaction (ORR) analysis, and transmittance electron microscopy (TEM) results suggested that the loss of the oxygen functional groups, because of the hydrogen spillover and self-catalyzed dehydration reaction during LTHB, reduced the carbon corrosion and Pt agglomeration and thus enhanced the durability of the electrocatalyst. Background Currently, polymer electrolyte membrane fuel cells (PEMFCs) are considered as one of the most environmentally friendly energy sources and a promising candidate as next-generation power sources for stationary systems and portable applications owing to their low operation temperature, fast start-up, and high energy efficiency and power density . The electrochemical corrosion of the carbon supports in PEMFC catalysts is regarded as a main cause of undermining durability when operated for extended periods of time. Thus, the supporting material where catalyst nanoparticles are anchored plays an important role for enhancement of long-term durability. Carbon black (CB) is the most common commercial supporting material for PEMFC catalysts. Despite several advantages such as a large surface area and high conductivity as a porous carbonaceous material, its poor long-term stability is considered as the most critical problem to be solved . To improve the long-term durability of PEMFC catalysts, carbon nanotube (CNT) and graphene containing robust graphitic structures have been widely studied as supporting materials . Graphene oxide (GO) have abundant surface functional groups and defects, which are chemically active sites for use in catalytic reactions and also act as the anchoring sites for metal nanoparticles, making it a promising supporting material for electrocatalysts for PEMFCs . However, excessive amount of oxygen-containing functional groups can reduce the electrical conductivity and electrochemical stability of CNT and graphene, which can make them weak to chemical oxidation and thus deteriorate the long-term durability of supported electrocatalysts . In this study, low-temperature hydrogen bubbling (LTHB) was conducted to prepare Pt/reduced graphene oxide (RGO) with enhanced durability by the effect of self-catalyzed dehydration of the functional group. LTHB effectively removed the functional groups without the agglomeration of Pt particles. The LTHB-treated Pt/RGO showed highly improved long-term durability compared to the nontreated Pt/RGO after an accelerated durability test for 2 h, because of the less agglomeration of Pt particles. As the LTHB time increased, the long-term durability was improved. The physical and electrochemical characteristics of the fabricated catalysts were examined by thermogravimetric analysis (TGA), X-ray photoelectron spectroscopy (XPS), X-ray diffraction (XRD), transmission electron microscopy (TEM), Raman spectroscopy, cyclic voltammetry (CV), and oxygen reduction reaction (ORR) measurements. Preparation of Catalysts GO was prepared by Hummer's method with expandable graphite (Grade 1721, Asbury Carbon, Co., Ltd., USA) . To prepare Pt/RGO, 50 mg GO was first dispersed in 200 mL ethylene glycol (EG; Daejung Chemicals, Republic of Korea), and then the precalculated amount of metal precursor, H 2 PtCl 6 · 6H 2 O (Sigma-Aldrich, USA), was added drop by drop to the GO suspension under magnetic stirring. The pH of the suspension was adjusted to 11 using 1 M NaOH solution and was heated and stirred at 110°C for 90 min to reduce Pt precursors to Pt nanoparticles. The final product was collected by filtration followed by washing with ethanol and DI water. The obtained catalyst was dried in a vacuum oven at 70°C overnight. The LTHB-treated catalyst (Pt/RGO-R) was prepared by the bubbling of hydrogen gas for 24 h at 80°C in water . The effects of LTHB time were investigated by using 12, 24, and 36 h of LTHB. The loading amount of Pt was kept~40 wt% for all the catalysts to set it the same as the commercial Pt/C (40 wt% HiSPEC TM 4000, Johnson Matthey) catalyst, which was analyzed by TGA (TA Instrument TGA Q50, USA). Instrumental Analysis The chemical compositions and functional groups of GO were examined by X-ray photoelectron spectroscopy (XPS; Thermo Fisher K-alpha, UK) and element analysis (EA; Thermo Scientific Flash 2000, Netherlands). Raman analysis was conducted to identify the change in the defects in the GO using a DXR Raman microscope (Thermo Scientific, USA) with incident light at a wavelength of 532 nm. XRD (Rigaku RAD-3C, Japan) analysis was performed to investigate the crystal structure and size of Pt particles in each catalyst. XRD data were collected in the range of 10°to 100°with Cu Kα radiation (λ = 1.5418 Å) at 40 kV and 30 mA. TGA (TA Instrument TGA Q50) was used to determine the loading amount of Pt on GO at a heating rate of 10°C min −1 ranging from room temperature up to 800°C. The morphology and distribution of Pt particles on GO were characterized by TEM (JEOL JEM-2100 F, Japan). Electrochemical Analysis Cyclic voltammetry (CV; BioLogic, SP-50, USA) was measured using a half-cell system with three electrodes for electrochemical analysis. A Pt wire and an Ag/AgCl electrode were used as counter and reference electrodes, respectively. A glassy carbon electrode (GCE; 3 mm in diameter) was polished and used as the working electrode after 3 μL of catalyst ink was coated on it. The uniform catalyst ink was synthesized by mixing IPA with 5 wt% Nafion (Sigma-Aldrich, USA) with 5 mg catalyst followed by 30 min ultrasonic treatment. CV measurements were performed from −0.2 to 1.0 V to measure the electrochemical surface area (ECSA) of catalysts in nitrogen-saturated 0.5 M H 2 SO 4 at a scan rate of 50 mV s −1 , and the durability of the catalysts was investigated by repeating 200 cycles between 0.4 and 1.2 V at the same scan rate. Linear sweep voltammetry (LSV) for oxygen reduction reaction (ORR) activity was measured using a rotating disk electrode (RDE; 3 mm in diameter) in an oxygen-saturated 0.5 M H 2 SO 4 electrolyte between 0.9 and 0 V at a scan rate of 10 mV s −1 , and the ORR durability was also examined at a rotating rate of 1600 rpm for 200 cycles. All the experiments were carried out at 25°C. Moreover, electrochemical impedance Results and Discussion The XRD patterns shown in Fig. 1 The Pt particle size in Pt/RGO was~2.6 nm, which was similar to that of the commercial Pt/C catalyst (2.7 nm), indicating uniform distribution of Pt nanoparticles on GO even at a high loading amount. After the LTHB treatment, there was a slight increase in the particle size (3.0 nm), which can be because of the redeposition of the dissociated Pt ions from the Pt particles during LTHB . The XRD peak at~11°of GO was attributed to the extended sheet-to-sheet distance by the large amount of functional groups and captured water molecules between hydrophilic sheets, which shifted to around 23°in Pt/RGO, because of the decrease in the interlayer distance of GO by the reduction of functional groups during Pt deposition . A slight shift of the carbon (002) peak of Pt/RGO-R was ascribed to the further reduction of functional groups during the LTHB treatment. The reduction of the functional group in Pt/RGO by the LTHB treatment was confirmed by the Raman spectrum as shown in Fig. 2. Pt/RGO and Pt/RGO-R exhibit the G and D bands at similar positions,~1589 and 1334 cm −1 , respectively. The G band originated from a vibration mode of adjacent carbon atoms in the hexagonal structure moving in opposite directions and has an E2g symmetry. The D band exhibits crystal The schematic representation of self-catalyzed dehydration of Pt/RGO during the LTHB treatment is shown in Fig. 3a. First, hydrogen molecules dissociate into atomic hydrogens by Pt nanoparticles, which migrate from Pt to functional groups such as the hydroxyl group (-OH) and epoxy group (-O-), followed by dehydration forming H 2 O on the GO surface . The formation of Pt-O-C bonds can be confirmed by the existence of the Pt 2+ XPS peak as shown in Fig. 3b . The reduction of the functional groups during the LTHB treatment was further confirmed by XPS and EA. As shown in Fig. 4, the C1s XPS spectrum of the pristine GO exhibits four different peaks centered at 284.5, 286.5, 287.7, and 288.9 eV, corresponding to C-C, C-O, C = O, and O-C = O groups in GO, respectively . Pt/ RGO shows highly reduced functional groups over the pristine GO, indicating the co-reduction of Pt and GO during the Pt loading step . Moreover, a further decrease in the C-O and C = O groups and increase in the C-C bond intensities were observed after the LTHB treatment by the self-catalyzed dehydration. EA results summarized in Table 1 exhibit highly decreased O/C ratio of Pt/RGO-R over Pt/RGO, which also confirms the reduction of oxygen-containing functional groups during the LTHB treatment. The changes in the ECSA for various catalysts after repeated electrochemical cycles were measured using a CV instrument. As shown in Fig. 5 and Table 2, Pt/RGO exhibits better stability than Pt/C. Moreover, the stability of Pt/RGO-R further improved after the LTHB treatment. Pt/C showed as much as 52.1 % decrease in the ESCA after 200 repeated cycles, but those of Pt/RGO and Pt/ RGO-R dropped only 35.7 and 21 %, respectively, which clearly indicate improved long-term stability without sacrificing the initial ECSA after the LTHB treatment. The effect of the LTHB treatment time was evaluated and is shown in Fig. 5d. The stability of Pt/RGO only slightly increased after 12 h of treatment; however, after another 12 h, a noticeable increase in the stability was observed. There was no further distinct improvement after another 12 h of treatment. The agglomeration of the Pt nanoparticles after repeated CV cycles was analyzed by TEM images as shown in Fig. 6. Initially, Pt nanoparticles are uniformly dispersed over the GO surface. After 200 repeated CV cycles, a high level of agglomeration (224 %) was observed in the nontreated Pt/ RGO (Table 3). In contrast, only 106 % of agglomerate for Pt/RGO-R was observed, which clearly indicates that LTHB improves the long-term stability of the Pt/RGO catalyst. Because of the better graphitic structure and less functional groups in GO after the LTHB treatment, GO became more resistant to the chemical corrosion during repeated cycles, which resulted in the less agglomeration of Pt nanoparticles on GO-R than that on pristine GO . The Nyquist plots of Pt/RGO and Pt/RGO-R measured by electrochemical impedance spectroscopy (EIS) are shown in Fig. 7. The smaller diameter of the semicircle of Pt/RGO-R than that of Pt/RGO indicates a low resistance of Pt/RGO-R, which also suggests the recovered sp 2 networks after LTHB . As shown in Fig. 8a, the half-wave potential (E½) corresponding to one half of the diffusion current was used to evaluate the ORR activity of the catalysts. Pt/C and Pt/RGO showed an E½ of about~47.4 and 12.3 mV, respectively, which shifted from that of Pt/RGO-R, indicating better ORR activity of Pt/RGO-R because of the enhanced charge transfer between Pt and GO that originated from the increased electrical conductivity of GO-R after the LTHB treatment. The deactivation of the ORR activities of Pt/C, Pt/RGO, and Pt/RGO-R was measured by conducting 200 repeated cycles. As shown in Fig. 8, Pt/RGO-R exhibited a less decrease of E½ than those of Pt/C and Pt/RGO. The E½ shifts of Pt/C, Pt/RGO, and Pt/RGO-R after 200 repeated ORR cycles were 53.4, 19, and 4.7 mV, respectively, indicating that the self-catalyzed reduction by hydrogen minimizes carbon corrosion, and thus Pt agglomeration, leading to highly improved longterm durability. Conclusions In this study, a highly durable Pt/RGO-R electrocatalyst was prepared by LTHB treatment. The reduction of the functional groups and restoration of sp 2 networks in GO were confirmed by the XPS and Raman spectra. Both the CV and ORR tests demonstrate that Pt/RGO-R showed a better long-term durability than the nontreated Pt/RGO and Pt/C. Pt/RGO-R exhibited only 21 % drop in ECSA after 200 repeated CV cycles, which is approximately 1.7 times higher than that of the nontreated Pt/RGO and 2.5 times higher than that of the commercial Pt/C catalyst. The TEM results show that the agglomeration of Pt nanoparticles after repeated CV cycles was highly suppressed by the self-catalyzed dehydration, resulting in less carbon support corrosion and thus improved long-term durability.
def static_proxy(path): print(path) KBASE_ENDPOINT = os.environ.get('KBASE_ENDPOINT') print("Authenticating") token = None token_resp = get_token(request.headers) if token_resp.startswith("Error"): return token_resp else: token = token_resp if token is None: return '{"error":"Unauthorized access"}' p = path.split("/") ref = p[0] + "/" + p[1] + "/" + p[2] print("object reference is :" + ref) print("Getting workspace data") genomic_indexes = None if (p[3] == "index.html"): genomic_indexes = get_jbrowse_from_obj(ref, token, KBASE_ENDPOINT) dir = FILE_SERVER_LOCATION + "/" + ref tracklist_path = dir + "/data/trackList.json" if os.path.exists(tracklist_path): print("Serving cached track information") return app.send_static_file(path) else: print("Building Jbrowse path") genomic_indexes = get_jbrowse_from_obj(ref, token, KBASE_ENDPOINT) if genomic_indexes is None: return '{"error":"Missing genomic indexex"}' print("Getting jbrowse.zip") shock_node = None for g in genomic_indexes: print(g) f = g.get('file_name') if f == 'jbrowse.zip': shock_node = g.get('id') if shock_node is None: return '{"Error": "cannot find Jbrowse data node"}' shock_url = KBASE_ENDPOINT + "/shock-api" shock = ShockClient(shock_url, token) if not os.path.isdir(dir): os.makedirs(dir) filename = os.path.join(dir, "jbrowse.zip") pathx = os.path.join("/kb/module/work", filename) data_zip_file = shock.download_to_path(shock_node, pathx) with zipfile.ZipFile(data_zip_file, 'r') as zip_ref: zip_ref.extractall(dir) updated_tracklist = fix_tracklist(tracklist_path) print("Tracklist path is :" + updated_tracklist) print("Final list of files") print(os.listdir(dir)) return app.send_static_file(path)
export { curveBasisClosed, curveBasisOpen, curveBasis, curveBundle, curveCardinalClosed, curveCardinalOpen, curveCardinal, curveCatmullRomClosed, curveCatmullRomOpen, curveCatmullRom, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, } from '../../d3'
import React from "react"; import classNames from "classnames"; import { constructAvatarUrl, attach, isDefined } from "Utility"; import { User } from "Utility/types"; import { Option } from "Utility/option"; import Placeholder from "Components/Placeholder"; import "./style.scss"; /** * Constructs an avatar URL for a user from either a pre-made avatar URL, * @param options - User specified by avatar URL, user, or default discriminator. * Additionally, includes CDN image size */ export function getAvatarUrl({ avatarUrl, user, discriminator, size, }: { avatarUrl?: string; user?: User; discriminator?: string; size?: number; }): string { // Use specified avatar url if (isDefined(avatarUrl)) return avatarUrl; // Construct new avatar url if (isDefined(user) && user.avatar.isDefined()) { return constructAvatarUrl({ clientId: user.id, size, hash: user.avatar.get, }); } // Use default avatar url let resolvedDiscriminator = "0"; if (isDefined(discriminator)) resolvedDiscriminator = discriminator; else if (isDefined(user)) resolvedDiscriminator = user.discriminator; return constructAvatarUrl({ discriminator: resolvedDiscriminator, size, }); } const avatarSize = 40; type UserDisplayProps = { className?: string; avatarUrl?: string; username?: string; user?: User; discriminator?: string; } & Partial<React.HTMLAttributes<HTMLElement>>; const UserDisplay: React.FC<UserDisplayProps> = ({ className, avatarUrl, user, username, discriminator, ...rest }) => ( <div className={classNames("user-display", className)} {...rest}> <Avatar avatarUrl={avatarUrl} user={user} /> <div> <Placeholder.Text text={Option.from(user?.username).getOrElse("")} className="username" width={90} size="0.95em" light /> <Placeholder.Text text={Option.from(user?.discriminator || discriminator) .map((d) => `#${d}`) .getOrElse("")} className="discriminator" size="0.95em" width={40} light /> </div> </div> ); // ? ================= // ? Helper components // ? ================= type AvatarProps = { avatarUrl?: string; discriminator?: string; user?: User; className?: string; circle?: boolean; size?: number; } & Partial<React.HTMLAttributes<HTMLElement>>; const Avatar: React.FC<AvatarProps> = ({ avatarUrl, discriminator, user, className, circle, size = avatarSize, ...rest }) => { const effectiveAvatarUrl = getAvatarUrl({ avatarUrl, discriminator, user, size, }); return ( <Placeholder.Custom value={effectiveAvatarUrl} className={classNames("avatar", className)} width={size} height={size} circle={circle} light > <div className={classNames("avatar-image", className, { circle })} style={{ backgroundImage: `url(${effectiveAvatarUrl})`, width: `${size}px`, height: `${size}px`, }} {...rest} /> </Placeholder.Custom> ); }; export default attach(UserDisplay, { Avatar });
import styled from "styled-components/macro"; import GridItem from "components/GridItem"; export const Main = styled(GridItem)` & > ul { margin-bottom: 20px; } `;
/** * Transforms the given shape. * This method is similar to {@link AffineTransform#createTransformedShape(Shape)} except that: * * <ul> * <li>It tries to preserve the shape kind when possible. For example if the given shape * is an instance of {@link RectangularShape} and the given transform does not involve * rotation, then the returned shape may be some instance of the same class.</li> * <li>It tries to recycle the given object if {@code overwrite} is {@code true}.</li> * </ul> * * @param transform the affine transform to use. * @param shape the shape to transform, or {@code null}. * @param allowOverwrite if {@code true}, this method is allowed to overwrite {@code shape} with the * transform result. If {@code false}, then {@code shape} is never modified. * @return the transform of the given shape, or {@code null} if the given shape was null. * May or may not be the same instance than the given shape. * * @see AffineTransform#createTransformedShape(Shape) */ public static Shape transform(final AffineTransform transform, Shape shape, boolean allowOverwrite) { ArgumentChecks.ensureNonNull("transform", transform); if (shape == null) { return null; } final int type = transform.getType(); if (type == TYPE_IDENTITY) { return shape; } /* * If there is only scale, flip, quadrant rotation or translation, * then we can optimize the transformation of rectangular shapes. */ if ((type & (TYPE_GENERAL_ROTATION | TYPE_GENERAL_TRANSFORM)) == 0) { if (shape instanceof Rectangle2D) { final Rectangle2D rect = (Rectangle2D) shape; return transform(transform, rect, allowOverwrite ? rect : null); } /* * For other rectangular shapes, we restrict to cases without * rotation or flip because we don't know if the shape is symmetric. */ if ((type & (TYPE_FLIP | TYPE_MASK_ROTATION)) == 0) { if (shape instanceof RectangularShape) { RectangularShape rect = (RectangularShape) shape; if (!allowOverwrite) { rect = (RectangularShape) rect.clone(); } final Rectangle2D frame = rect.getFrame(); rect.setFrame(transform(transform, frame, frame)); return rect; } } } if (shape instanceof Path2D) { final Path2D path = (Path2D) shape; if (allowOverwrite) { path.transform(transform); } else { shape = path.createTransformedShape(transform); } } else if (shape instanceof Area) { final Area area = (Area) shape; if (allowOverwrite) { area.transform(transform); } else { shape = area.createTransformedArea(transform); } } else { shape = new Path2D.Double(shape, transform); } return shape; }
// Channels returns names of channels for the specified group func (p *Playlist) Channels(group string) []*PlaylistItem { var ( id string url string channel string gchannel string ) items := make([]*PlaylistItem, 0) stmt, err := p.db.Prepare(cmdSelectChannels) if err != nil { return items } defer stmt.Close() rows, err := stmt.Query(group) if err != nil { return items } for rows.Next() { err := rows.Scan(&id, &gchannel, &channel, &url) if err == nil { item := &PlaylistItem{ID: id, GroupTitle: gchannel, Name: channel, URL: url} items = append(items, item) } } err = rows.Err() if err != nil { return make([]*PlaylistItem, 0) } return items }
/** * Helper binding method for function: sampleStandardDeviation. * @param values * @return the SourceModule.expr representing an application of sampleStandardDeviation */ public static final SourceModel.Expr sampleStandardDeviation(SourceModel.Expr values) { return SourceModel.Expr.Application.make( new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.sampleStandardDeviation), values}); }
extended the above-mentioned considerations to systems of nite size. In the following these results which have been obtained by nite size scaling analysis and with the help of continuum eld theory will be summarized because they are essential for the interpretation of the Monte Carlo data. The basic quantities that enter the scaling analysis are the time t, the lattice size L in units of the lattice constant a, and the spatially averaged magnetizations m 0 and m(t). At bulk criticality and for L and t much larger than any microscopic scales, one expects the following scaling form of the magnetization: m(t; L; m 0 ) l = m(l z t; l 1 L; l x 0 m 0 ) :
<reponame>yankay/autoscaler /* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package requests import "strconv" // Integer wrap string type Integer string // NewInteger returns Integer format func NewInteger(integer int) Integer { return Integer(strconv.Itoa(integer)) } // HasValue returns true if integer is not null func (integer Integer) HasValue() bool { return integer != "" } // GetValue returns int value func (integer Integer) GetValue() (int, error) { return strconv.Atoi(string(integer)) } // NewInteger64 returns Integer format func NewInteger64(integer int64) Integer { return Integer(strconv.FormatInt(integer, 10)) } // GetValue64 returns int64 value func (integer Integer) GetValue64() (int64, error) { return strconv.ParseInt(string(integer), 10, 0) } // Boolean wrap string type Boolean string // NewBoolean returns Boolean format func NewBoolean(bool bool) Boolean { return Boolean(strconv.FormatBool(bool)) } // HasValue returns true if boolean is not null func (boolean Boolean) HasValue() bool { return boolean != "" } // GetValue returns bool format func (boolean Boolean) GetValue() (bool, error) { return strconv.ParseBool(string(boolean)) } // Float wrap string type Float string // NewFloat returns Float format func NewFloat(f float64) Float { return Float(strconv.FormatFloat(f, 'f', 6, 64)) } // HasValue returns true if float is not null func (float Float) HasValue() bool { return float != "" } // GetValue returns float64 format func (float Float) GetValue() (float64, error) { return strconv.ParseFloat(string(float), 64) }
<filename>src/Lib.hs module Lib ( App, Config(..), build, canonicalDir, hoist, lexicographerFilesJSON, parseLexicographerFile, parseLexicographerFiles, readConfig, toWNDB, validateLexicographerFile, validateLexicographerFiles, wnLexFiles, ) where import Data ( Synset(..), Unvalidated, Validated , Validation(..), SourceValidation, singleton , SourceError(..), WNError(..), SourcePosition(..) , WNObj(..), readWNObj, WNPOS(..), readShortWNPOS , showLongWNPOS, synsetPOS, validate, validation ) import Export ( DBSynset(..), calculateOffsets, makeWndbIndex, newline , showDBSynset, showIndex, synsetsToSynsetJSONs, wndbSenseIndex ) import Parse (parseLexicographer) import Validate ( makeIndex, Index, indexSynsets, oneLangIndex , validateSynsets, checkIndexNoDuplicates ) ---------------------------------- --import Debug.Trace (trace) import Control.Monad (foldM, mapM, unless) import Control.Monad.RWS (RWST(..), ask, get, liftIO, mapRWST, put) import Data.Bifunctor (Bifunctor(..)) import Data.Binary (encodeFile, decodeFileOrFail) import Data.ByteString.Builder (hPutBuilder) import Data.Functor.Identity (Identity(..)) import Data.Either (partitionEithers) import Data.List (intercalate, intersperse) import Data.List.NonEmpty (NonEmpty(..)) import qualified Data.List.NonEmpty as NE import Data.Map.Strict (Map) import qualified Data.Map.Strict as M import Data.Maybe (fromMaybe) import Data.Semigroup (sconcat) import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.IO as TIO import Data.Text.Prettyprint.Doc (Pretty(..)) import Data.Text.Prettyprint.Doc.Render.Text (putDoc) import qualified Data.Text.Read as TR import Data.Time.Calendar () import Data.Time.Clock (UTCTime(..)) import Data.Traversable (mapAccumL) import System.Directory ( canonicalizePath, doesDirectoryExist , createDirectoryIfMissing, getModificationTime , doesDirectoryExist, doesFileExist , doesPathExist, withCurrentDirectory ) import System.FilePath ((</>), (<.>), normalise, equalFilePath, splitFileName, takeDirectory) import System.IO (BufferMode(..),withFile, IOMode(..),hSetBinaryMode,hSetBuffering) -- | This datastructure contains the information found in the -- configuration files (currently only lexnames.tsv and relations.tsv -- are considered.) data Config = Config { -- | Only consider WordNet of name oneLang :: Maybe Text -- | contains the filepaths to the directory of each WordNet , wnPaths :: [(Text, FilePath)] -- | maps lexicographer filenames to their numerical ids , lexnamesToId :: Map Text Int -- | maps relation names in text files to their canonical names , textToCanonicNames :: Map Text Text -- | maps canonic relation names to their possible domains , canonicToDomain :: Map Text (NonEmpty WNObj, NonEmpty WNPOS) -- | maps relation names in text files to their (original) -- lexicographer file names/symbols , textToLexRelations :: Map Text Text -- | where the index gets written, etc. In a multilanguage setting, -- only the files in this directory get written to output formats , mainWNDir :: FilePath } deriving (Show,Eq) readTSV :: (Semigroup a, Ord a) => ([Text] -> Either String a) -> Text -> a readTSV readLine input = case go input of ([], x:xs) -> sconcat (x:|xs) ([], []) -> error "No contents" (errors, _) -> error $ unlines errors where go = partitionEithers . map readLine -- read contents . filter (not . isComment) -- remove comments . map (map T.strip . T.splitOn "\t") -- split into fields and strip whitespace . drop 1 -- remove header line . T.lines -- lines isComment [field] = T.take 2 field == "--" isComment _ = False canonicalDir :: FilePath -> IO FilePath canonicalDir filepath' = do filepath <- canonicalizePath filepath' pathExists <- doesPathExist filepath unless pathExists (error $ "Path " ++ filepath' ++ " does not exist") isDirectory <- doesDirectoryExist filepath return $ if isDirectory then filepath else takeDirectory filepath readConfig :: Maybe Text -> FilePath -> FilePath -> IO Config readConfig oneLang wnPath configurationDir = do lexNamesInput <- readTSVwith (configurationDir </> "lexnames.tsv") lexnamesReader relationsInput <- readTSVwith (configurationDir </> "relations.tsv") relationsReader (wnNames, wnRelativePaths) <- unzip <$> readTSVwith (configurationDir </> "wns.tsv") wnsReader wnAbsolutePaths <- mapM toAbsolutePath wnRelativePaths let lexnamesToId = toMap toLexnamesToId lexNamesInput textToCanonicNames = toMap toTextToCanonicName relationsInput canonicToDomain = toMap toCanonicToDomain relationsInput textToLexRelations = toMap toTextToLexRelations relationsInput wnPaths = zip wnNames wnAbsolutePaths return $ Config { oneLang, lexnamesToId, textToCanonicNames , canonicToDomain, textToLexRelations , mainWNDir = wnPath, wnPaths } where readTSVwith filePath reader = readTSV reader <$> TIO.readFile filePath toMap f = M.fromList . map f toAbsolutePath relativePath = withCurrentDirectory wnPath (canonicalizePath $ T.unpack relativePath) toLexnamesToId (lexFileName, lexNameId) = (lexFileName, lexNameId) toTextToCanonicName (canonicName,_,textName,_) = (textName, canonicName) toCanonicToDomain (canonicName, _,_, domain) = (canonicName, domain) toTextToLexRelations (_,lexName, textName,_) = (textName, lexName) lexnamesReader [lexnameIdStr, lexicographerFile, _] = case TR.decimal lexnameIdStr of Left err -> Left err Right (lexnameId, "") -> Right [(lexicographerFile, lexnameId :: Int)] Right (_, trailing) -> Left $ "Trailing garbage after " ++ T.unpack trailing lexnamesReader _ = Left "Wrong number of fields in lexnames.tsv" relationsReader [_,_,"_",_,_,_,_] = Right [] relationsReader [canonicName,lexName,textName,_,pos,domain,_] = Right [(canonicName, lexName, textName , (readListField readWNObj domain, readListField readShortWNPOS pos)) ] relationsReader _ = Left "Wrong number of fields in relations.tsv" wnsReader [wnName, relativePath, _] = Right [(wnName, relativePath)] wnsReader _ = Left "Wrong number of fiels in wns.tsv" readListField f = NE.fromList . map (f . T.strip) . T.splitOn "," type BuildData = Maybe (NonEmpty (FilePath, UTCTime)) --data AppState = AppState {Index (Synset Validated)} --- app state : files and timestamps, synset index, index relations --- and reverse --type WN = Index (Synset Validated) type App' = RWST Config () BuildData type App = App' IO type AppI = App' Identity unsafeAssoc :: Eq a => String -> a -> [(a,b)] -> b unsafeAssoc errorMsg key = fromMaybe (error errorMsg) . lookup key unsafeRassoc :: Eq b => String -> b -> [(a,b)] -> a unsafeRassoc errorMsg key = fromMaybe (error errorMsg) . rlookup key where rlookup _key [] = Nothing rlookup k ((x,y):xys) | k == y = Just x | otherwise = rlookup k xys wnLexFiles :: AppI (NonEmpty (Text, FilePath)) wnLexFiles = do Config{wnPaths, oneLang, lexnamesToId} <- ask case oneLang of Just wnName -> return $ go lexnamesToId $ wnPath wnPaths wnName Nothing -> return . sconcat . NE.fromList . map (go lexnamesToId . wnPath wnPaths) $ map fst wnPaths where wnPath wnPaths wnName = ( wnName , unsafeAssoc ("No wordnet named " ++ T.unpack wnName) wnName wnPaths ) go lexnamesToId (wnName, wnDirPath) = NE.fromList . map (\lexname -> (wnName, wnDirPath </> T.unpack lexname)) $ M.keys lexnamesToId wnFilePaths :: AppI (NonEmpty FilePath) wnFilePaths = NE.map snd <$> wnLexFiles parseLexicographerFile :: Text -> FilePath -> App (SourceValidation (NonEmpty (Synset Unvalidated))) parseLexicographerFile wnName filePath = do Config{textToCanonicNames, canonicToDomain} <- ask content <- liftIO . TIO.readFile $ normalise filePath return $ parseLexicographer textToCanonicNames canonicToDomain wnName filePath content parseLexicographerFiles :: NonEmpty (Text, FilePath) -> App (SourceValidation (NonEmpty (Synset Validated))) parseLexicographerFiles filePaths = do lexFilesSynsetsOrErrors <- mapM (uncurry parseLexicographerFile) filePaths case sconcat lexFilesSynsetsOrErrors of Success synsets -> let validIndex = checkIndexNoDuplicates $ makeIndex synsets in return $ validate (`validateSynsets` synsets) validIndex Failure sourceErrors -> return $ Failure sourceErrors lexicographerFilesJSON :: FilePath -> App () lexicographerFilesJSON outputFile = do Config{lexnamesToId, textToCanonicNames} <- ask result <- getValidated case result of Failure errors -> liftIO $ prettyPrintList errors Success (index, synsets) -> let jsonBuilder = synsetsToSynsetJSONs index textToCanonicNames lexnamesToId synsets in liftIO $ withFile outputFile WriteMode (`write` jsonBuilder) where write handle builder = do _ <- handle `hSetBinaryMode` True _ <- handle `hSetBuffering` BlockBuffering Nothing handle `hPutBuilder` builder prettyPrintList :: Pretty a => NonEmpty a -> IO () prettyPrintList = mapM_ (putDoc . pretty) hoist :: AppI a -> App a hoist = mapRWST (return.runIdentity) buildFiles :: App (NonEmpty FilePath) buildFiles = build *> hoist wnFilePaths getValidated :: App (SourceValidation (Index (Synset Unvalidated), NonEmpty (Synset Validated))) -- | validate all lexicographer files and return the synset index and -- a nonempty list of their validated synsets getValidated = do lexFilePaths <- buildFiles Config{oneLang} <- ask -- we first read the indices from the cache and sequence them; we -- can't merge them now because we need to validate the synsets from -- each file as a unit, or else we get spurious sort errors validationIndices <- liftIO $ sequenceA <$> mapM (readCachedFileIndex oneLang) lexFilePaths let validationIndex = bimap id sconcat validationIndices case (validationIndex, validationIndices) of (Failure parseErrors, _) -> return $ Failure parseErrors (Success index, Success indices) -> case sconcat $ NE.map (validateFileSynsets index) indices of Success validatedSynsets -> return $ Success (index, validatedSynsets) Failure errors -> return $ Failure errors (Success _, Failure impossible) -> return $ Failure impossible -- never happens where validateFileSynsets :: Index (Synset Unvalidated) -> Index (Synset Unvalidated) -> SourceValidation (NonEmpty (Synset Validated)) validateFileSynsets index targetIndex = case indexSynsets targetIndex of [] -> error "No synsets in target index" -- never happens (x:synsets) -> validateSynsets index (x:|synsets) validateLexicographerFile :: FilePath -> App () -- | Validates lexicographer file without semantically validating all -- other files (they must be syntactically valid, though) validateLexicographerFile filePath = do Config{oneLang} <- ask normalFilePath <- liftIO $ canonicalizePath filePath lexFilePaths <- buildFiles liftIO $ case NE.partition (equalFilePath normalFilePath) lexFilePaths of ([_], otherFilePaths) -> go oneLang normalFilePath otherFilePaths ([], _) -> putStrLn $ "File " ++ normalFilePath ++ " is not specified in lexnames.tsv" _ -> putStrLn $ "File " ++ normalFilePath ++ " is doubly specified in lexnames.tsv" where go oneLang fileToValidate lexFilePaths = do validationTargetFileIndex <- readCachedFileIndex oneLang fileToValidate -- FIXME: use unionWith instead of sconcat? validationOtherFileIndices <- sequenceA <$> mapM (readCachedFileIndex oneLang) lexFilePaths case (validationOtherFileIndices, validationTargetFileIndex) of (Failure parseErrors, Success _) -> prettyPrintList $ toSingleError parseErrors (Failure parseErrors, Failure fileParseErrors) -> prettyPrintList (toSingleError parseErrors <> fileParseErrors) (Success _, Failure parseErrors) -> prettyPrintList parseErrors (Success otherFileIndices, Success targetIndex) -> case indexSynsets targetIndex of [] -> return () (x:synsets) -> case validateSynsets (sconcat $ targetIndex:|otherFileIndices) (x:|synsets) of Success _ -> return () Failure validationErrors -> prettyPrintList validationErrors toSingleError = singleton . (\filesWithErrors -> SourceError (T.pack filePath) (SourcePosition (1,4)) (ParseError $ "Errors in files: " ++ intercalate ", " (NE.toList filesWithErrors))) -- either parse errors or duplication errors . NE.nub . NE.map (\(SourceError fileWithErrors _ _) -> T.unpack fileWithErrors) validateLexicographerFiles :: App () validateLexicographerFiles = do ioAction <- validation prettyPrintList (return . const ()) <$> getValidated liftIO ioAction readCachedFileIndex :: Maybe Text -> FilePath -> IO (SourceValidation (Index (Synset Unvalidated))) -- | reads lexFile cached index at lexFilePath; if oneLang is not -- Nothing, removes relations which point to targets who are part of -- other WNs readCachedFileIndex oneLang lexFilePath = do let (dirPath, filePath) = splitFileName lexFilePath indexPath = dirPath </> ".cache" </> filePath <.> "index" decodeResult <- decodeFileOrFail indexPath case decodeResult of Left (_, message) -> error $ unwords ["You probably have a corrupted cache; please delete it and try again\nFailed with message:", message] Right index' -> return $ bimap id (oneLangIndex oneLang) index' --- -- cache build :: App () build = do maybeBuildData <- get buildData <- case maybeBuildData :: Maybe (NonEmpty (FilePath, UTCTime)) of Nothing -> hoist wnFilePaths >>= liftIO . mapM getBuildData Just buildData -> return buildData (toUpdate, buildData') <- liftIO . foldM update ([], []) $ NE.toList buildData put . Just $ NE.fromList buildData' mapM_ cacheFileIndex toUpdate where getBuildData fp = do let cacheFilePath = cachePath fp fileExists <- doesFileExist cacheFilePath (fp,) <$> if fileExists then getModificationTime cacheFilePath else return $ UTCTime (toEnum 0) (toEnum 0) update (toUpdate, buildData) (fp, modTime) = do modTime' <- getModificationTime fp let toUpdate' = if modTime < modTime' then fp:toUpdate else toUpdate return (toUpdate', (fp, modTime'):buildData) cacheFileIndex :: FilePath -> App () cacheFileIndex lexFilePath = do liftIO . putStrLn $ "Rebuilding " ++ lexFilePath Config{wnPaths} <- ask let wnName = unsafeRassoc (lexFilePath ++ " is not in a WN dir") (takeDirectory lexFilePath) wnPaths result <- parseLexicographerFile wnName lexFilePath -- valid index has no duplicates, but may have invalid synsets let validIndex = bimap id makeIndex result let outFilePath = cachePath lexFilePath liftIO . createDirectoryIfMissing True $ takeDirectory outFilePath liftIO . encodeFile outFilePath $ validate checkIndexNoDuplicates validIndex cachePath path = let (dirPath, fileName) = splitFileName path in dirPath </> ".cache" </> fileName <.> "index" toWNDB :: FilePath -> App () toWNDB outputDir = do Config{lexnamesToId, textToLexRelations} <- ask _ <- liftIO $ createDirectoryIfMissing True outputDir ioAction <- validation prettyPrintList (go textToLexRelations lexnamesToId) <$> getValidated _ <- liftIO ioAction return () where go :: Map Text Text -> Map Text Int -> (Index (Synset a), NonEmpty (Synset Validated)) -> IO () go relationsMap lexicographerMap (index, synsets) = do mapM_ toData dbSynsetsByPOS mapM_ toIndex [N,V,A,R] -- no S senseIndex where synsetsByPOS = NE.groupWith1 (showLongWNPOS . synsetPOS) synsets -- we need to calculate all offsets before writing the file (offsetMap, dbSynsetsByPOS) = mapAccumL makeOffsetMap M.empty synsetsByPOS indexIndex = makeWndbIndex index write filename wnPos = TIO.writeFile (outputDir </> filename <.> T.unpack (showLongWNPOS wnPos)) makeOffsetMap currOffsetMap = calculateOffsets 0 currOffsetMap relationsMap lexicographerMap index toData posDBsynsets@(x:|_) = let output = mconcat . NE.toList . NE.intersperse newline $ NE.map (showDBSynset offsetMap) posDBsynsets in write "data" (pos x) output toIndex wnPOS = let output = mconcat . intersperse newline $ showIndex wnPOS relationsMap offsetMap index indexIndex in write "index" wnPOS output senseIndex = let output = mconcat . intersperse newline $ wndbSenseIndex lexicographerMap index offsetMap in TIO.writeFile (outputDir </> "index.sense") output
It has been nearly a year since the Senate passed a strongly bipartisan immigration reform bill that would fix our broken immigration system, reduce federal deficits by nearly $850 billion, and increase GDP by $1.4 trillion over the next two decades. As the economic costs of inaction continue to grow, now is the time for the House of Representatives to do its part to get a commonsense immigration reform bill to the President’s desk. Simply put: The House can and should act before August. Throughout this week, we will highlight the urgency and importance of attracting the best and brightest talent from around the world, especially in the fields of science, technology, engineering, and math (STEM). The Senate bill would effectively “staple” a green card to the diplomas of advanced STEM graduates from U.S. universities, so that these talented researchers have a chance to stay and contribute to our economy. Every foreign-born graduate with an advanced STEM degree is associated with, on average, 2.6 jobs for American workers. By some estimates, immigration was responsible for one-third of the growth in patenting in past decades, and these innovations contributed to increasing U.S. GDP by 2.4 percent. When President Obama delivered the commencement address at the University of California, Irvine this past weekend, he told the story of just one of these talented graduates: There are people here who know what it means to dream. When Mohamad Abedi was a boy, the suffering he saw in refugee camps in Lebanon didn’t drive him into despair -- it inspired him to become a doctor. And when he came to America, he discovered a passion for engineering. So here, at UC Irvine, he became a biomedical engineer to study the human brain. And Mohamad said, “Had I never come to the United States, I would have never had the ability to do the work that I’m doing.” He’s now going to CalTech to keep doing that work. Today’s advanced STEM graduate could be tomorrow’s world-class, world-changing scientist. After all, one recent study looked at all U.S.-based Nobel laureates over the past 50 years, and found that 26 percent were foreign born. When the President recently met with America’s nine most recently minted Nobel laureates in the Oval Office, we asked them to share their perspective on the importance of immigration reform. As you might imagine, these pioneering biologists, chemists, and economists had a great deal to say about the importance of maintaining America’s competitive advantage as a magnet for global talent: Watch on YouTube As the President has repeatedly emphasized, America needs a 21st century immigration system — one that strengthens border security, cracks down on employers that hire and exploit undocumented workers, creates a pathway to earned citizenship for undocumented immigrants, and removes obstacles to legal immigration. A system that welcomes the best and brightest scientists, engineers, and entrepreneurs from around the world to innovate here in America. It doesn’t take a Nobel Prize winner to understand that the time is now.
"""Tests for the running of the Love Letter game""" import unittest import numpy as np from loveletter.game import Game from loveletter.card import Card from loveletter.player import PlayerAction, PlayerActionTools class TestGames(unittest.TestCase): """Love Letter Games""" @staticmethod def replay(seed, action_sequence=None): """Generate a game from a recorded set of actions""" action_sequence = action_sequence if action_sequence is not None else [] action_sequence = np.array(action_sequence, dtype=np.uint8) action_sequence = PlayerActionTools.from_np_many(action_sequence)[::-1] game = Game.new(4, seed) while len(action_sequence) > 0: if not game.is_current_player_playing(): game = game.skip_eliminated_player() else: action = action_sequence.pop() game = game._move(action) return game def test_end_elimination(self): """Reach the end of a game by elimination""" game = Game.new(4, 0) game, _ = game.move(PlayerAction(Card.guard, 1, Card.priest, Card.noCard)) game = game.skip_eliminated_player() game, _ = game.move(PlayerAction(Card.guard, 3, Card.countess, Card.noCard)) game, _ = game.move(PlayerAction(Card.handmaid, 3, Card.noCard, Card.noCard)) game, _ = game.move(PlayerAction( Card.countess, 0, Card.noCard, Card.noCard)) game = game.skip_eliminated_player() game, _ = game.move(PlayerAction( Card.baron, 3, Card.noCard, Card.noCard)) game, _= game.move(PlayerAction( Card.guard, 2, Card.handmaid, Card.noCard)) self.assertFalse(game.over()) game, _ = game.move(PlayerAction( Card.princess, 0, Card.noCard, Card.noCard)) self.assertEqual(game.cards_left(), 4) self.assertTrue(game.over()) def test_end_length(self): """Reach the end of a game by cards""" game = TestGames.replay(1, [1, 1, 3, 0, 4, 1, 0, 0, 1, 1, 3, 0, 1, 2, 6, 0, 7, 0, 0, 0, 1, 2, 2, 0, 8, 2, 0, 0, 1, 1, 5, 0, 2, 1, 0, 0, 5, 0, 0, 0]) self.assertEqual(game.cards_left(), 0) self.assertTrue(game.over()) self.assertEqual(game.winner(), 1) if __name__ == '__main__': unittest.main()
// AddDrawFe ... Add Draw Function to DrawFeList func (g *Game) AddDrawFe(df func()) int { handle := len(g.DrawFeList) g.DrawFeList = append(g.DrawFeList, df) return handle }
s = input() r = [] for i in s: if i == 'a': if len(r) != 0: r[-1] = 1-r[-1] r.append(1) else: r.append(0) print(' '.join(map(str,r)))
<reponame>dzzzul/labspy03 #latihan 1 #1.Tampilkan n bilangan acak yang lebih kecil dari 0.5. #2. nilai n diisi pada saat runtime #3. anda bisa menggunakan kombinasi while dan for untuk menyelesaikannya #4. gunakan fungsi random() yang dapat diimport terlebih dahulu print(20*"=") print("masukan nilai N = 5") import random jumlah = 5 a = 0 for x in range (jumlah) : i = random.uniform(.0,.5) a+=1 print("data ke = ",a,"===>",i ) print("SELESAI")
import random from xworld_task import XWorldTask class XWorldLanDirectionToObject(XWorldTask): def __init__(self, env): super(XWorldLanDirectionToObject, self).__init__(env) def idle(self): """ Start a task """ agent, _, _ = self._get_agent() goals = self._get_goals() ## delete all the things first for g in goals: self._delete_entity(g) self._delete_entity(agent) self._set_property(agent, {"loc" : (2, 2)}) self._set_entity_inst(agent) g_locs = [(3, 2), (1, 2), (2, 1), (2, 3)] for i, g in enumerate(goals): self._set_property(g, {"loc": g_locs[i]}) self._set_entity_inst(g) assert len(goals) > 0, "there is no goal on the map!" sel_goal = random.choice(goals) direction = self._get_direction(agent.loc, sel_goal.loc) ## first generate all candidate answers self._bind("S -> answer") self._bind("G -> '%s'" % sel_goal.name) self._bind("D -> '%s'" % direction) self.answers = self._generate_all() ## then generate the question self._bind("S -> question") self._bind("D -> '%s'" % direction) return ["reward", 0.0, self._generate()] def reward(self): """ Giving reward to the agent """ _, agent_sent, _ = self._get_agent() self._set_production_rule( "R -> " + " ".join(["'" + w + "'" for w in random.choice(self.answers).split()])) self._bind("S -> reply") if agent_sent in self.answers: self._bind("Y -> 'Yes'") reward = 1.0 self._record_success() self._record_event("correct_reply", next=True) else: self._bind("Y -> 'No'") reward = -1.0 self._record_failure() self._record_event("wrong_reply", next=True) return ["conversation_wrapup", reward, self._generate()] def get_stage_names(self): """ return all the stage names; does not have to be in order """ return ["idle", "reward", "conversation_wrapup"] def _define_grammar(self): all_directions = self._get_all_directions_as_rhs() all_goal_names = self._get_all_goal_names_as_rhs() grammar_str = """ S --> question | answer | reply question -> 'What' 'is' 'on' 'the' D '?' answer -> A1 | A2 reply -> R | Y R A1 -> 'On' 'the' D 'is' G A2 -> G 'is' 'on' 'the' D D --> %s G --> %s Y --> 'Yes' | 'No' """ % (all_directions, all_goal_names) return grammar_str, "S"
def choose_seq_letters(letter_freqs, num_letters): letter_freqs = letter_freqs.copy() if num_letters not in xrange(0,27): raise ValueError(str(num_letters) + ' is not in [0,26]') elif num_letters == 0: return [] elif num_letters == 26: return letter_freqs.keys() else: letter_list = [] for i in xrange(num_letters): pos = random.random() * 100 s = 0 letter = 'a' iter_keys = letter_freqs.iterkeys() iter_vals = letter_freqs.itervalues() while (s < pos): letter = iter_keys.next() s += iter_vals.next() letter_list.append(letter) return letter_list
The Influence of Wood Pole Preservatives on Wood Fire and Electrical Safety The electrical performance of two water-borne wood pole preservatives (ACA and CCA) has been compared to that, of pentachlorophenol preservatives. Laboratory tests have indicated that for water-borne preservative treated poles, fire inception currents are two to three times greater than for comparable penta- chlorophenol treated poles. This is likely due to different pole fire evolution mechanisms. Wood pole and hazard models are developed and augmented with fleld tests to demonstrate that, from the point of view of pole contact near ground level, a comparable degree of safety exists with both water-borne and oil-borne preservative treatments under normal operating conditions. With fire inception currents flowing, poles treated with water-borne preservatives could result in painful shocks.
An electrically tunable infrared filter on base of Fabry-Perot interferometer This contribution deals with design, fabrication and test of a micromachined Fabry-Perot-Interferometer in first order configuration. Main application fields are chemical analysis, infrared sensing and spectral imaging. Some of the most important properties of a FPI filter are the full width half maximum (FWHM) and the tunable spectral range which are generally limited by the curvature and tilt of the mirrors and by their reflectance.
<reponame>Universitari/qMiniMetro #include <QApplication> #include <QIcon> #include "Game.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); QIcon icon(QPixmap(":/Graphics/icon.png")); app.setWindowIcon(icon); // create and show the game Game::instance()->show(); // launch Qt event loop return app.exec(); }
<reponame>Skatteetaten/aurora-konsoll import * as React from 'react'; import ReactSelect from 'react-select'; import { GroupTypeBase, Theme } from 'react-select/src/types'; import { RadioButtonGroupProps, skeColor, } from '@skatteetaten/frontend-components'; interface ISelectProps { options?: readonly ( | { label: string; value: string } | GroupTypeBase<{ label: string; value: string }> )[]; placeholder: string; selectedKey?: string; handleChange: RadioButtonGroupProps['onChange']; isClearable: boolean; className: string; } const theme = (t: Theme) => ({ ...t, borderRadius: 0, colors: { ...t.colors, primary25: skeColor.whiteGrey, primary: skeColor.lightGrey, textLight: skeColor.black, }, }); const Select = ({ options, placeholder, selectedKey, handleChange, isClearable, className, }: ISelectProps) => { const getValue = (key?: string) => (key ? { label: key, value: key } : null); const noOptionsMessage = () => 'Ingen'; const onChange = (option: any) => { if (handleChange) { handleChange(undefined, option); } }; return ( <ReactSelect options={options} theme={theme} placeholder={placeholder} isClearable={isClearable} noOptionsMessage={noOptionsMessage} value={getValue(selectedKey)} onChange={onChange} className={className} /> ); }; export default Select;
from pyspark.sql import SparkSession spark = SparkSession.builder.appName('read JSON files').getOrCreate() df = spark.read.format('json') \ .option("inferSchema", "true") \ .option("header", "true") \ .option("sep", ";") \ .load("people.json") df.show() df.printSchema() df2 = spark.read.json("people.json") df2.show()
/** * Reverse a linked list using recursion. Example : Given 1->2->3->4->5->NULL, return 5->4->3->2->1->NULL. */ public class ReverseLinkListRecursion { ListNode head = null; public ListNode reverseList(ListNode A) { if (A == null) { return null; } else if (A.next == null) { head = A; } else { ListNode tail = A.next; reverseList(tail); tail.next = A; A.next = null; } return head; } public static void main(String[] args) { ReverseLinkListRecursion solution = new ReverseLinkListRecursion(); ListNodeUtils.printListNodes( solution.reverseList( ListNodeUtils.createListNodeListFromIntegers(1, 2, 3, 4, 5))); } }
<filename>zabbix-agent2/src/go/plugins/system/cpu/cpucounters_linux.go<gh_stars>0 /* ** Zabbix ** Copyright (C) 2001-2021 Zabbix SIA ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the Free Software ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **/ package cpu const ( counterUnknown cpuCounter = iota - 1 counterUser counterNice counterSystem counterIdle counterIowait counterIrq counterSoftirq counterSteal counterGcpu counterGnice counterNum // number of cpu counters ) type cpuCounters struct { counters [counterNum]uint64 } func counterByType(name string) (counter cpuCounter) { switch name { case "", "user": return counterUser case "idle": return counterIdle case "nice": return counterNice case "system": return counterSystem case "iowait": return counterIowait case "interrupt": return counterIrq case "softirq": return counterSoftirq case "steal": return counterSteal case "guest": return counterGcpu case "guest_nice": return counterGnice default: return counterUnknown } } func (c *cpuUnit) counterAverage(counter cpuCounter, period historyIndex, _ int) (result interface{}) { if c.head == c.tail { return } var tail, head *cpuCounters totalnum := c.tail - c.head if totalnum < 0 { totalnum += maxHistory } if totalnum < 2 { // need at least two samples to calculate utilization return } if totalnum-1 < period { period = totalnum - 1 } tail = &c.history[c.tail.dec()] head = &c.history[c.tail.sub(period+1)] var value, total uint64 for i := 0; i < len(tail.counters); i++ { if tail.counters[i] > head.counters[i] { total += tail.counters[i] - head.counters[i] } } if total == 0 { return } if tail.counters[counter] > head.counters[counter] { value = tail.counters[counter] - head.counters[counter] } return float64(value) * 100 / float64(total) }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.camel.component.redis; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.TimeUnit; import org.apache.camel.Endpoint; import org.apache.camel.Exchange; import org.apache.camel.spi.InvokeOnHeader; import org.apache.camel.support.HeaderSelectorProducer; import org.springframework.data.geo.Distance; import org.springframework.data.geo.GeoResults; import org.springframework.data.geo.Point; import org.springframework.data.redis.connection.RedisGeoCommands; public class RedisProducer extends HeaderSelectorProducer { private final ExchangeConverter exchangeConverter = new ExchangeConverter(); private final RedisClient client; public RedisProducer(Endpoint endpoint, String header, String defaultHeaderValue, RedisClient redisClient) { super(endpoint, header, defaultHeaderValue); this.client = redisClient; } @InvokeOnHeader("ECHO") public String invokeEcho(Exchange exchange) { return client.echo(exchangeConverter.getStringValue(exchange)); } @InvokeOnHeader("PING") public String invokePing(Exchange exchange) { return client.ping(); } @InvokeOnHeader("QUIT") public void invokeQuit(Exchange exchange) { client.quit(); } @InvokeOnHeader("HDEL") public void invokeHdel(Exchange exchange) { client.hdel(exchangeConverter.getKey(exchange), exchangeConverter.getField(exchange)); } @InvokeOnHeader("HEXISTS") public Boolean invokeHexists(Exchange exchange) { return client.hexists(exchangeConverter.getKey(exchange), exchangeConverter.getField(exchange)); } @InvokeOnHeader("HGET") public Object invokeHget(Exchange exchange) { return client.hget(exchangeConverter.getKey(exchange), exchangeConverter.getField(exchange)); } @InvokeOnHeader("HGETALL") public Map<String, Object> invokeHgetAll(Exchange exchange) { return client.hgetAll(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("HINCRBY") public Long invokeHincrBy(Exchange exchange) { return client.hincrBy(exchangeConverter.getKey(exchange), exchangeConverter.getField(exchange), exchangeConverter.getValueAsLong(exchange)); } @InvokeOnHeader("HKEYS") public Set<String> invokeHkeys(Exchange exchange) { return client.hkeys(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("HLEN") public Long invokeHlen(Exchange exchange) { return client.hlen(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("HMGET") public Collection<Object> invokeHmget(Exchange exchange) { return client.hmget(exchangeConverter.getKey(exchange), exchangeConverter.getFields(exchange)); } @InvokeOnHeader("HMSET") public void invokeHmset(Exchange exchange) { client.hmset(exchangeConverter.getKey(exchange), exchangeConverter.getValuesAsMap(exchange)); } @InvokeOnHeader("HSET") public void invokeHset(Exchange exchange) { client.hset(exchangeConverter.getKey(exchange), exchangeConverter.getField(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("HSETNX") public Boolean invokeHsetnx(Exchange exchange) { return client.hsetnx(exchangeConverter.getKey(exchange), exchangeConverter.getField(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("HVALS") public Collection<Object> invokeHvals(Exchange exchange) { return client.hvals(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("DEL") public void invokeDel(Exchange exchange) { client.del(exchangeConverter.getKeys(exchange)); } @InvokeOnHeader("EXISTS") public Boolean invokeExists(Exchange exchange) { return client.exists(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("EXPIRE") public Boolean invokeExpire(Exchange exchange) { return client.expire(exchangeConverter.getKey(exchange), exchangeConverter.getTimeout(exchange)); } @InvokeOnHeader("EXPIREAT") public Boolean invokeExpireat(Exchange exchange) { return client.expireat(exchangeConverter.getKey(exchange), exchangeConverter.getTimestamp(exchange)); } @InvokeOnHeader("KEYS") public Collection<String> invokeKeys(Exchange exchange) { return client.keys(exchangeConverter.getPattern(exchange)); } @InvokeOnHeader("MOVE") public Boolean invokeMove(Exchange exchange) { return client.move(exchangeConverter.getKey(exchange), exchangeConverter.getDb(exchange)); } @InvokeOnHeader("PERSIST") public Boolean invokePersist(Exchange exchange) { return client.persist(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("PEXPIRE") public Boolean invokePexpire(Exchange exchange) { return client.pexpire(exchangeConverter.getKey(exchange), exchangeConverter.getTimeout(exchange)); } @InvokeOnHeader("PEXPIREAT") public Boolean invokePexpireat(Exchange exchange) { return client.pexpireat(exchangeConverter.getKey(exchange), exchangeConverter.getTimestamp(exchange)); } @InvokeOnHeader("RANDOMKEY") public String invokeRandomkey(Exchange exchange) { return client.randomkey(); } @InvokeOnHeader("RENAME") public void invokeRename(Exchange exchange) { client.rename(exchangeConverter.getKey(exchange), exchangeConverter.getStringValue(exchange)); } @InvokeOnHeader("RENAMENX") public Boolean invokeRenamenx(Exchange exchange) { return client.renamenx(exchangeConverter.getKey(exchange), exchangeConverter.getStringValue(exchange)); } @InvokeOnHeader("SORT") public List<Object> invokeSort(Exchange exchange) { return client.sort(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("TTL") public Long invokeTtl(Exchange exchange) { return client.ttl(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("TYPE") public String invokeType(Exchange exchange) { return client.type(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("BLPOP") public Object invokeBlpop(Exchange exchange) { return client.blpop(exchangeConverter.getKey(exchange), exchangeConverter.getTimeout(exchange)); } @InvokeOnHeader("BRPOP") public Object invokeBrpop(Exchange exchange) { return client.brpop(exchangeConverter.getKey(exchange), exchangeConverter.getTimeout(exchange)); } @InvokeOnHeader("BRPOPLPUSH") public Object invokeBrpoplpush(Exchange exchange) { return client.brpoplpush(exchangeConverter.getKey(exchange), exchangeConverter.getDestination(exchange), exchangeConverter.getTimeout(exchange)); } @InvokeOnHeader("LINDEX") public Object invokeLindex(Exchange exchange) { return client.lindex(exchangeConverter.getKey(exchange), exchangeConverter.getIndex(exchange)); } @InvokeOnHeader("LINSERT") public Object invokeLinsert(Exchange exchange) { return client.linsert(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getPivot(exchange), exchangeConverter.getPosition(exchange)); } @InvokeOnHeader("LLEN") public Long invokeLlen(Exchange exchange) { return client.llen(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("LPOP") public Object invokeLpop(Exchange exchange) { return client.lpop(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("LPUSH") public Long invokeLpush(Exchange exchange) { return client.lpush(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("LPUSHX") public Long invokeLpushx(Exchange exchange) { return client.lpushx(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("LRANGE") public List<Object> invokeLrange(Exchange exchange) { return client.lrange(exchangeConverter.getKey(exchange), exchangeConverter.getStart(exchange), exchangeConverter.getEnd(exchange)); } @InvokeOnHeader("LREM") public Long invokeLrem(Exchange exchange) { return client.lrem(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getCount(exchange)); } @InvokeOnHeader("LSET") public void invokeLset(Exchange exchange) { client.lset(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getIndex(exchange)); } @InvokeOnHeader("LTRIM") public void invokeLtrim(Exchange exchange) { client.ltrim(exchangeConverter.getKey(exchange), exchangeConverter.getStart(exchange), exchangeConverter.getEnd(exchange)); } @InvokeOnHeader("RPOP") public Object invokeRpop(Exchange exchange) { return client.rpop(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("RPOPLPUSH") public Object invokeRpoplpush(Exchange exchange) { return client.rpoplpush(exchangeConverter.getKey(exchange), exchangeConverter.getDestination(exchange)); } @InvokeOnHeader("RPUSH") public Long invokeRpush(Exchange exchange) { return client.rpush(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("RPUSHX") public Long invokeRpushx(Exchange exchange) { return client.rpushx(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("PUBLISH") public void invokePublish(Exchange exchange) { client.publish(exchangeConverter.getChannel(exchange), exchangeConverter.getMessage(exchange)); } @InvokeOnHeader("SADD") public Long invokeSadd(Exchange exchange) { return client.sadd(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("SCARD") public Long invokeScard(Exchange exchange) { return client.scard(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("SDIFF") public Set<Object> invokeSdiff(Exchange exchange) { return client.sdiff(exchangeConverter.getKey(exchange), exchangeConverter.getKeys(exchange)); } @InvokeOnHeader("SDIFFSTORE") public void invokeSdiffstore(Exchange exchange) { client.sdiffstore(exchangeConverter.getKey(exchange), exchangeConverter.getKeys(exchange), exchangeConverter.getDestination(exchange)); } @InvokeOnHeader("SINTER") public Set<Object> invokeSinter(Exchange exchange) { return client.sinter(exchangeConverter.getKey(exchange), exchangeConverter.getKeys(exchange)); } @InvokeOnHeader("SINTERSTORE") public void invokeSinterstore(Exchange exchange) { client.sinterstore(exchangeConverter.getKey(exchange), exchangeConverter.getKeys(exchange), exchangeConverter.getDestination(exchange)); } @InvokeOnHeader("SISMEMBER") public Boolean invokeSismember(Exchange exchange) { return client.sismember(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("SMEMBERS") public Set<Object> invokeSmembers(Exchange exchange) { return client.smembers(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("SMOVE") public Boolean invokeSmove(Exchange exchange) { return client.smove(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getDestination(exchange)); } @InvokeOnHeader("SPOP") public Object invokeSpop(Exchange exchange) { return client.spop(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("SRANDMEMBER") public Object invokeSrandmember(Exchange exchange) { return client.srandmember(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("SREM") public Long invokeSrem(Exchange exchange) { return client.srem(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("SUNION") public Set<Object> invokeSunion(Exchange exchange) { return client.sunion(exchangeConverter.getKey(exchange), exchangeConverter.getKeys(exchange)); } @InvokeOnHeader("SUNIONSTORE") public void invokeSunionstore(Exchange exchange) { client.sunionstore(exchangeConverter.getKey(exchange), exchangeConverter.getKeys(exchange), exchangeConverter.getDestination(exchange)); } @InvokeOnHeader("ZADD") public Boolean invokeZadd(Exchange exchange) { return client.zadd(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getScore(exchange)); } @InvokeOnHeader("ZCARD") public Long invokeZcard(Exchange exchange) { return client.zcard(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("ZCOUNT") public Long invokeZcount(Exchange exchange) { return client.zcount(exchangeConverter.getKey(exchange), exchangeConverter.getMin(exchange), exchangeConverter.getMax(exchange)); } @InvokeOnHeader("ZINCRBY") public Double invokeZincrby(Exchange exchange) { return client.zincrby(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getIncrement(exchange)); } @InvokeOnHeader("ZINTERSTORE") public void invokeZinterstore(Exchange exchange) { client.zinterstore(exchangeConverter.getKey(exchange), exchangeConverter.getKeys(exchange), exchangeConverter.getDestination(exchange)); } @InvokeOnHeader("ZRANGE") public Object invokeZrange(Exchange exchange) { return client.zrange(exchangeConverter.getKey(exchange), exchangeConverter.getStart(exchange), exchangeConverter.getEnd(exchange), exchangeConverter.getWithScore(exchange)); } @InvokeOnHeader("ZRANGEBYSCORE") public Set<Object> invokeZrangebyscore(Exchange exchange) { return client.zrangebyscore(exchangeConverter.getKey(exchange), exchangeConverter.getMin(exchange), exchangeConverter.getMax(exchange)); } @InvokeOnHeader("ZRANK") public Long invokeZrank(Exchange exchange) { return client.zrank(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("ZREM") public Long invokeZrem(Exchange exchange) { return client.zrem(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("ZREMRANGEBYRANK") public void invokeZremrangebyrank(Exchange exchange) { client.zremrangebyrank(exchangeConverter.getKey(exchange), exchangeConverter.getStart(exchange), exchangeConverter.getEnd(exchange)); } @InvokeOnHeader("ZREMRANGEBYSCORE") public void invokeZremrangebyscore(Exchange exchange) { client.zremrangebyscore(exchangeConverter.getKey(exchange), exchangeConverter.getStart(exchange), exchangeConverter.getEnd(exchange)); } @InvokeOnHeader("ZREVRANGE") public Object invokeZrevrange(Exchange exchange) { return client.zrevrange(exchangeConverter.getKey(exchange), exchangeConverter.getStart(exchange), exchangeConverter.getEnd(exchange), exchangeConverter.getWithScore(exchange)); } @InvokeOnHeader("ZREVRANGEBYSCORE") public Set<Object> invokeZrevrangebyscore(Exchange exchange) { return client.zrevrangebyscore(exchangeConverter.getKey(exchange), exchangeConverter.getMin(exchange), exchangeConverter.getMax(exchange)); } @InvokeOnHeader("ZREVRANK") public Long invokeZrevrank(Exchange exchange) { return client.zrevrank(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("ZUNIONSTORE") public void invokeZunionstore(Exchange exchange) { client.zunionstore(exchangeConverter.getKey(exchange), exchangeConverter.getKeys(exchange), exchangeConverter.getDestination(exchange)); } @InvokeOnHeader("APPEND") public Integer invokeAppend(Exchange exchange) { return client.append(exchangeConverter.getKey(exchange), exchangeConverter.getStringValue(exchange)); } @InvokeOnHeader("DECR") public Long invokeDecr(Exchange exchange) { return client.decr(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("DECRBY") public Long invokeDecrby(Exchange exchange) { return client.decrby(exchangeConverter.getKey(exchange), exchangeConverter.getLongValue(exchange)); } @InvokeOnHeader("GET") public Object invokeGet(Exchange exchange) { return client.get(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("GETBIT") public Boolean invokeGetbit(Exchange exchange) { return client.getbit(exchangeConverter.getKey(exchange), exchangeConverter.getOffset(exchange)); } @InvokeOnHeader("GETRANGE") public String invokeGetrange(Exchange exchange) { return client.getrange(exchangeConverter.getKey(exchange), exchangeConverter.getStart(exchange), exchangeConverter.getEnd(exchange)); } @InvokeOnHeader("SETRANGE") public void invokeSetrange(Exchange exchange) { client.setex(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getOffset(exchange)); } @InvokeOnHeader("GETSET") public Object invokeGetset(Exchange exchange) { return client.getset(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("INCR") public Long invokeIncr(Exchange exchange) { return client.incr(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("INCRBY") public Long invokeIncrby(Exchange exchange) { return client.incrby(exchangeConverter.getKey(exchange), exchangeConverter.getLongValue(exchange)); } @InvokeOnHeader("MGET") public List<Object> invokeMget(Exchange exchange) { return client.mget(exchangeConverter.getFields(exchange)); } @InvokeOnHeader("MSET") public void invokeMset(Exchange exchange) { client.mset(exchangeConverter.getValuesAsMap(exchange)); } @InvokeOnHeader("MSETNX") public void invokeMsetnx(Exchange exchange) { client.msetnx(exchangeConverter.getValuesAsMap(exchange)); } @InvokeOnHeader("SET") public void invokeSet(Exchange exchange) { client.set(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("SETBIT") public void invokeSetbit(Exchange exchange) { client.setbit(exchangeConverter.getKey(exchange), exchangeConverter.getOffset(exchange), exchangeConverter.getBooleanValue(exchange)); } @InvokeOnHeader("SETEX") public void invokeSetex(Exchange exchange) { client.setex(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getTimeout(exchange), TimeUnit.SECONDS); } @InvokeOnHeader("SETNX") public Boolean invokeSetnx(Exchange exchange) { return client.setnx(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("STRLEN") public Long invokeStrlen(Exchange exchange) { return client.strlen(exchangeConverter.getKey(exchange)); } @InvokeOnHeader("DISCARD") public void invokeDiscard(Exchange exchange) { client.discard(); } @InvokeOnHeader("EXEC") public void invokeExec(Exchange exchange) { client.exec(); } @InvokeOnHeader("MULTI") public void invokeMulti(Exchange exchange) { client.multi(); } @InvokeOnHeader("WATCH") public void invokeWatch(Exchange exchange) { client.watch(exchangeConverter.getKeys(exchange)); } @InvokeOnHeader("UNWATCH") public void invokeUnwatch(Exchange exchange) { client.unwatch(); } @InvokeOnHeader("GEOADD") public Long invokeGeoadd(Exchange exchange) { return client.geoadd(exchangeConverter.getKey(exchange), exchangeConverter.getLongitude(exchange), exchangeConverter.getLatitude(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("GEODIST") public Distance invokeGeodist(Exchange exchange) { return client.geodist(exchangeConverter.getKey(exchange), exchangeConverter.getValuesAsCollection(exchange).toArray()[0], exchangeConverter.getValuesAsCollection(exchange).toArray()[1]); } @InvokeOnHeader("GEOHASH") public List<String> invokeGeohash(Exchange exchange) { return client.geohash(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("GEOPOS") public List<Point> invokeGeopos(Exchange exchange) { return client.geopos(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange)); } @InvokeOnHeader("GEORADIUS") public GeoResults<RedisGeoCommands.GeoLocation<Object>> invokeGeoradius(Exchange exchange) { return client.georadius(exchangeConverter.getKey(exchange), exchangeConverter.getLongitude(exchange), exchangeConverter.getLatitude(exchange), exchangeConverter.getRadius(exchange), exchangeConverter.getCount(exchange)); } @InvokeOnHeader("GEORADIUSBYMEMBER") public GeoResults<RedisGeoCommands.GeoLocation<Object>> invokeGeoradiusbymember(Exchange exchange) { return client.georadius(exchangeConverter.getKey(exchange), exchangeConverter.getValue(exchange), exchangeConverter.getRadius(exchange), exchangeConverter.getCount(exchange)); } }
def save_pickle(file, obj): f = open(file, "wb") cPickle.dump(obj, f) f.close()
The Clash Within a Civilisation At the end of the last century, there was much talk about a future clash of civilisations, replacing the Cold War confrontation. However, the development of events in the early 21rst century has turned the focus upon the clash within one of the largest civilisations of the World: Islam and the Muslim countries. The outcome of the political violence from the civil wars and Salafist terrorism is deaths and casualties beyond imagination. Why cannot the Moslem countries regulate their religious tensions – Sunni-Shia, Salafist jihadism – through institutional innovation, allowing for peaceful settlement and INTRODUCTION The ongoing political violence in the Muslim civilization, involving huge numbers of death and casualties as well as destruction of capital and facilities including historical sites, calls for an analysis. How to understand the immense clashes and growing tensions within this civilization? Comparatively speaking, one finds nothing similar in the other civilisations of the world today, like e.g. Latin America, North America, the Hindu-Buddhist civilisation, etc. In the Arab civilisation, making up some 1/3 of the total population of Muslims, the tension between the two major religious groups, the Sunnis and the Shias, has a long history, starting at the death of the Mohammed in 632 after Christ. This clash goes under the name of "fitna", with many fitnas during the history of Islam. To the Sunni-Shia clash, one must add the new terrorism that is labelled jihadism, never before taking on such a size. The question one must pose today is why these two tensions in Islam have turned so lethal? The reply, I suggest, is to be found in the complete lack of a law tradition that comprises principles and institutions inherent in the concept of the rule of law. This makes constitutional solutions, or negotiated deals, ineffective as means for regulating severe conflicts. Is life worth living in some parts of several Muslim countries? Civilians suffer in Syria, Iraq, Afghanistan, Pakistan, Bangladesh, Egypt, Libya, Northern Nigeria, Mali, etc. The immense numbers of deaths and wounded form political violence in these countries constitute an enormous drag upon the Muslim civilisation in the age of globalisation with its strong commitment to the rule of law idea. And the future appears bleak, what concerns these two fitnas, the Sunni-Shia clash and the jihadist onslaught. The tensions within the Moslem civilisation is larger than the clash between Islam and the other civilisations, including the confrontation with Jewish Israel. Why, then, is conflict so lethal within Islam? PRESENT TURBULENCE IN ISLAM The Islamic civilisation harbours more than 1 million Muslims. They are concentrated in northern Africa, the Middle East, Central and South Asia as well as Indonesia. It has been underlined that the emigration of Muslims to Western countries recently has made Islam "global" (Roy, 2000). In several of the central Muslim countries -Algeria, Libya, Egypt, Lebanon, Syria, Iraq, Afghanistan, Pakistan, Bangladesh and Indonesia as well as Nigeria, Mali, Sudan and South Sudan and Ethiopia -we encounter political violence. Several of these countries have actually experienced massive amount of political violence, resulting in an enormous human toll as well as material damage. The surge in political violence in the Muslim civilisation is a rather recent phenomenon, as the number of deaths from domestic violence has increased dramatically the last decade or two. The Algerian civil war took at least 100 000 lives and the Syrian civil war bypasses by far that number, which is also probably true of the civil wars in Iraq and Afghanistan. The number of casualties is large in several countries like Egypt, Lebanon, Nigeria and Turkey. The material destruction is widespread in Syria, Afghanistan and Sudan and Mali. Now, the massive political violence in several of the Muslim countries has multiple causes or reasons without doubt. First, there occur ethnic cleavages. Second, there is the long time struggle over the nature of the regime: dictatorship or democracy. Finally, last but not least there are the clashes between the sects and the religious groups. Here, I will concentrate upon the religious cleavages in Muslim societies today, asking: Why does the clash between religious groups and sects often take the expression of political violence involving deaths, casualties and destruction of material assets? It is true that the struggles within Muslim countries comprise much more than the religious clashes between Sunnis and Shias as well as the Jihadists. Besides ethnic cleavages, there is also the search for democracy and human rights. The various conflicts become nested so much that they are not always easily disentangled. However, here I concentrate upo the religious clashes, which really date back to the death of the Prophet, 623 after Christ. THE KORAN AND ITS INTERPRETATIONS IN ISLAM Comparing religious tensions within the present civilisations of the world, one observes that the situation with Islamic countries is abnormal. Neither the Christian nor the Buddhist civilisations know something similar. It is true that there occurs fundamentalist inspired political violence in the Jewish and Hindu civilisations, but the scale is entirely different. Yet, one can certainly advance such a simplistic idea that the religion of Mohammed, as propagated in the Koran, is more violent than the other world religions. One only has to bear in mind the enormous fighting within Christianity between Catholics and Protestants or the struggles between sects in Hinduism to recognize that there is nothing especially prone to conflict about the Koran. It is the interpretations of the text and the social practices based upon these interpretations that count. Over the history of Islam, the Koran has received different interpretations. Actually, the text war put together long after the death of the prophet and there exist competing collections 52 Volume 38 of verses -the basic unit of the Koran. Whether the verses constitute the words of God has been a contentious issue with this religion, resulting in political violence in the 9 th century. Although this position is generally regarded as blasphemy today, it is undeniable that the spread between the Salafist on the one hand and the rational interpretations on the other hand is large, to say the least. This implies strictly the question of scepticism: How to identify the "correct" interpretation of the Koran? It leads to crucial questions about legal and political authority in the Muslim civilisation. One way out of the dilemma of widely different interpretations of a key religious text that attempts to establish the norms of society is to have some form of authority lay down the "correct" interpretation and then proceed to enforce it by all kinds of means. The close connection between religious dogma and political power became one of the hallmarks of Islam, as it never established an independent church, like Christianity. It was up to the successor of the prophet to maintain religious order and uphold its stated norms in society. Thus, the question of interpretation of the Koran became intimately linked with the successor problem: Who is to be the caliph or the imam? All this got even more confusing, as the Muslim community early divided into two major groups, harbouring entirely different ideas about rulership in Islam. The problem of interpretation received an early and, as it was thought, final solution with the figh: Islamic jurisprudence would codify what Islam stands for in a set of precepts that could not be denied nor neglected. However, this legalistic approach though highly influential upon later development after 800-900, did not success in arriving at consensus. Thus, there are 4 schools of jurisprudence within Sunni and another school within Shia. Their differences reflect the basic fact about a lack of underlying consensus in the Islamic civilisation, as Sunni schools differ from the Shia school and the Sunni schools differ among themselves as to doctrine and dogmas. Islam does not contain like Christianity or the religions of India a much elaborated theology. The core of Islam is the set of 5 duties, nothing more. When they are respected, the believer will receive the salvation. This minimalist approach leaves much open to disagreement. And diversity of opinion on religious matters has become typical of Islam. One may ask why this diversity today is conducive to so much political violence within this civilisation, as religious tensions have subsided in the other civilisations of the world? ON THE NATURE OF CONFLICTS It is true that there exist sharp differences between the typical Sunni creed and Iranian Shiism. They range over a number of aspects of Islam besides the principal solution to the successor question, such as: i) Division of public and private; ii) Division of mundane and sacred; ii) Acceptance of modernisation. It holds generally that average Sunnis tend to be more pragmatic than the average Shia in Iran. Thus, modernisation, secularism, the market economy and democracy is more supported in Sunni majority countries than in Iran, although this may only be a result of the that the theocracy in Tehran does not allow free and fair elections. This stylised picture of the Sunni countries as more moderate than the Shia ones is nothing but a simplification that hides complexity of religious opinions. International Letters of Social and Humanistic Sciences Vol. 38 53 The Muslim civilisation holds a carpet of religious diversity where many groups are involved with a bewildering system of beliefs -Just to mention a few: a) There are at least four kinds of Shiism: twelvers in Iran and Syria, seveners in Lebanon, Syria and India, fivers in Oman as well as the many Shites in Turkey; b) Muslim brotherhood belongs under Sunni; c) Sunni harbours both Salafism and Islamic rationality. This is not the place to sketch the evolution of these tensions between various sects, as it covers the entire history of Islam, both Arab Islam and non-Arab Islam. Instead one must pose the question: Why do differences in religious creed result in acts of political violence. The same question may of course be posed to Christianity and the religions of India. Religious cleavages are conducive to violence when they concern the distribution of valuable assets in scare supply. The control of these real assets -money, power, taxes, premises, land -is what human beings ultimately fight about, when the conflicts are not solvable through negotiation. Religious creed is a tool for exercising power over human beings, which is why people with different creeds collide when they happen to share the same territory and the same community. It is true that religious emotions may give the conflict between religious groups a special fervour and intransigence, but what is decisive is the access to the control over human beings. The crucial question in religious conquests or reconquistas is which religious group controls the territory, the political power and the economic resources -Cujus religio, ejus regio, as the Protestants expressed it. The history of Islam is a long succession of power changes, often linked with groups colliding due to differences in creed. The more they collide on the basis of theology, the more vital it becomes to exercise control. Issue in religious theology can only be resolved by argument, if ever. The most difficult questions that religious groups pose and answer differently concern matters that are metaphysical, such as: -Is God one or three? -Could Jesus be the son of both Joseph and God? -Whom did Mohammed leave power to: his tribe or just his gender Ali? -Is jihad a religious duty for all Moslems? -Is Buddha a God or the God? -Is Krishna really the incarnation of Vishnu? -Can people receive luck by means of bhakti? The list above about the mysteries in religion could be made much, much longer. It is all a matter about creed, or religious belief, not reason, or deductive or inductive argument. When people disagree about the answer to such metaphysical questions, they can employ the sword to find a speedy but always temporary solution, like Alexander at Gordon. But conflict cannot settle the matter, only offering a most short lived "solution". However, resort to the sword gives access to the real assets that people collide about: power, prestige, money, land, etc. Religious purity is no doubt essential to some people with strong religious creed. However, it is one thing for these people to be able and have the right to practice this purity, and quite another matter to attempt to impose it upon other people with different minds. THE PRESENT CONFLICTS IN MUSLIM COUNTRIES In this article, I will concentrate upon two conflicts in Muslim civilisation, namely Sunni against Shia and the Muslim Brotherhood against Sunni and Shia. This simplification excludes several other conflicts that all have an ethnic element involved, such as the Kurdish struggles on various fronts, the clashes in North-western China, the conflicts between Jews or Christians and Moslems, etc. The struggle between Sunni and Shia started with the death of the prophet: Why is it seemingly unresolvable, resulting in so much political violence still today? The rise of the Muslim Brotherhood is an event in the 20 th century: What is its rationale in the globalised 21rst century? The Sunni-Shia tension is to be found in the Syrian civil war, the struggle in Iraq and in Bahrain, in the tension between the Gulf monarchies and Iran. The emergence of the Muslim Brotherhood as a major political force has occurred in Algeria, Egypt, Palestine, Syria, Iraq and Afghanistan. The centuries' long conflict between Sunni and Shia shows that only tolerance can work in the Muslim civilisation. This leads us to the question: Why not endorse the rationalism and lack of bigotry with Averroes, or Ibn Rhusd? The strong support for Muslim brotherhood is based upon a new and false interpretation or The Koran, which entail that there is somehow one and only one "correct" or "original" interpretation that must be institutionalised in state and society. TOLERANCE AND RATIONALISM IN MUSLIM CIVILISATION For an external observer, the tension between Sunnis and Shias appears like a relic from the past. Why can these two Muslim beliefs not co-exist? Since the ideas of the caliphate or the imam are long out of date, Muslim countries having some form of modern constitution with presidentialism or constitutional monarchy, a Muslim country can honour religious tolerance, especially among its own Koranic community. During the so-called golden period of Islam during the medieval ages when there was great diversity of opinion, a solution to the question of reconciling faith with reason was formulated that could have befitted Islam much, if it has been widely endorsed, leading to religious tolerance. REASON AND FAITH: Averroes' "Double Truth" The rise and growing strength of Muslim fundamentalism in an age of globalisation, modern economics and the triumph of the natural sciences is enigmatic. It is widely believed that Islam is somehow responsible for this global paradox, but it would be a fatal mistake to equate the religion of Islam, one of the three great monotheistic traditions, with unreason. All the world religions have had to take a stand on the relationship between reason and faith: How to handle any conflict between the two? And all the great religions of the world today have devised a modus Vivendi between reason and faith, except Islamic fundamentalism. This is all the more astonishing as Islam was the first of the major religions to work out a tenable solution of how to respect faith while fully employing the faculty of reason and observation. Before Christianity came up with various solutions to this fundamental problem -with Thomas ab Aquino, John Locke and Baruch Spinoza -there was the theory offered by Ibn Rushd or Averroes. It makes him the greatest of medieval philosophers. International Letters of Social and Humanistic Sciences Vol. 38 The Decisive Treatise sums up the entire debate about reason and faith in the Moslem civilisation with the emerging schools of philosophy and jurisprudence since the Koran was codified around 700 after Christ. Drawing upon the various contributions by inter alia Farabi, Avicenna and Ghazali as well as many other more like the Azelites, Averroes formulates his position in a few arguments. Thus, we have: (1) The Law or the Book of God (The Koran) obliges the believers to study; (2) Any study must make use of logic, which is the best tool of reasoning; (3) Logic is connected with philosophy, studying both theoretical and practical subjects; (4) A Muslim cannot abstain from either logic or philosophy, as the Book of God commands their study; (5) There can be no contradiction between the message of the Book of God and the truth as stated by logic and philosophy, as any statement of faith that is opposed to truth must be interpreted allegorically; (6) The verses in the Book of God can be interpreted literally or allegorically; (7) When it come allegorical interpretations of the verses, one cannot expect much consensus. (8) Thus, the reading of the Book of God is compatible with freedom of interpretation, except when there is unanimity among believers. (9) What hold for theoretical issue is also true for practical matters, like the governing of the Ummah by law and rational jurisprudence. Muslims, thus, have to live with two meanings of the Book of God, the literal and the allegorical. So is the case with Jews and Christians, as stated much later by Spinoza. The only conclusion of the predicament of faith and reason is religious tolerance, as with Locke' Letter on Tolerance (1699). The search for true Islam, as with the Salafists, or the Islamisation of state and society, as with the djihadists, is a meaningless effort. It has very negative consequences for the Muslim civilisation, resulting in endless political violence and the deaths of innocent civilians. The Koran like the "Sainte Bible" contains beautiful tales, which when not in accordance with scientific reason can only be told in their literal meaning as exactly that: stories, as first emphasize by Spinoza in Tractatus Teologico Politicus (1677). Yet, the first philosopher to realise the double truth -faith and reason -was none other than Averroes from Marrakech. THE MUSLIM BROTHERHOOD: One Islam -Many Islams The basic change in Muslim belief in the 20 th century is the emergence of the idea that there is somehow ONE Islam that can practised one hundred per cent in all aspects of life. When combined with the Salafist approach to the Koran, the chief approach of Muslim Brotherhood appears, namely that idea that only Islam as practised in the 7 th century by the prophet and his close followers is the "correct" Islam. The Salafism of Ibn Taymiyya glorified the past of Islam, but the golden period of the Islamic civilisation did not take place in early Arabia with its tribal practices and life style. Instead, Islam flourished around the lifetime of Taymiyya and up to the Renaissance in all areas of social life: medicine, astronomy, mathematics, philosophy, trade, art, etc. Thus, one arrives at the always posed question: Why did the Islamic civilisation decline while the European advanced? 56 Volume 38 The fundamentalist answer to this central question about the evolution of Islamic civilisation is to look backward, which is of course impossible in the period of globalisation when civilisations are more one then ever and interacting daily in various forms. The Muslim Brotherhood adds control and force to the Salafist ideals. The people of Islam -Ummah -is to be kept in a state and society, completely dominated by the ideal of ancient Islam, as if there really existed ONE Islam. The concept of djihad receives with the MB a new interpretation as legitimate violence for creating a true Muslim society. "Political Islam" turns Salafism into a totalitarian political philosophy with terrorism implications. It has been said about the founder of the MB, al-Banna, that he wanted to restore the caliphate that had fallen in 1924 in Istanbul. However, the MB soon developed a much more radical and comprehensive call for change of state procedures and social practices: Islamisation writ large. The main theoreticians of modern Islamic fundamentalism -Mawdudi, Qutb and Faraj -did not envisage to create a tribal surrounding for the Ummah. Instead, they outlined a utopia for a future Islamic state controlling a society structured in accordance with the harshest form of Islamic Law, viz. The Hanbalite interpretation of Sharia, as it exists in Saudi Arabia for instance, although the MB does not accept the figure of Wahab and his interpretation of Islam, as no one can come between the prophet and his community. The Islamic doctrine of the MB is based on one possible interpretation of the Koran as well as one selection of customs from the Hadith of the Sunna. In the history of Islam, there have been many interpretations of the Koran. Why would the interpretation of the MB be the "correct" one? There exists no criterion for selecting the "correct" practices in the Hadith. Yet, what is distinctive of the political philosophy of the MB is not the belief in one and only one interpretation of the Koran, but the idea of islamisation of state and society. In involves: a) One unique set of customs is valid in society, only one; b) The state must be an Islamic republic, oriented towards the enforcement of the Sharia; c) Religious leadership of government in the form of charismatic personalities; d) The use of violent means -jihad -to protect the Islamic republic and to further Islamic objectives abroad. The endorsement of physical violence has led to the renewed forms of terrorism in the Islamic civilisation, practised by rebels, called jihadists. As a result, some of the Moslim countries are drowned in rebel attacks on the state as well as on civilians. CONFLICT BEHAVIOUR IN MOSLEM CIVILISATION The question that will be discussed below is why there is so much political violence WITHIN the Muslim civilisation among the Moslems themselves. Thus, I will not take up the conflict between Islam and Judaism or Islam and Hinduism-Buddhism. The conflicts among Muslims are essentially of two types religiously, bypassing ethnic tensions: (1) Sunnis versus Shias (2) Jihadists versus moderate Sunnis and Shias. International Letters of Social and Humanistic Sciences Vol. 38 The first conflict dates back to the origins of Islam, viz the complete lack of any political philosophy in The Koran. There is not a single word about the political future of the Islamic community -the Umma, when the prophet dies. As a matter of fact, The Koran launches no political philosophy at all, which could have outlined the rules of political rulership in the Muslim civilisation. The Koran is one hundred per cent religion, with little philosophy and no politics in the sense of institutionalism. The Koran is a continuation of Jewish religion with the claim of being its ultimate culmination of the tradition from The Bible with its monotheism and long series of prophets: Abraham, Moses, Jesus etc. Its shares the Jewish opinion that Jesus could not have been the son of God and it never mentions the real creator of Christianity, namely Paul. The Koran is the reinstatement of the Old Testament writ large plus the claim that Muhammed is the last of the prophets stating the final revelation of God to the humans. Without the Old Testament, no The Koran, as the inspiration is completely comprehensive. But it says nothing about the world to come when the Prophet is no longer alive. The Koran only outlines a set of rules of the private behaviour of his community, especially regarding marriage, heritage and sex, with somewhat special rules for the Prophet. When these rules were worked out in the Islamic jurisprudence (Figh) by adding rules from the sayings and doings of the Prophet (Hadith), In no schools of Islamic jurisprudence does one find public institutionalism, as they all whether Sunni or Shia concentrate upon private behaviour. The Koran is constitution free. Muhammed ruled on the basis of charismatic authority, breaking tribal leadership prevalent on the Arabian peninsula. This unique combination of political and religious power goes under the name of the caliphat. It has two profound problems: i) How is the caliph to be chosen? ii) What are the basic rules of the excersise of his power? There exists still no solution to these two basic problems of any rulership, one thousand and almost four hunded year after the Prophet. The outcome is political instability all over the Muslim civilisation. When the leader of the so-called Islamic State in Syria and Iraq proclaims himself caliph, then this is just one method employed -auto-proclamation. But it is all an historical atavism, as the last real caliph died when Bagdad was destroyed by the Mongols 1257. Since that the caliph was merely an honorary title, finally abolished by Ataturk 1924. The institutional deficit in The Koran opened up for decades and centuries of power struggles between different power pretenders, Arabs, Persians, Berbers, Mongols, Turks, Kurds, Indians, etc. In a few Moslem countries, systems of traditional authority was established with some stability, i.e. kingdoms, sultanates and emirates. But there never occurred a full institutionalisation of the rules inherent in rule of law for any longer time period. Thus, Muslim rulership has often been based upon naked power, which is conducive to the massive occurrence of political violence. The institutional deficit of The Koran had an immediate result after the death of the Prophet, given the two omissions mentioned above (i-ii). As Ali, the nephew of the Prophet claimed the be named caliph, the civil war between Sunnis and Shia began, which has not ended to this day. THE SUNNI-SHIA CLASH HAS NO ZERMELO POINT The Sunni-Shia conflict operates at both micro and micro level. Locally, the occurs communal violence against innocents on a regular basis, including car bombs and suicide bombers, At the state level, the clash between Iran and its Arab neighbours has a long legacy, which borders out into the politics of other countries like Syria, Iraq and Bahrain. Now, does it matter today whether there is a caliph or an imam at the top of the country hierarchy, as a both secular and spiritual leader? The last real imam disappeared in the 900 th century and he will of course never come back. No one can overcome death. The last caliph left for Switzerland on a one way ticket in 1924. These titles, caliph or iman, are not usable in the 21rst century, as also Moslem countries have to employ a secular structure of power, with the standard institutions of trias politica. Even the only theocracy in the world, Iran, has a formal secular structure of institutions and offices besides "The Spiritual Leader" and the Ullemah. Since the opposition between caliph and imam is of historical relevance only, the best format for running a Muslim state being the legal-rational authority type, or constitutional rulership, the Sunni-Shia split is a mere theologian one, like the split between various Christian groups or sects. Co-existence on the basis of comprehensive tolerance is clearly possible and would strengthen the Islamic civilisation enormously. The Sunni-Shia clash is a zero-sum conflict with no predictable outcome. This makes it meaningless, as there could only loosers. The simple solution to a zero-sum game is the socalled security strategy: maximise the safe gains, hold down or minimise the possible losses. When a conflict is played out once and the strategies and outcomes are fully known, zero-sum games are easy to solve, in pure or mixed strategy choice. However, when a conflict has no end in sight, what is the solution? One could divide up a conflict in a series of nodes of single play and search for the socalled sub game perfect N-equalibrium, like in variable sum games. However, if the conflict is ongoing without an end in sight, then backwards solution cannot be applied. One must look for the Zermelo point in the series of nodes, i.e. the point in time of play after which the game is strictly determined. A zero-sum conflict that goes over several nodes of play is the chess game. The Zermelo point occurs when the outcome is unavoidable, given correct play. Either white is bound to win and black bound to lose or a draw is inevitable. The most interesting thing about the move by move development of the game is the occurrence of the decisive move, from the outcome is determined. In military battles, the Zermelo point is often a fundamental blunder or a genial choice of strategy. Examples: Napoleon's invasion by his grand armé, the Wehrmacht defeat at Stalingrad, the victory at Aleppo by J. Ceasar, etc. The conflict between Sunnis and Shias has no Zermelo point. The outcome has no victor or lose but only human misery. It can go on for one hundred more years, but with no decisive outcome except human suffering. Why cannot Islam accept such a minimum of tolerance that Sunnis and Shias can live side by side, with their separate shrines? JIHADISTS AS MARTYRS IS A MERE MYTH When it comes to look at the future of the new jihadism, what is most important is to understand what drives this spreading scourge in the Muslim civilisation. There is no hope of accommodation, as organised terrorism cannot survive side by side with a legal-rational regime. One maw draw upon two models of terrorism, one micro based and another macro oriented. International Letters of Social and Humanistic Sciences Vol. 38 59 The micro model attempts to capture the individual motivation of the single jihadists. To engage in jihad activities involving killing fellow Muslims, it must hold that (1) Bi > Ci, for individual i This may be true in the short run when an operation is successful, but unlikely true in the long run, as jihadists have high death rates. Sometimes Salafist terrorists fight each other. The opportunity costs of being a jihadist can only increase of time, as the values of a normal life is forsaken. Looting is an aspect of terrorist activities, especially in areas where the availability of employment opportunities is almost non existent. When terrorist can draw upon drug trading, human trafficking and slave trade, the above motivation equation certainly holds. Salafist terrorism is covertly supported by a few Muslim countries, as long as the activities of the jihadists take place abroad. When jihadism fails, meaning that Ci > Bi, then the philosophy of martyrdom is invoked. The idea of becoming a martyr though participation in some form of a holy war belongs to these notions like paradise, hell, eternal life, sainthood, etc that may be understood intellectually but do not designate anything in particular in reality. Martyrdom is an illusion, for which it is not worth to die, because after death there is nothing. Jihadist fighting may be accompanied by huge sacrifices in deaths and casualties in order to evict an intruder, protect the sacred lands of Islam against foreigners or defy an oppressor, to the benefits of the Islamic community as a whole. Jihadism has expanded a lot since the Second Iraq war, from Afghanistan and Pakistan to Saharan Africa. There is even a self-proclaimed over an Islamic state in Syria-Iraq. Jihadism can only be contained by counter-measures according to he second model of terrorism, modelling the diffusion process: (2) dT/dt = f(P), terrorist acts depend upon number of perpetrators: (3) dP/dt = f(dR/dt), the number of perpetrators depend negatively upon the number of restrainers increasing over time; The restrainers could be the national army or an international force like France today in Mali. Restraining jihadist terrorism has proven extremely difficult in weak states. In stable or authoritarian states, jihadism is almost non-existent due to effective but violent suppression like in Algeria, Egypt and the Arab peninsula. THE CRUCIAL QUESTION: MAY MOSLEMS KILL MOSLEMS? What could be a better place to look for an answer than the Holy Book or the Book of God, viz The Koran. It states 4 rules that are pertinent to the question: a) No Muslim may kill another Muslim; b) Muslims who are right guided will enter Paradise on judgement day; c) Muslim who turn infidels will suffer the same fate as all infidels, namely to bur in Hell; d) Muslims who have been misguided can repent their sins and perhaps receive God's mercy; 60 Volume 38 e) A right guided Muslim accepts fully the consequences of the five duties. One finds several places in the Koran where these principle are expressed. How they are to be interpreted depends upon who is to be considered a Muslim, what it entails to be seen as an infidel and what a rightly guided behaviour stands in details. Islam harbour diversity of opinions in relation to the coherence among the 5 rules above, resulting in major schisms and the formation of several sects. Thus, the Sunnis divide themselves in four schools of jurisprudence as well as in modernists and Salafists, after Ibn Taymiyyah (dead 1328). The Shia constitute a most diverse lot, from Iranian and Iraqian fundamentalists with their own school of jurisprudence to modernists in e.g. Turkey, Syria and India. In addition, there is the group of Sufis among the Sunnis. Now, in relation to the crucial question above, one must ask whether the Sunni-Shia civil war or the jihadists attacks on Muslims can be motivated by these 5 rules of Islam? Salafists claim that Shiis is a blasphemy, because it violates ONENESS (tawdid), regarding Ali and his descending family as somehow a saint besides Allah. Jihadists under the influence of MB sharpen this rejection of Shiism as magic, but jihadism also looks upon moderate Sunnis and Shias as targets of political violence, aimed at islamisation. The expansion of the concept of infidel to cover not only adherents of other religions but also Muslims with a different faith than Salafism was re-innovated in the 20 th century by Mawdudi, Qutub and Faraj -the ideological fathers of Islamisation and Salafist terrorism. When a Moslem country adheres to the Islamic interpretation of these ideologues of MB, then peace and political stability is not feasible. They stand for an Islam that is as uncompromising with modernity and reason as Khomeiny's Iran. In Islam today, the French saying holds: Les extremes se touchent. And they extended to the scope jihad fighting to include all kinds of infidels, Moslem or others, with deadly repercussions. Jihad as the hidden duty (Faraj) is allowed against anybody who opposes the islamisation of society (Maududi) or the state (Qutb). The political philosophy of Salafist fundamentalism is not derived from The Koran, but constitutes a 20 th century dismal innovation in general Islamic philosophy. In traditional Islamic philosophy with its great representatives during the medieval ages, the focus is upon the relationship between religious faith and reasonable belief. It covers a large range of issues about the origins of universe and life and the nature of human volition and destiny. Political Islam is a recent ideology with no basis in The Koran. CONCLUSIONS The amount of political violence has reached a level and intensity in the Muslim civilisation that hurts ordinary people in a manner that has no similarity what so ever in other global civilisations. It gives rise to the question about the religious cleavages in Islam and their implications for political violence and state stability. It seems as if the Muslim civilisation may implode from inside, leaving numerous countries in civil war, anarchy, anomie, rebellion, attacks against innocents, women and children, looting and destruction of valuable material assets. Three responses have been suggested to the Muslim civilisation decline: i) Jahiliyyah: the concept for "ignorance of divine guidance" or "the state of ignorance of the guidance from God" or "Days of Ignorance. It would spell the demise of the Muslim civilisation ato nd the end to all the hope among Moslems for a better life in human dignity. ii) Western modernisation: democracy. It has been tried in several Muslim countries, but only Tunisia seems to be successful. When coupled with the main religious cleavages in may even augment political violence and be cul de sac. Jihadism introduce a so-called war of attrition into country, a most lethal phenomenon. iii) Institutionalisation of legal-rational authority with government foundd upon rule of law. The growing chaos in the Muslim civilisation can only be counteracted by the third alternative above, namely institutionalisation, The institutional deficit in Muslim countries goes back to the so-called Golden Age, as neither the Prophet nor the jurisprudence created anything like constitutionalism. Islamic law deals with private law matters, theft, property, inheritance, marriage, religious matters like the wagf, etc. The wordly matters are left to chance with the restriction that the caliph, sultan, emir, king etc, must never be an infidel. Modern constitutions were basically imported from the West during the 19 th and 20 centuries. But they most often were replaced by naked power or authoritarian constitutional documents. Even more important is the Islamic law lacks the fundamental notions of individual rights under the rule of law framework that became such a vital part of both English law (Common Law) and French-German-Swiss Law (Civil Law). Under a feasible rule of law regime with the recognition of The Koran, there is no need for so incredibly much political violence in the Muslim civilisation, leaving Muslims with peace, the hope of prosperity and religious co-existence of Sunnis, Shias and Salafists.
/// Obtain list of generic arguments on the path's segment. pub fn path_segment_generic_args (segment:&syn::PathSegment) -> Vec<&syn::GenericArgument> { match segment.arguments { syn::PathArguments::AngleBracketed(ref args) => args.args.iter().collect(), _ => Vec::new(), } }
<gh_stars>1-10 /* * Copyright 2010 NEHTA * * Licensed under the NEHTA Open Source (Apache) License; you may not use this * file except in compliance with the License. A copy of the License is in the * 'license.txt' file, which should be provided with this work. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package au.gov.nehta.vendorlibrary.ws; import org.junit.Test; import javax.xml.datatype.XMLGregorianCalendar; import java.text.SimpleDateFormat; import java.util.Date; import static org.junit.Assert.*; import static org.junit.Assert.assertEquals; /** * Test cases for TimeUtility class */ public class TimeUtilityTest { @Test public void testNowXMLGregorianCalendar() throws Exception { XMLGregorianCalendar calendar = TimeUtility.nowXMLGregorianCalendar(); assertNotNull(calendar); assertTrue(calendar.isValid()); } @Test public void testGetXMLGregorianDate() throws Exception { String date = "19601231"; XMLGregorianCalendar calendar = TimeUtility.getXMLGregorianDate(date); assertNotNull(calendar); assertEquals(1960, calendar.getYear()); assertEquals(12, calendar.getMonth()); assertEquals(31, calendar.getDay()); } @Test(expected = IllegalArgumentException.class) public void testInvalidGetXMLGregorianDate() throws Exception { String date = "2011-03-16"; TimeUtility.getXMLGregorianDate(date); } @Test public void testGetXMLGregorianDateTime() throws Exception { String date = "20070804 18:01:01"; XMLGregorianCalendar calendar = TimeUtility.getXMLGregorianDateTime(date); assertNotNull(calendar); assertTrue(calendar.isValid()); } @Test(expected = IllegalArgumentException.class) public void testInvalidGetXMLGregorianDateTime() throws Exception { String date = "2007-08-0418:01:01"; TimeUtility.getXMLGregorianDateTime(date); date = "2007080418:01:01"; TimeUtility.getXMLGregorianDateTime(date); date = "20070804 12:01:01 PM"; TimeUtility.getXMLGregorianDateTime(date); } @Test public void testDateRegularExpressionGregorianDate() throws Exception { String date = TimeUtility.now(); assertTrue(date.matches(TimeUtility.DATE_FORMAT_NOW_REGX)); } @Test public void testGetDateAsYYYYMMDD() throws Exception { Date date = new Date(); SimpleDateFormat dateformatYYYYMMDD = new SimpleDateFormat(TimeUtility.DATE_FORMAT); String expectedDate = new String( dateformatYYYYMMDD.format( date ) ); String actualDate = TimeUtility.getDateAsYYYYMMDD(date); assertNotNull(actualDate); assertEquals(expectedDate, actualDate); } }
import MenuItem from './menuItem' export default MenuItem
def create_new_branch(self, new_branch_name, set_current_branch): assert self._dao is not None assert self._crypt_helper is not None assert isinstance(new_branch_name, str) or isinstance(new_branch_name, unicode) assert isinstance(set_current_branch, bool) log.uvsmgr("checking working directory for un-committed changes. repo root: " + str(self._repo_root_path)) result = {} if 'head' == new_branch_name.lower(): result['op_failed'] = True result['op_failed_desc'] = 'It does not make sense to create a branch called head.' return result if self._dao.get_snapshot(snapid=new_branch_name) is not None: result['op_failed'] = True result['op_failed_desc'] = "It makes no sense to create a branch with the name of an existing commit. \n" result['op_failed_desc'] += "you supplied branch name: " + str(new_branch_name) return result main_refs_doc_ct = self._dao.get_ref_doc(ref_doc_id=_MAIN_REF_DOC_NAME) main_refs_doc_serial = self._crypt_helper.decrypt_bytes(main_refs_doc_ct) main_refs_doc = json.loads(main_refs_doc_serial) if (main_refs_doc is None) or ('head' not in main_refs_doc): result['op_failed'] = True result['op_failed_desc'] = 'Cant find head. Is this a uvs repo, path: ' + str(self._repo_root_path) return result if main_refs_doc.has_key(new_branch_name): result['op_failed'] = True result['op_failed_desc'] = 'That branch already exists. you supplied: ' + str(new_branch_name) return result assert main_refs_doc['head'].has_key('state') assert main_refs_doc['head'].has_key('snapid') assert main_refs_doc['head'].has_key('branch_handle') if main_refs_doc['head']['state'] == HeadState.ATTACHED: assert main_refs_doc['head']['snapid'] is None assert main_refs_doc['head']['branch_handle'] is not None current_branch = main_refs_doc['head']['branch_handle'] assert main_refs_doc.has_key(current_branch) log.uvsmgr("Head is attached to branch: " + str(current_branch)) current_head = main_refs_doc[current_branch] main_refs_doc[new_branch_name] = current_head elif main_refs_doc['head']['state'] == HeadState.DETACHED: assert main_refs_doc['head']['snapid'] is not None assert main_refs_doc['head']['branch_handle'] is None log.uvsmgr("Repo is in detached head state.") main_refs_doc[new_branch_name] = main_refs_doc['head']['snapid'] if set_current_branch: main_refs_doc['head']['state'] = HeadState.ATTACHED main_refs_doc['head']['snapid'] = None main_refs_doc['head']['branch_handle'] = new_branch_name new_main_refs_serialized = json.dumps(main_refs_doc, ensure_ascii=True, sort_keys=True) new_main_refs_ct = self._crypt_helper.encrypt_bytes(new_main_refs_serialized) self._dao.update_ref_doc(ref_doc_id=_MAIN_REF_DOC_NAME, ref_doc=new_main_refs_ct) result['op_failed'] = False return result
package com.sanri.tools.modules.database.service; import com.sanri.tools.modules.core.dtos.PluginDto; import com.sanri.tools.modules.core.service.file.FileManager; import com.sanri.tools.modules.core.service.plugin.PluginManager; import com.sanri.tools.modules.database.dtos.*; import com.sanri.tools.modules.database.dtos.meta.ActualTableName; import com.sanri.tools.modules.database.dtos.meta.TableMetaData; import com.sanri.tools.modules.database.service.rename.JavaBeanInfo; import freemarker.template.Configuration; import freemarker.template.Template; import freemarker.template.TemplateException; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.time.DateFormatUtils; import org.mybatis.generator.api.GeneratedJavaFile; import org.mybatis.generator.api.GeneratedXmlFile; import org.mybatis.generator.api.ProgressCallback; import org.mybatis.generator.config.*; import org.mybatis.generator.internal.NullProgressCallback; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cglib.core.ReflectUtils; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import org.springframework.util.ReflectionUtils; import javax.annotation.PostConstruct; import java.beans.PropertyDescriptor; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.lang.reflect.Method; import java.nio.file.Path; import java.sql.SQLException; import java.util.*; import static com.sanri.tools.modules.database.service.JdbcService.module; @Service @Slf4j public class CodeGeneratorService { @Autowired private JdbcService jdbcService; @Autowired private FileManager fileManager; @Autowired private Configuration configuration; // 生成代码的目录 private static final String BASE_GENERATE_DIR = "code/generate/"; @Autowired(required = false) private Map<String,RenameStrategy> renameStrategyMap = new HashMap<>(); /** * 所有的命名策略 * @return */ public Set<String> renameStrategies(){ return renameStrategyMap.keySet(); } /** 使用模板生成代码 **/ @Autowired private TemplateService templateService; /** * 使用某一张表进行代码的预览 * 模板代码预览 * @param previewCodeParam */ public String previewCode(PreviewCodeParam previewCodeParam) throws IOException, SQLException, TemplateException { // 获取表元数据 List<TableMetaData> tableMetaData = jdbcService.filterChoseTables(previewCodeParam.getConnName(), previewCodeParam.getActualTableName().getCatalog(), Collections.singletonList(previewCodeParam.getActualTableName())); if (!CollectionUtils.isEmpty(tableMetaData)){ TableMetaData previewTable = tableMetaData.get(0); RenameStrategy renameStrategy = renameStrategyMap.get(previewCodeParam.getRenameStrategyName()); // 生成代码 return templateService.preview(previewCodeParam,previewTable,renameStrategy); } return ""; } /** * 使用模板方案代码生成 * @param template * @param connName * @param actualTableName * @param renameStrategyName * @return */ public Path codeGenerator(CodeGeneratorParam codeGeneratorParam) throws IOException, SQLException, TemplateException { CodeGeneratorConfig.DataSourceConfig dataSourceConfig = codeGeneratorParam.getDataSourceConfig(); String connName = dataSourceConfig.getConnName(); String catalog = dataSourceConfig.getCatalog(); List<TableMetaData> filterTables = jdbcService.filterChoseTables(connName, catalog, dataSourceConfig.getTables()); String renameStrategyName = codeGeneratorParam.getRenameStrategyName(); RenameStrategy renameStrategy = renameStrategyMap.get(renameStrategyName); File file = templateService.processBatch(codeGeneratorParam,filterTables,renameStrategy); return fileManager.relativePath(file.toPath()); } /** * 直接构建一个项目 * @param codeGeneratorConfig * @return * @throws IOException * @throws SQLException * @throws InterruptedException */ public File projectBuild(CodeGeneratorConfig codeGeneratorConfig) throws IOException, SQLException, InterruptedException { File targetDir = fileManager.mkTmpDir(BASE_GENERATE_DIR+"buildSpringBoot"); //项目基本目录 File projectDir = new File(targetDir, codeGeneratorConfig.getProjectName()+System.currentTimeMillis()); CodeGeneratorConfig.GlobalConfig globalConfig = codeGeneratorConfig.getGlobalConfig(); CodeGeneratorConfig.PackageConfig packageConfig = codeGeneratorConfig.getPackageConfig(); //自己生成 maven 骨架 File javaDir = new File(projectDir, "src/main/java");javaDir.mkdirs(); File resourcesDir = new File(projectDir, "src/main/resources");resourcesDir.mkdirs(); File testJavaDir = new File(projectDir, "src/test/java");testJavaDir.mkdirs(); File testResourcesDir = new File(projectDir, "src/test/resources");testResourcesDir.mkdirs(); // 生成 service,controller,vo,dto,param mkdirs(javaDir, packageConfig); File entityDir = new File(javaDir,StringUtils.replace(packageConfig.getEntity(),".","/")); // 准备数据源,获取表元数据 CodeGeneratorConfig.DataSourceConfig dataSourceConfig = codeGeneratorConfig.getDataSourceConfig(); String connName = dataSourceConfig.getConnName(); String catalog = dataSourceConfig.getCatalog(); List<TableMetaData> tableMetaDataList = jdbcService.filterChoseTables(connName, catalog, dataSourceConfig.getTables()); if (tableMetaDataList.size() > 0) { // 生成实体 Bean JavaBeanInfo javaBeanInfo = new JavaBeanInfo(); } return projectDir; } /** * 数据表生成 javaBean * 支持 swagger , lombok , persistence-api * @param connName * @param catalog * @param schema * @throws IOException * @throws SQLException */ public File javaBeanBuild(JavaBeanBuildConfig javaBeanBuildConfig) throws IOException, SQLException { String connName = javaBeanBuildConfig.getConnName(); String catalog = javaBeanBuildConfig.getCatalog(); List<TableMetaData> filterTables = jdbcService.filterChoseTables(connName, catalog, javaBeanBuildConfig.getTables()); // 获取重命名工具 String renameStrategy = javaBeanBuildConfig.getRenameStrategy(); RenameStrategy renameStrategyImpl = renameStrategyMap.get(renameStrategy); File javaBeanDir = fileManager.mkTmpDir(BASE_GENERATE_DIR + "javabean" + System.currentTimeMillis()); // 对过滤出来的表生成 javaBean for (TableMetaData filterTable : filterTables) { JavaBeanInfo javaBeanInfo = renameStrategyImpl.mapping(filterTable); Template entityTemplate = configuration.getTemplate("code/entity.xml.ftl"); Map<String, Object> context = new HashMap<>(); context.put("bean", javaBeanInfo); context.put("beanConfig", javaBeanBuildConfig); context.put("table", filterTable); context.put("author", System.getProperty("user.name")); context.put("date", DateFormatUtils.ISO_DATE_FORMAT.format(System.currentTimeMillis())); context.put("time", DateFormatUtils.ISO_TIME_NO_T_FORMAT.format(System.currentTimeMillis())); // 准备 context File entityFile = new File(javaBeanDir, javaBeanInfo.getClassName() + ".java"); OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(entityFile)); try { entityTemplate.process(context, outputStreamWriter); } catch (TemplateException e) { log.error("javaBeanBuild template error : {}",e.getMessage(),e); } finally { IOUtils.closeQuietly(outputStreamWriter); } } return javaBeanDir; } /** * 使用 mybatis-generator 生成 mapper.xml mapper.java entity.java 文件 * 配置一个插件就支持了 tk.mybatis * @return */ public File mapperBuild(MapperBuildConfig mapperBuildConfig) throws IOException, SQLException, InterruptedException { CodeGeneratorConfig.DataSourceConfig dataSourceConfig = mapperBuildConfig.getDataSourceConfig(); CodeGeneratorConfig.PackageConfig packageConfig = mapperBuildConfig.getPackageConfig(); MapperBuildConfig.FilesConfig filesConfig = mapperBuildConfig.getFilesConfig(); // context Context context = new Context(ModelType.valueOf(mapperBuildConfig.getModelType())); context.setId(RandomStringUtils.randomAlphanumeric(3)); context.setTargetRuntime(mapperBuildConfig.getTargetRunTime()); // jdbc String connName = dataSourceConfig.getConnName(); ConnectionMetaData connectionMetaData = jdbcService.connectionMetaData(connName); JDBCConnectionConfiguration jdbcConnectionConfiguration = new JDBCConnectionConfiguration(); jdbcConnectionConfiguration.setDriverClass(connectionMetaData.getDriverClass()); jdbcConnectionConfiguration.setConnectionURL(connectionMetaData.getConnectionURL()); jdbcConnectionConfiguration.setPassword(connectionMetaData.getAuthParam().getPassword()); jdbcConnectionConfiguration.setUserId(connectionMetaData.getAuthParam().getUsername()); context.setJdbcConnectionConfiguration(jdbcConnectionConfiguration); // java model if (filesConfig.isEntity()) { JavaModelGeneratorConfiguration javaModelGeneratorConfiguration = new JavaModelGeneratorConfiguration(); javaModelGeneratorConfiguration.setTargetPackage(packageConfig.getEntity()); context.setJavaModelGeneratorConfiguration(javaModelGeneratorConfiguration); } // sqlmap if (filesConfig.isXml()) { SqlMapGeneratorConfiguration sqlMapGeneratorConfiguration = new SqlMapGeneratorConfiguration(); sqlMapGeneratorConfiguration.setTargetPackage(packageConfig.getMapper()); context.setSqlMapGeneratorConfiguration(sqlMapGeneratorConfiguration); } // javaclient if (filesConfig.isMapper()) { JavaClientGeneratorConfiguration javaClientGeneratorConfiguration = new JavaClientGeneratorConfiguration(); javaClientGeneratorConfiguration.setTargetPackage(packageConfig.getMapper()); javaClientGeneratorConfiguration.setImplementationPackage(packageConfig.getMapper()); javaClientGeneratorConfiguration.setConfigurationType(mapperBuildConfig.getJavaClientType()); context.setJavaClientGeneratorConfiguration(javaClientGeneratorConfiguration); } // plugins List<MapperBuildConfig.PluginConfig> pluginConfigs = mapperBuildConfig.getPluginConfigs(); for (MapperBuildConfig.PluginConfig pluginConfig : pluginConfigs) { PluginConfiguration pluginConfiguration = new PluginConfiguration(); pluginConfiguration.setConfigurationType(pluginConfig.getType()); Map<String, String> properties = pluginConfig.getProperties(); properties.forEach((k,v) -> pluginConfiguration.addProperty(k,v)); context.addPluginConfiguration(pluginConfiguration); } // table configurations List<TableMetaData> tableMetaDataList = jdbcService.filterChoseTables(connName, dataSourceConfig.getCatalog(), dataSourceConfig.getTables()); for (TableMetaData tableMetaData : tableMetaDataList) { TableConfiguration tableConfiguration = new TableConfiguration(context); ActualTableName actualTableName = tableMetaData.getActualTableName(); tableConfiguration.setCatalog(actualTableName.getCatalog()); tableConfiguration.setSchema(actualTableName.getSchema()); tableConfiguration.setTableName(actualTableName.getTableName()); context.addTableConfiguration(tableConfiguration); } // generate files List<GeneratedJavaFile> generatedJavaFiles = new ArrayList<>(); List<GeneratedXmlFile> generatedXmlFiles = new ArrayList<>(); ProgressCallback callback = new NullProgressCallback(); List<String> warnings = new ArrayList<>(); Set<String> fullyQualifiedTableNames = new HashSet<>(); context.introspectTables(callback, warnings,fullyQualifiedTableNames); context.generateFiles(callback, generatedJavaFiles, generatedXmlFiles, warnings); // 写入生成的数据到文件 String projectName = mapperBuildConfig.getProjectName(); File src = fileManager.mkTmpDir(BASE_GENERATE_DIR + "mapper/" + projectName + System.currentTimeMillis()); for (GeneratedJavaFile generatedJavaFile : generatedJavaFiles) { String targetPackage = generatedJavaFile.getTargetPackage(); File director = getDirector(src, targetPackage); File targetFile = new File(director, generatedJavaFile.getFileName()); FileUtils.writeStringToFile(targetFile,generatedJavaFile.getFormattedContent()); } for (GeneratedXmlFile generatedXmlFile : generatedXmlFiles) { String targetPackage = generatedXmlFile.getTargetPackage(); File director = getDirector(src, targetPackage); File targetFile = new File(director, generatedXmlFile.getFileName()); FileUtils.writeStringToFile(targetFile,generatedXmlFile.getFormattedContent()); } return src; } private File getDirector(File base,String targetPackage){ StringBuilder sb = new StringBuilder(); StringTokenizer st = new StringTokenizer(targetPackage, "."); //$NON-NLS-1$ while (st.hasMoreTokens()) { sb.append(st.nextToken()); sb.append(File.separatorChar); } File directory = new File(base, sb.toString()); if (!directory.exists()){ directory.mkdirs(); } return directory; } /** * 用于创建 PackageConfig 中的所有目录 , 基于基本目录 {@param javaDir} * @param javaDir * @param packageConfig */ private void mkdirs(File javaDir, CodeGeneratorConfig.PackageConfig packageConfig) { PropertyDescriptor[] beanGetters = ReflectUtils.getBeanGetters(CodeGeneratorConfig.PackageConfig.class); for (int i = 0; i < beanGetters.length; i++) { Method readMethod = beanGetters[i].getReadMethod(); String path = Objects.toString(ReflectionUtils.invokeMethod(readMethod, packageConfig)); String[] split = StringUtils.split(path, '.'); StringBuffer currentPath = new StringBuffer(); for (String partPath : split) { currentPath.append("/").append(partPath); File dir = new File(javaDir, currentPath.toString()); if(!dir.exists()){ log.info("创建目录 : {} ",dir); dir.mkdir(); } } } } @Autowired private PluginManager pluginManager; @PostConstruct public void register(){ pluginManager.register(PluginDto.builder() .module(module).name("codeGenerate").author("sanri").envs("default") .logo("mysql.jpg") .desc("代码生成功能") .help("代码生成.md") .build()); } }
/* Copyright (C) 2005, 2004 Erik Eliasson, Johan Bilien Copyright (C) 2006 Mikael Magnusson This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* * Authors: Erik Eliasson <[email protected]> * Johan Bilien <[email protected]> * Mikael Magnusson <[email protected]> */ /* Name * SipUri.h * Author * Cesc Santasusana, c e s c dot s a n t a A{T g m a i l dot co m; 2005 * Purpose * */ #ifndef SIPURI_H #define SIPURI_H #include<libmutil/libmutil_config.h> #define SIP_URI_USERNAME_DEFAULT "UNKNOWN" #define SIP_URI_USER_TYPE_DEFAULT "phone" #include<sys/types.h> #include<map> #include<iostream> #include<libmutil/MemObject.h> #include<libmutil/dbg.h> /** A SipUri representation. It can create a Uri from a string (parse it), or from parameters that can be set. The scheme is: "displayName" <protocolId:userName@ip:port;userType;transport> */ class LIBMUTIL_API SipUri : public MObject{ public: /** Basic constructor ... it creates an invalid uri */ SipUri() { clear(); }; ~SipUri(); /** This constructor, and the setUri function, parse a uri string. If everything is ok, the uri object is valid */ SipUri(std::string build_from); void setUri( std::string buildFrom ); /** Given a string with the inside part of the uri (between, but without, the '<' and '>' ), parse and set the right parameters. */ void parseUserInfo( std::string userInfo ); /** Sets at once all these params and creates a valid uri ... dangerous ... use at own risk. What it does? For some obscure reason, some objects create sip uris providing as username a kinda uri, for example [email protected], and then also provide an ip address, which has "precedence". So ... we parse the username info provided and then overwrite the ip part. Also ... note that if we are provided a username like sip:user (we don't know the domain, so when calling we don't use it, for example, the TO: ) ... but this sip uri class interprets (correctly) that the user is an ip ... so ... if this happens, in this particular function, we move the "ip = user" to the "userName = user" ... */ void setParams(std::string userName, std::string ip, std::string userType, int32_t port); /** Return the whole uri ... */ std::string getString() const; /** Return only userName@ip */ std::string getUserIpString() const; /** Return the uri in a valid form to be used as a request uri, that is, without: display name, '<', '>' and parameters. */ std::string getRequestUriString() const; virtual std::string getMemObjectType() const {return "SipUri";} void setDisplayName(std::string id); const std::string & getDisplayName() const; void setProtocolId(std::string protocolId); const std::string & getProtocolId() const; void setUser(std::string id); const std::string & getUserName() const; void setIp(std::string ip); const std::string & getIp() const; void setPort(int32_t port); int32_t getPort() const; void setUserType(std::string userType); const std::string & getUserType() const; void setTransport(std::string transp); const std::string & getTransport() const; /** Use it to check whether the uri has valid stuff in it ... don't use if not valid. If invalid and used, the getXXXString functions will return nothing */ bool isValid() const; /** Use at your own risk ... forces uri in a (in)valid state */ void makeValid( bool valid ); void clear(); void setParameter(const std::string &key, const std::string &val); bool hasParameter(const std::string &key) const; const std::string & getParameter(const std::string &key) const; void removeParameter(const std::string &key); /** * Compare two SIP URI:s according to RFC 3261 19.1.4 */ int operator==( const SipUri &uri ) const; private: std::string displayName; std::string protocolId; std::string userName; std::string ip; int32_t port; bool validUri; std::map<std::string, std::string> parameters; }; LIBMUTIL_API std::ostream& operator << (std::ostream& os, const SipUri& uri); #endif
#ifndef BLEND2FS_H #define BLEND2FS_H const char blend2fs[] = "#extension GL_ARB_shader_texture_lod: enable\n" "\n" "uniform sampler2D edgesMapL;\n" "uniform sampler2D edgesMap;\n" "uniform sampler2D areaMap;\n" "\n" "/**\n" " * This one just returns the first level of a mip map chain, which allow us to\n" " * avoid the nasty ddx/ddy warnings, even improving the performance a little\n" " * bit.\n" " */\n" "vec4 tex2Doffset(sampler2D map, vec2 texcoord, vec2 offset) {\n" " return texture2DLod(map, texcoord + PIXEL_SIZE * offset, 0.0);\n" "}\n" "\n" "float SearchXLeft(vec2 texcoord) {\n" " // We compare with 0.9 to prevent bilinear access precision problems.\n" " float i;\n" " float e = 0.0;\n" " for (i = -1.5; i > -2.0 * MAX_SEARCH_STEPS; i -= 2.0) {\n" " e = tex2Doffset(edgesMapL, texcoord, vec2(i, 0.0)).g;\n" " if (e < 0.9) break;\n" " }\n" " return max(i + 1.5 - 2.0 * e, -2.0 * MAX_SEARCH_STEPS);\n" "}\n" "\n" "float SearchXRight(vec2 texcoord) {\n" " float i;\n" " float e = 0.0;\n" " for (i = 1.5; i < 2.0 * MAX_SEARCH_STEPS; i += 2.0) {\n" " e = tex2Doffset(edgesMapL, texcoord, vec2(i, 0.0)).g;\n" " if (e < 0.9) break;\n" " }\n" " return min(i - 1.5 + 2.0 * e, 2.0 * MAX_SEARCH_STEPS);\n" "}\n" "\n" "float SearchYDown(vec2 texcoord) {\n" " float i;\n" " float e = 0.0;\n" " for (i = -1.5; i > -2.0 * MAX_SEARCH_STEPS; i -= 2.0) {\n" " e = tex2Doffset(edgesMapL, texcoord, vec2(i, 0.0).yx).r;\n" " if (e < 0.9) break;\n" " }\n" " return max(i + 1.5 - 2.0 * e, -2.0 * MAX_SEARCH_STEPS);\n" "}\n" "\n" "float SearchYUp(vec2 texcoord) {\n" " float i;\n" " float e = 0.0;\n" " for (i = 1.5; i < 2.0 * MAX_SEARCH_STEPS; i += 2.0) {\n" " e = tex2Doffset(edgesMapL, texcoord, vec2(i, 0.0).yx).r;\n" " if (e < 0.9) break;\n" " }\n" " return min(i - 1.5 + 2.0 * e, 2.0 * MAX_SEARCH_STEPS);\n" "}\n" "\n" "\n" "vec2 round(vec2 invec) {\n" " return vec2(floor(abs(invec) + vec2(0.5)) * sign(invec));\n" "}\n" "\n" "vec2 Area(vec2 distance, float e1, float e2) {\n" " // * By dividing by areaSize - 1.0 below we are implicitely offsetting to\n" " // always fall inside of a pixel\n" " // * Rounding prevents bilinear access precision problems\n" " float areaSize = MAX_DISTANCE * 5.0;\n" " vec2 pixcoord = MAX_DISTANCE * round(4.0 * vec2(e1, e2)) + distance;\n" " vec2 texcoord = pixcoord / (areaSize - 1.0);\n" " return texture2DLod(areaMap, texcoord, 0.0).ra;\n" "}\n" "\n" "void main() {\n" " vec4 areas = vec4(0.0);\n" "\n" " vec2 e = texture2D(edgesMap, gl_TexCoord[0].xy).rg;\n" "\n" " if (e.g != 0.0) { // Edge at north\n" "\n" " // Search distances to the left and to the right:\n" " vec2 d = vec2(SearchXLeft(gl_TexCoord[0].xy), SearchXRight(gl_TexCoord[0].xy));\n" "\n" " // Now fetch the crossing edges. Instead of sampling between edgels, we\n" " // sample at 0.25, to be able to discern what value has each edgel:\n" " vec4 coords = vec4(d.x, 0.25, d.y + 1.0, 0.25) * PIXEL_SIZE.xyxy + gl_TexCoord[0].xyxy;\n" " float e1 = texture2DLod(edgesMapL, coords.xy, 0.0).r;\n" " float e2 = texture2DLod(edgesMapL, coords.zw, 0.0).r;\n" "\n" " // Ok, we know how this pattern looks like, now it is time for getting\n" " // the actual area:\n" " areas.rg = Area(abs(d), e1, e2);\n" " }\n" "\n" " if (e.r != 0.0) { // Edge at west\n" "\n" " // Search distances to the top and to the bottom:\n" " vec2 d = vec2(SearchYUp(gl_TexCoord[0].xy), SearchYDown(gl_TexCoord[0].xy));\n" "\n" " // Now fetch the crossing edges (yet again):\n" " vec4 coords = vec4(-0.25, d.x, -0.25, d.y - 1.0) * PIXEL_SIZE.xyxy + gl_TexCoord[0].xyxy;\n" " float e1 = texture2DLod(edgesMapL, coords.xy, 0.0).g;\n" " float e2 = texture2DLod(edgesMapL, coords.zw, 0.0).g;\n" "\n" " // Get the area for this direction:\n" " areas.ba = Area(abs(d), e1, e2);\n" " }\n" "\n" " gl_FragColor = areas;\n" "}\n"; #endif
/** * The Access Condition (ResourcePolicy) REST Resource * * @author Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it) */ public class AccessConditionOptionRest { private String name; @JsonInclude(Include.NON_NULL) private UUID groupUUID; @JsonInclude(Include.NON_NULL) private UUID selectGroupUUID; private Boolean hasStartDate; private Boolean hasEndDate; @JsonInclude(Include.NON_NULL) private Date maxStartDate; @JsonInclude(Include.NON_NULL) private Date maxEndDate; public Date getMaxEndDate() { return maxEndDate; } public void setMaxEndDate(Date maxEndDate) { this.maxEndDate = maxEndDate; } public Boolean getHasStartDate() { return hasStartDate; } public void setHasStartDate(Boolean hasStartDate) { this.hasStartDate = hasStartDate; } public Boolean getHasEndDate() { return hasEndDate; } public void setHasEndDate(Boolean hasEndDate) { this.hasEndDate = hasEndDate; } public Date getMaxStartDate() { return maxStartDate; } public void setMaxStartDate(Date maxStartDate) { this.maxStartDate = maxStartDate; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
#!/usr/bin/env python import sys import os import PyQt4 import vtk from vtk.test import Testing class TestvtkQtTableView(Testing.vtkTest): def testvtkQtTableView(self): sphereSource = vtk.vtkSphereSource() tableConverter = vtk.vtkDataObjectToTable() tableConverter.SetInput(sphereSource.GetOutput()) tableConverter.SetFieldType(1) tableConverter.Update() pointTable = tableConverter.GetOutput(); tableView = vtk.vtkQtTableView() tableView.SetSplitMultiComponentColumns(1); tableView.AddRepresentationFromInput(pointTable); tableView.Update(); w = tableView.GetWidget() w.show(); if Testing.isInteractive(): PyQt4.QtGui.qApp.exec_() if __name__ == "__main__": app = PyQt4.QtGui.QApplication(sys.argv) Testing.main([(TestvtkQtTableView, 'test')])
# Make DNSimple available directly from module for backwards-compatibility try: from dnsimple import DNSimple, DNSimpleException, DNSimpleAuthException except ImportError: from dnsimple.dnsimple import DNSimple, DNSimpleException, DNSimpleAuthException from ._version import get_versions __version__ = get_versions()['version'] del get_versions
The 0.0003 Percent: Short-Run Dynamics of Extreme Wealth in America This paper analyzes the short-run dynamics and changing sources of wealth among the Forbes 400 list of the wealthiest individuals in the United States, using annual data for 12 years spanning before and after the financial crisis of 2008-9. Over the entire time period the growth of wealth was negatively related to the previous years’ wealth, implying a slight degree of wealth convergence within the group. We find that the overall growth of the group’s wealth slowed after the crisis but stayed well above the GDP growth rate. Considering the interaction of growth of wealth with personal characteristics, we find that those who can be classified as self-made had a higher average wealth growth rate than their counterparts, although this lead narrowed after the financial crisis, during the Great Recession. Similarly, those with advanced degrees also had higher average growth of wealth in the pre-crisis period. We also examine the mobility of in and out of the Forbes 400, and find that turnover was higher in the period prior to the financial crisis, particularly for self-made individuals and those with advanced degrees. The self-made were also more likely to rise in rank within the Forbes 400 conditional on persisting in the list. By employing an innovative method of dealing with selection bias in a truncated panel, we are able to ascertain that our results are not driven by these biases. We also find some differences in these patterns at the sectoral level, compared to the aggregate group.
# ALTERNATIVE BAKER reinventing dessert with gluten-free grains and flours WRITTEN AND PHOTOGRAPHED BY ALANNA TAYLOR-TOBIN CREATOR OF THE BOJON GOURMET Begin Reading Table of Contents About the Author Copyright Page **Thank you for buying this** **Page Street Publishing Co. ebook.** To receive special offers, bonus content, and info on new releases and other great reads, sign up for our newsletters. Or visit us online at us.macmillan.com/newslettersignup The author and publisher have provided this e-book to you for your personal use only. You may not make this e-book publicly available in any way. **Copyright infringement is against the law. If you believe the copy of this e-book you are reading infringes on the author's copyright, please notify the publisher at:<http://us.macmillanusa.com/piracy>**. TO MY GRANDMOTHERS, ANNE AND BUBBA, FOR ALWAYS SHARING THE BEST COOKIES # INTRODUCTION At a birthday party the other day, my sweetie Jay and I were offered a chocolate cupcake from a local bakery. I had been testing recipes for this book for seven months and we were up to our ears in unconscionable amounts of baked goods that all boasted alternative grains and seasonal fruits and vegetables. Not wishing to be rude, Jay took a bite, and frowned. "It's bland," he whispered. I tasted the cupcake, expecting something super sweet and flat, and was pleasantly surprised. The cake was well seasoned, not too sweet and quite chocolaty, with enough salt to counter the sugar. The frosting was creamy and smooth, the cake rich and moist. What was missing? Before we left for the party, I'd baked a batch of the Buckwheat Pear Galettes with Walnuts and Salty Caramel and Jay and I had shared one, still warm from the oven. The charcoal-hued crust shattered against tender pears coated in a nap of salty caramel, warm buckwheat exuding notes of chocolate and spice, earth and toasted nuts. It was then that I realized: our palates had become accustomed to alternative grains. Baking with alternative grains opened up a whole new feast of flavors, textures and colors that I never knew existed. Culinary pioneers Kim Boyce and Alice Medrich have shown us that these flours aren't just desirable for their nutritional value, but also for the aesthetic pleasures—touch, taste and smell—that they bring to the kitchen. It's been a delight to see the look on friends' faces when they bite into a Chestnut Roulade Cake with Rum, Mascarpone and Roasted Pears or Buckwheat Bergamot Double Chocolate Cookie for the first time; their eyes widen, corners of the lips turn upward and a look of pure surprise crosses their faces. "What is this new flavor I'm tasting?" they ask. Buckwheat flour sings of toasted hazelnuts mingling with cocoa and cinnamon. Teff flour tastes of malted milk and chocolate, mesquite flour of baked earth and chestnut flour is wildly sweet and rich. Sorghum and millet are nutty and grassy; amaranth is potently vegetal and almost herbaceous. Coconut flour is sweet with notes of the tropics, and almond flour has a delicate nuttiness. Replace the all-purpose flour in gingersnaps with sweet rice and mesquite flours, add teff flour to cobbler biscuits or whip up some scones made with oat and amaranth flours—all of a sudden what was once rather ordinary when made with everyday white flour becomes extraordinary. In my kitchen, flavor comes first, but there are other benefits to playing with alternative grains and flours, too. Each has its own fragrance, color, history and nutritional profile. I always look forward to opening a jar of teff flour, whose malty smell takes me back to kindergarten and glasses of malted chocolate milk at recess. The lactic, whole-grain scent of oat flour reminds me of baking cookies on a rainy day. When I pull out my bag of mesquite flour with its reddish tan hue and scent of baked earth, I'm instantly transported to the red, rocky deserts of Arizona and New Mexico, where I traveled as a teen. The sunny yellow of corn flour never fails to cheer me, and I could gaze at buckwheat flour, with its heathered gray hue and charcoal flecks, for hours. It's a sensory experience. Once I'd grown to love these flours and developed my own associations with them, researching their histories was even more fascinating. For example, protein-rich amaranth is strongly linked to the Aztec empire, where it accounted for 80 percent of diets, was used in religious rites and when popped and mixed with honey, embodied statues of the Aztec gods. Mesquite flour, on the other hand, nourished desert-dwellers native to North America, and has the unique ability to slow the metabolization of food and stabilize blood sugar levels. Teff, the world's tiniest grain, hails from the isolated Ethiopian highlands and is the only grain to contain significant levels of vitamin C. And chestnut flour, now considered the upper echelon of alternative flours with a price tag to match, was pooh-poohed as peasant food for centuries. My journey to alternative grains and flours began nearly fifteen years ago. My sister had been diagnosed with a gluten allergy before most people even knew what the stuff was. Wondering whether the gluey wheat protein might account for my own lifelong digestive troubles, I began experimenting with alternatives. There's an inherent learning curve to baking with gluten-free (GF) flours (see my first disastrous GF cookie experience here), but balancing them with sticky ingredients—sweet white rice flour, tapioca, ground chia seeds and eggs, to name a few—allows their good qualities to shine. Most of my recipes now come together with a minimum of fuss, and with tastes and textures that surpass their refined wheat counterparts, piquing the palate of the most sensitive celiac to the most ardent wheat-eater. So it is with this new palette of flavors, textures and histories that we make new of what was once old. I'm delighted to share this collection of recipes based on alternative grains and flours and punctuated by all manner of delicious ingredients, from peak-of-season fruit to sweeteners to chocolate and spirits. So let's get baking. Let's reinvent dessert. # HOW TO USE THIS BOOK Some of these recipes can seem intimidating at first, particularly if you are new to baking, to alternative flours or to working with seasonal ingredients. Here are some suggestions on how to approach these recipes without hating life. (Read more about alternative grains and flours on here and here.) FLOUR CHILD If you're just beginning to dabble in GF baking (or baking at all) and are looking to stock your pantry with a few alternative grains, start with recipes that use just two or three flours. These flours are easy to find and even easier to love with their mild flavors and multipurpose uses: • Almond flour • Millet flour • GF oat flour and old-fashioned rolled oats • Polenta/corn grits, cornmeal and corn flour • Sweet white rice flour (a.k.a. glutinous rice flour; NOT regular white rice flour) Try these easy-peasy recipes: • Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars • Blueberry Corn Flour Muffins • Creamy Baked Grits with Sweet Corn and Berries • Millet Skillet Cornbread with Cherries and Honey • Vanilla Butter Cake with Whipped Mascarpone and Summer Berries • Fig and Olive Oil Cake • Peach Brown Butter Crème Fraîche Tart • Chocolate Cranberry Pecan Tart • Blueberry Plum Cobbler with Corn Flour Biscuits • Blackberry Crisp Frozen Yogurt • Apricot Clafoutis with Honey and Cardamom • Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios • Meyer Lemon Bars with Vanilla-Almond Crust • Summer Stone Fruit and Marzipan Crumble FLOUR POWER If you have some experience with gluten-free, alternative flour baking and wish to expand your repertoire, try these slightly less common flours: • Teff flour • Buckwheat flour • Coconut flour • Sorghum flour And the sometimes fussier recipes that use them: • Boozy Chocolate Cherry Teff Pots • Apple, Buckwheat and Gruyère Puff Pancake • Huckleberry Buckwheat Cheese Blintzes • Buckwheat Bergamot Double Chocolate Cookies • Poppy Seed, Pluot and Buckwheat Streusel Muffins • Rustic Plum, Teff and Hazelnut Tart • Roasted Banana Teff with Muscovado Sugar Glaze • Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits • Blackberry Buckwheat Crisps • Buckwheat Hazelnut Pear Financiers • Chocolate Zucchini Cake with Matcha Cream Cheese Frosting • Sorghum Peach Oven Pancake • Cashew Lime Blondies GRAINIAC If you're an adventurous baker who wants ALL the flours, look for: • Mesquite flour • Chestnut flour • Amaranth flour And try these recipes: • Apple Chestnut Tart with Salty Caramel • Cherry Chestnut Chocolate Chip Cookies • Salty Caramel Banana Cream Tart with Mesquite Crust • Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits • Mesquite Gingersnaps and Chewy Double-Ginger Molasses Cookies (and the recipes that use them) • Chestnut Fig Scones • Chestnut Plum Financiers • Cinnamon Amaranth Peach Scones • Any of the pie or pandowdy recipes; the dough takes some getting used to but produces stunning results # HOW TO WIN AT BAKING I've heard it said that there are two types of people in the world: cooks and bakers. Cooks are hot-tempered creative types who break all the rules and don't follow directions. A little of this, a bit of that, they can throw together a genius meal using the dregs of your crisper drawer and a skillet. Recipes are tiresome words meant to be skimmed rather than analyzed. Then there are meticulous, exacting bakers. With their obsessive attention to detail and love of structure, they will follow a recipe to the letter. My advice to you when making these recipes is to be a bit of a cook _and_ a baker. Yes, these recipes have been carefully formulated to work with these exact measurements, ingredients, temperatures, baking pans, etc. So be like a baker and measure accurately, and make the recipe as written, at least the first time around. That said, each kitchen has its own set of variables—weather, oven temperature, baking pan size and material, brands of ingredients used and measuring techniques all have their own bizarre effects on baking. So be like a cook, too: use your senses and intuition to determine if that cake needs a longer baking time than called for, or if your scone dough needs more liquid. If something seems done to you before the timer goes off, pull it out; if it seems underdone, leave it in longer. Along these lines, here are some general baking tips that should help you be a better baker (and cook). 1. **Read, read, read.** Before you get started, read through a recipe from start to finish; this will give you a sense of timing and flow before you begin, and there will be no nasty surprises, like chilling times, ingredients or equipment. I always give the recipe a final read-through once my batter is mixed, checking off ingredients in my head to make sure I haven't left any out. Once you place the goodies in the oven, refresh your memory about what to look for in terms of doneness and bake time. And make sure you pay attention to ingredients. **For example, sweet white rice flour is quite different from regular rice flour and the two are not interchangeable.** (Read more in "Alternative Grains and Flours".) 2. **_Mise en place._** I never do this because I have a tiny kitchen and all my baking supplies are already in one place, but many bakers I know like to gather and measure all their ingredients before getting started. This way, you won't accidentally leave anything out. 3. **Know how to measure.** Ingredients in this book are given in volume (cups, tablespoons, teaspoons) as well as metric measurements (grams, which are weight, and milliliters, which are volume). To measure by volume, use dry measuring cups for flours, sugars and the like (those little metal cups with handles that come in ¼-cup increments) and use wet measuring cups for liquids (usually glass or plastic pitchers that come in 1- and 2-cup sizes). Weight measurements will give you the most accurate results, particularly for alternative flours that can have wide variations in weight due to the coarseness of the grind, moisture content and clumpiness. If measuring by volume, see step 4. 4. **Dip and sweep.** When measuring dry ingredients such as flours, grab your bag or jar of flour, a dry measuring cup and a straight knife or (my favorite) a small, offset spatula. If the flour has been sitting for a while, such as a new bag from the grocery store, stick your cup in the bag and fluff it up a bit. Conversely, if your flour is fluffy (say you just bought it in bulk, or you just poured your bag into a storage jar), rap the container on the counter a few times to settle it back down. Now, dip your measuring cup into the container and lift it up so that it's mounded with flour. Give it the gentlest of taps on the rim of the jar or with your hand to settle any large air pockets. Use your knife or offset spatula to sweep away the excess flour to make a level cup, letting the excess fall back into the jar or bag. Do the same thing when measuring with teaspoons or tablespoons. 5. **Use the utensils and mixing techniques called for.** When called for, whip, beat, stir, fold or rub in. Beating whipped egg whites into a batter with a spoon will give different results than gently folding them in with a spatula. 6. **Use the pan size called for.** An inch (2.5 cm) may not seem like a big difference, but a 9-inch (23-cm) round pan has 25 percent more volume than an 8-inch (20-cm) round pan, and this will have a big effect on the shape of your cake and its baking time. Similarly, the material of your baking vessel may transfer heat differently. Glass, ceramic, steel, aluminum and cast iron will give slightly different outcomes, making it essential to channel your inner cook and use visual cues and your instincts to determine doneness. 7. **Oven placement matters.** Take care to arrange your oven racks as specified in the recipe. For instance, scones burn easily on their bottoms, so baking them toward the top of the oven is essential. Pie, on the other hand, tends to get soggy on the bottom; baking it on the lower rack helps keep the bottom crisp. 8. **Oven temperature—it's anyone's guess!** Most ovens don't run true to temperature, no matter how fancy and new. My oven is about as ancient as some of the grains in this book, so I am at the mercy of my external oven thermometers, of which I always have two. But these can be inaccurate, too. The best way to see that your oven runs at the proper temperature is to hire a professional to come calibrate it. The second way is to make like a cook and adjust your oven according to your instincts. Are things not browning when they should? Maybe your oven runs cold and you need to turn it up. Are your cookies incinerated? Your oven probably runs a little warm and you should dial down the temperature a bit. Opening the oven door frequently will lower the temperature, too, so try to keep the peeking to a minimum. 9. **Use a timer.** And also, don't use a timer. Bake times are approximate and will differ depending on myriad factors, including oven temperature, pan material, the temperature of your kitchen and ingredients, how you measured your ingredients and how frequently you open the oven to check for doneness. So use your eyes, nose and fingers or a toothpick (when applicable) to determine if something is fully baked, regardless of the times given. That said, do set a timer for a little before the earliest done time so you know when to start checking on things. 10. **Keep your cool.** Freshly baked goods are still cooking from residual heat even after you've removed them from the oven, so it's best to obey the recipe and let things cool or chill for the specified time. Before storing baked goods, let them cool completely so they don't steam themselves. # DESSERT FOR BREAKFAST _"When you wake up in the morning, Pooh," said Piglet at last, "what's the first thing you say to yourself?"_ _"What's for breakfast?" said Pooh. "What do you say, Piglet?"_ _"I say, I wonder what's going to happen exciting today?" said Piglet._ _Pooh nodded thoughtfully. "It's the same thing," he said._ _—A. A. Milne_ Breakfast is my favorite meal of the day because it's the one where you're allowed to eat dessert. Muffins are essentially cake in individual form. Oven pancakes resembling clafoutis puff around gently sweetened fruit. Scones are doused with honey, and glazed biscuits wrap around berries. In the case of chocolate-topped oat bars, you can even eat cookies for breakfast and none will be the wiser. There's a reason why bitter beverages like coffee and black tea star at breakfast—they're the perfect thing to wash down these sweet breakfast treats. Alternative grains have the power to create breakfast snacks and pastries that taste good in addition to being good for you. I've kept most of the recipes in this section on the less-sweet side, using alternative grains and flours to add nutritional value and a bit of staying power to some favorite breakfast treats that are worth getting out of bed for any day of the week. Sorghum adds sweet nuttiness to a custardy oven pancake encasing honey-roasted peaches. Melt-in-your-mouth cream scones get their tender texture from millet and oat flours, as well as amaranth and chestnut flours in the variations. Teff flour makes wildly flavorful roasted banana scones slathered in a butterscotchy glaze. Buckwheat stars in buttery poppy seed muffins as well as blintzes filled with sweet cheese and huckleberries. Don't miss the pumpkin cranberry loaf, which is barely sweet and made from a host of nuts, seeds and oats. With unique tastes and textures, these breakfast treats are sure to add a bit of excitement to your day, too. ## LEMON RICOTTA BISCUITS {OAT, MILLET} These craggy biscuits are rich with butter, whole-milk ricotta and a touch of cream, and they get sweetness from sugar and a scraping of lemon zest. When warm from the oven, their delicate crumb positively melts in your mouth; cooled, they have a slightly chewy texture from the ricotta. Oat and millet flours combined with cornstarch for crispness and tapioca for extensibility give them a wheaten texture and delicate taste. They tend to spread a bit more than conventional biscuits, but it's the extra moisture that causes them to bake up light and crisp. These hold their shape best when chilled prior to baking, but you can bake them right away when you need biscuits in a hurry; they'll just sit a bit flatter. Spread them with some softened butter and Rhubarb Preserves for breakfast, or top them with ricotta cream, strawberries and tarragon for a sensational shortcake. Leftovers can be baked into a berry-filled bread pudding drizzled with honey. MAKES 6 BISCUITS ½ cup (55 g) GF oat flour, plus extra for dusting the surface ¼ cup plus 2 tbsp (50 g) millet flour 2 tbsp (13 g) tapioca flour 2 tbsp (15 g) cornstarch 2 tbsp (25 g) organic granulated cane sugar 1½ tsp (8 g) baking powder ¼ tsp fine sea salt Finely grated zest from ½ large lemon 3 tbsp (42 g) cold, unsalted butter, diced ½ cup (120 g) whole-milk ricotta cheese 3 tbsp (45 ml) cold heavy cream, plus 2 tsp (10 ml) for brushing the biscuits Coarse sugar such as turbinado or demerara, for sprinkling In a large bowl, whisk together the oat, millet and tapioca flours with the cornstarch, sugar, baking powder, salt and lemon zest. Add the butter pieces, and work with a pastry blender or your fingertips until the butter is broken down into the size of small peas. Chill the mixture until cold, 20–30 minutes. Position a rack in the upper third of the oven and preheat to 425°F (220°C). Stack a rimmed baking sheet atop a second rimmed baking sheet and line with parchment paper (this will keep the bottoms from over-browning). Remove the flour mixture from the refrigerator, add the ricotta and 3 tablespoons (45 ml) cream, and stir and/or knead with your hands until the dough comes together in a rough ball. The dough should feel fairly firm, but evenly moistened. Working quickly to keep the dough cold, turn the dough out onto a surface dusted lightly with oat flour and form it into a disk. Cut the disk into 6 equal pieces. Shape each piece into a ball, place on the sheet pan spaced well apart, and flatten slightly. Brush the tops of each biscuit with the remaining 2 teaspoons (10 ml) cream and sprinkle with a bit of coarse sugar. (Optionally for taller biscuits: chill the biscuits until firm, 30–60 minutes.) Bake the biscuits on the upper rack of the oven until golden on top, 15–20 minutes. Let cool for at least 15 minutes; they are still cooking from residual heat. The biscuits are best the day of baking, but they will keep at room temperature for a day or two. Toast before serving. ## RASPBERRY SWIRL BISCUITS {SWEET RICE, MILLET, OAT} These swirled biscuits stuffed with fresh raspberries and drizzled with vanilla bean glaze fall somewhere between a muffin and a biscuit. The edges get crisp in the oven while the middles stay tender. Bright raspberries play off the sweet richness of the buttery biscuits, enhanced with nutty millet and oat flours, and the pretty presentation makes these perfect for a brunch or potluck. As you work, the dough will feel more fragile than wheat biscuits, but don't worry—the sweet rice flour provides enough stickiness to hold these together as they bake. Just be sure to use sweet rice flour (such as Mochiko) rather than regular rice flour. Feel free to skip the glaze for a less sweet breakfast treat. And don't miss the variations on. Do give yourself 2 hours to complete these biscuits as the dough requires some chill time. MAKES 8 OR 9 BISCUITS BISCUITS 1 cup (155 g) sweet white rice flour ½ cup (65 g) millet flour ½ cup (50 g) oat flour, plus extra for dusting the surface ¼ cup (50 g) organic granulated cane sugar, plus 1 tbsp (10 g) for sprinkling 1 tbsp (12 g) baking powder ½ tsp fine sea salt 6 tbsp (85 g) cold, unsalted butter, sliced, plus 1 tsp, softened, for greasing the pan 6 tbsp (90 ml) whole milk, plus up to 4 tbsp (60 ml) more as needed 1 large egg 1 tsp vanilla extract 1½ cups fresh raspberries (about a 6-oz [170-g] package) FOR BRUSHING BISCUITS 1 tbsp (15 ml) whole milk 1 tsp organic granulated cane sugar VANILLA BUTTERMILK GLAZE Seeds from ½ vanilla bean ½ cup (40 g) powdered sugar 1 tbsp (15 ml) well-shaken buttermilk or milk, or enough to make a pourable glaze To make the biscuits, in a large bowl, combine the sweet rice, millet and oat flours with the ¼ cup (50 g) sugar, baking powder and salt. Add the 6 tablespoons (85 g) butter and blend with a pastry cutter or your fingertips until the butter is broken down into the size of small peas. Chill this mixture until cold, 10–20 minutes. Meanwhile, whisk together the 6 tablespoons (90 ml) milk, the egg and the vanilla extract in a measuring pitcher. Chill until needed. Remove the flour mixture from the refrigerator. Gradually add the milk mixture, working with a flexible silicone spatula until the dough holds together when you give it a squeeze. Stop adding liquid if the dough seems overly wet; we want it to be firm enough to roll out. Conversely, if the dough is dry or floury, work in 1–4 more tablespoons (15–60 ml) milk until it comes together. The amount of liquid needed will vary depending on the temperature and humidity of your kitchen, so add as little or as much as you need to make a firm but hydrated dough. Knead the dough about 20 times in the bowl to bring it together in a ball (unlike wheat biscuits, these gluten-free biscuits require more kneading to bring the dough together, so don't be shy). Cover and chill the dough for 15 minutes or up to several hours. While the dough chills, rinse, dry and slice the berries in half. When ready to bake, position a rack in the upper third of the oven and preheat to 350°F (175°C). Grease the bottom and sides of an 8-inch (20-cm) round or square cake pan with the remaining 1 teaspoon softened butter and line with parchment paper. Remove the dough from the refrigerator and place on a large piece of parchment paper dusted lightly with oat flour. Use your hands and a rolling pin to pat and roll the dough out into roughly a 10 by 14–inch (25 by 35–cm) rectangle, dusting the dough as needed to prevent sticking. If the dough cracks or breaks at any point, don't worry, just pinch and squish it back together. When the dough begins to stick to the parchment, top with a second sheet of parchment and, grasping both pieces of parchment and the dough, bravely flip the whole thing over. Gently peel away the top piece of parchment and continue rolling out the dough. Sprinkle the halved berries evenly over the dough, use your palms to press them gently into the dough and sprinkle with the remaining 1 tablespoon (10 g) sugar. Starting with a long end, use the parchment to help roll the dough into a log, rolling it as tightly as possible and ending with the seam side down. Use a sharp chef's knife to cut the log into 8 equal pieces (if using a round pan) or 9 pieces (if using a square pan), cutting straight down in an assertive manner. Place each round with a cut side up in the prepared pan, using a thin spatula to help transfer the biscuits if needed. Gently press the tops of the biscuits to flatten them slightly. Brush the tops of the biscuits with the 1 tablespoon (15 ml) milk and sprinkle with 1 teaspoon sugar to encourage browning. Bake the biscuits until golden and cooked through, 40–55 minutes. Remove from the oven and let cool completely, 1 hour; their texture improves upon cooling. To make the glaze, whisk together the vanilla seeds, powdered sugar and enough buttermilk or milk to make a pourable glaze until smooth. When the biscuits have cooled, drizzle with the glaze. Use a knife or small offset spatula to coax the biscuits out of the pan. The biscuits are best within a few hours of baking, but extras will keep, airtight at room temperature, for an additional day. VARIATIONS BLUEBERRY CARDAMOM SWIRL BISCUITS Use 1½ cups (170 g) whole fresh blueberries (or huckleberries or wild blueberries) in place of the raspberries. Add ½ teaspoon ground cardamom to the sugar sprinkled over the berries, and ⅛ teaspoon ground cardamom to the glaze. Pictured here. CINNAMON SWIRL BISCUITS WITH CREAM CHEESE ICING Omit the raspberries and additional tablespoon (10 g) of granulated sugar. In a small bowl, stir together ⅓ cup (70 g) packed organic dark brown sugar or muscovado sugar, 1 teaspoon ground cinnamon, a good grating of fresh nutmeg and ⅛ teaspoon fine sea salt. Brush the rolled-out dough all over with 2 tablespoons (30 ml) melted and cooled butter, sprinkle with ⅓ cup (45 g) dried currants, raisins or golden raisins and sprinkle all over with the brown sugar mixture. Pat down the filling mixture into the dough and proceed with the recipe. For a simple cream cheese glaze, use the back of a spoon to mash 2 tablespoons (30 g) softened cream cheese with ½ cup (40 g) powdered sugar. Beat in 1 tablespoon (15 ml) milk or buttermilk, a few drops of vanilla extract and a pinch of fine sea salt, adding more liquid if needed to make a thick but pourable glaze. Drizzle the glaze over the biscuits. NOTE: Making biscuit and scone doughs by hand gives you the best control over the finished product, since it's easier to overprocess the butter if using a machine. However, once you've gotten the hang of how to handle these doughs, feel free to give them a whirl using a stand mixer fitted with the paddle attachment to work in the butter, add the liquid and knead the dough. Alternatively, use a food processor to pulse the butter into the flour mixture, dump the mixture into a bowl and add the liquid ingredients by hand. If your kitchen is cool and you work quickly, you can also skip the additional step of chilling the flour/butter mixture; I list it as an extra precaution for newer bakers and/or warm kitchens. ## BLACKBERRY CREAM SCONES {SWEET RICE, MILLET, OAT} Gluten-free scones are one of the hardest pastries to get right, texture-wise, and it took me a dozen or so tries to settle on this combination of ingredients and techniques. Sandwiching the tender berries between two layers of dough keeps things neat and tidy, and the berries bake into a chunky jam of sorts. (I love blackberries, but any summer berry, or a combination, will work here.) Cream makes for the most lusciously tender scones, and an egg helps the dough hold together. Sweet rice, millet and oat flours give the dough a mild flavor with a bit of nuttiness and textural interest. On the day of baking, the scones are crisp on the outside with tender middles; after a day they soften from the moisture in the fruit and gain a slightly cakey texture. Do give yourself 2 hours to make these scones; most of the time is inactive, and the extra chilling steps ensure tender scones that hold their shape as they bake. MAKES 8 MEDIUM-SIZED SCONES 1 cup (155 g) sweet white rice flour ½ cup (65 g) millet flour ½ cup (50 g) oat flour ¼ cup (50 g) organic granulated cane sugar, plus 1 tsp for the berries 1 tbsp (12 g) baking powder ½ tsp fine sea salt 5 tbsp (70 g) cold, unsalted butter, sliced 6 tbsp (90 ml) heavy cream, more as needed, plus 1 tbsp (15 ml) for brushing the scones 1 large egg 1 tsp vanilla extract 1 cup (130 g) fresh blackberries, halved 1 tbsp (10 g) coarse sugar such as demerara or turbinado, for sprinkling FOR SERVING (OPTIONAL) Crème Fraîche Honey In a large bowl, combine the sweet rice, millet and oat flours with the ¼ cup (50 g) sugar, baking powder and salt. Add the butter and blend with a pastry cutter or your fingertips until the butter is broken down into the size of small peas. Chill this mixture until cold, 15–30 minutes. Meanwhile, whisk together the 6 tablespoons (90 ml) cream, egg and vanilla in a measuring pitcher. Chill until needed. Remove the flour mixture from the refrigerator. Gradually add the cream mixture, working with a flexible silicone spatula until the dough holds together when you give it a squeeze; you may need to add 1–6 tablespoons (15–90 ml) of cream to properly hydrate the dough and the amount will vary depending on the temperature and humidity of your kitchen and how much you've worked in your butter. Knead the dough 20 or so times in the bowl to bring it together in a ball; unlike wheat scones, these gluten-free scones require more kneading to bring the dough together, so don't be shy. Cover and chill the dough for 15 minutes or up to several hours. While the dough chills, rinse, dry and slice the berries in half, and set aside until needed. Remove the dough from the refrigerator and place on a surface dusted lightly with oat flour. Divide the dough into 2 equal portions (they will weigh about 10 ounces [285 g] each) and flatten each into a 6-inch (15-cm) diameter round a scant ½-inch (1.3-cm) thick. Place the berries atop one of the rounds in an even layer, leaving a ½-inch (1.3-cm) border. Sprinkle with the remaining 1 teaspoon cane sugar and top with the second dough round. Squish the edges together to seal and smooth into an even round. Wrap the scone in plastic wrap and chill until firm, 30 minutes or up to overnight. When ready to bake, position a rack in the upper third of the oven and preheat to 400°F (200°C). Stack a rimmed baking sheet atop a second rimmed baking sheet and line with parchment paper (this will keep the bottoms from over-browning). Remove the scone from the refrigerator, unwrap and place on a cutting board. Brush the scone with the remaining 1 tablespoon (15 ml) cream and sprinkle with the 1 tablespoon (10 g) coarse sugar. Use a large, sharp chef's knife to cut the scone into 8 wedges and place the wedges on the prepared baking sheet, spaced well apart. Bake the scones until golden on top and cooked through, 20–30 minutes. Remove from the oven and let cool until warm, 20 minutes; they are still baking from residual heat. The scones are best the day of baking but will keep, airtight at room temperature, for a day or two. VARIATIONS CHESTNUT FIG SCONES The earthy flavor and jammy fig filling of this variation reminds me a bit of really delicious Fig Newtons. Chestnut flour creates a softer, cakier texture than the originals. Omit the millet and oat flours and replace with 1 cup (105 g) chestnut flour. In place of the berries, use ¾ cup (130 g) sliced fresh figs (about 3 medium figs). To slice the figs, trim away the stems, halve, place cut side down and slice ¼-inch (6-mm) thick. Pictured on. CINNAMON AMARANTH PEACH SCONES This version has a strong amaranth flavor when hot, but when cool, the scones taste complex and nutty. Omit the millet flour and substitute ½ cup (65 g) amaranth flour, adding 1 teaspoon ground cinnamon along with the flours. In place of the berries, use 1 cup (150 g) sliced ripe but firm peaches or nectarines. Sprinkle the tops of the cream-brushed scones with 1 tablespoon (10 g) organic granulated cane sugar mixed with ¼ teaspoon ground cinnamon. ORANGE CURRANT CREAM SCONES Classic, with a bit of brightness. Serve these with a bit of clotted cream, honey and a pot of Earl Grey. Add the finely grated zest from 1 small orange to the dough along with the butter. When the butter is worked in, add in ⅓ cup (55 g) lightly packed, plump dried currants. Omit the vanilla, berries and additional sugar, form the dough into one 6-inch (15-cm) diameter round rather than two and proceed with the recipe. A FEW TIPS FOR SCONE SUCCESS • When making scones, keep your ingredients and dough cool. Scone dough is similar to pie dough in that small pebbles of butter not fully incorporated into the dough add flake to the finished product. Make sure your butter is cold to start with, work quickly and chill the dough as directed and more often if your kitchen is on the warm side. • How much cream you add is dependent on several factors: how much you've worked in the butter, how warm it is in your kitchen (i.e., how soft the butter has become), the humidity in the air and the way you've measured your flours. I always need the full ¾ cup (180 ml), but other testers needed only a scant ½ cup (120 ml). Add the cream mixture slowly, tossing with a spatula as you go, and stop when the dough holds together when you grab a handful and squeeze, and there are no dry, floury bits in the bottom of the bowl. • Wheat scones need barely a squeeze to bring the dough together, but this gluten-free dough likes a bit of assertive kneading in the bowl to help it adhere due to the absence of sticky glutens or gums. Once the dough is properly saturated, give it a good firm kneading in the bowl until it forms a sturdy ball. • Scones' bottoms tend to darken rapidly when baking, so always stack two baking sheets on top of each other, line with parchment and bake in the upper third of the oven. • Do ahead: The dough can be made, shaped and refrigerated airtight overnight. Cut, unbaked scones can be frozen for longer storage and baked to order from frozen at 375°F (190°C) for about 20 minutes. ## BLUEBERRY CORN FLOUR MUFFINS {SWEET RICE, CORN, OAT} These pillow-soft muffins are threaded with the warm flavor of corn flour, which soaks up moisture from juicy blueberries while keeping the batter delicate and tender. They're easy to throw together and even easier to love: sweet and cakelike, with some whole-grain oomph from nutty oat and corn flours. Be sure to use powder-fine corn flour and not cornmeal or polenta. If you come across fresh huckleberries (or wild blueberries), their tart flavor and small size make these even more addictive. In this case, decrease the amount of this intense fruit to 1 cup (170 g). MAKES 12 MUFFINS 8 tbsp (113 g) unsalted butter, at room temperature ½ cup (100 g) organic granulated cane sugar 2 large eggs, at room temperature ½ cup plus 2 tbsp (95 g) sweet white rice flour ½ cup plus 2 tbsp (75 g) corn flour ½ cup (55 g) GF oat flour 1½ tsp (6 g) baking powder ½ tsp baking soda ½ tsp fine sea salt ½ cup (120 ml) well-shaken buttermilk 1 tsp vanilla extract 1½ cups (215 g) fresh blueberries, plus a handful for the tops Coarse sugar such as turbinado or demerara, for sprinkling Position a rack in the upper third of the oven and preheat to 350°F (175°C). Line a standard muffin pan with 12 paper liners. (Alternatively, skip the liners and grease the pans well with softened butter.) In the bowl of a stand mixer fitted with the paddle attachment (or in a large bowl with a wooden spoon), beat together the butter and sugar until light and fluffy, scraping down the sides of the bowl occasionally, 2–3 minutes. Beat in the eggs one at a time; it's okay if the mixture looks broken at this point. Meanwhile, in a medium bowl, sift together the sweet rice, corn and oat flours with the baking powder, baking soda and salt. Stir together the buttermilk and vanilla in another small measuring pitcher or bowl. With the mixer on low, stir in one-third of the flour mixture, stirring until just combined, then stir in half of the buttermilk mixture, stirring just until combined and scraping the bowl as needed. Continue until you've used up all the ingredients. Remove the bowl from the mixer and use a flexible silicone spatula to gently fold in the berries. Divide the batter among the muffin cups, filling them nearly to the top (a #25 spring-loaded ice cream scoop makes this a snap). Sprinkle the tops with the coarse sugar and dot with a few extra berries. Bake the muffins until their tops are golden and a toothpick inserted into the center of one comes out mostly clean with a few moist crumbs, 22–28 minutes, rotating the pan after 15 minutes for even baking. Let the muffins cool in their pan for 5–10 minutes, then remove to a cooling rack. Serve warm or at room temperature. The muffins are best the day of baking but will keep, airtight at room temperature, for up to 2 days. ## MILLET SKILLET CORNBREAD WITH CHERRIES AND HONEY {CORN, SWEET RICE, OAT, MILLET} This cornbread was inspired by a millet muffin from the best breakfast place I know of, Plow on Potrero Hill in San Francisco. If you're lucky enough to grab a millet muffin, you'll find it packed with whole millet seed kissed with butter and honey. For days when a simpler, homemade breakfast is in order, I stir together this easy batter studded with toasted millet seed and juicy sweet cherries. When cherries aren't about, make this with 1 cup (115 g) blackberries in their place. This recipe fits perfectly into an 8-inch (20-cm) cast-iron skillet, and the hot, buttered skillet makes the edges extra crisp and golden. However, it's essential that you turn the bread out of the pan shortly after baking lest it pick up the metallic-tasting seasoning from the pan. You can also bake this in an 8-inch (20-cm) round cake pan; in this case, skip the pan-heating step, grease the pan with 1 teaspoon room-temperature butter and line the bottom with a round of parchment paper cut to fit. See the variation below for baking a double batch of this cornbread. MAKES ONE 8-INCH (20-CM) BREAD, 6 SERVINGS 2 tbsp (20 g) uncooked whole millet seed 3 tbsp (42 g) unsalted butter ½ cup (80 g) yellow cornmeal (NOT polenta; preferably Arrowhead Mills GF Yellow Cornmeal) ¼ cup (40 g) sweet white rice flour ¼ cup (25 g) GF oat flour 2 tbsp (25 g) organic granulated cane sugar ½ tsp baking powder ½ tsp baking soda ⅜ tsp fine sea salt 1 large egg 2 tbsp (30 ml) honey, plus more for serving ½ cup (120 ml) well-shaken buttermilk 4 oz (115 g) pitted sweet cherries (1 cup) (frozen and not defrosted works, too) Position a rack in the center of the oven and preheat to 375°F (190°C). Place the millet seed in a small, dry skillet set over medium heat, and toast, shuffling the pan frequently, until the millet smells fragrant, pops a bit and takes on a bit of color, 2–4 minutes. Tip the millet into a large heatproof bowl to stop the cooking. Place the butter in an 8-inch (20-cm) ovenproof skillet and place in the oven to melt while you prepare the batter, taking care not to let the butter burn. In the large bowl containing the millet, whisk together the cornmeal, sweet rice and oat flours, sugar, baking powder, baking soda and salt to combine and eradicate clumps. Make a well in the flour mixture, crack in the egg and add the honey and buttermilk. Remove the hot pan from the oven, swirl the butter around the sides of the pan and pour the rest into the batter, whisking the batter vigorously just until well combined. Scrape the batter into the hot pan, spread into an even layer and dot the cherries evenly over the top; they will sink into the batter as it bakes. Bake the cornbread until golden on top and a tester inserted near the center comes out clean or with a few moist crumbs, 20–30 minutes. Let the cornbread cool for a minute or two, then turn out of the pan and onto a plate or cutting board, invert again onto another serving board or plate, and let cool for at least 20 minutes and up to several hours; it is still baking from residual heat. Serve the cornbread warm or at room temperature. The cornbread is best the day of baking but will keep, airtight at room temperature, for up to 2 days. VARIATION: MILLET SKILLET CORNBREAD {DOUBLE BATCH} To feed a crowd, double all of the ingredients and bake the batter in a 9-inch (23-cm) square baking pan greased with 1 teaspoon room-temperature butter or a 10-inch (25-cm) cast-iron skillet, increasing the bake time to 30–40 minutes. ## SORGHUM PEACH OYEN PANCAKE {SORGHUM, SWEET RICE} I call this an oven pancake, but the batter is really closer to a crepe, with a higher ratio of milk and eggs to flour that gives this baked breakfast a custardy texture not unlike the clafoutis on here and here. Sorghum flour has a mild, nutty flavor that pairs beautifully with floral honey and peaches, and it retains a bit of texture in the finished product that reminds me of the cream of wheat cereal my dad would make on cool mornings when I was growing up. You can either top slices with an extra drizzle of honey or go all out and sprinkle the whole thing with powdered sugar for a dramatic presentation. Mine always sticks to the bottom a bit, so don't be alarmed if the first slice is difficult to get out of the pan; a thin metal spatula will unstick subsequent slices. If the batter separates a bit during baking, this is normal and doesn't detract from the deliciosity of this pancake. For a quicker breakfast, make the batter the night before and refrigerate overnight; whisk to combine in the morning and proceed with the recipe. And feel free to trade in apricots, pitted cherries or nectarines for the peaches. MAKES 4 SERVINGS PEACHES 2 tbsp (28 g) unsalted butter 2 large peaches (about 14 oz [400 g] total), cut into ½-inch (1.3-cm) thick wedges (enough for a single layer in the skillet) 2 tbsp (30 ml) honey PANCAKE ½ cup (60 g) sorghum flour ½ cup (80 g) sweet white rice flour ¼ tsp fine sea salt 3 large eggs 1 tbsp (15 ml) honey 1 tsp vanilla extract 1¼ cups (295 ml) whole milk FOR SERVING (OPTIONAL) Powdered sugar or honey Whipped Cream, Crème Fraîche or plain Greek yogurt Position a rack in the center of the oven and preheat to 400°F (200°C). For the peaches, place the butter in a 10-inch (25-cm) ovenproof skillet with 2-inch (5-cm) high sides and place in the oven to melt, 2–3 minutes. Remove from the oven and swirl or brush the butter over the sides of the pan. Carefully add the peaches in a single layer to the buttery skillet and drizzle with the honey. Return to the oven and roast until the juices bubble thickly, about 15 minutes, turning the peaches once or twice. Meanwhile, to make the pancake, in a large bowl, whisk together the sorghum and sweet rice flours with the salt. Add the eggs, honey, vanilla and a splash of the milk and whisk vigorously until very smooth. Gradually whisk in the rest of the milk until smooth. Alternatively, combine all ingredients in a blender and puree smooth. The batter will be very loose. If the batter has separated, whisk to recombine, then pour the batter over the peaches in the hot skillet. Return to the oven and bake until the pancake is puffed, pale golden on top, deeply bronzed around the edges and cooked through, 25–35 minutes. Remove from the oven. To serve, sprinkle all over with the powdered sugar, if desired. Cut the pancake into wedges with a sharp knife, then use a thin metal spatula to remove slices from the pan and onto plates. Optionally, top with whipped cream and honey if desired. Serve warm. Leftover pancake keeps well, refrigerated airtight, for up to 3 days. Reheat before serving for best results. ## POPPY SEED, PLUOT AND BUCKWHEAT STREUSEL MUFFINS {SWEET RICE, OAT, BUCKWHEAT} These muffins are essentially coffee cake in individual form. Earthy buckwheat, oats, brown sugar and cinnamon set off sweet-tart bursts of pluot lodged within a moist and tender crumb crowned with sandy streusel. Pluots are a plum-apricot hybrid that are three-fourths plum and come with all of the plum's sweet/tart/floral trappings but with a slightly firmer, sweeter flesh. That said, these muffins take well to variations, so try them with any summer berry or stone fruit, fresh figs or ripe chunks of pear in place of the pluots. The poppy seeds add a nice bit of crunch and depth of flavor, but the muffins will still explode with deliciousness should you decide to leave them out. Do be sure to press the streusel gently into the batter prior to baking to help it adhere. MAKES 14 MUFFINS STREUSEL 3 tbsp (42 g) cold, unsalted butter, cut into small pieces, plus 1 tsp for greasing the tops of the muffin tins ¼ cup (35 g) sweet white rice flour 2 tbsp (10 g) oat flour 1 tbsp (5 g) tapioca flour ½ cup (50 g) GF old-fashioned rolled oats ¼ cup (50 g) packed organic light or dark brown sugar 1½ tsp (4 g) poppy seeds ½ tsp ground cinnamon ¼ plus ⅛ tsp fine sea salt MUFFINS ⅓ cup (80 ml) whole milk (or plant milk such as almond milk) 2 tbsp (15 g) poppy seeds 2 tsp (10 ml) vanilla extract 8 tbsp (113 g) unsalted butter, at room temperature ½ cup plus 2 tbsp (130 g) packed organic light brown sugar 2 large eggs, at room temperature ¾ cup (115 g) sweet white rice flour ½ cup (50 g) oat flour ¼ cup plus 2 tbsp (50 g) buckwheat flour 2 tsp (8 g) baking powder ½ tsp fine sea salt 9 oz (252 g) pluots (about 3), ripe but firm (1½ cups [252 g] pluot chunks) Position a rack in the upper third of the oven and preheat to 350°F (175°C). Rub the tops of 2 standard muffin pans with the 1 teaspoon softened butter (this will prevent any overflow from sticking) and line with 14 paper liners. (Alternatively, skip the liners and grease the pans well with softened butter.) To make the streusel, in the bowl of a stand mixer fitted with the paddle attachment, combine the sweet rice, oat and tapioca flours with the rolled oats, brown sugar, poppy seeds, cinnamon, salt and remaining 3 tablespoons (42 g) butter. Mix on medium-low speed until the butter is worked in and the streusel comes together in clumps, about 2 minutes. (Alternatively, rub the butter in with your fingertips.) Scrape the streusel into a small bowl and set aside; no need to wash the mixer bowl. To make the muffins, in a measuring pitcher, stir together the milk, poppy seeds and vanilla and set aside. This will plump up the seeds a bit and draw out their unique flavor. Meanwhile, in the now-empty bowl of the stand mixer (or in a large bowl with a wooden spoon), combine the butter and brown sugar. Beat on medium speed until light and fluffy, 3 minutes, scraping down the sides of the bowl once or twice. Add the eggs one at a time, beating to combine after each addition; the mixture may look broken at this point and that's okay. While the butter does its thing, sift the sweet rice, oat and buckwheat flours with the baking powder and salt into a medium bowl. When the eggs are incorporated into the butter, turn the mixer to low. Add one-third of the flour mixture, mixing to combine, then add half of the milk mixture, mixing to combine. Continue until you've used up all the milk and flour mixtures, scraping down the sides and bottom of the bowl as well as the paddle to make sure the batter is homogenous. To prepare the pluots, use a sharp paring or serrated knife to cut the flesh off of the pits, then into ½- to 1-inch (1.3- to 2.5-cm) chunks; you should have 1½ cups of prepared fruit. Remove the bowl from the mixer and use a flexible spatula to gently fold in the pluot chunks until evenly distributed. Use a tablespoon or spring-loaded ice cream scoop to divide the batter among the muffin cups, filling them nearly to the top and mounding them in the center, and making sure to include some pluot pieces in the last couple of muffins. Sprinkle the streusel over the muffins and press it in slightly. Bake the muffins until the tops are golden and a tester inserted into the center of one comes out clean or with a few moist crumbs, 22–32 minutes. Remove the muffins from the oven and let cool for 10 minutes, then carefully remove from the pans and let cool to warm or room temperature, at least 10 more minutes. Store airtight at room temperature for up to 2 days. ## HUCKLEBERRY BUCKWHEAT CHEESE BLINTZES {BUCKWHEAT, SWEET RICE} My paternal grandmother, whom we called Bubba, made the best cheese blintzes—little parcels of lightly sweetened farmer cheese wrapped in soft crepes and fried in butter, which we would eat with sour cream and applesauce. Not exactly health food. But adding fresh berries and loads of buckwheat flour, and frying them in the thinnest layer of ghee, helps lighten these up. A drizzle of maple syrup is just the thing to add earthy sweetness, and I confess to liking a dollop of sour cream or Greek yogurt to up the creamy factor. Ghee is your friend for frying, as it has a high smoke point and warm flavor. Huckleberries, with their intense flavor and low water content, make an ideal filling, though wild blueberries work beautifully (and are often available frozen) as do cultivated blueberries. Assembled blintzes freeze brilliantly; to serve, just fry them on both sides over low heat until golden and heated through. Look for farmer cheese that's like a firmer version of ricotta. MAKES ABOUT 12 BLINTZES, 4–6 SERVINGS BUCKWHEAT CREPES 1 cup (235 ml) whole milk 4 large eggs 1 tbsp (10 g) organic granulated cane sugar ¼ tsp fine sea salt ¾ cup (105 g) buckwheat flour ¼ cup (35 g) sweet white rice flour 1 tbsp (14 g) melted butter FILLING 1 lb (450 g) farmer cheese 1½ tbsp (20 g) organic granulated cane sugar 1 egg yolk Big pinch of salt ( tsp) 1 tbsp (14 g) melted butter ¾ cup (100 g) fresh or frozen huckleberries (or wild blueberries) FOR FRYING AND SERVING 2 tbsp (28 g) ghee or unsalted butter Extra huckleberries Maple syrup Greek yogurt, sour cream or Crème Fraîche To make the crepes, in a blender, combine the milk, eggs, sugar, salt, buckwheat flour and sweet rice flour. Blend on low to combine, scraping down the sides of the blender once or twice. With the motor running, blend in the melted butter. Pour the batter into a measuring pitcher or bowl and stick a spatula in there; you'll need to stir the batter occasionally while cooking the crepes in order to incorporate the flecks of buckwheat that tend to sink to the bottom. Have a large plate by the stove on which to stack the cooked crepes. To make the filling, in a medium bowl, stir together the cheese, sugar, egg yolk and salt. Quickly stir in the melted butter, then gently fold in the huckleberries. To fry the crepes, heat an 8-inch (20-cm) crepe pan or skillet over medium heat, and use a scrunched-up paper towel to swipe it with a bit of ghee or butter. (Too much butter will cause the batter to slip as you swirl it to coat the pan.) Pour a scant ¼ cup (59 ml) of batter onto the crepe pan, tilting, swirling and shuffling to coat it evenly with a thin layer of batter. Cook the crepe until just barely set on top, 30–60 seconds. Use a thin, metal spatula to ease the edges of the crepe up off the pan, then slide (or drag) the crepe onto the plate, cooked side down. It should be barely colored on the bottom. Continue cooking the crepes, swiping the pan with a bit of butter between crepes, and adjusting the heat so that the pan doesn't burn but the crepes cook in 30–60 seconds each. To fill the blintzes, place 2½ tablespoons (38 g) of cheese filling on the lower third of a crepe and fold the bottom up over the cheese. Fold the sides in so that they just touch, then roll the blintz up from the filled end up to form a parcel—it should look something like an egg roll. Stack the filled blintzes on a plate. When the blintzes have all been filled, melt some butter or ghee in your crepe pan over medium heat (or use another large skillet if you like). (Preheat your oven to 200°F [100°C] if you're making these for a crowd and need to keep them warm while you fry the next batch.) Fry the blintzes until they are golden on the bottom, about 2 minutes, then flip and brown on the second side, another 2 minutes. Have the heat low enough so that the filling heats through without the bottoms burning. Serve the warm blintzes with the berries, maple syrup and a dollop of yogurt. Extra blintzes keep brilliantly, fried or unfried, in the refrigerator for up to 3 days or in the freezer for up to 2 months. ## APPLE, BUCKWHEAT AND GRUYÈRE PUFF PANCAKE {SWEET RICE, BUCKWHEAT, OAT} My sole New Year's resolution for the past five years has been "eat more dessert," specifically, dessert made by someone else. I tend to eschew sweets when out and about, knowing there are usually goodies waiting for us back at home. But tasting what other cooks get up to in the kitchen is endlessly inspiring, thus the resolution. One January 1st, my request was answered. A few musician friends came over to welcome the New Year with tunes and comestibles. My friend's mother, Barbara, who was visiting from the Provençal village in which she lives, brought over a tub of buttery, caramelized apples and a container of batter, which she put together and popped into the oven. We feasted on apple puff pancake laced with cinnamon and lemon, and Barbara kindly shared her recipe with me. Barbara often adds slices of Brie cheese to her pancake, which is pure genius. Here, I've adapted Barbara's recipe to work with alternative grains—oat flour for starchy sweetness, buckwheat for nutty flavor, and sweet rice for binding power—and added some cave-aged Gruyère (though sharp Cheddar or Brie work beautifully, too). The salty cheese sets off the sweet, caramelized apples brightened with lemon, the batter puffs up, forming a crackly crust that flakes as it cools, and if you're like us, you'll be stealing into the kitchen to sneak slices from the pan at all hours of the day—and year. MAKES 4 SERVINGS APPLES AND CHEESE 1 lb (450 g) tart, firm baking apples (such as Granny Smith; about 2 large or 4 medium) 4 tbsp (56 g) unsalted butter ¼ cup (25 g) organic granulated cane sugar 2 tbsp (30 ml) lemon juice 1 tsp ground cinnamon **⅛** tsp fine sea salt 3–4 oz (56–84 g) thinly sliced cave-aged Gruyère cheese (or sharp Cheddar or Brie) BATTER ¼ cup (35 g) sweet white rice flour ¼ cup (30 g) buckwheat flour ¼ cup (25 g) GF oat flour 1 tbsp (12 g) organic granulated cane sugar ½ tsp fine sea salt 4 large eggs 1 cup (235 ml) whole milk FOR SERVING (OPTIONAL) Maple syrup or powdered sugar Position a rack in the upper third of the oven and preheat to 425°F (220°C). To prepare the apples, peel them, cut their flesh off the core, and slice them about ⅜-inch (1-cm) thick; you should have about 2¾ cups (412 g). Melt the butter in a 10-inch (25-cm) ovenproof skillet (such as a well-seasoned cast-iron skillet) over medium-high heat. Add the apples and sprinkle with the sugar, lemon juice, cinnamon and salt. Cook, turning the apples occasionally with a metal spatula, until the apples are tender and their juices thicken, 8–10 minutes, decreasing the heat as needed. Meanwhile, to make the batter, sift the sweet rice, buckwheat and oat flours with the sugar and salt into a large bowl. Whisk in the eggs 2 at a time, whisking until smooth, then gradually whisk in the milk to form a loose batter. If the batter is lumpy, strain it through a medium-mesh sieve. (Alternatively, throw everything in a blender and blend until smooth, about 1 minute.) When the apples are cooked, give them a final stir, top them with the sliced cheese, and pour the batter over the top. Immediately transfer to the oven and bake until the pancake is puffed, golden and cooked through, 18–28 minutes, decreasing the oven temperature if the sides are browning too quickly and rotating the pancake halfway through for even baking. Remove from the oven, cut into wedges, and serve hot or warm with maple syrup, if desired. Leftovers keep well, refrigerated airtight, for up to 2 days. Reheat in a 350°F (175°C) oven for best results. NOTE: For a strictly sweet version, leave off the cheese and serve the pancake sprinkled with powdered sugar or drizzled with maple syrup and topped with a plume of Whipped Cream. ## PUMPKIN CRANBERRY NUT AND SEED LOAF {OATS} This loaf was inspired by the Adventure Bread made at Josey Baker's The Mill in San Francisco, home of the infamous four-dollar toast. His adventure bread is packed with nuts, seeds and oats, held together by psyllium husk, chia seeds and flaxseeds, moistened with water, vegetable oil and maple syrup. Once you've sourced the ingredients (available in bulk at most health food stores), the bread is incredibly simple to mix up and bake. A loaf keeps, refrigerated, for up to 2 weeks. At first glance, the recipe seems impossible, as though it shouldn't work; but mix it all up, let it rest for a few hours, and bake it and you'll soon find yourself as hooked as I am. I've updated Baker's loaf with the fall flavors of pumpkin, cranberries, walnuts and pepitas, and a hint of warming spices. Slices are heavenly when toasted and spread with whipped cream cheese, but the bread isn't so sweet that you couldn't use it to make toasted cheese sandwiches or to wrap around slices of leftover Thanksgiving turkey. MAKES ONE 9 BY 5-INCH (23 BY 13–CM) LOAF 1½ cups (175 g) raw walnut halves 1 cup (140 g) raw pumpkin seeds (pepitas) 2¾ cups (250 g) GF old-fashioned rolled oats 1 cup (145 g) dried cranberries ½ cup (90 g) flaxseeds ⅓ cup (30 g) psyllium husks ¼ cup (40 g) chia seeds 2 tsp (9 g) fine sea salt ¾ tsp ground cinnamon ½ tsp freshly grated nutmeg 1 (15-oz [425-g]) can unsweetened pumpkin puree 1 cup (235 ml) water ¼ cup (60 ml) maple syrup ¼ cup (60 ml) sunflower oil (or light olive oil) Position a rack in the center of the oven and preheat to 325°F (165°C). Spread the walnuts and pumpkin seeds on a small, rimmed baking sheet and toast until golden and fragrant, shuffling the pan occasionally, 10–15 minutes. Remove from the oven. Meanwhile, in a large bowl, stir together the oats, cranberries, flaxseeds, psyllium husks, chia seeds, salt, cinnamon and nutmeg to combine. Stir in the hot walnuts and pumpkin seeds. Add the pumpkin puree, water, maple syrup and sunflower oil and stir well with a sturdy wooden spoon or your hands to make sure the "dough" is moistened through and evenly distributed. Line a 9 by 5–inch (23 by 13–cm) loaf pan on all sides with parchment paper and scrape the dough into the prepared pan, packing it in and rounding it slightly on top; it won't rise in the oven. Cover tightly with a piece of plastic wrap and let sit at room temperature for 2–8 hours. When ready to bake, preheat the oven to 400°F (200°C). Bake the loaf for 1 hour and 15 minutes; it will be deeply bronzed on top and feel firm to the touch. Let cool completely, at least 2 hours. The bread is best sliced fairly thinly and toasted well. It will keep, refrigerated airtight, for up to 2 weeks. ## TART CHERRY, CHOCOLATE AND HEMPSEED NO-BAKE OAT BARS {VEGAN} {OATS} My mom, who's a bit of a health nut (understatement), used to disparage an ex by saying, "He ate COOKIES for BREAKFAST!" as if there were no worse crime. Call me rebellious, but I'm a fan of cookies for breakfast, particularly if there's chocolate involved, and that's essentially what these no-bake granola bars are. I always assumed no-bake bars were inferior to the baked variety, but Laura of the blog Tutti Dolci changed my mind when she mixed hers up with plenty of almond butter and topped them with a smear of salted chocolate. I like mine with a dose of dried tart cherries, buttery hempseeds and crunchy cacao nibs, though feel free to switch up the nuts, seeds and fruit as you see fit; the recipe is quite forgiving. If you're anything like me, you'll find yourself dipping into your stash... any time of day. MAKES 16 SMALL BUT RICH BARS BARS 1 cup (235 ml) smooth, unsalted almond butter (preferably at room temperature, stirred if separated) ½ cup (120 ml) maple syrup 2 tsp (10 ml) vanilla extract ¼ tsp fine sea salt 2½ cups (225 g) GF old-fashioned rolled oats ½ cup (55 g) unblanched sliced almonds ½ cup (70 g) dried tart cherries (or cranberries) ¼ cup (30 g) hulled hempseeds ¼ cup (30 g) cacao nibs TOPPING 1 tbsp (15 ml) extra-virgin coconut oil ¾ cup (130 g) chopped bittersweet chocolate Flaky salt such as Maldon, cacao nibs and hempseeds, for sprinkling To make the bars, in a large bowl, whisk together the almond butter, maple syrup, vanilla and salt until smooth. Set aside. Place the oats in a wide, heavy-bottomed skillet set over low heat and toast until golden and fragrant, 8–12 minutes, stirring frequently. Pour the warm oats into the bowl with the almond butter mixture. Wipe out the skillet and add the almonds, toasting over low heat and stirring frequently until golden and fragrant, 4–6 minutes. Add the almonds to the bowl with the oats, then add the dried cherries, hempseeds and cacao nibs. Use a flexible spatula to fold the mixture until well combined. Let sit until cool enough to handle, 5–10 minutes. Line an 8-inch (20-cm) square pan with a sling of parchment paper, leaving an overhang on each side to use as handles. Scrape in the oat mixture and use damp hands to pack the mixture firmly into an even layer. To make the topping, place the coconut oil and chocolate in a small saucepan and set it over the lowest possible heat, stirring constantly with a heatproof silicone spatula until the chocolate is melted and smooth. Pour the melted chocolate over the bars, and tilt the pan gently to coat it in an even layer; there will be just enough. Sprinkle the top with a few small pinches of flaky salt and several large pinches of cacao nibs and hempseeds. Chill the bars until firm, at least 2 hours and up to 1 day. Loosen the edges of the bar with a small, offset spatula or the tip of a knife, and use the parchment handles to lift it up and out of the pan and onto a cutting board. Use a large, sharp chef's knife to cut 16 squares. Store the bars airtight in the refrigerator; they will soften if left at room temperature. They are crispest on the day of making but will keep well for up to 5 days. NOTE: Natural nut butters often come with a slick of oil at the top of the jar, so be sure to give yours a good stir before you get started measuring. ## ROASTED BANANA TEFF SCONES WITH MUSCOVADO SUGAR GLAZE {SWEET RICE, TEFF, OAT} These decadent scones are filled with the malty flavors of teff flour, molasses and roasted banana, with toothsome heft from whole grains and pecans. The scones themselves are minimally sweet to contrast a butterscotch-y muscovado sugar glaze that was inspired by a recipe from the West Oakland brunch spot Brown Sugar Kitchen. MAKES 8 SCONES ROASTED BANANAS AND PECANS 3 large bananas (1¼ lb [570 g] in peel) 2 tbsp (25 g) packed light or dark muscovado sugar (or organic brown sugar) 1 tbsp (14 g) unsalted butter ¾ cup (90 g) raw pecan halves SCONES 1 cup (155 g) sweet white rice flour ¾ cup (100 g) teff flour, plus more for shaping the scones ¼ cup (25 g) GF oat flour 2 tbsp (25 g) packed light or dark muscovado sugar (or organic brown sugar) 1 tbsp (15 g) baking powder ½ tsp fine sea salt 5 tbsp (70 g) cold, unsalted butter, sliced ½ cup (120 ml) cold, heavy cream, plus another 1–7 tbsp (15–105 ml), as needed 1 large egg 1 tsp vanilla extract GLAZE ¼ cup (25 g) organic powdered sugar 3 tbsp (45 ml) heavy cream 1 tbsp (14 g) unsalted butter ¼ cup (50 g) packed light or dark muscovado sugar (or organic brown sugar) ½ tsp vanilla extract ⅛ tsp fine sea salt Position a rack in the upper third of the oven and preheat to 400°F (200°C). To prepare the bananas and pecans, peel the bananas, slice them into ½-inch (1.3-cm) rounds, and place them on a small baking sheet lined with parchment paper for easy cleanup. Sprinkle with the muscovado sugar and dot with the butter. Roast in the oven until the bananas are golden and tender, 20–30 minutes, flipping them once halfway through roasting and being gentle with them so they stay intact. Remove from the oven, immediately scrape into a shallow, heatproof bowl, and refrigerate until completely chilled, at least 20 minutes. Lower the oven temperature to 350°F (175°C). Spread the pecans on a small, rimmed baking sheet and toast in the oven until fragrant and crisp, 8–10 minutes. Let cool completely, then break up into rough quarters. Meanwhile, to make the scones, in a large bowl, combine the sweet rice, teff and oat flours with 2 tablespoons (25 g) muscovado sugar, baking powder and salt. Add the butter and blend with a pastry cutter or your fingertips until the butter is broken down into the size of small peas. Chill this mixture until cold, 15–30 minutes. In a measuring pitcher, whisk together the ½ cup (120 ml) cream, egg and vanilla and refrigerate until needed. Increase the oven temperature to 425°F (220°C). Stack a rimmed baking sheet atop a second rimmed baking sheet and line with parchment paper (this will keep the bottoms from over-browning). Add the cooled pecans and bananas to the butter/flour mixture and toss gently to combine. Gradually add the cream mixture, working with a flexible silicone spatula until the dough holds together when you give it a squeeze; you may need to add 1–6 tablespoons (15–90 ml) more cream to properly hydrate the dough. Knead the dough 20 or so times in the bowl to form a ball; unlike wheat scones, these gluten-free scones require more kneading to bring the dough together, so don't be shy. Cover and refrigerate the dough for 15 minutes or up to several hours. Place the dough on a board dusted lightly with teff flour. Dust the top of the dough round lightly with more teff flour, and use clean, dry hands to pat it into a 7-inch (18-cm) round, 1¼ inches (3 cm) high. Use a sharp chef's knife to cut the round into 8 wedges, and use a thin metal spatula or bench scraper to transfer the scones to the lined baking sheet, spacing them 3 inches (7 cm) apart. Brush the tops of the scones with 1 tablespoon (15 ml) cream. Bake the scones until deeply golden and firm to the touch, 18–25 minutes. Remove from the oven and let cool until barely warm; they are still cooking from residual heat. While the scones bake, make the glaze. Sift the powdered sugar into a small bowl and set aside. In a small saucepan placed over medium-low heat, melt together the cream, butter, muscovado sugar, vanilla and salt to dissolve the sugar, stirring occasionally, 3 minutes. Pour the hot cream mixture into the powdered sugar and whisk smooth. Let cool to a spreadable consistency, 30–60 minutes. Spoon and spread the glaze over the cooled scones and let it set for 20 minutes or so to firm. These are the best the day of baking, but extras keep for 1–2 days. ## MAPLE ORANGE AMARANTH GRANOLA {OATS, AMARANTH} Homemade granola is worlds away from the store-bought stuff; even expensive brands tend to taste stale and rancid compared to fresh-baked. This granola tastes like a big, crunchy oatmeal cookie studded with bits of crispy popped amaranth that gives the granola a toasty flavor reminiscent of popcorn. A hot skillet and amaranth seeds are all you'll need to make a bowl of tiny, popped grains; these tend to burn easily, so have extra on hand just in case. The maple, orange and vanilla create a bright, floral flavor not unlike the honey that was traditionally mixed with amaranth by the ancient Aztecs for use in religious rituals. But maple keeps the granola crisper than does honey, which is hygroscopic (which means that it grabs moisture from out of the air), thus maple is a better choice for granola. Either way, a bowl of this crunchy cereal topped with fresh fruit and good yogurt or almond milk is a religious experience. You'll need two rimmed baking sheets that stack and a couple of pieces of parchment paper to bake this granola. Spreading the uncooked granola into the pan in a thin layer, then covering it with parchment and a second sheet pan, eliminates the need to stir the granola as it bakes, and it ensures fat clusters that clump, almost like a thin granola bar. The salt level here seems high, but it ensures full-flavored granola. Do be sure to use fine sea salt or kosher salt, not table salt or an unrefined salt with lots of ocean flavor. And do be sure to give the raw granola a good stir to evenly distribute the salt. MAKES ABOUT 4 CUPS (600 G) 6 tbsp (70 g) whole, raw amaranth seeds 2½ cups (270 g) GF old-fashioned rolled oats 1 cup (110 g) unblanched, sliced almonds ¼ cup (40 g) maple sugar (or packed organic light brown sugar) ¼ cup plus 2 tbsp (90 ml) maple syrup ¼ cup plus 2 tbsp (85 g) melted, unsalted butter ¾ tsp fine sea salt (not table salt) 1 tsp vanilla extract Finely grated zest from 1 large orange Position a rack in the center of the oven and preheat to 325°F (165°C). Heat a medium, heavy-bottomed skillet over medium heat until very hot (I use an 8-inch [20-cm] cast-iron skillet). Add 2 teaspoons (23 g) of the amaranth seeds and shuffle the pan so they're in a single layer; they should begin popping immediately. Shake the pan frequently, every few seconds, and keep the amaranth in a single layer, until about half of the seeds have popped and the rest are golden in color. Tip these into a large bowl. Repeat until you've popped all the amaranth. To the bowl of popped amaranth, add the oats, almonds, maple sugar, maple syrup, melted butter, salt, vanilla and orange zest. Stir very well to combine, making sure to evenly distribute the salt and amaranth seeds. Scrape the mixture onto the lined baking sheet, and spread it into a thin sheet. Ideally, the edges will be slightly thicker than the center, as they will bake faster. Lay the second piece of parchment over the granola, and place the second sheet pan on top, right side up, making a little granola sandwich. Slide the whole thing into the oven and bake for 20 minutes. Rotate and continue baking for 10–20 minutes for a total of 30–40 minutes, peeking under the parchment to make sure the edges aren't burning, until the granola is a rich golden brown. It will still be soft, but should crisp up as it cools. If the granola is still soft after cooling, break it up and return it, uncovered, to a low oven (around 150°F [65°C]) and let it dry out for 20 minutes or so. Let the granola cool completely in the sheet pan sandwich, 1–2 hours, then break up into large sheets or clumps and store in an airtight container for up to 1 month. NOTE: To make this vegan, trade the melted butter for 5 tablespoons (75 ml) sunflower oil, melted coconut oil or light olive oil. # CAKE Alternative flours have the power to create cakes full of moisture and tenderness that wheat-based cakes can only dream of. Here, there are none of the pitfalls of all-purpose flour, which can toughen when overworked and obliterate flavors with bland starches. From rustic skillet cakes to refined roulades, the cakes in this chapter explode with the tastes of whole grains, natural sweeteners and peak-of-season produce. Liqueurs, creams, herbs, spices and compotes build layers, making each cake well worth its calories in gustatory pleasure. Here you'll find a cake for every occasion. There are Bundt cakes, rolled cakes, upside-down cakes and layer cakes. There are spring berries Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze, summer stone fruit Chai-Spiced Nectarine Skillet Cake, fall pomes Chestnut Roulade Cake with Rum, Mascarpone and Roasted Pears, and winter citrus Petite Blood Orange Cornmeal Upside-Down Cake. Vanilla cupcakes get an update from millet and oat flours. Sorghum flour adds textural interest to a chocolate zucchini cake slathered in cream cheese frosting laced with grass-green matcha. Cozy up with a cup of tea and an olive oil pear cake studded with chocolate, rosemary and flaky salt for an eye-opening pick-me-up. And for special occasions, turn to a twist on a berry layer cake topped with mascarpone, or a spiced persimmon number slathered with whiskey cream cheese frosting. ## VANILLA CHIFFON CAKE {SWEET RICE, MILLET, OAT} During my stint at pastry school, we spent what felt like an inordinate amount of time on cakes. Genoise, chiffon, angel food, white cakes, yellow cakes... they all tasted bland and boring to me. And they're supposed to. These light, spongy cakes are designed to soak up flavors from other ingredients, making the possibilities endless. I find chiffon to be the easiest and most foolproof, with a moist, springy crumb that gets a double lift from baking powder and whipped egg whites. Here, millet and oat flours add their nutty, buttery flavors with subtle flecks of grain, while sweet rice flour helps maintain an airy crumb that no one would EVER guess was gluten-free. Sunflower oil gives it a slightly warm, clean flavor along with a good dose of vanilla. You might think that being made with vegetable oil would put chiffon at a disadvantage, but au contraire: unlike butter-based cakes, chiffon stays soft even when chilled, making it ideal for cream-filled cakes and custards that need refrigeration. Unlike the refined wheat cakes from pastry school, slices of this version are tasty enough to serve on their own alongside mugs of tea or coffee, dusted with powdered sugar, or dolloped with whipped cream and fresh berries. For special occasions, it can be sliced into thirds horizontally, brushed with liqueurs or syrups, and layered with favorite fillings or frostings. Cut it into strips, soak it with coffee-nocino syrup and layer it with whipped mascarpone and shaved chocolate for an easy tiramisù. In slightly different configurations, it becomes a base for rolled cakes filled with jam, berries or rhubarb preserves, a boozy chestnut-pear roulade, a bright citrus trifle and a killer tres leches cake doused with rum and smothered in fresh mango. MAKES ONE 8-INCH (20-CM) ROUND CAKE ¼ cup (60 ml) sunflower oil (or other neutral oil) ¼ cup plus 2 tbsp (90 ml) water 3 large egg yolks 1 tsp vanilla extract ½ cup plus 2 tbsp (120 g) organic granulated cane sugar ¼ cup plus 2 tbsp (55 g) sweet white rice flour ¼ cup plus 2 tbsp (50 g) millet flour ¼ cup plus 2 tbsp (40 g) oat flour 1¼ tsp (6 g) baking powder ½ tsp fine sea salt 5 large egg whites (½ cup plus 2 tbsp [150 ml]), at room temperature ¼ tsp cream of tartar Position a rack in the center of the oven and preheat to 325°F (165°C). Line an ungreased 8-inch (20-cm) round cake pan with a piece of parchment paper cut to fit. In a large bowl, whisk together the oil, water, egg yolks and vanilla, then whisk in the ½ cup (100 g) sugar. Place a strainer over the bowl and sift the sweet rice, millet and oat flours with the baking powder and salt directly into the yolk mixture, adding back any bits left behind in the strainer. Whisk until very smooth. In the clean, dry bowl of a stand mixer fitted with the whip attachment, whip the egg whites with the cream of tartar on medium-high speed until soft peaks form. Slowly add the remaining 2 tablespoons (20 g) sugar and whip until the whites are glossy and just hold a firm peak when lifted from the bowl, 1–3 more minutes. Use a flexible silicone spatula to fold one-third of the whites into the batter, then gently fold in the remaining whites until just combined and no streaks remain. Immediately pour the batter into the prepared pan and quickly but gently use an offset spatula to spread the batter into a thin, even layer. Transfer to the oven and bake until the cake is golden, springs back to the touch and a toothpick inserted near the center comes out clean, 40–50 minutes. Remove to a rack and let cool completely in the pan. Loosen the edges with a thin knife or offset spatula, and invert the cake onto a rack or board. Peel away the parchment paper. The cake can be made a day or two in advance and stored airtight at room temperature until needed. VARIATIONS CITRUS CHIFFON CAKE Use this as the base for the Citrus Trifle with Lillet Sabayon, or serve slices dressed up with fresh berries and whipped cream and dusted with powdered sugar for an elegant teatime treat. Place the ½ cup (100 g) sugar in a large bowl. Add the finely grated zest from 1 Meyer lemon, 1 blood orange (or small regular orange) and 1 tangerine and rub with your fingertips until the sugar feels moist. Proceed with the recipe, omitting the vanilla extract. COCONUT FLOUR CHIFFON CAKE Coconut flour makes a sweet, springy cake with a touch of texture. It's super absorbent, hence the higher water content of this cake. To make this into a Triple Coconut Rum "Tres Leches" Cake with Mango and Lime, bake the cake in an 8- or 9-inch (20- or 23-cm) square baking dish with 2-inch (5-cm) sides lined with parchment paper on the bottom only until it springs back to the touch and a tester inserted into the center comes out clean, 40–50 minutes, and proceed with the recipe here. Increase the water to ¾ cup (175 ml). Omit the flours and make the cake with ⅓ cup (50 g) sweet white rice flour, ⅓ cup (40 g) coconut flour and ¼ cup (30 g) millet flour. NOTE: This cake can also be baked in a 9-inch (23-cm) round pan or an 8-inch (20-cm) square pan for thinner cakes. Reduce the baking time as needed. ## ROSY RHUBARB ROULADE CAKE {SWEET RICE, OAT, MILLET} Rolled cakes (sometimes called Swiss rolls or jelly rolls) used to intimidate me until I learned the secret to preventing cracking: roll the warm cake up in a clean tea towel to help set its shape, then spread it with all manner of goodies and roll it up. When sliced, the pinwheels of color are so pleasing to look at, and it's much easier than making a layer cake. Feel free to go wild with the fillings: brush the cake with liqueur and spread with preserves, whipped cream and chopped fresh fruit. I've included a few favorite variations below. This version gets a rosy filling of pink rhubarb puree. Along with airy sponge cake and rose water–infused crème fraîche, it is the prettiest dessert for a Mother's Day brunch, springtime birthday or high tea. MAKES ONE 12-INCH (30-CM) LONG ROLLED CAKE, 10–12 SERVINGS ROLLED CHIFFON CAKE ¼ cup (60 ml) sunflower oil (or other neutral oil) ¼ cup plus 2 tbsp (90 ml) water 3 large egg yolks 1 tsp vanilla extract ½ cup plus 2 tbsp (120 g) organic granulated cane sugar ¼ cup plus 2 tbsp (55 g) sweet white rice flour ¼ cup plus 2 tbsp (40 g) oat flour ¼ cup (40 g) millet flour 2 tbsp (11 g) tapioca flour 1¼ tsp (6 g) baking powder ½ tsp fine sea salt 5 large egg whites (½ cup plus 2 tbsp [150 ml]), at room temperature ¼ tsp cream of tartar ¼ cup (25 g) powdered sugar FILLING ⅓ cup (80 ml) Crème Fraîche ¼ cup (60 ml) heavy whipping cream Seeds from ½ vanilla bean (or ½ tsp vanilla extract) 1 tbsp (12 g) organic granulated cane sugar ½ tsp rose water (or more to taste) 1¼ cups (297 ml) Rhubarb Puree, chilled Powdered sugar, for dusting To make the cake, position a rack in the center of the oven and preheat to 325°F (165°C). Line a 12 by 17–inch (30 by 43–cm) ungreased rimmed baking sheet with a piece of parchment paper cut to fit. In a large bowl, whisk together the oil, water, egg yolks and vanilla, then whisk in the ½ cup (100 g) sugar. Place a strainer over the bowl and sift the sweet rice, oat, millet and tapioca flours with the baking powder and salt directly into the yolk mixture, adding back any bits left behind in the strainer. Whisk until very smooth. In the clean, dry bowl of a stand mixer fitted with the whip attachment, whip the egg whites with the cream of tartar on medium-high speed until soft peaks form. Slowly add the remaining 2 tablespoons (20 g) sugar and whip until the whites are glossy and just hold a firm peak when lifted from the bowl, 1–3 more minutes. Use a flexible silicone spatula to fold one-third of the whites into the batter to lighten it, then gently fold in the remaining whites until just combined and no streaks remain. Immediately pour the batter onto the prepared baking sheet, and quickly but gently use an offset spatula to spread the batter into a thin, even layer. Rap the pan on the counter once or twice to pop any large air bubbles. Transfer to the oven and bake until the cake is golden on top, pulls away from the sides of the pan and feels fairly firm when you press the top gently with the pads of your fingers, 18–22 minutes. Working quickly, dust the top of the cake with the powdered sugar and loosen it from the sides of the pan using a small offset spatula or knife. Place a large, clean kitchen towel over the cake and top with a second baking sheet or large cutting board. Wearing oven mitts, grab the whole thing and flip it over. Remove the hot pan and carefully peel away the parchment paper. Trim away ¼ inch (6 mm) from each edge of the cake, and roll up the cake with the towel; this will help set the shape and the steam will keep it moist and pliant. You can either roll the cake from a short end for a fatter roll (as shown here) or from a long end for a skinnier roll. Either way, let the cake hang out in its towel roll until mostly cool, about 1 hour. To make the filling, in the bowl of a stand mixer fitted with the whip attachment, combine the crème fraîche, heavy cream, vanilla seeds, sugar and rose water. Whip on medium-high speed until the mixture holds firm peaks. (Err on the side of overwhipping so the cake will hold its shape when rolled.) Taste, adding more rose water if you like. Cover and chill until needed. Leaving a 1-inch (2.5-cm) border, spread the rhubarb puree evenly over the cake. Dollop the whipped crème fraîche over the rhubarb and spread into an even layer. Re-roll the cake up into a log the same way it was rolled before (but without the towel this time), ending with the seam down. Use a wide spatula or two to transfer the cake to a board. For the cleanest slices, cover the cake and chill until firm, at least 30 minutes and up to 1 day. When ready to serve, dust the cake with a little more powdered sugar and slice into rounds. The cake will keep, refrigerated airtight, for up to 3 days. VARIATIONS APRICOT CRÈME FRAÎCHE ROULADE Omit the rhubarb puree and spread the cake with 1 cup (235 ml) good apricot jam. Omit the rose water from the whipped crème fraîche and proceed with the recipe. STRAWBERRY ELDERFLOWER ROULADE Elderflower liqueur, such as St-Germain, adds sweetness and nectar-like floral notes to this cake that offsets tangy berries. If you don't have any on hand, use an orange liqueur such as Cointreau in its place, or leave it out altogether. And feel free to use other berries or diced poached quince in place of the strawberries. Omit the rhubarb puree. Hull 2 cups (240 g) ripe strawberries and cut them into a small dice. Whip the cream, omitting the rose water. Brush the cake with ¼ cup (60 ml) elderflower liqueur, spread with the whipped crème fraîche, sprinkle the berries over the cream and roll up. COCONUT CREAM ROULADE {DAIRY-FREE} Omit the cream and crème fraîche. Place a 13.5-ounce (400 ml) can of full-fat coconut milk (such as Thai Kitchen brand) in the refrigerator for 12–24 hours, until solid. Without tipping or shaking the can, remove the lid and scoop the solidified cream at the top into the bowl of a stand mixer fitted with the whip attachment, leaving behind the watery liquid at the bottom of the can. Whip on medium-high speed until thickened, then add 2 tablespoons (12 g) powdered sugar and ½ teaspoon vanilla extract (or a few drops of rose water, to taste) and continue whipping until the mixture holds firm peaks, like whipped cream. You should have about 1 cup (115 g). Use this in place of the whipped cream/crème fraîche in any of the variations. NOTE: This cake base is a variation of the chiffon cake on with a few tweaks to make it conducive to rolling. ## BLUEBERRY LEMON VERBENA BUNDT CAKE WITH VANILLA BEAN GLAZE {SWEET RICE, OAT, MILLET} To me, fresh lemon verbena smells like happiness—bright, citrusy and floral. The leaves make a tasty tisane when brewed in hot water, or they can be added to custards or cocktails. Here, they perfume a buttery pound cake studded with blueberries and a few scrapes of lemon zest. Once you've tried it, you may start noticing it growing in backyards, and sneaking handfuls when no one's looking. But don't let the hard-to-find herb stop you from making this cake; you can leave it out and still have a happy Bundt. Cream cheese is the magic ingredient that makes for a moist pound cake dense enough to keep the berries aloft. Be sure to thoroughly grease the crevices of the Bundt pan with a pastry brush dipped in butter softened to the texture of mayonnaise, and dust it thoroughly with flour, tapping out the excess. This will ensure a Bundt that releases easily from the pan every time. This recipe can also be baked in two standard-size loaf pans lined with parchment. MAKES ONE 10-INCH (25-CM) BUNDT CAKE, 12–16 SERVINGS CAKE 1 cup (226 g) unsalted butter, at room temperature, plus 2 tbsp (30 g) for the pan ¾ cup (85 g) GF oat flour, plus 2 tbsp (25 g) for the pan 6 oz (¾ cup [175 g]) cream cheese, softened 1 cup (210 g) organic granulated cane sugar Finely grated zest from 2 large lemons 4 large eggs, at room temperature 1½ cups (235 g) sweet white rice flour ½ cup (70 g) millet flour ¼ cup (30 g) tapioca flour/starch 1 tbsp (12 g) baking powder 1 tsp fine sea salt 2½ cups (340 g) fresh blueberries ⅓ cup (17 g) chopped fresh lemon verbena leaves GLAZE 1 cup (120 g) powdered sugar Seeds from 1 vanilla bean 2–4 tbsp (30–60 ml) lemon juice (or enough to make a drizzle-able glaze) Tiny lemon verbena leaves and extra blueberries, for garnish (optional) To make the cake, position a rack in the center of the oven and preheat to 350°F (175°C). Use a pastry brush dipped in the 2 tablespoons (30 g) soft butter to grease a 10-cup (10-inch [25-cm]) Bundt pan thoroughly. Sprinkle the pan with 2 tablespoons (25 g) oat flour and tap and shake the pan to coat it evenly, rapping it on the counter to release excess flour. In the bowl of a stand mixer fitted with the paddle attachment (or in a large bowl with your arm and a wooden spoon), cream together the remaining 1 cup (226 g) butter, cream cheese, sugar and lemon zest on medium speed until light and fluffy, 3–4 minutes. Add the eggs one at a time, mixing to combine after each addition, scraping down the sides of the bowl as needed. The mixture may look broken or curdled; this is okay, as it will come together in the next step. Meanwhile, sift together the remaining ¾ cup (85 g) oat, sweet rice, millet and tapioca flours with the baking powder and salt into a medium bowl. With the mixer on low, stir the flour mixture into the butter mixture until just thoroughly combined, scraping down the sides of the bowl as needed. Remove the bowl from the mixer, add the blueberries and lemon verbena, and use a flexible silicone spatula to fold gently to combine, scraping the bottom and sides of the bowl to make sure the batter is homogenous. Scrape the batter into the prepared pan and smooth the top, tapping the pan a few times on the counter to settle it into the pan's crevices and release any large air pockets. Bake the cake until the top is lightly golden and a toothpick inserted near the center comes out clean, or with a few moist crumbs, 55–65 minutes. Let the cake cool slightly, then invert a large plate or platter over the pan, grasp the whole thing and flip it over, tapping it on the counter a few times. The cake should release easily from the pan. Let the cake cool completely. To make the glaze, in a small bowl, whisk together the powdered sugar, vanilla bean seeds and enough lemon juice to make a drizzle-able glaze. Whisk well to eradicate lumps. Use a pastry brush to drizzle and brush the glaze all over the cake. Serve the cake at room temperature, scattered with tiny lemon verbena leaves and extra berries if you like. The cake keeps well, airtight at room temperature, for up to 2 days, or refrigerated for up to a few days (let come to room temperature before eating for best results). ## MESQUITE CHOCOLATE CAKES WITH WHIPPED CRÈME FRAÎCHE AND RASPBERRIES {MESQUITE} These little chocolate cupcakes fall somewhere between a flourless chocolate cake and a more traditional cupcake. Mesquite flour makes the batter sturdier while adding a touch of warm, earthy flavor that underscores the bittersweet chocolate. Topped with whipped crème fraîche and raspberries, they'll win fans at any party or potluck. The cakes are best at room temperature, so assemble them shortly before serving for best results. They are a bit messier to eat than traditional cupcakes, so do hand out napkins. If you don't have mesquite flour on hand, these work well with an equal measure of almond flour. MAKES 10 INDIVIDUAL CAKES CAKES 6 tbsp (85 g) unsalted butter 6 oz (170 g) bittersweet chocolate (60–70% cacao mass), chopped (about 1 cup) ¼ cup plus 2 tbsp (80 g) organic granulated cane sugar ¼ cup plus 2 tbsp (40 g) mesquite flour, sifted ¼ tsp fine sea salt 1 tsp vanilla extract 3 large eggs, at room temperature, separated TOPPING ½ cup (120 ml) Crème Fraîche ⅓ cup (80 ml) heavy cream 1 tbsp (12 g) organic granulated cane sugar ½ tsp vanilla extract 1 pint (~200 g) raspberries, rinsed and dried A handful of cacao nibs (optional, for serving) To make the cakes, position a rack in the center of the oven and preheat to 350°F (175°C). Fill a standard muffin pan with 10 paper liners. In a large heatproof bowl set over a pot of barely simmering water, combine the butter and chocolate. Stir occasionally until the mixture is melted and smooth, 5 minutes. Remove from the heat and whisk in 3 tablespoons (40 g) of the sugar and all of the mesquite flour, salt, vanilla and finally the egg yolks. In the bowl of a stand mixer fitted with the whip attachment, whip the egg whites on medium-high speed until foamy. Slowly sprinkle in the remaining 3 tablespoons (40 g) sugar and continue whipping until the whites hold soft peaks (when you pull the whip out and turn it upside down, the egg whites form a peak that flops over). Be careful not to overwhip the whites or they will be difficult to incorporate into the batter and will make for denser cakes. Stir one-third of the egg whites into the chocolate mixture until just combined, then gently fold in the remaining two-thirds until no streaks remain. Divide the batter among the lined muffin cups, filling them three-fourths of the way to the top. Bake the cakes until puffed and cracked, and a toothpick inserted into the centers comes out with moist crumbs, 20–25 minutes. Let cool completely. The cakes can be made up to 1 or 2 days ahead and stored airtight at room temperature for up to 2 days. To make the topping, combine the crème fraîche, heavy cream, sugar and vanilla extract in the chilled bowl of a stand mixer fitted with the whip attachment. Whip on medium-high speed until the mixture holds firm peaks. Chill until needed. When ready to serve, dollop the cooled cakes with the whipped crème fraîche and top with a handful of raspberries and a few cacao nibs. Serve soon after assembling. NOTE: When baking these, be sure to have your eggs at room temperature; cold eggs can cause the batter to seize and firm up, making it difficult to work with. To quickly warm your eggs, place them, still in their shells, in a bowl of hot tap water for 5 minutes or so. ## VANILLA BUTTER CAKE WITH WHIPPED MASCARPONE AND SUMMER BERRIES {SWEET RICE, OAT, MILLET} This buttery yellow layer cake filled with billows of cream and loads of summer berries is not unlike a giant berry shortcake. Slices always remind me of my dad, who each summer would top store-bought pound cake with whipped cream and ripe strawberries, which he'd toss in a little Triple Sec. Though impressive to look at, it's stupid easy to put together and it tastes even better after a day in the fridge. Mascarpone adds body to the whipped cream and helps it hold its shape, and a double dose of vanilla (bean and extract) adds sweetness to a neutral cake base made soft and springy from sweet rice, oat and millet flours. Serve this cake at cool room temperature so the butter in the cake softens up but the cream stays firm. And if you want to try this Dad-style, brush the cake layers with a bit of Triple Sec or another GF orange liqueur before layering with the berries. MAKES ONE 8-INCH (20-CM) 2-LAYER CAKE, ABOUT 10 SERVINGS CAKE 8 tbsp (113 g) unsalted butter, at room temperature, plus 1 tsp for the pan ¾ cup (150 g) organic granulated cane sugar Seeds from 1 vanilla bean 2 large eggs, at room temperature ¾ cup (105 g) sweet white rice flour ½ cup (50 g) GF oat flour ¼ cup plus 2 tbsp (45 g) millet flour 1½ tsp (6 g) baking powder ½ tsp baking soda ½ tsp fine sea salt ½ cup (120 ml) well-shaken buttermilk 1 tsp vanilla extract WHIPPED MASCARPONE AND BERRIES ¾ cup (170 g) mascarpone 1 cup (235 ml) heavy whipping cream Seeds from ½ vanilla bean, split lengthwise and scraped 2 tbsp (25 g) organic granulated cane sugar 5 cups (500 g) mixed summer berries (strawberries, raspberries, blackberries and blueberries) Honey or sugar for the berries (optional, if berries are tart) To make the cake, position a rack in the center of the oven and preheat to 325°F (165°C). Grease an 8-inch (20-cm) round cake pan with 2-inch (5-cm) sides with the 1 teaspoon softened butter and line the bottom with a round of parchment paper cut to fit. In the bowl of a stand mixer fitted with the paddle attachment, beat the remaining 8 tablespoons (113 g) butter, sugar and vanilla seeds together on medium speed until light and fluffy, 2–3 minutes. Add the eggs one at a time, beating well after each addition, and scraping down the sides of the bowl as needed. In a medium-sized bowl, sift together the sweet rice, oat and millet flours with the baking powder, baking soda and salt. Add half of the flour mixture to the butter mixture and beat on low speed until just combined. Beat in the buttermilk and vanilla, mixing until just combined, then beat in the remaining flour mixture, beating until well combined, scraping down the sides of the bowl once or twice. Remove the bowl from the mixer and stir with a flexible silicone spatula to make sure the batter is homogenous. Scrape the batter into the prepared pan and spread into an even layer. Bake the cake until the top springs back to the touch and a toothpick inserted into the center comes out clean or with a few moist crumbs, 35–45 minutes. Remove from the oven and let cool completely, 1–2 hours. To make the whipped mascarpone, place the mascarpone, heavy cream, vanilla bean seeds and sugar in the bowl of a stand mixer fitted with the whip attachment (or use a large bowl and a handheld whisk or hand blender). Beat the mixture on low speed until combined, then increase to medium and whip until the mixture holds firm peaks, a minute or so. If you overwhip and the mixture becomes grainy, you can rescue it by folding in several more tablespoons of heavy cream until the mixture loosens up. Cover and chill until needed, up to 1 day. To assemble the cake, rinse the berries and let them dry on paper towels. Hull and quarter the strawberries, and halve the blackberries if large. Turn the cooled cake out of its pan and peel away the parchment paper. Place the cake on a cutting board and use a large serrated knife to slice the cake in half horizontally, making the halves as even as possible. Place the bottom half cut side up on a serving plate or stand. Spread the cake with half of the whipped mascarpone and top with 2 cups (200 g) of the berries, pressing the berries into the cream slightly. If the berries are tart, drizzle with a bit of honey or sugar. Top with the remaining cake half, cut side down, and spread with the remaining mascarpone and berries, mounding the berries on top. Sprinkle with honey or sugar if you like. Serve the cake immediately, or chill for up to 1 day. ## CHOCOLATE ZUCCHINI CAKE WITH MATCHA CREAM CHEESE FROSTING {SORGHUM, SWEET RICE} Perhaps it's all the sugar I eat as a professional baker, but I love going to the dentist. And while it may seem wrong, I often show up with a box of baked goods in tow. Some dentists might give you a talking-to for tempting them with evil sugar, but mine has a wicked sweet tooth. When I proffered a box of this cake on my last visit, she called all the hygienists into her office for a slice, and one after another they trooped into the waiting room with brown crumbs about the lips to profess their love for this cake. I can't blame them. This tastes a bit like a classic chocolate cake, but with a fudgy texture from zucchini and sweet rice and sorghum flours and an eye-opening finish of matcha cream cheese frosting. It's sure to win you fans in the unlikeliest of places. Be sure to measure the zucchini by weight or volume; they can vary greatly in size and too much zucchini will lead to a soggy cake. For cupcakes, divide the batter among 12 paper-lined muffin cups and bake for 18–22 minutes. Do feel free to leave the matcha out of the frosting if making this for kiddos, or decrease the amount if you're not accustomed to its assertive flavor. MAKES ONE 8-INCH (20-CM) SQUARE CAKE, 9 LARGE SERVINGS OR 16 SMALL SERVINGS CAKE 8 oz (225 g) zucchini (about 2 small) 1 cup (215 g) packed organic light brown sugar 2 large eggs ¼ cup (60 ml) light olive oil or sunflower oil ¼ cup (60 ml) whole milk 1 tsp vanilla extract ¾ cup (60 g) Dutch-process cocoa powder ¾ cup plus 2 tbsp (115 g) sorghum flour ¼ cup (35 g) sweet white rice flour 2 tsp (8 g) baking powder ½ tsp fine sea salt FROSTING 6 oz (¾ cup [170 g]) cream cheese, softened 3 tbsp (42 g) unsalted butter, softened ¾ cup (85 g) powdered sugar 1 tbsp (5 g) good-quality culinary-grade matcha ⅛ tsp fine sea salt To make the cake, position a rack in the center of the oven and preheat to 350°F (175°C). Line an 8-inch (20-cm) square baking pan with 2 crisscrossing pieces of parchment paper, leaving an overhang on each side. (Alternatively, grease the pan with 1 teaspoon softened unsalted butter.) Trim the zucchini and grate them on the medium holes of a box grater (the ones that measure ⅛ inch [2–3 mm]); you should have 1 cup (about 200 g) packed grated zucchini. Place the grated zucchini in a large bowl and add the brown sugar, eggs, oil, milk and vanilla extract, stirring to combine well. Place a strainer over the bowl and sift the cocoa powder, sorghum flour, sweet rice flour, baking powder and salt into the zucchini mixture, pushing through any clumps, then stir well to combine. Scrape the batter into the prepared pan and smooth into an even layer. Bake the cake until a toothpick inserted near the center comes out with moist crumbs, 45–55 minutes. Let cool completely, at least 30 minutes and up to 1 day. The cake can be wrapped and stored for up to 2 days. To make the frosting, combine the cream cheese, butter, powdered sugar, matcha powder and salt in the bowl of a stand mixer fitted with the paddle attachment. Beat the frosting on low speed, increasing to medium speed until smooth, light and fluffy, 2–3 minutes, scraping down the sides of the bowl occasionally. Place the cake on a serving board or platter and use a small, offset spatula or butter knife to spread the frosting over the top and sides, making swirls as you go. The cake can sit at cool room temperature for up to 2 hours. If not serving right away, chill for up to 1 day but bring back to room temperature before serving to soften the frosting. ## CHAI-SPICED NECTARINE SKILLET CAKE {SWEET RICE, MILLET, OAT} A yellow cake laced with the sweet spices commonly used in masala chai—cinnamon, ginger and cardamom—this is a simply stunning way to showcase nectarines with flavors that straddle the line between summer and fall. A blend of sweet rice, millet and oat flours creates a flavorful base with a delicate crumb that drinks up the juices of the fruit. Use flavorful nectarines that are fragrant but still firm enough to slice. Feel free to trade the nectarines for peeled peaches. The cake can also be baked in a 9-inch (23-cm) cake pan lined with a round of parchment paper. MAKES ONE 9- TO 10-INCH (23- TO 25-CM) CAKE, 8–10 SERVINGS SPICED SUGAR ¾ cup (165 g) organic granulated cane sugar 1½ tsp (4 g) ground cardamom 1 tsp ground ginger ¾ tsp ground cinnamon CAKE 8 tbsp (113 g) unsalted butter, plus 2 tsp (9 g) for greasing the pan and 2 tsp (9 g) for dotting the fruit topping, all at room temperature Spiced sugar from above (2 tbsp [20 g] reserved for topping; see instructions) 2 large eggs, at room temperature ¾ cup (115 g) sweet white rice flour ½ cup (55 g) oat flour ¼ cup plus 2 tbsp (50 g) millet flour 2 tsp (8 g) baking powder ¾ tsp fine sea salt ⅓ cup (80 ml) Crème Fraîche or sour cream 2 tsp (10 ml) vanilla extract 1 lb (450 g) ripe but firm nectarines (about 4 medium; white, yellow or a blend) Position a rack in the upper third of the oven and preheat to 350°F (175°C). Butter a 9- or 10-inch (23- or 25-cm) ovenproof skillet with 2-inch (5-cm) sides (such as a well-seasoned cast-iron skillet) with the 2 teaspoons (9 g) softened butter. To make the spiced sugar, in a small bowl, stir together the sugar, cardamom, ginger and cinnamon. Set aside 2 tablespoons (20 g) to top the cake. To make the cake, combine the remaining spiced sugar with the 8 tablespoons (113 g) butter in the bowl of a stand mixer fitted with the paddle attachment (or in a large bowl with a wooden spoon). Beat on medium speed until light and fluffy, scraping down the sides of the bowl occasionally, 3 minutes. Add the eggs one at a time, beating well after each addition. In a medium bowl, sift together the sweet rice, oat and millet flours with the baking powder and salt. Add half of the flour mixture to the butter mixture and mix on low speed until just combined. Add the crème fraîche and vanilla, mix on low speed until just combined, then add the remaining flour mixture, beating on low until well combined. Remove the bowl from the mixer and give it a good stir with a rubber spatula, scraping the bottom and sides to make sure the batter is homogenous. If the nectarines are freestones, halve them and remove their pits. Otherwise, cut the fruit off of the pit following the curve of the pit with the knife. Cut some of the nectarine pieces into enough ½-inch (1.3-cm) cubes to equal 1 cup (145 g), and slice the rest into ¼-inch (6-mm) thick wedges. Gently fold the chunks into the batter, then spread the batter evenly into the greased skillet. Fan the nectarine slices over the top of the cake, pressing them into the batter a bit. Sprinkle the reserved 2 tablespoons (20 g) spiced sugar evenly over the top, and dot the fruit with the remaining 2 teaspoons (9 g) butter. Bake the cake until the top is golden and set, the sides are pulling away from the pan, and a toothpick inserted into the center comes out clean, 45–55 minutes. Let cool completely, 1–2 hours, then use a sharp paring knife to cut the cake into wedges and remove them from the pan using a small offset spatula or cake server. The cake is best the day of baking but leftovers keep well, covered at room temperature, for up to 1 day or refrigerated airtight for up to 3 days. VARIATION: CHAI-SPICED PEAR SKILLET CAKE Omit the nectarines and substitute 1 pound (450 g) ripe but firm pears, peeled, cored and prepared in the same manner as the nectarines, tossing the pear slices with 2 teaspoons (10 ml) lemon juice before you fan them over the top of the cake. Proceed with the recipe. ## CHESTNUT PLUM FINANCIERS {ALMOND, CHESTNUT} These dense little cakes bursting with browned butter were the invention of a bakery near the Paris stock exchange, where they were baked to resemble small gold bricks and named for the money men of the area. Financiers are by far my favorite way to make use of extra egg whites, which I often have after making a batch of ice cream. The egg whites magically do the work of fluffing the cakes, no leavening necessary, and all that protein makes for a satisfying texture sans gluten. Financiers avail themselves to myriad flavorings, and I often change up the fruit and flours based on what's in season. Here they soak up moisture from tart plums, and they gain dimension from earthy, sweet chestnut flour. Flour from Ladd Hill will make for mild, blond cakes (as pictured here); the darker conventional flour works equally well, but will make for more deeply colored cakes with a more pronounced flavor. If you don't have access to chestnut flour, try these with ⅓ cup (35 g) GF oat flour in its place, or the buckwheat variation below. See "How to Brown Butter" for tips. MAKES 10–12 INDIVIDUAL CAKES 8 tbsp (113 g) unsalted butter, plus 1–2 tsp (5–10 g) softened butter for greasing the pans ½ vanilla bean, split lengthwise and scraped ¾ cup (80 g) blanched almond flour ⅓ cup (35 g) chestnut flour 1½ tbsp (11 g) cornstarch ½ cup (100 g) organic granulated cane sugar, plus 1–2 tbsp (10–20 g) for sprinkling ¼ tsp fine sea salt 4 large egg whites (½ cup [120 ml]) 3 medium ripe but firm plums (225 g) VACATION: BUCKWHEAT HAZELNUT PEAR FINANCIERS Omit the almond and chestnut flours, using ¾ cup (75 g) hazelnut flour/meal and ⅓ cup (40 g) buckwheat flour. Omit the plums, using 2 medium ripe but firm pears (225 g). Peel the pears, halve them lengthwise, cut out the cores and stems, and halve again crosswise. Slice into ¼-inch (6-mm) thick pieces and proceed with the recipe. Position a rack in the center of the oven and preheat to 350°F (175°C). Use a pastry brush or scrunched-up paper towel to rub 10–12 standard muffin tins with the 1–2 teaspoons (5–10 g) softened butter. (Alternatively, line the cups with paper liners.) Place the remaining 8 tablespoons (113 g) butter in a medium, heavy-bottomed saucepan with the vanilla pod and scrapings. Cook over medium heat, swirling occasionally. After 3–5 minutes, the butter will foam up, turn golden and smell nutty, with brown flecks mingling with black vanilla bean seeds on the bottom of the pan. At this point, remove the pan from the heat. Pour the butter into a small heatproof bowl to stop the cooking, and let cool for 10–15 minutes. Remove the vanilla bean and discard. In a large bowl, sift together the almond and chestnut flours with the cornstarch, ½ cup (100 g) sugar and salt, adding back any bits that get stuck in the strainer. Whisk in the egg whites vigorously until the batter is smooth, then whisk in the melted, cooled butter little by little until well combined. Let sit while you prepare the plums; the batter will thicken slightly. It can also be covered and chilled for up to 2 days prior to baking. Using a sharp knife, cut the plums off their pits and slice thinly, discarding the end pieces that are mostly skin. Divide the batter among the greased or lined cups, filling them halfway. (A spring-loaded ice cream scoop makes quick work of this.) Top with a fan of plum slices and sprinkle the tops with the remaining 1–2 tablespoons (10–20 g) sugar, using more for tart plums and less for sweeter ones. Bake the cakes until golden on top and a tester inserted into the center comes out clean, 30–35 minutes. Remove from the oven and let cool for 10 minutes, then use a thin knife or small offset spatula to loosen the edges and release the cakes from the pans. Financiers are best the day of baking, but they keep well, airtight at room temperature, for an additional day or two. NOTE: Be sure to grease your molds with softened butter the consistency of mayonnaise, as the sticky batter will gladly adhere to less well-greased pans. Alternatively, line the muffin pan with paper liners. ## FIG AND OLIVE OIL CAKE {ALMOND, SWEET RICE, OAT, MILLET} This cake was inspired by a flat of gorgeous Black Mission figs that arrived at my door, hand-picked by my dear friend Amelia from her grandmother's tree. The figs were enormous—it took only four, each cut into eighths, to cover the top of this cake. The base is the same as the Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt on, but with a good grating of lemon zest mixed in to contrast the sweet figs. Almond flour and Greek yogurt form a nubby base that supports the juicy figs, and the lemon plays off the olive oil to add a bit of mysterious complexity. A good sprinkle of sugar over the top makes a crunchy crust. If figs aren't about, try this cake crowned with sliced plums instead. MAKES ONE 9-INCH (23-CM) ROUND CAKE, 10 SERVINGS 1 tsp (5 g) unsalted butter, for the pan 1 cup (120 g) blanched almond flour ½ cup (80 g) sweet white rice flour ½ cup (55 g) GF oat flour ¼ cup (35 g) millet flour 2 tsp (8 g) baking powder ½ tsp baking soda ¼ tsp fine sea salt ½ cup (100 g) organic granulated cane sugar, plus 2 tbsp (20 g) for sprinkling on top 2 large eggs ½ cup (120 g) whole-milk plain Greek yogurt (I use Straus Family Creamery) 6 tbsp (90 ml) flavorful extra-virgin olive oil Finely grated zest from 1 medium lemon 4–6 large (200 g) fresh figs Position a rack in the center of the oven and preheat to 350°F (175°C). Grease a 9-inch (23-cm) springform pan with the unsalted butter and place on a rimmed baking sheet to catch any drips. Sift the almond, sweet rice, oat and millet flours together into a medium bowl along with the baking powder, baking soda and salt, adding back any bits that get caught in the sifter. Set aside. In a large bowl, whisk together the ½ cup (100 g) sugar, eggs, yogurt, olive oil and lemon zest. Stir the flour mixture into the egg mixture until smooth and homogenous. Scrape the batter into the prepared pan, and smooth into an even layer. Trim the stems from the figs, halve each lengthwise, and cut each half into 4 wedges (for large figs) or 2 wedges (for smaller figs). Place the fig wedges over the top of the cake batter in concentric rings (or just drop them over the top willy-nilly—that looks nice, too). Sprinkle all over with the remaining 2 tablespoons (20 g) sugar. Bake the cake until golden on top and a tester inserted near the center comes out clean, 40–50 minutes. Remove the cake from the oven and let cool completely, 45 minutes, then remove the sides from the pan. Slide the cake onto a serving platter and cut into wedges to serve. The cake is best within the first 2 days of baking but will keep at room temperature for up to 3 days. ## CHOCOLATE PEAR TEA CAKES WITH ROSEMARY, OLIVE OIL AND SEA SALT {ALMOND, SWEET RICE, OAT, MILLET} These little cakes were inspired by a cast-iron muffin pan I scored at the Alemany Flea Market in San Francisco. They straddle the line between sweet and savory with the additions of peppery olive oil, bittersweet chocolate, flakes of sea salt and a whisper of rosemary. The combination of sweet rice, millet, oat and almond flours keeps them delicate but never crumbly, despite the lack of gums or starches, and the neutral flavor of the grains allows the subtle nuances of ripe pear to star. These little cakes are incredibly moist from olive oil and whole-milk yogurt, and the almond flour adds a bit of nubby texture. I like to top the muffins with extras of the flavorings to pretty them up and let everyone know what's hiding inside: juicy pear chunks, shavings of chocolate and woodsy rosemary. These make a first-rate afternoon treat alongside a cup of tea, though I won't tell if you have one for breakfast... MAKES 12 INDIVIDUAL CAKES CAKES 1 tbsp (14 g) unsalted butter, at room temperature, for greasing the pan 1 cup (120 g) blanched almond flour ½ cup (80 g) sweet white rice flour ½ cup (55 g) GF oat flour ¼ cup (35 g) millet flour 2 tsp (8 g) baking powder ½ tsp baking soda ¼ tsp fine sea salt ½ cup (100 g) organic granulated cane sugar 2 large eggs ½ cup (120 ml) whole-milk plain yogurt (I use Straus European-style whole-milk yogurt) 6 tbsp (90 ml) extra-virgin olive oil 2 tsp (1 g) finely chopped fresh rosemary ⅔ cup (3.5 oz [100 g]) chopped bittersweet chocolate 1½ cups (140 g) chopped ripe but firm pear TOPPING Pear pieces Chocolate chunks Chopped rosemary Coarse sugar, such as demerara or turbinado Flaky salt, such as Maldon To make the cakes, position a rack in the upper third of the oven and preheat to 350°F (175°C). Brush the cups and top of a standard 12-cup muffin tin with the softened butter (or fill with paper liners). Sift the almond, sweet rice, oat and millet flours together into a medium bowl along with the baking powder, baking soda and salt, adding back any bits that get caught in the sifter. Set aside. In a large bowl, whisk together the sugar, eggs, yogurt, olive oil and rosemary. Gently stir the flour mixture into the egg mixture until smooth, then fold in the chocolate and pears until evenly distributed. Divide the batter among the muffin cups, filling them almost to the top. Top each cake with a pear piece, chocolate bits, a few bits of rosemary, a flutter of coarse sugar and a few flakes of salt. Bake the cakes until golden on top and a toothpick inserted into the center comes out clean or with a few moist crumbs, 23–30 minutes. They are still baking from residual heat, so let cool until warm, at least 20 minutes, then release them from the pan and let cool completely. Extra cakes will keep, airtight at room temperature, for up to 3 days. ## CHESTNUT ROULADE CAKE WITH RUM, MASCARPONE AND ROASTED PEARS {CHESTNUT, SWEET RICE} My favorite-ever job was baking at a short-lived, all-organic patisserie run by two sisters. The owner and head baker Rachel would go to any length to obtain organic products, which included candying our own citrus peels, blanching our own almonds and roasting and peeling chestnuts to puree into chocolate cakes. Luckily, the chestnut thing happened only once. We spent several days heating and peeling the little buggers around the clock, only to end up with burnt fingertips and a handful of dense cakes that didn't sell. I swore off chestnuts for a while after that, until my dear friend and yoga teacher Gizella, who hails from Hungary and has a sadistic streak when it comes to core work (though, thankfully, not chestnut peeling), made a tiramisù of sorts filled with chestnut cream whipped with mascarpone. I thought I'd died and gone to heaven. Here, that same deliciousness fills a springy cake flavored with earthy chestnut flour, plenty of dark rum and brown sugar all rolled up with roasted pears. A taste tester described it as "light and fluffy, but still wintery and warm-tasting." In the United States, chestnut products only appear in stores around the holidays, but you can scour Italian grocers to find them year-round. Look for chestnut spread or cream made with sugar (as opposed to puree made from just chestnuts and water). Perrotta makes a less-sweet version that tastes as though made by angels, but others will work just fine. You'll have a little extra filling left over to "taste" or serve along slices. If you like your desserts extra-boozy, up the rum or whiskey to ⅓ cup (80 ml). This makes an ideal do-ahead dessert as it stores well for a day or two and needs only to be sliced and plated when it comes time for dessert. Watch them swoon. MAKES ONE 12-INCH (30-CM) LONG ROLLED CAKE, 12 SERVINGS CAKE ¼ cup (60 ml) sunflower oil (or other neutral-tasting vegetable oil) ½ cup (120 ml) water 2 large egg yolks 1 tsp vanilla extract ½ cup plus 2 tbsp (135 g) fresh, packed organic light or dark brown sugar ½ cup (80 g) sweet white rice flour ½ cup (55 g) chestnut flour 2 tbsp (15 g) tapioca flour 1¼ tsp (6 g) baking powder ½ tsp fine sea salt 5 egg whites (½ cup plus 2 tbsp [150 ml]), at room temperature ¼ tsp cream of tartar 2 tbsp (25 g) organic granulated cane sugar ¼ cup (25 g) powdered sugar, plus more for finishing ¼ cup (60 ml) GF black or spiced rum (such as The Kraken) ROASTED PEARS 1 tbsp (14 g) unsalted butter 8 medium-sized pears such as Bartlett or Anjou, ripe but firm (2 lb [900 g]) 2 tbsp (20 g) packed organic light or dark brown sugar CHESTNUT CREAM 1 cup (225 g) mascarpone 1 cup (225 g) sweetened chestnut spread (sometimes called "chestnut cream") 1 cup (235 ml) heavy whipping cream 1 vanilla bean, split lengthwise, seeds scraped (pod reserved for Vanilla Extract, or 1 tsp vanilla extract Big pinch of fine sea salt 2 tbsp (20 g) packed organic light or dark brown sugar, as needed (depending on sweetness of chestnut spread) NOTES • If you can't find chestnut spread, no worries; leave it out and add 2–4 tablespoons (25–50 g) packed organic brown sugar to taste. • Roulade cakes can be tricky even for seasoned bakers. If your cake cracks in too many places when you roll it up, never fear: cut it up, stick it in individual serving glasses or bowls, dust with a little extra powdered sugar and call it trifle. To make the cake, position a rack in the center of the oven and preheat to 325°F (165°C). Line a 12 by 17–inch (30 by 43–cm) ungreased rimmed baking sheet with a piece of parchment paper cut to fit. In a large bowl, whisk together the oil, water, egg yolks and vanilla, then whisk in the brown sugar. Place a mesh strainer over the bowl and sift in the sweet rice, chestnut and tapioca flours with the baking powder and salt directly into the bowl, adding back any bits left behind in the strainer. Whisk until very smooth. In the clean, dry bowl of a stand mixer fitted with the whip attachment (or in a large bowl with a hand blender or balloon whisk), whip the egg whites with the cream of tartar on medium-high speed until soft peaks form. Slowly add the sugar and whip until the whites are glossy and hold a firm peak when lifted from the bowl. Use a flexible silicone spatula to fold one-third of the whites into the batter to loosen, then gently fold in the rest until just combined and no streaks remain. Immediately pour the batter onto the prepared baking sheet, and quickly but gently use an offset spatula to spread the batter into a thin, even layer. Transfer to the oven and bake until the cake springs back to the touch, 20–30 minutes. While the cake bakes, gather the following to have at the ready: powdered sugar in a strainer, small offset spatula or knife, large clean kitchen towel, a second baking sheet and kitchen shears or a sharp knife. Working quickly, dust the top of the baked cake with the powdered sugar and use the knife or spatula to loosen it from the sides of the pan. Place a large, clean kitchen towel over the cake and top with a second, inverted baking sheet. Wearing oven mitts, grab the whole thing and flip it over. Remove the hot pan and carefully peel away the parchment paper. Trim away ¼ inch (6 mm) from each edge of the cake, and roll up the cake with the towel; this will help set the shape and the steam will keep it moist and pliant. You can either roll the cake from a short end for a fatter roll (as shown here) or from a long end for a skinnier roll. Either way, let the cake hang out in its towel roll until mostly cool, about 1 hour. While the cake cools, roast the pears. Increase the oven temperature to 400°F (200°C). Rub a rimmed baking sheet with a little of the butter and cut the rest into small pieces. Peel the pears, cut them off the core and slice into ¼- to ½-Winch (6- to 13-mm) thick slices. Spread in a single layer on the buttered pan, sprinkle with the brown sugar and dot with the butter pieces. Roast the pears until golden on the underside, about 20 minutes, then turn each slice and roast on the second side until golden, 10–20 more minutes; it's okay if they get broken up a little. Remove from the oven and use a thin metal spatula to scrape the pears onto a large plate. Chill until cool, 15 minutes. To make the chestnut cream, place the mascarpone in the bowl of a stand mixer fitted with the whip attachment. Mash with a flexible spatula to smooth out any lumps, then add the chestnut spread, heavy cream, vanilla seeds and salt. Whip on medium speed until the mixture holds firm peaks (we want it fairly firm so that the cake will hold its shape). Taste, adding a tablespoon or two (15 or 30 g) of brown sugar if you feel the filling needs it. Cover and chill until needed. Gently unroll the cake. Use a pastry brush to drizzle and dab the rum evenly over the cake. Leaving a 1-inch (2.5-cm) border on the inner and outer edges, cover the cake with about three-fourths of the chestnut cream, reserving the rest, and top with the roasted pears. Re-roll the cake into a log, ending with the seam side down and using the towel to help. Use a wide spatula to transfer it to a baking sheet or board, and cover it with plastic wrap. Chill the cake until sliceable, at least an hour and up to 1 day. (If the cake isn't perfectly round, or if it cracks, you can usually smoosh it together once chilled.) When ready to serve, dust the cake with a little more powdered sugar. Use a sharp chef's knife to slice the cake into rounds and serve with the extra chestnut cream if you like. The cake will keep for up to 3 days. VARIATION: CHESTNUT ROULADE WITH MASCARPONE, CINNAMON ROASTED APPLES AND WHISKEY (OR CALVADOS) Omit the pears, using 2 pounds (900 g) tart baking apples (6 medium) and sprinkling the raw apples with ¾ teaspoon ground cinnamon in addition to the brown sugar. Replace the rum with an equal amount of GF whiskey (such as Queen Jennie Sorghum Whiskey), or try this with Calvados, an apple brandy from the Normandy region of France. ## GINGER, VANILLA AND QUINCE UPSIDE-DOWN CAKE {SWEET RICE, MILLET, OAT} I have a hard time letting go of summer produce come fall, but fun fruits such as quinces and persimmons help ease the transition. Quinces are a member of the pome family along with apples and pears, and they look like a knobby combination of the two. Their flesh is pithy and must undergo a long, slow cook to be rendered edible. When they do, they turn a delightful shade of pink, and their mysterious flavors get teased out. Pomes are part of the rose family, which makes sense given the floral notes inherent in a quince. I like to accentuate quince's flowery qualities, so here I've paired it with vanilla, Meyer lemon and fresh ginger all wrapped up in a buttery cake. Sweet rice, oat and millet flours make a neutral base with a meltingly tender texture that allows the subtle tastes in this cake to star. Serve slices with a dollop of Whipped Crème Fraîche for a pretty fall dessert or teatime treat. And if you haven't any quinces about, try the equally delicious pear version, below. MAKES ONE 8-INCH (20-CM) CAKE, 8–10 SERVINGS POACHED QUINCES 1 vanilla bean ½ large lemon (preferably Meyer) 4 cups (950 ml) water, plus more as needed 1 cup (235 ml) dry white wine ¾ cup (125 g) organic granulated cane sugar 1¾ lb (800 g) quince (about 3 large or 6 small) CAKE 8 tbsp (113 g) unsalted butter, softened, plus 2 tsp (10 g) for the pan Vanilla bean seeds (from above) ½ cup (100 g) organic granulated cane sugar 2 large eggs, at room temperature 2 tbsp (30 g) finely grated, packed fresh ginger ½ cup (80 g) sweet white rice flour ½ cup (65 g) millet flour ½ cup (55 g) GF oat flour 1½ tsp (6 g) baking powder ½ tsp baking soda ½ tsp fine sea salt ½ cup plus 2 tbsp (150 g) Crème Fraîche To poach the quinces, split the vanilla bean down the center and use the back of a knife to scrape away the seeds. Set the seeds aside to use in the cake, and place the pod in a large saucepan. Use a vegetable peeler (T-shaped works best) to pare away the lemon peel and add to the pot. Juice the lemon and add the juice to the pot along with the water, wine and sugar. Bring the liquid to a boil while you prepare the quinces. Use a T-shaped vegetable peeler to pare away the skin of each quince. Cut it in half, leaving the seeds in for now, and add it to the pot. Continue with the remaining quinces. Place a small, heatproof plate (or round of parchment paper cut to fit) over the quinces to keep them submerged, cover partially with the lid of the pot and adjust the heat to keep the liquid at a simmer. Cook until the quinces are rosy and tender, about 1½ hours, adding more water as needed to keep the quinces submerged. When done, carefully remove the quinces and let them drain, reserving the liquid (or let the quinces cool in their juices if using later). Cut the cores, stems and blossoms from the quinces and cut them into ¼-inch (6-mm) thick slices, then chop some of the slices into ½ cup (75 g) chunks (these will get stirred into the batter). Return the poaching liquid to the saucepan and simmer until reduced by about half and bubbling thickly, 10–20 minutes. Reserve. To make the cake, position a rack in the center of the oven and preheat to 350°F (175°C). Grease an 8- or 9-inch (20- or 23-cm) round cake pan with some of the 2 teaspoons (10 g) softened butter and line with a round of parchment cut to fit. Butter the parchment. Lay the quince slices, slightly overlapping, in concentric circles over the buttered parchment and set aside. In the bowl of a stand mixer fitted with the paddle attachment (or in a large bowl fitted with your arm and a wooden spoon), combine the remaining 8 tablespoons (113 g) butter, vanilla bean seeds and sugar. Beat on medium speed until light and fluffy, 3 minutes. Add the eggs one at a time, beating until combined after each and scraping down the sides and bottom of the bowl as needed, then beat in the grated ginger. Meanwhile, sift the sweet rice, millet and oat flours with the baking powder, baking soda and salt into a medium bowl. With the mixer on low, stir half of the flour mixture into the butter mixture until just combined. Stir in the crème fraîche until just combined, then the rest of the flour, scraping down the sides and bottom of the bowl as needed. Stir in the chopped quince and give the batter a final stir by hand to make sure it is well combined. Gently spread the batter over the quinces. Bake the cake until the top is golden and a toothpick inserted near the center comes out clean or with a few moist crumbs, 40–50 minutes. Let the cake cool completely, then invert onto a serving platter and gently peel away the parchment. If the reduced poaching liquid has solidified, warm it in a small saucepan until liquid. Brush some of this glaze over the top of the cake. Serve the cake at room temperature with a dollop of cream, if you like. Extras will keep at room temperature for up to 2 days or refrigerated airtight for up to 3 days. VARIATION: GINGER PEAR UPSIDE-DOWN CAKE Omit the quinces and poaching liquid. Place 3 tablespoons (42 g) unsalted butter in the prepared pan and place in the oven to melt, 3 minutes. Remove from the oven and sprinkle ¼ cup (50 g) packed organic light or dark brown sugar and a big pinch of salt evenly over the melted butter. Peel and core 3 large ripe but firm pears (1¼ pounds 565 g]) and slice lengthwise into ¼-inch (6-mm) slices. Chop enough of the slices to make ½ cup (75 g) pear chunks. Fan the slices over the brown sugar, overlapping slightly in concentric circles, and fold the pear chunks into the batter. Proceed with the recipe, turning out the cake while still warm. Optionally, drizzle the top of the cake with any variation of [Salty Vanilla Bean Caramel Sauce. ## TWO-PERSIMMON LAYER CAKE WITH VANILLA BOURBON CREAM CHEESE FROSTING {ALMOND, SWEET RICE, MILLET, OAT} Persimmons rarely get the love they deserve, particularly the oblong variety (Hachiya), which must be squishy-ripe to lose astringency and burst with soft, sweet flesh. This cake makes use of both Hachiyas, which get pureed into a gently spiced batter full of nubby almond flour, and Fuyus, which crown the layers in electric orange cubes. A bourbon-infused vanilla cream cheese frosting makes this a unique cake for the winter holidays. Baking the cake in a 6-inch (15-cm) pan gives you a petite cake with three layers, pictured here. Alternatively, make an 8-inch (20-cm) cake with two shorter layers, or try the cupcake variation on. MAKES ONE 6-INCH (15-CM) CAKE WITH 3 LAYERS OR ONE 8-INCH (20-CM) CAKE WITH 2 LAYERS, 8–10 SERVES CAKE ½ cup (60 g) blanched almond flour ½ cup (80 g) sweet white rice flour ½ cup (75 g) millet flour ½ cup (55 g) GF oat flour 1 tsp baking soda 1 tsp ground cinnamon ½ tsp ground cardamom ½ tsp fine sea salt 8 tbsp (113 g) unsalted butter, at room temperature ½ cup (100 g) packed organic light or dark brown sugar 2 large eggs, separated 1 tsp vanilla extract 1 cup (235 ml) Hachiya persimmon puree (see Note) FROSTING AND FILLING 8 oz (225 g) cream cheese, at room temperature 4 tbsp (56 g) unsalted butter, at room temperature ¾ cup (85 g) powdered sugar Seeds from 1 vanilla bean or 1 tsp vanilla extract Pinch of fine sea salt 2 tbsp (30 ml) bourbon or GF whiskey (such as Queen Jennie) (or a squeeze of lemon juice) 2 large Fuyu persimmons, ripe but firm A squeeze of lemon juice VARIATION: TWO-PERSIMMON CUPCAKES Divide the batter among 12 muffin cups fitted with paper liners. Bake for 28–32 minutes. Let cool. When ready to serve, spread or pipe with the frosting and sprinkle with the diced Fuyus. To make the cake, position a rack in the lower third of the oven and preheat to 350°F (175°C). Line a 6-inch (15-cm) round cake pan with 2-inch (5-cm) sides with a round of parchment paper cut to fit. Cut a 4-inch (10-cm) wide strip of parchment paper that's longer than the circumference of the pan and use it to make a collar around the inside of the pan (this will keep the batter from overflowing as it bakes and make the cake easier to unmold). You can skip the collar if baking this in an 8-inch (20-cm) pan. Place a strainer over a medium bowl and add the almond, sweet rice, oat and millet flours along with the baking soda, cinnamon, cardamom and salt. Sift the dry ingredients into the bowl, adding back in any bits that get caught in the strainer. Combine the butter and brown sugar in the bowl of a stand mixer fitted with the paddle attachment and beat on medium speed until light and fluffy, 3 minutes, scraping down the sides of the bowl a few times. Beat in the egg yolks and vanilla. With the mixer on low, beat in a third of the flour mixture until combined. Beat in half of the persimmon puree until combined. Repeat until you've added everything. In a separate, clean bowl, use a whisk to whip the egg whites until they hold firm peaks when the whisk is lifted out of the bowl. (Hint: This is easier if they're at room temperature. You can also do this in a clean bowl for your stand mixer with the whip attachment.) As soon as the whites are whipped, stir a third of them into the cake batter. Gently fold in the remaining egg whites until no streaks remain. Scrape the cake batter into the prepared cake pan (don't forget the parchment collar if using a 6-inch [15-cm] pan!). Bake the cake until a toothpick inserted near the center comes out clean, 60–75 minutes for a 6-inch (15-cm) pan and 50 minutes for an 8-inch (20-cm) pan. Let the cake cool completely in the pan, about 2 hours. When the cake is cool, us a small offset spatula or butter knife to loosen the edges and bottom from the pan. Invert it into your hand, and pry off the pan. Remove the parchment collar and bottom and discard. Place the cake upright on a board, plate or cake stand (if you have one that rotates, bonus points!). Use a large, serrated knife to trim the top of the cake flat. Mark the cake horizontally into even thirds. With your palm on the top of the cake and the knife held parallel to the work surface, use a sawing motion to cut the cake into thirds as you rotate it, taking care to make the layers as even as possible. To make the frosting, in the bowl of a stand mixer fitted with the paddle attachment, whip together the cream cheese, butter, powdered sugar, vanilla seeds and salt on medium speed until light and fluffy. Be careful not to overbeat, or the mixture could break and become grainy or liquidy. Add the bourbon and beat to incorporate. (Mine always becomes slightly grainy at this point due to the low amount of powdered sugar, but I find that preferable to being too sweet.) The frosting can be covered and kept at cool room temperature for up to a few hours. For the filling, slice the tops off the Fuyu persimmons and cut them into an even dice about ¼-inch (6-mm) square or a little larger. Place in a small bowl and toss with a squeeze of lemon juice to keep them from oxidizing. To assemble the cake, place the bottom cake layer on a fresh round of parchment paper or small plate. Lay the other layers on a clean surface. Divide the frosting among the three layers. Starting with the bottom layer, smooth the frosting over the surface, taking it almost to the edge. Top with about a quarter of the diced persimmon, and press the persimmons into the frosting. Top with a second cake layer. Repeat this process, using the remaining half of the diced persimmon to top the cake. Serve immediately, or, for the cleanest slices, chill the cake for at least 1 hour. The cake is best at room temperature when the butter in the cake and frosting have softened, so let individual slices come to room temperature before enjoying for best results. The cake is best on the day of baking, but it will keep refrigerated (ideally in a cake dome or large, inverted container) for up to 3 days. NOTES • To make the Hachiya persimmon puree, make sure your Hachiya persimmons are so squishy-ripe that they feel like water balloons about to burst. I let mine ripen on the counter for at least a week or two, stem side down to protect their delicate bottoms, transferring them to a container in the refrigerator as they ripen. They'll keep there for up to a week. When ready to bake, cut the blossom off the persimmon, squeeze out the jellylike flesh into a mesh strainer placed over a large bowl, and use a flexible silicone spatula to work the flesh through. It will be the consistency of a runny jelly. This puree can also be frozen to use later. • If you or your cake eaters are sensitive to trace amounts of gluten, be sure to use a certified GF spirit such as Queen Jennie whiskey, or a GF rum or brandy. Otherwise, I like Bulleit bourbon here. ## PETITE BLOOD ORANGE CORNMEAL URSIDE-DOWN CAKE {CORN, SWEET RICE, OAT} My best friend and I spent our junior year of college studying in Bologna, Italy, at one of the oldest universities in the world. Having lived our whole lives in mild California, and having spent only a couple of summers in Italy, we were in for a rude awakening when the weather turned gray and icy from October all the way through April. Thank goodness for Prosecco, gelati and blood oranges, called _aranci tarocchi._ That winter, we would buy up the ruby-hued fruits in abundance at the open-air markets (on the rare occasion that it wasn't raining). After simple, homemade dinners of risotto or pasta, we would sit at the table peeling and eating the oranges, admiring their bright flesh that whispered of the colorful sunsets we hoped to see again someday. Here, blood orange rounds are bathed in honey butter and baked beneath a sturdy cake flecked with cornmeal to soak up the fruit's copious red juices. When turned out, the sunny topping reminds me a little of pineapple upside-down cake, only more brightly hued. Serve wedges of cake at room temperature with a cup of tea on a wintry afternoon when you're longing for sunnier days. It will help. This makes a petite 6-inch (15-cm) cake, but the recipe can be doubled and baked in a 9-inch (23-cm) round cake pan, increasing the bake time as needed. MAKES ONE 6-INCH (15-CM) ROUND CAKE, 6 SERVINGS TOPPING 1½ tbsp (21 g) unsalted butter, in a few pieces, plus 1 tsp for greasing the pan 2 tbsp (30 ml) honey 1 lb (450 g) blood oranges (about 4 medium) CAKE 4 tbsp (56 g) unsalted butter, at room temperature ¼ cup (50 g) organic granulated cane sugar 1 tbsp (15 ml) honey, plus more for drizzling 1 tsp finely grated zest from 1 blood orange (above) Finely grated zest from ½ large lemon (preferably Meyer) 1 large egg, at room temperature ¼ cup plus 2 tbsp (55 g) yellow cornmeal (NOT polenta) ¼ cup (60 g) Crème Fraîche or sour cream ¼ cup plus 2 tbsp (55 g) sweet white rice flour ¼ cup plus 2 tbsp (35 g) GF oat flour 1 tsp baking powder ⅜ tsp fine sea salt ¼ cup or a little more (60 g) chopped blood oranges, from above Position a rack in the center of the oven and preheat to 350°F (175°C). Grease a 6-inch (15-cm) round baking pan with 2-inch (5-cm) sides with the 1 teaspoon butter and line the bottom with a 6-inch (15-cm) round of parchment paper. Place the pan on a rimmed baking sheet lined with parchment for easy cleanup and to catch drips. To make the topping, place the butter and honey in the pan and put it in the oven to melt together, 5 minutes. Meanwhile, zest 1 blood orange and set the zest aside to use in the batter. Use a sharp paring knife to slice ¼ inch (6 mm) off the top and bottom of each blood orange. Place cut side down, and, following the curve of the orange, cut away the peel and white pith. Cut the orange crosswise into thin rounds roughly ¼-inch (6-mm) thick. Repeat with the remaining oranges. Using the larger rounds, lay the orange slices over the buttery honey in concentric circles, starting from the outside and overlapping the slices slightly. Fill in the center with a few more slices. Cut any remaining slices into small chunks and reserve for the cake batter (you should have roughly ¼ cup [60 g]). To make the cake, in the bowl of a stand mixer fitted with the paddle attachment (or in a large bowl fitted with your arm and a wooden spoon), beat together the softened butter, sugar, honey and blood orange and lemon zests on medium speed until light and fluffy, 3 minutes, scraping down the sides of the bowl occasionally. Beat in the egg, then the cornmeal, then the crème fraîche, stirring until smooth after each addition. (The mixture may look curdled; this is okay.) Place a mesh strainer over the bowl and sift in the sweet rice and oat flours along with the baking powder and salt. Stir to combine well, then gently fold in the chopped blood oranges. Dollop the batter over the blood orange slices in the pan, and spread it gently and evenly. Bake the cake until a tester inserted in the center of the cake comes out completely clean, 35–45 minutes. Let the cake cool in the pan for 10 minutes, then use a small, offset spatula or thin knife to loosen the cake from the sides of the pan. Invert a plate or small cake stand over the pan, and, wearing oven mitts, flip the whole thing over. Remove the cake pan and gently peel away the parchment. Let the cake cool to warm, 20 minutes, then drizzle the top with more honey. Cut into wedges and serve slightly warm or at room temperature. The cake is best shortly after baking, but leftovers will keep at room temperature for an additional day, or in the refrigerator for up to 3 days. Bring to room temperature before serving. VARIATION: PETITE TANGERINE CORNMEAL UPSIDE-DOWN CAKE Omit the blood oranges, using 1 pound (450 g) tangerines or mandarins such as satsumas or clementines (about 4 large) in their place. NOTE: I prefer the finer grind of Arrowhead Mills' cornmeal here to Bob's Red Mill's coarser GF cornmeal. If that's what you've got, break it up in a coffee grinder before measuring. ## VANILLA BEAN CUPCAKES WITH KUMQUAT CREAM CHEESE FROSTING {SWEET RICE, OAT, MILLET} These sunny cupcakes taste a bit like Creamsicles, with loads of vanilla in the batter and tangy candied kumquats in the topping. The kumquat syrup moistens the cakes, and a slice makes a pretty garnish. The recipe, which I adapted from my dear friend and seasoned gluten-free baker Sarah Menanix, who writes the blog SnixyKitchen.com, turns out the most tender and tasty vanilla cupcakes I've ever had. Sweet rice, oat and millet flours create a neutral base with a touch of nutty flavor dotted with vanilla beans and lightened with buttermilk. These are easy to whip up should you have candied kumquats on hand. Alternatively, leave them off and you'll still have the most killer vanilla cupcakes imaginable. MAKES 14 CUPCAKES CUPCAKES 8 tbsp (113 g) unsalted butter, at room temperature ¾ cup (150 g) organic granulated cane sugar Seeds from 1 vanilla bean 2 large eggs, at room temperature ¾ cup (105 g) sweet white rice flour ½ cup (50 g) GF oat flour ¼ cup plus 2 tbsp (45 g) millet flour 1½ tsp (6 g) baking powder ½ tsp baking soda ½ tsp fine sea salt ½ cup (120 ml) well-shaken buttermilk 1 tsp vanilla extract FROSTING ½ cup (130 g) Honey Candied Kumquats in their syrup, plus more for garnish 8 oz (225 g) cream cheese, at room temperature 4 tbsp (56 g) unsalted butter, at room temperature ¾ cup (85 g) powdered sugar Pinch of fine sea salt A few drops of lemon juice, as needed To make the cupcakes, position a rack in the center of the oven and preheat to 350°F (175°C). Line 14 standard muffin cups with paper liners. In the bowl of a stand mixer fitted with the paddle attachment (or in a large bowl with a wooden spoon), beat the butter, sugar and vanilla seeds together on medium speed until light and fluffy, 2–3 minutes. Add the eggs one at a time, beating well after each addition and scraping down the sides of the bowl as needed. In a medium-sized bowl, sift together the sweet rice, oat and millet flours with the baking powder, baking soda and salt. Add half of the flour mixture to the butter mixture and beat on low speed until just combined. Beat in the buttermilk and vanilla, mixing until just combined, then beat in the remaining flour mixture, beating until well combined, scraping down the sides of the bowl once or twice. Remove the bowl from the mixer and stir with a flexible silicone spatula to make sure the batter is homogenous. Divide the batter among the lined muffin cups, filling them two-thirds of the way. Bake until the tops spring back to the touch and a toothpick inserted into the center of one comes out clean or with a few moist crumbs, 20–25 minutes. Remove from the oven and let cool completely. To make the frosting, place the kumquats in a strainer set over a bowl and press as much liquid out of them as you can. Reserve the syrup for brushing the cupcakes; you should have 3–4 tablespoons (45–60 ml). Chop the kumquats finely. Beat the cream cheese, butter, powdered sugar and salt together in the bowl of a stand mixer fitted with the paddle attachment on medium speed until smooth and fluffy, 2–3 minutes, scraping down the sides of the bowl occasionally. With the mixer on low, beat in the drained, chopped kumquats. Taste the frosting, adding a few drops of lemon juice if you like to sharpen the flavors. To finish the cupcakes, poke the tops of the cupcakes several times with a toothpick. Brush with a few coats of the reserved kumquat syrup, letting the syrup soak into the cakes, until you've used it all up. Pipe or spread the frosting over the cakes, and top each with a candied kumquat or two. The cakes will keep at cool room temperature for up to a few hours, or refrigerated airtight for a day or two. Serve the cakes at room temperature. # PIE Whoever coined the term "easy as pie" was clearly not a baker. Pies are one of the more fussy desserts to get right, not just at home but in professional kitchens, too. With pie, so many things can go wrong. Too much liquid in the crust and it turns tough. Too little and the dough cracks all over the place. Underbake and the crust is sodden and pasty; overbake and the edges burn. Custard fillings can leak, adhering the pie to the pan like superglue, and fruit fillings can turn into puddles of soup when sliced. And yet when pie goes right, it goes so very right. Flaky pastry shatters against fillings of sliceable custard infused with citrus or spice. Chunks of fruit soften in the heat of the oven, their flavors condensing into something greater than the sum of their parts, all wrapped up in a buttery shell. I've adapted my flaky pie dough to be full of alternative flours and free from gluten and gums. Chia seed is the magic ingredient that takes the place of the usual xanthan gum. Cornstarch adds crunch and tapioca makes the dough more pliable. And a trio of flours—sweet rice, oat and millet (as well as a couple of variations)—make a crust that tastes like a perfectly flaky whole wheat pastry and is nearly as easy to work with. The key to flaky pie dough is to leave the butter in large chunks. When worked into sheets through the classic French technique of _fraisage_ and given a few folds in the manner of puff pastry, the pockets of butter give off steam in the heat of the oven, lifting up the layer of dough above it. This flaky dough makes a buttery base for ginger peach and strawberry raspberry rhubarb pies, a floral lemon buttermilk custard flecked with vanilla bean, and savory-sweet fig and chèvre bites. Teff creates a malty, warm-tasting base for apple pie or hazelnut frangipane and fresh plums. Buckwheat lends an earthy, charcoal hue to a dough with lots of crunch and flake. Try this around walnuts and pears for individual tarts kissed with salty caramel, or in a dreamy pumpkin pie made with maple syrup and crème fraîche. ## FLAKY PIE DOUGH {SWEET RICE, OAT, MILLET} Flaky pie dough is the holy grail of alternative flour baking, with most recipes turning out heavy, crumbly doughs or requiring loads of gums and starches to bake up well. I tested this dough dozens of times to get it just right, with various ingredients and techniques. A trio of flours—sweet rice, millet and oat—work together with cornstarch, tapioca flour and ground chia seed to create a dough that's sturdy enough to trap air from steaming butter and flake into layers not unlike puff pastry, all without the use of gluten or gums. When done right, the result tastes like whole wheat puff pastry. All who try this recipe or the resulting product agree—it's downright miraculous. I find it all too easy to overmix pie dough in a stand mixer or food processor, so I highly recommend making this by hand the first few times, preferably using a sturdy metal pastry blender. You want the butter kept in large chunks—not the small peas generally asked for by other recipes, but ½-inch (1.3-cm) pieces the size of almonds. There will be lots of small pieces of butter, too, but be sure to leave lots of big chunks, as well. The next key point is that of the liquid. Before you start, fill a ½-cup (120-ml) measure with ice cubes and top it off with water. Stir this together with buttermilk (or vinegar or lemon juice if you prefer) and add the liquid 1 tablespoon (15 ml) at a time, tossing with a flexible silicone spatula until it's barely moistened and there are no floury bits. A chunk of dough should hold together when you give it a squeeze, but it should not feel wet or sticky. How much liquid you add will vary greatly on a number of different factors, so it must be done by feel rather than a fixed amount. Like any pie dough recipe, it may take a few tries before you get a feel for how much liquid should be added. I do tend to moisten this dough a little bit more than wheat doughs, as this helps it hold together better when you work it. METHOD The fraisage method may be new to you; it was to me when I came across it in a baking cookbook several years ago. It's a quick process that takes only a minute or two, wherein you drag portions of dough across the counter with the heel of your hand. This flattens the butter chunks into sheets, creating many flaky layers and helping to bring the dough together. If this sounds intimidating, you can try a method that I learned in a pastry kitchen: after cutting in the butter, but before working in the liquid, go through the dough and squeeze every butter chunk between your fingers to flatten them out. Work quickly so the butter doesn't melt. Proceed with the recipe, skipping the fraisage, doing the turns if you like. And if none of this sounds like any fun, just give the dough 10–20 good kneadings in the bowl and go from there; you'll still have a lovely pie dough, just a bit less tender and flaky than the fully flaky versions. For even flakier dough that is smoother and easier to handle, do the optional turns, detailed below. This is the same technique used to give croissants, Danish and puff pastry their flaky layers. TIPS FOR ROLLING This dough is more fragile than wheat dough due to its lack of gluten and gums, so you'll want to baby it a bit. Having the dough at the proper temperature can help. Too cold, and it will crack. Too warm and it will melt and stick. I usually let my dough rest at room temperature for 5–10 minutes prior to rolling if it has chilled through completely. My preferred rolling situation is to use a countertop dusted lightly with oat flour. Other testers have preferred rolling the dough between two pieces of parchment paper, which keeps the dough from sticking and makes it easier to maneuver. With either rolling method, be sure to dust the counter with just enough oat flour to keep the dough from sticking, and use a pastry brush to sweep excess flour off of the dough so you don't end up with chunks of flour. As you begin to roll out the dough, start by pressing down on the pin gently, lifting it up, moving it outward and pressing down, until you've pressed the length of the dough. This helps to soften the dough slightly and minimize the cracking that will happen around the edges. When the edges crack, use your hands and fingers to press them back together. As you work, use a bench scraper to lift the dough, flipping it over if you can do so without it breaking (or just dusting underneath with flour) and continuing. After a minute or two of this when the dough is flatter, begin to use a gentle yet firm rolling motion, rolling in all directions, continuing to move and dust the dough and countertop frequently, brushing away excess flour, until the dough is the correct shape for the recipe. If it cracks or breaks, just use your fingers to stick it back together. If it begins to soften and stick, drag it onto a rimless cookie sheet and chill it for 5–10 minutes. DO AHEAD You can make the dough up to 2 days ahead; it actually benefits from a day's rest, which allows the starches in the flours to absorb moisture and create a sturdier, smoother dough. I often make a double batch of pie dough, use half in a recipe, and freeze the other half airtight until I'm ready to make another pie. You can also wrap a shaped, frozen shell, baked or unbaked, for up to several months. TIMING Give yourself at least 3–4 hours to complete a parbaked crust if you plan to do the turns, or 2 hours if you're skipping this step. Most of this time is inactive. Ideally, make the dough a day ahead and let it rest overnight. TOOLS AND EQUIPMENT • Pastry blender • Metal or plastic bench scraper • Flexible silicone spatula • Rolling pin • Pastry brush (for sweeping excess flour off of the dough) • Scissors (for trimming dough) • Plastic wrap or a large, zip-top bag • Pie weights and parchment paper (if parbaking) • Parchment paper, for rolling out the dough (optional) NOTES • Once you get a feel for this dough, it can also be made in a food processor. Place all the dry ingredients in the bowl fitted with a steel blade. Scatter the butter pieces over the top, but don't pulse just yet. Place the lid on and open up the pouring chute. Gradually pour in the ice water mixture, pulsing all the while and adding liquid in a slow, steady stream. Remove the lid and give the dough a squeeze; it should feel moist but not sticky, and hold together, with lots of pea-sized butter pieces in there. • If you don't have buttermilk on hand, or don't care to use it, stir 8 tablespoons (120 ml) of ice water together with 1 teaspoon of apple cider (or white) vinegar or lemon juice to use in place of the ice water/buttermilk mixture. MAKES ONE STANDARD 9-INCH (23-CM) PIE SHELL FOR A SINGLE-CRUST PIE ¼ cup (60 ml) ice water ½ cup (80 g) sweet white rice flour (Mochiko) ¼ cup plus 2 tbsp (40 g) GF oat flour, plus more for dusting ¼ cup (35 g) millet flour ¼ cup (30 g) cornstarch 2 tbsp (13 g) tapioca flour 2½ tbsp (15 g) finely ground chia seed (preferably white) 1 tbsp (12 g) organic granulated cane sugar ½ tsp fine sea salt 8 tbsp (113 g) cold, unsalted butter (preferably European style), sliced ¼-inch (6-mm) thick ¼ cup (60 ml) cold buttermilk Make the ice water by filling a ½-cup (120-ml) measure with ice and topping it off with cool water. In a large bowl, combine the rice, oat and millet flours with the cornstarch, tapioca flour, ground chia seed, sugar and salt. Scatter the butter pieces over the top, and work in with a pastry blender or your fingertips until the mixture resembles gravel, with lots of butter chunks the size of large almonds and some smaller bits. Stir together ¼ cup (60 ml) of the ice water with the buttermilk, and drizzle the mixture into the flour mixture 1 tablespoon (15 ml) at a time, tossing the dough with a flexible silicone spatula to moisten evenly. Add just enough water for the dough to hold together when you give it a squeeze, and add it directly to the dry floury bits that like to hang out on the bottom of the bowl; you may not need all the liquid, or you may need to add more ice water. OPTION 1: KNEAD Knead the dough in the bowl 10–20 times to bring it together. OPTION 2 (RECOMMENDED): FRAISAGE Skip the kneading option, above. Working quickly, dump the dough out onto the counter. Grab a handful of dough, place it on the counter, put the heel of your hand on the dough and push it away from you, scraping it across the surface several inches. Use a bench scraper to scrape the dough up off the counter and place it back in the bowl. This is called _fraisage._ Repeat with the remaining dough. It should only take a minute or two to complete this process. With either method, gather the dough up into a ball, wrap it loosely in plastic wrap and flatten it into a disk. Chill the dough until firm, 30–60 minutes. OPTION 3: TURN This classic technique is used to give puff pastry and croissant dough their layers. Here, it also helps to make a smoother, more pliable dough that will be easier to manipulate. Dust your surface lightly with oat flour and use a rolling pin to roll the dough out into a rough rectangle that is about ¼-inch (6-mm) thick, lifting and turning the dough, dusting underneath the dough to keep it from sticking, flipping it over and sweeping away excess flour with a pastry brush. (Alternatively, roll the dough between two pieces of parchment paper dusted with oat flour to prevent sticking.) When the dough is rolled out, fold it into thirds, as though folding a letter, then fold it in thirds again the other way. Gently press to flatten it slightly, re-wrap and chill for 30–60 more minutes. OPTION 4: ANOTHER TURN For the absolute flakiest dough, repeat the turning step one more time, making a second turn. This will only be effective if you started out with those big chunks of butter. You're done! Chill the dough until cold, at least 30–60 minutes and up to 2 days. Alternatively, slip the dough into a freezer bag and freeze for up to 2 months. Refer to individual recipes for how to use your beautiful masterpiece. If shaping the dough in a pie pan, continue with the instructions below. SHAPE THE CRUST Remove the dough from the refrigerator, unwrap and place on a lightly floured surface. If it is very cold, let it soften for 5–10 minutes until malleable; this will minimize cracking. Roll out the dough into a 12-inch (30-cm) round, dusting the dough lightly with oat flour as needed, rotating and flipping it to prevent it from sticking. (Alternatively, roll the dough between two pieces of parchment paper dusted with oat flour to prevent sticking.) Ease the dough into a 9-inch (23-cm) glass pie plate, fit it into the corners, and trim it to a 1-inch (2.5-cm) overhang. (Save the scraps to patch any tears in the dough post-parbaking.) Fold the overhang of the crust under itself, and flute the crust by pressing it between the thumb of one hand and the index finger and thumb of the other hand. Prick the bottom of the crust all over with the tines of a fork. Chill the crust for 30 minutes, or until firm. BAKE OR PARBAKE Position a rack in the lower third of the oven and preheat to 400°F (200°C). Remove all other racks from the oven. If you have a baking stone, put it on the rack. Place the chilled crust on a rimmed baking sheet. Line it with a piece of parchment paper, and fill to the top with pie weights, dry beans or clean pennies, pressing the weights into the sides and corners of the crust. Bake the crust for 15–30 minutes, until the dough holds its shape when you lift off the parchment. Carefully remove the weights and parchment and bake until the bottom is dry and lightly golden, about 8–12 minutes longer (for a parbaked crust) or until deeply golden, 15–20 minutes (for a fully baked crust). Use the saved scraps of dough to patch any holes, cracks, or tears in the dough, baking for a few more minutes post-patching. VARIATIONS BUCKWHEAT PIE DOUGH Omit the millet flour, substituting ¼ cup plus 2 tablespoons (45 g) buckwheat flour and decreasing the oat flour to ¼ cup (25 g). TEFF PIE DOUGH Omit the millet flour, substituting ¼ cup (35 g) teff flour. COCONUT OIL PIE DOUGH (VEGAN) This dough is more fragile to work with, but doing the fraisage and turns helps make it more cohesive. Since coconut oil is harder than butter when chilled, the dough is easier to handle when slightly warmer than refrigerator temperature. Because the dough is more fragile, it's easier to use in hand pies and galettes that need less manipulation, as opposed to larger pies. The flavor of the coconut oil doesn't carry through; this pie dough tastes just like any other fabulously flaky whole-grain pie dough. Omit the butter. Scoop 8 tablespoons (105 g) of firm, room-temperature (or slightly chilled) unrefined, extra-virgin coconut oil over the flour mixture in tablespoon-sized blobs. Chill the whole bowl until the coconut oil is firm, 20 minutes or longer. Work in the oil as you would the butter, but break it up into finer particles the size of peas. Omit the buttermilk, stirring together 8 tablespoons (120 ml) ice water with 1 teaspoon lemon juice, and work in the ice water mixture as per usual. Proceed with the recipe. ## PIE DOUGH FOR CUTOUT PIES AND PANDOWDIES Place the dry ingredients in a large bowl. Add the sliced butter. Use a pastry blender to work the butter... ... into chunks the size of almonds and peas. Gradually add the liquid by the tablespoon (15 ml), tossing the dough to distribute evenly. Fraisage by scraping portions of dough... ... across the counter to form thin sheets. Alternatively, make the dough in a food processor. Chill the dough until cold. Dust with flour to prevent sticking. Slowly press and roll into an even round. Fold the dough in thirds... ... and in thirds again for extra layers. Shape the crust in the pan, tucking the edges under. Use your thumb and forefingers... ... to form a fluted edge. Pierce, chill again and bake! {SWEET RICE, OAT, MILLET} This recipe is one and a half times the Flaky Pie Dough recipe on. I just did the math for you—you're welcome. MAKES ENOUGH FOR 1 BOTTOM CRUST AND A CUTOUT UPPER CRUST FOR A 9-INCH (23-CM) PIE, OR 2 PANDOWDIES ¼ cup plus 2 tbsp (90 ml) ice water ¼ cup plus 2 tbsp (90 ml) well-shaken buttermilk ¾ cup (110 g) sweet white rice flour ½ cup (55 g) GF oat flour ¼ cup plus 2 tbsp (50 g) millet flour ¼ cup plus 2 tbsp (45 g) cornstarch 3 tbsp (25 g) tapioca flour 4 tbsp (25 g) finely ground white chia seed 1½ tbsp (20 g) organic granulated cane sugar ¾ tsp fine sea salt 12 tbsp (170 g) cold, unsalted butter (preferably European style such as Straus Family Creamery), sliced ¼-inch (6-mm) thick Follow the directions for the Flaky Pie Dough, preferably with the fraisage and 1–2 turns. If making a cutout double-crust pie, divide the finished dough into one-third and two-third portions, wrap each in plastic wrap, flatten into disks and chill until firm, at least 1 hour and up to 2 days. Using the larger portion of dough, follow the instructions for shaping a bottom crust on. Use the smaller portion for the top cutout crust (see individual recipes for method). For pandowdies, divide the dough in half, wrap each in plastic wrap and chill. ## STRAWBERRY RASPBERRY RHUBARB CUTOUT PIE {SWEET RICE, OAT, MILLET} Raspberries make a bright addition to the classic combination of strawberries and rhubarb. Along with a bit of lemon, the three turn out a crimson filling that is downright refreshing, studded with fat chunks of red fruit. Topping the pie with rounds of dough creates a pretty top that is far easier to execute than a lattice or double crust, and it keeps the fruit-to-crust ratio in check while allowing plenty of steam to escape from the fruit. I learned this topping method from Laura Kasavan, who writes the beautiful dessert blog Tutti Dolci. This well-balanced pie needs no accompaniment, though a scoop of Vanilla Bean, Cardamom or Fresh Ginger Ice Cream (here and here) is always welcome. MAKES ONE 9-INCH (23-CM) PIE, ABOUT 10 SERVINGS CRUST 1 recipe Pie Dough for Cutout Pies GF oat flour, for dusting FILLING 2½ cups (270 g) rhubarb trimmed and sliced ½-inch (1.3-cm) thick 2 cups (230 g) hulled and quartered strawberries 2 cups (230 g) raspberries Finely grated zest from 1 medium-sized lemon (preferably Meyer) 1 tbsp (15 ml) lemon juice ¾ cup (150 g) organic granulated cane sugar ¼ cup (30 g) cornstarch ⅛ tsp fine sea salt FOR FINISHING 1 tbsp (15 ml) milk or cream 1 tbsp (15 g) coarse sugar (demerara or turbinado) For the crust, prepare and chill the pie dough as directed. Position a rack in the lower third of the oven, top with a baking stone if you've got one and preheat to 425°F (220°C). Line a rimmed baking sheet with parchment paper for easy cleanup. Make a bottom crust with the larger round of pie dough. Chill the crust until firm, 30 minutes (or wrap and chill up to 1 day). On a surface dusted lightly with oat flour, roll out the smaller round of dough to a 9-inch (23-cm) round about ¼-inch (6-mm) thick. Use a fluted biscuit cutter (or small glass) to cut 1½- and/or 2-inch (3.8- and/or 5-cm) rounds close together. Stack the rounds on a plate and chill until firm, 20 minutes. Optionally, press the dough scraps together, wrap and chill until firm, and repeat the rolling/cutting process once more. To make the filling, place the prepared rhubarb, strawberries and raspberries in a large bowl and add the lemon zest and juice, sugar, cornstarch and salt. Use a flexible silicone spatula to stir gently to combine, and let sit for a few minutes to draw out the juices a bit. Spoon the fruit and juices into the chilled crust, smoothing it flat. Place the chilled dough rounds over the top of the fruit, overlapping them slightly and leaving lots of windows for the steam to escape. To finish, brush the rounds with the cream or milk and sprinkle with the coarse sugar. Place the pie on the lined baking sheet and place in the oven on the baking stone. Bake at 425°F (220°C) for 15 minutes, then decrease the oven temperature to 375°F (190°C) and continue baking until the crust is golden and the fruit is bubbling furiously, 35–50 more minutes. Let the pie cool completely to set the fruit, at least 2 hours, then cut into wedges and serve at room temperature. The pie is best shortly after baking and will keep at room temperature for up to 1 day, or refrigerated for up to 3 days. NOTE: When preparing rhubarb, be sure to trim away the leaves completely, as they are toxic. ## BLUEBERRY HAND PIES {VEGAN} {SWEET RICE, OAT, MILLET} It's hard to go wrong with fresh blueberries. Here, they're given minimal sweetening, tossed with lemon and nutmeg, and tucked into flaky coconut-oil dough. The clean taste of coconut lets the deep purple berries star, baking into tender little nubs within crust that shatters and flakes. These not-too-sweet treats work equally well for breakfast with a cup of tea or to travel on a picnic. If you want them a bit sweeter, give them a drizzle of vanilla bean glaze and they will remind you of really classy Pop-Tarts. Placing the rounds of dough on individual pieces of parchment paper helps shape the hand pies, so be sure to have some handy when making this recipe. Fresh berries work better here, as frozen ones will cause the dough to harden, making it crack as you fold it around the filling. MAKES 6 INDIVIDUAL HAND PIES CRUST 1 recipe Coconut Oil Pie Dough, prepared with the fraisage and 1–2 turns, chilled GF oat flour, for dusting FILLING 1½ cups (190 g) blueberries (preferably fresh, otherwise frozen and not defrosted) 3 tbsp (40 g) organic granulated cane sugar Finely grated zest from 1 small lemon 2 tsp (10 ml) lemon juice 1 tsp cornstarch ¼ tsp fine sea salt ⅛ tsp freshly grated nutmeg FOR FINISHING 1–2 tbsp (30 ml) plant milk, for brushing the dough Organic granulated cane sugar, for sprinkling For the crust, prepare and chill the pie dough as directed. To make the filling, in a medium bowl, toss together the blueberries, sugar, lemon zest and juice, cornstarch, salt and nutmeg to combine. Set aside. Divide the dough into 6 equal portions, letting it stand at cool room temperature for 5–10 minutes to soften slightly. On a surface dusted lightly with oat flour (or between 2 squares of parchment paper dusted with oat flour), roll each portion of dough out into a 5- to 6-inch (13- to 15-cm) round about ¼-inch (6-mm) thick, turning the dough and dusting with more oat flour to prevent sticking. Trim each round to make an even circle (a pizza wheel works well here), and place on a 6-inch (15-cm) square of parchment. If the rounds have become soft or sticky, chill them for about 10 minutes (this will depend on the temperature of your kitchen). Lay the dough rounds, still on their pieces of parchment, on your work surface. Divide the blueberries among the rounds, mounding them toward the center and a little off to one side. Use the parchment to help fold the dough over itself, making a half-moon shape. If the dough cracks, use your fingers to squish it back together. Repeat with the remaining pies. Use the tines of a fork to crimp the edges closed and seal the pies, and trim away excess dough from the edges. Lay the pies on a rimmed baking sheet lined with parchment paper and chill until firm, 20 minutes. Position a rack in the upper third of the oven and preheat to 400°F (200°C). To finish, remove the pies from the refrigerator, brush with the milk and sprinkle with the sugar. Use the tip of a paring knife to cut a few slits in the top of each pie to allow the steam to escape. Bake the pies until the dough is golden and the fruit is bubbling, 22–30 minutes. Remove from the oven, and, while hot, use a thin metal spatula to remove the pies from their parchment and onto a cooling rack (otherwise, the caramelized juices will cause them to stick). Let cool to warm, then enjoy warm or at room temperature. They are best the day of baking when the crust is crisp, but will keep for up to 2 days airtight at room temperature. ## GINGER PEACH CUTOUT PIE {SWEET RICE, OAT, MILLET} Peach pie always seems like a big production. There are hundreds of different recipes out there and everyone's got an opinion on flavorings, thickeners, lattice vs. double crusts, white vs. yellow peaches, to peel or not to peel... and that doesn't even touch on the hotly debated topic of shortening vs. butter in the crust. It really needn't be so difficult. I threw this one together with an extra batch of pie dough left over from another project, some white and yellow peaches that were cluttering my counter, and a smattering of crystallized ginger hiding in my cupboard. The whole project was simply satisfying. Bring this to a party and watch them treat you like the domestic god or goddess you are. Half a cup of ginger will thrill true ginger fiends like myself; take it down to ¼ or ⅓ cup (40 or 60 g) if you prefer just a hint. Use whatever shade of peach (or nectarine) you have on hand. I find no need to peel most peaches; just give them a rinse and rub off some of the fuzz with a clean kitchen towel. Cornstarch is my thickener of choice, as it leaves behind not a trace of flavor or texture, and I'll give another shout-out to the cutout top crust, which is both stupid easy to make and oh so pretty to look at. Serve slices of this pie with any of the ice creams here and here, or with a plume of softly Whipped Cream or Whipped Crème Fraîche. MAKES ONE 9-INCH (23-CM) PIE, ABOUT 10 SERVINGS CRUST 1 recipe Pie Dough for Cutout Pies GF oat flour, for dusting FILLING 6–7 medium peaches (2¼ lb [1 kg]), ripe but firm (about 6½ cups [900 g], sliced) Finely grated zest from 1 medium lemon 1 tbsp (15 ml) lemon juice ¾ cup (150 g) organic granulated cane sugar 3 tbsp (17 g) cornstarch ⅛ tsp fine sea salt ⅓–½ cup (60–90 g) finely chopped crystallized ginger FOR FINISHING 1 tbsp (15 ml) milk or cream 1 tbsp (15 g) coarse sugar (demerara or turbinado) For the crust, prepare and chill the pie dough as directed. Position a rack in the lower third of the oven, top with a baking stone if you've got one and preheat to 425°F (220°C). Line a rimmed baking sheet with parchment paper for easy cleanup. Make a bottom crust with the larger round of pie dough. Chill the crust until firm, 30 minutes (or wrap and chill for up to 1 day). On a surface dusted lightly with oat flour, roll out the smaller round of dough to a 9-inch (23-cm) round about ¼-inch (6-mm) thick. Use a fluted biscuit cutter (or small glass) to cut 1½- and/or 2-inch (3.8- and/or 5-cm) rounds close together. Stack the rounds on a plate and chill until firm, 20 minutes. Optionally, press the dough scraps together, wrap and chill until firm, and repeat the rolling/cutting process once more. To make the filling, halve the peaches and remove the pits, then cut each half into 8 wedges; you should have about 6½ cups (900 g). Place the peaches in a large bowl and add the lemon zest and juice, sugar, cornstarch, salt and ginger. Toss gently to combine and let sit for a few minutes to draw out the juices a bit. Spoon the fruit and juices into the chilled crust, smoothing it flat. Place the chilled dough rounds over the top of the fruit, leaving lots of windows for steam to escape. To finish, brush the rounds with the milk and sprinkle with the coarse sugar. Place the pie on the lined baking sheet and place in the oven on the baking stone. Bake at 425°F (220°C) for 15 minutes, then decrease the oven temperature to 375°F (190°C) and continue baking until the crust is golden and the fruit is bubbling furiously, 35–50 more minutes. Let the pie cool completely to set the fruit, at least 2 hours, then cut into wedges and serve at room temperature. The pie is best the day of baking and will keep at room temperature for up to 1 day or refrigerated for up to 3 days. ## RUSTIC PLUM, TEFF AND HAZELNUT TART {SWEET RICE, OAT, TEFF} Plums' high water content makes them a challenge in the kitchen. Here, a hazelnut frangipane absorbs some of their liquid, puffing up around the slices and melding with a flaky teff flour pastry. The malty flavor of the teff pairs well with the toasted hazelnuts and tart, juicy plums, all drizzled with a touch of floral honey. The sugared edges become wildly crisp in the oven and make an addictive contrast to the tender middles. Do be sure to use parchment paper for rolling out the dough; it's difficult to transfer the large piece of dough onto the baking sheet without it. And give the tart a thorough bake on the lowest oven rack, letting the frangipane turn a deep golden all over; otherwise, the bottom crust will be soggy from those pesky plums. MAKES 1 LARGE FREE-FORM TART, 12–15 SERVINGS CRUST 1 recipe Teff Pie Dough, chilled Teff flour, for dusting FRANGIPANE AND PLUMS 1 cup (120 g) raw hazelnuts ¼ cup plus 2 tbsp (75 g) organic granulated cane sugar ¼ cup (40 g) sweet white rice flour ¼ tsp fine sea salt 6 tbsp (85 g) unsalted butter, softened but cool 1 large egg 1 tsp vanilla extract 1 lb (450 g) ripe but firm plums (about 7 medium) FOR FINISHING 1 tbsp (15 ml) milk or heavy cream, for brushing the dough 2 tbsp (25 g) organic granulated cane sugar, for sprinkling 2–4 tbsp (30–60 ml) honey, for drizzling For the crust, make the dough, completing the fraisage and all the optional folds; this will make puff pastry–like layers. Chill the dough until cold as instructed. To make the frangipane, position a rack in the lower third of the oven and preheat to 350°F (175°C). Spread the hazelnuts on a small, rimmed baking sheet and toast until the skins are loose, 10–12 minutes. Let cool completely, then rub off as much of the skins as you easily can. In the bowl of a food processor, combine the hazelnuts, sugar, rice flour and salt. Process until the nuts are very finely ground, 30–60 seconds. Add the softened butter, egg and vanilla extract and process to a paste, 30 seconds. Don't overprocess or the mixture could break and become greasy and separated. Let the dough stand at room temperature until slightly softened, 5 minutes in a warm kitchen or 15 minutes in a cool kitchen. Sandwich the dough between 2 large pieces of parchment paper dusted lightly with teff flour, and gently begin pressing it flat, then roll it into a 12 by 16–inch (30 by 40–cm) rectangle. As you work, periodically peel back the top piece of parchment, dust the dough lightly with flour, replace the parchment, grasp the dough sandwich with both hands and flip the whole thing over. Peel off the new top piece of parchment, dust with flour and continue to roll. If the dough is uneven, cut off the long bits and press them onto the short bits, rolling to adhere. When your rectangle measures 12 by 16 inches (30 by 40 cm), trim the sides so that they're even and straight. If your dough becomes soft or sticky at any point, slip it onto a baking sheet, parchment and all, and chill it for 10–20 minutes to firm the butter. Slide the dough onto a sheet pan, still on the parchment. Use a small offset spatula to gently spread the hazelnut paste over the dough in an even layer, leaving a 1-inch (2.5-cm) border all the way around. Gently fold over the edges to make a generous 1-inch (2.5-cm) crust. Chill the dough until firm, 30 minutes. Prepare the plums. If they cling to the pit, cut the flesh off the pit in large pieces; otherwise, cut the plums into quarters and discard the pits. Slice the plums thinly, discarding the ends that are mostly skin. Keeping the plum slices together, fan them atop the chilled frangipane in 12–15 clumps; this makes the finished tart easier to cut. You may not need all of the plums, and it's better to err on the side of too little, as excess fruit will lead to a soggy crust. To finish, brush the edges of the tart with the milk. Sprinkle the sugar all over the plums and crust. Bake the tart until the hazelnut paste is puffed and deeply bronzed and the bottom of the tart is crisp, 40–50 minutes, rotating the tart toward the end of the baking time. The crust will look dark because of the teff flour, but take care not to underbake it or the bottom will be soggy. Remove from the oven and let cool for at least 30 minutes and up to several hours. Just before serving, drizzle all over with the honey and cut into 12–15 rectangles. ## FIG AND CHÈVRE BITES WITH HONEY AND THYME {SWEET RICE, OAT, MILLET} When I traveled to France's _très romantique_ Loire Valley many years ago, I hoped to meet the man of my dreams. Instead, I met the cheese of my dreams: a log of goat cheese rolled in ash and aged until it formed a creamy, Brie-like exterior and dense, crumbly middle. I gladly eschewed dessert in favor of the cheese carts wheeled to the postprandial table. These little bites of flaky pastry topped with aged goat cheese, fresh figs and a sprinkle of honey, thyme and black pepper bring the cheese course into dessert—though they work equally well as a starter when accompanied by a glass of bubbly and will make you the star of any potluck. A bite of flaky crust against funky cheese, gooey fig and fresh thyme tastes like love. These are best served warm from the oven, but the dough rounds can be prepared, topped and chilled until serving time, up to one day ahead. That said, we brought cold, two-day-old leftovers to a party and they disappeared in seconds. Look for a French-style aged goat cheese that looks a little bit like Brie on the outside, sometimes called a _crottin_ and sometimes rolled in ash before being aged (such as Delice de Poitou). I've also baked these bites with several different types of Northern Californian cheeses and all work well: Cypress Grove's Humboldt Fog, Cowgirl Creamery's Mt. Tam and Laura Chenel's Goat Brie and Ash-Rinded Buchette. If aged chèvre isn't the cheese of your dreams, feel free to use a fresh chèvre or goat Brie instead. Do look for a cheese that isn't too soft, lest it run all over the place in the oven. Similarly, look for figs that are ripe but firm, such as Black Missions. MAKES 14–16 (3-INCH [8-CM]) BITES CRUST 1 batch Flaky Pie Dough GF oat flour, for dusting FILLING 8 large figs, such as Black Mission (ripe but firm) 6 oz (175 g) aged chèvre (or other cheese, see headnote), cut into 14–16 slices 1 tbsp (3 g) fresh thyme leaves Flaky sea salt, such as Maldon Cracked black pepper 1–2 tbsp (15–30 ml) honey For the crust, prepare the pie dough with the fraisage and 1–2 turns and chill as directed. If the pie dough is very firm, let it soften at room temperature until malleable, about 5 minutes. On a work surface dusted lightly with oat flour, roll out the chilled dough into a rough rectangle that measures ⅜-inch (1-cm) thick, rotating the dough frequently, dusting it with just enough flour to keep it from sticking and sweeping off excess flour with a pastry brush. When the dough has been rolled out, cut out 3-inch (7-cm) rounds with a fluted biscuit cutter or the top of a glass, cutting the rounds as close together as possible. (Note: If your figs are smaller, cut out smaller rounds of dough.) Stack the dough rounds on a plate, cover, and chill until firm, 30 minutes or up to 1 day. Optionally, press the dough scraps together, and repeat the chilling/rolling/cutting process once more. Position a rack in the lower third of the oven and preheat to 375°F (190°C). Line a rimmed baking sheet with parchment paper. For the filling, cut the stems off the figs and slice each one in half lengthwise. Place the chilled dough rounds 1–2 inches (2.5–5 cm) apart on the prepared baking sheet. Top each round with a slice of chèvre and a fig half placed cut side up, pressing the figs gently into the chèvre to keep them in place. Bake the bites until the dough is golden, 22–27 minutes. Remove from the oven and place on a serving platter, allowing them to cool for a few minutes. Sprinkle with the thyme leaves, salt, pepper, and a drizzle of honey. The bites are best served when still warm from the oven, but they will keep at room temperature for up to several hours or refrigerated for up to 2 days. Reheat before serving for best results. ## MAPLE TEFF APPLE PIE WITH WALNUT CRUMBLE {SWEET RICE, OAT, TEFF} This was the first pie I baked with my flaky gluten-free pie dough, and I knew I'd finally struck gold when I literally forgot that the pie was gluten-free. The juicy apple filling is kissed with maple syrup and lemon, which keep the apples tasting bright and earthy. A maple sugar and teff crumb topping makes an attractive lid without the fuss of a top crust, and the slight bitterness of walnuts adds dimension (though pecans can take their place, too). Teff flour in the crust and crumble adds notes of caramel (or try the more vanilla version of this pie made with all oat flour, below). MAKES ONE 9-INCH (23-CM) PIE, ABOUT 10 SERVINGS CRUST 1 recipe Teff Pie Dough Teff flour, for dusting FILLING 2¼ lb (1 kg) tart, firm baking apples, such as Granny Smith (6–8 medium apples) ½ cup (120 ml) maple syrup (preferably grade B) Finely grated zest from ½ large lemon 2 tbsp (30 ml) strained lemon juice 1 tbsp (6 g) cornstarch ½ tsp ground cinnamon ⅛ tsp fine sea salt CRUMBLE ¼ cup plus 2 tbsp (35 g) GF oat flour 2 tbsp (15 g) teff flour ¼ cup plus 2 tbsp (50 g) maple sugar (or packed organic light brown sugar) ¼ tsp ground cinnamon ¼ tsp freshly grated nutmeg ¼ tsp fine sea salt 5 tbsp (70 g) cold, unsalted butter ¾ cup (80 g) raw walnut halves Vanilla Bean Ice Cream or Maple Bourbon Whipped Cream for serving For the crust, prepare the dough, shape into a 9-inch (23-cm) crust as directed, and chill the unbaked crust until firm, at least 30 minutes. For the filling, peel the apples, cut them off the core and slice them a scant ¼-inch (6-mm) thick. You should have 6 cups (900 g) total. Place the apple slices in a large bowl and gently toss with the maple syrup, lemon zest and juice, cornstarch, cinnamon and salt. Let sit while you prepare the crumble, 10–20 minutes, tossing a few times. Meanwhile, position a rack in the lower third of the oven, place a baking stone on the rack if you have one and preheat to 350°F (175°C). If there are any holes in the pie crust, patch them with leftover dough scraps. To make the crumble, in the bowl of a food processor, combine the oat and teff flours, maple sugar, cinnamon, nutmeg and salt. Pulse once or twice to combine, then pulse in the butter until the mixture looks like coarse meal, with no large butter chunks remaining. Add the walnuts and pulse several more times until the nuts are broken down a bit and the mixture begins to clump together; don't overmix. Cover and chill if not using right away. Pour the apples and their liquid into the unbaked crust, and pack the apples snugly. Crumble the topping evenly over the apples, breaking it into some hazelnut-sized chunks and letting the rest be loose. Bake the pie until the top is golden and the juices are bubbling up thickly, 60–75 minutes. The topping and crust will look dark from the teff flour, but if it is getting too dark, reduce the oven temperature to 300°F (150°C). Let the pie cool most of the way, at least 2 and up to 8 hours to thicken the juices. VARIATIONS MAPLE OAT APPLE PIE WITH WALNUT CRUMBLE For a more kid-friendly version of this pie, use the Flaky Pie Dough in place of the teff crust, and make the topping with ½ cup (55 g) oat flour instead of the oat/teff blend. MAPLE BOURBON APPLE PIE WITH WALNUT CRUMBLE I like this grown-up version best with the milder, all-oat variation, above. Reduce the maple syrup to ⅓ cup (85 ml) and add ¼ cup (60 ml) GF bourbon to the apple mixture. Increase the cornstarch to 2 tablespoons (11 g) to help absorb the extra moisture. ## BUCKWHEAT PEAR GALETTES WITH WALNUTS AND SALTY CARAMEL {SWEET RICE, BUCKWHEAT, OAT} Biting into one of these little tarts when warm from the oven is sheer ecstasy. Crisp crust shatters against tender pears, gooey caramel drips everywhere and nubs of walnuts add their roasty flavor to the mix. The crust sings with the bold flavor of buckwheat, which always reminds me of a blend of hazelnuts and cinnamon, with earthy notes that smack of coffee or chocolate. Here, the dark crust plays dramatically against the white flesh of ripe pears. Toasted walnuts absorb the pears' juices and keep the bottom crust crisp. I think my friend Erika, who tested this recipe, said it best: "I feel like I'm eating a fancy-ass pastry from Tartine, only I MADE IT." MAKES EIGHT 3½-INCH (9-CM) GALETTES CRUST 1 recipe Buckwheat Pie Dough Buckwheat flour, for dusting FILLING ½ cup (55 g) raw walnut halves 4 medium ripe but firm pears, such as Bartlett (about 1½ lb [680 g]) 1 tbsp (15 ml) lemon juice 2 tbsp (30 ml) cream or milk 3 tbsp (35 g) organic granulated cane sugar ½ cup (120 ml) Salty Caramel (any variation, at room temperature or warm enough to drizzle Flaky sea salt, such as Maldon, for sprinkling (optional) NOTE: Melon ballers aren't just for making fussy, 1970s-inspired fruit salads; they also make a handy tool for coring pears. Halve a pear lengthwise, then use the melon baller to scoop away the stem, seeds and blossom. For the crust, prepare the buckwheat pie dough, preferably with the fraisage and 1–2 turns, and chill as directed. Place the chilled dough on a surface dusted lightly with buckwheat flour. Use a sharp chef's knife to divide the dough into 8 equal portions, and place 7 of the portions back in the refrigerator to keep cool. Use a rolling pin to roll out the first portion of dough into a 6-inch (15-cm) round a scant ⅛-inch (3-mm) thick, flipping and dusting the dough as you go to prevent it from sticking and sweeping away excess flour. Trim the edges to make an even round. Place the dough round on a plate and chill. Repeat with the remaining dough portions, stacking them on the plate and dusting with a bit of flour to prevent sticking. Cover and chill until firm, at least 30 minutes and up to 1 day. Meanwhile, to make the filling, position racks in the upper and lower thirds of the oven and preheat to 350°F (175°C). Spread the walnuts on a small, rimmed baking sheet and toast on the upper rack until golden and fragrant, 8–10 minutes. Let cool, then chop fairly finely. Increase the oven temperature to 400°F (200°C). Peel the pears, halve them lengthwise, and remove their cores, stems and blossoms. Place a half cut side down and, keeping the slices together, slice lengthwise ¼-inch (6-mm) thick. Repeat with the remaining pears. Drizzle the pear halves with the lemon juice to keep them from oxidizing while you work; this also adds a bit of brightness to the finished galettes. Divide the dough rounds between 2 rimmed baking sheets lined with parchment paper for easy cleanup. Divide the chopped walnuts among the rounds, mounding them in the center. Keeping the slices together, use a small knife or offset spatula to transfer a pear half to the top of a tart, placing it over the nuts and fanning out the slices a bit. Gently fold up the dough around the fanned pear slices to create a 1-inch (2.5-cm) lip, creasing and pleating the dough as you go. If it cracks, don't worry—just press it back together. Use your palm to gently flatten down the galette slightly. If the dough has softened, place the galettes back in the refrigerator and chill until firm. Brush the dough lightly with the cream and sprinkle the pears and dough evenly with the sugar. Bake the galettes until the pear juices bubble furiously and the dough is golden (you will have to look closely, as the dough will be dark and crusted in sugar), 30–40 minutes, rotating the pans front to back and top to bottom for even browning after the first 20 minutes. Remove the galettes from the oven and let cool for at least 15 minutes or up to several hours. To serve, drizzle all over with the caramel sauce and top with a few flecks of flaky salt if desired. The galettes are best the day of baking but will keep at room temperature for 1 day or refrigerated airtight for up to 2 days. ## PUMPKIN PIE WITH A BUCKWHEAT CRUST {SWEET RICE, BUCKWHEAT, OAT} My sweetie and I are obsessed with pumpkin pie, and would gladly eat it every day, all year round. And yet, I can understand where the world's pumpkin pie haters are coming from. Canned pumpkin can have a metallic, vegetal taste. The filling can be curdled and watery, or overly thick and starchy, plagued by too many heavy spices. To mitigate these pitfalls, I've taken a few tips from _Cook's Illustrated,_ French patisserie and my own kitchen. First, I take the time to roast my own squash, which makes for a bright, fresh-tasting filling. Since most pumpkin puree actually comes from a squash in the butternut family, butternut is my go-to (though kabocha, carnival and red kuri squash also make excellent pie). Next, I add a bit of flour to the custard, a traditional French technique that helps absorb excess moisture. Finally, I give the squash puree a brief cook on the stove with the spices and sweeteners; this evaporates excess moisture and melds the flavors together. Maple syrup, fresh ginger and nutmeg and crème fraîche all make the filling sparkle, and all that pumpkin spice deliciousness is served up in a super flaky buckwheat crust that stays crisp longer than you'd guess. For this pie, as for all custard-based pies and tarts, keep an eye on your oven temperature and be careful not to overbake the pie, lest the filling become grainy and watery. Watch the pie for visual cues of doneness, and be sure to allow 2 to 3 hours post-baking for cooling the pie; it will still be cooking from residual heat. MAKES ONE 9-INCH (23-CM) PIE, ABOUT 10 SERVINGS CRUST 1 recipe Buckwheat Pie Dough FILLING ¼ cup (50 g) organic granulated cane sugar 2 tbsp (17 g) sweet white rice flour ½ tsp ground cinnamon ¼ tsp freshly grated nutmeg ⅛ tsp ground allspice ½ tsp fine sea salt 2 cups (460 g) roasted squash puree (see Note) or canned pumpkin puree ¼ cup plus 2 tbsp (90 ml) maple syrup (preferably grade B) 1 tsp packed finely grated fresh ginger 1 cup (235 ml) whole milk 3 large eggs ½ cup (120 ml) Crème Fraîche or sour cream 1 tsp vanilla extract FOR SERVING (OPTIONAL) Maple Bourbon Whipped Cream For the crust, prepare and parbake the buckwheat pie crust as directed. Position a rack in the lower third of the oven and preheat to 400°F (200°C). If you have a baking stone, place it on the rack. Place your crust on a rimmed baking sheet lined with parchment for easy cleanup. If your crust has cooled, place it in the oven until hot just before pouring in the custard, 5–10 minutes. To make the filling, in a large saucepan, whisk together the sugar, sweet rice flour, cinnamon, nutmeg, allspice and salt. Whisk in the squash puree, maple syrup and ginger. Place the pot over medium heat and stir frequently until the mixture comes to a sputtering simmer. Continue to cook, stirring constantly, until the mixture is thick and shiny, 5 more minutes. Remove from the heat. Whisk in the milk, then the eggs, crème fraîche and vanilla. Strain the custard through a medium-mesh strainer (fine-mesh will take forever and make you hate life); alternatively, puree with an immersion blender. Pour the custard into the hot pie crust and very carefully transfer to the oven. Bake at 400°F (200°C) for 10 minutes, then lower the temperature to 300°F (150°C) and bake for 20–35 more minutes, or until the outer edges are set and slightly puffed and the center wobbles like Jell-O. Let the pie cool completely at room temperature, 2–3 hours; it is still cooking from residual heat. For the cleanest slices or if the pie is soft, chill until firmer, 1–2 hours. Slice into wedges and serve cool or at room temperature with whipped cream if you like. The pie is best the day of baking but will keep, refrigerated airtight, for up to 3 days. NOTE: To make your own roasted squash puree, cut a large butternut squash in half lengthwise and leave the seeds in for now (they're easier to remove post-roasting). Place the halves with a cut side down on a lightly oiled, rimmed baking sheet and roast in a 375°F (190°C) oven until very tender and collapsing slightly, about 45 minutes. Let cool, scoop out and discard the seeds and strings, and scoop out and reserve the flesh, discarding the skin. Puree the flesh in a food processor until smooth. The puree will keep, refrigerated airtight, for up to 2 weeks. ## MEYER LEMON AND VANILLA BEAN BUTTERMILK PIE {SWEET RICE, OAT, MILLET} This pie is one of my very favorite cures for the midwinter doldrums, bridging the gap between the spiced fruit pies of fall and the first of the strawberries and rhubarb of early spring. Meyer lemons, a lemon-mandarin hybrid common to California, have a sweet-tart flavor that reminds me of sunshine, flowers and brighter days to come. Here, thick buttermilk custard contrasts with shatteringly crisp pie crust. Flecks of vanilla bean bring out the floral notes in the lemons, and cream adds richness to round out the lemons' acidity. It needs no accompaniment, but slices are nice when dressed up with Honey Candied Kumquats, fresh berries or segments of blood orange or tangerine. This pie is best the day of baking, when the crust is at its crispest, but it will keep well, refrigerated airtight, for up to 3 days. If Meyers aren't about, make an extra-tangy pie with regular lemon zest and juice. MAKES ONE 9-INCH (23-CM) PIE, ABOUT 10 SERVINGS CRUST 1 recipe Flaky Pie Dough FILLING ¾ cup plus 2 tbsp (175 g) organic granulated cane sugar Finely grated zest from 2 large (or 3 smaller) Meyer lemons (1 packed tbsp, or 10 g) 1 vanilla bean ¼ cup (40 g) sweet white rice flour ¼ tsp salt 2 large eggs 2 large egg yolks 1¼ cups (300 ml) fresh, well-shaken buttermilk ½ cup (120 ml) heavy cream ¼ cup (60 ml) strained Meyer lemon juice (from 1–2 lemons) For the crust, prepare and parbake the pie crust as directed. To make the filling, position a rack in the lower third of the oven, top with a baking stone if you've got one and preheat to 325°F (165°C). Place the sugar in a medium bowl and add the lemon zest. Slit the vanilla bean down the center, use the back of the knife to scrape out the seeds and add them to the sugar, reserving the pod for another use (such as Vanilla Extract. Use your fingertips to rub the zest and vanilla seeds into the sugar until it feels damp and slightly clumpy. Whisk the flour and salt into the sugar until combined, then whisk in the eggs and yolks until smooth, whisking gently to avoid incorporating excess air into the batter. Slowly whisk in the buttermilk, then the cream and lemon juice until smooth. If your pie crust has cooled, return it to the oven for about 5 minutes to get it hot, patching any holes with leftover dough if necessary. Pour the filling into the hot crust and carefully transfer to the oven. Bake the pie until mostly set with a slight, Jell-O-like wobble, 40–50 minutes. It will be puffed all over, and will barely wiggle when you give it a shake. Cool the pie completely, about 2 hours. The pie can be served at room temperature, where it will keep for up to 4 hours, or chilled, which will yield cleaner slices. The pie is best the day of baking, when the crust is crisp, but extras will keep airtight in the refrigerator for up to 3 days. NOTE: Since the custardy filling leaks easily here, be sure to save scraps of pie dough for patching any tiny holes in the parbaked crust. Be sure to use fresh, well-shaken buttermilk in the filling; older buttermilk can become thin and watery, leading to a broken filling. While the pie bakes, watch the oven temperature like a hawk (preferably with an oven thermometer or two); most ovens don't run true to temperature and a too-hot oven can cause the filling to crack and become grainy. # TARTS I used to loathe baking tarts. Butter was softened only to be mixed into dough and chilled again. The delicate dough was rolled out, fitted into the pan and chilled again. Pie weights were needed to keep the dough aloft, which often slumped and squished down into the pan despite my best efforts. I finally discovered the secret to positive tart experiences in a lemon bar recipe that called for a shortbread-like dough that was simply pressed into the pan. I mixed up the dough, pressed it into a tart pan, and baked it sans pie weights, and voilà—easy-peasy perfect tart crust. I've tweaked the recipe many times over the years, and I've ditched the wheat flour and added almond, sweet rice and oat flours (plus some alternative variations). I use my stand mixer to work in the cold butter, which gets pressed into the pan straight away. After a quick freeze, into the oven it goes, staying resolutely upright, no weights necessary. Almond and oat flours make an earthy base for both butterscotchy brown butter crème fraîche custard and peaches, as well as a floral grapefruit custard tart laced with elderflower liqueur. A deep, dark cocoa crust houses a naturally sweetened pecan pie filling bursting with fresh cranberries. Mesquite flour and brown sugar make a wildly flavorful shell for creamy pudding, bananas and salty caramel. Chestnut flour enhances a classic apple tart. And a vegan coconut flour crust adds crunch to Hawaiian-inspired coconut custard and fresh berries. The tart recipes in this book are some of my favorites, and I hope they become as not-loathed in your kitchen as they have in mine. NOTE: All tarts in this section should work interchangeably in tart pans of the following dimensions: one 9-inch (23-cm) round tart crust, one 12 by 4-inch (30 by 10-cm) rectangular tart crust or eight 4-inch (10-cm) round tartlet crusts. Adjust the baking time as needed. ## VANILLA ALMOND TART CRUST Work cold butter into the flour mixture to form a crumbly, clumpy dough. Press the edges into the pan first, then press the bottom into the pan to form an even layer. Freeze, then parbake until golden. {ALMOND, SWEET RICE, OAT} At a patisserie where I once worked, the owner was so committed to using 100 percent organic ingredients that, because blanched almonds weren't available organic, some days were spent blanching the nuts for hours at a time. I didn't mind the task, standing in place and slipping the loose skins off of nuts that had been briefly boiled. But what I did mind was that the majority of the almonds were ground into tart dough. As my preferred glutinous tart dough contains just butter, flour, sugar and salt, the addition of these precious almonds seemed superfluous. I changed my mind when it came time to make a gluten-free sweet tart dough. Here the almond flour is the magic ingredient that helps the dough hold together with no gums and a minimum of starches. The tiny nubbles of almond give the dough the sandy consistency of fine shortbread, oat flour adds earthy flavor and judicious amounts of sugar and salt bring the taste into balance. Cold butter gets rubbed into the dough with the help of a stand mixer, and the crumbly dough gets pressed right into the pan, no chilling or rolling necessary. As an added bonus, after a brief stint in the freezer, the dough gets baked as is, no pastry weights needed to hold the dough up the sides of the pan. Don't forget to press the sides and bottom of the hot crust with the back of a spoon, otherwise the delicate crust will be difficult to slice (though still delicious). MAKES ONE 9-INCH (23-CM) ROUND TART CRUST, ONE 12 BY 4–INCH (30 BY 10–CM) RECTANGULAR TART CRUST OR EIGHT 4-INCH (10-CM) ROUND TARTLET CRUSTS ½ cup (60 g) blanched almond flour (such as Bob's Red Mill) ½ cup (80 g) sweet white rice flour ½ cup (55 g) GF oat flour 2 tbsp (12 g) tapioca flour ¼ cup (50 g) organic granulated cane sugar ¼ plus ⅛ tsp fine sea salt 6 tbsp (85 g) cold, unsalted butter, diced into ½-inch (1.3-cm) cubes 1 tsp vanilla extract Position a rack in the center of the oven and preheat to 375°F (190°C). In the bowl of a stand mixer fitted with the paddle attachment, combine the almond, sweet rice and oat flours with the tapioca starch, sugar and salt. Scatter the butter pieces over the top and drizzle with the vanilla extract. Turn the mixer to medium-low and run until the dough comes together in clumps and the butter is worked through, 3–5 minutes. Dump the crumbs into the desired tart pan(s) with removable bottom(s) and press the dough evenly into the pan, starting with the sides and then moving to the bottom, keeping the edges square. (It usually takes me about 10 minutes to make it look pretty.) Prick the bottom of the crust all over with the tines of a fork and freeze until firm, 15–30 minutes. Place the tart pan on a rimmed baking sheet and bake until pale golden and firm to the touch (18–22 minutes) for a parbaked crust, or until golden all over (5–10 minutes longer) for a fully baked crust. (If making tartlets, decrease the overall baking time by 5–10 minutes.) Remove the crust from the oven and, while it's still hot, press the sides and bottom with the back of a spoon. This will help it hold together when cool. VARIATIONS COCOA ALMOND Use ½ cup (45 g) cocoa powder (preferably Dutch-process) in place of the oat flour and decrease the butter to 5 tablespoons (70 g). Since the dough is dark, it can be difficult to tell when the crust is done, so do set a timer and look closely for edges that are beginning to darken and pull away from the sides of the pan. If the chocolate begins to smell at all burnt, remove the crust immediately. MUSCOVADO MESQUITE Use ½ cup (60 g) mesquite flour (sifted after measuring to eradicate lumps) in place of the oat flour and ¼ cup (50 g) muscovado (or packed organic light or dark brown) sugar in place of the granulated sugar. Bake this variation at 350°F (175°C) since mesquite flour is more sensitive to temperature than other flours. CHESTNUT Use ½ cup (50 g) chestnut flour in place of the oat flour. See here for a vegan variation made with coconut oil. A COUPLE OF KEY TECHNIQUES MAKE THIS TART CRUST SHINE • Use a stand mixer fitted with the paddle attachment to rub cold butter into the dough. A food processor smooths out the almond flour too much and it loses its delicate texture. It takes a good 3–5 minutes for this to happen. Alternatively, use your fingertips to rub the butter into the dough. • Take the time to press the dough evenly into the pan, starting with the sides and then moving to the bottom, keeping the edges square. In a 9-inch (23-cm) round pan, the dough will be about ¼-inch (6-mm) thick. You can use a flat-bottomed glass to press the bottom of the dough smooth. • When the dough has finished baking and is still hot, use the back of a spoon to gently but firmly press the bottom and sides of the crust. This will help it hold together better. ## COCONUT CREAM AND RASPBERRY TART {VEGAN} {ALMOND, SWEET RICE, COCONUT} This tart gets a triple dose of coconut: coconut flour and oil in the crust and coconut milk in the filling. Fresh raspberries perch atop a vanilla-flecked coconut milk custard, all nestled into a coconut flour crust that tastes like a cross between a macaroon and shortbread. A smear of chocolate keeps the crust crisp and pairs well with both the coconut and the berries. The whole thing is so satisfying in taste and texture that no one will ever suspect it of being both vegan and gluten-free. This crust is similar in method to the Vanilla Almond Tart Crust but with a few differences. A bit of water is necessary to help the dough stick together when baked; without, it crumbles into oblivion. Also, a light coating of cooking spray or oil is needed to prevent the stickier dough from adhering to the pan. Feel free to use this crust for any of the tarts in this book. And if you can't find fresh raspberries, top the tart with sliced strawberries, other summer berries, or Honey Candied Kumquats instead. MAKES ONE 12 BY 4–INCH (30 BY 10-CM) RECTANGULAR TART OR ONE 9-INCH (23-CM) ROUND TART, 8–10 SERVINGS CRUST Vegetable oil spray or 1 tsp melted coconut oil, for the pan ½ cup (60 g) blanched almond flour ⅓ cup (50 g) sweet white rice flour ⅓ cup (40 g) coconut flour ¼ cup (45 g) organic granulated cane sugar ¼ plus ⅛ tsp fine sea salt 7 tbsp (80 g) coconut oil (at cool room temperature or lightly chilled) 1 tsp vanilla extract 2 tbsp (30 ml) cold water 2 oz (55 g) bittersweet chocolate, chopped (about ⅓ cup) FILLING 1 (13.5-oz [400-ml]) can full-fat coconut milk ½ vanilla bean, split lengthwise and scraped 3 tbsp (35 g) organic granulated cane sugar 3 tbsp (18 g) cornstarch Pinch of fine sea salt 2 pints (340 g) fresh raspberries, or enough to cover the top of the tart in a single layer To make the crust, position a rack in the center of the oven and preheat to 350°F (175°C). Lightly spray a 12 by 4–inch (30 by 10–cm) rectangular tart pan or a 9-inch (23-cm) round tart pan with a removable bottom with cooking spray or brush it with a teaspoon of melted coconut oil. In the bowl of a stand mixer fitted with the paddle attachment, combine the almond, sweet rice and coconut flours with the sugar and salt. Scatter the coconut oil in clumps over the top and drizzle with the vanilla extract. Beat on medium-low speed until the coconut oil is evenly incorporated and the dough looks clumpy, 2–3 minutes. With the mixer running, slowly drizzle in the cold water, mixing until the dough comes together in large clumps. Dump the crumbly dough into the prepared tart pan and press the dough evenly into the pan, starting with the sides and then moving to the bottom, keeping the edges square. Prick the bottom of the crust all over with the tines of a fork and freeze until firm, 15–30 minutes. Place the tart pan on a rimmed baking sheet and bake until golden all over, 20–25 minutes. Remove the crust from the oven and, while it's still hot, scatter the chopped chocolate over the bottom of the crust. Let the chocolate melt, 1 minute, then use the back of a small spoon to spread the melted chocolate over the bottom and up the sides of the crust. Let cool to room temperature, then chill until the chocolate is set, 10–20 minutes. To make the filling, combine the coconut milk and vanilla pod and scrapings in a medium-sized, heavy-bottomed saucepan. Heat over medium heat, stirring occasionally, until the milk is hot and steamy (don't let it boil or it may scorch or separate). Remove from the heat, cover and let steep for 10 minutes or up to 1 hour to infuse with the vanilla. Meanwhile, whisk together the sugar, cornstarch and salt in a small bowl. When the coconut milk has steeped, whisk a few tablespoons of the coconut milk into the cornstarch mixture to make a slurry, then whisk the slurry into the warm coconut milk. Cook the pudding over medium heat, whisking constantly and making sure to scrape the bottom and corners of the pot, until it comes to a low boil. Still stirring, boil for 1–2 minutes; it should be the texture of yogurt. Immediately strain the pudding through a mesh sieve and into a heatproof measuring pitcher. Pour the hot coconut cream into the chocolate-lined tart shell, spreading it evenly and taking care not to disturb the melty chocolate. Chill until set, 2 hours. When ready to serve, release the sides from the pan by pushing the tart bottom upward, and slide the tart onto a large cutting board. Top the tart with the raspberries. Cut into pieces and serve. ## PEACH BROWN BUTTER CRÈME FRAÎCHE TART {ALMOND, SWEET RICE, OAT} My sweetie and I were once taken to a ritzy San Francisco restaurant where one prix-fixe meal costs more than we spend on groceries in a month. Expecting an evening full of cozy decadence, we were disappointed when the first dish brought to us was a bowl of torn fish stomach served on a gelée made from the unfortunate fish's own juices and topped with its roe. After a dozen courses, each making us squirm more than the last, we staggered home, pondering whether foodies are so jaded, so weary of pork belly and truffles and hand-rolled pasta, that they need to be served fish innards for a gustatory thrill. This tart is pretty much the opposite. It's as comfy as a slice of peach pie topped with vanilla ice cream, only reconfigured and fancied up a bit. A cookie-like crust crumbles against tangy, butterscotch-flavored custard that envelops tender peaches. Eating a slice warm from the oven is a little like slipping on a pair of sweats after sitting in a fancy restaurant for five hours in a tight dress eating fish innards. But nice sweats. Designer yoga pants, say. This tart is a crowd-pleaser, but with enough little twists to hold the interest of even the most jaded foodie. MAKES ONE 9-INCH (23-CM) TART, 8–10 SERVINGS CRUST One 9-inch (23-cm) Vanilla Almond Tart Crust, parbaked FILLING 6 tbsp (85 g) unsalted butter 1 vanilla bean, split lengthwise and scraped 1 lb (450 g) ripe but firm peaches (3–4 medium) ¼ cup (50 g) organic granulated cane sugar, plus 1 tbsp (10 g) for sprinkling 2 tbsp (17 g) sweet white rice flour ¼ tsp fine sea salt 1 large egg ½ cup (120 ml) Crème Fraîche or sour cream Powdered sugar (optional, for dusting) For the crust, prepare and parbake the crust as directed. Position a rack in the center of the oven and preheat to 350°F (175°C). Place the parbaked tart crust on a rimmed baking sheet lined with parchment paper for easy cleanup. To make the filling, place the butter and vanilla pod and scrapings in a medium, heavy-bottomed saucepan and cook over medium-low heat, swirling occasionally. After about 3–5 minutes, the butter will foam up, turn golden and smell nutty, with brown flecks mingling with black vanilla bean seeds on the bottom of the pan. At this point, remove the pan from the heat. Pour the butter into a heatproof measuring cup to stop the cooking, and let cool for 5 minutes. Remove the vanilla bean and discard. Meanwhile, halve the peaches and remove the pits. Cut each half into 6 wedges; you should have about 3 cups of sliced peaches. In a medium bowl, whisk together the ¼ cup (50 g) sugar, rice flour and salt. Whisk in the egg until smooth, then the crème fraîche. Whisking constantly, slowly drizzle in the browned butter. Pour the custard into the crust. Arrange the peach wedges over the custard in concentric circles and sprinkle with the remaining 1 tablespoon (10 g) sugar. Bake the tart until the custard is gently puffed and pale golden around the edges, and mostly set when you give the pan a shuffle, 30–40 minutes. Remove from the oven and let cool completely, at least 1 hour and up to several hours. Remove the sides of the tart pan by placing it on a large can or small inverted bowl and gently loosening. Dust with powdered sugar, if desired. Place the tart on a cutting board, cut into wedges and serve. The tart is best within the first 2 days of baking when the crust is crisp, but it will keep, refrigerated airtight, for up to 3 days. NOTE: If you're new to browning butter, see how it's done on. ## CARAMELIZED FIG AND WHIPPED HONEY YOGURT TARTLETS {ALMOND, SWEET RICE, OAT} These tarts carry the Mediterranean flavors of almond, orange blossom, honey and fresh figs. Dusting the figs with sugar and torching the tops mellows their bite just a bit, adds a touch of smoky sweetness and brings the tart components together into one luscious late-summer dessert. Buttery tart shells contrast cool and tangy whipped yogurt kissed with honey and orange blossom water, all nestled up against juicy figs. These must be assembled to order, lest the crust and burnt sugar soften prematurely, but guests will love watching the sugar sizzle as you torch the fruit. MAKES EIGHT 4-INCH (10-CM) INDIVIDUAL TARTLETS OR ONE 9-INCH (23-CM) TART, 8–10 SERVINGS CRUST 8 (4-inch 10-cm]) fully baked [Vanilla Almond Tartlet Crusts, cooled FILLING ¾ cup (180 g) plain whole-milk Greek yogurt (such as Straus Family Creamery) or skyr (such as Siggi's) ¾ cup (180 ml) heavy cream 3 tbsp (45 ml) honey ¾ tsp orange blossom water, or more to taste (optional) 16 medium-small ripe but firm figs (about 1 lb [450 g]) 8 tsp (32 g) organic granulated cane sugar (for caramelizing the figs) For the crust, prepare and bake the tartlet shells as directed. When cool, remove the tart crusts from their pans and place on a large cutting board. To make the filling, in the bowl of a stand mixer fitted with the whip attachment, combine the yogurt, cream, honey and orange blossom water. Whip on medium-high speed until the mixture holds firm peaks. (Alternatively, beat with a sturdy wire whisk or hand beater in a large bowl.) Cover and chill until needed, up to several hours. Re-whip if the mixture has separated. Divide the whipped yogurt among the baked, cooled tartlet crusts, filling them nearly to the top and spreading the yogurt into an even layer. Slice the figs lengthwise ⅛-inch (3-mm) thick, discarding the round ends and keeping the slices together. Fan the slices over the yogurt-filled tart crust, curving the slices with the tart sides to form a ring of overlapping slices. Sprinkle the figs on each tart with 1 teaspoon sugar. Use a kitchen torch to burn the sugar, holding it straight down and several inches away from the figs, until the sugar is golden and bubbling. As you work, wave the torch in small circles. If the sugar blackens, hold the torch farther away. Repeat with the remaining tartlets and serve right away (or chill for up to 30 minutes). NOTE: If you don't have a kitchen torch, don't despair: place the fig slices in an even layer on a baking sheet, sprinkle with the sugar and place under the broiler until the sugar has caramelized, a minute or two. Scrape the figs off the pan and over the tarts for a messier—though still tasty—presentation. Or skip the sugar altogether and top the fresh figs with a drizzle of honey. ## APPLE CHESTNUT TART WITH SALTY CARAMEL {ALMOND, SWEET RICE, CHESTNUT} The classic apple tart is the soul of simplicity, epitomizing French baking at its finest. I learned to make it while working at an organic French-style bakery in San Francisco. Thinly sliced apples are nestled into an unbaked tart shell, topped with a bit of butter and sugar, and given a long bake. The juices from the apples mix with the butter and sugar, and the submerged apples bake into a chunky jamlike texture while the tips caramelize and retain a bit of bite. Against a crumbly crust warm from earthy chestnut flour and topped with gooey caramel, this updated version makes a sensational dessert for fall and winter months, especially when served warm from the oven with Whipped Crème Fraîche or Vanilla Bean Ice Cream. Store leftovers airtight in the refrigerator for up to 2 days. If you're short on time or crave a more traditional finish, skip the caramel and brush the tart with a few tablespoons of apricot jam loosened with a few drops of water, heated and strained. MAKES ONE 9-INCH (23-CM) TART, 8–10 SERVINGS CRUST One 9-inch (23-cm) Chestnut Tart Crust, unbaked and frozen FILLING 5 medium-sized tart, firm baking apples, such as Granny Smith or Belle de Boskoop (1¾ lb [800 g]) ¼ cup (50 g) organic granulated cane sugar 3 tbsp (42 g) unsalted butter, in small pieces ½ cup (120 ml) Salty Caramel (any variation, at room temperature or warm enough to drizzle For the crust, prepare and freeze the tart crust as directed. Position a rack in the center of the oven and preheat to 350°F (175°C). Place the frozen, unbaked tart crust on a rimmed baking sheet lined with parchment paper for easy cleanup. To make the filling, use a T-shaped vegetable peeler to peel the apples. Cut the flesh off the core in large chunks, cutting close to the core (alternatively, halve and core the apples). Cut each chunk or half into slices as thin as possible, about ⅛-inch (3-mm) thick, keeping the slices together and discarding the rounded edges. Fan the slices out lengthwise slightly and place them, cut side facing the center of the tart, around the outside of the shell, tucking the last apple under the first to make a continuous loop. Repeat with a second layer just inside the first, reversing the fan if you like, and continue until you've filled the tart, tucking in as many of the extra pieces as you can; the apples will reduce a lot as they cook. Sprinkle all over with the sugar and dot with the butter. Bake the tart until the tips of the apples are bronzed and the fruit is bubbling furiously, 65–75 minutes. There's a fine line between cooking the apples all the way and burning the crust, so keep an eye on that as well and remove the tart early if the crust becomes too dark. Let the tart cool most of the way, 1 hour, then drizzle all over with the caramel and serve warm or at room temperature. The tart is best the day of baking and will keep at room temperature for up to 1 day. Store leftovers, refrigerated airtight, for up to 2 days. NOTE: A T-shaped vegetable peeler is my favorite tool for peeling apples. And rather than halving the apples and cutting out their core, I like to simply hold the apple stem side up on a cutting board and cut off large chunks, cutting as close to the core as possible, cutting around the apple until all the flesh is removed. ## CHOCOLATE CRANBERRY PECAN TART {ALMOND, SWEET RICE} Pecan pie is a tricky dessert. The filling, a custard made from eggs, butter, sugar and corn syrup, can be toothachingly sweet and unhealthy to boot. I trade out the refined sugars for muscovado and maple syrup, both of which, in addition to containing trace minerals that refined sugars lack, add depth of flavor that kicks corn syrup to the curb. Shards of dark chocolate work with a salt-kissed cocoa crust to deliver a punch of flavor, and cranberries provide the perfect bright counterpoint to the richness of chocolate and nuts, bursting brightly like fresh raspberries. (In fact, raspberries make a fine stand-in when cranberries aren't around.) This tart gained cult status among my followers, which included people who "find chocolate desserts boring" and others who "don't have a sweet tooth." These people fought over slices. When you try a wedge of buttery crust, gooey pecans and tart cranberries topped with a plume of Maple Bourbon Whipped Cream, you'll see why. MAKES ONE 9-INCH (23-CM) ROUND TART, 10–12 SERVINGS CRUST One 9-inch (23-cm) Cocoa Almond Tart Crust parbaked and hot FILLING 1 cup (100 g) raw pecan halves 2 tbsp (15 g) sweet white rice flour ¼ cup plus 2 tbsp (75 g) packed dark muscovado sugar or packed organic dark brown sugar ¼ tsp fine sea salt 2 large eggs ¼ cup (60 ml) maple syrup 1 tsp vanilla extract 4 tbsp (56 g) unsalted butter, melted ½ cup (85 g) roughly chopped bittersweet chocolate (preferably 70% cacao mass) 1 cup (90 g) fresh or frozen cranberries, halved Maple Bourbon Whipped Cream for serving For the crust, prepare and parbake the tart crust as directed. To make the filling, position a rack in the lower third of the oven and preheat to 325°F (165°C). Spread the pecans on a small, rimmed baking sheet and toast until darkened slightly and fragrant, 10–12 minutes. Cool completely, then use your fingers to break the pecan halves into quarters and eighths. In a large bowl, whisk together the sweet rice flour, muscovado sugar and salt. Whisk in the eggs, whisking until smooth, then add the maple syrup and vanilla, taking care not to incorporate too much air into the custard. Whisk in the melted butter, then fold in the toasted, cooled pecans. Sprinkle the chopped chocolate over the bottom of the crust, then the cranberries, and carefully pour in the filling, distributing the nuts evenly. Bake the tart until the sides are gently puffed and center is wobbly like Jell-O under the nuts and fruit (which will float to the top), 20–30 minutes. Let cool completely, then cut into slender wedges and serve. Alternatively, chill the tart before cutting into wedges for the cleanest slices, dipping the knife in hot water and wiping it clean between cuts. Serve the tart at room temperature, with a dollop of the whipped cream. The tart is best the day of baking when the crust is crisp, but extras keep well, refrigerated airtight, for up to 4 days. NOTE: Breaking up the pecans with your fingers rather than chopping creates less dust and keeps the filling pretty and clear. ## SALTY CARAMEL BANANA CREAM TART WITH MESQUITE CRUST {ALMOND, SWEET RICE, MESQUITE} Muscovado sugar and mesquite flour create an earthy base against which creamy custard, ripe bananas and a deep, dark caramel sauce flecked with vanilla bean play. Painting the tart shell with a thin layer of chocolate creates a barrier between the custard and keeps the crust crisp for a day or two. Top slices with an extra pinch or two of flaky salt. MAKES ONE 9-INCH (23-CM) TART, 8–10 SERVINGS CRUST One 9-inch (23-cm) fully baked Muscovado Mesquite Tart Crust, hot ¼ cup (45 g) finely chopped bittersweet chocolate FILLING ⅓ cup (65 g) organic granulated cane sugar 3½ tbsp (30 g) cornstarch ¼ tsp fine sea salt ½ vanilla bean, split lengthwise and scraped 1½ cups (350 ml) whole milk ½ cup (120 ml) heavy cream 4 tbsp (56 g) unsalted butter, in several pieces 3 large ripe but firm bananas (about 1 lb [450 g]) 1 recipe Salty Vanilla Bean Caramel Sauce, at room temperature Flaky salt (such as Maldon), for serving TOPPING 1 cup (235 ml) heavy whipping cream 1 tbsp (10 g) organic granulated cane sugar (to taste) 1 tsp vanilla extract NOTE: Chocophiles can make this in the Cocoa Almond Tart Crust if preferred. For the crust, prepare and bake the crust as directed. While still hot, scatter the chocolate pieces over the bottom and let sit for 1 minute to melt the chocolate. Use a small offset spatula or the back of a spoon to spread the chocolate into an even layer all over the bottom and sides of the crust. Let cool until set. The crust can be made up to 1 day ahead and stored airtight at room temperature. When ready to assemble, remove the sides from the pan and place the tart shell on a large plate or serving platter. To make the filling, in a small saucepan, whisk together the sugar, cornstarch, salt and vanilla pod and seeds. Whisk in the milk and cream. Bring the mixture to a slow boil over medium-high heat, whisking constantly, making sure to scrape the bottom and corners of the pan with the whisk. Once the mixture comes to a boil, continue cooking and whisking for 1–2 minutes. You'll have to stop whisking for a few seconds to verify that the pudding is boiling, which you'll know by the big bubbles that pop gloopily. Remove from the heat and whisk in the butter; it should be the consistency of creamy yogurt. Strain the pudding through a mesh sieve and into a bowl. Press plastic wrap right onto the surface of the pudding, and let cool at room temperature until warm, 30–45 minutes. When the pudding has cooled, spread half of it into the chocolate-lined tart shell. Slice the bananas ¼-inch (6-mm) thick and layer them evenly over the top, drizzle with 6 tablespoons (90 ml) of the caramel sauce and cover with the remaining pudding. Cover with plastic wrap pressed to the surface of the pudding. Chill until set, at least 2 hours and up to 1 day. To make the topping, use a handheld or stand mixer fitted with the whisk attachment to whip the cream with the sugar and vanilla until it holds firm peaks; the whipped cream should be on the firmer side to make the tart easier to slice. If you take the cream too far and it becomes lumpy, you can rescue it by folding in additional heavy cream until it loosens up again. Remove the plastic wrap from the tart and spread the cream evenly over the top. Chill the tart for 30 more minutes to set the cream. Place the tart on a cutting board, and use a sharp chef's knife to slice the tart into wedges, wiping the knife clean between each cut. Drizzle slices generously with more caramel and sprinkle with a pinch or two of flaky salt. The tart is best on the day of baking, but it will keep, refrigerated airtight, for 2 or 3 days. ## CHOCOLATE BERGAMOT TRUFFLE TART WITH OLIVE OIL AND FLAKY SALT {ALMOND, SWEET RICE} I don't like to play favorites, but this tart was a clear winner around our place. My sweetie, who doesn't have much in the way of a sweet tooth, forbade me from giving any away, and he hoarded the last slice in the fridge for a week before finally polishing it off. I couldn't really blame him—this tart is pretty one-of-a-kind. A buttery cocoa shortbread crust contrasts the silkiest chocolate truffle filling, and fresh bergamot zest makes the whole thing sing with citrusy floral notes. If you want to gild the lily, top the tart with a drizzle of flavorful olive oil and a few pinches of flaky salt, and serve slender wedges with a billow of softly whipped cream. The complexity of the olive oil plays up the bergamot, the salt adds an addicting crunch and the cream smooths out any rough edges. This tart is all about the chocolate, so use a high-quality brand that you like the taste of on its own. It's best to buy bars of chocolate and chop them up rather than using chocolate chips, which generally have less flavor and more lecithin to keep them from melting in cookies—not what we want here. If fresh bergamot eludes you, leave it out altogether or try the Earl Grey variation, below. MAKES ONE 12 BY 4-INCH (30 BY 10-CM) RECTANGULAR TART OR ONE 9-INCH (23-CM) ROUND TART, 10–12 SERVINGS CRUST 1 parbaked 12 by 4-inch (30 by 10-cm) OR 9-inch (23-cm) round Cocoa Almond Tart Crust FILLING 1¼ cups (295 ml) heavy cream 3 tbsp (45 ml) honey Finely grated zest from 1 medium bergamot (1 packed tsp) ⅛ tsp fine sea salt 6 oz (170 g) bittersweet chocolate (60–70% cacao mass), roughly chopped (1¼ cups) 1 large egg FOR FINISHING ¾ cup (180 ml) heavy whipping cream Really good olive oil Flaky sea salt (such as Maldon) For the crust, prepare and parbake the crust as directed. Position a rack in the center of the oven and preheat to 300°F (150°C). To make the filling, in a small, heavy-bottomed saucepan set over a medium flame, heat the cream with the honey, bergamot zest and salt, swirling occasionally, until hot and steamy. Remove from the heat, cover and let steep for 10 minutes. Place the chocolate in a medium-sized bowl. When the cream has steeped, heat it again until hot and steamy and pour over the chocolate. Let sit for 1 minute, then whisk gently until very smooth. Whisk in the egg, then strain the mixture through a sieve and into a large measuring pitcher. Pour the filling into the hot crust and carefully transfer to the oven. Bake the tart until the filling quivers gently in the center when you give it a jostle and the edges are just set, 10–20 minutes. Let the tart cool completely, then chill until firm, 1–2 hours and up to 1 day. To serve, use a large, sharp chef's knife to cut the tart into slender slices, dipping the knife in hot water and wiping it clean between slices for the cleanest cuts. To finish, whip the cream to soft peaks and serve slices of tart with a dollop of cream, a drizzle of olive oil and a pinch of flaky salt. The tart is best on the day of baking when the crust is crisp, but extras keep well, refrigerated airtight, for up to 5 days. VARIATION: EARL GREY CHOCOLATE TART Black tea adds its malty flavor here while conveying the floral notes of bergamot. Omit the bergamot, steeping 2 tablespoons (6 g) top-quality Earl Grey tea leaves with the hot cream and honey for 10–20 minutes, or until the cream turns beige. Strain the cream into the chocolate, pressing on the tea to extract all of the flavor, and proceed with the recipe. ## FROMAGE BLANC TARTLETS WITH HONEYED KUMQUATS {ALMOND, SWEET RICE, OAT} These sunny tartlets make a bright treat for late winter when other citrus and pomes have petered out and rhubarb and berries haven't yet emerged. Thick honey-kumquat syrup sweetens a cheesecake-like filling and rounds of kumquat flecked with vanilla bean crown the tops. Fromage blanc, also called farmer cheese, tastes a bit like goat cheese without the funk, and it keeps the filling airy and not-too-rich. That said, mascarpone will work in its place. Packaged in buttery almond-flour crusts, these will make you the star of any dinner party. To ease the day-of prep, make the kumquats and prepare and freeze the tartlet crusts up to 1 week ahead. Feel free to bake this in a single 9-inch (23-cm) round tart or pie pan, increasing the bake time as needed. MAKES EIGHT 4-INCH (10-CM) TARTLETS OR ONE 9-INCH (23-CM) TART, 8–10 SERVINGS CRUST Eight 4-inch (10-cm) or one 9-inch (23-cm) Vanilla Almond Tart Crusts, parbaked FILLING 1 recipe Honey Candied Kumquats 1 cup (8 oz [225 g]) fromage blanc or mascarpone Finely grated zest from 1 medium lemon (preferably Meyer) 1 large egg 1 large egg yolk 2 tbsp (30 ml) candied kumquat syrup 2 tbsp (30 ml) honey ¾ cup (180 ml) heavy cream For the crust, prepare and parbake the tart crusts as directed. Place on a baking sheet lined with parchment for easy cleanup. For the filling, prepare the Honey Candied Kumquats and chill until ready to use. Position a rack in the lower third of the oven and preheat to 325°F (165°C). In a large bowl, whisk together the fromage blanc, lemon zest, egg and egg yolk. Whisk in the kumquat syrup and honey, then the cream, whisking until smooth. Divide the filling among the tart crusts, filling them to the top and giving them a gentle shake to even out the custard. (Extra custard can be baked in a small ramekin alongside the tarts.) Bake the tarts until the filling puffs slightly around the edges and is mostly set when you give the pan a shake, 18–25 minutes (30–35 minutes for a large tart). Remove the tarts from the oven and let cool to room temperature. Carefully remove the rings and bottoms, place the tarts on a small baking sheet and chill until cold, 1 hour. To serve, place the tarts on plates, spoon over some of the chilled, honeyed kumquats and devour immediately. The tarts are best the day of baking when the crust is crisp, but they will keep, refrigerated airtight, for up to 3 days. VARIATION: BERRY FROMAGE BLANC TARTLETS No kumquats? No worries! Make the filling with 4 tablespoons (60 ml) honey and top the tartlets with fresh summer berries. ## GRAPEFRUIT AND ELDERFLOWER CURD TART {ALMOND, SWEET RICE, OAT} When you're a baker or a cook, you tend to learn about people's tastes. You learn that Nancy hates rhubarb, or that Joe is allergic to tree nuts. A surprising fact that I recently learned is that several people I know are obsessed with grapefruit. Grapefruit! I love the juice in mimosas, but I never expected people to go so crazy for grapefruit desserts. Grapefruits, particularly the pale pink variety, come into season in midwinter and remain sweet and delicious through the spring. Their flavor is a complex mix of bitter and astringent, floral and sweet. This tart celebrates grapefruit's zest and juice with a buttery curd that bursts with intense flavor. Elderflower, here in the form of St-Germain liqueur, makes grapefruit taste even more like itself—like flowers and champagne and old fancy hats in your grandmother's closet (in a good way). Against a buttery shortbread crust flavored with almond and vanilla, this magical curd will convert the staunchest grapefruit haters, and make its fans supremely happy. Blood orange juice, if you've got it, turns the curd a pretty shade of pink; alternatively, just use more grapefruit juice. This tart needs no accompaniment, but you can gussy up slices with pink grapefruit supremes or a dollop of Whipped Crème Fraîche sprinkled with a few crushed lavender buds, as one of my testers did so prettily. MAKES ONE 9-INCH (23-CM) TART, 8–10 SERVINGS One 9-inch (23-cm) Vanilla Almond Tart Crust, parbaked 2 tsp (5 g) packed finely grated pink grapefruit zest (from 1 large or 2 small grapefruit) ¾ cup (180 ml) strained pink grapefruit juice (from 2 medium grapefruit) ¼ cup (60 ml) strained blood orange juice (from 1–2 small blood oranges) ¾ cup (150 g) organic granulated cane sugar ¼ tsp fine sea salt 3 large eggs 2 large egg yolks 8 tbsp (113 g) cold, unsalted butter, in ½-inch (1.3-cm) dice ¼ cup (60 ml) St-Germain elderflower liqueur Position a rack in the lower third of the oven and preheat to 325°F (165°C). Place the parbaked tart crust on a rimmed baking sheet, and if it has cooled, place in the oven to heat for 5–10 minutes before you add the curd; this will help keep the crust crisp. To make the curd, set a mesh strainer over a heatproof bowl or large measuring cup and set aside. In a medium, heavy-bottomed saucepan, whisk together the zest, grapefruit and blood orange juices, sugar, salt, eggs and egg yolks to combine. Place the pot over medium-low heat, and cook, stirring constantly with a heatproof silicone spatula, until the mixture thickens slightly and reaches 170°F (77°C) on an instant-read thermometer, about 10 minutes. As you stir, be sure to scrape the entire bottom of the pan and into the corners, so that the mixture heats as evenly as possible. Immediately strain the mixture through the strainer and into the bowl. Stir in the butter pieces until melted, then the liqueur. Cool the curd for 10 minutes. Pour the slightly cooled curd into the warm tart shell and very carefully transfer it into the oven; it will be very full! Bake the tart until the sides are barely puffed and the tart wobbles like Jell-O when you give it a gentle shake, 18–25 minutes. It should not be wet or watery (underbaked), nor should it be puffed in the center or cracking (overbaked). Remove the tart from the oven and let cool to room temperature, about 1 hour. Remove the tart sides by placing the tart atop a large can or small, inverted bowl and gently easing the sides from the tart. Chill the tart until firm, at least 2 hours and up to 1 day. Cut into wedges and serve. The tart is best within the first 2 days of baking, but keeps well, refrigerated airtight, for up to 3 days. # RUSTIC FRUIT DESSERTS The first time I baked a pandowdy—an apple rhubarb recipe from a favorite Deborah Madison cookbook—I brought it to a friend's house along with a pint of ice cream. We dished up bowls of fragrant, warm apples and tart rhubarb coated in spices and lidded with flaky pie dough, ice cream melting into puddles against the hot fruit, and tucked in. Jay broke the silence, proclaiming the dessert well worth the calories, and our friend's eyes widened at the mention of the word. "But, this is FRUIT!" she declared. I thought back to the stick of butter I'd worked into the pastry dough, to the cup of sugar that went into taming the tart apples and rhubarb, and the pint of ice cream we'd demolished. "Yes," I agreed. "It is fruit." This is why I love rustic fruit desserts. Though topped with buttery-sweet biscuits, cobbles, crumbles and batters, they are indeed made up in large proportion by good-for-you fruit. If you use peak-of-season fruit that bursts with sweetness and flavor, you needn't do much to turn it into a wildly delicious dessert. A warm bowl of peach cobbler or blackberry crisp accompanied by a scoop of drippy ice cream, crisp pastry breaking against gooey fruit and silky custard: this is my happy place. Here, alternative grains and flours add their unique tastes and textures to a variety of old-fashioned, fruit-based sweets. Buckwheat pairs up with winey blackberries for deep, dark crisps accented with lemon and spice. Marzipan and oat flour create a crunchy crumble topping to crown a pan of tender stone fruit screaming with almond flavor. Teff flour adds earthy sweetness to fluffy cobbler biscuits perched atop thick slices of bourbon-roasted peaches. A trio of alternative flours makes the flakiest pie dough to lid persimmon cranberry and apricot raspberry pandowdies. And millet lends buttery tenderness to ricotta biscuits for a twist on strawberry shortcake. These desserts are all about the fruit, so use the ripest, most flavorful, locally grown versions you can find. And do have a pint or two of ice cream handy to top those warm, gooey fruit desserts; ice cream melting over tender pastry and mingling with thickened fruit is one of life's greatest pleasures. After all, it's fruit. ## STRAWBERRY RHUBARB COBBLER WITH GINGER-AMARANTH BISCUITS {SWEET RICE, AMARANTH, OAT} There are many different cobblers in the world, with toppings ranging from cut biscuits to drop biscuits to a cakelike batter. I went through topping after topping trying to find a biscuit that baked up light and tender while standing up to juicy fruit. It wasn't until my friend and recipe tester Caterina found an old recipe from _Gourmet_ with 491 positive reviews (!) that employed the bizarre technique of adding boiling water to the biscuit dough, which gives the baking powder a head start before hitting the heat of the oven. We warmed the dairy, gave the dough the gentlest of handlings and voilà: cobbler perfection. Caterina also discovered that a combination of yogurt and heavy cream produces the fluffiest, most meltingly tender biscuits. This cobbler combines three of my favorite flavors in one gooey dessert: strawberry, rhubarb and ginger. MAKES 6 SERVINGS FILLING 1 lb (450 g) trimmed rhubarb, sliced ½-inch (1.3-cm) thick on the diagonal (about 4 cups) ¾ lb (340 g) strawberries, hulled, quartered if large, halved if small (about 3 cups) ⅓ cup (70 g) organic granulated cane sugar 1 tbsp (7 g) cornstarch ⅛ tsp fine sea salt BISCUITS 2 tbsp (25 g) organic granulated cane sugar, plus 2 tsp (8 g) for sprinkling the biscuits 2 tbsp (25 g) lightly packed finely chopped crystallized ginger ⅓ cup (50 g) sweet white rice flour ⅓ cup (35 g) amaranth flour ⅓ cup (35 g) GF oat flour 1 tsp baking powder ¼ tsp fine sea salt 4 tbsp (56 g) cold, unsalted butter, in ¼-inch (6-mm) dice ¼ cup (60 ml) plain, whole-milk yogurt 3 tbsp (45 ml) heavy cream, plus 1 tbsp (15 ml) for brushing the biscuits Vanilla Bean Ice Cream or Whipped Cream, for serving Position a rack in the center of the oven and preheat to 425°F (220°C). To make the filling, combine the rhubarb, strawberries, sugar, cornstarch and salt in a large bowl, and toss until combined. Scrape the fruit and any juices into a 9-inch (23-cm) square or 10-inch (25-cm) round baking dish or the equivalent, and place the dish on a rimmed baking sheet to catch any drips. Bake for 20 minutes, until the juices bubble thickly. While the filling bakes, make the biscuits. In a large bowl, combine the 2 tablespoons (25 g) sugar and finely chopped ginger, rubbing it between your fingers until the sugar is moistened. Add the sweet rice, amaranth and oat flours, baking powder and salt. Add the butter and work in with a pastry blender or your fingertips until broken down into the size of small peas. Chill until needed, about 10 minutes. When the fruit is nearly done, combine the yogurt and 3 tablespoons (45 ml) cream in a small saucepan. Place over a medium flame and heat, stirring frequently, until the mixture is hot and steamy, 1–2 minutes (don't let it boil or it might separate). Quickly but gently stir the hot dairy into the butter/flour mixture, stirring just until combined, evenly moistened and no floury bits remain; do not overstir. Remove the fruit from the oven, give it a gentle stir to redistribute, then use a tablespoon to drop the batter onto the fruit, creating 10–12 rough mounds. Immediately dab and brush the tops with the remaining 1 tablespoon (15 ml) cream and sprinkle with the remaining 2 teaspoons (8 g) sugar. Bake the cobbler until the biscuits are golden on top and the fruit is bubbling thickly, 18–25 more minutes. Let the cobbler cool for at least 10 minutes to allow the fruit to thicken up and the biscuits to finish baking from residual heat. Scoop into bowls and serve warm, topped with scoops of vanilla ice cream, or at room temperature with whipped cream. The cobbler is best within a few hours of baking, but leftovers can be refrigerated airtight for up to 2 days. Reheat before serving. NOTE: Do be sure to trim away any rhubarb leaves, which can be toxic in large quantities. And if you don't have access to fresh rhubarb, this works equally well with frozen; just let it thaw slightly beforehand and give the fruit a little extra cooking time. ## STRAWBERRY RICOTTA SHORTCAKES WITH HONEY AND TARRAGON {OAT, MILLET} The key ingredient to this twist on a classic springtime treat is a good-quality whole-milk ricotta. Rich and creamy, with large, soft curds, this thick cheese is a far cry from the bland, grainy supermarket variety. First the ricotta creates a tender biscuit, then it gets whipped with heavy cream for a pillow on which to rest sliced strawberries coated in a nap of honey and fresh tarragon leaves. Despite the surprising taste of tarragon and ricotta, a bite of this dessert will still conjure up memories of classic strawberry shortcake. Basil or mint can stand in for the tarragon if none is to be found, or trade the strawberries for nectarines, plums or peaches. MAKES 6 SERVINGS 6 Lemon Ricotta Biscuits 2 cups (230 g) sliced ripe strawberries 2 tbsp (30 ml) honey, plus extra for drizzling 1 tbsp (3 g) loosely packed torn tarragon leaves, plus some pretty sprigs for garnish ½ cup (120 ml) heavy cream ⅓ cup (80 ml) whole-milk ricotta 2 tsp (8 g) organic granulated cane sugar Prepare and bake the biscuits. Let cool completely. Toss the sliced berries with the honey and tarragon and let sit for 10 minutes to macerate and draw out the juices. In a large bowl with a whisk, or in the bowl of a stand mixer fitted with the whip attachment, whip together the cream, ricotta and sugar until the mixture forms soft peaks. Use a serrated knife to slice the biscuits in half horizontally. Place the bottom halves on plates, top each with a large dollop of ricotta cream and place a mess of honeyed berries on top, letting some fall off onto the plate. Top with the biscuit lid, garnish with a drizzle of honey and a tarragon sprig or two, and serve. VARIATION: BLACKBERRY RICOTTA SHORTCAKES WITH HONEY AND THYME In place of the strawberries, use 2 cups (230 g) blackberries, halved if large. In place of the tarragon, use 1 tablespoon (3 g) loosely packed thyme leaves (preferably lemon thyme). ## APRICOT RASPBERRY PANDOWDY {SWEET RICE, OAT, MILLET} This springy combination of apricots and raspberries topped with cutouts of pie dough and sprinkled with coarse sugar makes a sublime alternative to pie when you're pressed for time. I especially like this pandowdy served barely warm and topped with a bit of crème fraîche. Do use apricots that are ripe and fragrant; Blenheims are the gold standard among apricots, but any small, flavorful variety will do the trick. If your apricots are on the tart side, increase the sugar to ½ cup (100 g). MAKES 6–8 SERVINGS TOPPING ½ recipe Pie Dough for Pandowdies GF oat flour, for dusting 1 tbsp (15 ml) milk or cream (for brushing the dough) 1 tbsp (10 g) coarse sugar (turbinado or demerara) FILLING 1½ lb (680 g) apricots, pitted and quartered (about 5 cups) 2 cups (225 g) raspberries ¼ cup plus 2 tbsp (75 g) organic granulated cane sugar 1 tbsp (15 ml) lemon juice 1½ tbsp (12 g) cornstarch ⅛ tsp salt Vanilla Bean Ice Cream or Crème Fraîche, for serving To make the topping, prepare and chill the dough as directed. On a surface dusted lightly with oat flour, roll out the dough into a round roughly ¼-inch (6-mm) thick. Use a 2-inch (5-cm) fluted biscuit cutter to cut out rounds of dough, placed close together. Stack the dough pieces on a plate and chill until cold. Position a rack in the upper third of the oven and preheat to 375°F (190°C). To make the filling, in a large bowl, toss together the quartered apricots, raspberries, sugar, lemon juice, cornstarch and salt until well combined. Scrape the mixture into a 10-inch (25-cm) skillet or ceramic tart pan, a 9-inch (23-cm) deep-dish pie pan or a 9-inch (23-cm) square baking dish. Lay the chilled squares of dough over the fruit, overlapping them slightly and leaving some gaps for steam to escape. Brush the dough with the milk and sprinkle with the sugar. Place the pan on a rimmed baking sheet to catch any drips. Bake the pandowdy until the crust is golden and the fruit is bubbling, 45–55 minutes. Let cool for at least 10 minutes. Serve warm with vanilla ice cream or crème fraîche. The pandowdy is best freshly baked when the crust is crisp. It will keep for up to 1 day at room temperature, or up to 3 days refrigerated airtight. Reheat in a 375°F (190°C) oven before serving. ## APRICOT, ALMOND AND BROWN BUTTER BUCKLE {ALMOND, SWEET RICE, OAT} Buckles are one of those nebulous, old-fashioned desserts, like cobblers, crisps and crumbles, that can take on many different forms. Recipes range from a spoonable dessert of fruit and batter to a more sliceable coffee cake of sorts topped with a generous amount of fruit. As either type of buckle bakes, the fruit sinks into the cake and the batter buckles up through it, hence the name. This version features a sturdy cake loaded with almond flour to drink up moisture from ripe apricots, which bake into creamy pockets in the heat of the oven, and the whole cake sings with the butterscotch taste of vanilla bean, brown butter and dark brown sugar. The texture lies somewhere between a coffee cake and a financier, moist and dense from the almond flour. Sweet rice and oat flours create a fine crumb and add structure, and a smattering of sliced almonds and sugar make a crisp topping. Apricots are unique in that they become more tart as they cook, so use the ripest, sweetest ones you can find here. All stone fruits play well with almonds and brown butter, so feel free to give this a go with cherries, peaches or nectarines, or try the buckwheat plum variation below. For tips on browning butter. MAKES ONE 9-INCH (23-CM) CAKE, 8 SERVINGS 8 tbsp (113 g) unsalted butter, plus 1 tsp for the pan 1 vanilla bean, split lengthwise and scraped ½ cup plus 2 tbsp (130 g) packed organic light brown sugar 2 large eggs 1 cup (120 g) blanched almond flour ½ cup (75 g) sweet white rice flour ¼ cup (25 g) GF oat flour 1 tsp baking powder ½ tsp fine sea salt 12 oz (340 g) ripe apricots (about 8 medium), pitted and halved ¼ cup (25 g) unblanched sliced almonds 1½ tbsp (15 g) organic granulated cane sugar VARIATION: BUCKWHEAT, PLUM AND ALMOND BROWN BUTTER BUCKLE Omit the apricots and use 4–5 medium-sized plums (¾ pound [340 g]). Cut the plums off the pits and slice into large wedges. Omit the oat flour and use ¼ cup (35 g) buckwheat flour. Top the batter with the plums placed with a cut side down in concentric circles over the batter and press into the batter slightly. Proceed with the recipe. Position a rack in the upper third of the oven and preheat to 350°F (175°C). Grease a 9-inch (23-cm) round springform pan with the 1 teaspoon butter. Place the pan on a rimmed baking sheet to catch any drips and set aside. Place the remaining 8 tablespoons (113 g) butter and vanilla pod and scrapings in a medium, heavy-bottomed saucepan and cook over medium heat, swirling occasionally. After 3–5 minutes, the butter will foam up, turn golden and smell nutty, with brown flecks mingling with black vanilla bean seeds on the bottom of the pan. At this point, remove the pan from the heat. Pour the butter into a large heatproof bowl to stop the cooking, and let cool for 10 minutes. Remove the vanilla bean and discard. Add the brown sugar to the browned butter, stir to combine, then beat in the eggs one at a time. Set a strainer over the bowl and add the almond, sweet rice and oat flours with the baking powder and salt. Sift the dry ingredients into the butter mixture, pushing through what you can and adding back any almond bits into the bowl. Stir to combine. Scrape the batter into the prepared pan; it will seem like too thin of a layer but will rise as it bakes. Place the apricots, cut side up, over the batter in concentric circles and press them into the batter slightly. Sprinkle with the almonds, then the sugar. Bake the buckle until the top is golden and a toothpick inserted near the center comes out clean, 45–60 minutes. Be careful not to underbake: the cake has a lot of moisture to absorb from the juicy fruit. Remove from the oven and let cool until warm, then release the sides from the springform pan and let cool completely. The cake is best the day of baking but will keep at room temperature for up to 1 day, or refrigerated airtight for up to 3 days. Bring to room temperature before enjoying. ## SWEET CHERRY CACAO NIB CRISP {OAT, SWEET RICE} My friend and dance crony Steve once brought a bag of cacao nibs to a dance rehearsal because the packaging advertised them as a "superfood." Before I could stop him, he shoved a handful in his mouth, and his face contorted with horror. Cacao nibs are simply cacao beans that have been roasted and broken up. They have bitter chocolate notes but aren't sweet at all, so eating them plain is a little like chewing on coffee beans. I explained to Steve that the nibs were at their best when combined with other sweets, such as baked into cookies. Steve's response was to hand me the bag. And that's how I ended up with a boatload of cacao nibs. Here, they fleck an earthy brown sugar and oat flour streusel that lids fresh cherries, gently sweetened and baked until jammy but still holding their shape. The topping turns crisp and toothsome in the heat of the oven and the place where streusel meets fruit stays a little gooey. Like all crisps, this is best slightly warm and topped with a scoop of vanilla ice cream, though, as with all crisps, I'm not above eating spoonfuls straight from the fridge at all hours of the day. MAKES 6–8 SERVINGS FILLING 1½ lb (680 g) fresh sweet cherries, stemmed and pitted (about 4½ cups) 1 tsp cornstarch 2 tbsp (25 g) packed organic light brown sugar ⅛ tsp fine sea salt TOPPING ½ cup plus 1 tbsp (65 g) oat flour ¼ cup plus 2 tbsp (55 g) sweet white rice flour 2 tbsp (12 g) tapioca flour ½ cup (50 g) GF old-fashioned rolled oats ½ cup (100 g) packed organic light or dark brown sugar ½ tsp fine sea salt 3 tbsp (20 g) cacao nibs, chopped 6 tbsp (85 g) cold, unsalted butter, cut into small pieces 1 tsp vanilla extract 1 tsp coarse sugar, such as demerara or turbinado, for sprinkling (optional) Vanilla Bean Ice Cream, for serving Position a rack in the upper third of the oven and preheat to 375°F (190°C). Place a 9-inch (23-cm) round or square pan on a rimmed baking sheet lined with parchment for easy cleanup. To make the filling, in a large bowl, stir together the cherries, cornstarch, brown sugar and salt to combine. Let sit, tossing once or twice while you make the topping. To make the topping, combine the oat, rice and tapioca flours with the oats, brown sugar, salt and cacao nibs in the bowl of a stand mixer fitted with the paddle attachment. Scatter the butter pieces over the top, sprinkle with the vanilla and mix on medium-low speed until the butter is incorporated and the mixture forms large clumps, 2–3 minutes. (Alternatively, use your fingers to work the topping together in a large bowl.) Scrape the cherries and their juices into the prepared pan and sprinkle the topping over, squeezing some of it into hazelnut-sized clumps and letting the rest be loose. Sprinkle with the coarse sugar. Bake the crisp until the filling is bubbling thickly and the topping is golden, 35–45 minutes. Remove from the oven and let cool for at least 10 minutes or to room temperature. Serve warm or at room temperature with vanilla ice cream. The crisp is best on the day of baking but leftovers will keep, refrigerated airtight, for up to 3 days. ## MAPLE BOURBON PEACH COBBLER WITH CINNAMON TEFF BISCUITS {SWEET RICE, TEFF, OAT} This cobbler is full of earthy flavors that contrast bright peaches: maple syrup, bourbon whiskey and biscuits redolent with teff flour and cinnamon sugar. Malty teff is the dominant flavor in these biscuits, and its slightly coarse texture stands up well to the juicy fruit. Adding hot yogurt and cream to the biscuit mixture right before it goes into the oven gives the dough an instant lift, baking it into craggy biscuits that positively melt in your mouth. I like to leave the skins on the peaches not only because I'm lazy but also because they add color, help the fruit hold together, and soften into buttery tenderness in the heat of the oven. Serve this cobbler warm with a scoop of ice cream or at room temperature with whipped cream (sweetened or not). Be sure to source a certified GF whiskey if your cobbler eaters are highly sensitive to trace amounts of gluten; otherwise I like Bulleit bourbon here. MAKES 6 SERVINGS FILLING 2 lb (905 g) ripe but firm peaches (about 6 medium-large peaches, 6 cups sliced) ¼ cup plus 1 tbsp (75 ml) GF whiskey (such as Queen Jennie) or bourbon ¼ cup plus 1 tbsp (75 ml) maple syrup 1 tbsp (6 g) cornstarch ¼ tsp fine sea salt BISCUITS ⅓ cup (50 g) sweet white rice flour ⅓ cup (50 g) teff flour ⅓ cup (35 g) GF oat flour 2 tbsp (25 g) organic granulated cane sugar, plus 2 tsp (8 g) for sprinkling the biscuits 1 tsp baking powder ¼ tsp fine sea salt ¼ tsp ground cinnamon, plus ⅛ tsp for sprinkling the biscuits 4 tbsp (56 g) cold, unsalted butter, in ¼-inch (6-mm) dice 3 tbsp (45 ml) heavy cream, plus 1 tbsp (15 ml) for brushing the biscuits ¼ cup (60 ml) plain, whole-milk yogurt Vanilla Bean Ice Cream or Whipped Cream, for serving Position a rack in the center of the oven and preheat to 425°F (220°C). To make the filling, rinse the peaches and rub off the fuzz. Cut the peaches in half, then cut each half into 4–6 wedges. Place the wedges in a large bowl and drizzle with the bourbon, maple syrup, cornstarch and salt. Gently toss to coat the peaches evenly, then transfer to a 9-inch (23-cm) or (preferably) 10-inch (25-cm) ovenproof skillet or 9-inch (23-cm) square pan. Place in the oven and bake for 20 minutes, until the juices bubble thickly. To make the biscuits, in a large bowl, combine the sweet rice, teff and oat flours with the 2 tablespoons (25 g) sugar, baking powder, salt and ¼ teaspoon cinnamon. Add the butter and work in with a pastry blender or your fingertips until broken down into the size of small peas. Chill until needed, about 10 minutes. In a small bowl, stir together the remaining 2 teaspoons (8 g) sugar with the remaining ⅛ teaspoon cinnamon. Place the 1 tablespoon (15 ml) cream in a second small bowl and have a pastry brush (or scrunched-up paper towel) nearby. When the fruit is nearly done, combine the yogurt and remaining 3 tablespoons (45 ml) cream in a small saucepan. Place over a medium flame and heat, stirring frequently, until the mixture is hot and steamy, 1–2 minutes (don't let it boil or it might separate). Quickly but gently stir the hot dairy into the butter/flour mixture, stirring just until combined, evenly moistened and no floury bits remain; do not overstir. Remove the fruit from the oven, give it a gentle stir to redistribute, then use a tablespoon to drop the batter onto the fruit, creating 10–12 rough mounds. Immediately dab and brush the tops with the cream and sprinkle with the cinnamon sugar. Bake the cobbler until the biscuits are golden on top and the fruit is bubbling thickly, 18–25 more minutes. Let the cobbler cool for at least 10 minutes to allow the fruit to thicken up and the biscuits to finish baking from residual heat. Scoop into bowls and serve warm, topped with scoops of vanilla ice cream, or at room temperature with whipped cream. The cobbler is best within a few hours of baking, but leftovers can be refrigerated airtight for up to 2 days. Reheat before serving. ## SUMMER STONE FRUIT AND MARZIPAN CRUMBLE {SWEET RICE, OAT} Almond paste can be a divisive ingredient, with people either loving or loathing its intense flavor laced with bitter almond notes. I'm adamantly on the pro side; once I open a package I can't resist breaking off nubs to eat straight. Sometimes called marzipan (though marzipan is actually a sweeter version designed to be shaped into edible decorations for cakes and the like), it pairs beautifully with stone fruit, which reside in the same family as almonds. When my countertop becomes overwhelmed with apricots, cherries, peaches and plums in the peak of summer, this catchall crisp turns them into an easy dessert. The almond paste keeps the topping extra crisp and gives it a bold almond flavor reminiscent of amaretti cookies. Do feel free to make this with any combination of stone fruit you like—you'll need 6 cups (1 kg) of prepared fruit. And don't miss the summer berry variation below. MAKES 6–8 SERVINGS TOPPING 6 oz (170 g) almond paste, crumbled (scant 1½ cups) ¼ cup (35 g) sweet white rice flour ¼ cup (25 g) GF oat flour ¼ cup (50 g) packed organic light brown sugar ½ tsp fine sea salt 4 tbsp (56 g) cold, unsalted butter, cubed ½ cup (55 g) sliced almonds FRUIT 8 oz (225 g) cherries 8 oz (225 g) apricots 8 oz (225 g) plums 8 oz (225 g) peaches or nectarines 1½ tbsp (12 g) cornstarch ¼ cup (50 g) packed organic light brown sugar ¼ tsp fine sea salt Vanilla Bean, Fresh Ginger or Crème Fraîche Ice Cream (here and here), for serving Position a rack in the center of the oven and preheat to 375°F (190°C). Place a 10-inch (25-cm) ceramic tart pan or 9-inch (23-cm) pie or cake pan on a rimmed baking sheet. To make the topping, combine the almond paste, sweet rice and oat flours, brown sugar and salt in the bowl of a stand mixer fitted with the paddle attachment. Beat on low speed, increasing to medium speed, until the almond paste is broken down into pea-sized bits, 3 minutes. Add the butter and continue to beat until the crumble clumps together and the butter is mostly incorporated, 2–3 minutes. Stir in the almonds just until combined. (Alternatively, in a food processor, pulse together the almond paste, flours, brown sugar and salt until the almond paste is broken into pea-sized bits, about ten 1-second pulses. Add the butter and pulse until the mixture begins to clump together, 15–20 pulses. Add the almonds and pulse just to combine, 1 or 2 short pulses.) Cover and chill until needed. (Can be made up to 2 days ahead.) To prepare the fruit, pit the cherries. Halve the apricots, plums and peaches, remove their pits and cut them into large slices. You should have 6 cups of fruit. Toss the fruit with the cornstarch, brown sugar and salt until combined, and spread in the pan. Bake the fruit for 20 minutes; it will be hot and beginning to soften. Scatter the chilled topping over the hot fruit. Bake the crisp until the topping is golden and cooked through and the fruit is bubbling vigorously, 30–40 more minutes. Let cool slightly, then serve warm with scoops of ice cream. The crisp is best shortly after baking, but will keep at room temperature for up to 1 day and refrigerated airtight for up to 3 days. VARIATION: INDIVIDUAL BERRY MARZIPAN CRUMBLES This variation pairs especially well with tangy Vanilla Bean Frozen Yogurt. Omit the stone fruit, using instead 6 cups (800 g) mixed summer berries (strawberries, raspberries, blueberries, blackberries, huckleberries). Hull the strawberries and halve or quarter. Halve large blackberries. Add 1 tablespoon (15 ml) lemon juice to the fruit mixture. If your berries are very ripe and sweet, reduce the brown sugar to 2 tablespoons (25 g). Divide the fruit among eight 8-ounce (225-g) ramekins or canning jars placed on a rimmed baking sheet to catch any drips. Bake the fruit for 15–20 minutes, then add the topping and bake for 20–25 more minutes. Pictured here and here. ## BLUEBERRY PLUM COBBLER WITH CORN FLOUR BISCUITS {SWEET RICE, CORN, OAT} This cobbler carries the sunny flavor of corn flour in light, buttery biscuits perched atop indigo blueberry-plum compote. Adding hot yogurt and cream to the biscuit dough may seem like an odd instruction, but it's the key to fluffy biscuits that bake up light, craggy and full of flavor. The biscuits taste like very moist, tender cornbread, the perfect foil for tart-sweet summer fruit. I especially like this cobbler at room temperature with a scoop of yogurt or whipped cream. Feel free to trade the plums for peaches, or the blueberries for black- or raspberries; all are lovely with stone fruit and corn. MAKES 6 SERVINGS FILLING 1¼ lb (580 g) plums or pluots (about 8 medium, or 4 ½ cups sliced) 9 oz (255 g) fresh blueberries (2 cups) ⅓ cup (70 g) organic granulated cane sugar 1 tbsp (7 g) cornstarch ⅛ tsp fine sea salt DROP BISCUITS ⅓ cup (50 g) sweet white rice flour ⅓ cup (40 g) corn flour ⅓ cup (35 g) GF oat flour 2 tbsp (25 g) organic granulated cane sugar, plus 2 tsp (8 g) for sprinkling the biscuits 1 tsp baking powder ¼ tsp fine sea salt 4 tbsp (56 g) cold, unsalted butter, in ¼-inch (6-mm) dice ¼ cup (60 ml) plain, whole-milk yogurt 3 tbsp (45 ml) heavy cream, plus 1 tbsp (15 ml) for brushing the biscuits Vanilla Bean Ice Cream or Whipped Cream, for serving Position a rack in the center of the oven and preheat to 425°F (220°C). To make the filling, halve the plums (or if they cling to the pit, cut them off of the pit) and cut them into ½-inch (1.3-cm) wedges. Rinse the blueberries and drain well. Combine the sliced plums, blueberries, sugar, cornstarch and salt in a large bowl, and toss to combine. Scrape the fruit and any juices into a 9-inch (23-cm) square or 10-inch (25-cm) round baking dish or the equivalent, and place the dish on a rimmed baking sheet to catch any drips. Place in the oven and bake for 20 minutes, until the juices bubble thickly. While the filling bakes, make the biscuits. In a large bowl, combine the sweet rice, corn and oat flours with the 2 tablespoons (25 g) sugar, baking powder and salt. Add the butter, and rub with your fingertips or cut in with a pastry blender until the butter is somewhat worked in with lots of little pea-sized butter bits. Chill this mixture until needed, about 10 minutes. When the fruit is nearly done, combine the yogurt and 3 tablespoons (45 ml) cream in a small saucepan. Place over a medium flame and heat, stirring frequently, until the mixture is hot and steamy, 1–2 minutes (don't let it boil or it might separate). Quickly but gently stir the hot dairy into the butter/flour mixture, stirring just until combined, evenly moistened and no floury bits remain; do not overstir. Remove the fruit from the oven, give it a gentle stir to redistribute, then use a tablespoon to drop the batter onto the fruit, creating 10–12 rough mounds. Immediately dab and brush the tops with the remaining 1 tablespoon (15 ml) cream and sprinkle with the remaining 2 teaspoons (8 g) sugar. Bake the cobbler until the biscuits are golden on top and the fruit is bubbling thickly, 18–25 more minutes. Let the cobbler cool for at least 10 minutes to allow the fruit to thicken up and the biscuits to finish baking from residual heat. Scoop into bowls and serve warm, topped with scoops of vanilla ice cream, or at room temperature with whipped cream. The cobbler is best within a few hours of baking, but leftovers can be refrigerated airtight for up to 2 days. Reheat before serving. ## BLACKBERRY BUCKWHEAT CRISPS {BUCKWHEAT, SWEET RICE, OAT} Blackberries always strike me as the most precious fruit. They are usually the last summer berry to come into season (besides huckles), and always command a high price. The fragile fruits don't travel well, thus the ones you find in the market are often underripe and painfully tart. But venture into the Northern Californian woods come high summer, and you may well find thick tangles of brambles flocked with clusters of deep purple fruit. When left to ripen in the sun, the berries turn as sweet as candy. Whether made with hand-foraged fruit or the store-bought variety (or even frozen berries), these crisps highlight blackberries' untamed flavor. Bright lemon sets off inky fruit lidded with pebbles of rich, spicy streusel full of buckwheat's earthy flavor. The buckwheat makes for a softer topping than most crisps, but I find the deep, dark flavor worth it. Topped with a scoop of Vanilla Bean or Crème Fraîche Ice Cream (here and here), they make a sumptuous late summer treat. And if you can't find this many blackberries, try the Individual Berry Marzipan Crumbles; the topping stands up better to berries with a higher water content than sturdy blackberries. MAKES 6 SERVINGS FILLING 4 cups (1 lb [450 g]) blackberries, rinsed and drained ¼ cup plus 2 tbsp (75 g) packed organic light or dark brown sugar 2 tsp (5 g) cornstarch Finely grated zest from ½ medium lemon 2 tbsp (30 ml) lemon juice ⅛ tsp fine sea salt CRUMBLE ¼ cup plus 2 tbsp (45 g) buckwheat flour 2 tbsp (15 g) sweet white rice flour 1 tbsp (6 g) tapioca flour/starch ½ cup (50 g) GF old-fashioned rolled oats ¼ cup (50 g) packed organic light or dark brown sugar ½ tsp ground cinnamon ¼ plus ⅛ tsp fine sea salt 4 tbsp (56 g) cold, unsalted butter, cut into small pieces Vanilla Bean or Crème Fraîche Ice Cream, for serving (optional) Position a rack in the center of the oven and preheat to 350°F (175°C). Place six 4-ounce (112-ml) ovenproof ramekins or canning jars on a rimmed baking sheet. To make the filling, in a large bowl, toss the blackberries with the brown sugar, cornstarch, lemon zest, lemon juice and salt until well combined. Divide the fruit among the ramekins. Bake until bubbling, 20–25 minutes. Meanwhile, make the crumble. In the bowl of a stand mixer fitted with the paddle attachment, combine the buckwheat, sweet rice and tapioca flours with the oats, brown sugar, cinnamon, salt and butter. Beat on medium-low speed until the mixture forms large, moist clumps, about 3 minutes. (Alternatively, combine the ingredients in a large bowl and rub the butter in with your fingertips.) When the fruit has baked, crumble the topping over, squeezing some into roughly hazelnut-sized chunks and leaving the rest loose—don't pack it down. Bake the crisps until the topping is golden and the fruit is bubbling furiously, 20–30 minutes. Remove from the oven and let cool for at least 10 minutes. Serve the crisps warm or at room temperature, topped with ice cream if desired. The crisps are best when freshly baked, but extras will keep, refrigerated airtight, for up to 3 days. ## APPLE CRANBERRY POMEGRANATE CRISPS WITH BROWN SUGAR TEFF STREUSEL {TEFF, SWEET RICE, OATS} Crisps and tiny canning jars are a match made in heaven, particularly where dinner parties and potlucks are concerned. They're easy to store and reheat, and having an individual portion just for you always feels a little bit special. Here, apples, cranberries and pomegranate arils form a sweet-tart base for crumbly streusel redolent with the flavors of earthy teff flour, molasses and a whiff of cinnamon. Roasting the fruit in the jars until bubbling lets the apples cook through, releasing steam in order to keep the topping crisp. The pomegranates add a bit of pop and, along with the berries, turn the filling a vibrant crimson. Teff flour forms the base for a delicate, richly flavored topping bound together with sweet rice and tapioca flours, and rolled oats add heft. Top with a scoop of ice cream and you'll have yourself a cozy dessert, though these are equally good with a bit of plain yogurt for breakfast. You'll need 6–8 small 4-ounce (112-ml) canning jars to make these dainty servings, or you can make 4 larger servings in 8-ounce (224-ml) jars or ramekins. To feed a crowd, double the filling and streusel and bake in a 10-inch (25-cm) ovenproof skillet or 9-inch (23-cm) square pan, increasing the fruit baking time to 40–50 minutes, giving the fruit a stir, then adding the topping and baking for 20–25 more minutes. MAKES 6–8 DAINTY SERVINGS FILLING 1 lb (450 g) tart baking apples, such as Granny Smith (about 3 large) ½ cup (55 g) coarsely chopped fresh or frozen cranberries ½ cup (65 g) fresh or frozen pomegranate arils 2 tbsp (30 g) organic granulated cane sugar 1 tbsp (15 ml) fresh lemon juice 1 tsp cornstarch STREUSEL ¼ cup (35 g) teff flour 2 tbsp (15 g) sweet white rice flour 1 tbsp (6 g) tapioca flour ½ cup (50 g) GF old-fashioned rolled oats ¼ cup (50 g) packed organic dark brown sugar ½ tsp fine sea salt ¼ tsp ground cinnamon 4 tbsp (56 g) cold, unsalted butter, cut into small pieces Vanilla Bean Ice Cream, for serving Position a rack in the center of the oven and preheat to 350°F (175°C). To make the filling, peel the apples, cut the flesh off the core and cut into ½-inch (1.3-cm) chunks. You should have about 3 cups. In a large bowl, toss together the apple chunks, chopped cranberries, pomegranate arils, sugar, lemon juice and cornstarch until evenly combined. Pack the mixture into 6–8 small 4-ounce (112-ml) heatproof jars (such as canning jars), filling the jars to the top. Use your hands to really pack the fruit down; it will reduce as it cooks. Place the jars on a rimmed baking sheet and cover loosely with a piece of foil. Bake until the fruit is bubbling vigorously, 25–35 minutes. Remove from the oven and uncover. To make the streusel, in a medium-sized bowl, stir together the teff, sweet rice and tapioca flours with the oats, brown sugar, salt and cinnamon. Add the butter pieces and rub them into the flour mixture with your fingertips until the butter is blended in and the mixture forms large clumps. (You can also do this in the bowl of a stand mixer fitted with the paddle attachment.) When the fruit has cooked, divide the streusel evenly among the ramekins, pinching some of it into chunks the size of hazelnuts and leaving the rest loose—don't pack it down. Bake the crisps until the streusel is golden, 18–22 more minutes. Let the crisps cool slightly, then serve warm topped with scoops of vanilla ice cream. They are best shortly after baking when the streusel is crisp, but will keep at room temperature for up to a day, or chilled for up to 3 days. Reheat in a 350°F (175°C) oven before serving. ## GINGERED PERSIMMON AND CRANBERRY PANDOWDY {SWEET RICE, OAT, MILLET} Fuyu persimmons are one of my favorite fruits. They're mild and sweet, with a buttery-crisp texture that you can eat like an apple. The first Fuyus to come into the market each fall tend to be bland and underripe. After a couple of weeks, though, they begin to turn a deep orange and, when ripened until crisp-tender, they're juicy and full of flavor. I usually eat at least one a day for the whole of fall, until they peter out in January. We toss them into salads, bake them into desserts and sprinkle them over yogurt and granola for breakfasts. Here, wedges of mild Fuyus complement tangy, astringent cranberries, whose strong personality they help to mellow, all laced with a bit of ginger and lemon zest for zip and lidded with cutouts of flaky pie dough. Scoop this into bowls and serve warm with vanilla or ginger ice cream for a dessert worthy of any fall festivity. Look for Fuyus that are bright orange and feel heavy for their size, and let them ripen at room temperature until they have just a hint of give, usually a few days in cool weather. MAKES 6–8 SERVINGS TOPPING GF oat flour, for dusting ½ recipe Pie Dough for Pandowdies 1 tbsp (15 ml) milk or cream, for brushing the dough 1 tbsp (10 g) coarse sugar (turbinado or demerara) FILLING 5 large or 7–8 smaller Fuyu persimmons (800 g [5 cups] sliced) 1 cup (100 g) fresh or frozen cranberries (halved if large) ¼ cup plus 2 tbsp (75 g) organic granulated cane sugar Finely grated zest from 1 small or ½ large lemon 2 tbsp (30 ml) lemon juice 2 tbsp (25 g) lightly packed finely chopped crystallized ginger ⅛ tsp fine sea salt 1 tbsp (8 g) cornstarch Vanilla Bean or Fresh Ginger Ice Cream (here and here), for serving To make the topping, on a surface dusted lightly with oat flour, roll out the dough into a round roughly ¼-inch (6-mm) thick. Cut into 2-inch (5-cm) squares (or use a 2-inch [5-cm] fluted biscuit cutter to cut out rounds of dough, placed close together). Stack the dough pieces on a plate and chill until cold. Position a rack in the upper third of the oven and preheat to 375°F (190°C). To make the filling, cut the tops off the persimmons, cut each one in half, and cut each half into 6–8 wedges, removing the seeds if there are any. You should have about 5 cups. In a large bowl, toss together the persimmon wedges, cranberries, sugar, lemon zest and juice, candied ginger, salt and cornstarch until well combined. Scrape the mixture into a 10-inch (25-cm) skillet or ceramic tart pan, a 9-inch (23-cm) deep-dish pie pan or a 9-inch (23-cm) square baking dish. Lay the chilled squares of dough over the fruit, overlapping them slightly and leaving some gaps for steam to escape. Brush the dough with the cream and sprinkle with the coarse sugar. Place the pan on a rimmed baking sheet to catch any drips. Bake the pandowdy until the crust is golden and the fruit is bubbling, 45–55 minutes. Let cool for at least 10 minutes. Serve warm with vanilla ice cream. The pandowdy is best freshly baked when the crust is crisp. It will keep for up to 1 day at room temperature, or up to 3 days refrigerated airtight. Reheat in a 375°F (190°C) oven before serving. VARIATIONS **GINGERED PEAR AND CRANBERRY PANDOWDY** When persimmons are nowhere to be found, trade them out for an equal amount of ripe but firm pears, peeled, cored, and cut into wedges. **APPLE, PEAR AND QUINCE PANDOWDY** Omit the persimmons, cranberries and ginger, and make the filling with 2–3 large, firm-ripe pears (300 g), 2 large tart baking apples (300 g), and 4 halves poached quinces (300 g, all peeled, cored, and cut into ½-inch (1.3-cm) thick wedges (6 cups prepared fruit). Add ½ teaspoon ground cardamom (or cinnamon) to the filling. # CUSTARDS, PUDDINGS AND SPOON DESSERTS I've always had a penchant for cool, creamy sweets, whether it was cracking the lid on a crème brûlée, savoring a pot of yogurt or devouring a cup of ice cream. Spoonable desserts are as much about texture as they are flavor. Here, alternative grains and flours add their unique qualities to custardy desserts while maintaining the delicate consistencies that we crave. Tres leches cake made with coconut flour turns light and delicate with an open crumb that soaks in coconut cream spiked with rum and covered in ripe chunks of mango. Clafoutis made with almond, rice and oat flours is especially delicate. Ice cream and roasted berries find an earthy home layered with chestnut brownies, and teff flour adds malty richness to a baked chocolate mousse of sorts studded with bourbon-soaked cherries. Mesquite flour adds a warm, wild flavor to gingersnaps that form a base for banana pudding, cheesecake and ice cream sandwiches. Dive into a trifle loaded with citrus layered over Lillet-soaked chiffon cake and sabayon—it's like an edible ray of sunshine in the depths of winter. ## CHESTNUT BROWNIE ICE CREAM SUNDAES WITH PORT-ROASTED STRAWBERRIES {CHESTNUT} The first red strawberries of the season, which show up in late February or early March in Northern California, always bring much excitement after an (admittedly short) winter of brown and orange foods. But what the berries have in color they often lack in sweetness and flavor. In a technique I learned in the pastry kitchen of San Francisco's Farallon restaurant, roasting these subpar berries with sugar draws out their jammy flavor and makes them meltingly tender. Though if you make this with ripe strawberries at the peak of their season, the compote will be extra delicious. A splash of ruby port gives an extra boost of color, adding a bit of gravitas to the sweet compote. Roasted berries keep well for up to a week or two, so feel free to double or triple the recipe as you see fit. The cooled berries can be used anywhere you would a chunky compote, i.e., spooned over crackers topped with goat cheese, enjoyed with yogurt and granola for breakfast or, my favorite, layered with ice cream and Chestnut Brownies for a grown-up sundae. The warmth of the chestnut flour plays well with the inky port in the berries, all softened with mild vanilla ice cream. If you don't have ice cream on hand, try this layered with Whipped Crème Fraîche for brownie berry trifles. MAKES 2–3 SUNDAES ROASTED STRAWBERRIES 1 pint (225 g) strawberries, hulled and halved 1 tbsp (12 g) organic granulated cane sugar 3 tbsp (45 ml) ruby port (more as needed) SUNDAES 3–4 Chestnut Brownies, crumbled or cut into chunks 4–6 scoops Vanilla Bean Ice Cream, slightly softened (or use store-bought) To make the roasted strawberries, position a rack in the center of the oven and preheat to 400°F (200°C). Spread the prepared berries on a small, rimmed baking sheet and sprinkle with the sugar and port. Roast the berries until collapsed and surrounded by a thick syrup, 35–50 minutes, gently flipping the berries over toward the end of the baking time and adding more port if the berries look dry. While still warm, scrape the berries and their syrup into a heatproof jar or container. Use warm or let cool to room temperature and chill. The berries will keep, refrigerated airtight, for up to a week or two. To make the sundaes, place a layer of brownie crumbles or chunks in a glass. Top with a scoop of ice cream and a spoonful of berries. Repeat with 1–2 more layers and serve immediately. ## APRICOT CLAFOUTIS WITH HONEY AND CARDAMOM {ALMOND, SWEET RICE, OAT} I didn't fully appreciate apricots until one spring day many years ago, when Jay's mom inherited property that came with an apricot tree. The small, heirloom-variety fruits were nothing like the underripe, pale, watery specimens found in grocery stores, and the tree was heavy with blushing fruit no bigger than a walnut in its shell. Breaking one open, still warm from the sun and bursting with flavor, I fell instantly in love with apricots. Sadly for my taste buds, the tree was not long for this world and met its maker the following year. But now I know to look out for the dainty heirloom apricots that crowd the markets each June. Here I pair them with honey and cardamom in a baked custard laced with vanilla that lets the apricots star. Apricots are unique in that they become more tart as they bake, so be sure to use the sweetest, ripest ones you can find. If you don't have apricots on hand, give this a try with sliced peaches or brandy-soaked cherries in their place. MAKES 6–8 SERVINGS 3 tbsp (42 g) unsalted butter, plus 1 tsp softened butter for greasing the pan 3 tbsp (45 ml) honey, plus 2–4 tbsp (30–60 ml) for drizzling over the top ½ vanilla bean, split lengthwise and scraped 3 large eggs ¼ cup plus 2 tbsp (45 g) blanched almond flour ¼ cup (35 g) sweet white rice flour ¼ cup (25 g) oat flour ¾ tsp ground cardamom ¼ tsp fine sea salt ¾ cup (180 ml) whole milk ¼ cup (60 ml) heavy cream 1 lb (450 g) ripe but firm apricots (about 12 medium), halved and pitted Position a rack in the center of the oven and preheat to 400°F (200°C). Grease a 10-inch (25-cm) solid tart pan or a 9-inch (23-cm) pie or cake pan with the 1 teaspoon butter and place on a rimmed baking sheet. In a small pot set over a medium flame, melt the remaining 3 tablespoons (42 g) butter and 3 tablespoons (45 ml) honey with the vanilla pod and scrapings until simmering. Remove from the heat and let steep for 10 minutes. Remove the vanilla pod (you can rinse it, let it dry and save it for making Vanilla Extract. In a large bowl, whisk the eggs until smooth. Push the almond, oat and rice flours and the cardamom and salt through a strainer directly into the egg mixture, adding back any bits that get caught in the strainer. Whisk until very smooth, then whisk in the melted butter and vanilla seed mixture. Gradually whisk in the milk and heavy cream. The consistency will be that of a thick crepe batter. (The batter can be made a day ahead and chilled overnight. If it separates, whisk it to recombine.) Pour the batter into the pan and arrange the apricot halves, cut side up, over the batter. Bake the clafoutis until puffed and golden and a toothpick inserted near the center comes out clean, 30–35 minutes. Remove and let cool for at least 20 minutes, then drizzle with the remaining 2–4 tablespoons (30–60 ml) honey. Serve warm or at room temperature. Leftovers can be refrigerated airtight for up to several days; reheat prior to serving if you like. ## LEMON RICOTTA BISCUIT BREAD PUDDING WITH BERRIES AND HONEY {OAT, MILLET} I came up with this dessert as a way to use extra ricotta biscuits while testing out the recipe, though now I dare say I often bake a batch of biscuits for the sole purpose of turning them into this pudding. Toasted biscuits soak up a tangy custard laced with crème fraîche, nutmeg, vanilla and lemon. Topped with blistered blueberries and a drizzle of honey, the whole thing tastes a bit like ricotta cheesecake. MAKES 6 SERVINGS 1 tsp softened butter, for the pan 4 Lemon Ricotta Biscuits, preferably day old, cut into 1-inch (2.5-cm) chunks to equal about 3 cups (200 g) 2 tbsp (25 g) organic granulated cane sugar Seeds from ½ vanilla bean (or ½ tsp vanilla extract) Finely grated zest from ½ large lemon ⅛ tsp fine sea salt ⅛ tsp freshly grated nutmeg 2 large eggs ½ cup (120 ml) Crème Fraîche or heavy cream 1 cup (235 ml) whole milk 1 cup (120 g) fresh or frozen blueberries 2 tbsp (30 ml) honey, for drizzling Position a rack in the center of the oven and preheat to 325°F (165°C). Lightly grease a 10 by 7–inch (25 by 18–cm) oval gratin dish or 8-inch (20-cm) round or square baking pan with the softened butter. Spread the biscuit pieces on a rimmed baking sheet and toast in the oven until golden and dry, 10–15 minutes. Let cool. Spread the toasted biscuits evenly in the buttered baking dish. Place the sugar in a medium-sized bowl, add the vanilla seeds and lemon zest and rub with your fingers until the sugar is moistened. Whisk in the salt and nutmeg, then whisk in the eggs one at a time until smooth. Whisk in the crème fraîche, then the milk. Pour the custard over the biscuits in the pan and scatter the berries over the top. Bake the pudding in the center of the oven until puffed and golden all over, 35–45 minutes. There should be no wet liquid if you peek into the center with the tip of a knife. Let the pudding cool to warm or room temperature, at least 20 minutes and up to 1 hour. Serve warm or at room temperature, drizzled with the honey. Leftover pudding can be refrigerated airtight for up to 3 days; rewarm before serving. ## CREAMY BAKED GRITS WITH SWEET CORN AND BERRIES {CORN} My dad used to make us Cream of Wheat cereal for breakfast every morning, and these baked grits satisfy in a similar way. Creamy, flecked with bits of grain, this turns out a handsome golden porridge from yellow corn polenta and crunchy kernels of sweet corn. Starting the grits on the stove then giving them a long bake in the oven means less hands-on time stirring, stirring, stirring. The top and edges get a bit caramelized and the grits thicken as they cool. These make a cozy early summer breakfast when doused with a splash of cream, a drizzle of honey and fresh berries. And don't miss the savory variation topped with cheese and a turn of black pepper—it's also highly addictive. MAKES 6–8 SERVINGS 2 tbsp (28 g) unsalted butter, plus 1 tsp for greasing the pan 2 large ears sweet corn 2½ cups (590 ml) water 2½ cups (590 ml) whole milk ¾ tsp fine sea salt 1 cup (160 g) uncooked yellow corn grits or polenta 3 tbsp (45 ml) mild honey, plus extra for drizzling Cream or milk, for serving 2–4 cups (230–460 g) mixed summer berries, for serving Position a rack in the upper third of the oven and preheat to 350°F (175°C). Rub a 2-quart (2-L) gratin dish, 10-inch (25-cm) ovenproof skillet or 9-inch (23-cm) square baking pan with the 1 teaspoon butter. Shuck the corn and remove the silk. Hold a cob upright in a shallow bowl and, with a downward sawing motion, use a small serrated knife to carefully slice off the top half of the kernels. Reverse the knife and use the back of the blade to scrape the remaining milk from the cob and into the bowl with the kernels. Repeat with the remaining cob. You should have about 1½ cups (217 g) kernels and scrapings. In a medium, heavy-bottomed saucepan, heat the water, milk and salt over a medium-high flame until it comes to a simmer, stirring occasionally to prevent the milk from scorching and taking care not to let the pot boil over. Whisking constantly, slowly sprinkle in the grits, and cook, still whisking, until the grits have swollen into a thin porridge, about 10 minutes, decreasing the heat as needed to maintain a bare simmer. Remove from the heat and whisk in the corn kernels and scrapings, the 3 tablespoons (45 ml) honey and the remaining 2 tablespoons (28 g) butter. Pour the grits into the greased pan and place the pan on a rimmed baking sheet to catch any drips. Place in the oven and bake until the edges and top are golden and the grits have thickened, 60–70 minutes. The grits will soufflé up in the oven, but will settle back down when cool. Let the grits cool for 15 minutes—they will thicken considerably—then spoon into bowls and serve warm topped with a splash of cream, a drizzle of honey and a mess of fresh berries. The grits will continue to thicken and firm as they cool. Leftovers can be chilled, cut into squares and seared in a hot, buttery skillet to reheat. They will keep, refrigerated airtight, for up to 3 days. VARIATION: CHEESY SWEET CORN BAKED GRITS Honey and corn give this dish a nice savory/sweet contrast that's well suited to breakfast. Omit the honey altogether if you prefer a strictly savory dish. Omit the berries and cream topping. Make the grits as directed on the stove top, pour them into the greased pan and sprinkle the top all over with 1½ cups (150 g) grated sharp cheddar or other flavorful melting cheese. Top with plenty of coarsely ground black pepper and proceed with the recipe. ## BOOZY CHOCOLATE CHERRY TEFF POTS {TEFF} These little pots of chocolate cherry goodness fall somewhere between a baked mousse and a flourless cake in taste and texture. Whipping the whole eggs with sugar makes for a fluffy batter that, while rich in flavor from chocolate and teff flour, still tastes feather-light on the palate. Infusing the cherries with bourbon adds another layer of flavor, though you can leave it out if you prefer. Individual jars make these particularly well suited to dinner parties and potlucks, though you could also bake the batter in a 2-quart (2-L) baking dish, increasing the baking time as needed and spooning the baked pudding into bowls. I like these best when still slightly warm from the oven, but they can be made ahead and rewarmed to order. To play up the boozy factor, pass a bowl of maple bourbon whipped cream at the table; a scoop of vanilla ice cream melting over the top makes a fine accompaniment as well. Teff flour creates a silky smooth base, but another soft flour (buckwheat, chestnut or sweet rice) could easily stand in. MAKES 8 SERVINGS 1¼ lb (560 g) fresh sweet cherries, stemmed, pitted and halved (about 3 cups) ¼ cup (60 ml) bourbon or GF whiskey (such as Queen Jennie) 4 tbsp (56 g) unsalted butter 5 oz (145 g) bittersweet chocolate (60–70% cacao mass), coarsely chopped (1 cup) 3 large eggs ½ cup (100 g) organic granulated cane sugar ½ tsp fine sea salt 5 tbsp (40 g) teff flour ½ cup (120 ml) heavy cream 1 tsp vanilla extract Powdered sugar, for dusting Whipped Cream, Maple Bourbon Whipped Cream or Vanilla Bean Ice Cream, for serving (optional) Position a rack in the center of the oven and preheat to 325°F (165°C). Place eight 8-ounce (225-ml) ramekins or canning jars on a rimmed baking sheet. Combine the prepared cherries and the bourbon in a bowl and let macerate, tossing occasionally, while you prepare the filling, at least 20 minutes and up to several hours. Meanwhile, combine the butter and chocolate in a small saucepan and place over the lowest possible flame, stirring constantly until the mixture is melted and smooth, about 5 minutes. Set aside to cool slightly. In the bowl of a stand mixer fitted with the paddle attachment, combine the eggs, sugar and salt. Whip on high speed until the mixture has tripled in volume, 5–10 minutes. Reduce the speed to low and slowly sprinkle in the teff flour, mixing until just combined. Pour the melted chocolate mixture into the bowl, mixing until just combined, then add the cream and vanilla. Drain the cherries, reserving their bourbony juices, and add the juices to the filling mixture. Remove from the mixer and fold with a flexible silicone spatula to make sure it is homogenous. Place the soaked cherries in the bottom of the ramekins and pour the filling over the top, dividing it evenly. Bake the pots until puffed and cracked and a toothpick inserted into the center comes out with wet crumbs, or until an instant-read thermometer reaches 170°F (75°C), 30–35 minutes. Let cool for at least 30 minutes. Dust with powdered sugar and serve warm or at room temperature, passing whipped cream at the table. The pots are best when freshly baked but will keep for a few hours at room temperature or up to 3 days refrigerated airtight. Rewarm in a 325°F (165°C) oven until warmed through, 10–15 minutes, before serving. NOTES • If you don't have a cherry pitter, these can be made with pitted frozen cherries. • If you or your guests are highly sensitive to gluten, be sure to source a certified GF whiskey such as Queen Jennie, or substitute a GF brandy. Otherwise, I like spicy Bulleit bourbon in these pots. ## BLACKBERRY CRISP FROZEN YOGURT {SWEET RICE, OAT} This frozen yogurt is just the thing for summer days when you crave a warm, gooey crisp but in a more cooling form. The ultra-creamy Vanilla Bean Frozen Yogurt on makes an easy-peasy base for thick blackberry compote flecked with nubs of cinnamon oat crumble that tastes a bit like berry cheesecake. The crumble stays toothsome for up to a few days and you'll have enough left over to sprinkle on top of individual scoops, too. Roasting the berries with sugar until jammy releases moisture and keeps them from freezing into icy chunks. If you lack an ice cream maker, never fear; layer the compote and crisp into jars or glasses with some gently sweetened Greek yogurt for blackberry crisp yogurt parfaits. MAKES ABOUT 5 CUPS (1.2 L), 10 SERVINGS ROASTED BERRIES 2 cups (250 g) blackberries ¼ cup (50 g) organic granulated cane sugar Finely grated zest from 1 medium lemon 1 tbsp (15 ml) lemon juice, or more as needed CRISP ¼ cup (35 g) sweet white rice flour 2 tbsp (10 g) oat flour 1 tbsp (5 g) tapioca flour ½ cup (50 g) GF old-fashioned rolled oats ¼ cup (50 g) packed organic light or dark brown sugar ¼ plus ⅛ tsp fine sea salt ¼ plus ⅛ tsp ground cinnamon 3 tbsp (42 g) cold, unsalted butter, cut into small pieces 1 recipe Vanilla Bean Frozen Yogurt Position a rack in the center of the oven and preheat to 375°F (190°C). To make the roasted berries, combine the blackberries, sugar and lemon zest in a small baking dish. Bake, stirring and mashing the mixture occasionally, until the berries are bubbling thickly, 30–40 minutes. Remove from the oven and stir in the lemon juice, then scrape into a heatproof container and chill until cold, at least 1 hour and up to 2 days. To make the crisp, in the bowl of a stand mixer fitted with the paddle attachment, combine the sweet rice, oat and tapioca flours with the oats, brown sugar, salt, cinnamon and butter. Mix on low speed, increasing to medium speed, until the butter is worked in and the crisp begins to clump together, about 3 minutes. (Alternatively, combine the crisp ingredients in a large bowl and rub the butter with your fingertips until the mixture begins to clump together.) Spread the crumble on a small, rimmed baking sheet lined with parchment paper and bake until golden and fragrant, 15–20 minutes, gently stirring the crisp once or twice to bring the outer edges in, and breaking up any large clumps bigger than the size of a hazelnut. Let the crisp cool completely. Place 1 cup (100 g) in the freezer to layer into the frozen yogurt and reserve the rest for garnish, airtight at room temperature. Place a large loaf pan in the freezer. Make and churn the frozen yogurt and while it's still soft, spread one-third of it in the frozen loaf pan. Dollop with one-third of the berries and one-third of the frozen crisp. Repeat with 2 more layers, giving the top layer a swirl with the tip of a knife or chopstick to make it pretty. Chill the frozen yogurt until firm, at least 2 hours and up to several weeks. Let soften for 5–10 minutes, then serve scoops sprinkled with the extra crisp. The frozen yogurt is best within a day or two, when the crisp is crunchy, but it will keep for up to several weeks. For longer storage, press a piece of parchment paper directly onto the top of the frozen yogurt to discourage ice crystallization and wrap or cover airtight. VARIATION: BLUEBERRY CRISP FROZEN YOGURT Omit the blackberries, using 2 cups (250 g) blueberries in their place (as pictured here). ## NECTARINE CHEESECAKES IN JARS WITH MESQUITE GINGERSNAP CRUSTS {SWEET RICE, MESQUITE} Jars make easy work of cheesecakes for a variety of reasons: 1) They can easily bake in a water bath, which keeps the custard extra creamy; 2) they bake and cool in a fraction of the time a larger cheesecake would, meaning cheesecake in your face sooner; and 3) they are adorable. Here, relatively thin layers of crust and custard leave room on top for a rosette of nectarine slices and a good fruit-to-custard ratio. The rosettes look harder to make than they really are, requiring merely wrapping thin slices of the fruit around themselves in layers. If you're pressed for time, you can simply toss slices or chunks of the fruit with a bit of lemon juice and honey and pile them on top. The deep, dark flavor of the mesquite gingersnaps sets off the mild custard and summer fruit. The 6-ounce (180-ml) jars from Weck, measuring 3½ inches (9 cm) in diameter, are an ideal vessel for these custards, leaving ample room for the fruit topping. Alternatively, make 4 larger servings in 8-ounce (235-ml) jars or ramekins. MAKES 6 INDIVIDUAL 6-OUNCE (180-ML) CHEESECAKES 2 cups (110 g) broken-up Mesquite Gingersnaps or store-bought gingersnaps 2 tbsp (28 g) unsalted butter, melted 8 oz (225 g) cream cheese, at room temperature ¼ cup (50 g) organic granulated cane sugar ⅛ tsp fine sea salt 1 large egg, at room temperature 1 tsp vanilla extract ¼ cup (60 ml) Crème Fraîche or sour cream 3–4 medium ripe but firm nectarines Lemon juice, for drizzling over the nectarines Honey, for drizzling over the nectarines NOTE: When making cheesecake, always have your cream cheese and eggs at room temperature; otherwise, you may end up with lumpy custard. To warm it up quickly, cut the cream cheese into small cubes, place them in the bowl of your mixer, and set them in a warm spot (such as on top of the oven) while you make the crust. It should be soft within 20–30 minutes. Position a rack in the center of the oven and preheat to 350°F (175°C). Place six 6-ounce (180-ml) canning jars in a roasting pan. Process the gingersnaps in a food processer until finely ground. Add the melted butter and pulse until evenly moistened. Divide the crust mixture among the jars and use the back of a spoon or small, silicone spatula to pack it in firmly. Bake the crusts for 10 minutes. Remove from the oven and let cool slightly. Decrease the oven temperature to 300°F (150°C). Bring a kettle of water to a boil. In the bowl of a stand mixer fitted with the paddle attachment (or in a large bowl with a handheld mixer or wooden spoon), beat together the softened cream cheese, sugar and salt on medium-low speed until smooth, 2–3 minutes, scraping down the paddle and sides of the bowl a few times. Add the egg and beat until smooth, scrape the paddle and bowl, then beat in the vanilla and crème fraîche. Give the batter a final stir by hand to make sure it's homogenous. Scrape the batter into a liquid measuring pitcher and divide it evenly among the jars. Rap each jar on the counter a few times to pop any large air bubbles. Pour enough boiling water into the roasting pan to come halfway up the sides of the jars, and carefully transfer to the oven. Bake the cheesecakes until set when you give them a shake, 15–35 minutes (the bake time will vary greatly with the size and shape of the baking vessels). Remove from the oven and use oven mitts to carefully lift the jars out of the water. Let cool to room temperature, about 1 hour. Serve at room temperature or cover and chill until cold, 1 hour or up to 2 days. To make the nectarine rosettes, slice the fruit off of the pit. Place a cut side down and use a sharp knife to cut it into very thin slices, a scant ⅛-inch (3-mm) thick. Squeeze a little lemon juice over the slices; this will keep then from oxidizing. Starting with the smallest slices, hold a slice on your work surface and gently roll into a circle with overlapping ends; this will be the innermost "petal." Wrap slices around the first slice, overlapping as you go. When you can no longer hold the rosette closed on your work surface, use a butter knife or small offset spatula to transfer it to the center of the cheesecake. Continue wrapping slices around the rosette until the jar is full. Repeat with the remaining cheesecakes. Drizzle a bit of honey over the top of each and serve immediately. ## PEAR AND POMEGRANATE CLAFOUTIS WITH VANILLA, SAFFRON AND PISTACHIOS {ALMOND, SWEET RICE, OAT} Similar to an oven pancake or Dutch baby, clafoutis traditionally involves boozy cherries roasted in a crepelike batter until gently puffed. This fall version uses ripe pears and pomegranate arils kissed with vanilla, saffron and pistachios for an Eastern take on the traditional French dessert. Use pears that are ripe and fragrant but firm enough to hold their shape, such as Bartlett or Anjou. The pomegranate seeds keep their shape as they bake, and, along with the pistachios, add a pleasant pop of color as well as texture. Soft pears, tart pomegranate, floral vanilla and exotic saffron all come together to make a beguiling dessert with flavors emerging one after another as you chew. A trio of flours—almond, sweet rice and oat—creates a smooth batter that puffs gently as it cooks, just like the real deal. The batter can be made a day ahead to ease preparations on the day you plan to serve it. If you prefer, feel free to use all half-and-half in place of the milk and cream in the custard. A little precious saffron goes a long way, so don't overdo it. Its flavor continues to emerge the longer the baked dessert sits. I wouldn't hesitate to eat leftovers for breakfast the next morning with a scoop of plain yogurt. MAKES 6 SERVINGS 3 tbsp (42 g) unsalted butter, plus 1 tsp softened butter for greasing the pan ½ vanilla bean, split lengthwise and scraped A pinch of saffron threads ( tsp), crumbled 3 large eggs ¼ cup (50 g) organic granulated cane sugar, plus 1 tbsp (12 g) for sprinkling over the top ¼ tsp fine sea salt ¼ cup plus 2 tbsp (45 g) blanched almond flour ¼ cup (35 g) sweet white rice flour ¼ cup (25 g) oat flour ¾ cup (180 ml) whole milk ¼ cup (60 ml) heavy cream 3 medium ripe but firm pears (1 lb [450 g]), peeled, cut off the core and sliced lengthwise ¼-inch (6-mm) thick ½ cup (65 g) pomegranate arils ¼ cup (30 g) raw, shelled pistachios, roughly chopped Position a rack in the center of the oven and preheat to 400°F (200°C). Rub the bottom and sides of a 10-inch (25-cm) round solid-bottom tart, pie or cake pan or skillet (or the equivalent) with the 1 teaspoon softened butter. In a small pot set over a medium flame, melt the remaining 3 tablespoons (42 g) butter with the vanilla pod and scrapings and the saffron until simmering. Remove from the heat and let steep for 10 minutes. Remove the vanilla pod (you can rinse it, let it dry and save it for making Vanilla Extract. In a large bowl, whisk together the eggs, ¼ cup (50 g) sugar and salt. Push the almond, rice and oat flours through a strainer directly into the egg mixture, adding back any bits that get caught in the strainer. Whisk until very smooth, then whisk in the flavored butter and any good stuff hanging out on the bottom of the pan. Gradually whisk in the milk and heavy cream. The consistency will be that of a thick crepe batter. (The batter can be made a day ahead and chilled overnight. If the batter separates, whisk it to recombine.) Pour the batter into the buttered pan. Arrange the pears over the batter and sprinkle with half of the pomegranate arils and half of the pistachios, reserving the rest for garnish, then sprinkle with the remaining 1 tablespoon (12 g) sugar. Bake the clafoutis until puffed and golden and a toothpick inserted near the center comes out clean, 25–35 minutes. Remove and let cool for at least 20 minutes. Garnish with the remaining pomegranate arils and pistachios and serve warm or at room temperature. Leftovers can be refrigerated airtight for up to several days; reheat prior to serving if you like. ## NOCINO TIRAMISÙ {SWEET RICE, MILLET, OAT} In Italy, caffè corretto, espresso fortified with a shot of booze, is a classic hangover cure. My favorite spirit with which to correct my coffee (and occasionally myself) is nocino, a fortified brandy or grappa made by steeping unripe green summer walnuts with spices and sugar. After several months, the tannins in the walnuts turn the spirit a deep chestnut brown, and the spices create a fall-flavored beverage perfect for holiday imbibing. Nocino della Cristina, made in the Napa Valley of California, is a favorite brand, with notes of sweet, bitter and spice melded together into one heavenly digestivo. Here, I've added nocino to the classic Italian treat tiramisù (literally, "pick me up") usually made with ladyfingers soaked in boozy coffee and smothered in zabaglione and whipped mascarpone. Chiffon cake stands in for the ladyfingers here, and its richer taste makes it fine to omit the zabaglione for a less fussy, and still very boozy, dessert. The result is a spoonable mouthful of moistened cake, a bit of salty tang from the mascarpone and lots of deep, dark nocino and coffee. This is a snap to put together once the cake is made, which, along with the other components, can be done up to 2 days ahead and refrigerated airtight. Additionally, the whole tiramisù can also be assembled up to 1 day ahead; it just gets better as it sits. MAKES 9 LARGE OR 12 SMALLER SERVINGS 1 Vanilla Chiffon Cake, cooled COFFEE SYRUP 1¼ cups (300 ml) strong-brewed coffee, hot or warm ¼ cup plus 2 tbsp (90 ml) nocino liqueur 2 tbsp (25 g) organic granulated cane sugar WHIPPED MASCARPONE 8 oz (225 g) mascarpone 1¼ cups (300 ml) heavy cream Seeds from ½ vanilla bean (or ½ tsp vanilla extract) ¼ cup (50 g) organic granulated cane sugar ⅛ tsp fine sea salt 2- or 3-oz (56- or 85-g) bar semisweet or bittersweet chocolate, for grating Prepare the cake as directed and let cool completely. To make the coffee syrup, stir together the coffee, nocino and sugar until the sugar is dissolved. Set aside. To make the whipped mascarpone, in the bowl of a stand mixer fitted with the whip attachment (or in a large bowl with a balloon whisk or hand beater), whip together the mascarpone, cream, vanilla seeds, sugar and salt until the mixture holds firm peaks. Cover and chill until needed. Cut the cake in half, then cut crosswise into ½-inch (1.3-cm) thick slices. Lay 1 layer of cake slices cut side up in an 8- or 9-inch (20- or 23-cm) square pan or the equivalent, cutting the pieces as needed to make them fit. Drizzle with half of the coffee syrup; it should be enough to moisten the cake through, but not so much that it pools in the bottom. Spread the soaked cake with half of the whipped mascarpone and grate a good layer of chocolate directly over the cream, about 1 ounce (28 g); a small handheld grater works well. Repeat the layering process once more, ending with the grated chocolate. Serve right away with a spoon if you just can't wait; otherwise, chill the tiramisù for 1–2 hours until set, or up to 1 day, and cut into slices to serve. Tiramisù keeps well, refrigerated airtight, for up to 3 days. VARIATION: RUM TIRAMISU Omit the nocino. Make the coffee syrup with dark or spiced rum (such as The Kraken) and 3 tablespoons (40 g) sugar. Proceed with the recipe. NOTE: Nocino is traditionally made with grappa or brandy and is usually free from trace amounts of gluten. If you or your tiramisù eaters are highly sensitive, check with individual retailers before imbibing. Alternatively, try the rum variation, above. ## PUMPKIN ICE CREAM SANDWICHES WITH MESQUITE GINGER MOLASSES COOKIES {SWEET RICE, MESQUITE} San Francisco is known for its wonky seasons, as noted by Mark Twain one summer long ago. We get our summer in the fall, when the rest of the country is cozied up in scarves and mittens sipping hot cider and baking pumpkin spice everything. Meanwhile, I can usually be found sweltering in our apartment, drinking icy cocktails and trying to concoct desserts full of warming spices that still manage to refresh. Enter these ice cream sandwiches. The chewy version of the mesquite gingersnaps on makes a spicy vessel for ice cream that tastes like frozen pumpkin pie, delivering a fall flavor fix inside even when it's still Indian summer out there. MAKES ABOUT FOURTEEN 3-INCH (7-CM) SANDWICHES PUMPKIN ICE CREAM 1 cup (235 ml) whole milk ¼ cup (50 g) organic granulated cane sugar 4 cinnamon sticks (3 inches [7.5 cm] each), crushed 1 generous tbsp (8 g) coarsely chopped fresh ginger ½ vanilla bean, split lengthwise and scraped ⅛ tsp salt 4 large egg yolks 1¼ cups (300 ml) heavy cream 1 cup (235 ml) roasted squash puree (see Note on or unsweetened canned pumpkin puree ¼ cup plus 2 tbsp (75 g) packed organic light brown sugar ½ tsp freshly grated nutmeg 1 recipe Chewy Double-Ginger Molasses Cookies baked and cooled NOTE: Save the egg whites for making Chestnut Plum Financiers or Vanilla Chiffon Cake. To make the ice cream, in a medium, heavy-bottomed saucepan, heat the milk with the sugar, crushed cinnamon sticks, ginger, vanilla pod and seeds and salt, swirling occasionally until the mixture begins to steam and small bubbles appear around the sides of the pot. Turn off the heat, cover and let steep for 30 minutes. When the milk mixture has steeped, place the egg yolks in a medium bowl and place the bowl on a damp towel to stabilize it. Rewarm the milk mixture to steaming, and drizzle the hot dairy into the egg yolks, whisking constantly. This is called "tempering," and it prevents the yolks from scrambling. Return the custard to the pot, and cook over medium-low heat, stirring constantly with a heatproof silicone spatula, scraping the bottom and sides of the pot, just until the mixture begins to "stick" (forms a thin film) to the bottom of the pot, and/or registers 170°F (77°C) on an instant-read thermometer. Immediately remove the pot from the heat, and whisk in the cream, squash puree, brown sugar and nutmeg. Pour the ice cream base through a fine-mesh strainer, working the mixture through with a silicone spatula. Cover the mixture and chill until very cold, at least 4 hours and up to 2 days. Process the ice cream in an ice cream maker according to the manufacturer's instructions. Scrape the ice cream into a container, cover and freeze until firm enough to scoop, at least 2 hours and up to several weeks. To make the sandwiches, let the ice cream soften slightly, 5 minutes or so. Place a small baking sheet in the freezer. Working quickly, place a ¼ cup (60 ml) scoop of ice cream on the flat side of a cookie, and top with a second cookie, flat side down, pressing the cookie to flatten the ice cream slightly. Transfer the sandwich to the pan in the freezer. Continue until you've used up all the cookies or all the ice cream. For long-term storage, place the sandwiches in a large storage container or wrap individually. They will keep for up to 1 month. For best results, let soften at room temperature for 5 minutes before devouring. ## BANANA BUTTERSCOTCH PUDDING WITH MESQUITE GINGERSNAPS {SWEET RICE, MESQUITE} My friend Michelle, who was a rock star recipe tester for this book, turned me on to banana pudding when we baked together one summer at a music camp in Mendocino, California. She made the famous pudding from Magnolia Bakery in New York, which, despite being comprised of boxed cookies, instant vanilla pudding mix and sweetened condensed milk, all layered together with bananas and whipped cream and allowed to chill for several hours until melded, tasted like it had descended from heaven. After a few (hundred) mouthfuls, I developed a Pavlovian response to Michelle, dreaming of pudding each time I saw her. Here is a marginally healthier version, gussied up with mesquite gingersnaps, homemade butterscotch pudding and a whiff of bourbon. Eat it fresh and the cookies will be crisp, or let it chill for up to 24 hours and the pudding will meld into one deliciously spoonable dessert. The pudding portion is adapted lightly from a _Gourmet_ recipe that's a snap to make and gets the ratios just right. MAKES 6 SERVINGS PUDDING 2 tbsp (28 g) unsalted butter, in several pieces 2 tbsp plus 2 tsp (18 g) cornstarch ¼ tsp fine sea salt ½ cup (110 g) packed organic dark brown sugar 1½ cups (355 ml) whole milk ½ cup (120 ml) heavy whipping cream ½ vanilla bean, split lengthwise and scraped (or ½ tsp vanilla extract) WHIPPED CREAM ¾ cup (175 ml) heavy whipping cream 2 tsp (8 g) organic granulated cane sugar 1 tbsp (15 ml) bourbon or GF whiskey (such as Queen Jennie) ½ tsp vanilla extract FOR FINISHING 2 cups (110 g) Mesquite Gingersnaps crumbled 3–4 large ripe but firm bananas To make the pudding, have the butter measured out and close at hand. Place a strainer over a medium heatproof bowl or large measuring pitcher and set aside. In a medium saucepan, whisk together the cornstarch, salt and brown sugar. Add the milk, cream and vanilla bean and scrapings and bring to a boil over medium heat, whisking frequently (you will have to stop whisking to verify that it is boiling; there will be fat bubbles that pop gloopily). While you whisk, be sure to scrape the entire bottom of the pot, including the corners. When you see the gloopy bubbles, reduce the heat to medium-low to maintain a simmer and continue cooking and whisking for an additional 1–2 minutes; the pudding should be the texture of a loose yogurt. Turn off the heat and whisk in the butter. Scrape the pudding through the strainer and into the bowl. Let cool to room temperature, then cover and chill until cool but still spoonable, 30–60 minutes. To make the whipped cream, in the bowl of a stand mixer fitted with the whip attachment (or in a large bowl with a sturdy wire whisk or hand mixer), whip the cream with the sugar until soft peaks form. Beat in the bourbon and vanilla. Cover and chill until needed. In six 6- to 8-ounce (175- to 235-ml) glasses, ramekins or jars, crumble in a shallow layer of gingersnaps. Top with a layer of butterscotch pudding. Peel the bananas and cut them into ¼-inch (6-mm) slices. Fan a layer of bananas over the pudding, and top with a layer of whipped cream. Repeat with a second layer of each component, ending with a dollop of whipped cream. Garnish with a crumble of gingersnaps. Serve immediately, or cover the puddings and chill for up to 2 days. The cookies will be crisp at first but will soften up after an hour or two. NOTE: If you or your dessert eaters are highly sensitive to gluten, be sure to use a GF whiskey here, such as Queen Jennie. Otherwise, I like Bulleit's bitey bourbon. ## CITRUS TRIFLE WITH LILLET SABAYON {SWEET RICE, MILLET, OAT} Sabayon is a workout. Ten minutes of vigorous whisking is required to produce the frothy custard, a mixture of eggs, sugar and booze cooked over a hot water bath until light and airy. You'll feel the burn, but hey, no pain no gain, right? Here, the sabayon is chilled and folded together with whipped cream to form layer upon layer of spoonable dessert, which beats the heck out of a recovery shake. Lillet Blanc, a GF wine–based aperitif, has notes of floral honey, ripe apricots and bittersweet citrus. Here, I use it in place of the usual vermouth to make a fluffy sabayon, which captures its beautiful flavors. More Lillet soaks slices of citrus-kissed chiffon cake, and the whole thing gets layered in a glass vessel for a sunny presentation that will gussy up any winter soirée. Spoon trifle into individual dessert glasses or bowls, or construct individual portions in glass mason jars. You'll likely have a bit of cake left over to enjoy with a cup of tea (or glass of Lillet) while you wait for guests to arrive. You'll need some of the leftover egg whites from the sabayon for the chiffon cake; save the rest for making financiers. In the summer, try this trifle with berries in place of the citrus. MAKES 10–12 SERVINGS SABAYON 8 large egg yolks ½ cup (100 g) organic granulated cane sugar ⅛ tsp fine sea salt ¾ cup (180 ml) Lillet Blanc (or other sweet, white wine–based aperitif) 1 cup (235 ml) heavy whipping cream CITRUS 1 large Cara Cara or navel orange 2 medium pink or ruby grapefruits 2 medium blood oranges 3 medium tangerines CAKE One 8-inch (20-cm) round Citrus Chiffon Cake ½ cup (120 ml) Lillet Blanc Honey, for drizzling To make the sabayon, prepare an ice bath by combining ice cubes and cool water in a large bowl. Set aside. In a large, stainless steel or copper bowl, whisk together the egg yolks, sugar, salt and ¾ cup (180 ml) Lillet. Place the bowl over a pot of barely simmering water and whisk the dickens out of it constantly for 5–10 minutes. The mixture will froth up, then begin to thicken and eventually form a ribbon when you lift the whisk and let the sabayon drip back into the bowl. As you whisk, be sure to swipe every inch of the bowl's walls to prevent the eggs from scrambling, and adjust the heat under the pot as needed to maintain a gentle simmer. You may want to hold the bowl with one oven-mitted hand and use the other to whisk. When the sabayon reaches the ribbon stage, quickly remove the bowl from the pot, taking care not to burn yourself on the steam, and place the bowl in the ice bath. Stir occasionally to chill the sabayon. Meanwhile, in a stand mixer fitted with the whip attachment or in a large bowl with a hand blender, whip the cream until it just holds firm peaks. When the sabayon is chilled, gently fold in the whipped cream until no streaks remain. Cover and chill the sabayon until needed; it will hold for a couple of hours. To prepare the citrus, cut the outer ends off of the fruits to reveal the flesh. Squeeze the ends into a pitcher to save any precious juice; you'll use it to moisten the cake. With a cut side down, use a sharp paring knife to cut away the skin and pith, following the curve of the fruit. Slice the fruit crosswise into ¼-inch (6-mm) thick rounds, removing any seeds. Reserve any juices from the citrus and add it to the pitcher with the juice. You should have ¼–½ cup (60–120 ml). To assemble the trifle, cut the cake into ½-inch (1.3-cm) thick slices, and cut each slice into a 2-inch (5-cm) rectangle. Stir together the ½ cup (120 ml) Lillet and reserved citrus juice. In a large glass bowl or other vessel, make a layer of cake pieces, overlapping them slightly. Drizzle with a few tablespoons of the Lillet/juice mixture to moisten the cake slightly. Make a layer of overlapping citrus rounds atop the cake, and top with generous dollops of the sabayon. Repeat the layering process until you've filled your vessel, or used up your ingredients, ending with a layer of citrus. Cover and chill the trifle until ready to serve, preferably 1–6 hours to meld the flavors. When ready to serve, drizzle a little honey over the top of the citrus to give it a pretty shine, and scoop portions into serving bowls. Leftover trifle keeps well, refrigerated airtight, for up to 3 days. ## TRIPLE COCONUT "TRES LECHES" CAKE WITH MANGO AND LIME (DAIRY-FREE) {SWEET RICE, COCONUT, MILLET} If you find regular cakes overly dry, tres leches is the cake for you. A sponge cake traditionally soaked with a mixture of sweetened condensed milk, evaporated milk and heavy cream, the luscious Mexican sweet falls somewhere between cake and custard. This dairy-free version is made with gently sweetened coconut milk kissed with rum and vanilla bean. With coconut flour in the cake and toasted coconut shreds on top, it's more of a tres cocos cake (but who's counting?). Ripe chunks of mango threaded with lime zest provide a bright counterpoint, though I've found this equally lovely when topped with fresh raspberries or sliced strawberries tossed with a bit of sugar. A splash of dark rum adds an extra layer of flavor to the milks, but you can leave it off if need be. Be sure to source one that is gluten-free if you or your cake eaters are extra-sensitive. MAKES 9 SERVINGS 1 recipe Coconut Flour Chiffon Cake, warm MILK MIXTURE 3 tbsp (30 g) organic granulated cane sugar ½ vanilla bean, split lengthwise and scraped 2½ cups (590 ml) full-fat, well-shaken canned coconut milk Big pinch of fine sea salt 3 tbsp (45 ml) dark or spiced rum (gluten-free such as The Kraken) FOR FINISHING 1 cup (30 g) unsweetened coconut flakes (chips) 2 medium mangos, ripe and fragrant but firm (1½ lb [680 g]) 1 lime NOTE: To make individual round cakes as pictured, bake the cake in an 8- or 9-inch (20- or 23-cm) square pan and use a plain biscuit cutter to cut 9 equal rounds out of the cake. Bonus: You'll have plenty of scraps to nibble on while you wait for the cakes to chill. Alternatively, cut the cake into 9 squares, or bake a round cake and cut it into wedges. Prepare the cake in an 8- or 9-inch (20- or 23-cm) square pan as directed (see Note). To make the milk mixture, place the sugar in a medium saucepan and add the vanilla pod and scrapings. Use your fingertips to rub the seeds into the sugar to distribute them evenly. Stir in the coconut milk and salt. Bring to a bare simmer over medium heat, stirring frequently, then remove from the heat, cover and let steep for 10–20 minutes to infuse with the vanilla. Strain the mixture through a fine-mesh sieve and into a heatproof bowl or jar. Let cool to warm, stirring occasionally to prevent a skin from forming, then stir in the rum. When the cake has cooled to warm, cut it into 9 rounds or squares, leaving the cake in the pan, and poke it all over with a slender chopstick or skewer. Slowly pour over 1½ cups (355 ml) of the milk mixture, letting it absorb into the cake. Let cool completely at room temperature, adding more of the milk mixture if you want it creamier. Use a small, offset spatula or butter knife to pry up the cake rounds/slices and peel away any scraps (save these for snacking!), placing the cakes on a platter or sheet pan lined with a clean sheet of parchment paper. Cover the cakes loosely with plastic wrap, and chill both the cakes and the extra milk mixture until cold, at least an hour and up to a day or two. To finish, preheat the oven to 325°F (165°C). Spread the coconut flakes on a small baking sheet and toast until golden, 5–10 minutes. To prepare the mango, use a T-shaped vegetable peeler to pare away the peel. Cut the mango off the core, and cut the flesh into a medium dice, placing it in a medium bowl. Repeat with the second mango. Use the vegetable peeler to pare away 3–4 thin strips of lime zest, then cut the strips into whisper-thin strands. Add them to the mango, and add a tablespoon (15 ml) of lime juice, folding it through evenly. Taste, adding more lime or a bit of sugar if you feel the fruit needs it. Serve the cake rounds in shallow bowls splashed with some of the chilled coconut milk mixture, spoon the mango over and top with a small handful of coconut chips. # COOKIES AND BARS My first attempt at gluten-free cookies was an epic fail. Not knowing any better, I simply traded the wheat flour for brown rice flour in a classic recipe. The cookies looked fine when they baked up. Ha! I thought. That was easy. I slipped the cookies into a container and brought them to a party, where I proffered them to the hostess. She eagerly dug into the container to lift up a cookie, and her face fell as it crumbled into a million particles. Since then, I've learned a thing or two about alternative flour cookies. Namely, they need something sticky to hold them together. Sweet white rice flour helps a lot, as does tapioca flour for chewiness. The plus side is that the doughs can't be overworked the way that wheat doughs can, meaning that you'll always have tender cookies (though hopefully not quite so tender as my very first batch). Here, alternative flours add tastes and textures of their own. Soft chestnut flour makes for the most melt-in-your-mouth brownies imaginable, and it bakes into insanely tasty chocolate chip cookies loaded with browned butter, dark milk chocolate and tart cherries. Buckwheat adds earth and spice to double chocolate cookies, contrasting a whiff of fresh bergamot zest and keeping them extra tender. Teff adds malty depth to classic oatmeal cookies, and coconut flour gives blondies extra chew. Pistachio meal adds its elusive flavor to a shortbread-like base for cheesecake squares, and what would madeleines be without nubby almond flour to keep them moist and light? Though these recipes are some of the simplest in the book, many are sensitive to slight changes in temperature and measurements. For instance, the oatmeal cookies on took me ten tries to get just right! When making drop cookies, here are some tips for success: • Measure accurately. Use dry measuring cups and spoons for dry ingredients, and use the dip and sweep method. Better yet, invest in a small digital kitchen scale and use weight measurements. • If possible, use the brands of flour suggested (see "Alternative Grains and Flours," here and here). Different grinds of grains can have dramatic effects on a cookie's ability to absorb moisture, spread and bake properly. • Make sure your oven is accurate to the best of your knowledge. (See here.) • Bake off a test cookie to check the spread and bake time. This way if something needs adjusting, you have only one imperfect cookie instead of a whole tray. And if you've accidentally left out an essential ingredient—say, the leavening or salt—you'll be able to add it to the rest of the dough. If the cookie doesn't spread enough, decrease the oven temperature by 25–50°F (5–10°C) and try again. And if it spreads too much, increase the temperature that amount. • If your cookies get close to overbaking, remove them from the sheet pan immediately to stop the cooking. This is extra-easy to do if you bake the cookies on a rimless cookie sheet lined with parchment paper—just slide the whole thing, parchment and all, onto a cooling rack. • Always cool your cookies completely before storing, lest they steam themselves and become brittle or stale. ## CHERRY CHESTNUT CHOCOLATE CHIP COOKIES {CHESTNUT} These cookies get loads of flavor from vanilla bean brown butter, toasted pecans and plenty of salt, and they bake up with crispy edges and chewy middles that stay soft for days. One tester described them perfectly: "These are SO delicious! I thought they'd taste more like chestnut, but really they just have this incredibly nutty, toasty je ne sais quoi about them that's enhanced by the pecans and perfectly offset by the tartness of the cherries." Do feel free to swap out the cherries for dried cranberries, the pecans for walnuts. If you can't find dark milk chocolate, use a good semisweet or bittersweet bar instead; do be warned that the bitterness of the chocolate will exaggerate the assertive taste of the chestnut flour. Be sure to pull these from the oven when they still seem underbaked; they will continue cooking from residual heat. For fresh-baked cookies on the fly, cover and chill the dough for up to 1 week. When ready to bake, let the dough soften at room temperature for an hour or so, then scoop and bake. Cookies from dough that has chilled bake up extra thick and chewy, while baking the dough freshly made results in thinner cookies with crispier edges. See tips for browning butter. MAKES ABOUT FOURTEEN 3-INCH (75-CM) COOKIES ½ cup (55 g) raw pecan halves 8 tbsp (113 g) unsalted butter ½ vanilla bean, split lengthwise and scraped ½ cup (110 g) packed organic light brown sugar ¼ cup (50 g) organic granulated cane sugar ¾ cup (80 g) chestnut flour ¼ cup (30 g) tapioca flour ½ tsp baking soda ½ tsp fine sea salt 1 large egg 6 oz (170 g) dark milk chocolate (35–40% cacao mass), coarsely chopped (1¼ cups) ½ cup (55 g) dried tart cherries NOTE: These cookies were tested with Calleris chestnut flour, which is darker in color and has an assertive, smoky flavor. If making these with lighter-hued chestnut flour from Ladd Hill Orchards, increase the chestnut flour to 1 cup (105 g). If you find the cookies made with dark chestnut flour too spready, add 2 tablespoons (12 g) oat flour to the dough, and/or chill the dough until firmer, 30 minutes or up to 1 week, before baking. Position racks in the upper and lower thirds of the oven and preheat to 375°F (190°C). Line 2 rimless cookie sheets with parchment paper. Spread the pecans on a small, rimmed baking sheet and toast until fragrant and slightly darkened in color, 8–10 minutes. Remove and let cool completely, then break into rough quarters. Meanwhile, melt the butter and vanilla bean and scrapings together in a small, heavy-bottomed saucepan over medium heat. Continue to cook, swirling occasionally, until the butter turns golden and smells nutty, 3–5 minutes. Place the sugars in a large bowl and when the butter has browned, scrape it and any browned bits into the sugar immediately to stop the cooking. Let cool, stirring occasionally, 10 minutes. Remove the vanilla pod and discard (or save for making Vanilla Extract. Meanwhile, sift together the chestnut and tapioca flours, baking soda and salt into a medium-sized bowl. Set aside. When the sugar mixture has cooled to warm, beat in the egg until well combined. Use a sturdy wooden spoon to stir the flour mixture into the sugar mixture, stirring until well combined, then continue to stir vigorously for a few more seconds; the mixture will firm up slightly. Stir in the cooled pecans, chopped chocolate and cherries until evenly distributed. If the dough is soft, let it sit at room temperature or in the refrigerator to firm up a bit, 15–30 minutes (or chill for up to 1 week). Scoop the dough into 1½-inch (4-cm) diameter balls (about 3 tablespoons; a size 24 or 30 spring-loaded ice cream scoop makes this a snap) and place them on the prepared cookie sheets, spacing them 2–3 inches (5–7.5 cm) apart. Bake the cookies until the edges are golden and set and the tops are pale golden but still soft and underbaked, 10–14 minutes, rotating the pans back to front and top to bottom after 8 minutes for even baking. Remove the cookies from the oven, let cool on the pans for a minute, then pull them, parchment and all, onto cooling racks to stop the cooking. They will be very soft and fragile at first, but will firm up when cool. Let cool to warm, at least 10 minutes, before devouring. Cooled cookies can be stored airtight for up to 3 days. ## TEFF OATMEAL COOKIES WITH WHISKEY CURRANTS {TEFF, OATS} Cookies are one of the simplest sweets you can make, but sometimes they're the hardest to get just right. These particular cookies took me ten tries! Each time when I was about to give up, I'd take a bite of a failed cookie. Tasting the combination of malty teff, peppery nutmeg and whiskey-kissed currants gave me the inspiration (and sugar high) I needed to soldier on. Luckily, even the failed batches were easy to get rid of. Jay turned into a cookie monster, wandering around the house bellowing, "Mee want cooookie" when there was a lull in production. These cookies bake up thick and chunky with moist middles and a bit of heft from chewy oats and currants. This makes a relatively small batch, so be sure to double the amounts if you need to appease any cookie monsters in your life. Do give yourself an extra 3–4 hours for soaking the currants when making these, or soak them for up to a week ahead of time. If you're in a hurry, bring the whiskey to a simmer in a small saucepan (being careful not to ignite it if using an open flame), add the currants, cover the pot and let steep for an hour or two until the whiskey is absorbed. MAKES ABOUT FIFTEEN 2 ½-INCH (6-CM) COOKIES ½ cup (75 g) currants 2 tbsp (30 ml) bourbon or GF whiskey (such as Queen Jennie) ¾ cup (90 g) walnuts 8 tbsp (113 g) unsalted butter ¼ cup plus 2 tbsp (80 g) packed organic light brown sugar ¼ cup (50 g) organic granulated cane sugar 1 large egg ½ tsp vanilla extract ¾ cup (100 g) teff flour (I use Bob's Red Mill) ¼ cup (27 g) tapioca flour ¾ tsp fine sea salt ¼ tsp baking soda 1 tsp lightly packed freshly grated nutmeg 1 cup (90 g) GF old-fashioned rolled oats NOTE: Freshly grated nutmeg tastes infinitely more nuanced and delicious than the pre-ground stuff, which loses volatile oils as it sits. Combine the currants and bourbon in a jar and let sit to absorb the bourbon, at least 3 hours and up to several days, shaking the jar occasionally. Position a rack in the upper third of the oven and preheat to 350°F (175°C). Line 2 rimless cookie sheets with parchment paper. Spread the walnuts on a small sheet pan and toast in the oven until golden and fragrant, 8–10 minutes. Let cool completely, then chop roughly. Place the butter in a small saucepan and set over low heat to melt, swirling occasionally. Place the sugars in a large bowl and stir in the melted butter. Let cool slightly, 5 minutes, then whisk in the egg and vanilla. Place a strainer over the bowl and add the teff flour, tapioca flour, salt, baking soda and nutmeg. Sift the flour mixture into the butter mixture, then stir vigorously to combine thoroughly. Drain the currants of any excess whiskey (no need to squeeze them dry) and stir them into the dough along with the oats and nuts. If the dough is soft, let it stand at room temperature to firm up, at least 15 minutes or up to 2 hours. The dough can also be chilled for up to several days; bring back to room temperature before proceeding to the next step. Scoop the dough into 1½-inch (4-cm) diameter balls (about 3 tablespoons; a size 24 or 30 spring-loaded ice cream scoop makes this a snap) and place them on the prepared cookie sheets, spacing them 2–3 inches (5–7.5 cm) apart. Bake the cookies one pan at a time on the upper rack until the edges of the cookies are golden and set and the tops are pale golden but still soft, 10–15 minutes. Remove the cookies from the oven and let them cool on the pans. They will be very soft and fragile at first, but will firm up as they cool. These are best the day of baking when the edges are crisp and the centers moist. Cooled cookies can be stored airtight for up to 3 days; they will soften slightly and become more fragile as they sit. VARIATION: TEFF OATMEAL CHOCOLATE CHIP COOKIES Omit the currants, whiskey and nutmeg, folding in 6 ounces (168 g) coarsely chopped bittersweet chocolate (1¼ cups) along with the nuts. ## BUCKWHEAT BERGAMOT DOUBLE CHOCOLATE COOKIES {BUCKWHEAT} These little chocolate pillows are essentially brownies masquerading as cookies, packed with the flavors of citrusy fresh bergamot, nutty buckwheat flour and crunchy flakes of Maldon salt. Whipping the eggs with the sugar lends an airy texture, and plenty of warm butter and chocolate give the tops a pretty, glazed crackle. The trick to the crackly tops is to have the melted chocolate/butter mixture hot enough to partially dissolve the sugar but not so hot as to cook the eggs or melt the chocolate chunks once added. The mixture should feel pleasantly warm, but not scalding hot, to the touch. If you don't have access to fresh bergamots, use orange zest in its place. Or you can leave out the citrus altogether and you'll still have the most divine chocolate cookies imaginable. MAKES ABOUT THIRTY 2-INCH (5-CM) COOKIES 6 tbsp (85 g) unsalted butter 12 oz (345 g) bittersweet chocolate (60–70% cacao mass), chopped (about 2¼ cups), plus several chunks for the tops of the cookies 1½ tsp (1 g) packed finely grated zest from 1 medium bergamot (or orange) ½ cup (65 g) buckwheat flour 2 tbsp (15 g) tapioca flour ¾ tsp baking powder 2 large eggs, at room temperature ½ cup plus 2 tbsp (130 g) organic granulated cane sugar ½ tsp fine sea salt 1 tsp vanilla extract Flaky salt such as Maldon, for the tops Position racks in the upper and lower thirds of the oven and preheat to 350°F (175°C). Line 2 rimless cookie sheets with parchment paper. Place the butter in a small, heavy-bottomed saucepan set over the lowest possible heat. Add 8 ounces (230 g) of the chocolate and the bergamot zest, and melt together, stirring frequently to prevent the chocolate from scorching. Continue cooking until the mixture is pleasantly warm, but not super hot, to the touch. Remove from the heat and keep warm. Sift the buckwheat flour, tapioca flour and baking powder into a small bowl and set aside. Meanwhile, place the eggs, sugar and salt in the bowl of a stand mixer fitted with the paddle attachment and whip on medium-high speed until the mixture is very light and fluffy, 5 minutes. Turn the mixer to low and stir in the vanilla until just combined, then the warm chocolate butter mixture. Add the flour mixture and beat on low speed until combined. Remove the bowl from the mixer and use a flexible silicone spatula to fold in the remaining 4 ounces (115 g) chopped chocolate. If the batter is very runny, let it cool for a few minutes until it firms to the consistency of a thick brownie batter. Use a #40 spring-loaded ice cream scoop or 2 spoons to drop heaping tablespoons of batter onto the prepared baking sheets, spacing them at least 2 inches (5 cm) apart. Top each cookie with a few chunks of chocolate and a few flecks of flaky salt. Bake the cookies until puffed and cracked and the edges are set, 8–12 minutes, rotating the pans front to back and top to bottom halfway through baking. Let cool on the pans. Enjoy warm or at room temperature. The cookies are best the day of baking but will keep, airtight at room temperature, for up to 3 days. ## MESQUITE GINGERSNAPS OR GINGER CATS {SWEET RICE, MESQUITE} The bright, spicy flavors of cinnamon and ginger complement earthy mesquite flour beautifully, so I shoved them all into these buttery cookies, which can take on many shapes. Chill the dough and cut them into gingersnaps, gingerbread guys and gals or (my personal favorite) ginger cats! I scored my cat cutters from the originator of ginger cat cookies, fellow orange tabby mom and gluten-free food blogger Sarah Menanix of SnixyKitchen.com. These thin, crisp cookies can be crumbled into Banana Butterscotch Pudding or crushed into a crust for Nectarine Cheesecakes. The chewy version below makes killer ice cream sandwiches. MAKES ABOUT 36 COOKIES 12 tbsp (170 g) unsalted butter, softened but cool ⅔ cup (130 g) organic granulated cane sugar ¼ cup (60 ml) unsulfured blackstrap molasses 1 large egg 1 cup (155 g) sweet white rice flour, plus extra for rolling the cookies 1 cup (125 g) mesquite flour ¼ cup (25 g) cornstarch ¾ tsp baking soda 1 tsp powdered ginger ½ tsp ground cinnamon ½ tsp fine sea salt VARIATION: CHEWY DOUBLE-GINGER MOLASSES COOKIES Make the dough as directed, stirring ½ cup (70 g) finely chopped crystallized ginger into the finished dough. Cover and chill the dough until firm, 1 hour and up to 3 days prior to baking. Place ½ cup (100 g) organic granulated cane sugar in a shallow bowl. Scoop the dough into 1-inch (2.5-cm) diameter balls, roll in the sugar and place on sheet pans spaced 2–3 inches (5–7.5 cm) apart. Bake the cookies one pan at a time until the edges are golden and the centers are soft and cracked, 10–14 minutes. In the bowl of a stand mixer fitted with the paddle attachment (or in a large bowl with a wooden spoon), beat the butter and sugar together until light and fluffy, 2–3 minutes. Add the molasses, then the egg, beating to combine after each. Place a mesh strainer over the bowl and sift in the sweet rice and mesquite flours with the cornstarch, baking soda, ginger, cinnamon and salt. Return to the mixer and beat on low speed until well combined, then give the bowl a final scrape on the bottom and sides with a flexible spatula to make sure the dough is homogenous. (If making Chewy Double-Ginger Molasses Cookies, skip to the directions in the variation, below.) For gingersnaps, divide the dough in half and place each half on a large piece of plastic wrap. Flatten into disks roughly ½-inch (1.3-cm) thick, and wrap and chill until firm, at least 1–2 hours and up to 3 days. When ready to bake, position a rack in the upper third of the oven and preheat to 325°F (165°C). Line 2–3 cookie sheets with parchment paper. Unwrap 1 portion of dough and place it between 2 pieces of parchment paper dusted lightly with rice flour. Use a rolling pin to roll the dough to ¼-inch (6-mm) thick, dusting with flour as needed to keep the dough from sticking, turning and flipping the dough and parchment paper as you work and dusting off excess flour with a pastry brush. Slide the whole thing onto a baking sheet and chill again until firm, 15–30 minutes. Repeat with the other half of the dough. Peel away the top piece of parchment, make sure the dough isn't sticking to the bottom piece and use cookie cutters to cut out shapes as close together as possible, placing the cookies on the prepared cookie sheets spaced 1 inch (2.5 cm) apart. If the cookies are soft after cutting, chill them again until firm; this will help them hold their shape. Press dough scraps together and repeat the rolling/chilling/cutting process until you've used up all the dough. Bake the cookies one sheet at a time until fairly set and beginning to color around the edges, 8–12 minutes. They will still be soft and slightly puffed, but will settle down and crisp up when cool. Watch closely, as these go from baked to burnt in no time. If your cookies are still soft after cooling, return them to the oven for a few more minutes to crisp them up. Let cool, then store airtight at room temperature for up to 3 days. VARIATION: BUCKWHEAT GINGERSNAPS Omit the mesquite flour, using ½ cup (70 g) buckwheat flour and ¼ cup (25 g) oat flour. Follow directions for either the gingersnaps or the Chewy Double-Ginger Molasses Cookies. ## PISTACHIO LIME AND MATCHA SNOWBALLS {ALMOND, OAT} I have my sweetie's mother, Mary, to thank for showing me the way to perfect snowballs. Also known as polvorones or Russian tea cakes, these orbs of nutty dough encased in powdered sugar are some of my favorite cookies both to make and to eat. There's something meditative about shaping the dough into balls and rolling them—twice—in powdered sugar. As the sugar absorbs moisture from the baked cookies, it transforms into an icing of sorts, giving way to a sandy shortbread full of nuts and gently sweetened. These snowballs get a verdant update from green pistachios, lime zest and matcha green tea powder, which, along with a generous dose of salt, create layers of flavor. A trio of flours—almond, oat and tapioca—create a neutral backdrop and a melt-in-the-mouth texture that will leave you hungry for more. These cookies store well, making them ideal for holiday gift-giving, but good luck making them last that long... MAKES ABOUT THIRTY-TWO 1½-INCH (3.8-CM) COOKIES ½ cup (100 g) organic granulated cane sugar Zest from 3 large limes (about 4 packed tsp [8 g]) 1 cup (125 g) blanched almond flour ½ cup (55 g) oat flour ¼ cup (30 g) tapioca flour/starch 1 tbsp (4 g) culinary-grade matcha, plus extra for sprinkling ½ tsp fine sea salt (not table salt) 1 cup (125 g) raw pistachios, chopped semi-fine into ⅛–¼-inch (3–6-mm) pieces 8 tbsp (113 g) cold, unsalted butter, diced ¾ cup (90 g) powdered sugar Position a rack in the center of the oven and preheat to 350°F (175°C). Line a rimmed baking sheet with parchment paper. Place the sugar in the bowl of a stand mixer fitted with the paddle attachment and add the lime zest. Mix on low speed until the sugar is moistened, 1–2 minutes. Add the almond, oat and tapioca flours, matcha powder, salt and chopped pistachios and mix on low speed to combine, 30 seconds. Scatter the butter pieces over the top and mix on medium-low speed until the butter is completely incorporated and the dough comes together in large clumps, 3–5 minutes. Sift the powdered sugar into a shallow bowl. Form tablespoon-sized 1-inch (2.5-cm) balls of dough and roll them in the powdered sugar, knocking off any large clumps. Place the balls on the baking sheet, spacing them at least 1 inch (2.5 cm) apart. Bake the cookies until puffed, cracked and slightly golden, 15–20 minutes. The cookies will be soft at first but will crisp up when cool. Let the cookies cool completely on the pan, then roll each one a second time in the powdered sugar. Dust the tops with a bit of matcha pushed through a small strainer. They will keep, airtight at room temperature, for up to 1 week. ## TANGERINE VANILLA BEAN MADELEINES {ALMOND, MILLET, SWEET RICE} Madeleines intimidated me for many years, and the madeleine pan I impulse-bought once at a cookware store sat neglected at the bottom of the cupboard for years. I may have made one batch in the beginning and, finding them bland and high-maintenance, gave up. Then one day in my food readings, I learned that madeleines can be flavored with brown butter and ground almonds, similar to financiers—which are neither bland nor high-maintenance—and my curiosity was piqued. Using a gluten-free recipe from one of my favorite sites, London Bakes, as a springboard, thus began my Proustian love affair with the elusive cookies. Unlike my first madeleine trial of yore, these get a kick of flavor from tangerine zest and butter browned with vanilla, and the batter comes together easily with one bowl and a whisk. Madeleines are undeniably adorable to look at and, when coated in a thin glaze kissed with vanilla bean and tangerine juice, they take on the appearance of pretty shells found by the sea. I keep the cookies on the less-sweet side to complement the glaze, but you can also finish them with a light dusting of powdered sugar if you prefer. Unlike most madeleines, these keep well for up to several days, the glaze and almond flour locking in moisture. Do let the batter rest in the fridge for at least an hour to firm up the melted butter, and be sure to use a pastry brush dipped in room-temperature butter to paint the crevices of the madeleine molds. My madeleine pan has 12 molds, so I make these in two rounds. If you lack madeleine molds, give these a try in mini muffin pans for tiny fairy cakelets. MAKES 18 MADELEINES MADELEINES 7 tbsp (100 g) unsalted butter, plus 1–2 tbsp (14–28 g) very soft (not melted) unsalted butter, for the pan ½ vanilla bean, split lengthwise and scraped ¼ cup plus 2 tbsp (75 g) organic granulated cane sugar 2 tsp (10 g) finely grated tangerine zest (from 3–4 tangerines) 2 large eggs ¼ tsp fine sea salt ½ cup (60 g) almond flour ¼ cup plus 3 tbsp (60 g) millet flour ¼ cup plus 1 tbsp (50 g) sweet white rice flour 1 tsp (5 g) baking powder GLAZE 1 cup (110 g) powdered sugar Seeds from ½ vanilla bean 2–3 tbsp (30–45 ml) strained fresh tangerine juice (as needed to make a runny glaze) To make the madeleines, in a small, heavy-bottomed saucepan, melt the 7 tablespoons (100 g) butter with the vanilla pod and scrapings over medium heat, swirling occasionally. After 3–5 minutes, the butter will foam up, then turn golden and smell nutty. Watch it closely at this point so it doesn't burn. When the butter has browned, remove from the heat and let cool slightly. Remove the vanilla pod and discard. Place the sugar and tangerine zest in a large bowl and use your fingertips to rub the zest into the sugar until moistened; this helps draw out the citrus oils. Whisk in the eggs and salt. Place a strainer over the top of the bowl and add the almond, millet and sweet rice flours and baking powder. Sift in the dry ingredients, adding back any bits left in the strainer. Stir the flour into the egg mixture until well combined, then whisk in the slightly cooled brown butter and any good stuff hanging out on the bottom of the pan. Cover the dough and chill until firm, 1 hour or up to overnight. When ready to bake, position a rack in the center of the oven and preheat to 375°F (190°C). Use a pastry brush to coat the molds of a madeleine pan generously with some of the remaining 1–2 tablespoons (14–28 g) softened butter. Fill the molds three-quarters full with the batter; it will be rather firm. I find it easiest to place a scant scoop of batter from a spring-loaded #40 ice cream scoop in the molds and flatten the batter out with my fingers; a small spoon or a piping bag fitted with a large, plain tip are other good options. Bake the madeleines until they spring back to the touch, 8–12 minutes. Let cool slightly, then carefully loosen from their molds (a small offset spatula can help) and place, pretty side up, on a rack to cool. Wipe the madeleine pan clean and repeat the buttering/battering/baking process to make the rest of the cookies. To make the glaze, in a small bowl, whisk together the powdered sugar, vanilla seeds and enough tangerine juice to make a glaze that's the consistency of heavy cream. While the madeleines are still slightly warm, dip the shell-shaped side in the glaze, coating it completely and letting the excess drip back into the bowl. Place glaze side up on the rack and let set until firm, 20 minutes. The madeleines are best the day of baking but will keep, airtight at room temperature, for up to 3 days. ## CHESTNUT BROWNIES {CHESTNUT} It's always a win when an alternative flour doesn't just match its glutinous counterpart but actually bests it. Such is the case with these brownies, which are adapted from a favorite Alice Medrich recipe. Chestnut flour gives the middles a velvety texture that wheat-based brownies only dream of, and it adds its own earthy sweetness, blending seamlessly with copious amounts of butter and chocolate. If you make these, I warn you that you may be hard-pressed to ever use a more mundane flour in brownies again. That said, buckwheat and teff flours both complement chocolate and can likely take the place of the harder to find chestnut flour here. Like the double chocolate cookies whipping the eggs with sugar adds lightness to the batter, making leavening unnecessary. The trick to the pretty tops is to have the chocolate-butter mixture fairly warm when you add it to the eggs. These keep well for up to several days. Turn them into a grown-up ice cream sundae topped with port-roasted strawberries and ice cream. MAKES 16 SMALL BUT RICH BROWNIES 6 tbsp (85 g) unsalted butter 8 oz (230 g) bittersweet chocolate (60–70% cacao mass), chopped (about 1½ cups) ½ cup (50 g) chestnut flour 2 tbsp (15 g) tapioca flour 3 large eggs, at room temperature ¾ cup (150 g) organic granulated cane sugar ½ tsp fine sea salt 1 tsp vanilla extract Position a rack in the center of the oven and preheat to 350°F (175°C). Line an 8-inch (20-cm) square baking pan with 2 crisscrossed pieces of parchment paper cut to fit widthwise, leaving an overhang on each side. This will make the brownies easy to remove from the pan. Place the butter in a small, heavy-bottomed saucepan set over the lowest possible heat. Add the chocolate and let melt together, stirring frequently to prevent the chocolate from scorching. Continue cooking until the mixture is pleasantly warm, but not super hot, to the touch. Remove from the heat and keep warm. Sift the chestnut and tapioca flours into a small bowl and set aside (chestnut flour tends to clump, so don't skip this step). Meanwhile, place the eggs, sugar and salt in the bowl of a stand mixer fitted with the paddle attachment and whip on medium-high speed until the mixture is very light and fluffy, 5 minutes. Turn the mixer to low and stir in the vanilla until just combined, then the warm chocolate-butter mixture. Add the flour mixture and mix on low until combined. Remove the bowl from the mixer and use a flexible silicone spatula to give the batter a final stir by hand, scraping the bottom of the bowl and making sure all the flour is incorporated. Scrape the batter into the prepared pan and smooth into an even layer. Bake the brownies until the top is puffed and a toothpick inserted into the center comes out with moist crumbs, 24–30 minutes, taking care not to overbake. Let the brownies cool completely, then use the parchment handles to lift them out of the pan and onto a cutting board. Use a sharp chef's knife dipped in hot water and wiped clean between each cut to slice the brownies into 16 squares. The brownies keep well, airtight at room temperature, for up to 3 days, or refrigerated for up to 5 days. ## CASHEW LIME BLONDIES {SWEET RICE, COCONUT} One of my favorite childhood treats was a soft and chewy drop cookie flavored with plenty of brown sugar and packed with white chocolate and macadamia nuts. I have a distinct memory of nomming them on the way home from day camp one summer, purchased from Gelson's market in Los Angeles by my dad. Now that my taste buds are a bit more grown up, I like hefty doses of flaky salt and lime to cut the sweet richness of white chocolate, and I make sure to get the good stuff made with cacao butter and plenty of vanilla. Green & Black's is my preferred brand, which is organic and flecked with vanilla bean. Since macadamias can be difficult to find, I trade them out for toasted cashews. Coconut flour is the magic ingredient that makes these extra dense, moist and chewy, adding a tropical note without the bothersome texture of shredded coconut and setting off the brown sugar cookie bars beautifully. Organic dark brown sugar has the extra moisture and molasses that we want here, but light brown sugar should work in a pinch. I like these best the day after baking, when the flavor of the lime zest becomes more pronounced. MAKES SIXTEEN 2-INCH (5-CM) BLONDIES ¾ cup (105 g) raw cashews 8 tbsp (113 g) unsalted butter Finely grated zest from 2 medium limes ½ cup plus 2 tbsp (125 g) packed organic dark brown sugar 1 large egg 1 tsp vanilla extract ¼ cup plus 1 tbsp (45 g) sweet white rice flour ¼ cup (30 g) coconut flour ½ tsp baking powder ½ tsp fine sea salt 4 oz (120 g) good-quality white chocolate (such as Green & Black's), coarsely chopped (1 scant cup) ¼–½ tsp flaky salt (such as Maldon) Position a rack in the center of the oven and preheat to 350°F (175°C). Line the bottom and sides of an 8-inch (20-cm) square baking pan with parchment paper. Spread the cashews on a small, rimmed baking sheet and toast in the oven until golden, 5–7 minutes. Remove and let cool, then chop coarsely. Meanwhile, place the butter in a small saucepan and set over low heat to melt. Zest the limes directly into the pot and cook for a few minutes to infuse the butter, swirling the pan occasionally. Place the brown sugar in a large bowl and stir in the melted butter mixture. Let the mixture cool to warm, 5 minutes, then stir in the egg and vanilla until combined. Set a strainer over the bowl and sift in the sweet rice and coconut flours along with the baking powder and sea salt. Stir vigorously until well combined, then stir in the chopped cashews and white chocolate. Scrape the dough into the prepared pan and use a small offset spatula to spread it evenly. Sprinkle the top with the flaky salt. Bake the blondies until puffed, shiny and slightly cracked on top, and a toothpick inserted near the center comes out with a few large, wet crumbs clinging, 18–22 minutes. Let the blondies cool completely, then remove from the pan, peel away the parchment and use a large, sharp chef's knife to trim away the outer ¼ inch (6 mm) and cut into 16 bars. Store the blondies, airtight at room temperature, for up to 3 days. ## BERRY CHÈVRE CHEESECAKE SQUARES WITH PISTACHIO SHORTBREAD CRUST {SWEET RICE, MILLET} I could pretty much live off of goat cheese at every meal, including and especially dessert! Here, fresh chèvre adds a touch of sophistication to a creamy cheesecake base wrapped around fresh summer berries, all perched atop a crumbly pistachio–millet flour crust. Bring these to a party and watch them disappear—they're a true crowd-pleaser. These bars come together easily, with both components being made in a food processor, and they are less fussy to bake than a large, round cheesecake, as cracking isn't an issue. They take about 1½ hours total to assemble and bake, plus an additional 4 hours to cool and chill, so plan accordingly. Most of this time is inactive, and the bars can be made a day or two ahead of time, a boon for dinner parties and potlucks. If you're not a goat cheese fan like I am, feel free to make this with 1 pound (450 g) of cream cheese. These bars also work well with huckleberries or wild blueberries. For thinner bars, bake these in a 9 by 12–inch (23 by 30–cm) pan, adjusting the bake times as needed. MAKES 16 LARGE OR 24 SMALLER BARS CRUST ¾ cup (100 g) shelled raw pistachios, plus extra for decorating ½ cup (80 g) sweet white rice flour ½ cup (75 g) millet flour 3 tbsp (20 g) tapioca flour ⅓ cup (65 g) organic granulated cane sugar ½ tsp fine sea salt 8 tbsp (113 g) cold, unsalted butter, cubed 1 tsp vanilla extract FILLING 8 oz (230 g) fresh soft goat cheese, at room temperature 8 oz (230 g) cream cheese, at room temperature ¾ cup (165 g) organic granulated cane sugar 2 tbsp (15 g) sweet white rice flour Seeds from 1 vanilla bean (or 1 tsp vanilla extract) Finely grated zest from 1 small lemon ¼ tsp fine sea salt 3 large eggs, at room temperature ¼ cup (60 ml) heavy cream, sour cream or Crème Fraîche 1 cup (130 g) raspberries, plus extra, halved, for decorating 1 cup (140 g) blueberries, plus extra for decorating Position a rack in the lower third of the oven and preheat to 350°F (175°C). Line the bottom and sides of a 9-inch (23-cm) square baking pan with 2 crisscrossed pieces of parchment paper or aluminum foil, leaving an overhang on each side. This will help you lift the bars out of the pan after baking, making cutting easier. To make the crust, place the pistachios, sweet rice flour, millet flour, tapioca flour, sugar and salt in the bowl of a food processor. Scatter the butter pieces over the top, sprinkle over the vanilla and pulse until the mixture begins to form large, coarse crumbs and holds together when squeezed, about 30 seconds. Dump the mixture into the lined pan, and use your hands to press it into an even layer. Bake the crust until golden and puffed, 25–35 minutes. Remove from the oven and gently press the hot crust down with the back of a spoon or the bottom of a flat measuring cup; this will help it hold together when sliced. Decrease the oven temperature to 325°F (165°C). To make the filling, wipe the food processor clean. Add the goat and cream cheeses, sugar, sweet rice flour, vanilla bean seeds, lemon zest and salt and blend just until smooth, 5–10 seconds. Add the eggs one at a time, processing until just smooth after each egg, and scraping down the sides and bottom of the bowl to prevent lumps. Add the cream and process briefly just until smooth. Scrape once more, and blend again if at all lumpy, taking care not to overprocess the mixture. Scatter the berries evenly over the cooled crust, and pour the filling over, distributing it evenly. Bake the cheesecake until the edges are set and the center wobbles very slightly when you give the pan a gentle shake, 30–45 minutes. Remove to a cooling rack and let cool for 1 hour, then cover and chill for at least 3 hours or overnight, until firm and cold. Gently loosen the sides of the cheesecake with a thin knife or offset spatula, and use the parchment paper handles to carefully lift the cheesecake out of the pan and onto a cutting board. Fill a pitcher with hot tap water and have some paper towels handy, or an old (but clean) dishtowel that you don't mind getting stained. With a large, sharp chef's knife dipped in the hot water and wiped completely dry between each cut, cut the cheesecake into bars. Place each bar in a paper muffin liner if you like, arrange on a platter, and top with a pistachio, a halved raspberry and a blueberry. Cover and chill until needed. The bars are best within a day or two of baking when the crust is crisp, but extras store well, refrigerated airtight, for up to 4 days. ## MEYER LEMON BARS WITH VANILLA-ALMOND CRUST {ALMOND, SWEET RICE, MILLET} Few baked goods get me grumpy like a bad lemon bar. At their worst, the crust is pale, bland and pasty. The topping is often a thin, gummy gel of overcooked curd. Since lemon curd needs sugar to help it set, the whole thing can be unbearably sweet to boot. These bars, on the other hand, boast a buttery-crisp crust laced with almond flour and vanilla, with a bit of added flavor from millet and vanilla bean seeds. A creamy, softly set topping bursts with the sunny flavor of Meyer lemons, a tangerine-lemon hybrid that grows abundantly throughout California. Meyers have a thinner, brighter skin that smells like flowers and sunshine, and their plentiful juice tastes sweeter than that of regular (Eureka) lemons. If you're Meyer-less, I've included a version of these bars made with regular lemon and orange juices below. And if you're lucky enough to possess a fresh bergamot, its zest and juice will make for the most fragrant lemon bars you've ever tasted. Do note that the soft topping means that these bars need to be kept refrigerated, and be sure to allow a few hours for the initial chilling before cutting and serving the bars. You will need approximately 5 large Meyer lemons for this recipe. MAKES 16 SMALL BUT RICH BARS CRUST ½ cup (60 g) almond flour ¼ cup plus 2 tbsp (55 g) sweet white rice flour ¼ cup plus 2 tbsp (45 g) millet flour Seeds from 1 vanilla bean (or 1 tsp vanilla extract) ¼ cup (50 g) organic granulated cane sugar ¼ tsp fine sea salt 5 tbsp (70 g) cold, unsalted butter, in ½-inch (1.3-cm) dice LEMON CURD 8 tbsp (113 g) cool, unsalted butter, in ½-inch (1.3-cm) dice 2½ tsp (10 g) firmly packed finely grated Meyer lemon zest (from 2–3 large Meyer lemons) 1 cup plus 2 tbsp (225 g) organic granulated cane sugar 3 large eggs 2 large egg yolks ¾ cup plus 2 tbsp (205 ml) strained Meyer lemon juice (from 4–5 large Meyer lemons) Powdered sugar, for dusting (optional) To make the crust, position a rack in the center of the oven and preheat to 350°F (175°C). Line the bottom and sides of a 9-inch (23-cm) square baking pan with 2 crisscrossed pieces of parchment paper or aluminum foil, leaving an overhang on each side. This will help you lift the bars out of the pan after baking, making cutting easier. In the bowl of a food processor, whizz together the almond, sweet rice and millet flours with the vanilla bean seeds, sugar, salt and cold butter until it begins to form large clumps, about 30 seconds. Dump the crumbs into the lined baking pan and pack it firmly and evenly with your hands or a flat-bottomed glass. Bake the crust until light golden all over and toasty smelling, 20–25 minutes. Use the back of a spoon to press the crust down firmly; this will help it hold together when the bars are cut. Decrease the oven temperature to 325°F (165°C). To make the curd, set a mesh strainer over a heatproof bowl or large measuring cup and set aside. Place the cool diced butter and lemon zest in a small bowl and set aside. In a medium, heavy-bottomed saucepan, whisk together the sugar, eggs and egg yolks to combine. Whisk in the lemon juice. Place the pot over medium-low heat and cook, stirring constantly with a heatproof silicone spatula, until the mixture thickens slightly and reaches 160°F (71°C) on an instant-read thermometer, 5–10 minutes. As you stir, be sure to scrape the entire bottom and corners of the pan, so that the mixture heats as evenly as possible. It will start out thick and cloudy from the undissolved sugar, then will turn thin and translucent and finally begin to thicken and turn cloudy again as the eggs cook. If the mixture starts to curdle or bubble, immediately remove it from the heat and proceed to the next step. Immediately pour the curd through the strainer and into the bowl to stop the cooking. Whisk in the butter pieces and zest until combined. Pour the cooked curd over the warm, baked crust. Bake the bars until the sides are barely puffed and the center wobbles like firm Jell-O when you give it a gentle shake, 18–25 minutes. It should not be wet or watery looking (underbaked), nor should it be puffed in the center or cracking (overbaked). Remove the bars from the oven and let cool for about 30 minutes, then chill until firm, 2–3 hours. Grasp the parchment and lift the bars from the pan and onto a cutting board; peel away the sides of the parchment. Trim away the outer edges of the bars, then use a large chef's knife to cut the bar into 16 squares, wiping the blade clean between cuts. Just before serving, dust the tops with a bit of powdered sugar. The bars keep well, refrigerated, for up to 3 days, though the crust is the crispiest within the first 1–2 days. VARIATIONS BERGAMOT AND MEYER LEMON BARS Fresh bergamots are becoming easier to find in specialty grocers when they come into season during the winter months, and their zest and juice make for a spectacularly unique lemon bar. Use 1½ teaspoons (5 g) lemon zest and ½ teaspoon bergamot zest. Use ¾ cup (180 ml) Meyer lemon juice and 2 tablespoons (30 ml) bergamot juice. Make the recipe as instructed. NO-MEYER LEMON BARS A mix of orange juice and zest added to regular lemon juice and zest makes superb lemon bars, for those who don't have Meyers readily available. Do be sure to use freshly squeezed juice from regular (Eureka) lemons and a Valencia or navel orange. Omit the Meyer lemon zest and juice, using instead 1 teaspoon each lemon and orange zests, ½ cup (120 ml) lemon juice, and ¼ cup plus 2 tablespoons (90 ml) orange juice. ## SWEET POTATO BOURBON CHEESECAKE BITES WITH MESQUITE-PECAN CRUST {SORGHUM, SWEET RICE, MESQUITE } Mesquite's uniquely warm, earthy flavor pairs seamlessly with roasted sweet potatoes and freshly grated nutmeg, all rolled up in these dainty cheesecake bites. Keeping with the Southern theme, I add a splash of bourbon to the filling, and pecans and sorghum flour to the crust, which, when baked, reminds me of really amazing graham crackers. They make an ideal treat for holiday parties and potlucks. In fact, the nutmegy filling reminds me a little of eggnog crossed with pumpkin pie. These are deceptively simple to make, as the crust and filling can both be done in a food processor, with the sour cream whipped just before serving. Do be sure to allow a few hours for the bars to chill in the fridge to a sliceable consistency. They keep well for up to 3 days; in fact, they just seem to get better and better. MAKES ONE 8-INCH (20-CM) SQUARE CHEESECAKE, 25 BITE-SIZED SERVINGS CRUST ¼ cup plus 2 tbsp (50 g) sorghum flour ¼ cup plus 2 tbsp (50 g) sweet white rice flour ¼ cup plus 2 tbsp (35 g) mesquite flour ½ cup (55 g) pecan halves 6 tbsp (70 g) packed organic light brown sugar ¼ tsp fine sea salt 5 tbsp (70 g) cold, unsalted butter, in ½-inch (1.3-cm) dice FILLING 1 cup (235 ml) packed roasted sweet potato flesh (see Notes) 8 oz (225 g) cream cheese, at room temperature ½ cup (100 g) packed organic light brown sugar ¼ tsp fine sea salt ½ tsp packed freshly grated nutmeg 2 large eggs 2 tbsp (30 ml) sour cream 1 tsp vanilla extract 2 tbsp (30 ml) bourbon or GF whiskey (such as Queen Jennie) TOPPING ½ cup (120 ml) sour cream ½ cup (120 ml) heavy whipping cream 1 tbsp (12 g) organic granulated cane sugar ½ tsp vanilla extract 2 tsp (10 ml) bourbon or GF whiskey (such as Queen Jennie) A handful toasted pecans, for garnish Position a rack in the lower third of the oven and preheat to 350°F (175°C). Line the bottom and sides of an 8-inch (20-cm) square baking pan—or a 9-inch (23-cm) pan for slightly thinner bars—with a large piece of parchment paper or heavy-duty aluminum foil, leaving a 1-inch (2-cm) overhang on every side. To make the crust, in the bowl of a food processor, whizz together the sorghum, sweet rice and mesquite flours with the pecans, brown sugar, salt and butter until it begins to clump together and looks like damp sand, about 30 seconds. Dump the crumbs into the lined baking pan and pack it firmly and evenly with your hands or a flat-bottomed glass. (No need to wash the food processor bowl—you'll use it again in the next step.) Bake the crust until golden and toasty smelling, 15–20 minutes. Decrease the oven temperature to 325°F (165°C). Meanwhile, to make the filling, in the bowl of the food processor, puree the sweet potato smooth, scraping down the sides of the bowl a few times. Add the cream cheese and puree smooth, then blend in the brown sugar, salt and nutmeg, pulsing until just smooth and combined, scraping down the sides of the bowl a few times. Add the eggs one at a time, pulsing until just combined after each addition. (Be careful not to overwork the cream cheese—doing so can break down the proteins and cause the mixture to become thin and watery.) Add the sour cream, vanilla and bourbon, pulsing to just combine. Remove the blade from the bowl, and give the mixture a final stir with a flexible spatula to make sure it's thoroughly combined. Spread the cheesecake batter evenly over the hot crust and rap the pan on the counter a few times to pop any large air bubbles. Place the cheesecake in the oven on the lower rack. Bake for 25–35 minutes, until the sides are gently puffed and the cheesecake is set when you give it a shake. An instant-read thermometer inserted into the center should register 165°F–170°F (74°C–76°C). Let cool completely, then chill until firm, at least 3 hours and up to 1 day. To cut the bars, grab the parchment paper handles and pull the whole thing out of the pan and onto a cutting board; it's okay if the crust cracks a little. Peel away the sides of the parchment. Use a large, sharp chef's knife, wiped clean after each cut, to trim away the edges, then cut the cheesecake into 25 squares. Cover and chill until ready to serve. To make the topping, in a large bowl with a balloon whisk (or with a handheld blender or stand mixer fitted with the whip attachment), whip together the sour cream, heavy cream and sugar until it holds soft peaks. Add the vanilla and bourbon, and whip until it holds soft peaks again. Serve small squares of the cheesecake topped with dollops of the whipped cream and pecan pieces. NOTES • To roast the sweet potatoes, place 2 medium garnet or jewel sweet potatoes on a small, rimmed baking sheet, prick them a few times with the tines of a fork and bake them in a 375°F (190°C) oven until very soft when squeezed with a pair of tongs, about 45 minutes. Let cool completely, then scoop the flesh out of the skin and into a measuring cup. (Extra sweet potato is delicious warm with a dollop of sour cream—a little treat for the baker.) • If you or your cheesecake biters are highly sensitive to trace amounts of gluten, be sure to source a GF whiskey (such as Queen Jennie). Otherwise, I like a tipple of Bulleit bourbon here. You can also leave off the booze altogether, or substitute GF brandy or dark or spiced rum. # BASICS AND ACCOMPANIMENTS Sauces and toppings can take a dessert from good to amazing. Here are a few favorites that are a snap to make at home, as well as some DIY guidelines for turning out thick crème fraîche, potent vanilla extract and perfectly browned butter. Caramel is demystified with a few easy techniques that thwart crystallization. Making ice cream at home is as simple as churning a basic stirred custard in an ice cream maker; frozen yogurt is even simpler. And you'll never accidentally overwhip cream again with one simple trick. Read on! ## HOW TO BROWN BUTTER Brown butter, called _beurre noisette_ in French for its hazelnut-like flavor, is simply butter that's been cooked until the milk solids caramelize. I like to add vanilla bean to the mix; as it cooks, it gives off the intoxicating aroma of baking cookies, and it adds incredible depth of flavor to anything you put it in. The first time I browned butter, I burned butter. So here's a bit of instruction to keep that from happening to you. Each recipe will have its own quantities, so none are given here. Butter (see individual recipes) Vanilla bean, split lengthwise and scraped (see individual recipes) Place the butter and vanilla pod and scrapings in a medium, heavy-bottomed saucepan. Place the pan over medium-low heat and cook, swirling occasionally, to melt the butter. Continue cooking the butter. After 3–5 minutes, the butter will foam up, turn golden and smell nutty, with brown flecks mingling with black vanilla bean seeds on the bottom of the pan. It may be hard to see the color of the butter beneath the foam and in the pan, so if you're unsure, spoon a little of the butter into a white, heatproof bowl; it should be golden in color and the milk solids on the bottom of the pan should be chestnut brown from caramelization, with black specks from the vanilla bean. The butter should smell so delicious that you could eat your own arm from hunger. At this point, remove the pan from the heat and immediately pour the butter into a heatproof measuring cup to stop the cooking. When ready to use, remove the vanilla bean and discard. Brown butter can be cooled and refrigerated airtight for up to a week or two. NOTE: If you don't have vanilla beans on hand, leave the vanilla out of the browning butter and add 1 teaspoon vanilla extract for every bean called for to the batter or dough with other liquid ingredients. ## VANILLA EXTRACT I pity the fool who utters the phrase "plain vanilla" in my presence. Vanilla is truly one of the more exotic flavorings that we have access to. It takes months to grow a single seedpod from the tropical vanilla orchid, and each pod must be harvested by hand and undergo a lengthy curing process. Vanilla beans are costly when purchased in single form at most grocers, but they can be ordered in bulk for a vastly lower price. (See Sources, I save the pods to stick in a jar of alcohol (inexpensive brandy is my favorite) to make an ongoing batch of vanilla extract. I'm not very scientific about it, but I wanted to share my method here. Inexpensive neutral-tasting alcohol (such as brandy, vodka or rum) Vanilla beans Put some booze in a bottle or canning jar; I usually use a 1-quart (1-L) jar as I go through a lot of beans, but you may wish to start smaller if you have only a few beans. Split a few vanilla beans lengthwise and add them to the jar to get this party started. When you end up with a stray vanilla pod, or one that you've steeped in a custard or brown butter, rinse it, let it dry and add it to the jar. Keep doing this, adding more booze to cover the beans if you need, and storing the jar in a dark place, such as a cupboard, for several months. Give it a shake occasionally when you think of it. When the liquid turns a dark brown after a few months, it's ready to use. Strain some of the liquid off and place it in a small bottle to use in your baking. Top off the jar with more booze. Continue this process indefinitely. After a few years, your beans will be spent of their flavor and you'll want to start the process over, decanting the extract and discarding the spent beans, to make room for fresh beans. NOTE: If you have vanilla beans that have become dry and hard, here's a tip I learned recently: pour an inch (2.5 cm) of inexpensive alcohol into a jar tall enough to house the beans. Add the beans to the jar and seal. After several days, the beans will absorb the liquid and plump up again, and any alcohol left in the bottom can be used as vanilla extract. ## CRÈME FRAÎCHE Crème fraîche may sound fancy, but it's actually stupid-easy to make at home. This is technically mock crème fraîche, as real crème fraîche uses a more complicated culturing process, but this works just the same when baked into recipes, whipped with cream or spooned over warm biscuits or rustic fruit desserts. MAKES A LITTLE OVER 1 CUP (245 ML) 1 cup (235 ml) heavy cream 1 tbsp (14 g) fresh buttermilk (or crème fraîche) Stir together the cream and buttermilk in a jar to combine well, cover, and leave in a warm place (such as on top of the refrigerator) for 12–24 hours. The cultures in the buttermilk will go to work on the cream to thicken it. Give the mixture a shake or stir 2–3 times as it sits to discourage a hard layer of cream from forming on the top. After 12–24 hours the mixture should be slightly thicker and have a pleasant sour smell. Give it a final stir and chill until cold, 2 hours and up to 1 week. It will thicken further as it cools. ## WHIPPED CREAM Cream whipped with a splash of vanilla and a touch of sugar is traditionally called crème chantilly (pronounced shan-tee-yee) and its flavor is as smooth and classy as the name. When you're not eating it on spoons straight from the bowl, use whipped cream on any room temperature fruit dessert (pie, tart, cobbler, crisp, etc.) or fancy up breakfast by serving it alongside scones or peach oven pancake. I've included a couple of favorite variations, below. If you can find a locally produced, nonhomogenized cream, this will taste extra sweet and delicious. Make sure your cream contains 35–40 percent fat; any heavy cream, whipping cream or heavy whipping cream should do. See here for a dairy-free version made with coconut cream. NOTE: If you accidentally whip your cream too far and it begins to thicken and seize toward becoming butter, never fear—all is not lost. You can rescue it by gently folding in additional heavy cream until the mixture becomes smooth again. Start with 2 tablespoons (30 ml) and add more as needed. MAKES ABOUT 2 CUPS (230 G) 1 cup (235 ml) cold heavy cream, whipping cream or heavy whipping cream (with a fat content of at least 35%) 2 tsp (10 g) organic granulated cane sugar, to taste ½ tsp vanilla extract (or seeds from ½ vanilla bean, added at the beginning) Place the cream (and vanilla seeds, if using) in a large, chilled bowl or the bowl of a stand mixer fitted with the whip attachment. Whip on medium speed (with the stand mixer or with a balloon whisk, handheld blender or old-fashioned non-electric egg beater) until the cream mounds softly. Sprinkle in the sugar and vanilla extract (if using) and continue whipping until the cream holds soft peaks, meaning that when you lift the beater out of the cream and turn it upside down, the peak of cream will flop over. Keep the cream cold until using; it will separate as it sits and may need to be re-whipped if chilled for longer than an hour or two. VARIATIONS MAPLE BOURBON WHIFFED CREAM The warm flavors of maple and whiskey make this well-suited to fall desserts such as pumpkin pie and pecan tart. Omit the sugar, using 1 tablespoon (15 ml) maple syrup or maple sugar instead. Omit the vanilla and add 1–2 tablespoons (15–30 ml) bourbon or GF whiskey (such as Queen Jennie). WHIFFED CRÈME FRAÎCHE (OR YOGURT OR SOUR CREAM) This denser, tangier whipped cream makes a fabulous accompaniment to most any fruit dessert. Use ½ cup (120 ml) Crème Fraîche (or sour cream, or whole-milk Greek yogurt or skyr) in place of ½ cup (120 ml) of the cream and proceed with the recipe. MASCARPONE WHIFFED CREAM This thick whipped cream holds its shape well for up to several hours in the refrigerator and is a great do-ahead option. I especially like the vanilla bean seeds here. Use ½ cup (120 ml) mascarpone in place of ½ cup (120 ml) of the cream and proceed with the recipe, using the vanilla seeds if you've got them and a tiny pinch of fine sea salt. ## VANILLA BEAN ICE CREAM Once you have an ice cream maker, ice cream is surprisingly easy to make. A few tools will help ensure a smooth custard: a heavy-bottomed saucepan will distribute the heat evenly as the custard cooks, a heatproof spatula will help you scrape the sides of the pot and an instant-read thermometer will ensure that the eggs reach a safe temperature. This ice cream pairs well with just about everything, from fruit pies to brownie sundaes. And don't miss the variations. MAKES ABOUT 1 QUART (1 L) 1¼ cups (300 ml) whole milk ½ vanilla bean, split lengthwise and scraped ½ cup (100 g) organic granulated cane sugar ⅛ tsp fine sea salt 1¼ cups (300 ml) cold, heavy cream 4 large egg yolks NOTES • Save the egg whites for making Chestnut Plum Financiers or Vanilla Chiffon Cake. They will keep, refrigerated airtight, for up to a week, or in the freezer for up to several months. • For a richer ice cream, use 1 cup (235 ml) milk and 1½ cups (355 ml) heavy cream, or 1½ cups (355 ml) half-and-half and 1 cup (235 ml) heavy cream. In a medium saucepan, heat the milk with the vanilla bean and scrapings, sugar and salt until steaming and small bubbles appear around the sides of the pan, stirring occasionally to dissolve the sugar and prevent the milk from scorching. Remove from the heat, cover and steep for 30–60 minutes to infuse with the vanilla. Pour the heavy cream into a quart-sized (1 L) container, such as a mason jar, and set aside. If you have an instant-read thermometer, have it handy. Place the egg yolks in a medium bowl set on a damp towel to stabilize it. Reheat the milk until hot and steamy. Whisking constantly with one hand, pour the hot dairy very slowly into the yolks. This is called tempering, and prevents the yolks from scrambling. Pour the mixture back into the pot and set the pot over low heat. Cook, stirring constantly with a heatproof silicone spatula, scraping the sides and bottom of the pot, until the custard just begins to "stick" (or form a thickened film) on the bottom of the pot (you may have to tilt the pan to see it), or registers 170°F (76°C) on an instant-read thermometer, 5–10 minutes. Immediately pour the custard into the container of cold cream, stir to combine, and chill for at least 4 hours, or preferably overnight. For a quicker chill, pour the ice cream into a metal bowl and place over an ice water bath, stirring until the base is cold. Place the ice cream base in the freezer for 30 minutes to get it really cold, stirring once or twice (this way the ice cream will take less time to churn, resulting in a denser, creamier ice cream). Strain the mixture through a fine mesh sieve, then pour into your ice cream maker and process as per the manufacturer's instructions. Mine takes about 20 minutes to churn. When the ice cream is finished churning, scrape it into a container. Press a piece of parchment paper directly onto the surface (this will discourage crystals from forming), cover tightly and freeze until firm, at least 2 hours. Homemade ice cream is best within the first week of being made, but will keep for a month or two in the freezer. VARIATIONS FRESH GINGER ICE CREAM Omit the vanilla bean and make the custard as directed, straining it directly into the cold heavy cream. Stir in 2 tablespoons (30 g) peeled, very finely grated fresh ginger (grated on a microplane grater or the smallest holes of a box grater to a fine pulp). Chill the ice cream base, don't re-strain and proceed with the recipe. CARDAMOM ICE CREAM Omit the vanilla bean, heating the milk, sugar and salt with 1 teaspoon ground cardamom. No need to steep the mixture. Proceed with the recipe. CREME FRAICHE ICE CREAM Omit the vanilla bean. Make the custard as directed and strain it into a heatproof bowl set over an ice water bath, stirring until cold. Omit the cream and stir 1¼ cups (300 ml) Crème Fraîche into the cold ice cream. Chill until cold, then proceed with the recipe. ## VANILLA BEAN FROZEN YOGURT I grew up in the '80s, when frozen yogurt was touted as a healthier alternative to ice cream, and my family and I would frequent the many shops throughout L.A. for cups brimming with soft serve and all the toppings I could pile on. In reality, the frozen dessert in question was probably no healthier than real ice cream, and it was likely packed with sugar and preservatives, gums and stabilizers to keep it soft. This version, on the other hand, uses a combination of Greek yogurt and heavy cream to make it naturally rich and delicious. Just enough sugar balances the acidity in the tangy yogurt, and if you add a touch of alcohol, it gives the yogurt a slightly softer freeze. Enjoy this atop any warm fruit dessert or pie as a more refreshing and simpler alternative to ice cream. Or layer it with streusel and roasted berries for a thoroughly addictive dessert (see here). MAKES ABOUT 1 QUART (1 L) 1 cup (235 ml) heavy cream ½ vanilla bean, split lengthwise and scraped ½ cup (100 g) organic granulated cane sugar Pinch of fine sea salt 2 cups (475 ml) plain, whole milk Greek yogurt (such as Straus Family Creamery) 2 tbsp (30 ml) GF whiskey or vodka (optional, for a softer freeze) In a small saucepan over medium heat, combine the heavy cream, vanilla pod and scrapings, sugar and salt and heat until hot and steamy, stirring to dissolve the sugar. Cover and let steep for 20–60 minutes to infuse. Place the yogurt in a medium-sized bowl and whisk smooth. Strain the cream into the yogurt, whisking to combine. Whisk in the whiskey. Chill until cold, 1 hour or up to 2 days. Churn the frozen yogurt according to the manufacturer's instructions, then scrape into a container, cover and chill until firm, at least 2 hours and up to several weeks. ## SALTY VANILLA BEAN CARAMEL SAUCE Organic granulated cane sugar, with its larger crystals, is more prone to crystallization than regular granulated sugar, thus a bit more care is needed to keep it liquid to make this silky smooth caramel sauce. Essentially, sugar crystals are prone to peer pressure, and the presence of just one sugar crystal can cause all the other dissolved sugar particles, necessary for making a liquid sauce, to snap into crystalline structure and turn your smooth caramel into a pot of sludge simply because all the cool crystals are doing it. So just say no to crystallization. Here are some tips I've picked up from various sources over the years, particularly _Cook's Illustrated._ • Adding a bit of an invert sugar, such as corn syrup or honey, helps prevent crystallization. • Placing water in the pan first, then adding the sugar to the center without letting any crystals get on the sides, helps moisten the sugar crystals and keep them from re-crystallizing. • Leaving the lid on the pan for the first few minutes will wash away any wayward crystals. • As always when making caramel, refrain from disturbing the pan too much during cooking, tilting it gently if it begins to caramelize unevenly. • Worst case scenario, if your sauce does turn into a pot of sludge, you can sometimes dump a bunch of water in there and begin the dissolving process again; it will just take time for the water to cook off. MAKES 1¼ CUPS (300 ML) ¾ cup (180 ml) heavy cream 1 vanilla bean, split lengthwise and scraped ¼ cup (60 ml) water 2 tbsp (30 ml) organic corn syrup (or honey) 1 cup (205 g) organic granulated cane sugar 2 tbsp (28 g) unsalted butter, in a few pieces ½ tsp flaky salt, such as Maldon, or more to taste VARIATIONS SALTY AND SMOKY CARAMEL SAUCE Omit the vanilla bean and use black smoked salt in place of the Maldon salt, adding it to taste. SALTY AND BOOZY CARAMEL SAUCE Omit the vanilla bean. Add 2–4 tablespoons (30–60 ml), to taste, bourbon, scotch, brandy or dark rum to the sauce along with the flaky salt. (Make sure your spirits are GF if you or your caramel eaters are sensitive to trace amounts of gluten.) Pour the cream into a small saucepan, add the vanilla pod and seeds, and heat over medium heat until hot and steamy, swirling the pan occasionally. Cover and let steep while you get on with the recipe. Meanwhile, pour the water into a medium-sized, heavy-bottomed saucepan. Add the corn syrup, then carefully pour the sugar into the center of the pan. If any sugar crystals stick to the sides of the pan, brush them down into the water with moistened fingers. Cover the pot with a lid and, without disturbing the pan, cook over medium heat until the sugar is dissolved, about 3 minutes (the steam will wash down any wayward sugar crystals). Remove the lid and continue to boil, without stirring, until the mixture turns a deep amber, gently tilting the pan to encourage even caramelization and brushing down the sides of the pan with a damp pastry brush if you see any pesky sugar crystals forming on them. This will take only a few minutes; watch the pot carefully toward the end, and reduce the heat to low if you're nervous. When the mixture turns a dark amber (if the mixture is bubbly, you may need to place a drop of caramel on a white, heatproof plate to check), immediately swirl in the butter, then gently and slowly whisk in the cream. Return the pot to low heat and whisk gently to dissolve any hardened caramel that may be hanging out on the bottom or corners of the pan. Strain the caramel into a heatproof bowl and let stand, stirring occasionally, until cooled and thickened slightly. (You can rinse and dry the vanilla bean and add it to Vanilla Extract Stir in the flaky salt, crushing any extra-large bits between your fingers and adding more if you feel the sauce needs it. Store the caramel in an airtight jar. It will keep at room temperature for up to 1 day, or chilled for up to 1 month. ## RHUBARB PRESERVES This thick, jammy compote is made rosy from red rhubarb and deep burgundy blood orange juice. Garden-grown rhubarb isn't quite as rosy-hued as the forced stalks grown in hothouses that grace the pages of cookbooks and foodie magazines. It's hard to find the latter here in California, but I've learned a few tricks over the years to get a prettier puree from field-grown stalks. First, look for the reddest stalks you can find and use only the reddest parts of the stalk, closer to the root end. Second, don't peel the rhubarb, as some recipes instruct; it isn't necessary and only removes the pretty pigment we're after. Third, add something bright to the preserves. Blood orange juice is my favorite addition, as it doesn't change the texture or overpower the flavor of the rhubarb, but it does enhance its color. Blood oranges are waning just as rhubarb is beginning its season, but you can squirrel some away in the fridge and have this pretty preserve all through spring. Alternatively, use regular orange zest and juice in its place. You can leave it chunky or puree it smooth (see variation below). Either way, wrap these preserves up in Vanilla Chiffon Cake and spread with Whipped Crème Fraîche for a Rosy Rhubarb Roulade Cake, or enjoy it on toast, biscuits or yogurt. MAKES ABOUT 2 CUPS (475 ML) 1 cup (205 g) organic granulated cane sugar Finely grated zest from 1 medium-sized blood orange Strained juice from 1 medium-sized blood orange (about 4 tbsp [60 ml]) ½ vanilla bean, split lengthwise and scraped 2 lb (900 g) rhubarb, trimmed, sliced into ½-inch (1.3-cm) pieces (about 10 medium-sized stalks, 5 cups) In a large saucepan over medium heat, combine the sugar, orange zest and juice, and vanilla pod and scrapings. Bring the mixture to a simmer, stirring occasionally to dissolve the sugar. Cook until thick and syrupy, 5 minutes, then dump in the rhubarb. Cook, stirring frequently with a long-handled spoon as the mixture will splutter, until the mixture has broken down into a thick, glossy jam that holds its shape, 15–20 minutes, lowering the heat as needed to maintain a rolling simmer. Remove from the heat and let cool, stirring occasionally. Transfer to a jar, cover and chill for up to 1 week. You can leave the vanilla pod in to continue flavoring the preserve, but remove it when you're ready to use. VARIATION: RHUBARB PUREE Remove the vanilla bean and puree the preserves in a food processor until silky smooth, scraping down the sides of the bowl as needed. ## HONEY CANDIED KUMQUATS It took me a while to warm to kumquats. I remember being handed one as a kid and told, "You can eat the whole thing, peel and all—they're sweet!" I then got a mouthful of heinously tart, bitter fruit, and I steered clear of the little buggers ever since. But my good friend Amelia is a kumquat fiend, and it was she who convinced me to give them another shot. Simmering the slices briefly in a syrup of sugar, water, honey and vanilla bean means that a bitter, tart mouthful is the last thing you'll get when you bite into one. It takes a bit of effort to slice and seed the kumquats for this recipe, but doing so will preserve them for up to 2 months in the refrigerator. Use these to make dainty Fromage Blanc Tartlets with Honeyed Kumquats, chop them up into a cream cheese frosting to serve atop Vanilla Bean Cupcakes or serve them over yogurt and sprinkled with granola for breakfast. MAKES ABOUT l½ CUPS (400 G) 8 oz (225 g) kumquats (2 cups) ½ cup (100 g) organic granulated cane sugar ½ cup (120 ml) water ¼ cup (60 ml) mild honey ½ vanilla bean, split lengthwise and scraped Trim the ends off the kumquats and slice them ⅛-inch (3-mm) thick, removing the seeds as you go. In a medium saucepan, combine the sugar, water, honey and vanilla pod and scrapings. Bring to a boil over medium heat, swirling occasionally to dissolve the sugar. Add the sliced kumquats, and shuffle the pan to submerge them; there will barely be enough liquid to cover them at this point. Return the mixture to a simmer, simmer for 2 minutes, then turn off the heat, cover the pan and let the mixture steep for 15 minutes. Strain the kumquats, reserving their syrup, and place the fruit in a heatproof bowl or jar. Return the syrup to the pot and simmer over medium heat, swirling frequently, until it bubbles thickly and measures about ½ cup (120 ml), 10–15 minutes. Pour the syrup over the drained kumquats, and chill until cold. They will keep in the refrigerator for up to 1 month. # ALTERNATIVE GRAINS AND FLOURS Alternative grains and flours have the ability to add not only structure but also a host of varying flavors and textures to baked goods. I've divided the flours used in this book into categories based on their common flavor profiles—neutral, earthy and grassy. Within those categories are unique flours with their own tastes and textures, histories and applications. I've used Bob's Red Mill brand flours when possible for consistency, since different brands grind flours differently and this can have drastically different effects in baking. For the best results, I suggest sourcing the brands with which I've developed these recipes. Many can be found in your local health food store and all can be ordered online. And if you need to use a different brand, no worries—the results will still taste delicious even if the texture needs tweaking. A NOTE ON SUBSTITUTING FLOURS Alternative flours can vary hugely in weight, absorbency, starch, protein and fiber contents and thus can have dramatically different results in baking. For instance, 1 cup of oat flour weighs close to 100 grams, whereas the same amount of teff flour weighs 30 percent more, or 130 grams. For tried and tested results, make the recipes as written the first time around. If you need to substitute due to allergies, availability or personal preference, your best bet is to pick a flour with similar flavor characteristics and a similar weight per cup, and to substitute by weight rather than by volume. That said, I do hope you'll become comfortable enough with these recipes to experiment, and that you'll share your results and variations with me and my readers on AlternativeBaker.com and BojonGourmet.com. NEUTRAL These mild flours are easy to love and pair well with nearly everything; it's no wonder they're used frequently in alternative baking. SWEET WHITE RICE FLOUR AKA: Glutinous rice flour, sticky rice flour **Flavor profile:** Sweet, bland, mild **Consistency:** Soft, fine, starchy, sticky **Brand tested:** Koda Farms' Blue Star Mochiko Sweet Rice Flour **Weight per cup:** 5½ ounces (155 g) **Find it:** In Asian markets and at health food stores with the other alternative flours or Asian foods **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 1 year **Use it:** In nearly anything; sweet rice has a neutral flavor that goes with everything. Don't use more than 50 percent sweet rice flour in any given recipe, or in recipes with a lot of moisture or acidity, which will often make for a gummy texture. **Health benefits:** Sweet rice flour is mostly starch, with little nutritional value beyond ample carbohydrates and little fat. Sweet white rice flour is my alternative baking secret weapon. Commonly used to make Japanese mochi and many other desserts throughout Asia, it is finely ground from a specific variety of rice referred to as sticky rice or glutinous rice (though it does not contain gluten). It helps hold baked goods together without the need to add many other starches or gums. Its sticky power is similar to gluten in that working or agitating the flour with liquid increases the stickiness. In contrast to gluten, acidity also seems to increase the stickiness, as I've found when I've added acidic ingredients (such as citrus juice, cocoa powder, rhubarb and cultured dairy) to recipes. For instance, biscuits made with buttermilk consistently baked up dense and gummy. But when I traded in regular milk, the texture improved dramatically. In other recipes, however, the extra stickiness is a boon. Either way, sweet rice flour makes possible many of the recipes in this book, such as fluffy biscuits and scones, flaky pie dough and pillowy cakes. If you can't find sweet rice flour, you can order it online. In a pinch, try substituting a GF all-purpose, rice-based flour blend such as Bob's Red Mill 1:1 (in which sweet rice flour is the first ingredient) or King Arthur's GF Multi-Purpose Flour. Or substitute regular or superfine white rice flour by weight, though the texture will be much more brittle, especially in recipes that call for a lot of it. In this case, you might try adding in some tapioca flour or ground chia seed. OATS AND OAT FLOUR **Flavor profile:** Creamy, sweet, wheaty, nutty, a little earthy **Consistency:** Soft, tender, starchy, delicate **Brand tested:** Bob's Red Mill Gluten-Free Oat Flour and Old-Fashioned Rolled Oats **Weight per cup:** Oat flour, 3½ ounces (100 g); old-fashioned rolled oats, 3¼ ounces (90 g) **Find it:** With other alternative flours and/or in the bulk section at health food stores. Be sure to look for certified GF oats and oat flour, as they are traditionally grown and processed with wheat and can be contaminated with gluten. All oats used in this book are the old-fashioned rolled variety. **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 3 months, or refrigerated airtight for up to 1 year **Use it:** Anywhere you want a touch of whole-grain flavor and soft, delicate texture. Oat flour pairs well with comforting flavors such as apples, bananas, winter squash, spices, chocolate, caramel, brown sugar, honey, maple, nuts and dried fruits. When used in conjunction with sweet rice and millet flours, it makes an all-purpose-like flour with a fairly neutral taste and pillowy texture. Do note that some people with celiac disease or other severe gluten-intolerance also can't tolerate oats, even the certified GF variety. **Health benefits:** Higher fat content than most cereal grains, high in fiber, only grain to contain globulin, a legume-like protein that can be a boon to vegetarians. These properties give oatmeal its "stick-to-your-ribs" reputation. Oats are also an excellent source of manganese, which helps build connective tissue in the body, regulate blood sugar and absorb calcium, and are a good source of other minerals. It was a happy day when we all learned that oats are actually gluten-free. They were so commonly grown and processed with wheat, where they picked up fairly large amounts of gluten, that they were thought to inherently contain gluten. In fact, oats used to be considered weeds that grew among wheat and barley only to be uprooted and burned. They thrive in cool, wet climates such as northern Europe, Canada and the northern United States. They are particularly loved in Scotland, where they feature in soups and stews, breakfast porridge, oatcakes and scones. We have Scottish settlers to thank for bringing oats to North America in the 1700s. NEUTRAL FLOURS FROM TOP: SWEET WHITE RICE, ALMOND, COCONUT, OAT I now make frequent use of oat flour in alternative baking. It adds nutritional value and a bit of hearty depth to any and all baked goods. It absorbs moisture fairly well and bakes up soft and smooth, adding necessary starch to many GF baked goods and keeping them moist and tender due to its high fat content and stable protein. It makes pillowy biscuits and scones, springy cakes and hearty muffins. Old-fashioned rolled oats, which are made by steaming and rolling the grains flat, star in crisps, streusel, granola bars, oatmeal cookies and a pumpkin cranberry bread packed with seeds. ALMOND FLOUR **Flavor profile:** Mild, nutty, rich, buttery **Consistency:** Slightly coarse and nubby, but soft and delicate, tends to clump **Brand tested:** Bob's Red Mill Blanched Almond Flour/Meal **Weight per cup:** 4¼ ounces (120 g) **Find it:** With other alternative flours at health food stores **Store it:** Refrigerated airtight for up to 6 months. Due to its volatile oils, almond flour can go rancid if left at room temperature. **Use it:** In almost anything where you don't mind a slightly nutty flavor and a bit of nubby texture. Particularly tasty with stone fruit, berries, figs, apples, pears, citrus, chocolate, coffee, other nuts, honey, vanilla and spices. Do warn your dessert eaters of the presence of nut flour in baked goods in case of nut allergies. Don't use more than 50–75 percent almond flour in any given recipe lest you wind up with a dense, macaroon-like texture and assertive almond flavor (unless that's what you're going for). **Health benefits:** High in protein, vitamins B and E, minerals, particularly calcium in levels nearly as high as in milk, fiber and good fats that purportedly lower cholesterol and blood pressure and decrease risk of blood clots. The almond is not a true nut, but rather the seed of a fruit related to stone fruit (apricots, cherries and peaches) called a drupe. Almond trees are native to the Middle East and South Asia, and they have sustained Silk Route traders, Egyptian kings and biblical figures for millennia. King Tut was buried with almonds to munch during his journey to the afterlife. In Genesis, Jacob sends his sons to buy grain from the Egyptians, offering them almonds, among other gifts, in exchange. Almond-shaped halos surround saints in Renaissance paintings and frescos. Almonds played a part in nearly every ancient civilization and continue to be used in cuisines around the globe, particularly India, the Middle East and along the Mediterranean. They're pureed into a refreshing milk substitute, blended with sugar for marzipan and almond paste, ground into frangipane, made into macaroons and amaretti, candied, roasted and fried for snacks and coated in sugar and given at weddings to symbolize the sweetness of love coating the bitterness of life. Today, almonds thrive in California's Mediterranean-like climate, where 80 percent of the world's almonds are produced. Recently, almond flour has become a popular ingredient in alternative baking and touted for its many health benefits. Blanched almond flour comes from almonds that have been slipped from their papery skins prior to grinding; it bakes up smooth, mild and light in color, and its high protein content handily replaces the missing proteins in gluten-free baking. Its high fat content produces tender, rich baked goods. Bob's Red Mill brand, used here, is advertised as finely ground, but it still has a bit of texture, which makes a pleasant addition to the tart crust and clafoutis in this book as well as many cakes such as financiers, buckle, olive oil cakes and madeleines. HAZELNUT MEAL Hazelnut meal has similar characteristics to almond flour. It is sold unblanched, thus has a higher fiber content, darker color and earthier flavor, but can often be used interchangeably where these characteristics are desired. I particularly like it with pears, buckwheat flour, chocolate and warming spices. The financier variation in this book was developed with Bob's Red Mill Finely Ground Hazelnut Flour/Meal. COCONUT FLOUR **Flavor profile:** Mild, sweet, slightly floral and tropical **Consistency:** Powdery, fibrous, tends to clump **Brands tested:** Let's Do Organic, Bob's Red Mill **Weight per cup:** 4¼ ounces (120 g) **Find it:** With other GF flours and/or the bulk section at health food stores **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 1 year **Use it:** In just about anything where you don't mind its distinctive taste and fibrous texture. Its light, floral flavor pairs especially well with other tropical, bright flavors, such as citrus, mango, berries, ginger, vanilla and chocolate. Don't use more than 30 percent coconut flour in a recipe or the results may be dry, crumbly and slightly gritty. Even with a small amount of coconut flour added, you will need to increase the moisture content in order to appease this thirsty flour. **Health benefits:** Very high in fiber, nearly double the protein of wheat flour, high in healthy fats that are said to be antiviral and antimicrobial, rich in trace minerals Like almonds, coconuts are not nuts at all, but the seed of a palm tree fruit, or a drupe. The name coconut comes from the Spanish word coco, meaning "skull," named for the three indentations in mature coconuts that resemble a face. Coconut palms thrive in hot, humid climates and are cultivated throughout tropical Asia, parts of India and Sri Lanka, the northern coast of Australia and in the United States (namely Florida and Hawaii). In Thailand and Malaysia, primates called pig-tailed macaques are trained to harvest coconuts. Culinarily, coconuts have many uses, including coconut oil and butter, shredded coconut, coconut milk and cream, coconut water and coconut flour. Coconut flour is made from dried, unsweetened coconut that has had a large amount of its fat removed, making it very high in fiber. It ranges in color from stark white to beige. The texture of coconut flour from different brands varies wildly. All the recipes in this book were tested with Let's Do Organic, which is ground medium fine. Bob's Red Mill is ground more finely and will also work in these recipes. Coconut flour is different to work with than other flours and takes some getting used to. The first cake that I tried, a chiffon recipe with some coconut flour traded in, went straight into the compost. The batter soaked up moisture like a parched sponge, but I soldiered ahead, folding the whipped egg whites into the cement-like batter and baking the cake. The abomination that I pulled from the oven was an inedible brick. The moral of this sad story is that coconut flour is thirsty, thirsty stuff that soaks up liquid like nobody's business. However, when tamed, it adds a delightfully hearty texture to baked goods and perfumes it with its delicate flavor. The blondies have a pleasing chew that smacks of macaroons, and when baked into a (successful) chiffon cake and soaked with rum-kissed coconut milk, it makes a dreamily tender tres leches cake of sorts. And it makes a tender, shortbread-like crust for a coconut cream berry tart that also happens to be vegan. EARTHY I have a weakness for any and all earthy flavors: black tea, coffee, chocolate, caramel, mushrooms, smoke, molasses, you name it. The flours in this section are some of my very favorites. All boast rich, warm flavors, along with their nuanced textures and colors, and are particularly well suited to baking. Teff flour, with its malty milk chocolate notes, came as a particularly welcome surprise. BUCKWHEAT FLOUR **Flavor profile:** Deep, rich, warm, with notes of spice (cinnamon, allspice), coffee, chocolate, toasted hazelnuts **Consistency:** Soft, starchy, delicate, cakey **Brand tested:** Bob's Red Mill Buckwheat Flour (Note: Though buckwheat is inherently gluten-free, Bob's buckwheat flour is not processed in their dedicated GF facility. If you or your guests are highly sensitive, you'll want to go with a certified GF buckwheat flour, such as one from Arrowhead Mills.) **Weight per cup:** 5 ounces (140 g) **Find it:** With other alternative flours and/or the bulk section at health food stores **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 3 months, or refrigerated airtight for up to 1 year **Use it:** Where you want assertive flavor and a deep, charcoal hue. Buckwheat's robust flavor plays well with spices (especially cinnamon and cardamom), dark berries, fall fruits (such as figs, apples, pears and quinces), bananas, coffee, brown sugar, maple, winter squash and sweet potatoes, chocolate and nuts. It can also contrast nicely with lighter, brighter flavors such as rhubarb, red berries and stone fruit. Buckwheat flour can turn mushy if overmixed, so take care when working with it in recipes. With its strong flavor and delicate texture, I don't recommend using more than 30–50 percent buckwheat flour in most recipes. **Health benefits:** High in protein, iron and other minerals, as well as the amino acid lysine, said to prevent canker sores. In traditional Chinese medicine, said to have warming properties and to aid digestion. If I had to choose one alternative flour to use for the rest of my life, it would be buckwheat. My first experience with this grain occurred when I was about fifteen and went through a bread-baking phase wherein I went to town rummaging through my mom's flour cabinet and adding in all manner of things. Because of its confusing name, I assumed buckwheat was a variety of wheat, and it wasn't until many years later, when my interest in GF baking began, that I learned how wrong I was. I still remember that first rustic loaf baked with buckwheat and (thankfully) bread flours, which had a wildly earthy flavor unlike any I had ever experienced. Buckwheat's pretty, pyramidal, greenish gray-brown grains are the seed of an herb plant related to rhubarb and sorrel that's native to northern Europe and Asia, where it has been used since the eighth millennium BCE; in fact, it isn't even a true grain. When toasted, it is referred to as kasha. Buckwheat flour is made from these toasted grains, thus the rich, roasty flavor and deep color flecked with charcoal-hued specks. Known as _blé noir_ in French, meaning "black grain," it is commonly used to make savory crepes. In Japan it stars in soba noodles and buckwheat tea, and it's used widely in eastern Europe as both a flour and the cooked grain dish kasha. Bob's Red Mill makes a finely ground buckwheat flour that doesn't clump and adds a soft, starchy texture to baked goods. In this book, it makes an intensely flavored and super flaky pie dough, adds tenderness to double chocolate cookies, and creates pliant crepes that are easy to wrap around sweetened cheese for blintzes. TEFF FLOUR AKA: Brown teff flour **Flavor profile:** Warm, sweet, malty, milk chocolate, caramel, butterscotch **Consistency:** Fairly soft and starchy with a bit of grainy texture **Brand tested:** Bob's Red Mill (Note: This flour is not produced in a dedicated GF facility; if you or your guests are sensitive to trace amounts of gluten, you'll want to source a certified GF variety of teff flour.) **Weight per cup:** 4½ ounces (130 g) **Find it:** With other alternative flours and/or the bulk section at health food stores **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 3 months, or refrigerated airtight for up to 1 year **Use it:** Teff flour's warm, earthy flavor pairs well with chocolate, coffee, apples, pears, figs, spices (especially cinnamon and nutmeg), nuts, bananas, maple, caramel, brown sugar and spirits. Stone fruit such as peaches, plums and cherries contrast nicely with teff. **Health benefits:** Very high in iron (nine times more than wheat) and calcium (five times more than other cereal grains), vitamin C (which is rare in grains) and protein (a 2-ounce [56-g] serving of teff has the same amount of protein as an extra-large egg). The word teff means "lost" in Amharic, named for the tiny grains' ability to disappear when dropped. Teff was almost lost to the world for good when, in the 1970s, Ethiopia's socialist military government forced farmers to switch over to more profitable wheat production. As teff was grown in an isolated region of Ethiopia and hadn't yet made it to other parts of the world, teff might have disappeared forever if it hadn't been for an American aid worker who, having fallen in love with Ethiopian cuisine, brought the grain back to his home in Idaho, which boasted favorable growing conditions for this ancient grain. To the joy of many Ethiopian and Eritrean ex-pats, teff found a new home, and The Teff Company was born, spreading the deliciosity of teff throughout the United States. EARTHY FLOURS FROM TOP: BUCKWHEAT, CHESTNUT, TEFF, MESQUITE With a rising interest in alternative grains, teff is gaining popularity, even being called The West's Latest Superfood Crush (Vice.com, 2014). The world's smallest grain boasts some of the biggest nutritional benefits, including high levels of protein, iron, calcium and vitamin C. Teff flour is ground from these tiny grains, each the size of a poppy seed and weighing in at 1 gram per 3,000 grains. It is most traditionally used to make injera, a fermented Ethiopian flatbread. Of the many varieties of teff, the two most common are brown and ivory, with brown being the most readily available in the United States. Bob's Red Mill teff flour is ground fairly fine, with a bit of texture still, and doesn't clump. The Teff Company, which I found in bulk at my co-op and can be ordered online, makes brown and ivory teff flours with a powder-fine consistency that bakes up super smooth. Since this brand is harder to find, however, recipes in this book have been formulated to work with Bob's coarser grind. The flour is a warm, medium brown hue and if you stick your nose in the bag and inhale, you'll be rewarded with the scents of malt, milk chocolate, baking bread and earth. It took me years to give teff flour a try in sweets, linked as it was in my mind to super-savory Ethiopian curries. But once I did, I was hooked. With its warm notes of caramel and malted chocolate milk, teff flour was made for desserts. In this book, it gives oatmeal cookies an extra layer of earthy flavor, blends with roasted bananas and brown sugar in scones, forms craggy biscuits for peach cobbler, bakes into chocolate cherry pots and makes a flaky pie pastry base for hazelnut frangipane and plums. CHESTNUT FLOUR AKA: Chestnut flour powder, Italian chestnut flour, farina di castagne (not to be confused with water chestnut flour, which comes from a completely different plant and is not covered in this book) **Flavor profile:** Sweet, nutty, sometimes slightly smoky with hints of bitterness **Consistency:** Soft, starchy, cakey, tendency to clump **Weight per cup:** 3¾ ounces (105 g) **Brands tested:** Calleris and Ladd Hill **Find it:** In Italian specialty shops or with other alternative flours in health food stores and upscale grocers. It tends to show up in the United States around the fall and winter holidays. If you can't find it locally, it can be ordered online (see Sources). **Store it:** Refrigerated airtight for up to 1 year **Use it:** Darker chestnut flour such as Calleris has an earthier flavor that pairs well with stone fruit, figs, apples, pears, other nuts, chocolate, coffee, rum and other brown spirits, brown butter, vanilla and caramel. Its flavor can be assertive on its own, so I recommend using only 50 percent chestnut flour in recipes that call for a high proportion of flour. Lighter flour, such as Ladd Hill, has a milder flavor that is closer to all-purpose flour; it pairs well with nearly any baking ingredients and fruits and can be used in baking up to 100 percent. **Health benefits:** Low in fat and rich in vitamins (especially vitamin C, E and B-complex), minerals (iron, calcium, magnesium, manganese, phosphorus, zinc and potassium) and dietary fiber. Chestnut flour also contains high-quality protein with essential amino acids. Chestnut flour is a rare find in the United States these days, but it was a staple food throughout both Europe and North America since ancient times, developing simultaneously on both continents. It featured in stews and preserves, and was often ground into a starchy flour and baked into bread. Chestnuts were particularly necessary in regions where other starchy foods (such as wheat and potatoes) wouldn't grow, such as in the mountainous regions of southern Europe. Chestnut flour fell out of favor due to a chestnut blight in the early 1900s in the United States, while Europeans grew to loathe it during wartimes, where it gained a reputation as peasant food. (This is all rather hilarious to any bakers who have shelled out for chestnut flour today; it's the most costly flour used in this book!) Thankfully, modern cooks and bakers are rediscovering the positive qualities of chestnut flour, of which there are many. Chestnut flour is made by grinding either raw or roasted, dried chestnuts into a powder; most of the world's chestnut flour is produced in Italy (hence the high price tag and spotty availability in North America), but it's becoming more widely cultivated in the United States. The soft, starchy flour is low in fat, sweet in flavor and bakes up smooth and tender. With a similar starch content to wheat flour but without the gluten, it makes an excellent addition to all manner of baked goods. The Italian brand Calleris is the one I've found most commonly in Northern California at Italian markets as well as health food stores and specialty grocers, and I've used it in the recipes in this book. It has a deep, tan color and slightly smoky flavor that can be delicious in small quantities but overpowering if used too freely. Ladd Hill is a harder-to-find brand made in Oregon's Willamette Valley from organic, unroasted chestnuts. This bone-white flour has a sweet, mild flavor without a trace of smoke or bitterness and can be used mostly interchangeably with the roasted flour. Chestnut flour is fairly perishable, so do be sure to store it in the refrigerator. It tends to clump, so be sure to strain or sift when called for. It adds a warm, intriguing flavor and cakelike texture to baked goods, be it chocolate chip cookies laced with brown butter and milk chocolate, financiers topped with plums, apple tart covered in salty caramel or fig-stuffed scones. MESQUITE FLOUR AKA: Mesquite powder, raw mesquite powder **Flavor profile:** Sweet, wild, warm, baked earth, cinnamon, vanilla, toasted nuts, graham crackers **Consistency:** Powdery and fine, cakey, delicate, tends to clump **Weight per cup:** 4¼ ounces (120 g) **Brand tested:** Zócalo Gourmet Mesquite Algarroba Organic Flour **Find it:** With other GF flours and/or the raw foods section at health food stores and upscale grocers **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 3 months, or refrigerated airtight for up to 1 year **Use it:** Pairs well with ginger, cinnamon, apples, bananas, sweet potato, winter squash, caramel, chocolate, nuts (especially walnuts and pecans), berries, stone fruit, maple, brown sugar. Because of its strong flavor, you won't want to use more than 50 percent mesquite flour in flour-heavy recipes. Mesquite can also be used more as a spice or sweetener in smaller quantities. **Health benefits:** Despite its sweet flavor, mesquite flour has a low glycemic index and high protein (13 percent) and fiber content (25 percent). It contains only 3 percent fat. It is rich in calcium, magnesium and lysine, an amino acid said to prevent canker sores. It has proven effective in controlling diabetes as the soluble fiber from the seeds and pods forms a gel that slows nutrient absorption by three to four times after ingesting (4–6 hours rather than 1–2 hours). This slower digestion prevents the blood sugar spikes that result from eating other carbohydrates. Mesquite flour always reminds me of Red Rock Canyon in Southern California in color and aroma: warm, baked earth with notes of cinnamon and a dusty reddish beige hue. I've heard it described as tasting like warm gingerbread or freshly baked bread. Drought-tolerant mesquite trees are native to the southern United States and grow in arid regions such as Arizona and Mexico. The algarrobo variety grows in forests along the coast of northern Peru, where trees can reach upward of 100 feet tall. Mesquite's edible seedpods look a little like shelling beans. The tree's reddish brown wood was used to build Spanish ships; now, the trees are the most expensive to harvest in the United States and are used only in high-end furniture. The wood chips, which are mesquite's claim to fame, are sold for smoking and grilling foods, a practice used by Native Americans for ages, but only embraced by Western chefs since the 1980s. Native desert dwellers subsisted largely on mesquite flour, using stones to grind the seeds and pods by hand and often mixing this meal with corn. Today, the whole pods are dried and ground into mesquite flour, sometimes called raw mesquite powder. Despite its low glycemic index, this flour is naturally quite sweet and is sometimes used as a replacement for sugar. The pods can be boiled to make mesquite syrup, which can be ordered online. Mesquite flour is embraced today for its beguiling flavor and health benefits, thanks in part to Heidi Swanson, who published a mesquite chocolate chip cookie recipe in her book _Super Natural Cooking_ in 2007. This was my first experience with the flour, which I found at my co-op, and it baked up into the most flavorful chocolate chip cookies I'd ever tasted. Other common recipes include mesquite pancakes, quick breads, cornbread and even flan. Mesquite flour's warm flavor pairs especially well with earth and spice. It has a powder-fine texture that needs sifting to oust clumps, and it bakes up soft and smooth. Its high sugar content makes it prone to burning, so take care when baking with mesquite to not overcook. In this book, it complements little chocolate cakes topped with whipped crème fraîche and berries, forms a shortbread-like crust for banana cream tart and sweet potato cheesecake bites and adds oomph to gingersnaps and chewy ginger cookies. GRASSY These flours are characterized by a vegetal flavor, sometimes referred to as "green" or "grassy," which can range from freshly mowed lawn to straw or hay. AMARANTH FLOUR **Flavor profile:** Assertive, vegetal, earthy and slightly herbaceous **Consistency:** Fairly fine and starchy with some sandy texture; similar to millet **Weight per cup:** 4½ ounces (130 g) **Brand tested:** Bob's Red Mill **Find it:** With other alternative flours at health food stores and upscale grocers, or order online **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 3 months, or refrigerated airtight for up to 1 year **Use it:** I like blending amaranth with milder flours, such as sweet rice and oat, as well as other strong flavors and spices to temper its assertive taste and grainy texture. I don't recommend using more than 30 percent amaranth in a recipe because of its strong flavor and sandy texture. It pairs nicely with light, bright fruits and spices such as cinnamon, ginger, stone fruit, rhubarb, citrus and berries, as well as vegetables such as carrots, zucchini and winter squash. **Health benefits:** Amaranth has 30 percent more protein than rice or sorghum; it is rich in calcium, iron and the amino acid lysine. Related to quinoa, amaranth is often hailed as a superfood. Amaranth may be a nutritional powerhouse, but the flavor and texture can be an acquired taste. The tiny seeds can develop a viscous texture when steamed, making a better porridge than a substitute for fluffy rice or quinoa. Amaranth is a boutique ingredient today, but this was not the case for the ancient Aztecs, who derived 80 percent of their sustenance from the weedlike plant, even using the seeds bound with honey to build statues to their gods, which they used in religious rites (sometimes involving human sacrifice). Amaranth grows quickly and can bear seedpods weighing up to 2 pounds (900 g) and harboring half a million seeds. The pretty plants are often grown as ornamentals, and the burgundy leaves can be cooked like a heartier variety of spinach, to which it is related. Amaranth seed is used culinarily in South and Central America, where it is popped, mixed with honey and formed into cakes or added to a form of hot chocolate. I'm still learning to love amaranth, whose flour has a fine texture but intense flavor. One tester described its taste as "musty," and another wrote that while she and her husband loved the flavor, her kids "noticed" the "earthy" taste of the amaranth. It is not a grain for the faint of heart. Rich dairy can help smooth amaranth's rough edges and bring out its buttery quality. When tamed by other bold ingredients, amaranth can add an intriguing depth of flavor to baked goods, offsetting sweetness with its bitter undertones. I like amaranth in moderation, baked into peachy scones kissed with cinnamon sugar and in gingered biscuits atop strawberry rhubarb cobbler. If you're amaranth-curious, try swapping it in for millet in any of the recipes in this book. Just don't try it with the ancient Aztec secret ingredient—trust me on this one. CORN AKA: Maize, polenta (yellow corn grits), cornmeal, corn flour **Flavor profile:** Nutty, warm, vegetal, sunny, buttery, bitter undertones **Consistency:** Polenta is the most coarsely ground of the corn products and needs a long cooking time to soften its hard grains. Cornmeal is medium ground and adds nubby texture to cornbread and the like. Corn flour is finely ground and tends to clump; it makes for delicate, tender baked goods that can be brittle if not combined with other stickier flours. **Weight per cup:** Polenta, 5.65 ounces (160 g); cornmeal, 5.65 ounces (160 g); corn flour, 4¼ ounces (120 g) **Brands tested:** Bob's Red Mill Corn Grits Polenta, Arrowhead Mills Organic Gluten-Free Cornmeal, Bob's Red Mill Organic Corn Flour **Find it:** Cornmeal and corn flour can be found with other alternative flours at health food stores, and sometimes in bulk. Polenta or corn grits are sometimes sold with other hot cereals if not with GF flours. **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 3 months, or refrigerated airtight for up to 1 year **Use it:** With light, bright flavors: honey, rhubarb, berries, stone fruit, citrus, vanilla, dairy. Corn has a fairly brittle texture, so don't use more than 25 percent cornmeal or polenta, or 50 percent corn flour, in most baking recipes. **Health benefits:** High in protein, fiber, iron and phosphorous Edible corn comes in many forms, including coarse polenta or grits, cornmeal of various grinds and, the most finely ground, corn flour (not to be confused with cornstarch, which is referred to as corn flour in the UK and Australia). Corn or maize is thought to have been cultivated by the ancient Olmecs and Mayans, spreading to other parts of the Americas since 2500 BCE. European explorers brought it back home in the 1500s and 1600s, and it gained popularity around the globe for its ability to grow in diverse climates. Many varieties of corn are used today in myriad applications, edible and not, including starch, oil, animal feed, fuel and even compostable substitutes for plastic. In the kitchen, we pop the kernels into salty snacks, bake the meal into cornbread and use the syrup to sweeten baked goods. Latin cultures make masa harina by soaking the hominy variety of corn in limewater and grinding it into a fine meal for tamales and tortillas. GRASSY FLOURS FROM TOP: POLENTA/GRITS, CORNMEAL, CORN FLOUR, MILLET, AMARANTH, SORGHUM Polenta is a staple of northern Italy, where it gets a long, slow cook, becoming a savory porridge of sorts. And in the American South, hominy grits get a similar treatment. But corn isn't all sunshine and flours: many crops have been genetically modified and treated with pesticides, so do take care to buy corn products from small brands, organically grown if possible. Corn is a sturdy grain that likes to soak up moisture, and its sunny taste is easy to love and complements a wide variety of foods and flavors. Polenta or corn grits, when baked long and slow with plenty of milk and honey, makes a sublime porridge to top with summer berries. Stone-ground cornmeal makes a nubby cake to sop up juices from blood oranges and a skillet cornbread studded with millet seed and cherries. Finely ground corn flour makes a fluffy topping for berry plum cobbler, and it bakes into pillowy muffins moistened by juicy blueberries. MILLET FLOUR **Flavor profile:** Warm, buttery, vegetal, nutty, some bitter notes **Consistency:** Fairly fine and starchy with a bit of sandy texture, slightly clumpy **Brand tested:** Bob's Red Mill GF Millet Flour **Weight per cup:** 4½ ounces (130 g) **Find it:** With other alternative flours and/or in the bulk section of health food stores and upscale grocers **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 2 months, or refrigerated airtight for up to 1 year **Use it:** Millet is one of my top three used flours for its mild flavor and starchy, finely milled texture. In conjunction with sweet rice and oat flour, it makes a neutral flour that mimics all-purpose but with more texture, flavor and nutritional value. Millet flour tastes a bit like cornmeal or corn flour and pairs well with similar flavors, such as honey, berries, stone fruit, citrus, vanilla and dairy. It can have some bitter undertones, however, which is why I recommend using no more than 30 percent in any given recipe. **Health benefits:** High in protein, fiber and the minerals iron, phosphorous, manganese, magnesium and copper. Do beware of eating too much millet if you suffer from the condition hypothyroidism, which can be exacerbated by consuming large amounts of the grain. Millet seed has been a food staple for humans for at least the last 10,000 years, particularly in India and parts of Africa, where it is thought to have evolved. Millet actually refers to several different varieties of a cereal grass, the most common in North America being the proso variety, while pearl millet is the most common variety cultivated worldwide. Primarily grown in the United States for use as animal feed or birdseed, millet has gained in popularity as an alternative grain in its own right. The seeds are butter yellow in color. They cook up light and fluffy, not unlike couscous, and make a good stand-in for steamed rice. The flour is well loved in gluten-free baking for its soft, starchy consistency, particularly in breads. Millet flour does have notes of bitterness, however, which is why I recommend blending it with other, milder flours, particularly sweet rice and oat. Toasted millet seed takes center stage in Millet Skillet Cornbread with Cherries and Honey, and the flour features in countless recipes throughout this book, including buttery scones and biscuits, light cakes and flaky pie pastry. SORGHUM FLOUR AKA: Milo flour, sweet white sorghum flour **Flavor profile:** Earthy, nutty, vegetal, mild, sweet **Consistency:** Fairly fine with a bit of gritty/sandy texture **Weight per cup:** 4½ ounces (120 g) **Brand tested:** Bob's Red Mill Sweet White Sorghum Flour **Find it:** With other alternative flours and/or in the bulk section of health food stores and upscale grocers **Store it:** Airtight at room temperature in a cool, dry, dark place (such as a kitchen cupboard) for up to 3 months, or refrigerated airtight for up to 1 year **Use it:** Where you don't mind a bit of texture and whole-grain flavor in conjunction with softer, milder flours such as sweet rice and oat; don't use more than 30–50 percent in most recipes. Pairs well with stone fruit, berries, apples, pears, chocolate, spices (especially cinnamon), honey, dairy and nuts **Health benefits:** High in antioxidants (more per serving than blueberries and pomegranate) as well as fiber, protein, unsaturated fat and the minerals phosphorus, calcium, potassium and iron Sorghum is an ancient, drought-resistant grain that hails from southern Egypt and remains a staple throughout Africa. It clocks in as the fifth most important grain worldwide. Though the United States is the biggest producer, many Americans are not familiar with this small, gluten-free grain. Sorghum can be found in many gluten-free flour blends. It reminds me very much of brown rice flour: nutty, grassy, with some bitter whole-grain notes and a slightly coarse texture. It is naturally sweet and was often boiled into a syrup popular in the southern United States before the rise of corn syrup. Bob's Red Mill makes sorghum flour that is ground fairly fine with a bit of sandy texture. I find it slightly troublesome to work with; it doesn't absorb moisture well and it has a distinct flavor that isn't always welcome. I tested it in several cake and biscuit recipes that baked up brittle and with a cornbread-like texture that staled quickly, before returning to softer millet and oat flours. Azure Farm, which I found in bulk at my co-op, makes a powder-fine sorghum flour that, when combined 50:50 with sweet rice, makes an all-purpose-like blend. Since this brand is less widely available, all recipes in this book have been formulated to work with Bob's coarser grind. It does add a warm, cornlike flavor and custardy texture to oven pancakes, and its grassy flavor blends beautifully with Chocolate Zucchini Cake and Matcha Cream Cheese Frosting. STARCHES Starches can be a necessary addition to whole-grain baking to absorb moisture, create structure and add stickiness to baked goods. These are the two I keep in my pantry. TAPIOCA FLOUR/STARCH Powdered tapioca is sometimes labeled flour or starch, but it is all the same. Made from the root of the cassava plant, tapioca is a powerful binder and thickener and can add much-needed chew and stickiness to alternative baking. It's traditionally used to make the Brazilian cheese bread pao de queijo or rolled into balls for Japanese boba tea and tapioca pudding. It does have an assertive flavor in large quantities, which is why I prefer the softer flavor of cornstarch for thickening fruit. However, tapioca adds essential chewiness in chestnut chocolate chip cookies, helps crisp topping clump together and makes pie dough extensible and stretchy, easier to roll out and handle. CORNSTARCH (CALLED CORN FLOUR IN THE UK AND AUSTRALIA) Just to confuse things, the starchy powder known as cornstarch in the United States and Canada is called corn flour in the UK and several other countries, while corn flour in this book refers to finely ground cornmeal, which is yellow in color and contains the whole grain. Cornstarch is made solely from the endosperm or starchy component of the corn kernel through a process called wet milling, which removes the outer parts of the kernel. The resulting slurry is washed of protein, then dried in centrifuges to remove moisture before being ground and packaged. The starch has no nutritional value, but small amounts can add big improvements to alternative baking. Cornstarch promotes browning and crisping, and can help absorb excess moisture. In my pie dough, it promotes flaking and helps the dough stand up to moisture. I use it to thicken fruit in pies and rustic fruit desserts, where it softens into a silky texture and leaves behind a more neutral flavor than tapioca. Do be sure to source organic cornstarch, which is GMO free. FLOURS NOT COVERED IN THIS BOOK These ingredients commonly used in alternative baking just don't float my boat. Here's why. REGULAR WHITE AND BROWN RICE FLOURS These two are the most widely used flours in GF baking. I've found that using sweet white rice flour rather than regular rice flour gives baked goods better texture, and allows me to use less of it, and fewer other starches or gums, than regular white rice flour. Brown rice flour tends to keep a gritty texture in baked goods that I dislike. There is superfine brown rice flour available, but I have yet to see it carried at any of my local grocers. Furthermore, rice has been found to contain arsenic and should not be consumed in large quantities (brown rice flour has higher levels of arsenic, as the arsenic likes to hang out on the outside of the whole grain, which is buffed away to make white rice, removing much of the arsenic). These findings are part of what led me to explore other alternative grains; I feared we were getting into the same situation with rice flour as we did with wheat flour, relying on it too much and edging closer to a mono diet. For all of these reasons, I prefer to use a small amount of sweet rice in conjunction with millet and oat as my neutral flours. QUINOA FLOUR Quinoa has a strong, fairly bitter flavor thanks to saponins that coat and protect the grain. I often rinse and cook the grain whole for savory sides and salads, but I haven't found the flour to work well in sweets, preferring milder millet or complex-tasting amaranth. That said, quinoa flour's texture is similar to both, so feel free to trade it in for either if you're quinoa-curious. BEAN AND LEGUME FLOURS (SUCH AS CHICKPEA) Chickpea flour works beautifully in savory baked goods due to its soft texture and high protein content, but its assertive bean flavor tends to take over when used in sweets. Chickpea flour is classically used in socca, a delicious flatbread from the south of France. POTATO FLOUR AND STARCH These two can add softness and moisture to baked goods. However, I've found that they both cause baked goods to go stale more quickly due to being hygroscopic, meaning that they grab water molecules from out of the air and hold on. You'll find them both in many GF flour blends and products, but I prefer to do without them in my own kitchen. GUAR AND XANTHAN GUMS These gums are often used to replace the gluten in gluten-free baked goods. However, some people can't tolerate these, they can be hard to source and I've found that they are usually not necessary anyway. When some extra sticky power is needed in a recipe beyond what sweet rice, tapioca, almond flour or egg can offer, I use ground chia seed, which has a similar effect as these gums but also adds a pleasant nutty flavor and is full of good-for-you fiber and nutrients to boot. OTHERS There are new-to-me alternative flours popping up every day that I have not yet experimented with, including wild rice flour, kaniwa, benne seed, purple corn, tiger nut, plantain, banana, coffee, water chestnut and sweet potato, among others. # OTHER INGREDIENTS I generally try to use organic, seasonal and locally grown ingredients whenever possible—they taste better, are healthier for our bodies and benefit our communities and the planet as a whole. Besides, if you're going to go to the trouble of shopping for groceries, making a recipe and cleaning up, you might as well stack the deck in your favor and start with the most flavorful ingredients possible. And, to quote an old hair commercial: You're worth it. Here's a little bit about the ingredients that went into developing these recipes; starting with similar products when possible will help you achieve the best results. SEASONAL FRUITS AND VEGETABLES Produce tastes best when it's grown close by, picked when ripe and eaten soon thereafter. Farmers' markets, CSAs, co-ops and health food stores tend to provide the best produce. When picking out fruit for recipes, use your nose as well as your eyes; you can often tell a ripe pear or tasty peach by its scent, even when the fruit feels hard when you give it a gentle squeeze. Ask for samples and recommendations when you can. As a bonus, fruit at the peak of its season usually costs less than flavorless, out-of-season fruit grown halfway across the world. Fruits and vegetables can vary in size a lot, so I recommend using the weight or volume measurements that I've included whenever possible for the best results in recipes. If you don't have a scale at home, you can weigh produce when you shop and then you won't have to guess. What's in season when will vary regionally as well as year to year depending on weather patterns. Here are some general guidelines for when the produce used in this book are in season in California and similar regions. SPRING Rhubarb, strawberries, cherries, apricots, early peaches, blueberries SUMMER Peaches, nectarines, plums, raspberries, blackberries (and berry hybrids such as tayberries and loganberries), marionberries, olallieberries, corn, zucchini, first crop of figs FALL Figs, huckleberries, pears, apples, quinces, cranberries, pomegranates, persimmons, winter squash, sweet potatoes WINTER Lemons, oranges, tangerines, grapefruit, blood oranges, kumquats, foods that keep such as nuts, dried fruit DAIRY Nasty stuff like pesticides tend to gather in the fat portion of dairy, which is why I feel that it's particularly important to use organic dairy. Also, I like cows, and I prefer to use dairy made from mama cows who are treated kindly, which is more likely to occur in smaller dairies. Additionally, dairy from cows that have grazed on grass tends to be more flavorful and higher in nutrients, and dairy that is fresh and hasn't been ultra-pasteurized tastes sweeter and cleaner. I don't have much experience with dairy substitutes, but much information can be found online if you need to make trades in these recipes. Look for ingredients that have similar consistencies and fat and water contents for the best results. For example, coconut oil contains nearly 100 percent fat to butter's 80 to 85 percent and will usually not make a good 1:1 substitute. To develop a coconut oil–based tart crust, I had to add water and tweak the other ingredients to make it work. I hope you'll feel free to play around based on your own dietary needs and preferences (and share your results with me at BojonGourmet.com and AlternativeBaker.com!). Don't be discouraged if it takes a few tries to get it right. CHEESES **Whole-milk ricotta** cheese tastes like heaven, and is nothing like cheap, part-skim supermarket ricotta. Spring for the good stuff for these recipes. I use Bellwether Farm's basket-dipped ricotta when I make the ricotta biscuits and shortcakes in this book (and much of it also goes directly into my mouth). **The farmer cheese** used in blintzes should have the texture of a firm ricotta with more bite and is sometimes labeled fromage blanc (which is used in the Fromage Blanc Tartlets with Honeyed Kumquats—the two are interchangeable. I'm a fan of artisan, **crumbly cream cheese** for eating, which is free from gums and stabilizers and has a goat cheese–like texture. But when it comes to cheesecakes and cream cheese frostings, the silky-smooth foil-wrapped sort is your best bet. I don't recommend using whipped cream cheese, as it may give you different results. **Goat cheese** in this book is usually the fresh, crumbly variety, sometimes called chèvre. It makes tasty cheesecake bites studded with berries. This will work in the fig bites as well, but a funky, aged goat cheese will taste extra complex and delicious there. **Mascarpone** is a creamy Italian cheese sold in tubs, with a consistency similar to sour cream but with a sweet flavor. I have yet to find an adequate substitute for this delicious stuff that's classically used in tiramisù and features in this book whipped with cream and spread into a couple of cakes. I use two kinds of **yogurt** in baking: plain whole-milk yogurt and plain, whole-milk Greek yogurt, which is strained of some liquid and has a thicker texture and higher fat content. Both make delicious accompaniments to crisps, cobblers and breakfast treats when you want something creamy but less sweet. Different types of **cream** contain different levels of fat; all recipes in this book were tested with organic heavy whipping cream (also called heavy cream) with a fat content of about 40 percent, but regular whipping cream, with a fat content of about 35 percent, will work, too. Just don't go for something labeled simply "cream," which could have a fat content as low as 18 percent and could give different results in recipes, particularly whipped cream and ice cream. For the record, "double cream" in the UK has an even higher fat content of 48 percent. **Butter** in this book is always European-style unsalted butter, which contains 85 percent butterfat. Regular butters in the United States have a fat content closer to 80 percent, with a higher water content. Pie and tart doughs, scones, biscuits, butter-based cakes and cookies will all taste richer and more flavorful when made with excellent butter: their textures tend to be more tender and flaky and they won't burn as easily. I've found European-style butter to be superior particularly when browning butter. All recipes in this book were developed with Straus brand butter; other brands with a similar fat content are Plugrá, Kerrygold and Organic Valley European-Style Butter. That said, most of these recipes should work fine with regular butter in a pinch. Ghee is butter that has been clarified and cooked until it takes on a warm, toasty flavor. With a high smoke point, it's your friend for frying blintzes. **Crème fraîche and sour cream** are usually interchangeable in recipes. Crème fraîche has a milder flavor and softer texture, and is easy to make at home with just cream and buttermilk (or a spoonful of Crème Fraîche. **Buttermilk** as we know it today is different from old-school buttermilk, which was literally the liquid left over after churning butter. Buttermilk in Northern California is all low-fat, cultured and fairly thick in texture, like watered-down yogurt. When measuring buttermilk, it's important to give it a good shake first, as the solids tend to settle to the bottom of the container. Shaking the buttermilk also aerates it a bit. If you don't have access to buttermilk, plain, unsweetened kefir, which is a sort of liquid, yogurtlike substance, usually makes a good substitute. You can also water down plain, whole-milk yogurt. Another common buttermilk substitution is to mix a tablespoon (15 ml) of lemon juice into a scant cup (230 ml) of milk, stir and let sit until thickened, 5 minutes. Do note that the watered-down yogurt and thickened milk won't be aerated the way shaken buttermilk or kefir are, so you'll want to use a little less than is called for. **Eggs** in my recipes are always "large" (2 ounces [57 g] by weight in the shell). "Pastured" eggs are currently the gold standard of eggs (second only to eggs from your or a neighbor's own chickens). These chickens are allowed to run around outside, beaks intact, pecking at bugs and eating lots of yummy things. These eggs have firm whites and bright orange yolks, and vastly more nutrients than conventional eggs (two to three times more vitamin A, two times more omega-3 fatty acids, three times more vitamin E, four to six times as much vitamin D and seven times more beta-carotene). They even have less cholesterol (by one-third) and saturated fat (by one-fourth) than conventional eggs. Organic, free-range eggs are the next grade down. These chickens are allowed some access to the outdoors and their feed is free of pesticides. All recipes in this book were tested with either pastured or organic eggs. Egg whites from both types will whip up better for use in chiffon cakes, and the yolks will add more color and flavor to custards and ice creams. I tend to stay away from commercial eggs because the way the chickens are treated makes me sad, as do their pale yolks and watery whites. SWEETENERS Sweeteners are part of the panoply of flavors we bakers get to play with. At home and on my blog I revel in all of them: unrefined muscovado sugar, buckwheat honey, coconut nectar, bourbon smoked sugar... To make the recipes in this book more accessible, I stuck with only a handful of easier-to-find sweeteners. **Organic granulated cane sugar** is my go-to sweetener. Wholesome Sweeteners and Florida Crystals are two commonly found brands. This sugar has crystals that are slightly larger and more irregular than conventional granulated sugar and an off-white color with a hint of caramel flavor and tiny amounts of trace minerals. (This sugar is also vegan, whereas conventional granulated cane sugar gets a final whitening process involving animal bones—creepy.) Its mild flavor allows other ingredients to star, and its delicate texture melts into baked goods. If you substitute regular granulated sugar, be sure to substitute by weight or take down the sugar by 1 tablespoon for every ½ cup called for; a cup of organic granulated cane sugar weighs 7 ounces (200 g) whereas the same amount of regular granulated sugar weighs 8 ounces (225 g). **Organic light and dark brown sugars** are also slightly different from their conventional counterparts. All kinds of brown sugars have been refined to the point of being granulated, then mixed with varying amounts of molasses to add back its rich, earthy taste and some trace minerals. If you compare organic and conventional brown sugars side by side, you'll see that the organic sugar (even light brown) is many shades darker than even conventional dark brown sugar. The sugar crystals are coarser, and the sugar is moister. For this reason, I specify organic in recipes. Substituting conventional brown sugar will result in slightly sweeter, drier baked goods with less depth of flavor. If that's all you've got, your best bet is to substitute by weight, or reduce the brown sugar by 1 tablespoon for every ½ cup called for. That said, organic light and dark brown sugars can be used interchangeably; I've specified where I have a flavor preference, though. Whatever you use, be sure to pack the sugar into the cup for the correct measure; when you turn the packed cup out into the mixing bowl, it should crack apart just a bit, signifying a properly packed cup. If you want even more oomph in your sugar, trade out the brown sugars in any recipe for light or dark muscovado sugar (sometimes marketed as natural dark brown molasses sugar, Barbados sugar or unrefined cane sugar). Unlike brown sugar, these sugars haven't had the molasses removed in the first place, and they have a richer flavor and are usually less refined (though there is no standard process for making muscovado sugar). Dark muscovado is a deep, chocolate brown in color and has the highest molasses content of the brown sugars. Light muscovado is closer in color to light brown sugar and can stand in for it in any recipe. India Tree and Billingtons are two commonly available brands **Powdered sugar** (AKA confectioners' sugar, or in the UK, icing sugar) is a combination of pulverized granulated sugar mixed with cornstarch to prevent clumping. Recipes in this book were tested using organic powdered sugar from Wholesome Sweeteners, which comes from the slightly less refined organic granulated cane sugar (above) and has an off-white hue when moistened. It's an essential ingredient in frostings and glazes, where it dissolves easily and adds starch at the same time. Sifting powdered sugar over a cake or pastry can give it a pretty, sweet finish. For finishing baked goods, I often add a sprinkle of **coarse sugar** (either demerara or turbinado, AKA Sugar in the Raw). These sugars have large, crunchy crystals that are semi-refined and retain a bit of caramel flavor. They make scones and muffin tops look pretty. But if you don't have any on hand, organic granulated cane sugar works just fine. **Maple** is perhaps my favorite sweetener. A nutritionist friend considers it the healthiest of the lot, insisting that it thwarts blood-sugar spikes and contains healthy trace minerals. I like its rich flavor (particularly in grade B syrup, which is darker and extra-delicious) that pairs well with other warm flavors, particularly summer and fall fruits, earthy grains and flours, chocolate, nuts and spirits. Maple syrup is about as sweet as sugar by volume, but it contains much more liquid. For this reason, substituting maple syrup for sugar in recipes is not advised without some research, trial and error. If you want to trade sugar out for maple in a recipe, maple sugar is a better bet. It isn't cheap, but it has had the liquid removed and will give much better results, so think of the extra cost as money saved on potentially failed recipe tests. Maple sugar has a condensed maple flavor and if it weren't so darn expensive, I'd use it instead of organic granulated cane sugar in many recipes. It can sometimes be substituted 1:1 by volume in recipes, though some experimentation will still be required. **Honey,** the sticky, golden nectar produced by bees, is about 33 percent sweeter than sugar by volume. It has intoxicating floral notes reminiscent of ripe apricots and citrus and, depending on what sort of flowers the bees have access to, can contain flavors ranging from buckwheat to orange blossom to lavender. Honey's complexity makes it excellent for finishing sweet dishes, the way freshly ground pepper lends flavor to a savory dish, and it adds a beautiful gloss and sheen to tarts, trifles and cakes. Its wild flavors are best preserved in raw honey added as a finish, but I occasionally bake it into cornbread or upside-down cakes, or stir it into candied kumquats, to give them a little more oomph and natural sweetness. Buying honey in bulk from your local co-op can be the least expensive option, and eating very local honey is said to help prevent seasonal allergies. I use **corn syrup** (an organic variety from Wholesome Sweeteners) in only one application, and that is when making caramel. This invert sugar helps prevent the crystallization that can especially plague caramel made from coarser organic granulated cane sugar. Honey has a similar effect and can be used interchangeably there. SALT, SPICE AND ALL THINGS NICE Salt may be the smallest volumetric ingredient used in any given recipe, but it has a big effect on the outcome. Most sweets made without salt taste flat, regardless of other flavors. Fine sea salt is my salt of choice for baking; it is pure white with crystals similar in size to organic granulated cane sugar, and I get it in bulk at my co-op. Kosher salt has larger, less regular crystals; if you substitute this, you'll want to add a little extra than is called for. Conversely, table salt has finer crystals, and you'll want to use a little less of this. I don't recommend using iodized table salt, as it can have a harsh flavor. Unrefined salts such as pink salt can have intense oceanic flavor and I also don't recommend them for baking. For finishing both sweet and savory dishes, I love **Maldon salt** for its crunchy, pyramidal crystals and clean flavor. A sprinkle is the perfect addition to salty caramel or to chocolate cookies. Maldon is made in Essex, England, but Jacobsen Salt Co., in Portland, Oregon, makes a similarly shaped flake salt. **Cinnamon** comes in several different varieties. Ceylon ( _Cinnamomumverum_ ) is considered "true" cinnamon and has a subtler, floral flavor. I usually prefer using regular "cassia" cinnamon ( _Cinnamomum burmannii_ ), the type most widely sold in the United States, in baking, however, as it has that classic cinnamon flavor that carries through better in baked goods such as apple pie and cinnamon swirl biscuits. I use several different forms of **ginger** in this book: fresh ginger root, ground/powdered ginger and candied or crystallized ginger, which are chunks of ginger that have been blanched and preserved in sugar. If you've ever tried freshly grated **nutmeg,** you'll know how different it tastes from the pre-ground stuff. Fresh nutmeg has a peppery, floral, spicy flavor; these nuances get lost in pre-ground nutmeg. So buy whole nutmegs and grate them with a microplane-type grater for best results. To measure, grate it onto a small piece of paper, then use the paper to slide the nutmeg into a measuring spoon and pack lightly. Other spices gracing these pages are **cardamom, cloves and allspice.** When stored airtight in (preferably) glass jars, these hold their flavors well pre-ground; just make sure they're no older than 6 months. **Vanilla beans** make appearances in many of my recipes. Don't buy the über-pricey beans in the supermarket; order them in bulk online (see Sources). I rinse and dry used beans and stick them in a mason jar covered with alcohol to make my own vanilla extract and get the most bang for my buck. Vanilla extract can be substituted at about 1 teaspoon per vanilla bean. And it goes without saying, but only use real vanilla extract, not the fake stuff. I haven't worked with vanilla paste or ground vanilla yet, but they are other options for getting your vanilla on in recipes. LEAVENERS **Baking soda** (called bicarbonate of soda in the UK) and **baking powder** (currently marketed as double-acting) are the two leavening agents used throughout this book. My teacher in pastry school explained that soda promotes spreading (such as in drop cookies) while powder provides lift (in things like scones and biscuits). Baking soda reacts with acidic ingredients (such as cultured dairy, citrus and even sugar) to produce carbon dioxide, which aerates batters and doughs. It is used in smaller quantities than baking powder and can leave an aftertaste if not properly neutralized by acidity in recipes. It also increases browning in cakes and muffins. In gluten-free baking, I've found that baking soda can improve the texture in cakes due, I think, to changing the pH. In short, don't leave out the soda when it's called for, as even a small amount can have a big effect on baked goods. Baking powder is a mixture of baking soda, cream of tartar and sometimes cornstarch, and it reacts not only with acidity but also with heat to create lift (hence the "double-acting" bit). Some recipes call for one or the other, while others need both, so take care to use the right leavening for the job. Do be sure to source gluten-free, aluminum-free baking powder, and see that your leaveners are not more than 3 months old; their lifting powers could be compromised and result in dense, gummy baked goods. **Cream of tartar** is another, lesser-used leavener. In this book, it is used as an acid in the whipped egg whites for chiffon cake, which helps create a stable mixture that makes the cake light and pillowy. CHOCOLATE Chocolate comes from the fruit of the theobroma cacao tree **(** _theobroma_ meaning "food of the gods"). The seeds undergo a lengthy process to become what we know as chocolate, as well as cocoa powder and cacao nibs, all used extensively in this book. Here's how to tell them apart. **Cacao nibs** are the least processed form of chocolate: the cacao bean is simply roasted, slipped from its husk and broken into small pieces. They taste a little like coffee beans, earthy and bitter (except more chocolaty, of course). They work beautifully wherever you want a little crunch, such as the no-bake oat bars or atop little chocolate cakes dolloped with berries and crème fraîche. **Cocoa powder** comes in two forms: natural and Dutch-processed. The latter has been processed with an alkalizing ingredient to neutralize the natural acidity of the cocoa. I prefer the flavor of the Dutch variety, which has a darker color and mellower flavor (think Oreos). Regular and Dutch cocoa powders react differently to leavening in recipes; sometimes they are interchangeable, but other times not. So to be safe, go for Dutch-processed in these recipes. Most European brands are processed with alkali. If you're not sure, look for alkali in the ingredients list. Valrhona, Guittard, Frontier and Equal Exchange are four readily available brands in the United States. When using chocolate, I always go for bars (or baking drops) over chips. Chips have higher amounts of lecithin that keep them from melting in cookies, but I don't even like these in cookies! Chopping up a bar leaves you with irregular pieces and some chocolate dust that disperses better throughout the cookie. Plus, bar chocolate is generally higher quality than chips. Percentage matters when chocolate is melted into a batter, such as in brownies or double chocolate cookies, so take care to use the right chocolate for the job, detailed below. But when chopped and stirred in, such as in blondies or chocolate chip cookies, use any percentage you like. **Dark milk chocolate** with around 40 percent cacao mass tastes nothing like the cheap candy bars we all ate as kids. Milk can smooth rough edges and bring out the fruity notes in the chocolate. I love Recchiuti and Scharffen Berger, and more and more artisanal brands are coming out with dark milk chocolates, too. Try this in the chestnut chocolate chip cookies. **Semisweet chocolate** usually has a lower cacao mass than bittersweet, (roughly 35 to 60 percent), though there are no real standards. I usually skip this in favor of bittersweet. **Bittersweet chocolate** is the darkest of the chocolates, with a cacao mass usually between 60 and 75 percent. (There are higher percentage chocolates out there, too, but those usually make better eating than they do baking.) Recipes in this book that call for bittersweet chocolate were tested with either Tcho's 66 percent or Guittard's 72 percent bittersweet chocolate. Other excellent brands for baking are Scharffen Berger, Alter Eco, Valrhona and Callebaut, among countless others. **White chocolate** has a bad rap due to the cheap stuffbeing made without any cacao butter at all. But there are some delicious white chocolates out there, my favorite being Green & Black's Organic. It isn't toothachingly sweet and is studded with specks of vanilla seeds for big flavor. When baked into blondies, it enhances their butterscotch flavor. NUTS, DRUPES AND SEEDS These tend to be highly perishable and their oils can go rancid at room temperature. Buy them from stores with high turnover (such as the bulk bins at well-attended co-ops and grocers) and keep as many as you can fit in the refrigerator, particularly pistachios, cashews, pecans, walnuts, hazelnuts, hemp seeds and chia seeds, which are the most volatile. Toasting nuts can go from raw to burnt quickly, so keep an eye on them and set a timer if you're forgetful (like me!). Sunflower, flax and pumpkin seeds make up the pumpkin cranberry loaf and are also delicious toasted and sprinkled over salads or yogurt. **Almonds** are used here not only as a flour (discussed more in "Alternative Grains and Flours"), but in other forms, too. Unblanched sliced almonds add texture and a pretty topping to oat bars and buckles, and sweet almond paste (marzipan's less-sweet cousin) makes a wildly flavorful crisp topping. **Chia seeds** are no longer just for chia pets. They are related to flaxseeds and have similar properties with a milder flavor. Black and white chia seeds both work well in recipes and are interchangeable; I tend to buy the white seeds because they make a lighter-colored pie pastry. They're featured in the pumpkin loaf, helping to bind the ingredients together, and when ground they take the place of xanthan gum in flaky pie dough while adding their own nutty flavor. If you have extra seeds lying around that you don't know how to use, try throwing a tablespoon (10 g) of them into your smoothie or stirring them into oatmeal. NOTE: To grind chia seeds, place about ¼ cup (40 g) of seeds in a clean spice grinder or coffee grinder. Grind the seeds until they're the consistency of a fine meal, being careful not to take them so far that they become pasty. Dump the seeds into a jar and store, refrigerated airtight, for up to 1–2 months. **Coconut** is used here not only as a flour (as discussed in the "Alternative Grains and Flours" section) but also as an oil and a milk. Coconut oil is solid at cool room temperature, but if it's too hot in your kitchen, store it in the refrigerator to keep it firm. Always buy raw, extra-virgin coconut oil. I always use canned, full-fat coconut milk unless otherwise specified. This can be chilled, the cream scraped from the top and whipped into a dairy-free whipped cream (see here) to top any dessert or fill roulade cakes. OILS **Sunflower oil** and **olive oil** can make fabulously moist and flavorful cakes. Sunflower has a neutral flavor, while olive oil will add a complex edge. Always use extra-virgin olive oil. Store both at room temperature in a cool, dark place. SPIRITS Wine and spirits make frequent appearances in my recipes, which, in addition to giving the chef a little treat while she bakes, can build layers of flavor into baked goods. There is some confusion as to which spirits are GF because even distilled spirits made from rye or barley should have the gluten removed during the distillation process, which takes out all the solids. Sometimes this process gets botched, however, or caramel color is added, which can contain trace amounts of gluten. This is only an issue if you or your guests have celiac or an extreme sensitivity to gluten, however. (For instance, my sister, who gets hives from gluten, can—and does—drink all the whiskey she wants.) I've noted which spirits you should source GF versions of and made note of brands that are certified GF, such as St-Germain elderflower liqueur, The Kraken black rum and Queen Jennie Whiskey, which is made entirely from sorghum. Lillet Blanc and white wine, also used in recipes here, are GF as well. # GEAR I try to minimize the amount of equipment I cram into our tiny kitchen, but here are some tools and equipment that I don't like to be without. Having them on hand will make baking exponentially more fun and functional. STAND MIXER These big mixers usually come with three different attachments: paddle, for beating buttery batters; whip, for fluffing up egg whites and whipping cream; and hook, for kneading bread (not used in this book). I bought my KitchenAid mixer used from a friend who was upgrading hers, and I use it often when I want to get a batter started and keep my hands free, whip up cream without breaking a sweat or churn ice cream in the ice cream making attachment. I've given alternate instructions for recipes that can be made in different ways. RIMMED BAKING SHEETS AND RIMLESS COOKIE SHEETS At the very least, have in your kitchen two rimmed baking sheets. Called "half-sheet pans" in commercial kitchens, these measure 12 by 17 inches (30 by 43 cm) and are the ones I reach for most often. Having a pan half that size (called a quarter-sheet pan) often comes in handy for toasting smaller amounts of nuts and the like. And if you have a couple of rimless cookie sheets, these are handy for (obviously) baking cookies because, if you line your pans with parchment, you can grab the whole thing and slide it onto a cooling rack to quickly stop the cookies from overbaking. Do stay away from dark pans in favor of good ol' stainless steel; dark pans can promote excessive browning and result in burnt cookie bottoms. WHISKS I have a few different whisks that come in handy for different things, but one will do in a pinch. A small, skinny whisk is great for getting into the corners of pots when making curds or grits. A medium whisk works well for stirring batters. And a larger balloon whisk is a good thing to have if you like to whip cream or egg whites by hand. OVEN THERMOMETER AND INSTANT-READ THERMOMETER Since my oven is nearly as ancient as some of the grains in this book, I never bake without an oven thermometer (or two) firmly in place. These can be inaccurate, but they're better than nothing. Replace every six months for the most accuracy. An instant-read thermometer is nice to have for checking that custards and curds have reached the proper temperature to kill any nasty germs. MEASURING CUPS AND SPOONS There are two types of measuring cups: wet (glass or plastic pitchers for measuring liquids) and dry (metal or plastic cups in ¼-cup 60-ml] increments for measuring flours, sugars and other dry ingredients). (See more on measuring [here) Measuring spoons are for smaller measurements such as baking powder and salt. Not all measuring cups are created equal! Check your measures against each other (or better yet, against a kitchen scale) to see that everything matches up. ELECTRIC KITCHEN SCALE This can be a lifesaver for weighing things like fruit that are hard to get an accurate volumetric measure on. Baking by weight saves time and dishes because you can simply spoon all the ingredients right into the bowls rather than having to dirty a variety of measuring cups and spoons. Plus, baking by weight tends to yield more consistent results. SPATULAS My number one favorite kitchen tool is my small, offset spatula. It has a skinny, metal spatula bit that sits lower than its handle, and it's the perfect tool for just about everything—lifting bars out of pans, flipping crepes, spreading icing. A regular, thin metal spatula is another essential tool for cooking things in skillets, lifting oven pancakes out of pans and transferring cookies from baking sheets. A few flexible, silicone spatulas are essential for folding batters, scraping doughs out of bowls, and stirring stove-top custards. I have a couple of standard-sized ones, plus a smaller one for coaxing honey out of jars and that sort of thing. PIE PAN Look for a standard 9-inch (23-cm) pie pan with a flat lip around the edge; this will give your crust something to rest on and hold it up as it bakes. All pies in this book were tested with glass pie pans; if you have a metal pan, that's fine, just decrease the baking time, as metal conducts heat differently than glass does. TART PANS The two I use most often are a 9-inch (23-cm) pan with a removable bottom and a 10-inch (25-cm) ceramic pan that is perfect for baking clafoutis and cobblers. Smaller 4-inch (10-cm) pans with removable bottoms are nice for individual tarts, too. CAKE PANS Look for cake pans with 2-inch (5-cm) high sides made from sturdy metal and with straight sides. I prefer to stay away from nonstick coating when possible. Having the following will give you the most versatility: • one 6-inch (15-cm) round pan (for making small cakes) • two 8-inch (20-cm) round pans (for making the layer cakes in this book) • one 9-inch (23-cm) round pan • one 9-inch (23-cm) round springform pan (which has a bottom that detaches from the sides) • one 8-inch (20-cm) square pan • one 9-inch (20-cm) square pan And a couple of specialty pans: • one 8 by 4–inch (20 by 10–cm) loaf pan • one 10-cup (2.4-L) Bundt pan CANNING JARS AND/OR RAMEKINS These are the perfect vessels for baking individual puddings, cheesecakes and crisps. Ball mason jars are quite affordable and can be found at hardware stores. Weck makes an assortment of cute canning jars, too. And ramekins can be found at kitchen supply stores. CAST-IRON SKILLETS Aside from having a sort of old-timey charm, these skillets conduct heat brilliantly and are just the thing for baking cornbread, oven pancakes and tarte tatins. The sizes I use most often are 8 and 10 inches (20 and 25 cm). To season a skillet, rub the inside with a teaspoon of oil (I use sunflower) and place the pan over medium heat until it's very hot. Let cool. Acidic ingredients, soap and abrasive sponges can all strip away the seasoning, so take care to keep those things far away from your cast iron. FOOD PROCESSOR This is your friend for grinding nuts and making frangipane. I tend to use my stand mixer more often (and call for it in recipes), but a food processor can also help pulse cold butter into biscuit and scone doughs. MICROPLANE GRATER Ever grate citrus zest on a block grater and spend hours trying to scrape it out of those obnoxious little holes? Well now you'll never have to again. Microplanes are ideal for zesting citrus and grating fresh ginger and nutmeg. SPRING-LOADED ICE CREAM SCOOPS These come in a variety of sizes and make quick work of portioning out cookies, muffins and cupcakes. PASTRY BLENDER I use my pastry blender, which has a handle attached to four curved metal blades, for working butter into pie, scone and biscuit doughs. It's the perfect tool for the job, as it gives you more control over the final product without the heat from your fingertips, which causes the butter to soften prematurely. Stay away from the flimsy, wire types, which don't work as well. BENCH SCRAPERS These may seem like a luxury, but for certain tasks, like working with GF pie dough, they're essential. These come in both plastic and metal, and I recommend having one of each. The plastic ones have a bit of flex and are great when working with stiff doughs, like scones and biscuits. A metal scraper is your friend for scraping fraisaged pie dough off the counter, folding the dough and cleaning off a floury countertop in one fell swoop. PARCHMENT PAPER I have a slight addiction to parchment paper that comes from having worked in bakeries and restaurants most of my life. It makes life so much easier: fewer dishes to do, fewer pastries sticking to pans. Additionally, layering baked goods with parchment for storage helps keep them fresh, as the parchment absorbs excess moisture that leads to stale sweets. And it makes measuring things like freshly grated nutmeg or citrus zest a breeze because you can grate it onto a small piece of parchment, then use the parchment to slide the zest or spice into a measuring spoon. Look for natural, precut sheets of parchment paper. To line a pan with parchment, you can either do it the neat way (cutting the parchment to fit precisely) or the messy way (shoving the parchment in the pan, creasing the corners and trimming excess overhang). I've given the neat way as the instruction in most recipes, but if you can't be bothered to measure and trim, most of the time it's fine not to. To line a round pan with parchment, place the pan on a sheet of parchment, use a pencil to trace a circle around the pan, cut out with scissors and voilà. ROLLING PIN This comes in handy for rolling out pie dough and biscuit dough for swirl biscuits. I prefer the tapered pin with no handles, but anything will do. (I even used a wine bottle once in a pinch!) KITCHEN SHEARS These are great for cutting parchment paper, trimming pie dough and opening up bags of flour so you don't ruin your knives! KNIVES It definitely pays to splurge on a few good knives. I recommend: • A large, sharp chef's knife, for general chopping and cutting • A large serrated knife, for sawing away at things like roulade cakes • A small, sharp paring knife for cutting the hulls from strawberries or cutting into oven pancakes • A small serrated knife for cutting delicate fruits T-SHAPED VEGETABLE PEELER This is the perfect tool for peeling apples and pears or making chocolate shavings. STRAINERS A medium-mesh strainer is the thing to use for sifting clumpy flours, rinsing berries and straining batters—more useful and user-friendly than a traditional sifter. A fine-mesh strainer works well for straining custards, such as ice cream bases. COOLING RACKS These allow baked goods to cool, letting air circulate beneath them. I like to have at least one round rack and one large rectangular rack on hand. BISCUIT CUTTERS A set of fluted biscuit cutters is just the thing for cutting out rounds of dough for fig bites, cutout pie lids and pandowdies. (But a small glass works in a pinch, too.) PASTRY BRUSH You'll be glad to have a small pastry brush on hand; nothing else quite does the trick for brushing the tops of scones or pastries or sweeping away excess flour when rolling out pie dough. MADELEINE PAN This specialty pan makes the pretty little cookies here. If you don't have one, however, you can bake the batter as little cakes in a muffin pan instead. MUFFIN AND CUPCAKE PAPER LINERS These are you friends for making muffins, cupcakes and financiers. Small paper liners can also hold cheesecake bites or other bar cookies for serving. KITCHEN TORCH This not only makes you look like a badass in the kitchen, but it also caramelizes figs for the tartlets. BAKING STONE Never have a soggy-bottomed pie again with one of these. It'll give your pie bottom some extra oomph, keeping it nice and crisp. (Plus, you can use it to make the alternative flour pizza recipe on my blog.) PASTRY BAG AND TIPS If you want to look fancy, pipe frosting for cakes or cupcakes from a bag fitted with a plain or star tip. If you don't have one of these, a plastic baggie with the top cut off will work in a pinch. ## SOURCES The best place to shop for the ingredients and materials in this book is your local co-op, farmers' market, health food store, upscale grocer and kitchen supply store. When all else fails, here are some good online resources. ARROWHEAD MILLS Alternative flours, many organic and GF www.arrowheadmills.com BOB'S RED MILL Alternative flours, grains and starches www.bobsredmill.com CHEF SHOP Calleris Chestnut Flour www.chefshop.com CRATE & BARREL Kitchen supplies, bakeware and cookware www.crateandbarrel.com FRONTIER CO-OP Whole and ground spices www.frontiercoop.com INDIA TREE Light and dark muscovado sugars www.indiatree.com KEREKES BAKEDECO.COM Hard-to-find tartlet pans with loose bottoms in all sizes www.bakedeco.com/a/gobel-round-fluted-t-258.htm K+L WINE MERCHANTS Specialty spirits such as St-Germain and nocino www.KLWines.com KODA FARMS Blue Star Mochiko Sweet Rice Flour www.kodafarms.com LADD HILL ORCHARDS Delicious, organic chestnut flour that isn't smoky www.laddhillchestnuts.com OLD SUGAR DISTILLERY Queen Jennie Gluten-Free Whiskey, made from sorghum www.oldsugardistillery.com SINGING DOG VANILLA Organic vanilla beans, vanilla extract and even some yummy vanilla-infused teas www.singingdogvanilla.com SUR LA TABLE Kitchen supplies, bakeware and cookware www.surlatable.com THE TEFF COMPANY Teff grains and flour www.teffco.com WHOLESOME! Organic granulated, brown and powdered sugars, molasses and corn syrup www.wholesomesweet.com WILLIAMS-SONOMA Kitchen supplies, bakeware and cookware www.williams-sonoma.com ZÓCALO GOURMET Algarrobo mesquite flour www.zocalogourmet.com ## ACKNOWLEDGMENTS It truly takes a village to raise a book baby! This book couldn't have happened without: My editor Marissa's kindness, patience and encouragement; Danielle Svetcov's killer title and subtitle, advice and calm demeanor; My dad's teaching me to love both food and health; My mom's endless support, research and proofreading assistance; Cierra's personal assistance and cheerleading; My yoga and dance teachers keeping me (semi-) fit and (mostly) sane, and eating the desserts I bring them; Sarah M's friendship, advice, recipe guidance, help with process photos and perfecting the cover design; Adam Salomone's endless generosity of time, support and guidance to a complete stranger; Stephen, Shelley, Craig and Pete's photography schooling; Claire making me embrace chiffon cake and teaching me how to master pie pastry; My amazing community of readers and fellow bloggers' encouragement and support over the years; Amelia's unwavering friendship, support and recipe testing skillz; My army of kind and generous recipe testers who made these recipes rock solid: Kelly O, Ann L, Malavika, Jemma, Lea, Celia, Deanne, Tara, Ana, Emma, Stacy, Lukas, Zané, Kelly H, Joelle, Max, Tori, Christine, Emily, Daria, Morgan, Sienna, Sharon, Karen, Vanessa, William E, Maria, Suzuki, Tracy, Todd, Jen M, Cassy, Emilie, Ellen, Nicole, Jessica, Ashley and Tara; With special thanks to Caterina, Michelle R, Janet, Erika, Lawre, Maureen, Shanna, Rebecca G, Kathy, Michelle D, Alanna L and Jaime for testing loads of recipes and even helping develop, brainstorm and problem solve; And especially Jay's willingness to "taste" insane amounts of sweets without complaining (much), washing approximately a million dishes, supporting me through many years of Bojon and encouraging me to pursue my passion. ## FLOUR INDEX almond flour Apple Chestnut Tart with Salty Caramel Apricot, Almond and Brown Butter Buckle Apricot Clafoutis with Honey and Cardamom Bergamot and Meyer Lemon Bars Buckwheat, Plum and Almond Brown Butter Buckle Caramelized Fig and Whipped Honey Yogurt Tartlets Chestnut Plum Financiers Chestnut Tart Crust Chocolate Bergamot Truffle Tart with Olive Oil and Flaky Salt Chocolate Cranberry Pecan Tart Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt Cocoa Almond Tart Crust Coconut Cream and Raspberry Tart Earl Grey Chocolate Tart Fig and Olive Oil Cake Fromage Blanc Tartlets with Honeyed Kumquats Grapefruit and Elderflower Curd Tart Meyer Lemon Bars with Vanilla-Almond Crust Muscovado Mesquite Tart Crust No-Meyer Lemon Bars overview of Peach Brown Butter Crème Fraîche Tart Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios Pistachio Lime and Matcha Snowballs Salty Caramel Banana Cream Tart with Mesquite Crust Tangerine Vanilla Bean Madeleines Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting Vanilla Almond Tart Crust amaranth flour Cinnamon Amaranth Peach Scones overview of Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits amaranth seeds, in Maple Orange Amaranth Granola bean flours brown rice flour buckwheat flour Apple, Buckwheat and Gruyère Puff Pancake Blackberry Buckwheat Crisps Buckwheat Bergamot Double Chocolate Cookies Buckwheat Gingersnaps and Chewy Ginger Molasses Cookies Buckwheat Pear Galettes with Walnuts and Salty Caramel Buckwheat Pie Dough Buckwheat, Plum and Almond Brown Butter Buckle Huckleberry Buckwheat Cheese Blintzes overview of Poppy Seed, Pluot and Buckwheat Streusel Muffins Pumpkin Pie with a Buckwheat Crust chestnut flour Apple Chestnut Tart with Salty Caramel Cherry Chestnut Chocolate Chip Cookies Chestnut Brownie Ice Cream Sundaes with Port-Roasted Strawberries Chestnut Roulade Cake with Rum Mascarpone and Roasted Pears Chestnut Roulade with Mascarpone, Cinnamon Roasted Apples and Whiskey (or Calvados) Chestnut Brownies Chestnut Fig Scones Chestnut Plum Financiers Chestnut Tart Crust overview of chickpea flour coconut flour Cashew Lime Blondies Coconut Cream and Raspberry Tart Coconut Flour Chiffon Cake overview of Triple Coconut "Tres Leches" Cake with Mango and Lime corn flour Blueberry Corn Flour Muffins Blueberry Plum Cobbler with Corn Flour Biscuits overview of corn grits, in Creamy Baked Grits with Sweet Corn and Berries cornmeal Millet Skillet Cornbread with Cherries and Honey overview of Petite Blood Orange Cornmeal Upside-Down Cake Petite Tangerine Cornmeal Upside-Down Cake hazelnut flour/meal Buckwheat Hazelnut Pear Financiers overview of legume flours mesquite flour Banana Butterscotch Pudding with Mesquite Gingersnaps Buckwheat Gingersnaps and Chewy Ginger Molasses Cookies Chewy Double-Ginger Molasses Cookies Mesquite Chocolate Cakes with Whipped Crème Fraîche and Raspberries Mesquite Gingersnaps or Ginger Cats Muscovado Mesquite Tart Crust Nectarine Cheesecakes in Jars with Mesquite Gingersnap Crusts overview of Pumpkin Ice Cream Sandwiches with Mesquite Ginger Molasses Cookies Salty Caramel Banana Cream Tart with Mesquite Crust Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust millet flour Apple, Pear and Quince Pandowdy Apricot Crème Fraîche Roulade Apricot Raspberry Pandowdy Bergamot and Meyer Lemon Bars Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Blackberry Cream Scones Blackberry Ricotta Shortcakes with Honey and Thyme Blueberry Cardamom Swirl Biscuits Blueberry Hand Pies Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze Chai-Spiced Nectarine Skillet Cake Chai-Spiced Pear Skillet Cake Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt Cinnamon Swirl Biscuits with Cream Cheese Icing Citrus Trifle with Lillet Sabayon Coconut Cream Roulade Fig and Chèvre Bites with Honey and Thyme Fig and Olive Oil Cake Flaky Pie Dough Gingered Pear and Cranberry Pandowdy Gingered Persimmon and Cranberry Pandowdy Ginger Peach Cutout Pie Ginger Pear Upside-Down Cake Ginger, Vanilla and Quince Upside-Down Cake Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Lemon Ricotta Biscuits Meyer Lemon and Vanilla Bean Buttermilk Pie Meyer Lemon Bars with Vanilla-Almond Crust Nocino Tiramisù No-Meyer Lemon Bars Orange Currant Cream Scones overview of Pie Dough for Cutout Pies and Pandowdies Raspberry Swirl Biscuits Rosy Rhubarb Roulade Cake, Rum Tiramisù Strawberry Elderflower Roulade Strawberry Raspberry Rhubarb Cutout Pie Strawberry Ricotta Shortcakes with Honey and Tarragon Tangerine Vanilla Bean Madeleines Triple Coconut "Tres Leches" Cake with Mango and Lime Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting Vanilla Bean Cupcakes with Kumquat Cream Cheese Frosting Vanilla Butter Cake with Whipped Mascarpone and Summer Berries Vanilla Chiffon Cake millet seed Millet Skillet Cornbread with Cherries and Honey overview of oat flour Apple, Buckwheat and Gruyère Puff Pancake Apple, Pear and Quince Pandowdy Apricot, Almond and Brown Butter Buckle Apricot Clafoutis with Honey and Cardamom Apricot Crème Fraîche Roulade Apricot Raspberry Pandowdy Blackberry Buckwheat Crisps Blackberry Cream Scones Blackberry Crisp Frozen Yogurt Blackberry Ricotta Shortcakes with Honey and Thyme Blueberry Cardamom Swirl Biscuits Blueberry Corn Flour Muffins Blueberry Crisp Frozen Yogurt Blueberry Hand Pies Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze Blueberry Plum Cobbler with Corn Flour Biscuits Buckwheat Gingersnaps and Chewy Ginger Molasses Cookies Buckwheat Pear Galettes with Walnuts and Salty Caramel Buckwheat Pie Dough Caramelized Fig and Whipped Honey Yogurt Tartlets Chai-Spiced Nectarine Skillet Cake Chai-Spiced Pear Skillet Cake Chewy Double-Ginger Molasses Cookies Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt Cinnamon Amaranth Peach Scones Cinnamon Swirl Biscuits with Cream Cheese Icing Citrus Trifle with Lillet Sabayon Coconut Cream Roulade Fig and Chèvre Bites with Honey and Thyme Fig and Olive Oil Cake Flaky Pie Dough Fromage Blanc Tartlets with Honeyed Kumquats Gingered Pear and Cranberry Pandowdy Gingered Persimmon and Cranberry Pandowdy Ginger Peach Cutout Pie Ginger Pear Upside-Down Cake Ginger, Vanilla and Quince Upside-Down Cake Grapefruit and Elderflower Curd Tart Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Lemon Ricotta Biscuits Maple Bourbon Apple Pie with Walnut Crumble Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Maple Oat Apple Pie with Walnut Crumble Maple Teff Apple Pie with Walnut Crumble Meyer Lemon and Vanilla Bean Buttermilk Pie Millet Skillet Cornbread with Cherries and Honey Nocino Tiramisù Orange Currant Cream Scones overview of Peach Brown Butter Crème Fraîche Tart Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios Petite Blood Orange Cornmeal Upside-Down Cake Petite Tangerine Cornmeal Upside-Down Cake Pie Dough for Cutout Pies and Pandowdies Pistachio Lime and Matcha Snowballs Poppy Seed, Pluot and Buckwheat Streusel Muffins Pumpkin Pie with a Buckwheat Crust Raspberry Swirl Biscuits Roasted Banana Teff Scones with Muscovado Sugar Glaze Rosy Rhubarb Roulade Cake, Rum Tiramisù Rustic Plum, Teff and Hazelnut Tart Strawberry Elderflower Roulade Strawberry Raspberry Rhubarb Cutout Pie Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits Strawberry Ricotta Shortcakes with Honey and Tarragon Summer Stone Fruit and Marzipan Crumble Sweet Cherry Cacao Nib Crisp Teff Pie Dough Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting Vanilla Almond Tart Crust Vanilla Bean Cupcakes with Kumquat Cream Cheese Frosting Vanilla Butter Cake with Whipped Mascarpone and Summer Berries Vanilla Chiffon Cake oats, rolled Apple Cranberry Pomegranate Crisps with Brown Sugar Teff Streusel Blackberry Buckwheat Crisps Blackberry Crisp Frozen Yogurt Blueberry Crisp Frozen Yogurt Maple Orange Amaranth Granola overview of Poppy Seed, Pluot and Buckwheat Streusel Muffins Pumpkin Cranberry Nut and Seed Loaf Sweet Cherry Cacao Nib Crisp Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars Teff Oatmeal Cookies with Whiskey Currants potato flour quinoa flour sorghum flour Chocolate Zucchini Cake with Matcha Cream Cheese Frosting overview of Sorghum Peach Oven Pancake Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust substitutions sweet white rice flour Apple, Buckwheat and Gruyère Puff Pancake Apple Chestnut Tart with Salty Caramel Apple Cranberry Pomegranate Crisps with Brown Sugar Teff Streusel Apple, Pear and Quince Pandowdy Apricot, Almond and Brown Butter Buckle Apricot Clafoutis with Honey and Cardamom Apricot Crème Fraîche Roulade Apricot Raspberry Pandowdy Banana Butterscotch Pudding with Mesquite Gingersnaps Bergamot and Meyer Lemon Bars Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Blackberry Buckwheat Crisps Blackberry Cream Scones Blackberry Crisp Frozen Yogurt Blueberry Cardamom Swirl Biscuits Blueberry Corn Flour Muffins Blueberry Crisp Frozen Yogurt Blueberry Hand Pies Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze Blueberry Plum Cobbler with Corn Flour Biscuits Buckwheat Gingersnaps and Chewy Ginger Molasses Cookies Buckwheat Pear Galettes with Walnuts and Salty Caramel Buckwheat Pie Dough Buckwheat, Plum and Almond Brown Butter Buckle Caramelized Fig and Whipped Honey Yogurt Tartlets Cashew Lime Blondies Chai-Spiced Nectarine Skillet Cake Chai-Spiced Pear Skillet Cake Chestnut Fig Scones Chestnut Roulade Cake with Rum, Mascarpone and Roasted Pears Chestnut Roulade with Mascarpone, Cinnamon Roasted Apples and Whiskey (or Calvados) Chestnut Tart Crust Chewy Double-Ginger Molasses Cookies Chocolate Bergamot Truffle Tart with Olive Oil and Flaky Salt Chocolate Cranberry Pecan Tart Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt Chocolate Zucchini Cake with Matcha Cream Cheese Frosting Cinnamon Amaranth Peach Scones Cinnamon Swirl Biscuits with Cream Cheese Icing Citrus Trifle with Lillet Sabayon Cocoa Almond Tart Crust Coconut Cream and Raspberry Tart Coconut Cream Roulade Earl Grey Chocolate Tart Fig and Chèvre Bites with Honey and Thyme Fig and Olive Oil Cake Flaky Pie Dough Fromage Blanc Tartlets with Honeyed Kumquats Gingered Pear and Cranberry Pandowdy Gingered Persimmon and Cranberry Pandowdy Ginger Peach Cutout Pie Ginger Pear Upside-Down Cake Ginger, Vanilla and Quince Upside-Down Cake Grapefruit and Elderflower Curd Tart Huckleberry Buckwheat Cheese Blintzes Maple Bourbon Apple Pie with Walnut Crumble Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Maple Oat Apple Pie with Walnut Crumble Maple Teff Apple Pie with Walnut Crumble Mesquite Gingersnaps or Ginger Cats Meyer Lemon and Vanilla Bean Buttermilk Pie Meyer Lemon Bars with Vanilla-Almond Crust Millet Skillet Cornbread with Cherries and Honey Muscovado Mesquite Tart Crust Nectarine Cheesecakes in Jars with Mesquite Gingersnap Crusts Nocino Tiramisù No-Meyer Lemon Bars Orange Currant Cream Scones overview of Peach Brown Butter Crème Fraîche Tart Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios Petite Blood Orange Cornmeal Upside-Down Cake Petite Tangerine Cornmeal Upside-Down Cake Pie Dough for Cutout Pies and Pandowdies Poppy Seed, Pluot and Buckwheat Streusel Muffins Pumpkin Ice Cream Sandwiches with Mesquite Ginger Molasses Cookies Pumpkin Pie with a Buckwheat Crust Raspberry Swirl Biscuits Roasted Banana Teff Scones with Muscovado Sugar Glaze Rosy Rhubarb Roulade Cake, Rum Tiramisù Rustic Plum, Teff and Hazelnut Tart Salty Caramel Banana Cream Tart with Mesquite Crust Sorghum Peach Oven Pancake Strawberry Elderflower Roulade Strawberry Raspberry Rhubarb Cutout Pie Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits Summer Stone Fruit and Marzipan Crumble Sweet Cherry Cacao Nib Crisp Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust Tangerine Vanilla Bean Madeleines Teff Pie Dough Triple Coconut "Tres Leches" Cake with Mango and Lime Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting Vanilla Almond Tart Crust Vanilla Bean Cupcakes with Kumquat Cream Cheese Frosting Vanilla Butter Cake with Whipped Mascarpone and Summer Berries Vanilla Chiffon Cake teff flour Apple Cranberry Pomegranate Crisps with Brown Sugar Teff Streusel Boozy Chocolate Cherry Teff Pots Maple Bourbon Apple Pie with Walnut Crumble Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Maple Oat Apple Pie with Walnut Crumble Maple Teff Apple Pie with Walnut Crumble overview of Roasted Banana Teff Scones with Muscovado Sugar Glaze Rustic Plum, Teff and Hazelnut Tart Teff Oatmeal Cookies with Whiskey Currants Teff Pie Dough white flour ## INDEX allspice almond paste, in Summer Stone Fruit and Marzipan Crumble almonds Apricot, Almond and Brown Butter Buckle Buckwheat, Plum and Almond Brown Butter Buckle Maple Orange Amaranth Granola overview Summer Stone Fruit and Marzipan Crumble Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars amaranth seeds, in Maple Orange Amaranth Granola apples Apple, Buckwheat and Gruyère Puff Pancake Apple Chestnut Tart with Salty Caramel Apple Cranberry Pomegranate Crisps with Brown Sugar Teff Streusel Apple, Pear and Quince Pandowdy Chestnut Roulade with Mascarpone, Cinnamon Roasted Apples and Whiskey (or Calvados) Maple Bourbon Apple Pie with Walnut Crumble Maple Oat Apple Pie with Walnut Crumble Maple Teff Apple Pie with Walnut Crumble apricots Apricot, Almond and Brown Butter Buckle Apricot Clafoutis with Honey and Cardamom Apricot Crème Fraîche Roulade Apricot Raspberry Pandowdy Summer Stone Fruit and Marzipan Crumble baking powder baking sheets baking soda baking stones bananas Banana Butterscotch Pudding with Mesquite Gingersnaps Roasted Banana Teff Scones with Muscovado Sugar Glaze Salty Caramel Banana Cream Tart with Mesquite Crust bars Bergamot and Meyer Lemon Bars Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Cashew Lime Blondies Chestnut Brownies Meyer Lemon Bars with Vanilla-Almond Crust No-Meyer Lemon Bars Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust bench scrapers bergamot Bergamot and Meyer Lemon Bars Buckwheat Bergamot Double Chocolate Cookies Chocolate Bergamot Truffle Tart with Olive Oil and Flaky Salt biscuits Blueberry Cardamom Swirl Biscuits Blueberry Plum Cobbler with Corn Flour Biscuits Cinnamon Swirl Biscuits with Cream Cheese Icing cutters Lemon Ricotta Biscuits Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Raspberry Swirl Biscuits Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits Strawberry Ricotta Shortcakes with Honey and Tarragon blackberries Blackberry Buckwheat Crisps Blackberry Cream Scones Blackberry Crisp Frozen Yogurt Blackberry Ricotta Shortcakes with Honey and Thyme Creamy Baked Grits with Sweet Corn and Berries Individual Berry Marzipan Crumbles Vanilla Butter Cake with Whipped Mascarpone and Summer Berries blenders blintzes, as Huckleberry Buckwheat Cheese Blintzes blueberries Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Blueberry Cardamom Swirl Biscuits Blueberry Corn Flour Muffins Blueberry Crisp Frozen Yogurt Blueberry Hand Pies Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze Blueberry Plum Cobbler with Corn Flour Biscuits Creamy Baked Grits with Sweet Corn and Berries Huckleberry Buckwheat Cheese Blintzes Individual Berry Marzipan Crumbles Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Vanilla Butter Cake with Whipped Mascarpone and Summer Berries bourbon Banana Butterscotch Pudding with Mesquite Gingersnaps Boozy Chocolate Cherry Teff Pots Maple Bourbon Apple Pie with Walnut Crumble Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Maple Bourbon Whipped Cream overview Salty and Boozy Caramel Sauce Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust Teff Oatmeal Cookies with Whiskey Currants Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting bread pudding, as Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Brie, in Apple, Buckwheat and Gruyère Puff Pancake brown butter brownies Chestnut Brownie Ice Cream Sundaes with Port-Roasted Strawberries Chestnut Brownies brown sugar buckles Apricot, Almond and Brown Butter Buckle Buckwheat, Plum and Almond Brown Butter Buckle butter browning overview buttermilk Meyer Lemon and Vanilla Bean Buttermilk Pie overview cacao nibs overview Sweet Cherry Cacao Nib Crisp Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars cake Apricot Crème Fraîche Roulade Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze Boozy Chocolate Cherry Teff Pots Chai-Spiced Nectarine Skillet Cake Chai-Spiced Pear Skillet Cake Chestnut Plum Financiers Chestnut Roulade Cake with Rum, Mascarpone and Roasted Pears Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt Chocolate Zucchini Cake with Matcha Cream Cheese Frosting Coconut Cream Roulade Fig and Olive Oil Cake Ginger Pear Upside-Down Cake Ginger, Vanilla and Quince Upside-Down Cake Mesquite Chocolate Cakes with Whipped Crème Fraîche and Raspberries Nectarine Cheesecakes in Jars with Mesquite Gingersnap Crusts Petite Blood Orange Cornmeal Upside-Down Cake Petite Tangerine Cornmeal Upside-Down Cake Rosy Rhubarb Roulade Cake Strawberry Elderflower Roulade Triple Coconut "Tres Leches" Cake with Mango and Lime Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting Vanilla Bean Cupcakes with Kumquat Cream Cheese Frosting Vanilla Butter Cake with Whipped Mascarpone and Summer Berries Vanilla Chiffon Cake cake pans cane sugar canning jars caramel sauce Salty and Boozy Caramel Sauce Salty and Smoky Caramel Sauce Salty Caramel Banana Cream Tart with Mesquite Crust Salty Vanilla Bean Caramel Sauce cardamom Cardamom Ice Cream overview cashews, in Cashew Lime Blondies cast-iron skillets cheddar cheese Apple, Buckwheat and Gruyère Puff Pancake Cheesy Sweet Corn Baked Grits cheesecake Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Nectarine Cheesecakes in Jars with Mesquite Gingersnap Crusts Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust cherries Boozy Chocolate Cherry Teff Pots Cherry Chestnut Chocolate Chip Cookies Millet Skillet Cornbread with Cherries and Honey Summer Stone Fruit and Marzipan Crumble Sweet Cherry Cacao Nib Crisp Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars chestnut spread, in Chestnut Roulade Cake with Rum, Mascarpone and Roasted Pears chèvre cheese Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Fig and Chèvre Bites with Honey and Thyme overview chia seeds overview Pie Dough for Cutout Pies and Pandowdies Pumpkin Cranberry Nut and Seed Loaf chocolate Boozy Chocolate Cherry Teff Pots Buckwheat Bergamot Double Chocolate Cookies Cherry Chestnut Chocolate Chip Cookies Chestnut Brownies Chocolate Bergamot Truffle Tart with Olive Oil and Flaky Salt Chocolate Cranberry Pecan Tart Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt Chocolate Zucchini Cake with Matcha Cream Cheese Frosting Coconut Cream and Raspberry Tart Earl Grey Chocolate Tart Mesquite Chocolate Cakes with Whipped Crème Fraîche and Raspberries Nocino Tiramisù overview Salty Caramel Banana Cream Tart with Mesquite Crust Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars Teff Oatmeal Chocolate Chip Cookies chocolate, white Cashew Lime Blondies overview cinnamon Cinnamon Amaranth Peach Scones Cinnamon Swirl Biscuits with Cream Cheese Icing overview clafoutis Apricot Clafoutis with Honey and Cardamom Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios cloves cobbler Blueberry Plum Cobbler with Corn Flour Biscuits Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits cocoa powder coconut coconut cream Coconut Cream and Raspberry Tart Coconut Cream Roulade coconut flakes, in Triple Coconut "Tres Leches" Cake with Mango and Lime coconut oil Coconut Cream and Raspberry Tart Coconut Oil Pie Dough overview coffee Nocino Tiramisù Rum Tiramisù cookies Banana Butterscotch Pudding with Mesquite Gingersnaps Buckwheat Bergamot Double Chocolate Cookies Buckwheat Gingersnaps and Chewy Ginger Molasses Cookies Cherry Chestnut Chocolate Chip Cookies Chewy Double-Ginger Molasses Cookies Mesquite Gingersnaps or Ginger Cats Pistachio Lime and Matcha Snowballs Pumpkin Ice Cream Sandwiches with Mesquite Ginger Molasses Cookies Tangerine Vanilla Bean Madeleines Teff Oatmeal Cookies with Whiskey Currants cookie sheets cooling cornbread, in Millet Skillet Cornbread with Cherries and Honey cornstarch corn, sweet, in Creamy Baked Grits with Sweet Corn and Berries corn syrup cranberries Apple Cranberry Pomegranate Crisps with Brown Sugar Teff Streusel Chocolate Cranberry Pecan Tart Gingered Pear and Cranberry Pandowdy Gingered Persimmon and Cranberry Pandowdy Pumpkin Cranberry Nut and Seed Loaf Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars cream cheese Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze Chocolate Zucchini Cake with Matcha Cream Cheese Frosting Cinnamon Swirl Biscuits with Cream Cheese Icing Nectarine Cheesecakes in Jars with Mesquite Gingersnap Crusts Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust, 213–215 Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting Vanilla Bean Cupcakes with Kumquat Cream Cheese Frosting cream of tartar Crème Fraîche Apricot Crème Fraîche Roulade Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Chai-Spiced Nectarine Skillet Cake Crème Fraîche Ice Cream Ginger, Vanilla and Quince Upside-Down Cake Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Mesquite Chocolate Cakes with Whipped Crème Fraîche and Raspberries Nectarine Cheesecakes in Jars with Mesquite Gingersnap Crusts overview Peach Brown Butter Crème Fraîche Tart Petite Blood Orange Cornmeal Upside-Down Cake Petite Tangerine Cornmeal Upside-Down Cake Pumpkin Pie with a Buckwheat Crust recipe Rosy Rhubarb Roulade Cake, Strawberry Elderflower Roulade Whipped Crème Fraîche crepes, in Huckleberry Buckwheat Cheese Blintzes crisps and crumbles Apple Cranberry Pomegranate Crisps with Brown Sugar Teff Streusel Blackberry Buckwheat Crisps Blackberry Crisp Frozen Yogurt Individual Berry Marzipan Crumbles Maple Bourbon Apple Pie with Walnut Crumble Maple Oat Apple Pie with Walnut Crumble Maple Teff Apple Pie with Walnut Crumble Poppy Seed, Pluot and Buckwheat Streusel Muffins Summer Stone Fruit and Marzipan Crumble Sweet Cherry Cacao Nib Crisp cupcake pans currants Cinnamon Swirl Biscuits with Cream Cheese Icing Orange Currant Cream Scones Teff Oatmeal Cookies with Whiskey Currants dairy-free recipes Coconut Cream Roulade Triple Coconut "Tres Leches" Cake with Mango and Lime eggs elderflower liqueur Grapefruit and Elderflower Curd Tart Strawberry Elderflower Roulade farmer cheese Fromage Blanc Tartlets with Honeyed Kumquats Huckleberry Buckwheat Cheese Blintzes overview figs Caramelized Fig and Whipped Honey Yogurt Tartlets Chestnut Fig Scones Fig and Chèvre Bites with Honey and Thyme Fig and Olive Oil Cake financiers Buckwheat Hazelnut Pear Financiers Chestnut Plum Financiers Flaky Pie Dough baking Fig and Chèvre Bites with Honey and Thyme fraisage method freezing Maple Oat Apple Pie with Walnut Crumble Meyer Lemon and Vanilla Bean Buttermilk Pie rolling shaping timing tools and equipment visual instructions food processors fraisage method galettes, as Buckwheat Pear Galettes with Walnuts and Salty Caramel ginger Banana Butterscotch Pudding with Mesquite Gingersnaps Buckwheat Gingersnaps and Chewy Ginger Molasses Cookies Chai-Spiced Nectarine Skillet Cake Chewy Double-Ginger Molasses Cookies Fresh Ginger Ice Cream Gingered Pear and Cranberry Pandowdy Gingered Persimmon and Cranberry Pandowdy Ginger Peach Cutout Pie Ginger Pear Upside-Down Cake Ginger, Vanilla and Quince Upside-Down Cake Mesquite Gingersnaps or Ginger Cats Nectarine Cheesecakes in Jars with Mesquite Gingersnap Crusts overview Pumpkin Ice Cream Sandwiches with Mesquite Ginger Molasses Cookies Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits goat cheese Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Fig and Chèvre Bites with Honey and Thyme overview granola, in Maple Orange Amaranth Granola grapefruit, sliced, in Citrus Trifle with Lillet Sabayon grapefruit juice, in Grapefruit and Elderflower Curd Tart graters Greek yogurt Caramelized Fig and Whipped Honey Yogurt Tartlets Fig and Olive Oil Cake overview Vanilla Bean Frozen Yogurt Whipped Crème Fraîche grits Cheesy Sweet Corn Baked Grits Creamy Baked Grits with Sweet Corn and Berries overview Gruyère cheese, in Apple, Buckwheat and Gruyère Puff Pancake guar gum hazelnuts, raw, in Rustic Plum, Teff and Hazelnut Tart honey Apricot Clafoutis with Honey and Cardamom Berry Fromage Blanc Tartlets Blackberry Ricotta Shortcakes with Honey and Thyme Caramelized Fig and Whipped Honey Yogurt Tartlets Cheesy Sweet Corn Baked Grits Chocolate Bergamot Truffle Tart with Olive Oil and Flaky Salt Creamy Baked Grits with Sweet Corn and Berries Earl Grey Chocolate Tart Fig and Chèvre Bites with Honey and Thyme Fromage Blanc Tartlets with Honeyed Kumquats Honey Candied Kumquats Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Millet Skillet Cornbread with Cherries and Honey Petite Blood Orange Cornmeal Upside-Down Cake Sorghum Peach Oven Pancake Strawberry Ricotta Shortcakes with Honey and Tarragon Vanilla Bean Cupcakes with Kumquat Cream Cheese Frosting huckleberries Blueberry Cardamom Swirl Biscuits Creamy Baked Grits with Sweet Corn and Berries Huckleberry Buckwheat Cheese Blintzes Individual Berry Marzipan Crumbles Summer Stone Fruit and Marzipan Crumble ice cream Cardamom Ice Cream Chestnut Brownie Ice Cream Sundaes with Port-Roasted Strawberries Crème Fraîche Ice Cream Fresh Ginger Ice Cream Pumpkin Ice Cream Sandwiches with Mesquite Ginger Molasses Cookies scoops Vanilla Bean Ice Cream kitchen shears kitchen torches knives kumquats Fromage Blanc Tartlets with Honeyed Kumquats Honey Candied Kumquats Vanilla Bean Cupcakes with Kumquat Cream Cheese Frosting lemons Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze Lemon Ricotta Biscuits Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Meyer Lemon and Vanilla Bean Buttermilk Pie Meyer Lemon Bars with Vanilla-Almond Crust limes Cashew Lime Blondies Pistachio Lime and Matcha Snowballs Triple Coconut "Tres Leches" Cake with Mango and Lime madeleines pans Tangerine Vanilla Bean Madeleines mandarins, in Petite Tangerine Cornmeal Upside-Down Cake mangos, in Triple Coconut "Tres Leches" Cake with Mango and Lime maple syrup Maple Bourbon Apple Pie with Walnut Crumble Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Maple Bourbon Whipped Cream Maple Oat Apple Pie with Walnut Crumble Maple Orange Amaranth Granola Maple Teff Apple Pie with Walnut Crumble overview Pumpkin Cranberry Nut and Seed Loaf Pumpkin Pie with a Buckwheat Crust Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars mascarpone Chestnut Roulade Cake with Rum, Mascarpone and Roasted Pears Mascarpone Whipped Cream Nocino Tiramisù overview Rum Tiramisù Vanilla Butter Cake with Whipped Mascarpone and Summer Berries matcha Chocolate Zucchini Cake with Matcha Cream Cheese Frosting measurements measuring cups measuring spoons microplane graters molasses Buckwheat Gingersnaps and Chewy Ginger Molasses Cookies Chewy Double-Ginger Molasses Cookies Mesquite Gingersnaps or Ginger Cats Pumpkin Ice Cream Sandwiches with Mesquite Ginger Molasses Cookies muffins Blueberry Corn Flour Muffins pans Poppy Seed, Pluot and Buckwheat Streusel Muffins navel oranges Citrus Trifle with Lillet Sabayon No-Meyer Lemon Bars nectarines Chai-Spiced Nectarine Skillet Cake Cinnamon Amaranth Peach Scones Nectarine Cheesecakes in Jars with Mesquite Gingersnap Crusts Summer Stone Fruit and Marzipan Crumble nocino liqueur, in Nocino Tiramisù nutmeg olive oil oranges, chopped Citrus Trifle with Lillet Sabayon Petite Blood Orange Cornmeal Upside-Down Cake orange juice Grapefruit and Elderflower Curd Tart No-Meyer Lemon Bars orange zest Buckwheat Bergamot Double Chocolate Cookies Citrus Chiffon Cake Maple Orange Amaranth Granola No-Meyer Lemon Bars Orange Currant Cream Scones Petite Blood Orange Cornmeal Upside-Down Cake Rhubarb Preserves Rhubarb Puree oven racks oven temperatures pancakes Apple, Buckwheat and Gruyère Puff Pancake Sorghum Peach Oven Pancake pandowdies Apple, Pear and Quince Pandowdy Apricot Raspberry Pandowdy Gingered Pear and Cranberry Pandowdy Gingered Persimmon and Cranberry Pandowdy Pie Dough for Pandowdies pan sizes parchment paper pastry bags and tips pastry blenders pastry brushes peaches Cinnamon Amaranth Peach Scones Ginger Peach Cutout Pie Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Peach Brown Butter Crème Fraîche Tart Sorghum Peach Oven Pancake Summer Stone Fruit and Marzipan Crumble pears Apple, Pear and Quince Pandowdy Buckwheat Hazelnut Pear Financiers Buckwheat Pear Galettes with Walnuts and Salty Caramel Chai-Spiced Pear Skillet Cake Chestnut Roulade Cake with Rum, Mascarpone and Roasted Pears Chestnut Roulade with Mascarpone, Cinnamon Roasted Apples and Whiskey (or Calvados) Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt Gingered Pear and Cranberry Pandowdy Ginger Pear Upside-Down Cake Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios pecans Cherry Chestnut Chocolate Chip Cookies Chocolate Cranberry Pecan Tart Roasted Banana Teff Scones with Muscovado Sugar Glaze Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust peelers pepitas, in Pumpkin Cranberry Nut and Seed Loaf persimmons Gingered Persimmon and Cranberry Pandowdy Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting pie Blueberry Hand Pies Buckwheat Pear Galettes with Walnuts and Salty Caramel Fig and Chèvre Bites with Honey and Thyme Ginger Peach Cutout Pie Maple Bourbon Apple Pie with Walnut Crumble Maple Oat Apple Pie with Walnut Crumble Meyer Lemon and Vanilla Bean Buttermilk Pie Pumpkin Pie with a Buckwheat Crust Rustic Plum, Teff and Hazelnut Tart Strawberry Raspberry Rhubarb Cutout Pie pie dough baking Buckwheat Pie Dough Coconut Oil Pie Dough Flaky Pie Dough fraisage method freezing Pie Dough for Cutout Pies and Pandowdies rolling shaping Teff Pie Dough timing tools and equipment visual instructions pie pans pistachios Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios Pistachio Lime and Matcha Snowballs plums Blueberry Plum Cobbler with Corn Flour Biscuits Buckwheat, Plum and Almond Brown Butter Buckle Chestnut Plum Financiers Rustic Plum, Teff and Hazelnut Tart Summer Stone Fruit and Marzipan Crumble pluots Blueberry Plum Cobbler with Corn Flour Biscuits Poppy Seed, Pluot and Buckwheat Streusel Muffins pomegranate arils Apple Cranberry Pomegranate Crisps with Brown Sugar Teff Streusel Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios potato starch powdered sugar pudding Banana Butterscotch Pudding with Mesquite Gingersnaps Lemon Ricotta Biscuit Bread Pudding with Berries and Honey pumpkin Pumpkin Cranberry Nut and Seed Loaf Pumpkin Ice Cream Sandwiches with Mesquite Ginger Molasses Cookies Pumpkin Pie with a Buckwheat Crust quinces Apple, Pear and Quince Pandowdy Ginger, Vanilla and Quince Upside-Down Cake Strawberry Elderflower Roulade ramekins raspberries Apricot Raspberry Pandowdy Berry Chèvre Cheesecake Squares with Pistachio Shortbread Crust Coconut Cream and Raspberry Tart Creamy Baked Grits with Sweet Corn and Berries Individual Berry Marzipan Crumbles Mesquite Chocolate Cakes with Whipped Crème Fraîche and Raspberries Raspberry Swirl Biscuits Strawberry Raspberry Rhubarb Cutout Pie Vanilla Butter Cake with Whipped Mascarpone and Summer Berries rhubarb Rhubarb Preserves Rhubarb Puree Rosy Rhubarb Roulade Cake Strawberry Raspberry Rhubarb Cutout Pie Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits ricotta cheese Blackberry Ricotta Shortcakes with Honey and Thyme Lemon Ricotta Biscuit Bread Pudding with Berries and Honey Lemon Ricotta Biscuits overview Strawberry Ricotta Shortcakes with Honey and Tarragon rolling pins rum Chestnut Roulade Cake with Rum, Mascarpone and Roasted Pears, Rum Tiramisù Salty and Boozy Caramel Sauce Triple Coconut "Tres Leches" Cake with Mango and Lime sabayon, in Citrus Trifle with Lillet Sabayon salt scales scones Blackberry Cream Scones Chestnut Fig Scones Cinnamon Amaranth Peach Scones Orange Currant Cream Scones Roasted Banana Teff Scones with Muscovado Sugar Glaze tips and tricks shears shortcakes Blackberry Ricotta Shortcakes with Honey and Thyme Strawberry Ricotta Shortcakes with Honey and Tarragon skillets spatulas squash puree Pumpkin Ice Cream Sandwiches with Mesquite Ginger Molasses Cookies Pumpkin Pie with a Buckwheat Crust stand mixers starch strainers strawberries Chestnut Brownie Ice Cream Sundaes with Port-Roasted Strawberries Creamy Baked Grits with Sweet Corn and Berries Individual Berry Marzipan Crumbles Strawberry Elderflower Roulade Strawberry Raspberry Rhubarb Cutout Pie Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits Strawberry Ricotta Shortcakes with Honey and Tarragon Vanilla Butter Cake with Whipped Mascarpone and Summer Berries streusel Apple Cranberry Pomegranate Crisps with Brown Sugar Teff Streusel Poppy Seed, Pluot and Buckwheat Streusel Muffins substitutions sugars sundaes, as Chestnut Brownie Ice Cream Sundaes with Port-Roasted Strawberries sunflower oil sweet potatoes, in Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust tangerines Citrus Chiffon Cake Citrus Trifle with Lillet Sabayon Petite Tangerine Cornmeal Upside-Down Cake Tangerine Vanilla Bean Madeleines tapioca starch tarts Apple Chestnut Tart with Salty Caramel Caramelized Fig and Whipped Honey Yogurt Tartlets Chestnut Tart Crust Chocolate Bergamot Truffle Tart with Olive Oil and Flaky Salt Chocolate Cranberry Pecan Tart Cocoa Almond Tart Crust Coconut Cream and Raspberry Tart Earl Grey Chocolate Tart Fromage Blanc Tartlets with Honeyed Kumquats Grapefruit and Elderflower Curd Tart Muscovado Mesquite Tart Crust pans Peach Brown Butter Crème Fraîche Tart Rustic Plum, Teff and Hazelnut Tart Salty Caramel Banana Cream Tart with Mesquite Crust Vanilla Almond Tart Crust, temperatures thermometers timers tiramisu Nocino Tiramisù Rum Tiramisù utensils vanilla Blueberry Lemon Verbena Bundt Cake with Vanilla Bean Glaze Ginger, Vanilla and Quince Upside-Down Cake Meyer Lemon and Vanilla Bean Buttermilk Pie Meyer Lemon Bars with Vanilla-Almond Crust overview Pear and Pomegranate Clafoutis with Vanilla, Saffron and Pistachios Salty Vanilla Bean Caramel Sauce Tangerine Vanilla Bean Madeleines Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting Vanilla Almond Tart Crust Vanilla Bean Cupcakes with Kumquat Cream Cheese Frosting Vanilla Bean Frozen Yogurt Vanilla Bean Ice Cream Vanilla Butter Cake with Whipped Mascarpone and Summer Berries Vanilla Chiffon Cake Vanilla Extract vegan recipes Blueberry Hand Pies Coconut Cream and Raspberry Tart Coconut Oil Pie Dough Tart Cherry, Chocolate and Hempseed No-Bake Oat Bars vegetable peelers vodka overview Vanilla Bean Frozen Yogurt Vanilla Extract walnuts Buckwheat Pear Galettes with Walnuts and Salty Caramel Maple Bourbon Apple Pie with Walnut Crumble Maple Oat Apple Pie with Walnut Crumble Maple Teff Apple Pie with Walnut Crumble Pumpkin Cranberry Nut and Seed Loaf Teff Oatmeal Cookies with Whiskey Currants whiskey Banana Butterscotch Pudding with Mesquite Gingersnaps Boozy Chocolate Cherry Teff Pots Chestnut Roulade with Mascarpone, Cinnamon Roasted Apples and Whiskey (or Calvados) Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits Maple Bourbon Whipped Cream overview Sweet Potato Bourbon Cheesecake Bites with Mesquite-Pecan Crust Teff Oatmeal Cookies with Whiskey Currants Two-Persimmon Cupcakes Two-Persimmon Layer Cake with Vanilla Bourbon Cream Cheese Frosting Vanilla Bean Frozen Yogurt whisks white chocolate Cashew Lime Blondies overview xanthan gum yogurt Blackberry Crisp Frozen Yogurt Blueberry Crisp Frozen Yogurt Blueberry Plum Cobbler with Corn Flour Biscuits Caramelized Fig and Whipped Honey Yogurt Tartlets Chocolate Pear Tea Cakes with Rosemary, Olive Oil and Sea Salt Fig and Olive Oil Cake Maple Bourbon Peach Cobbler with Cinnamon Teff Biscuits overview Strawberry Rhubarb Cobbler with Ginger-Amaranth Biscuits Vanilla Bean Frozen Yogurt zucchini, in Chocolate Zucchini Cake with Matcha Cream Cheese Frosting ## ABOUT THE AUTHOR _Photo credit: Shelley Eades_ **Alanna Taylor-Tobin** is a food stylist, photographer and trained pastry chef. In 2009, she founded the popular recipe blog The Bojon Gourmet (bojon = no job, backwards), where she plays with uncommon ingredients and alternative grains and flours in her spare time. Her recipes, food styling and photography have been featured in countless web and print publications, including the _New York Times, Food and Wine,_ Food52, The Huffington Post, _GFF: Gluten-Free Forever Magazine_ and Williams-Sonoma. She lives and works in San Francisco with her other half, Jay, and a sassy feline named Catamus. Find her at BojonGourmet.com or follow along on Instagram (@the_bojon_gourmet). **Thank you for buying this** **Page Street Publishing Co. ebook.** To receive special offers, bonus content, and info on new releases and other great reads, sign up for our newsletters. Or visit us online at us.macmillan.com/newslettersignup # CONTENTS Title Page Copyright Notice Dedication INTRODUCTION HOW TO USE THIS BOOK HOW TO WIN AT BAKING DESSERT FOR BREAKFAST CAKE PIE TARTS RUSTIC FRUIT DESSERTS CUSTARDS, PUDDINGS AND SPOON DESSERTS COOKIES AND BARS BASICS AND ACCOMPANIMENTS ALTERNATIVE GRAINS AND FLOURS OTHER INGREDIENTS GEAR SOURCES ACKNOWLEDGMENTS ABOUT THE AUTHOR FLOUR INDEX INDEX Copyright Copyright © 2016 Alanna Taylor-Tobin First published in 2016 by Page Street Publishing Co. 27 Congress Street, Suite 103 Salem, MA 01970 www.pagestreetpublishing.com All rights reserved. No part of this book may be reproduced or used, in any form or by any means, electronic or mechanical, without prior permission in writing from the publisher. Distributed by Macmillan, sales in Canada by The Canadian Manda Group. eISBN 978-1-62414-210-9 Our eBooks may be purchased in bulk for promotional, educational, or business use. Please contact the Macmillan Corporate and Premium Sales Department at 1-800-221-7945, extension. 5442, or by e-mail at [email protected]. Library of Congress Control Number: 2015919637 Cover design by Page Street Publishing Co. Photography by Alanna Taylor-Tobin Photos here, here and here by Sarah Menanix Author photo, here, by Shelley Eades # Contents 1. Cover 2. Title Page 3. Copyright Notice 4. Dedication 5. INTRODUCTION 6. HOW TO USE THIS BOOK 7. HOW TO WIN AT BAKING 8. DESSERT FOR BREAKFAST 9. CAKE 10. PIE 11. TARTS 12. RUSTIC FRUIT DESSERTS 13. CUSTARDS, PUDDINGS AND SPOON DESSERTS 14. COOKIES AND BARS 15. BASICS AND ACCOMPANIMENTS 16. ALTERNATIVE GRAINS AND FLOURS 17. OTHER INGREDIENTS 18. GEAR 19. SOURCES 20. ACKNOWLEDGMENTS 21. ABOUT THE AUTHOR 22. FLOUR INDEX 23. INDEX 24. Newsletter Sign-up 25. Contents 26. Copyright ## Guide 1. Cover 2. Copyright 3. Table of Contents
/* * (C) Symbol Contributors 2022 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and limitations under the License. * */ import { createLocalVue, shallowMount } from '@vue/test-utils'; import Vuex from 'vuex'; import VueRouter from 'vue-router'; import i18n from '@/language'; import VueI18n from 'vue-i18n'; import iView from 'view-design'; import { NetworkConfigurationModel } from '@/core/database/entities/NetworkConfigurationModel'; import ModalTransactionCosignature from '@/views/modals/ModalTransactionCosignature/ModalTransactionCosignature.vue'; import { ModalTransactionCosignatureTs } from '@/views/modals/ModalTransactionCosignature/ModalTransactionCosignatureTs.ts'; import { WalletsModel1, getTestAccount } from '@MOCKS/Accounts'; import { networkMock } from '@MOCKS/network'; import { getTestProfile } from '@MOCKS/profiles'; import { PublicAccount, Address, NetworkType, TransferTransaction, Deadline, PlainMessage, TransactionStatus, Transaction, AggregateTransaction, UInt64, } from 'symbol-sdk'; import { TransactionGroupEnum } from 'symbol-openapi-typescript-fetch-client'; import { AddressBook } from 'symbol-address-book'; const epochAdjustment = 1573430400; const transactionHash = 'DC1C6F081A948C682874E4A70F1E251A8B5FADEAF2784E055DCF8744F3B4434D'; const currentPublicKey = WalletsModel1.publicKey; const currentAccount = PublicAccount.createFromPublicKey(currentPublicKey, NetworkType.TEST_NET); const router = new VueRouter(); const localVue = createLocalVue(); localVue.use(iView); localVue.use(Vuex); localVue.use(VueI18n); localVue.use(VueRouter); function createAggregateBondedTransaction(signerAccount, targetAccount) { const transferTransaction = TransferTransaction.create( Deadline.create(epochAdjustment), signerAccount.address, [], PlainMessage.create(''), NetworkType.TEST_NET, ); return AggregateTransaction.createBonded( Deadline.create(epochAdjustment), [transferTransaction.toAggregate(targetAccount)], NetworkType.TEST_NET, [], UInt64.fromUint(2000000), null, signerAccount, ); } function createStore(transaction: Transaction, transactionGroup: TransactionGroupEnum, addressBook: AddressBook) { const accountModule = { namespaced: true, getters: { currentAccount: () => WalletsModel1, knownAccounts: () => [WalletsModel1], currentSigner: () => { return { label: 'test-1', address: Address.createFromRawAddress(WalletsModel1.address), multisig: WalletsModel1.isMultisig, requiredCosignatures: 0, }; }, }, }; const addressBookModule = { namespaced: true, getters: { getAddressBook: () => addressBook, }, }; const transactionModule = { namespaced: true, actions: { async FETCH_TRANSACTION_STATUS() { return new TransactionStatus(transactionGroup, '0', Deadline.create(epochAdjustment)); }, async LOAD_TRANSACTION_DETAILS() { return transaction; }, }, }; const networkModule = { namespaced: true, getters: { currentHeight: () => 100, feesConfig: () => networkMock.fees, networkConfiguration: () => new NetworkConfigurationModel(), epochAdjustment: () => epochAdjustment, networkType: () => NetworkType.TEST_NET, }, }; const profileModule = { namespaced: true, getters: { currentProfile: () => getTestProfile('profile1'), }, }; const store = new Vuex.Store({ modules: { account: accountModule, addressBook: addressBookModule, network: networkModule, profile: profileModule, transaction: transactionModule, }, }); store.commit = jest.fn(); return store; } describe('ModalTransactionCosignature', () => { it('Warning should not be shown for the transaction signed by account from address book', async () => { // arrange const signerAccount = getTestAccount('cosigner1').publicAccount; const aggregateTransaction = createAggregateBondedTransaction(signerAccount, currentAccount); const addressBook = new AddressBook([ { id: '0', name: 'Good One', address: signerAccount.address.plain(), }, ]); const store = createStore(aggregateTransaction, TransactionGroupEnum.Partial, addressBook); const wrapper = shallowMount<ModalTransactionCosignatureTs>(ModalTransactionCosignature, { localVue, i18n, store, router, }); // act await wrapper.setProps({ transactionHash }); await new Promise(process.nextTick); const showWarningForm = wrapper.vm.showWarningForm; const showFormSign = wrapper.vm.showFormSign; // assert expect(showWarningForm).toBe(false); expect(showFormSign).toBe(true); wrapper.destroy(); }); it('Warning should be shown for the transaction signed by unknown account', async () => { // arrange const signerAccount = getTestAccount('cosigner1').publicAccount; const aggregateTransaction = createAggregateBondedTransaction(signerAccount, currentAccount); const addressBook = new AddressBook([]); const store = createStore(aggregateTransaction, TransactionGroupEnum.Partial, addressBook); const wrapper = shallowMount<ModalTransactionCosignatureTs>(ModalTransactionCosignature, { localVue, i18n, store, router, }); // act await wrapper.setProps({ transactionHash }); await new Promise(process.nextTick); const showWarningForm = wrapper.vm.showWarningForm; const showFormUnkownAddressOptions = wrapper.vm.showFormUnkownAddressOptions; const showFormUnkownAddressRejected = wrapper.vm.showFormUnkownAddressRejected; const showFormUnkownAddressAccepted = wrapper.vm.showFormUnkownAddressAccepted; const showFormSign = wrapper.vm.showFormSign; const showFormBlacklistedAddress = wrapper.vm.showFormBlacklistedAddress; // assert expect(showWarningForm).toBe(true); expect(showFormUnkownAddressOptions).toBe(true); expect(showFormUnkownAddressRejected).toBe(false); expect(showFormUnkownAddressAccepted).toBe(false); expect(showFormSign).toBe(false); expect(showFormBlacklistedAddress).toBe(false); wrapper.destroy(); }); it('Warning should be shown for the transaction signed by blocked account from address book', async () => { // arrange const signerAccount = getTestAccount('cosigner1').publicAccount; const aggregateTransaction = createAggregateBondedTransaction(signerAccount, currentAccount); const addressBook = new AddressBook([ { id: '0', name: '<NAME>', address: signerAccount.address.plain(), isBlackListed: true, }, ]); const store = createStore(aggregateTransaction, TransactionGroupEnum.Partial, addressBook); const wrapper = shallowMount<ModalTransactionCosignatureTs>(ModalTransactionCosignature, { localVue, i18n, store, router, }); // act await wrapper.setProps({ transactionHash }); await new Promise(process.nextTick); const showWarningForm = wrapper.vm.showWarningForm; const showFormUnkownAddressOptions = wrapper.vm.showFormUnkownAddressOptions; const showFormUnkownAddressRejected = wrapper.vm.showFormUnkownAddressRejected; const showFormUnkownAddressAccepted = wrapper.vm.showFormUnkownAddressAccepted; const showFormSign = wrapper.vm.showFormSign; const showFormBlacklistedAddress = wrapper.vm.showFormBlacklistedAddress; // assert expect(showWarningForm).toBe(true); expect(showFormUnkownAddressOptions).toBe(false); expect(showFormUnkownAddressRejected).toBe(false); expect(showFormUnkownAddressAccepted).toBe(false); expect(showFormSign).toBe(false); expect(showFormBlacklistedAddress).toBe(true); wrapper.destroy(); }); });
/** * Attempt to do a cleaning pass. This will only actually clean if it's * worth doing at the moment. (What this means is presently ill-defined * and subject to drastic change). * * \return * true if cleaning was performed, otherwise false. */ bool LogCleaner::clean() { CycleCounter<uint64_t> totalTicks(&perfCounters.cleanTicks); CycleCounter<uint64_t> totalPassTicks; PerfCounters before = perfCounters; scanNewCleanableSegments(); scanForFreeSpace(); SegmentVector segmentsToClean; LiveSegmentEntryHandleVector liveEntries; std::vector<void*> cleanSegmentMemory; if (log->freeListCount() == 0) { if (!setUpEmergencyCleaningPass(liveEntries, cleanSegmentMemory, segmentsToClean)) { perfCounters = before; perfCounters.failedNormalPasses++; perfCounters.failedNormalPassTicks += totalTicks.stop(); return false; } LOG(WARNING, "Starting emergency cleaning pass (%zd entries in %zd " "segments using %zd clean segments)", liveEntries.size(), cleanSegmentMemory.size(), segmentsToClean.size()); perfCounters.cleaningPasses++; perfCounters.emergencyCleaningPasses++; } else { if (!setUpNormalCleaningPass(liveEntries, cleanSegmentMemory, segmentsToClean)) { perfCounters = before; perfCounters.failedEmergencyPasses++; perfCounters.failedEmergencyPassTicks += totalTicks.stop(); return false; } perfCounters.cleaningPasses++; } moveLiveData(liveEntries, cleanSegmentMemory, segmentsToClean); perfCounters.segmentsCleaned += segmentsToClean.size(); CycleCounter<uint64_t> logTicks(&perfCounters.cleaningCompleteTicks); log->cleaningComplete(segmentsToClean, cleanSegmentMemory); logTicks.stop(); totalTicks.stop(); perfCounters.cleaningPassTicks += totalPassTicks.stop(); dumpCleaningPassStats(before); return true; }
/** * Loads and reencrypts all account settings that are not using the latest encryption settings. This can be useful * if switching from JKS to KMS, or if a newer version of a key has been generated but existing accounts secrets * are using an older version of the key. * * @return number of accounts refreshed */ @RequestMapping( path = SLASH_ENCRYPTION + "/refresh", method = RequestMethod.POST, produces = {TEXT_PLAIN_VALUE, APPLICATION_JSON_VALUE, MediaTypes.PROBLEM_VALUE} ) public String refreshEncryption() { long accountUpdateCount = accountManager.getAccounts().stream() .map( accountSettings -> accountManager.updateAccount(accountSettings.accountId(), accountSettings) ) .collect(Collectors.toList()) .size(); return "" + accountUpdateCount; }
<reponame>dragos-atanasoae/nest-rest-api export default { mongoURI: 'mongodb+srv://test:[email protected]/myFirstDatabase?retryWrites=true&w=majority' }
<filename>ACEs/aces-consume-3rdparty-api/src/adaptiveCardExtensions/consumeThirdPartyAce/cardView/CardView.ts import { BasePrimaryTextCardView, IPrimaryTextCardParameters, IExternalLinkCardAction, IQuickViewCardAction } from '@microsoft/sp-adaptive-card-extension-base'; import * as strings from 'ConsumeThirdPartyAceAdaptiveCardExtensionStrings'; import { IConsumeThirdPartyAceAdaptiveCardExtensionProps, IConsumeThirdPartyAceAdaptiveCardExtensionState } from '../ConsumeThirdPartyAceAdaptiveCardExtension'; export class CardView extends BasePrimaryTextCardView<IConsumeThirdPartyAceAdaptiveCardExtensionProps, IConsumeThirdPartyAceAdaptiveCardExtensionState> { public get data(): IPrimaryTextCardParameters { return { primaryText: this.state.symbol, description: `${this.state.trend == "Up" ? "▲" : "▼"} ${this.state.quote} USD` }; } public get onCardSelection(): IQuickViewCardAction | IExternalLinkCardAction | undefined { return { type: 'ExternalLink', parameters: { target: `https://finance.yahoo.com/quote/${this.state.symbol}` } }; } }
/** * @brief Compare this delegate to a static function * @param fn * @return */ bool EqualStatic(TFunction fn) const { #ifdef __DEBUG__ if (data_.pointer.function == fn) { assert((nullptr == data_.object) && (nullptr == data_.method_stub)); return true; } return false; #else return data_.pointer.function == fn; #endif }
def apply_data_augmentation_to_experiences(experiences: List, env_ids: List[int], data_augmnentation_fn: Callable) -> List: augmented_data, augmented_env_ids = [], [] for (o, a, r, succ_o, done, extra_info), env_i in zip(experiences, env_ids): augmented_exps = data_augmnentation_fn(o, a, r, succ_o, done, extra_info) for new_exp in augmented_exps: augmented_data += [new_exp] augmented_env_ids += [env_i] return (augmented_data + experiences, augmented_env_ids + env_ids)
def CreateTarget(self, target): self._Call('CreateTarget', target.__class__) self._RegisterClassMethods(target)
package database const ( // PrefixPeer defines the prefix of the peer db. PrefixPeer byte = iota // PrefixHealth defines the prefix of the health db. PrefixHealth // PrefixTangle defines the storage prefix for the tangle. PrefixTangle // PrefixMarkers defines the storage prefix for the markers used to optimize structural checks in the tangle. PrefixMarkers // PrefixLedgerState defines the storage prefix for the ledgerstate package. PrefixLedgerState // PrefixMana defines the storage prefix for the mana package. PrefixMana // PrefixEpochs defines the storage prefix for the epochs package. PrefixEpochs )
CHAPTER 3. Synthesis of Organic Thermoelectric Materials Thermoelectric material, one of the new energy materials, is regarded as one of the most important energy-saving materials, which can directly achieve the interconversion between heat and electricity. Since its discovery and wide application, organic thermoelectric materials have attracted wide attention over the past several decades. The applications of organic thermoelectric materials have shown numerous advantages such as low-cost fabrication, facile processability, light weight, and flexibility. In particular, the past several years have witnessed remarkable progress in organic thermoelectric materials and devices. In this chapter, we will focus on various conducting polymers, such as polyacetylene (PA), polyaniline (PANi), polypyrrole (PPy), polythiophene (PTh), poly(3,4-ethylenedioxythiophene) (PEDOT), polycarbazoles (PCz), polyphenylenevinylene (PPV), and their derivatives, as well as D–A type polymers with a low bandgap, metal–organic coordination polymers and some semiconductors based on small molecules, which have been developed and investigated on thermoelectric performance. Various strategies for the synthesis of these organic thermoelectric materials are discussed in detail and their thermoelectric properties are summarized. Prospects and suggestions with respect to future research and development are also concluded with the authors' outlook.
/// <summary> /// Appends the given element value to the end of the container. /// 1) The new element is initialized as a copy of value. /// 2) value is moved into the new element. /// /// If the new size() is greater than capacity() then all iterators and /// references (including the past-the-end iterator) are invalidated. /// Otherwise only the past-the-end iterator is invalidated. /// </summary> void push_back(const_reference value) { if (m_size == m_capacity) { reserve(m_capacity * grow_factor + 1); } LUA_ALLOC_IF_CONSTEXPR(LUA_ALLOC_IS_TRIVIAL(T)) { m_data[m_size] = value; } else { new (m_data + m_size) T(value); }
int Solution::minimize(const vector<int> &A, const vector<int> &B, const vector<int> &C) { int ans = INT_MAX; int i = 0; int j = 0; int k = 0; int m = A.size(); int n = B.size(); int o = C.size(); while(i<m && j<n && k<o){ int a = A[i]; int b = B[j]; int c = C[k]; int smallAns = max(a, max(b,c)) - min(a, min(b,c)); ans = min(smallAns, ans); if(A[i] <= B[j] && A[i] <= C[k]){ i++; } else if (B[j] <= C[k] && B[j] <= A[i]){ j++; } else { k++; } } return ans; }
Religion How a decades long fight between Christian factions came to an end. For half a century now, Kerala has been witnessing a fight between two factions of Malankara Christians, in the Kerala Malankara Orthodox Church and Jacobite Syrian Christian church. Finally, the battle seems to have concluded, thanks to a Supreme Court Order on July 3. And now, the Jacobite Syrian church of Kerala cannot be a part of the Malankara group any longer: They will either have to become an independent church, or disband and join the Orthodox church. History To understand the fight, we need to go back to the year 1599, when a diocese council meet called the Synod of Diamper was held at Udayamperoor in Ernakulam district. The Synod laid down rules and regulations for the Saint Thomas Christians of the Malabar Coast (Kerala) and formally united them with the Catholic Church. However, the orthodox Malankara Christians separated from the other Christian churches of Kerala that came under the Pope in Rome. The group declared that they would following Patriarch of Antioch, instead of the Pope in Rome. By 1910, the Malankaras split again, and two more factions were formed: One group supported the Patriarch of Antioch, and were called the Bava Kakshi (now the Jacobite Syrian church), and the second faction supported their own Bishop based in Kottayam, and they were called the Methran Kakshi (the Kerala Malankara Orthodox church). That was the real start of the battle between the two factions, but until 1934, the conflict was largely peaceful. The crucial 1934 agreement In 1934, the two factions temporarily came together to elect a bishop, Baselious Geevarghese Catholica, in Kottayam. The election followed an agreement. “That was actually a wise agreement prepared by the Orthodox Christians, who did not want to come under the Patriarch of Antioch anymore. They believed that the power should rest with their bishop in Kottayam, but they wisely added that they will continue to be ‘in support of’ the Patriarch of Antioch,” says Jins Nalleparampan, Joint Convenor at Christian Helpline, an organisation for the welfare of Christians. “The support in no way meant that the Malankaras were under the Patriarch of Antioch, or that the Patriarch had temporal authority over the church in Kerala. And somehow, the Jacobites who supported the Patriarch of Antioch signed the agreement back then,” Jins explains. Kolencherry Church The 1974 split In 1970, the merged factions peacefully elected a Bishop together. But after 1970, things turned sour as the Patriarch of Antioch started involving himself in the daily affairs of the Church in Kerala,” Jins says. In 1974, he anointed three bishops in Kerala himself, and this triggered off another round of conflict. “This created a huge issue in Kerala, and the two factions fought each other on the streets. They started capturing churches which belonged to both of them for all those centuries,” Jins says. The case reaches court In 1995 the case reached Supreme Court, and the court ruled that the 1934 agreement will stand - which was in favour of the Orthodox church. In 2002 the faction which supported the Patriarch of Antioch gathered together in Puthen Cruz of Ernakulam district and named themselves Jacobite Syrian Christians, and also formed a manifesto for themselves. In many churches owned by the group, largescale violence occurred. The two factions fought for authority, with the Orthodox church being headquartered at Devalokam in Kottayam, and the Jacobite church headquartered in Puthen Cruz. “The battle continued for years; protests took place outside the churches even when prayers were going on. Many of the churches were closed down. Kolencherry church was closed for years. Whenever the Orthodox group tried to open it, the Jacobites created issues. Even when particular mass timings were given for both factions separately, it did not work out,” Jins recounts. The latest verdict Finally the issue reached the Supreme Court once again. And once again, the court ruled that the 1934 agreement will hold. The bench consisting Justice Arun Misra and Justice Amitava Roy, ruled that in this issue, only the 1934 agreement will be considered, and that the 2002 manifesto made by Jacobites was not legal. SC mentioned that the 1934 agreement will be applicable to all the parishes and the diocese. So as per the 1934 rule, the complete power rests in the hands of the Orthodox faction and their bishops. Though the case was regarding the churches of Kolecherry, Mannathur and Vaarikkoli, this ruling would be effective for all the Jacobite/Orthodox churches in Kerala. So, in that case, the Jacobite Syrian Church cannot practically remain separate. “Technically, Jacobites cannot exist in the Malankara church, although they can remain an independent church like the Pentecost church. But they can’t remain with the Malankara group. The other option is for all the Jacobite priests and other leaders to join the Orthodox church,” Jins says. However, Jacobite groups have not yet decided whether to join the Orthodox church, or to build new churches. They have informed that they will once again approach the SC seeking clarity in its order. However, it will not affect the believers, as both the factions follow the same religious rites of worship, and their churches will continue to organise prayers as usual. Edited by Ragamalika Karthikeyan
/** * PyTorch Java API (version 1.8.1) does not provide a way to set threads directly. Intra-parallelism can only be * controlled by the environment variable OMP_NUM_THREADS. However, in Alink/Flink job, it is difficult to set * environment variables from outside, and the hack way to set inside Java process cannot work. Therefore, PyTorch * inference has to be started in a separated process, and config its environment variables through {@link * ProcessBuilder}. */ public class TorchJavaInferenceRunner implements Closeable { private static final Logger LOG = LoggerFactory.getLogger(TorchJavaInferenceRunner.class); private final NodeClient nodeClient; private final MLContext mlContext; private final TorchJavaPredictor predictor; private final ListSerializer listSerializer; private final transient DataExchange <byte[], byte[]> dataExchange; TorchJavaInferenceRunner(String javaIp, int javaPort, String modelPath, Class <?>[] outputTypeClasses) throws MLException { nodeClient = new NodeClient(javaIp, javaPort); ContextResponse response = nodeClient.getMLContext(); Preconditions.checkState(response.getCode() == RpcCode.OK.ordinal(), "Failed to get MLContext"); mlContext = MLContext.fromPB(response.getContext()); listSerializer = new ListSerializer(); predictor = new TorchJavaPredictor(modelPath, outputTypeClasses); predictor.open(); dataExchange = new DataExchange <>(mlContext); } @Override public void close() throws IOException { if (predictor != null) { predictor.close(); } if (nodeClient != null) { nodeClient.close(); } if (mlContext != null) { mlContext.close(); } } public void run() throws IOException { while (true) { byte[] bytes; try { bytes = dataExchange.read(true); } catch (EOFException e) { break; } if (null == bytes) { break; } List <?> inputs = listSerializer.deserialize(bytes); List <?> outputs = predictor.predict(inputs); bytes = listSerializer.serialize(outputs); dataExchange.write(bytes); } } // args should be: ServerIP:ServerPort modelPath InputTypes InputShapes public static void main(String[] args) { LOG.info("args are {}", String.join("|", args)); System.out.println("args are " + String.join("|", args)); LOG.info("OMP_NUM_THREADS is {}", System.getenv("OMP_NUM_THREADS")); System.out.println("OMP_NUM_THREADS is " + System.getenv("OMP_NUM_THREADS")); String ip = args[0].split(":")[0]; int port = Integer.parseInt(args[0].split(":")[1]); String modelPath = args[1]; Class <?>[] outputTypeClasses = JsonConverter.fromJson(args[2], Class[].class); try { TorchJavaInferenceRunner runner = new TorchJavaInferenceRunner( ip, port, modelPath, outputTypeClasses); runner.run(); runner.close(); } catch (Exception e) { e.printStackTrace(); System.exit(1); } System.exit(0); } }
#include <cstdlib> #include <iostream> using namespace std; //用户自定义字面量 typedef unsigned char uint8; struct RGBA { uint8 r; uint8 g; uint8 b; uint8 a; RGBA(uint8 R, uint8 G, uint8 B, uint8 A = 0) : r(R), g(G), b(B), a(A) {} }; //"r255 g240 b155"_C //操作符"" 与_C 自定义后缀之间必须有空格,后缀建议以下划线开始。 RGBA operator "" _C(const char* col, size_t n) { // 一个长度为n的字符串col const char* p = col; const char* end = col + n; const char* r, *g, *b, *a; r = g = b = a = nullptr; for (; p != end; ++p) { if (*p == 'r') r = p; else if (*p == 'g') g = p; else if (*p == 'b') b = p; else if (*p == 'a') a = p; } if ((r == nullptr) || (g == nullptr) || (b == nullptr)) throw; else if (a == nullptr) return RGBA(atoi(r + 1), atoi(g + 1), atoi(b + 1)); else return RGBA(atoi(r + 1), atoi(g + 1), atoi(b + 1), atoi(b + 1)); } std::ostream & operator << (std::ostream & out, RGBA & col) { return out << "r: " << (int)col.r << ", g: " << (int)col.g << ", b: " << (int)col.b << ", a: " << (int)col.a << endl; } void blend(RGBA && col1, RGBA && col2) { // Some color blending action cout << "blend " << endl << col1 << col2 << endl; } int main() { blend("r255 g240 b155"_C, "r15 g255 b10 a7"_C); cout << endl; const char* r2 = "r123 g456 b789"; cout <<"r2:"<< atoi(r2 + 1) << endl; struct RGBA ab(11, 22, 33); cout <<"ab:"<< ab <<endl; }
def generate_lattice_0D(ltype, volume, area=None, minvec=tol_m, max_ratio=10.0, maxattempts = 100, **kwargs): if ltype == "spherical": a = b = c = np.cbrt((3 * volume)/(4 * pi)) alpha = beta = gamma = 0.5 * pi if a < minvec: printx("Could not generate spherical lattice; volume too small compared to minvec", priority=2) return return np.array([a, b, c, alpha, beta, gamma]) if ltype == "ellipsoidal": alpha, beta, gamma = pi/2, pi/2, pi/2 x = (4./3.)*pi for numattempts in range(maxattempts): vec = random_vector() c = vec[2]/(vec[0]*vec[1])*np.cbrt(volume/x) a = b = math.sqrt((volume/x)/c) if (a / c < 10.) and (c / a < 10.): return np.array([a, b, c, alpha, beta, gamma]) return
def write_user(user_status: UserStatus, user: str): symbol = lambda curr_symbol, color: click.style(curr_symbol, bold=True, fg=color) color = "" if user_status == UserStatus.ADD: color = "green" elif user_status == UserStatus.LEAVE: color = "blue" else: color = "red" click.echo(f' {symbol(user_status.value, color)} {user}')
<gh_stars>0 import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { Fabric8WitModule, SpaceNameModule } from 'ngx-fabric8-wit'; import { SpaceTemplateService } from '../../shared/space-template.service'; import { ModalModule } from 'ngx-bootstrap/modal'; import { CodebasesService } from '../create/codebases/services/codebases.service'; import { AutofocusModule } from './../../shared/autofocus.directive'; import { AddSpaceOverlayComponent } from './add-space-overlay.component'; @NgModule({ imports: [ AutofocusModule, CommonModule, FormsModule, Fabric8WitModule, ModalModule, SpaceNameModule ], declarations: [ AddSpaceOverlayComponent ], exports: [ AddSpaceOverlayComponent ], providers: [ CodebasesService, SpaceTemplateService ] }) export class AddSpaceOverlayModule { }
/** * Created by Akexorcist on 6/20/2016 AD. */ public class BaseActivity extends AppCompatActivity { protected View getRootView() { return findViewById(android.R.id.content); } protected void showBottomMessage(String message) { Snackbar.make(getRootView(), message, Snackbar.LENGTH_SHORT).show(); } protected void showBottomMessage(String message, int durationType) { Snackbar.make(getRootView(), message, durationType).show(); } protected void showBottomMessage(int strResId) { Snackbar.make(getRootView(), strResId, Snackbar.LENGTH_SHORT).show(); } protected void showBottomMessage(int strResId, int durationType) { Snackbar.make(getRootView(), strResId, durationType).show(); } protected void showPopupMessage(String message) { Toast.makeText(this, message, Toast.LENGTH_SHORT).show(); } protected void showPopupMessage(int strResId) { Toast.makeText(this, strResId, Toast.LENGTH_SHORT).show(); } protected void openActivity(Class<?> cls) { startActivity(new Intent(this, cls)); finish(); } protected void hideKeyboard() { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(getRootView().getWindowToken(), 0); } }
/** * Created by gayathria on 15/12/14. */ public class OLESIP2FeePaidResponse extends OLESIP2Response { public OLESIP2FeePaidResponse() { code = OLESIP2Constants.FEE_PAID_RESPONSE; } public String getFeePaidResponse(String message, OLESIP2FeePaidRequestParser sip2FeePaidRequestParser) { StringBuilder sip2FeePaidResponseBuilder = new StringBuilder(); sip2FeePaidResponseBuilder.append(code); if (message.equalsIgnoreCase(OLESIP2Constants.FEE_PAID)) { sip2FeePaidResponseBuilder.append(OLESIP2Util.bool2Char(true)); } else { sip2FeePaidResponseBuilder.append(OLESIP2Util.bool2Char(false)); } sip2FeePaidResponseBuilder.append(MessageUtil.getSipDateTime()); sip2FeePaidResponseBuilder.append(OLESIP2Constants.INSTITUTION_ID_CODE); sip2FeePaidResponseBuilder.append(sip2FeePaidRequestParser.getInstitutionId() != null ? sip2FeePaidRequestParser.getInstitutionId() : ""); sip2FeePaidResponseBuilder.append(OLESIP2Constants.SPLIT+ OLESIP2Constants.PATRON_IDENTIFIER_CODE); sip2FeePaidResponseBuilder.append(sip2FeePaidRequestParser.getPatronIdentifier()); if (StringUtils.isNotBlank(sip2FeePaidRequestParser.getTransactionId())) { sip2FeePaidResponseBuilder.append(OLESIP2Constants.SPLIT+ OLESIP2Constants.TRANSACTION_ID_CODE); sip2FeePaidResponseBuilder.append(sip2FeePaidRequestParser.getTransactionId()); } if (StringUtils.isNotBlank(message)) { sip2FeePaidResponseBuilder.append(OLESIP2Constants.SPLIT+ OLESIP2Constants.SCREEN_MSG_CODE); sip2FeePaidResponseBuilder.append(message); } else { sip2FeePaidResponseBuilder.append(OLESIP2Constants.SPLIT+ OLESIP2Constants.SCREEN_MSG_CODE); sip2FeePaidResponseBuilder.append(OLESIP2Constants.SERVICE_ERROR); } if (StringUtils.isNotBlank(sip2FeePaidRequestParser.getSequenceNum())) { sip2FeePaidResponseBuilder.append(OLESIP2Constants.SPLIT+ OLESIP2Constants.SEQUENCE_NUM_CODE); sip2FeePaidResponseBuilder.append(sip2FeePaidRequestParser.getSequenceNum()); sip2FeePaidResponseBuilder.append(MessageUtil.computeChecksum(sip2FeePaidResponseBuilder.toString())); } return sip2FeePaidResponseBuilder.toString() + '\r'; } }
// If the tamper alarm trips, update the attribute to show that alarm is active void emberAfPluginTamperSwitchTamperAlarmCallback(void) { emberAfAppPrintln("Tamper detected!"); changeTamperStatus(EMBER_SECURITY_SENSOR_STATUS_TAMPER); }
The Belleville Bulls have been sold and are on their way to Hamilton. Hamilton Bulldogs Owner Michael Andlauer announced the official sale of the American Hockey League franchise to the National Hockey League's Montreal Canadiens. Andlauer also announced the purchase of the Ontario Hockey League's Belleville Bulls who will be relocated to Hamilton and renamed the Bulldogs for the start of the 2015-16 season. Ontario Hockey League's board of governors could meet as early as this afternoon to approve on the sale. The news, which broke Thursday afternoon, comes on the same day that the AHL's board of governors was expected to vote on another move that would see the Montreal Canadiens' farm team leave Hamilton for the Newfoundland capital. The Winnipeg Jets are reportedly relocating their affiliate, the St. John's IceCaps, to Manitoba for the start of the 2015-16 campaign. To fill the empty space, the Habs would send their minor leaguers to The Rock — at least until a new arena in Laval, Que. is completed in 2017. This is the latest in a lengthy saga stemming from the fact that the new 10,000 seat rink will be managed by the Canadiens' marketing arm. In recent months, a number of Quebec politicians have said on the record that Habs' owner Geoff Molson has told them a professional hockey team will play out of the arena. He's never committed to what team, but it's long believed he'll bring his prospects closer to the parent club when construction is done. If the Canadiens' farm team moves to St. John's for two years before moving to Laval, it would buy them the time they need to finish the arena and buy the folks in Newfoundland time to find a permanent tenant. At the same time, it was widely believed that an OHL team would land at FirstOntario Centre — although the rumor mill suggested the Erie Otters were the target. The Bulls, however, with their aging arena and dwindling attendance, also make sense.
#include "classWithSingleInstanceDependency.hpp" #include <iostream> #include "singleton/get.hpp" #include "Tags.hpp" void ClassWithSingleInstanceDependency::run() { std::cout << "The generated random string is: " << singleton::get<RandomStringGenaratorTag>().getString() << std::endl; }
/*! FUNCTION: prep_pipeline() * SYNOPSIS: Helper for overarching MMORE-SEQS pipeline. * Prepares files for use in the MMORE-SEQS Pipeline */ STATUS_FLAG mmoreseqs_prep_pipeline(WORKER* worker) { printf("=== MMORESEQS: PREP PIPELINE ===\n"); ARGS* args = worker->args; TASKS* tasks = worker->tasks; SCRIPTRUNNER* runner = worker->runner; STR project_path = ROOT_DIR; STR mmseqs_path = MMSEQS_BIN; STR hmmer_path = HMMER_BIN; STR mmore_path = MMORE_BIN; STR script_relpath = "/scripts/workflows/mmoreseqs-prep-prepare.sh"; STR script_path = STR_Concat(project_path, script_relpath); printf_vhi("# SCRIPT_LOCATION: %s\n\n", script_path); STR str = NULL; char buffer[256]; SCRIPTRUNNER_SetScript(runner, script_path); SCRIPTRUNNER_Add_Script_Argument(runner, NULL, args->target_prep); SCRIPTRUNNER_Add_Script_Argument(runner, NULL, args->query_prep); SCRIPTRUNNER_Add_Script_Argument(runner, NULL, args->prep_folderpath); SCRIPTRUNNER_Add_Script_Argument(runner, NULL, FILETYPE_NAME_Get(args->target_prep_type)); SCRIPTRUNNER_Add_Script_Argument(runner, NULL, FILETYPE_NAME_Get(args->query_prep_type)); str = STR_Concat("TARGET_PREP_", FILETYPE_NAME_Get(args->target_prep_type)); SCRIPTRUNNER_Add_Env_Variable(runner, str, args->target_prep); str = STR_Concat("QUERY_PREP_", FILETYPE_NAME_Get(args->query_prep_type)); SCRIPTRUNNER_Add_Env_Variable(runner, str, args->query_prep); SCRIPTRUNNER_Add_Env_Variable(runner, "ROOT_DIR", project_path); SCRIPTRUNNER_Add_Env_Variable(runner, "MMORE_DIR", mmore_path); SCRIPTRUNNER_Add_Env_Variable(runner, "HMMER_DIR", hmmer_path); SCRIPTRUNNER_Add_Env_Variable(runner, "MMSEQS_DIR", mmseqs_path); SCRIPTRUNNER_Add_Env_Variable(runner, "USE_LOCAL_TOOLS", INT_ToString(args->is_use_local_tools, buffer)); WORK_load_script_env_args(worker); SCRIPTRUNNER_Add_Env_Variable(runner, "VERBOSE", INT_ToString(args->verbose_level, buffer)); SCRIPTRUNNER_Execute(runner); fprintf(stderr, "# MMORE PIPELINE FAILED.\n"); SCRIPTRUNNER_Dump(runner, stderr); STR_Destroy(script_path); STR_Destroy(str); ERRORCHECK_exit(EXIT_FAILURE); }
<reponame>OpenHFT/Java-Posix<gh_stars>1-10 package net.openhft.posix.internal.jna; import com.sun.jna.Pointer; public class JNAPosixInterface { public native long mmap(Pointer addr, long length, int prot, int flags, int fd, long offset); }
// Copyright (c) 2016-2021 <NAME> and Dr. <NAME> // Please see LICENSE for license or visit https://github.com/taocpp/taopq/ #include <cassert> #include <cctype> #include <cstring> #include <stdexcept> #include <string_view> #include <libpq-fe.h> #include <tao/pq/connection.hpp> namespace tao::pq::internal { namespace { [[nodiscard]] constexpr auto is_identifier( const std::string_view value ) noexcept -> bool { return !value.empty() && ( value.find_first_not_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" ) == std::string_view::npos ) && ( std::isdigit( value[ 0 ] ) == 0 ); } } // namespace auto connection::error_message() const -> std::string { const char* message = PQerrorMessage( m_pgconn.get() ); assert( message ); const std::size_t size = std::strlen( message ); assert( size > 0 ); assert( message[ size - 1 ] == '\n' ); return std::string( message, size - 1 ); } auto connection::escape_identifier( const std::string_view identifier ) const -> std::string { const std::unique_ptr< char, decltype( &PQfreemem ) > buffer( PQescapeIdentifier( m_pgconn.get(), identifier.data(), identifier.size() ), &PQfreemem ); if( !buffer ) { throw std::runtime_error( "PQescapeIdentifier failed: " + error_message() ); // LCOV_EXCL_LINE } return buffer.get(); } void connection::check_prepared_name( const std::string_view name ) { if( !is_identifier( name ) ) { throw std::invalid_argument( "invalid prepared statement name" ); } } auto connection::is_prepared( const std::string_view name ) const noexcept -> bool { return m_prepared_statements.find( name ) != m_prepared_statements.end(); } auto connection::execute_params( const char* statement, const int n_params, const Oid types[], const char* const values[], const int lengths[], const int formats[] ) -> result { if( is_prepared( statement ) ) { return result( PQexecPrepared( m_pgconn.get(), statement, n_params, values, lengths, formats, 0 ) ); } return result( PQexecParams( m_pgconn.get(), statement, n_params, types, values, lengths, formats, 0 ) ); } connection::connection( const std::string& connection_info ) : m_pgconn( PQconnectdb( connection_info.c_str() ), deleter() ), m_current_transaction( nullptr ) { if( !is_open() ) { throw std::runtime_error( "connection failed: " + error_message() ); } const auto protocol_version = PQprotocolVersion( m_pgconn.get() ); if( protocol_version < 3 ) { throw std::runtime_error( "protocol version 3 required" ); // LCOV_EXCL_LINE } } auto connection::is_open() const noexcept -> bool { return PQstatus( m_pgconn.get() ) == CONNECTION_OK; } void connection::prepare( const std::string& name, const std::string& statement ) { check_prepared_name( name ); result( PQprepare( m_pgconn.get(), name.c_str(), statement.c_str(), 0, nullptr ) ); // NOLINT(bugprone-unused-raii) m_prepared_statements.insert( name ); } void connection::deallocate( const std::string& name ) { check_prepared_name( name ); if( !is_prepared( name ) ) { throw std::runtime_error( "prepared statement name not found: " + name ); } (void)execute_params( ( "DEALLOCATE " + escape_identifier( name ) ).c_str(), 0, nullptr, nullptr, nullptr, nullptr ); m_prepared_statements.erase( name ); } } // namespace tao::pq::internal
#include <Arduino.h> #include "gravity_soil_moisture_sensor.h" /** * @brief Function to initialize the Gravity Soil Moisture Sensor * @param analog_pin : GPIO analog pin * @return true if a valid value is available. false otherwise */ bool GravitySoilMoistureSensor::Setup(const uint8_t analog_pin) { _analog_pin = analog_pin; return Read() > 0; } /** * @brief Function to read the soil moisture value * @param samples : Number of samples to take. Defaults to 128 * @param delay_ms : Delay in milliseconds between each sample reading. Defaults to 1 * @return The moisture value. A valid reading is between 1 and 3500 */ uint16_t GravitySoilMoistureSensor::Read(uint16_t samples, uint16_t delay_ms) { uint64_t accumulator = 0; for (uint16_t i = 0; i < samples; i++) { delay(delay_ms); accumulator += analogRead(_analog_pin); } // the sensor gives the dryness measure // substract it from the max value so that we get the moisture measure uint16_t value = 4095 - accumulator / samples; // use 3500 instead of 4095 because there can be noise in the wire if (value =< 3500) { return value; } else { return 0; } }
def _getSessionQuery(self, request): q = Session.query() inequality_filter, filters = self._formatFilters(request.filters, SESSION_FIELDS) if not inequality_filter: q = q.order(Session.name) else: q = q.order(ndb.GenericProperty(inequality_filter)) q = q.order(Session.name) for filtr in filters: if filtr["field"] == "startTime": testTime = datetime.strptime(filtr["value"], "%H:%M").time() if filtr["operator"] == '=': q = q.filter(Session.startTime == testTime) elif filtr["operator"] == '>=': q = q.filter(Session.startTime >= testTime) elif filtr["operator"] == '<=': q = q.filter( ndb.AND(Session.startTime <= testTime), (Session.startTime >= datetime.strptime("00:00", "%H:%M").time())) else: raise endpoints.BadRequestException("Unsupported filter for time.") else: formatted_query = ndb.query.FilterNode(filtr["field"], filtr["operator"], filtr["value"]) q = q.filter(formatted_query) return q
Humans are terrible at driving. The US Department of Transport estimates that 94% of crashes are due to the driver. We drive too fast. We get distracted. We make poor decisions. If history is anything to go by, more than 1,000 people are likely to die on Australian roads in the next year. Each death is a tragedy for the families and friends of those killed. And it’s also a big drain on our economy. Each fatal accident costs around $2 million. The total cost on our economy from all car accidents is more than $17 billion per year. Autonomous cars are going to be far better drivers. There is therefore a moral imperative to get them onto our roads as soon as possible. They will also bring many other benefits such as reducing congestion, lowering transport costs and bringing personal mobility to the elderly, disabled and young. Tesla, more than any car company, has been pushing the field. Its technology is impressive and improving rapidly. Accidents Accidents are, however, happening at an increasing rate as autonomous cars become more common. On Valentine’s Day this year, one of Google’s autonomous cars caused its first crash when it pulled out in front of a bus. Fortunately, no one was hurt. Just three months later, on May 7, a Tesla S driving autonomously on a 65mph (about 105kmh) limit road drove into a truck turning across the highway. The driver, Joshua Brown, who was sitting in the driving seat of the Tesla was killed. According to reports, he was watching a Harry Potter movie. What actually happened in the lead up to the accident is currently under investigation. Tesla issued a statement, acknowledging the tragic loss, and saying their instructions require drivers who engage the autopilot mode to monitor the road and be ready to take back control at short notice. And last Sunday in the US, a second Tesla car crashed while being used autonomously. No one was injured. But how long before a Tesla car kills an innocent member of the public, a pedestrian or person in another vehicle? Public safety Silicon Valley’s “fail fast” culture may work for Facebook. No one is likely to be seriously hurt when their news feed is messed up. But fail fast is too risky for public safety. Is it responsible for Tesla to release this technology into the wild when serious questions surround its safety? Will the human driver monitor the road adequately? Will a human driver be able to take back control quickly enough? It is not sufficient that the human driver gave consent; the rest of us using the roads have not given our consent. Since human lives are at stake, drug companies do not get to test their new products on the general population. Should car companies be allowed to do so? Tesla plans to put out a blog post to educate Tesla owners on how to use the autonomous features of their cars safely. I doubt this is enough. The US Department of Transportation’s National Highway Traffic Safety Administration (NHTSA) has defined five different levels of autonomous driving, ranging from zero to four (level zero is where the driver remains in control at all times). Should level three autonomy be allowed where a human driver may be required to take back control at any moment? Or should we only allow level four where the system will work safely even if the human driver fails to take back control promptly. Should Tesla be allowed to push updates out without extensive testing? On average, one person dies for every 100 million miles (160 million kilometres) driven. According to Tesla, this was the first fatality in 130 million miles (210 million kilometres) of use of its autopilot software driving autonomously. This would suggest that Tesla’s autonomy is about the level of a human driver. This is probably not good enough to be giving it control. Remember that humans are still having to take over when the driving gets more difficult. I would want autonomous cars to be much safer before we give them control. Safety review Regulatory authorities are waking up to these concerns. StaySafe, the joint standing committee of the NSW parliament focused on road safety, is in the middle of an inquiry into driverless vehicles and road safety. We need to act swiftly to update the rules and the regulatory environment. For instance, none of the legislation introduced to permit driverless cars onto the roads of California, Nevada, South Australia and elsewhere require autonomous cars to be distinguishable from human-driven cars. In my testimony to the StaySafe committee, I argued that we need to put special plates on such cars or even a magenta flashing light. A friend who owns a Tesla told me of a situation they encountered recently where this was needed. The driver of a car in a lane being merged expected his Tesla to speed up or slow down to create a suitable gap. But Tesla’s software is not programmed for courtesy. It continued to drive at a constant speed. My friend had to take back control to prevent a high speed collision. When we started to build aeroplanes 100 years ago, anything went. But we quickly constructed a strong regulatory framework to ensure public safety. We need to build similar safeguards into the emerging industry for driverless cars. Until this has happened, we need to question whether Tesla’s autopilot should be allowed on our roads.
#include "mock_cluster.h" #include <algorithm> #include <cassert> #include <solidarity/utils/logger.h> #include <solidarity/utils/utils.h> worker_t::worker_t(std::shared_ptr<solidarity::raft> t) { _target = t; self_addr = _target->self_addr(); _tread = std::thread([this]() { this->worker(); }); } worker_t::~worker_t() {} void worker_t::stop() { while (!_is_stoped) { _stop_flag = true; _cond.notify_all(); } _tread.join(); } void worker_t::add_task(const message_t &mt) { ENSURE(!self_addr.empty()); ENSURE(mt.from != self_addr); { std::lock_guard l(_tasks_locker); ENSURE(mt.to == self_addr); _tasks.push_back(mt); } _cond.notify_all(); } void worker_t::worker() { try { while (!_stop_flag) { std::vector<message_t> local_copy; { std::unique_lock<std::mutex> ul(_tasks_locker); _cond.wait(ul, [this] { return this->_stop_flag || !this->_tasks.empty(); }); if (_stop_flag) { break; } if (_tasks.empty()) { continue; } local_copy.reserve(_tasks.size()); std::copy(_tasks.begin(), _tasks.end(), std::back_inserter(local_copy)); _tasks.clear(); } for (auto &&v : local_copy) { if (!_is_node_stoped) { _target->recv(v.from, v.m); } } local_copy.clear(); } } catch (std::exception &ex) { solidarity::utils::logging::logger_fatal( "mock_cluster: worker ", _target->self_addr(), " error:", ex.what()); std::exit(1); } _is_stoped = true; } mock_cluster::mock_cluster() {} mock_cluster::~mock_cluster() { solidarity::utils::logging::logger_info("~ mock_cluster "); stop_workers(); } void mock_cluster::update_size() { _size = _cluster.size(); } void mock_cluster::start_workers() { std::lock_guard<std::shared_mutex> l(_cluster_locker); for (auto &kv : _cluster) { _workers[kv.first] = std::shared_ptr<worker_t>(); } } void mock_cluster::stop_workers() { { std::shared_lock l(_cluster_locker); for (auto &v : _workers) { v.second->stop(); } } std::lock_guard<std::shared_mutex> l(_cluster_locker); _workers.clear(); } void mock_cluster::send_to(const solidarity::node_name &from, const solidarity::node_name &to, const solidarity::append_entries &m) { std::shared_lock ul(_cluster_locker); if (auto it = _workers.find(to); it != _workers.end()) { _workers[to]->add_task(message_t{from, to, m}); } } void mock_cluster::send_all(const solidarity::node_name &from, const solidarity::append_entries &m) { std::unordered_map<solidarity::node_name, std::shared_ptr<worker_t>> cp; { std::shared_lock lg(_cluster_locker); ENSURE(!from.empty()); cp.reserve(_cluster.size()); for (const auto &kv : _workers) { if (kv.first != from) { cp.insert(kv); } } } for (const auto &kv : cp) { message_t me{from, kv.first, m}; kv.second->add_task(me); } } void mock_cluster::add_new(const solidarity::node_name &addr, const std::shared_ptr<solidarity::raft> &c) { std::lock_guard<std::shared_mutex> lg(_cluster_locker); if (_workers.find(addr) != _workers.end()) { THROW_EXCEPTION("_workers.find(addr) != _workers.end()"); } _workers[addr] = std::make_shared<worker_t>(c); c->set_cluster(this); _cluster[addr] = c; _size++; } std::vector<std::shared_ptr<solidarity::raft>> mock_cluster::by_filter( std::function<bool(const std::shared_ptr<solidarity::raft>)> pred) { // std::shared_lock lg(_cluster_locker); std::vector<std::shared_ptr<solidarity::raft>> result; result.reserve(_cluster.size()); for (const auto &kv : _cluster) { if (pred(kv.second)) { result.push_back(kv.second); } } return result; } std::vector<std::shared_ptr<solidarity::raft>> mock_cluster::get_all() { return by_filter([](auto) { return true; }); } void mock_cluster::apply(std::function<void(const std::shared_ptr<solidarity::raft>)> f) { std::vector<std::shared_ptr<solidarity::raft>> cp; { std::shared_lock lg(_cluster_locker); cp.resize(_cluster.size()); std::transform(_cluster.cbegin(), _cluster.cend(), cp.begin(), [](auto kv) { return kv.second; }); } for (const auto &v : cp) { f(v); } } void mock_cluster::heartbeat() { apply([](auto n) { return n->heartbeat(); }); } void mock_cluster::print_cluster() { solidarity::utils::logging::logger_info("----------------------------"); apply([](auto n) { solidarity::utils::logging::logger_info("?: ", n->self_addr(), "{", n->kind(), ":", n->term(), "}", " => ", n->get_leader()); }); } void mock_cluster::erase_if( std::function<bool(const std::shared_ptr<solidarity::raft>)> pred) { solidarity::node_name target; std::unordered_map<solidarity::node_name, std::shared_ptr<solidarity::raft>> cp_cluster; { _cluster_locker.lock_shared(); auto it = std::find_if( _cluster.begin(), _cluster.end(), [pred](auto kv) { return pred(kv.second); }); if (it == _cluster.end()) { _cluster_locker.unlock_shared(); return; } target = it->first; _workers[target]->stop(); _cluster_locker.unlock_shared(); std::lock_guard<std::shared_mutex> l(_cluster_locker); _cluster.erase(target); _workers.erase(target); update_size(); cp_cluster.reserve(_cluster.size()); for (auto &kv : _cluster) { cp_cluster.insert(kv); } } if (!target.empty()) { for (auto &kv : cp_cluster) { kv.second->lost_connection_with(target); } } } size_t mock_cluster::size() { return _size; } std::vector<solidarity::node_name> mock_cluster::all_nodes() const { std::shared_lock lg(_cluster_locker); std::vector<solidarity::node_name> result; result.reserve(_cluster.size()); for (const auto &kv : _cluster) { result.push_back(kv.first); } return result; } void mock_cluster::wait_leader_eletion(size_t max_leaders) { while (true) { if (is_leader_election_complete(max_leaders)) { break; } heartbeat(); print_cluster(); } } bool mock_cluster::is_leader_election_complete(size_t max_leaders) { const auto leaders = by_filter(is_leader_pred); if (leaders.size() > max_leaders) { solidarity::utils::logging::logger_fatal("raft error!!!"); print_cluster(); // throw std::logic_error("raft error"); return false; } if (leaders.size() == 1) { auto cur_leader = leaders.front()->self_addr(); auto followers = by_filter([cur_leader](const std::shared_ptr<solidarity::raft> &v) -> bool { auto nkind = v->state().node_kind; return v->get_leader() == cur_leader && (nkind == solidarity::NODE_KIND::LEADER || nkind == solidarity::NODE_KIND::FOLLOWER); }); if (followers.size() == size()) { return true; } } return false; }
<reponame>xrfang/go-webserver package main import ( "flag" "fmt" "net/http" "os" "path/filepath" "time" audit "github.com/xrfang/go-audit" res "github.com/xrfang/go-res" ) func main() { conf := flag.String("conf", "", "configuration file") ver := flag.Bool("version", false, "show version info") init := flag.Bool("init", false, "initialize configuration") flag.Usage = func() { fmt.Printf("WebServer - Go WebServer Template %s\n", verinfo()) fmt.Printf("\nUSAGE: %s OPTIONS\n", filepath.Base(os.Args[0])) fmt.Println("\nOPTIONS") flag.PrintDefaults() } flag.Parse() if *ver { fmt.Println(verinfo()) return } if *init { fmt.Println("TODO: initialize configuration") return } loadConfig(*conf) if !cf.DbgMode { audit.Assert(res.Extract(cf.WebRoot, res.OverwriteIfNewer)) } audit.ExpVars(map[string]interface{}{ "config": cf, "version": _G_REVS + "." + _G_HASH, }) audit.SetLogFile(cf.LogFile) audit.ExpLogs() audit.SetDebugging(cf.DbgMode) setupRoutes() svr := http.Server{ Addr: ":" + cf.Port, ReadTimeout: time.Minute, WriteTimeout: time.Minute, } audit.Assert(svr.ListenAndServe()) }
More details have emerged concerning the 20th anniversary reissue of Nirvana 's ‘Nevermind’ and fans will likely be pleased with the news. The new reissue will be available on Sept. 27 in two formats, offering “deluxe” and “super deluxe” editions of the classic release. The five disc (four CD/one DVD) super deluxe version brings the original remastered album together with the first official release of album producer Butch Vig’s initial mix of ‘Nevermind,’ titled the ‘Devonshire Mixes.’ These mixes were submitted for approval and rejected at the time the album was originally recorded. Eventually, producer Andy Wallace was brought in to mix the version of ‘Nevermind’ that finally made it to public release. The box set also features Vig’s pre-‘Nevermind’ demos, available for the first time, plus rehearsal recordings of songs like ‘Smells Like Teen Spirit,’ ‘Come As You Are’ and ‘On a Plain.’ Live B-sides and a pair of BBC recordings are among the goodies that round out the audio portion of the set, which will also be available for digital download. A 90-page book brings together “visual artifacts” from the ‘Nevermind’ period with lots of rarely seen photos and documents. As if that wasn’t enough, the DVD portion of the set really takes it to the top, presenting a Nirvana show recorded on Halloween in 1991 at the Paramount Theatre in Seattle. Transferred from 16mm film with multi-track audio, the show has been enhanced to 1080p high-definition video and 5.1 surround sound. According to the label, it’s the only known Nirvana concert shot on film. The two CD “deluxe edition” presents an abbreviated version of the set with the remastered album, the B-sides/BBC versions, the ‘Nevermind’ demos and rehearsal recordings. The deluxe edition will also be available on 4 LP 180 gram vinyl. The Paramount show will be available separately as a standalone DVD/Blu-ray release or digital download. The complete track listing for the 20th anniversary ‘Nevermind’ set is expected to be announced in the coming weeks.
<gh_stars>10-100 from pymtl import * from lizard.util.rtl.interface import UseInterface from lizard.util.rtl.method import MethodSpec from lizard.core.rtl.pipeline_splitter import PipelineSplitterInterface, PipelineSplitterControllerInterface, PipelineSplitter from lizard.core.rtl.messages import DispatchMsg, PipelineMsgStatus, OpClass class PipeSelectorController(Model): def __init__(s): UseInterface(s, PipelineSplitterControllerInterface(DispatchMsg(), 5)) @s.combinational def handle_sort(): if s.sort_msg.hdr_status != PipelineMsgStatus.PIPELINE_MSG_STATUS_VALID: s.sort_pipe.v = 0 # CSR pipe elif s.sort_msg.op_class == OpClass.OP_CLASS_CSR or s.sort_msg.op_class == OpClass.OP_CLASS_SYSTEM: s.sort_pipe.v = 0 # CSR pipe elif s.sort_msg.op_class == OpClass.OP_CLASS_ALU: s.sort_pipe.v = 1 # ALU pipe elif s.sort_msg.op_class == OpClass.OP_CLASS_BRANCH or s.sort_msg.op_class == OpClass.OP_CLASS_JUMP: s.sort_pipe.v = 2 # Branch pipe elif s.sort_msg.op_class == OpClass.OP_CLASS_MUL: s.sort_pipe.v = 3 # Mul pipe elif s.sort_msg.op_class == OpClass.OP_CLASS_MEM: s.sort_pipe.v = 4 # Mem data pipe else: s.sort_pipe.v = 0 # Error CSR pipe class PipeSelector(Model): def __init__(s): # the order above (0 for CSR 1 for ALU comes from this array # This is bad UseInterface( s, PipelineSplitterInterface( DispatchMsg(), ['csr', 'alu', 'branch', 'm_pipe', 'mem_data'])) s.require( MethodSpec( 'in_peek', args=None, rets={ 'msg': DispatchMsg(), }, call=False, rdy=True, ), MethodSpec( 'in_take', args=None, rets=None, call=True, rdy=False, ), ) s.splitter = PipelineSplitter(s.interface) s.controller = PipeSelectorController() s.connect_m(s.splitter.sort, s.controller.sort) s.connect_m(s.splitter.in_peek, s.in_peek) s.connect_m(s.splitter.in_take, s.in_take) for client in s.interface.clients: s.connect_m( getattr(s.splitter, '{}_peek'.format(client)), getattr(s, '{}_peek'.format(client))) s.connect_m( getattr(s.splitter, '{}_take'.format(client)), getattr(s, '{}_take'.format(client)))
package net.teamhollow.newlands.init; import com.mojang.serialization.Codec; import net.minecraft.util.Identifier; import net.minecraft.world.gen.trunk.TrunkPlacer; import net.minecraft.world.gen.trunk.TrunkPlacerType; import net.teamhollow.newlands.NewLands; import net.teamhollow.newlands.mixin.TrunkPlacerTypeMixin; import net.teamhollow.newlands.world.gen.trunk.*; public class NLTrunkPlacers { public static final TrunkPlacerType<TropicalPalmTrunkPlacer> TROPICAL_PALM = register("tropical_palm", TropicalPalmTrunkPlacer.CODEC); public NLTrunkPlacers() {} @SuppressWarnings("deprecation") public static <P extends TrunkPlacer> TrunkPlacerType<P> register(String id, Codec<P> codec) { return TrunkPlacerTypeMixin.callRegister(new Identifier(NewLands.MOD_ID, id).toString(), codec); } }
//ListApplicationsWithOutput - list applications on cf with output func (repo *ApplicationRepo) ListApplicationsWithOutput() (output []string, err error) { var apps []plugin_models.GetAppsModel apps, err = repo.conn.GetApps() for _, app := range apps { output = append(output, app.Name) } return }
<gh_stars>10-100 export type Validator = (value: string) => boolean; export const sourceTypeValidator = (value: string) => value !== ''; export const sourceNameValidator = (value: string) => new RegExp('^.').test(value); export const ocpClusterIdValidator = (value: string) => new RegExp('^.').test(value); export const awsS3BucketNameValidator = (value: string) => new RegExp('^[A-Za-z0-9]+[A-Za-z0-9_-]*$').test(value); export const arnValidator = (value: string) => { const arnPrefix = 'arn:aws:'; if (value.length < arnPrefix.length) { return false; } if (value.length === arnPrefix.length) { return value === arnPrefix; } return value.indexOf(arnPrefix) === 0; };
def reset(self, **kwargs): self.env.reset(**kwargs) obs, _, done, _ = self.env.step(1) if done: self.env.reset(**kwargs) obs, _, done, _ = self.env.step(2) if done: self.env.reset(**kwargs) return obs
<reponame>MH15/imp<gh_stars>1-10 package org.imp.jvm.statement; import org.imp.jvm.domain.scope.Scope; import org.imp.jvm.expression.Expression; import org.imp.jvm.types.Type; import org.objectweb.asm.MethodVisitor; public class Return extends Statement { public final Expression expression; public Return(Expression expression) { this.expression = expression; } @Override public void generate(MethodVisitor mv, Scope scope) { Type type = expression.type; expression.generate(mv, scope); mv.visitInsn(type.getReturnOpcode()); } @Override public void validate(Scope scope) { expression.validate(scope); } }
<filename>src/notifications/api.ts<gh_stars>10-100 import { EnrichedPullRequest } from "../filtering/enriched-pull-request"; export interface Notifier { notify( pullRequests: EnrichedPullRequest[], alreadyNotifiedPullRequestUrls: Set<string> ): void; registerClickListener(clickListener: NotifierClickListener): void; } export type NotifierClickListener = (pullRequestUrl: string) => void;
package main import ( "fmt" "log" "context" "github.com/labstack/echo/v4" "github.com/spf13/viper" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/readpref" "go.mongodb.org/mongo-driver/mongo/options" _wineEstateRepo "github.com/sommelier/sommelier/v0/api/wine_estate/repository" "github.com/sommelier/sommelier/v0/middleware" ) func init() { viper.SetConfigFile(`config.yml`) err := viper.ReadInConfig() if err != nil { panic(err) } if viper.GetBool(`debug`) { fmt.Println("Service RUN on DEBUG mode") } } func main() { // Init mongo repository mongoHost := viper.GetString(`mongo.host`) mongoPort := viper.GetString(`mongo.port`) mongoUser := viper.GetString(`mongo.user`) mongoPass := viper.GetString(`mongo.pass`) mongoDatabase := viper.GetString(`mongo.database`) mongoURL := fmt.Sprintf("mongodb://%s:%s", mongoHost, mongoPort) mongoCredential := options.Credential { AuthMechanism: "PLAIN", Username: mongoUser, Password: <PASSWORD>, } mongoClientOpts := options.Client().ApplyURI(mongoURL).SetAuth(mongoCredential) ctx := context.TODO() mongoConn, err := mongo.Connect(ctx, mongoClientOpts) if err != nil { log.Fatal(err) } if err = mongoConn.Ping(ctx, readpref.Primary()); err != nil { log.Fatal(err) } mongoConnDB := mongoConn.Database(mongoDatabase) defer func() { err := mongoConn.Disconnect(ctx) if err != nil { log.Fatal(err) } }() e := echo.New() middL := middleware.InitMiddleware() e.Use(middL.CORS) _, err = _wineEstateRepo.NewMongoWineEstateRepository(mongoConnDB, viper.GetString(`mongo.collection.wine_estate`)) if err != nil { log.Fatal(err) } log.Fatal(e.Start(viper.GetString("server.address"))) }
The Many Faces of Bacterium-Endothelium Interactions during Systemic Infections. A wide variety of pathogens reach the circulatory system during viral, parasitic, fungal, and bacterial infections, causing clinically diverse pathologies. Such systemic infections are usually severe and frequently life-threatening despite intensive care, in particular during the age of antibiotic resistance. Because of its position at the interface between the blood and the rest of the organism, the endothelium plays a central role during these infections. Using several examples of systemic infections, we explore the diversity of interactions between pathogens and the endothelium. These examples reveal that bacterial pathogens target specific vascular beds and affect most aspects of endothelial cell biology, ranging from cellular junction stability to endothelial cell proliferation and inflammation.
// ToClaimsHeader parses the bytes and returns the ClaimsHeader func (h HeaderBytes) ToClaimsHeader() *ClaimsHeader { if h == nil || len(h) != maxHeaderLen { return NewClaimsHeader() } compressionTypeMask := compressionTypeMask(h.extractHeaderAttribute(h[0], compressionTypeBitMask.toUint8())) datapathVersionMask := datapathVersionMask(h.extractHeaderAttribute(h[0], datapathVersionBitMask.toUint8())) return &ClaimsHeader{ compressionType: compressionTypeMask.toType(), encrypt: uint8ToBool(encrypt, h.extractHeaderAttribute(h[1], encryptionEnabledBit)), ping: uint8ToBool(ping, h.extractHeaderAttribute(h[1], pingEnabledBit)), datapathVersion: datapathVersionMask.toType(), } }
<gh_stars>0 // // JRAuditableEntityUI.h // JRAuditableEntityUI // // Created by <NAME> on 11/9/16. // Copyright © 2016 Dealer Information Systems. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for JRAuditableEntityUI. FOUNDATION_EXPORT double JRAuditableEntityUIVersionNumber; //! Project version string for JRAuditableEntityUI. FOUNDATION_EXPORT const unsigned char JRAuditableEntityUIVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <JRAuditableEntityUI/PublicHeader.h> // Actions #import "JRNumberBoxFixableAction.h" #import "JROptionsFixableAction.h" #import "JRTextBoxFixableAction.h" // Constants #import "JRDiffableUIConstants.h" // Diffable #import "JRDiffableListTableViewController.h" #import "JRDiffableTableViewController.h" #import "JRDiffableTableViewDelegate.h" #import "JRDiffableTableViewCell.h" //Fixable #import "JRFixableListTableViewController.h" #import "JRFixableTableViewController.h" #import "JRFixableTableViewDelegate.h" #import "JRFixableTableViewCell.h"
/// types of the SameSite cookie attribute #[derive(Clone, Debug)] pub enum SameSiteTypes { Strict, Lax, None, } /// attributes a cookie can have #[derive(Clone, Debug)] pub enum CookieAttributes { Secure, HTTPOnly, Path(String), Domain(String), SameSite(SameSiteTypes), MaxAge(usize), Expires(String), } impl CookieAttributes { pub fn to_string(&self) -> String { match self { CookieAttributes::Secure => String::from("Secure"), CookieAttributes::HTTPOnly => String::from("HttpOnly"), CookieAttributes::Path(n) => format!("Path={}", n), CookieAttributes::Domain(n) => format!("Domain={}", n), CookieAttributes::SameSite(n) => match n { SameSiteTypes::Strict => String::from("SameSite=Strict"), SameSiteTypes::Lax => String::from("SameSite=Lax"), SameSiteTypes::None => String::from("SameSite=None"), }, CookieAttributes::MaxAge(n) => format!("Max-Age={}", n), CookieAttributes::Expires(n) => format!("Expires={}", n), } } } /// a cookie #[derive(Clone, Debug)] pub struct Cookie { name: String, value: String, attributes: Option<Vec<CookieAttributes>>, } impl Cookie { /// create a new cookie /// /// # Arguments /// - `name`: the name of the cookie /// - `value`: the value of the cookie /// - `attributes`: the cookie attributes (see [`CookieAttributes`] for a list of attributes) pub fn new(name: String, value: String, attributes: Option<Vec<CookieAttributes>>) -> Cookie { Cookie { name, value, attributes, } } /// create a cookie from a string /// /// will return `None` if string has invalid format pub fn from_string(string: String) -> Option<Cookie> { let mut parts = string.split('='); let name: String = match parts.next() { Some(n) => n.to_string(), None => { return None; } }; let mut other_parts = string.split("; "); let left = match other_parts.next() { Some(n) => n, None => return None, }; let value = match left.split('=').nth(1) { Some(n) => n, None => return None, }; let mut attributes: Vec<CookieAttributes> = Vec::new(); for i in string.split("; ").skip(1) { if i.contains('=') { let mut parts = i.split('='); let left = match parts.next() { Some(n) => n, None => break, }; let right = match parts.next() { Some(n) => n, None => break, }; match left { "Expires" => attributes.push(CookieAttributes::Expires(right.to_string())), "Max-Age" => { if let Ok(n) = right.parse::<usize>() { attributes.push(CookieAttributes::MaxAge(n)); } } "Domain" => attributes.push(CookieAttributes::Domain(right.to_string())), "Path" => attributes.push(CookieAttributes::Path(right.to_string())), "SameSite" => match right { "Lax" => attributes.push(CookieAttributes::SameSite(SameSiteTypes::Lax)), "Strict" => { attributes.push(CookieAttributes::SameSite(SameSiteTypes::Strict)) } "None" => attributes.push(CookieAttributes::SameSite(SameSiteTypes::None)), _ => (), }, _ => (), } } else { match i { "Secure" => attributes.push(CookieAttributes::Secure), "HttpOnly" => attributes.push(CookieAttributes::HTTPOnly), _ => (), } } } let out_attributes: Option<Vec<CookieAttributes>> = match attributes.len() { 0 => None, _ => Some(attributes), }; Some(Cookie::new(name, value.to_string(), out_attributes)) } /// convert a cookie to a string that can be sent in responses or requests pub fn to_string(&self) -> String { let mut out: String = format!("{}={}", self.name, self.value); if let Some(n) = &self.attributes { for attr in n { out.push_str(format!("; {}", attr.to_string()).as_str()); } } out } }
<reponame>Gofreedom0/civetcat // Code generated by protoc-gen-go. DO NOT EDIT. // source: pb.proto package pb import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type DeHeartbeat struct { CPU uint32 `protobuf:"varint,1,opt,name=CPU,proto3" json:"CPU,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeHeartbeat) Reset() { *m = DeHeartbeat{} } func (m *DeHeartbeat) String() string { return proto.CompactTextString(m) } func (*DeHeartbeat) ProtoMessage() {} func (*DeHeartbeat) Descriptor() ([]byte, []int) { return fileDescriptor_f80abaa17e25ccc8, []int{0} } func (m *DeHeartbeat) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeHeartbeat.Unmarshal(m, b) } func (m *DeHeartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeHeartbeat.Marshal(b, m, deterministic) } func (m *DeHeartbeat) XXX_Merge(src proto.Message) { xxx_messageInfo_DeHeartbeat.Merge(m, src) } func (m *DeHeartbeat) XXX_Size() int { return xxx_messageInfo_DeHeartbeat.Size(m) } func (m *DeHeartbeat) XXX_DiscardUnknown() { xxx_messageInfo_DeHeartbeat.DiscardUnknown(m) } var xxx_messageInfo_DeHeartbeat proto.InternalMessageInfo func (m *DeHeartbeat) GetCPU() uint32 { if m != nil { return m.CPU } return 0 } type DeShell struct { Cmd string `protobuf:"bytes,1,opt,name=Cmd,proto3" json:"Cmd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeShell) Reset() { *m = DeShell{} } func (m *DeShell) String() string { return proto.CompactTextString(m) } func (*DeShell) ProtoMessage() {} func (*DeShell) Descriptor() ([]byte, []int) { return fileDescriptor_f80abaa17e25ccc8, []int{1} } func (m *DeShell) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeShell.Unmarshal(m, b) } func (m *DeShell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeShell.Marshal(b, m, deterministic) } func (m *DeShell) XXX_Merge(src proto.Message) { xxx_messageInfo_DeShell.Merge(m, src) } func (m *DeShell) XXX_Size() int { return xxx_messageInfo_DeShell.Size(m) } func (m *DeShell) XXX_DiscardUnknown() { xxx_messageInfo_DeShell.DiscardUnknown(m) } var xxx_messageInfo_DeShell proto.InternalMessageInfo func (m *DeShell) GetCmd() string { if m != nil { return m.Cmd } return "" } type DeUpload struct { Body []byte `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"` FileName string `protobuf:"bytes,2,opt,name=FileName,proto3" json:"FileName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeUpload) Reset() { *m = DeUpload{} } func (m *DeUpload) String() string { return proto.CompactTextString(m) } func (*DeUpload) ProtoMessage() {} func (*DeUpload) Descriptor() ([]byte, []int) { return fileDescriptor_f80abaa17e25ccc8, []int{2} } func (m *DeUpload) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeUpload.Unmarshal(m, b) } func (m *DeUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeUpload.Marshal(b, m, deterministic) } func (m *DeUpload) XXX_Merge(src proto.Message) { xxx_messageInfo_DeUpload.Merge(m, src) } func (m *DeUpload) XXX_Size() int { return xxx_messageInfo_DeUpload.Size(m) } func (m *DeUpload) XXX_DiscardUnknown() { xxx_messageInfo_DeUpload.DiscardUnknown(m) } var xxx_messageInfo_DeUpload proto.InternalMessageInfo func (m *DeUpload) GetBody() []byte { if m != nil { return m.Body } return nil } func (m *DeUpload) GetFileName() string { if m != nil { return m.FileName } return "" } type DeDownLoad struct { FilePath string `protobuf:"bytes,1,opt,name=FilePath,proto3" json:"FilePath,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeDownLoad) Reset() { *m = DeDownLoad{} } func (m *DeDownLoad) String() string { return proto.CompactTextString(m) } func (*DeDownLoad) ProtoMessage() {} func (*DeDownLoad) Descriptor() ([]byte, []int) { return fileDescriptor_f80abaa17e25ccc8, []int{3} } func (m *DeDownLoad) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeDownLoad.Unmarshal(m, b) } func (m *DeDownLoad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeDownLoad.Marshal(b, m, deterministic) } func (m *DeDownLoad) XXX_Merge(src proto.Message) { xxx_messageInfo_DeDownLoad.Merge(m, src) } func (m *DeDownLoad) XXX_Size() int { return xxx_messageInfo_DeDownLoad.Size(m) } func (m *DeDownLoad) XXX_DiscardUnknown() { xxx_messageInfo_DeDownLoad.DiscardUnknown(m) } var xxx_messageInfo_DeDownLoad proto.InternalMessageInfo func (m *DeDownLoad) GetFilePath() string { if m != nil { return m.FilePath } return "" } type DeGeneralResp struct { Bytes []byte `protobuf:"bytes,1,opt,name=Bytes,proto3" json:"Bytes,omitempty"` Body string `protobuf:"bytes,2,opt,name=Body,proto3" json:"Body,omitempty"` Success bool `protobuf:"varint,3,opt,name=Success,proto3" json:"Success,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DeGeneralResp) Reset() { *m = DeGeneralResp{} } func (m *DeGeneralResp) String() string { return proto.CompactTextString(m) } func (*DeGeneralResp) ProtoMessage() {} func (*DeGeneralResp) Descriptor() ([]byte, []int) { return fileDescriptor_f80abaa17e25ccc8, []int{4} } func (m *DeGeneralResp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DeGeneralResp.Unmarshal(m, b) } func (m *DeGeneralResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DeGeneralResp.Marshal(b, m, deterministic) } func (m *DeGeneralResp) XXX_Merge(src proto.Message) { xxx_messageInfo_DeGeneralResp.Merge(m, src) } func (m *DeGeneralResp) XXX_Size() int { return xxx_messageInfo_DeGeneralResp.Size(m) } func (m *DeGeneralResp) XXX_DiscardUnknown() { xxx_messageInfo_DeGeneralResp.DiscardUnknown(m) } var xxx_messageInfo_DeGeneralResp proto.InternalMessageInfo func (m *DeGeneralResp) GetBytes() []byte { if m != nil { return m.Bytes } return nil } func (m *DeGeneralResp) GetBody() string { if m != nil { return m.Body } return "" } func (m *DeGeneralResp) GetSuccess() bool { if m != nil { return m.Success } return false } type Resp struct { // Types that are valid to be assigned to RespItem: // *Resp_Shell // *Resp_Heartbeat // *Resp_Upload // *Resp_DownLoad // *Resp_GeneralResp RespItem isResp_RespItem `protobuf_oneof:"RespItem"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Resp) Reset() { *m = Resp{} } func (m *Resp) String() string { return proto.CompactTextString(m) } func (*Resp) ProtoMessage() {} func (*Resp) Descriptor() ([]byte, []int) { return fileDescriptor_f80abaa17e25ccc8, []int{5} } func (m *Resp) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Resp.Unmarshal(m, b) } func (m *Resp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Resp.Marshal(b, m, deterministic) } func (m *Resp) XXX_Merge(src proto.Message) { xxx_messageInfo_Resp.Merge(m, src) } func (m *Resp) XXX_Size() int { return xxx_messageInfo_Resp.Size(m) } func (m *Resp) XXX_DiscardUnknown() { xxx_messageInfo_Resp.DiscardUnknown(m) } var xxx_messageInfo_Resp proto.InternalMessageInfo type isResp_RespItem interface { isResp_RespItem() } type Resp_Shell struct { Shell *DeShell `protobuf:"bytes,1,opt,name=Shell,proto3,oneof"` } type Resp_Heartbeat struct { Heartbeat *DeHeartbeat `protobuf:"bytes,2,opt,name=Heartbeat,proto3,oneof"` } type Resp_Upload struct { Upload *DeUpload `protobuf:"bytes,3,opt,name=Upload,proto3,oneof"` } type Resp_DownLoad struct { DownLoad *DeDownLoad `protobuf:"bytes,4,opt,name=DownLoad,proto3,oneof"` } type Resp_GeneralResp struct { GeneralResp *DeGeneralResp `protobuf:"bytes,5,opt,name=GeneralResp,proto3,oneof"` } func (*Resp_Shell) isResp_RespItem() {} func (*Resp_Heartbeat) isResp_RespItem() {} func (*Resp_Upload) isResp_RespItem() {} func (*Resp_DownLoad) isResp_RespItem() {} func (*Resp_GeneralResp) isResp_RespItem() {} func (m *Resp) GetRespItem() isResp_RespItem { if m != nil { return m.RespItem } return nil } func (m *Resp) GetShell() *DeShell { if x, ok := m.GetRespItem().(*Resp_Shell); ok { return x.Shell } return nil } func (m *Resp) GetHeartbeat() *DeHeartbeat { if x, ok := m.GetRespItem().(*Resp_Heartbeat); ok { return x.Heartbeat } return nil } func (m *Resp) GetUpload() *DeUpload { if x, ok := m.GetRespItem().(*Resp_Upload); ok { return x.Upload } return nil } func (m *Resp) GetDownLoad() *DeDownLoad { if x, ok := m.GetRespItem().(*Resp_DownLoad); ok { return x.DownLoad } return nil } func (m *Resp) GetGeneralResp() *DeGeneralResp { if x, ok := m.GetRespItem().(*Resp_GeneralResp); ok { return x.GeneralResp } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*Resp) XXX_OneofWrappers() []interface{} { return []interface{}{ (*Resp_Shell)(nil), (*Resp_Heartbeat)(nil), (*Resp_Upload)(nil), (*Resp_DownLoad)(nil), (*Resp_GeneralResp)(nil), } } func init() { proto.RegisterType((*DeHeartbeat)(nil), "pb.deHeartbeat") proto.RegisterType((*DeShell)(nil), "pb.deShell") proto.RegisterType((*DeUpload)(nil), "pb.deUpload") proto.RegisterType((*DeDownLoad)(nil), "pb.deDownLoad") proto.RegisterType((*DeGeneralResp)(nil), "pb.deGeneralResp") proto.RegisterType((*Resp)(nil), "pb.Resp") } func init() { proto.RegisterFile("pb.proto", fileDescriptor_f80abaa17e25ccc8) } var fileDescriptor_f80abaa17e25ccc8 = []byte{ // 316 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0x4f, 0x4b, 0x03, 0x31, 0x10, 0xc5, 0x77, 0xfb, 0x77, 0x3b, 0xdb, 0xfa, 0x27, 0x78, 0x08, 0x7a, 0xb0, 0x44, 0x90, 0x1e, 0xa4, 0x42, 0xc5, 0x8b, 0xc7, 0x2a, 0x1a, 0x41, 0xa4, 0xa4, 0xf4, 0x03, 0x64, 0x9b, 0x81, 0x0a, 0xdb, 0x6e, 0xe8, 0x46, 0xa4, 0x1f, 0xdc, 0xbb, 0xec, 0x64, 0x1b, 0xf7, 0xb4, 0x33, 0xf3, 0x7e, 0x93, 0x97, 0xbc, 0x85, 0xc4, 0x66, 0x53, 0xbb, 0x2f, 0x5c, 0xc1, 0x5a, 0x36, 0x13, 0xd7, 0x90, 0x1a, 0x94, 0xa8, 0xf7, 0x2e, 0x43, 0xed, 0xd8, 0x19, 0xb4, 0x9f, 0x17, 0x2b, 0x1e, 0x8f, 0xe3, 0xc9, 0x48, 0x55, 0xa5, 0xb8, 0x82, 0xbe, 0xc1, 0xe5, 0x06, 0xf3, 0x9c, 0xc4, 0xad, 0x21, 0x71, 0xa0, 0xaa, 0x52, 0x3c, 0x41, 0x62, 0x70, 0x65, 0xf3, 0x42, 0x1b, 0xc6, 0xa0, 0x33, 0x2f, 0xcc, 0x81, 0xe4, 0xa1, 0xa2, 0x9a, 0x5d, 0x42, 0xf2, 0xfa, 0x95, 0xe3, 0xa7, 0xde, 0x22, 0x6f, 0xd1, 0x5a, 0xe8, 0xc5, 0x04, 0xc0, 0xe0, 0x4b, 0xf1, 0xb3, 0xfb, 0xa8, 0xb6, 0x6b, 0x72, 0xa1, 0xdd, 0xa6, 0x36, 0x08, 0xbd, 0x58, 0xc2, 0xc8, 0xe0, 0x1b, 0xee, 0x70, 0xaf, 0x73, 0x85, 0xa5, 0x65, 0x17, 0xd0, 0x9d, 0x1f, 0x1c, 0x96, 0xb5, 0x97, 0x6f, 0xc2, 0x05, 0xbc, 0x91, 0xbf, 0x00, 0x87, 0xfe, 0xf2, 0x7b, 0xbd, 0xc6, 0xb2, 0xe4, 0xed, 0x71, 0x3c, 0x49, 0xd4, 0xb1, 0x15, 0xbf, 0x31, 0x74, 0xe8, 0xb0, 0x1b, 0xe8, 0xd2, 0xf3, 0xe8, 0xb0, 0x74, 0x96, 0x4e, 0x6d, 0x36, 0xad, 0x5f, 0x2c, 0x23, 0xe5, 0x35, 0x76, 0x0f, 0x83, 0x10, 0x12, 0x19, 0xa4, 0xb3, 0x53, 0x0f, 0x86, 0xb1, 0x8c, 0xd4, 0x3f, 0xc3, 0x6e, 0xa1, 0xe7, 0x73, 0x21, 0xdf, 0x74, 0x36, 0xf4, 0xb4, 0x9f, 0xc9, 0x48, 0xd5, 0x2a, 0xbb, 0x83, 0xe4, 0x98, 0x01, 0xef, 0x10, 0x79, 0xe2, 0xc9, 0xe3, 0x54, 0x46, 0x2a, 0x10, 0xec, 0x11, 0xd2, 0x46, 0x0e, 0xbc, 0x4b, 0x0b, 0xe7, 0x7e, 0xa1, 0x21, 0xc8, 0x48, 0x35, 0xb9, 0x39, 0x40, 0x52, 0x7d, 0xdf, 0x1d, 0x6e, 0xb3, 0x1e, 0xfd, 0xfb, 0x87, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9b, 0x9b, 0xa4, 0x10, 0x07, 0x02, 0x00, 0x00, }
Fault diagnosis of CBTC On-board equipment based on improved GA-BP CBTC On-board equipment is a core component to ensure the safety of subway trains and improve transportation efficiency, and it is of great significance to quickly and effectively diagnose its fault types. Aiming at the complexity of the fault data of CBTC vehicle equipment, an intelligent fault diagnosis method of CBTC vehicle equipment based on the improved GA-BP neural network model is proposed, and the most critical ATP type faults in the CBTC system are tested for fault diagnosis. Firstly, the genetic algorithm is used to optimize the BP neural network; secondly, the rough set theory is used to reduce the ATP-type fault features to reduce the complexity of the fault features. Compared with the unoptimized BP neural network, the fault diagnosis model based on the improved GA-BP neural network has a shorter training period, and the mean square error of training is only 0.00033064, which is significantly lower than the first two neural networks.
/** * Created by Glooory on 17/3/22. */ @Module public class UserModule { private UserContract.View mView; public UserModule(UserContract.View view) { mView = view; } @ActivityScope @Provides UserContract.View provideUserContractView() { return mView; } @ActivityScope @Provides UserContract.Model provideUserContractModel(UserModel userModel) { return userModel; } }
Looking for news you can trust? Subscribe to our free newsletters. Virginia Republicans have followed through on their threat to sue Gov. Terry McAuliffe over his April 22 decision to restore the voting rights of more than 200,000 felons, filing suit on Monday with the state’s Supreme Court and alleging that the governor overstepped his authority. “The Virginia constitution has a blanket prohibition on felons voting, but it gives the governor a narrow clemency power to restore voting rights or other political rights,” said Charles Cooper, the Washington, DC, lawyer hired by the state Republicans to challenge the decision. “But that power, we are arguing, can be exercised by the governor only on an individualized basis.” Cooper said McAuliffe’s two predecessors, Tim Kaine, a Democrat, and Bob McDonnell, a Republican, looked at voting restorations and concluded that the governor could only restore voting rights “case by case, rather than en masse and categorically, the way he has.” He added that “the imminence of the November elections, the importance of the issue, convinced us that we really ought to ask the Supreme Court to take it up immediately.” McAuliffe said his office will fight the suit. “Today Republicans filed a lawsuit to preserve a policy of disenfranchisement that has been used intentionally to suppress the voices of qualified voters, particularly African Americans, for more than a century,” the governor said in a statement. “These individuals have served their time and are now living, raising families and paying taxes in our communities—this suit is an effort to continue to treat them as second-class citizens.” McAuliffe’s order immediately gave convicted felons who had completed their sentences and probation or parole requirements the ability to register to vote, serve on a jury, run for office, and become a notary public. McAuliffe’s office released an analysis suggesting that nearly 80 percent of the felons affected by his order were convicted of nonviolent crimes, and that nearly half of the disenfranchised population is African American, even though that group represents less than 20 percent of the state’s entire population. (White felons make up 51.5 percent of the group.) Additionally, the average time since completion of parole or probation for the group is 11.1 years. McAuliffe’s office estimated that the decision would affect about 206,000 people. As of May 17, 3,933 of them had registered to vote. One of them is Terry Garrett, 48, who registered after McAuliffe announced his decision. Sitting in an office of the Friends of Guest House in Alexandria, Virginia, an organization that helps nonviolent women transition back into society after incarceration, Garrett described getting a text message explaining the governor’s order. “I was so excited,” she told Mother Jones last week, before the Republican lawsuit was announced. “I was running around my house like, ‘Oh my god, I can vote! I can vote!'” Garrett said it had been a long road from drug addiction and charges to her life today. She helps coordinate the Friends of Guest House Speakers Bureau, which talks to the community about issues related to prison reform and reentry. She said she’d be “devastated” if the right to vote were pulled away from her again. She was 18 when she first got mixed up with the law, and she tried to vote for Bill Clinton but was turned away because of her criminal record. Many state legislators have no idea what felons have been through, she said, and discount the hard work and effort it takes for someone with a troubled past to get her life in order. “I don’t think any of them, not even the lawyer they hired, could walk one day in my shoes and survive it,” she said. “I really don’t.” She added that she’d go to the state legislature in Richmond and try to talk to legislators about it. “Why don’t you want us to have a voice? Why don’t you want us to be a part of this?” Jennifer McDaniel, who works at a kennel and dog-grooming business, is another ex-felon with shoplifting charges and her own battles with addiction. She joined Garrett at Friends of Guest House to talk about getting the right to vote and said the governor’s action validated all her hard work to get straight. “We have a voice, too; we have an opinion,” she said, adding that she pays taxes, has a job, and has paid her debt to society. “I follow the laws, so give me my damn rights.” If the lawsuit succeeds, Garrett and McDaniel—and the nearly 4,000 additional felons granted the right to register to vote pursuant to the governor’s April 22 order—would be stripped of that right once again. “If we’re right, the governor’s order did nothing to change their statuses,” Cooper said. “They remain unqualified under the constitution to vote.” State Republicans said at the time that McAuliffe’s decision was an effort to help Hillary Clinton become president, a claim that might be hard to substantiate. Shortly after the decision, the New York Times noted that felons who have their rights restored tend to register as Democrats, but also tend to be younger and less educated, “the two most powerful demographic predictors of low voter turnout in the United States.” But given Virginia’s status as a swing state in this November’s presidential election, any advantage—perceived or otherwise—will be fought between the political parties. A. E. Dick Howard, a professor of law at the University of Virginia School of Law, told the New York Times in April that the governor had “ample authority” to do what he did, but noted at the time that the move could be challenged based on the idea that the decision applies to an entire class of people. “Virginia Republicans want to block certain people from voting, it’s that simple,” the Democratic Party of Virginia said in a statement Monday. “Virginia Republicans are clinging on to Civil War Era [sic] laws that were passed with the intent of preventing African Americans from voting, it’s that simple.” The Republican Party of Virginia also released a statement on Monday. “Terry McAuliffe has proven time and time again that he is willing to abuse the powers of his office in his effort to elect Hillary Clinton,” party chairman John Whitbeck said in the statement. “No governor, regardless of party, has the power to re-write Virginia’s laws unilaterally.” While Cooper says that this lawsuit is really about the governor’s authority, and that there are good people on both sides of the argument on felon voting rights, all Garrett and McDaniel see is partisan bickering. Both say that people who want to block felons who’ve served their time and probation want to silence them for fear of what they’ll say and how they’ll vote. “They’re using this for keeping the poor from having a voice,” McDaniel said. Garrett agreed. “I just think they’re afraid of us,” she said. “Because we have voices now, and we’re starting to talk, and we’re starting to make it clear as a human being, as a citizen, we want to vote. I really think they’re afraid of us.” Read the lawsuit filed Monday:
Control Dominant Factors Analysis for Under-Actuated Vehicle Platoon Stability System As a kind of flexible and under actuated systems which based on cooperative vehicle infrastructure system (CVIS), autonomous tractor-semi trailer platoon in vehicle networking can enhance the information interaction and controllability of safety. Establish the two degree of freedom model of tractor-semi trailer firstly. Then, we analysis dominant factor and equilibrium point for the under actuated physics system's stability including its coordination evolution rule. Space-time mathematical model was established based on the dynamic observation information during vehicle platoon driving. μ-Synthesis robust controller was designed to deal with real time conditions, for example, following, lane changing and obstacles avoiding. The parameters of autonomous under actuated platoon controller can be adjusted on-line by fuzzy rules. Finally, we verify robust stability and dynamic performance of autonomous under actuated platoon tracking controller by the computation simulation method.
<filename>python/unicode/ex6.py #!/usr/bin/env python # -*- coding: utf-8 -*- import locale import os import sys import unicodedata from kitchen.text.converters import getwriter, to_bytes, to_unicode from kitchen.i18n import get_translation_object if __name__ == "__main__": # Setup gettext driven translations but use the kitchen functions so # we don't have the mismatched bytes-unicode issues. translations = get_translation_object('example') # We use _() for marking strings that we operate on as unicode # This is pretty much everything _ = translations.ugettext # And b_() for marking strings that we operate on as bytes. # This is limited to exceptions b_ = translations.lgettext # Setup stdout encoding = locale.getpreferredencoding() Writer = getwriter(encoding) sys.stdout = Writer(sys.stdout) # Load data. Format is filename\0description # description should be utf-8 but filename can be any legal filename # on the filesystem # Sample datafile.txt: # /etc/shells\x00Shells available on caf\xc3\xa9.lan # /var/tmp/file\xff\x00File with non-utf8 data in the filename # # And to create /var/tmp/file\xff (under bash or zsh) do: # echo 'Some data' > /var/tmp/file$'\377' datafile = open('datafile.txt', 'r') data = {} for line in datafile: # We're going to keep filename as bytes because we will need the # exact bytes to access files on a POSIX operating system. # description, we'll immediately transform into unicode type. # print line b_filename, description = line.split('\0', 1) # to_unicode defaults to decoding output from utf-8 and replacing # any problematic bytes with the unicode replacement character # We accept mangling of the description here knowing that our file # format is supposed to use utf-8 in that field and that the # description will only be displayed to the user, not used as # a key value. description = to_unicode(description, 'utf-8').strip() data[b_filename] = description datafile.close() # We're going to add a pair of extra fields onto our data to show the # length of the description and the filesize. We put those between # the filename and description because we haven't checked that the # description is free of NULLs. datafile = open('newdatafile.txt', 'w') # Name filename with a b_ prefix to denote byte string of unknown encoding for b_filename in data: # Since we have the byte representation of filename, we can read any # filename if os.access(b_filename, os.F_OK): size = os.path.getsize(b_filename) else: size = 0 # Because the description is unicode type, we know the number of # characters corresponds to the length of the normalized unicode # string. length = len(unicodedata.normalize('NFC', description)) # Print a summary to the screen # Note that we do not let implici type conversion from str to # unicode transform b_filename into a unicode string. That might # fail as python would use the ASCII filename. Instead we use # to_unicode() to explictly transform in a way that we know will # not traceback. print _(u'filename: %s') % to_unicode(b_filename) print _(u'size: %s') % size print _(u'desc length: %s') % length print _(u'description: %s') % description # First combine the unicode portion line = u'%s\0%s\0%s' % (size, length, data[b_filename]) # Since the filenames are bytes, turn everything else to bytes before combining # Turning into unicode first would be wrong as the bytes in b_filename # might not convert b_line = '%s\0%s\n' % (b_filename, to_bytes(line)) # Just to demonstrate that getwriter will pass bytes through fine print b_('Wrote: %s') % b_line datafile.write(b_line) datafile.close() # And just to show how to properly deal with an exception. # Note two things about this: # 1) We use the b_() function to translate the string. This returns a # byte string instead of a unicode string # 2) We're using the b_() function returned by kitchen. If we had # used the one from gettext we would need to convert the message to # a byte str first message = u'Demonstrate the proper way to raise exceptions. Sincerely, \u3068\u3057\u304a' raise Exception(b_(message))
/** * prune CBOPushJoinRule rule * @param tables the list of tables in the logicalView * @return false if CBOPushJoinRule is invoked too many times and the table multiset has been optimized */ public boolean addTableList(String tables) { pushJoinHitCount++; int limit = paramManager.getInt(ConnectionParams.CBO_RESTRICT_PUSH_JOIN_COUNT); if (pushJoinHitCount >= limit) { pushJoinHitCount = limit; return tablesInLV.add(tables); } return true; }