868 resultados para Reactive programming Asynchronous stream ReactiveX RxJS RxPHP
Resumo:
Western societies have been faced with the fact that overweight, impaired glucose regulation and elevated blood pressure are already prevalent in pediatric populations. This will inevitably mean an increase in later manifestations of cardio-metabolic diseases. The dilemma has been suggested to stem from fetal life and it is surmised that the early nutritional environment plays an important role in the process called programming. The aim of the present study was to characterize early nutritional determinants associating with cardio-metabolic risk factors in fetuses, infants and children. Further, the study was designated to establish whether dietary counseling initiated in early pregnancy can modify this cascade. Healthy mother-child pairs (n=256) participating in a dietary intervention study were followed from early pregnancy to childhood. The intervention included detailed dietary counseling by a nutritionist targeting saturated fat intake in excess of recommendations and fiber consumption below recommendations. Cardio-metabolic programming was studied by characterizing the offspring’s cardio-metabolic risk factors such as over-activation of the autonomic nervous system, elevated blood pressure and adverse metabolic status (e.g. serum high split proinsulin concentration). Fetal cardiac sympathovagal activation was measured during labor. Postnatally, children’s blood pressure was measured at six-month and four-year follow-up visits. Further, infants’ metabolic status was assessed by means of growth and serum biomarkers (32-33 split proinsulin, leptin and adiponectin) at the age of six months. This study proved that fetal cardiac sympathovagal activity was positively associated with maternal pre-pregnancy body mass index indicating adverse cardio-metabolic programming in the offspring. Further, a reduced risk of high split proinsulin in infancy and lower blood pressure in childhood were found in those offspring whose mothers’ weight gain and amount and type of fats in the diet during pregnancy were as recommended. Of note, maternal dietary counseling from early pregnancy onwards could ameliorate the offspring’s metabolic status by reducing the risk of high split proinsulin concentration, although it had no effect on the other cardio-metabolic markers in the offspring. At postnatal period breastfeeding proved to entail benefits in cardio-metabolic programming. Finally, the recommended dietary protein and total fat content in the child’s diet were important nutritional determinants reducing blood pressure at the age of four years. The intrauterine and immediate postnatal period comprise a window of opportunity for interventions aiming to reduce the risk of cardio-metabolic disorders and brings the prospect of achieving health benefits over one generation.
Resumo:
The development of correct programs is a core problem in computer science. Although formal verification methods for establishing correctness with mathematical rigor are available, programmers often find these difficult to put into practice. One hurdle is deriving the loop invariants and proving that the code maintains them. So called correct-by-construction methods aim to alleviate this issue by integrating verification into the programming workflow. Invariant-based programming is a practical correct-by-construction method in which the programmer first establishes the invariant structure, and then incrementally extends the program in steps of adding code and proving after each addition that the code is consistent with the invariants. In this way, the program is kept internally consistent throughout its development, and the construction of the correctness arguments (proofs) becomes an integral part of the programming workflow. A characteristic of the approach is that programs are described as invariant diagrams, a graphical notation similar to the state charts familiar to programmers. Invariant-based programming is a new method that has not been evaluated in large scale studies yet. The most important prerequisite for feasibility on a larger scale is a high degree of automation. The goal of the Socos project has been to build tools to assist the construction and verification of programs using the method. This thesis describes the implementation and evaluation of a prototype tool in the context of the Socos project. The tool supports the drawing of the diagrams, automatic derivation and discharging of verification conditions, and interactive proofs. It is used to develop programs that are correct by construction. The tool consists of a diagrammatic environment connected to a verification condition generator and an existing state-of-the-art theorem prover. Its core is a semantics for translating diagrams into verification conditions, which are sent to the underlying theorem prover. We describe a concrete method for 1) deriving sufficient conditions for total correctness of an invariant diagram; 2) sending the conditions to the theorem prover for simplification; and 3) reporting the results of the simplification to the programmer in a way that is consistent with the invariantbased programming workflow and that allows errors in the program specification to be efficiently detected. The tool uses an efficient automatic proof strategy to prove as many conditions as possible automatically and lets the remaining conditions be proved interactively. The tool is based on the verification system PVS and i uses the SMT (Satisfiability Modulo Theories) solver Yices as a catch-all decision procedure. Conditions that were not discharged automatically may be proved interactively using the PVS proof assistant. The programming workflow is very similar to the process by which a mathematical theory is developed inside a computer supported theorem prover environment such as PVS. The programmer reduces a large verification problem with the aid of the tool into a set of smaller problems (lemmas), and he can substantially improve the degree of proof automation by developing specialized background theories and proof strategies to support the specification and verification of a specific class of programs. We demonstrate this workflow by describing in detail the construction of a verified sorting algorithm. Tool-supported verification often has little to no presence in computer science (CS) curricula. Furthermore, program verification is frequently introduced as an advanced and purely theoretical topic that is not connected to the workflow taught in the early and practically oriented programming courses. Our hypothesis is that verification could be introduced early in the CS education, and that verification tools could be used in the classroom to support the teaching of formal methods. A prototype of Socos has been used in a course at Åbo Akademi University targeted at first and second year undergraduate students. We evaluate the use of Socos in the course as part of a case study carried out in 2007.
Resumo:
Programming and mathematics are core areas of computer science (CS) and consequently also important parts of CS education. Introductory instruction in these two topics is, however, not without problems. Studies show that CS students find programming difficult to learn and that teaching mathematical topics to CS novices is challenging. One reason for the latter is the disconnection between mathematics and programming found in many CS curricula, which results in students not seeing the relevance of the subject for their studies. In addition, reports indicate that students' mathematical capability and maturity levels are dropping. The challenges faced when teaching mathematics and programming at CS departments can also be traced back to gaps in students' prior education. In Finland the high school curriculum does not include CS as a subject; instead, focus is on learning to use the computer and its applications as tools. Similarly, many of the mathematics courses emphasize application of formulas, while logic, formalisms and proofs, which are important in CS, are avoided. Consequently, high school graduates are not well prepared for studies in CS. Motivated by these challenges, the goal of the present work is to describe new approaches to teaching mathematics and programming aimed at addressing these issues: Structured derivations is a logic-based approach to teaching mathematics, where formalisms and justifications are made explicit. The aim is to help students become better at communicating their reasoning using mathematical language and logical notation at the same time as they become more confident with formalisms. The Python programming language was originally designed with education in mind, and has a simple syntax compared to many other popular languages. The aim of using it in instruction is to address algorithms and their implementation in a way that allows focus to be put on learning algorithmic thinking and programming instead of on learning a complex syntax. Invariant based programming is a diagrammatic approach to developing programs that are correct by construction. The approach is based on elementary propositional and predicate logic, and makes explicit the underlying mathematical foundations of programming. The aim is also to show how mathematics in general, and logic in particular, can be used to create better programs.
Resumo:
Svavel förekommer i kol och olja och oxideras vid förbränning till svaveldioxid (SO2). Årligen utsläpps stora mängder svaveldioxid som åstadkommer sura regn, minskning av stratosfäriskt ozon och sjukdomar. Av dessa orsaker är det nödvändigt att minska utsläppen av svaveldioxid. Den teknologi som rör planering av reaktorer och processer för rökgasavsvavling (FGD) har utvecklats kraftigt och idag använder man olika typer av lösningar. De vanligaste alternativen för FGD är våtskrubber- och semitorra skrubbersystem (Spray Dry Scrubbers, SDS) och injektionsprocesser för absorbenter. SDS-processer har studerats bland annat av Ahlbeck [4] och Klingspor [5] och injektionsprocesser av Alvfors [6]. Kalksten, som i huvusak består av kalciumkarbonat, används i rökgasavsvavling på grund av sin förmåga att binda svavel i form av sulfatsalter. Den vanligaste rökgasavsvavlingsmetoden är våtskrubbning, där det sedimentära stenmaterialets upplösningshastighet är en av de faktorer som påverkar resultatet mest. Utvärdering av kalkstensreaktivitet är därför speciellt viktig vid planering och drift av anläggningar för rökgasavsvavling. Målsättningen med detta arbete var att modellera upplösningen av olika typers kalksten för att få en kvantitativ utvärdering av kvaliteten på de analyserade proverna. Därtill testades även karbonatbiprodukter från stålindustrin för att utvärdera möjligheter att använda andra råmaterial. Det transienta förloppet har analyserats, varvid upplösningshastigheten modellerades bl.a. i avseende på tid och pH. Under arbetets gång har antalet empiriska korrelationer minskats till fördel för fysikaliska modeller av diffusiva och konvektiva masstransportfenomen. En målsättning var att skapa en effektiv och snabb metod för att testa olika absorbenter för rökgasavsvavling under transienta förlopp. I arbetet användes PSD-analys, gjordes pH-mätningar och andra utvärderingar av de fysikaliska parametrar som ingår i beräkningarna. On-line mätningar för de icke-stationära variablerna tid och pH ger möjlighet att eliminera osäkerheter. Vissa modeller kan vara komplicerade. En modell för upplösningshastigheten med mer detaljerad utvärdering av parametrar och färre approximationer är därför nödvändig då man vill utvärdera reaktionshastigheten för fasta partiklar i sur miljö. Arbetet utfördes under fyra år och fem peer review-artiklar ingår i avhandlingen.
Resumo:
Työn tarkoituksena oli suunnitella, ohjelmoida ja koekäyttää SMB-laitteisto (Simulated Moving Bed) hydrometallurgisiin erotuksiin. Simuloitu liikkuvapeti saadaan aikaan vaihtamalla sisään- ja ulostuloporttien paikkaa nestevirran suuntaan. Tällöin aikaansaadaan kiintoaineen vastavirtaus minkä johdosta erotustehokkuus kasvaa. Komponenttien retentiotaipumuseroista johtuen komponentit liikkuvat eri nopeuksilla kolonnijärjestelmässä. Enemmän pidättäytyvät komponentit liikkuvat nestevirtaa vastaan ja vähemmän pidättäytyvät komponentit nestevirran mukana. Hydrometallurgiassa vastavirtauksen käyttöä ei ole tieteellisissä julkaisuissa käsitelty laajalti ja saatavilla oleva informaatio onkin kaupallisten yritysten tuottamaa. Hydrometallurgiassa vastavirtausta käyttävissä ioninvaihtolaitteistoissa hyödynnetään irrallisia regenerointivyöhykkeitä. Venttiilijärjestelmän osalta päädyttiin ratkaisuun jossa käytetään yhtä kiertoventtiiliä kullekin virralle, minkä lisäksi kolonnien väleillä käytetään solenoidiventtiiliä. Tämä järjestelmä mahdollistaa yleisimpien SMB-menetelmien käytön mukaan lukien irralliset vyöhykkeet. Laitteiston ohjauksesta vastaa LabVIEW 2010:llä ohjelmoitu ohjelmisto, joka sisältää kaikkien tarvittavien laitteiden ohjausrutiinit. Se mahdollistaa venttiilien synkroniset ja epäsynkroniset vaihdot. Laitteiston puhdistusta varten on ohjelmistoon rakennettu oma rutiini venttiilejä varten. Pumppujen osalta ohjelmisto mahdollistaa vakiovirtauksen sekä lineaaristen ja porrasmuotoisten gradienttien käytön. Ongelmatilanteita varten ohjelmisto valvoo pumppujen ja venttiilien toimintaa ja pysäyttää laitteiston tarvittaessa. Koekäytön avulla pystyttiin todentamaan laitteiston toimivuus.
Resumo:
In this thesis, simple methods have been sought to lower the teacher’s threshold to start to apply constructive alignment in instruction. From the phases of the instructional process, aspects that can be improved with little effort by the teacher have been identified. Teachers have been interviewed in order to find out what students actually learn in computer science courses. A quantitative analysis of the structured interviews showed that in addition to subject specific skills and knowledge, students learn many other skills that should be mentioned in the learning outcomes of the course. The students’ background, such as their prior knowledge, learning style and culture, affects how they learn in a course. A survey was conducted to map the learning styles of computer science students and to see if their cultural background affected their learning style. A statistical analysis of the data indicated that computer science students are different learners than engineering students in general and that there is a connection between the student’s culture and learning style. In this thesis, a simple self-assessment scale that is based on Bloom’s revised taxonomy has been developed. A statistical analysis of the test results indicates that in general the scale is quite reliable, but single students still slightly overestimate or under-estimate their knowledge levels. For students, being able to follow their own progress is motivating, and for a teacher, self-assessment results give information about how the class is proceeding and what the level of the students’ knowledge is.
Resumo:
In March 2010, Chinese State Councillor, Dai Bingguo, in a private meeting with US Deputy Secretary of State, James Steinberg, allegedly referred to the South China Sea (SCS) as one of the country’s ‘core interests’, a term normally only used to refer to regions like Taiwan, Tibet and Xinjiang upon whose sovereignty Beijing will make no compromises. This alleged wording by Mr Dai caused a strong global reaction, with many countries around the world expressing a fear that China, on the back of its rise to the status of the world's second largest economic power, was now about to implement a more assertive foreign policy more in keeping with its new status of global superpower. As the use of the term ‘core interest’ took place in a private meeting and appears to have been subsequently leaked, it is impossible to prove what was said or meant, yet in 2011, with China and the US continuing to eye each other with suspicion, the adverse repercussions of people trying to deduce what was meant are undeniable. By analysing the views of experts and the evolution or otherwise of Chinese rhetoric and policy towards the SCS, this thesis will show how the alleged use of a term in a private meeting can have consequences that far exceed what was originally intended. It will also show that it is highly unlikely that China’s maritime policy is becoming more assertive as, at China's present stage of social and economic development, it simply cannot afford the ill will and adverse consequences that would result from an act of international aggression. It will show how easy it seems to be for a country like the US to project a misleading image of another country’s intentions, which can in turn serve partially to mask its own intentions. Finally, it will show that the China’s stance on the SCS is starting to be seen by the world as a litmus test for the assertiveness of overall Chinese foreign policy.
Resumo:
The update of the Finnish legislation concerning waste was unavoidable, to comply with the European Union (EU) requirements defined in the EU-Directive on Waste. The new waste law updates were enacted into the Finnish legislation on the 11.03.2011 and targeted for applicability by the 11.03.2012. This thesis investigates the implications of the new amendments to the waste legislation from the perspective of green sand foundries. The investigations are conducted by comparing two of Componenta’s green sand foundries and evaluating their waste streams. Additionally, the impacts of legislation amendments are critiqued on their environmental and economic aspects. The study’s comparison of waste fractions at the two foundries reveals that sand is dominant in absolute tonnage and costs. The increments of waste taxes forces foundries to focus on waste management, recycling and disposing. The new legislation’s promotion of material efficiency, also guides foundries towards the prevention of waste. A potential preventive measure is to regenerate waste sand resulting to cost savings on both raw-materials and waste management. However, the lack of absolute targets for waste prevention or recycling rates discourages the interests towards creating or adopting new technologies and methods for the waste handling.
Resumo:
Linear programming models are effective tools to support initial or periodic planning of agricultural enterprises, requiring, however, technical coefficients that can be determined using computer simulation models. This paper, presented in two parts, deals with the development, application and tests of a methodology and of a computational modeling tool to support planning of irrigated agriculture activities. Part I aimed at the development and application, including sensitivity analysis, of a multiyear linear programming model to optimize the financial return and water use, at farm level for Jaíba irrigation scheme, Minas Gerais State, Brazil, using data on crop irrigation requirement and yield, obtained from previous simulation with MCID model. The linear programming model outputted a crop pattern to which a maximum total net present value of R$ 372,723.00 for the four years period, was obtained. Constraints on monthly water availability, labor, land and production were critical in the optimal solution. In relation to the water use optimization, it was verified that an expressive reductions on the irrigation requirements may be achieved by small reductions on the maximum total net present value.
Resumo:
Tillgången på traditionella biobränslen är begränsad och därför behöver man ta fram nya, tidigare outnyttjade biobränslen för att möta de uppställda CO2 emissionsmålen av EU och det ständigt ökande energibehovet. Under de senare åren har intresset riktats mot termisk energiutvinning ur olika restfraktioner och avfall. Vid produktion av fordonsbränsle ur biomassa är den fasta restprodukten ofta den största procesströmmen i produktionsanläggningen. En riktig hantering av restprodukterna skulle göra produktionen mera lönsam och mer ekologiskt hållbar. Ett alternativ är att genom förbränning producera elektricitet och/eller värme eftersom dessa restprodukter anses som CO2-neutrala. Målsättningen med den här avhandlingen var att studera förbränningsegenskaperna hos några fasta restprodukter som uppstår vid framställning av förnybara fordonsbränslen. De fyra undersökta materialen är rapskaka, palmkärnskaka, torkad drank och stabiliserat rötslam. I studien används ett stort urval av undersökningsmetoder, från laboratorieskala till fullskalig förbränning, för att identifiera de huvudsakliga utmaningarna förknippade med förbränning av restprodukterna i pannor med fluidiserad bäddteknik. Med hjälp av detaljerad bränslekarakterisering kunde restprodukterna konstateras vara en värdefull källa för värme- och elproduktion. Den kemiska sammansättningen av restprodukterna varierar stort jämfört med mera traditionellt använda biobränslen. En gemensam faktor för alla de studerade restprodukterna är en hög fosforhalt. På grund av de låga fosforkoncentrationerna i de traditionella biobränslena har grundämnet hittills inte ansetts spela någon större roll i askkemin. Experimenten visade nu att fosfor inte mera kan försummas då man studerar kemin i förbränningsprocesser, då allt flera fosforrika bränslen tränger in på energimarknaden.
Resumo:
The aim of this study was to define the photographic patterns that represent the use and occupation of the landcover of the "spring" of the Rico Stream subbasin, located at Monte Alto, state of São Paulo (SP), Brazil, for environmental adaptation regarding the Brazilian Forest Law. The mapping was performed using remote sensing techniques and visual interpretation of the World View image, followed by the digitalization of the net of drainage and vegetation (natural and agricultural) at the AutoCad software with documents and field work. The study area has 2141.53 ha and the results demonstrated that the main crop is sugarcane with 546.34 ha, followed by 251.22 ha of pastures, 191.71 ha of perennial crops, 57.31 ha of Eucalyptus and 49.52 ha of onion, confirming the advance of sugarcane culture in the region. The region has 375.04 ha of areas of permanent preservation (APPs), and of this area it was found that only 72.17 ha (19.24%) has arboreal vegetation or natural forest, and 302.87 ha of these areas need to be enriched and reforested with native vegetation from the region, according to the current legislation. The data of the area enable future proposals of models for environmental adaptation to the microbasin according to the current environmental legislation.
Resumo:
Atherosclerotic vascular disease is the leading cause of death in the Western world. Its main three manifestations are coronary heart disease, cerebrovascular disease, and peripheral arterial disease. Asymptomatic peripheral arterial disease is usually diagnosed using the ankle brachial index, and values ≤ 0.90 are used to determine the diagnosis. The classical risk factors of peripheral arterial disease, such as smoking and diabetes, are well known and early interventions are mandatory to improve the prognosis. What is not well known is the role of inflammation as a risk factor. Yet, a novel approach to cardiovascular diseases is the measurement of endothelial function. In this thesis, we studied the ankle-brachial index, C-reactive protein and endothelial function in a cardiovascular risk population. A total of 2856 subjects were invited to the study and 2085 (73%) responded. From these subjects, a cohort of 1756 risk persons was screened. We excluded the subjects with previously known cardiovascular disease or diabetes, because they were already under systematic follow-up. Out of the study subjects, 983 (56%) were women and 773 (44%) men. The ankle brachial index and high-sensitivity C-reactive protein were measured from 1047 subjects. Endothelial function was assessed by measuring reactive hyperemia pulse amplitude tonometry from 66 subjects with borderline peripheral arterial disease. In this study, smoking was a crucial risk factor for peripheral arterial disease. Subclinical peripheral arterial disease seems to be more common in hypertensive patients even without comorbidities. The measurement of the ankle brachial index is an efficient method to identify patients at an increased cardiovascular risk. High-sensitivity C-reactive protein did not correlate with the ankle brachial index or peripheral arterial disease. Instead, it correlated with measures of obesity. In a cardiovascular risk population with borderline peripheral arterial disease, nearly every fourth subject had endothelial dysfunction. This might point out a subgroup of individuals in need of more intensive treatment for their risk factors.
Resumo:
Object-oriented programming is a widely adopted paradigm for desktop software development. This paradigm partitions software into separate entities, objects, which consist of data and related procedures used to modify and inspect it. The paradigm has evolved during the last few decades to emphasize decoupling between object implementations, via means such as explicit interface inheritance and event-based implicit invocation. Inter-process communication (IPC) technologies allow applications to interact with each other. This enables making software distributed across multiple processes, resulting in a modular architecture with benefits in resource sharing, robustness, code reuse and security. The support for object-oriented programming concepts varies between IPC systems. This thesis is focused on the D-Bus system, which has recently gained a lot of users, but is still scantily researched. D-Bus has support for asynchronous remote procedure calls with return values and a content-based publish/subscribe event delivery mechanism. In this thesis, several patterns for method invocation in D-Bus and similar systems are compared. The patterns that simulate synchronous local calls are shown to be dangerous. Later, we present a state-caching proxy construct, which avoids the complexity of properly asynchronous calls for object inspection. The proxy and certain supplementary constructs are presented conceptually as generic object-oriented design patterns. The e ect of these patterns on non-functional qualities of software, such as complexity, performance and power consumption, is reasoned about based on the properties of the D-Bus system. The use of the patterns reduces complexity, but maintains the other qualities at a good level. Finally, we present currently existing means of specifying D-Bus object interfaces for the purposes of code and documentation generation. The interface description language used by the Telepathy modular IM/VoIP framework is found to be an useful extension of the basic D-Bus introspection format.
Resumo:
In this work mathematical programming models for structural and operational optimisation of energy systems are developed and applied to a selection of energy technology problems. The studied cases are taken from industrial processes and from large regional energy distribution systems. The models are based on Mixed Integer Linear Programming (MILP), Mixed Integer Non-Linear Programming (MINLP) and on a hybrid approach of a combination of Non-Linear Programming (NLP) and Genetic Algorithms (GA). The optimisation of the structure and operation of energy systems in urban regions is treated in the work. Firstly, distributed energy systems (DES) with different energy conversion units and annual variations of consumer heating and electricity demands are considered. Secondly, district cooling systems (DCS) with cooling demands for a large number of consumers are studied, with respect to a long term planning perspective regarding to given predictions of the consumer cooling demand development in a region. The work comprises also the development of applications for heat recovery systems (HRS), where paper machine dryer section HRS is taken as an illustrative example. The heat sources in these systems are moist air streams. Models are developed for different types of equipment price functions. The approach is based on partitioning of the overall temperature range of the system into a number of temperature intervals in order to take into account the strong nonlinearities due to condensation in the heat recovery exchangers. The influence of parameter variations on the solutions of heat recovery systems is analysed firstly by varying cost factors and secondly by varying process parameters. Point-optimal solutions by a fixed parameter approach are compared to robust solutions with given parameter variation ranges. In the work enhanced utilisation of excess heat in heat recovery systems with impingement drying, electricity generation with low grade excess heat and the use of absorption heat transformers to elevate a stream temperature above the excess heat temperature are also studied.
Resumo:
Whole-mount preparations were prepared and submitted to NADH-diaphorase and NADPH-diaphorase histochemistry techniques. The myenteric plexus arrangement and the number of neurons were comparatively evaluated among the different portions of the cecum. The neurons from the apical and basal regions were distributed in classes at intervals of 100µm², the means of the corresponding intervals being compared. The ganglia, in both techniques, were often connected by fine bundles, which became thicker in the mesenteric region and in the region next to the cecal ampulla. The number of positive NADH-d neurons was higher than that of NADPH-d neurons in all portions, from both regions. The numbers of reactive NADH-d e NADPH-d neurons were significantly different among the different portions of the cecum, except for the antimesenteric basal and intermediate basal regions, considering the NADH-d neurons. The profile area for the reactive NADH-d e NADPH-d neurons was higher in the apical region than in the basal area. Differences in arrangement, distribution and size of positive NADH-d e NADPH-d neurons in the different cecum portions evidenced the importance of the subdivision of the analyzed organ.