legend solar

News in Brief: SunPower collaborates with Michigan's largest utility for a residential pilot programme, UOSSM's Syria Solar Initiative completes a 127kWp solar system to provide electricity to hospitals, an Australian aboriginal community starts construction on a solar-diesel hybrid project backed by ARENA and Utah's Legend Solar acquires Aspire Energy.

News in Brief: Utah's Museum of Ancient Life installs 1,500 solar panels, California's Great America amusement park is now 100% renewable, Intel unveils the second largest solar carport in the country, SunPower installs systems at Macy's and Bloomingdales for Earth Week, and the 10MW US Army solar facility at Fort Rucker is now online.


In axial piston swash plate compressors such as used in motor vehicle air conditioning systems, it is common practice to employ a plurality of double-ended pistons that are driven by the swash plate and develop high pressure refrigerant gas in discharge chambers located in opposite ends of the compressor. The nature of this pumping mechanism is such that high pressure pulsations are generated that can cause noise and vibration problems throughout the air conditioning system. For this reason, it is common practice to either add a muffler to the system or incorporate a muffler arrangement directly in the compressor itself.
For example, in the compressor disclosed in U.S. Pat. No. 4,360,321 assigned to the assignee of this invention, there is a muffler arrangement incorporated directly in the compressor structure. In this particular muffler arrangement, one of the discharge cavities opens directly to a single discharge port leading from the compressor and the other discharge cavity (i.e. the remote one) communicates therewith within the compressor by a pair of attenuation chambers that are interconnected by an attenuation passage and ported to the respective discharge cavities. The volumes of the attenuation chambers are substantially equal and the length of the attenuation passage is substantially longer than the corresponding longitudinal dimension of the attenuation chambers so as to attenuate the discharge pulses from the remote discharge cavity and thereby the overall pulse effect to an acceptable output level totally within the structure of the compressor. While such a muffler arrangement has proven generally satisfactory, it has been found that the gas discharged directly from the one discharge cavity to the compressor outlet can cause undesirable noise and vibration disturbances in the air conditioning system under certain conditions.


West Bromwich murder: Man shot dead in stationary car Published duration 27 December 2016

image copyright Google image caption The junction of High Street and Dartmouth Street in West Bromwich has been cordoned off

A man has been shot dead as he sat in a stationary car.

The man, who was a passenger in the car, was shot in the head in West Bromwich shortly after 14:30 GMT, West Midlands Police said.

The victim, who was in his 30s, died at the scene in Dartmouth Street and police have opened a murder investigation.

Police said the junction of High Street and Dartmouth Street was cordoned off while forensic inquiries took place.

A post-mortem examination is due to take place.

Det Insp Martin Slevin said: "The investigation is at an early stage, my officers are currently carrying out inquiries at the scene and house to house and CCTV. There will also be extra reassurance patrols in the local area."


1. Field of the Invention
The present invention relates to a system and method for handling and processing semiconductor wafers and, in particular, to a transfer chamber with an integral load lock and staging station.
2. Description of the Related Art
In the processing of semiconductor devices, such as transistors, diodes, and integrated circuits, a plurality of such devices are fabricated simultaneously on a thin slice of semiconductor material, termed a substrate or wafer. When manufacturing these devices, it is imperative that the substrate does not become contaminated by particulate. Accordingly, substrate processing systems typically include a load lock apparatus that provides a substantially particle free environment from which substrates may be selectively withdrawn by a substrate handling assembly for placement into one or more processing modules.
There are several general problems that are associated with prior art substrate processing systems. For example, the addition of a load lock to a substrate processing system tends to increase the footprint of the substrate processing station. However, it generally is more desirable to reduce the footprint of the substrate processing system. Another general problem associated with prior art substrate systems is that when the substrate is removed from the one or more processing modules it typically is very hot (e.g., from 500xc2x0 to 1200xc2x0 C.). Accordingly, the substrate usually is allowed to cool before/after it is removed from the substrate processing system. This cooling time tends to decrease the throughput of the substrate processing system.
A need, therefore, exists for a substrate processing system with a load lock that has a reduced footprint and allows the substrate to cool after processing without significantly reducing throughput.
Accordingly, one aspect of the present invention involves a substrate processing system comprising a substrate handling chamber and a load lock chamber. The load lock chamber has a gated inlet for the transfer of a substrate into and out of the load lock chamber and a gated port for transferring a substrate between the load lock chamber and the substrate handling chamber. A staging shelf is positioned above the load lock chamber in the substrate handling chamber. The substrate processing system further includes a first substrate handler in the substrate handling chamber for moving a substrate between the load lock chamber and the staging shelf.
Another aspect of the present invention involves a method for processing semiconductor substrates. In the method, a first substrate is placed at a load lock station that is located inside a load lock. The first substrate is moved from the load lock station to a staging shelf located inside a substrate handling chamber. A second substrate is moved from a cooling station in the substrate handling chamber to the load lock station. A third substrate is moved from a substrate processing chamber to the cooling station. The first substrate is moved from the staging shelf to the processing chamber.
Yet another aspect of the present invention involves a substrate processing system that comprises a substrate handling chamber. A load lock port is located in a wall of the substrate handling chamber for the transfer of a substrate from a load lock chamber to the substrate handling chamber. Within the substrate handling chamber are a staging shelf, a rest station, a cooling station. The system also includes a first substrate handler configured to move the substrate to and from the load lock chamber, the staging shelf, the rest station and the cooling station.
Still yet another aspect of the present invention involves a substrate processing system that comprises a substrate handling chamber. A load lock port is located in a wall of the substrate handling chamber and is for transferring a substrate from a load lock chamber into the substrate handling chamber. The system includes a first substrate handler configured to rotate, extend and retract to move substrates to and from one or more positions within the substrate handling chamber. The system also includes a second substrate handler positioned on a fixed track and including a Bernoulli wand for straight line movement to move a substrate into and out of a substrate processing chamber adjacent the substrate handling chamber. The first substrate handler and the second substrate handler are configured such that a substrate can be positioned by the first substrate handler within the substrate handling chamber beneath the Bernoulli wand to transfer the substrate between the first substrate handler and the second substrate handler.
All of these embodiments are intended to be within the scope of the invention herein disclosed. These and other embodiments of the present invention will become readily apparent to those skilled in the art from the following detailed description of the preferred embodiments having reference to the attached figures, the invention not being limited to any particular preferred embodiment(s) disclosed.


1. Field of the Invention
The present invention relates generally to imaging, and more particularly to measuring dielectric properties using a near-filed scanning microwave microscope.
2. Related Art
Dielectric thin film research has become increasingly important as the demand grows for smaller, faster, and more reliable electronics. For example, high permittivity thin films are under study in order to fabricate smaller capacitors while minimizing leakage. Low permittivity materials are being sought to allow smaller scale circuits while minimizing undesirable stray capacitance between wires. Nonlinear dielectrics, which have a dielectric permittivity which is a function of electric field, are being used in tunable devices, particularly at microwave frequencies. Finally, ferroelectric thin films are a solution for large-scale, non-volatile memories.
All of these dielectric thin film technologies demand high-quality, homogeneous films. However, this goal is often difficult to achieve because of the complicated fabrication process involved. Consequently, it is important to have a set of reliable techniques for evaluating thin film properties, such as permittivity and tunability. A number of different techniques are available. One standard low-frequency (xe2x89xa61 MHz) method uses thin film capacitors to measure the normal and in-plane components of the permittivity tensor. Another uses reflection measurements from a Corbino probe. Still another method provides microwave measurements of permittivity by using transmission measurements through a microstrip structure. However, these techniques average over large areas and involve depositing thin film electrodes which itself can alter the properties of the sample. Dielectric resonators have been used as well, but also have the problem of low spatial resolution. More recently, near-field microscopy techniques have allowed quantitative measurements with spatial resolutions much less than the wavelength. These techniques use a resonator which is coupled to a localized region of the sample through a small probe and have the advantage of being non-destructive. However, it is still difficult to arrive at quantitative results and maintain high spatial resolution.
Therefore, what is needed is a non-destructive, non-invasive, system and method for imaging quantitative permittivity and tunability at high spatial resolution.
The present invention meets the above-mentioned needs by providing a system, apparatus, and method for quantitatively imaging the dielectric properties of bulk and thin film dielectric samples. Permittivity and dielectric tunability are two examples of dielectric properties capable of measurement by the present invention.
The system uses a near-field scanning microwave microscope (NSMM). The NSMM is comprised of a coaxial transmission line resonator having one end coupled to a microwave signal source and the other end terminating with an open-ended coaxial probe. The probe, which has a sharp-tipped center conductor extending beyond the outer conductor, is held fixed while the sample is raster scanned beneath the probe tip. A spring-loaded cantilever sample holder gently presses the sample against the probe tip with a force of about 50 xcexcN (microNewtons). A feedback circuit keeps the microwave signal source locked onto a selected resonant frequency of the microscope resonator. Because the electric fields generated by the microwave signal are concentrated at the probe tip, the resonant frequency and quality factor of the resonator are a function of the sample properties near the probe tip. Once the microwave signal has been applied to the sample through the probe tip, it is reflected back through the system. The feedback circuit is then able to receive the reflected microwave signal from the coaxial transmission line resonator and calculate a resonant frequency shift. The resonant frequency shift value is then stored in a computer. The computer also controls the scanning of the sample beneath the probe. To obtain quantitative results, the system uses calibration curves to exhibit the relationship between the calculated resonant frequency shift data values and the dielectric properties of a sample.
The invention described herein has the advantage of being able to provide quantitative results for samples on a length scale of about 1 xcexcm or less. This allows for the measuring of sample sizes relative to the actual environment in which they will be used.
The invention also has the advantage of providing more accurate quantitative results because the sharp protruding center conductor is represented as a cone during modeling.


Taiwan has landed war planes on a normally busy highway to simulate a response to a Chinese attack on its airfields.

Tuesday's exercise is part of annual drills designed to showcase the island's military capabilities and resolve to repel an attack from across the Taiwan Strait amid perceptions of a rising threat.

China considers the island its own territory, to be annexed by force if necessary.

President Tsai Ing-wen presided at the exercise in the southern county of Changhua. She said China's long-distance training exercises, including sending fighter jets to circle the island, were threatening regional peace and stability, requiring Taiwan to maintain a high degree of vigilance.

Aircraft deployed included U.S.-made F-16, French Mirage 2000 and Taiwan-made IDF fighter jets and U.S.-made E-2K airborne early warning aircraft.


Learn More

Levine Cancer Institute, part of Carolinas HealthCare System, received full accreditation from the American College of Surgeons Commission on Cancer (CoC) for its commitment to providing comprehensive, high-quality cancer care for patients system-wide.

The Institute also earned the CoC’s Gold Star Award for demonstrating a Commendation level of compliance with the eight standards that represent the full scope of the cancer program at seven of the Institute’s network locations.

The eight standards that form the Gold Star Award are drawn from the following six areas of program activity: Cancer committee leadership, cancer data management, clinical management, research, community outreach and quality improvement.

Nationwide Levine Cancer Institute is one of three of the largest networks in the CoC and the only recipient in this category that has received this level of accreditation. Network facilities accredited include: Carolinas Medical Center’s Main, Mercy, Pineville, University, Union and Northeast locations and Cleveland Regional Medical Center.


Q:

RabbitMQ SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"

I'm trying to connect to RabbitMQ in Java with InteliJ IDEA (Maven 3.3.9), but an error occurs when doing the required step (creating ConnectionFactory object before connecting to RabbitMQ).
For detailed information: Maven itself installs amqp-client:5.7.2 and org.slf4j-api:1.7.26.
What am I missing here? I tried to import org.slf4j.impl.StaticLoggerBinder, but Java itself doesn't know this one.
package TestPackage;

import Configuration.RabbitMQConf;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.ConnectionFactory;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

public class TestingClass {
    static ConnectionFactory rbmqFactory;
    static Connection rbmqConn;
    static Channel rbmqChannel;

    public static void main(String[] args){
        RabbitMQConf rbmqConf = new RabbitMQConf();

        rbmqFactory = new ConnectionFactory();
        rbmqFactory.setUsername(rbmqConf.username);
        rbmqFactory.setPassword(rbmqConf.password);
        rbmqFactory.setVirtualHost(rbmqConf.virtualHost);
        rbmqFactory.setHost(rbmqConf.host);
        rbmqFactory.setPort(rbmqConf.port);
    }
}

I tried to run this and got this error:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

here's my pom.xml file :
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>XXXX</groupId>
  <artifactId>XXXX</artifactId>
  <version>1.0-XXXX</version>

  <properties>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <dependencies>
    <dependency>
      <groupId>com.rabbitmq</groupId>
      <artifactId>amqp-client</artifactId>
      <version>5.7.2</version>
    </dependency>
  </dependencies>
</project>

A:

The link in the error pretty much explains what's the problem and how to fix it. You just need to add one of the logging implementations to the dependencies in pom.xml.

This warning message is reported when the
  org.slf4j.impl.StaticLoggerBinder class could not be loaded into
  memory. This happens when no appropriate SLF4J binding could be found
  on the class path. Placing one (and only one) of slf4j-nop.jar
  slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or
  logback-classic.jar on the class path should solve the problem.

<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.2.3</version>
</dependency>


Wedu Global

Wedu (also known as Wedu Global) is a social enterprise based in Bangkok, Thailand. The organisation's mission is to provide "high potential young women" ("Rising Stars") from Asian communities with access to long-term mentorship and financing options to complete higher education and develop leadership skills.

Wedu works with NGOs, educational institutions, and individuals based in communities across Asia ("Talent Spotters") to identify young women demonstrating "strong leadership potential" with a focus on those from underserved communities. Wedu's Talent Spotters include the Asian University for Women, Women LEAD, Khmer Youth Association, Thabyay Education Foundation, and Hands in Outreach.  Wedu also works with Kiva and is currently a member of the Clinton Global Initiative (part of the Clinton Foundation).

History
Mario Ferro and Mari Sawai, 2009 graduates of the London School of Economics Masters in Development Program, founded Wedu (an acronym for women's education) in 2012 as their response to the lack of female leaders in Asia. They began by identifying potential community leaders in Cambodia with support of the Khmer Youth Association. The organisation has since grown from 5 Rising Stars in its first cohort to 140 as of September 2015. Wedu plans to serve 1,000 Rising Stars by 2018.

Business Model
Wedu seeks to identify young women with strong leadership potential in underserved communities. Once selected, the organisation assigns the "Rising Stars" with a mentor who serves as a guide in the development of their leadership skills.

Mentors come from various sectors and levels of work experience. According to Wedu, mentors supplement their leadership skills through the Learning Objectives in the Mentorship Program.
Wedu provides scholarships to Rising Stars who are pursuing or applying for a university education in Asia. All applicants are required to take part in the Wedu Mentorship Program for a minimum of 6 months before they are eligible to apply for financial support. Wedu utilizes Future Income Sharing Agreements (FISAs): financial instruments more flexible and affordable than university loans, as reported by the organisation. Rising Stars who are granted FISAs can contribute a small percentage of their future income for a fixed amount of time, leveraging income-based contributions to finance the education of future Rising Stars. According to Wedu, this contributes to a sustainable force for the advancement of women across Asia.

Achievements
 1st Prize D2D Business Plan Competition 2012.
 1st Prize University of Cambridge CUE 1K Competition 2012.
 Social Enterprise Start-up of the year 2012 at Cambridge University.
 1st Prize Global Social Venture Competition 2013, South East Asia round and finalist in the global round.
 3rd Prize Global Solution Award 2013, by Women Deliver.

Legal and funding
Wedu was incorporated in London in May 2012 and is a registered charity in the United Kingdom and a foundation in Thailand.

References

External links
 http://www.weduglobal.org/

Category:Social enterprises
Category:Charities based in Thailand


Everyday Dutch Oven

Sharing my love of Dutch Oven cooking with everyday recipes and tips for the outdoor cook.


Klaus Töpfer

Klaus Töpfer (born 29 July 1938 in Waldenburg, Silesia) is a German politician (CDU) and environmental politics expert. From 1998 to 2006 he was executive director of the United Nations Environment Programme (UNEP).

Early life and education
Töpfer studied economics in Mainz, Frankfurt and Münster. In 1968 he earned his doctorate at the University of Münster.

Early career
In 1971, Töpfer was appointed Head of Planning and Information of the Federal State of Saarland, a post he held until 1978. During that time, he also served as a visiting professor at the Academy of Administrative Sciences in Speyer, and consulted several countries on development policy, among them Egypt, Brazil and Jordan. He spent the following year at the University of Hannover as Professor and Director of the Institute for Spatial Research and Planning.

Political career
In 1985 Töpfer became State Minister for the Environment and Health in the government of Minister President Bernhard Vogel of Rhineland-Palatinate.

In 1987 Töpfer became Federal Minister for the Environment, Nature Conservation and Nuclear Safety under Chancellor Helmut Kohl. During his time in office, Germany established the Federal Office for Radiation Protection as a response to the Chernobyl disaster. From 1994 to 1998 he served as Federal Minister for Regional Planning, Civil Engineering and Urban Development. He was member of the Bundestag from 1990 to 1998 and member of the Steering Committee of the CDU from 1992 to 1998.

In 1998 Töpfer was appointed Under Secretary General of the United Nations, General director of the United Nations office in Nairobi and Executive Director of the United Nations Environment Programme. Among the milestones of his eight-year tenure are a number of important environmental agreements, including the Cartagena Protocol on Biosafety and the Stockholm Convention on Persistent Organic Pollutants. Töpfer was also closely involved in behind-the-scenes negotiations in support of the Kyoto Protocol on climate change. In June 2006 he was succeeded in this office by Achim Steiner. As director of UNEP, he has had a key role in gauging and attempting to remedy the environmental costs of the 2004 Asian tsunami.

Later career
In 2009 Töpfer was appointed founding director of the Institute for Advanced Sustainability Studies (IASS) which performs research between climate problems and sustainable economics. This institute is located at Potsdam, Germany. The institutes funding is provided by the federal government of Germany Federal Ministry of Education and Research (Germany).

Töpfer was rumored as a possible successor to the German presidency after Christian Wulff's resignation. He later served as co-chairman of the Federal Government’s Ethics Commission on a Safe Energy Supply.

Since 2013 Töpfer has been heading the project "DEMOENERGY – The Transformation of the Energy System as the Engine for Democratic Innovations" together with Claus Leggewie and Patrizia Nanz (both Institute for Advanced Study in the Humanities Essen, Germany). In 2016, the United Nations Economic and Social Council (ECOSOC) appointed Töpfer as co-chairman (alongside Juan Somavia) of an Independent Team of Advisors on positioning the UN development system for the Sustainable Development Goals.

In 2018, Energy Community appointed Töpfer to serve as mediator in an energy dispute between Kosovo and Serbia.

Other activities

Corporate boards
 Theva, Member of the Senior Advisory Council (since 2017)
 Porsche, Member of the Sustainability Advisory Board (since 2016)
 ProSiebenSat.1 Media, Member of the Advisory Board (since 2011)
 Deutsche Bank, Member of the Climate Change Advisory Board (2011)
 Volkswind Gruppe, Member of the Advisory Board (2009-2015)

Non-profit organizations
 atmosfair, Patron
 Stiftung Zukunftsfähigkeit, Member of the Advisory Board
 Helmholtz Association of German Research Centres, Member of the Senate (2007-2009)
 Institute for Energy Efficiency in Production (EEP), University of Stuttgart, Member of the Advisory Board
 German Foundation for World Population (DSW), Member of the Advisory Board
 German-Russian Raw Materials Forum, Patron
 Holcim Foundation for Sustainable Construction, Member of the Board
 Agora Energiewende, Chairman of the Council (2013-2018)
 German Council for Sustainable Development (RNE), Member (2001-2010, appointed ad personam by Chancellor Gerhard Schröder)

References

External links

https://archive.is/20130416041104/http://www.unep.org/Documents/Default.asp?DocumentID=43&ArticleID=3174
https://web.archive.org/web/20110524114350/http://www.gleeds.tv/index.cfm?video=99
https://www.iass-potsdam.de/en/people/klaus-topfer

Category:1938 births
Category:Living people
Category:People from Wałbrzych
Category:Environment ministers of Germany
Category:Club of Rome members
Category:Christian Democratic Union of Germany politicians
Category:German officials of the United Nations
Category:People from the Province of Lower Silesia
Category:United Nations Environment Programme
Category:Grand Crosses with Star and Sash of the Order of Merit of the Federal Republic of Germany
Category:People from Freiberg
Category:Members of the European Academy of Sciences and Arts
Category:State ministers of Rhineland-Palatinate


The Vegan community really wants to enjoy the great taste of Cool Ranch Doritos. We miss them too much to live without them.

The amount of research put into food technology should be advanced enough to achieve almost identical tasting vegan versions of the Cool Ranch variation. We would love to see an either completely revised version of the original flavor or a completely separate vegan friendly version.

Please hear our cry and help make this possible by signing this petition to get the Frito-Lay company to make some (minor) changes in its recipe. So we can all enjoy the great taste we all love.


Effect of Antiplatelet Drugs on D-Dimer Levels: A Systematic Review and Meta-analysis.
D-dimer is a product of fibrinolysis. In clinical practice, D-dimer levels are commonly used to rule out venous thromboembolism. Antiplatelet drugs may influence D-dimer levels, potentially affecting the accuracy of this diagnostic tool. To evaluate the effect of antiplatelet drugs on D-dimer levels, we performed a systematic review and meta-analysis of all published articles on this topic (PROSPERO registration number CRD42017058932). We electronically searched EMBASE, MEDLINE Epub, Cochrane, Web of Science, and Google Scholar (100 top relevance) (last search on October 5, 2017). We included randomized controlled trials, cohort studies, and cross-sectional studies conducted in humans, with a drug exposure time of at least 7 days. Two reviewers independently selected eligible articles and extracted the data. Five controlled trials, 7 cohort studies, and 5 cross-sectional studies were finally included. Meta-analysis involving all 1117 participants showed no change in dimer levels (standardized mean difference: -0.015, 95% confidence interval, 0.182-0.151, P = 0.855). In conclusion, antiplatelet drugs do not seem to influence D-dimer levels.


#include "Halide.h"
#include <stdio.h>

using namespace Halide;

int main(int argc, char **argv) {
    // Turning on tracing wraps certain Exprs. This shouldn't effect
    // bounds inference.

    Func f, g;
    Var x;
    f(x) = clamp(x, 0, 100);
    f.compute_root();
    g(x) = f(f(x));
    // f is known to be bounded, so this means we need 101 values of
    // f. This shouldn't be confused by tracing loads of f or stores
    // to g.
    f.trace_loads();
    g.trace_stores();

    // Shouldn't throw an error about unbounded access.
    g.compile_jit();

    printf("Success!\n");

    return 0;
}


The Government is being urged to engage in a comprehensive land-redevelopment exercise in order to address unrelieved landlessness among Jamaicans.

But lecturer at the University of the West Indies (UWI) and member of the National Reparations Committee Dr Jermaine McCalpin has emphasised that in doing so, the Government needs to steer clear of what he characterises as the Zimbabwe approach.

"We will have to do redistribution, but let us be clear on how it happened in Zimbabwe," said McCalpin yesterday during a Gleaner Editors' forum held at the company's Kingston offices.

McCalpin noted that Zimbabwe President Robert Mugabe angered European nations when he sequestered lands instead of redistributing them en masse to the people.

"That's not where I think we need to go," he said.

Land reform in Zimbabwe officially began in 1980 with the signing of the Lancaster House Agreement aimed at more equitably distributing land between black subsistence farmers and white Zimbabweans of European ancestry who had traditionally enjoyed superior political and economic status.

The programme's targets in the African state were intended to alter the ethnic balance of land ownership.

The Reparations Committee has noted that "the issue of landlessness, and, by extension, the social, political, and economic exclusion faced by post-slavery Jamaicans, is one of the harsh realities of modern-day Jamaica."

Like Jamaica, inequalities in land ownership were inflated by growing overpopulation, depletion of overutilised tracts, and escalating poverty in subsistence areas along with the underutilisation of land on commercial farms.

At independence from the United Kingdom in 1980, the Zimbabwean authorities were empowered to initiate the necessary reforms as long as land was bought and sold on a willing basis. The British government would finance half the cost.

In the late 1990s, UK Prime Minister Tony Blair terminated the arrangement when funds available from Margaret Thatcher's administration were exhausted, repudiating all commitments to land reform.

"Concerning land, we will have to go the route of redistribution of hundreds of thousands of acres of Crown lands. There is no two ways about it."

Chair of the Reparations Committee Professor Verene Shepherd suggested that Government could purchase idle lands in private hands.

"They will have to negotiate to allow people who have lands that they are not using to make them available to people who need land," Shepherd said, echoing a sentiment expressed by McCalpin.

"Government should buy back some of that land and redistribute," added Shepherd. "We have lost that sense of moral responsibility, where lands can be distributed without monetary exchange."

Shepherd suggested that if landowners are averse to anything but monetary exchange, they must make the property available at a reasonable price to ensure that Jamaicans have access to land.

She conceded that in 2015, it was unrealistic to take over lands that are owned by others.

"Negotiation has to be the way. Appeal to people who have too much land they are not even using."

Central Clarendon Member of Parliament Mike Henry emphasised that economic realities must be placed at the centre of any move for reparation as it relates to land distribution.

Henry disclosed that he had established an economic advisory committee to guide and influence the provision of land and the requisite wherewithal to empower poor Jamaicans economically.

He said Government should approach owners in a non-confrontational manner to purchase lands.

"The ownership of lands is one of the issues that declines our growth in a real way," he said. "We need to take the lands that belong to the National Land Agency to economically develop people around the value of land."

Added Henry: "We can't have successful land distribution without the ability of people to grow and produce, so it's a development process that is structured."


Q:

Repair vs Optimize table in MySQL

Does Optimize include repair table or vice versa internally?
Is it possible to execute repair table only if found corrupt, any tools can support this?

(I am using MyISAM table engine)

A:

REPAIR TABLE Fixes Table Corruption
Issues, such as Open File Handle
Counts, Resolution of Rows with
Variable Length Data, and so forth.
OPTIMIZE TABLE simply copies the
table to remove unused space. If the
table is MyISAM, ANALYZE TABLE is
also performed to update index
statistics for the sake of the Query
Optimizer. If the table is InnoDB,
ANALYZE TABLE is bypassed.

You could have mysqld auto check and repair all MyISAM tables.
In fact the book MySQL 5.0 Certification Study Guide, Section 30.5, Pages 444,445 state:

The MySQL server can be instructed to
  check and repair MyISAM tables
  automatically. With automatic repair
  enabled, the server checks each MyISAM
  table when it opens it to see whether
  the table was closed properly the last
  time it was used and is not marked as
  needing repair. If the table is not
  OK, the server repairs it.
To enable automatic MyISAM table
  maintenance, start the server with the
  --myisam-recover option, The option value can consist if a comma-separated
  list of one or more of the following
  values:

DEFAULT for the default checking.
BACKUP tells the server to make a backup of any table that is must
  change.
FORCE causes table recovery to be performed even if it would cause the
  loss of more than one row of data.
QUICK performs quick recovery : Tables that have no holes resulting
  from deletes or updates are skipped.

For example, to tell the server to
  perform a force recovery of MyISAM
  tables found to have problems but make
  a backup of any tables it changes, you
  can put the following lines in an
  option file:
[mysqld] myisam-recover=FORCE,BACKUP

You could also create a file called /root/StartUp.sql and put the REPAIR TABLE commands you want inside. Then add init-file=/root/StartUp.sql to /etc/my.cnf and restart mysql to trigger the init script.


Ibáñez del Campo, Carlos ( born Nov. 3, 1877 , Chillán, Chile—died April 28, 1960 , Santiago ) Chilean president from 1927 to 1931 and from 1952 to 1958. Although by preference Ibáñez was aligned with foreign reactionaries, he made many constructive domestic reforms.

After a military career of 30 years, Ibáñez participated in a revolt in September 1924 against the government of Arturo Alessandri Palma. From 1925 to 1927 Ibáñez in effect controlled Chile while serving as minister of war and then as minister of the interior. In 1927 he forced the resignation of President Emiliano Figueroa Larraín and until 1931 held office as chief executive. Backed by the army, he exiled or jailed all opposition. His regime was directed to material development, especially of the ailing nitrate industry, which he sought to rescue through the creation of a monopoly corporation, Compañía de Salitre de Chile (Cosach), heavily dependent upon U.S. capital. When Cosach failed and the world depression put an end to the influx of foreign capital, the Chilean economy crumbled. Discontent with Ibáñez’ authoritarianism became overt, and in July 1931 he fled across the Andes went into exile in Argentina.

The former dictator returned from exile in May 1937 and in September of the following year, with the support of Chilean Nazisfascists, attempted an armed revolt that promptly failed. In August of 1939 he led another uprising that was again quickly crushed. His propensity for unsuccessful coups coupled with his reactionary views and Nazi fascist associations caused his defeat when he ran for the presidency in 1942. In 1952, however, the 75-year-old Ibáñez again ran for the presidency with arch-reactionary populist support (he was closely aligned with Argentina’s President Juan Perón) but and won the election through an appeal directed to for integrity in government that was directed at the depressed urban elements and the rural workers. His presidency was in marked contrast to his dictatorship in the 1920s, for he now demonstrated an ability to conciliate opposition, reorganized government departments to promote efficiency, and encouraged industrial growth. Despite his efforts, however, when he left office at age 81, the Chilean economy was in desperate straits, and the government was as corrupt as when he left took officeat the age of 81.


Huperzine A protects C6 rat glioma cells against oxygen-glucose deprivation-induced injury.
The protective effects of huperzine A against oxygen-glucose deprivation (OGD)-induced injury in C6 cells were investigated. OGD for 6h and reoxygenation for 6h enhanced phosphorylation and degradation of IkappaBalpha and nuclear translocation of nuclear factor-kappa B (NF-kappaB), triggered overexpression of inducible nitric oxide synthase (iNOS), cyclooxygenase-2 (COX-2) and nitric oxide (NO) in C6 cells. Along with inhibiting acetylcholinesterase activity, treatment with 1 microM huperzine A inhibited activation of NF-kappaB, attenuated iNOS, COX-2 and NO overexpression, and promoted survival in C6 cells subjected to OGD insult. The protective effects of huperzine A were partly mediated by "cholinergic anti-inflammatory pathway" through alpha7 nicotinic acetylcholine receptor.


package org.ovirt.engine.core.common.businessentities;

import java.util.Arrays;

public enum VmBackupPhase {

    INITIALIZING("Initializing"),
    STARTING("Starting"),
    READY("Ready"),
    FINALIZING("Finalizing");

    private String name;

    VmBackupPhase(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static VmBackupPhase forName(String name) {
        return Arrays.stream(values()).filter(val -> val.name.equals(name)).findAny().orElse(null);
    }
}


Travel, outdoor, and life adventures

Category Archives: Nature

Just have to share this with you. Nandi is a baby African elephant born here at Reid Park Zoo on August 20th. Since day one the boisterous little girl has been bringing smiles to all who see her. I especially love this video where she greets her keeper friends in the morning. Pure joy!

I thought that perhaps I was biased in thinking she was so darn cute, but nope, she is officially cute – Nandi made it onto Buzzfeed’s list of The 37 Cutest Baby Animal Photos of 2014! Nandi comes in at Number 34.

In Ecuador an elite team of Swedish athletes, competing in an endurance race, shared a meatball with a stray dog. After that the scruffy, determined mutt never left their side. The partnership was tested during the water portion of the race as they were advised not to allow the dog in their kayaks. The team pushed off and fully anticipated leaving sans four-legged friend. Get your tissue ready, here comes the tearjerker…

However, Arthur (as he’d come to be known) refused to be left behind. He splashed in and swam alongside the team. The team pulled him on-board and Arthur finished the race as the honorary 5th member of their 4 person team (they rank 12th in the world by the way). Get another tissue because there’s more to the story…

The connection between Arthur and the Swedish team was so deep that they raised money to take Arthur home with them. He is finishing up quarantine and will soon be living with Mikael (seen below), the man who shared that fateful meatball.


Went to a farm stand this weekend and the cauliflower was so beautiful. I couldn't wait to get into my kitchen to start experimenting with it. While cooking this soup, my kitchen smelled fantastic. I hope you enjoy it.

CURRIED CAULIFLOWER SOUP

2 tablespoons butter (salted)

½ onion, diced*

2 tablespoons of fresh ginger**, chopped (approximately 2 “)

2 cloves garlic, chopped

½ teaspoon dried curry

¼ teaspoon dried coriander

½ teaspoon dried cumin

1 head of cauliflower

32 oz. of chicken or vegetable broth

Kosher Salt

Freshly Ground Pepper

Saute onion in butter until tender, do not brown, approximately 3 minutes.

Add ginger and garlic to pot, sauté another 2 minutes.

Add dried herbs and sauté another 2 minutes.

Add cauliflower and broth. Bring to a boil, approximately 10 minutes.

Lower heat and cook on medium until cauliflower is soft, approximately 10-15 minutes.

Turn off heat and let cool awhile before putting in blender or Cuisinart. Cream soup and taste for seasoning.

Add salt and pepper to taste.

Notice I didn't add any cream - you don't need it - it's gets creamy by blending it in your Cuisinart or blender.


Breaking News

Former Miami Dolphins cornerback Will Allen is a mini-Bernie Madoff ... so says the SEC which claims the ex-NFL player ran a multi-million dollar Ponzi scheme and blew some of the cash in clubs and casinos.

According to the Securities and Exchange Commission, Allen -- who signed a $12 million contract with the Dolphins in 2006 -- was a co-owner of Capital Financial Partners, which made loans to pro athletes.

The SEC says 36-year-old Allen and his partner raised $31 million from investors but only loaned out $18 mil ... and used some of the remaining money to PARTY THEIR ASSES OFF!

Now, the government agency is going after Allen and his partner for all of the money they allegedly stole -- plus interest and penalties.

FYI -- Allen was a 1st round pick in the 2001 NFL Draft ... and played in the league until 2012.


GCHQ and the NSA have reportedly been spying on e-mail exchanges between MPs and their constituents as a matter of course for the last few years.

Documents released by spook whistleblower Edward Snowden in 2013 revealed details of the top secret Tempora scheme, which allowed the British intelligence agency to intercept data travelling on backbone Internet cables crossing the Irish Sea and English Channel. Bulk storage of this data by the UK's eavesdropping nerve centre GCHQ is allowed under current law.

According to a Computer Weekly report, co-written by acclaimed investigative journalist Duncan Campbell, parliament's switch to Microsoft e-mail cloud services (Office 365) in 2014 means that even UK-to-UK communications often travel via Redmond’s data centres in Ireland and the Netherlands. That's the conclusion of a study carried out by the IT publication. It tracked the path of hundreds of MPs’ e-mails, and found that 65 percent of those messages were routed overseas.

“Every message also contained references to having been passed through clusters of scanning computers connected to GCHQ and located in the UK, France, and Germany,” Computer Weekly said.

While the Tempora system “only” collects metadata, including sender, recipient, and subject line, the e-mails can also be scanned for “keywords” through a network run by Symantec-owned MessageLabs, which provides spam filtering and malware detection services to parliament.

According to Snowden’s disclosures, a secret cyber security project dubbed "Haruspex" allows GCHQ operatives to use MessageLabs’ abilities to scan e-mails for “national security” purposes.

Meanwhile the US National Security Agency’s (NSA) notorious Prism system grants it access to parliamentary e-mail and documents directly through orders given to Microsoft.

Both Microsoft and MessageLabs declined to comment on this story when approached by Ars on Thursday morning. At time of publication, no response had been received from GCHQ's press team.

MPs will discuss the controversial Investigatory Powers Bill when it returns to the floor of the House of Commons on Monday for its report stage and third reading. The proposed law would give sweeping new powers to the UK's security services.


Preparation of Interconnected Biomimetic Poly(vinylidene fluoride-co-chlorotrifluoroethylene) Hydrophobic Membrane by Tuning the Two-Stage Phase Inversion Process.
A facile strategy was applied for poly(vinylidene fluoride-co-chlorotrifluoroethylene) (PVDF-CTFE) hydrophobic membrane preparation by tuning the two-stage phase inversion process. The exposure stage was found to benefit the solid-liquid demixing process (gelation/crystallization) induced by the solvent evaporation and the subsequent phase inversion induced by immersion benefit the liquid-liquid demixing. It was confirmed that the electrospun nanostructure-like biomimetic surface and interconnected pore structure can be expected by controlling the exposure duration, and 300 s was considered as the inflection point of exposure duration for PVDF-CTFE membrane through which a tremendous variation would show. The micro/nanohierarchical structure in the membrane surface owing to the crystallization of PVDF-CTFE copolymer was responsible for the improvement of membrane roughness and hydrophobicity. Meanwhile, the interconnected pore structure in both the surface and the cross-section, which were formed because of the crystallization process, offers more mass transfer passages and enhances the permeate flux. The membrane then showed excellent MD performance with high permeate flux, high salt rejection, and relatively high stability during a 48 h continuous DCMD operation, according to the morphology, pore structure, and properties, which can be a substitute for hydrophobic membrane application.


One man is behind bars after an overnight shooting in Bowling Green.

Bowling Green Police say they were called to a home on Woodford Avenue around 2:30 a.m. Saturday morning, for a family disturbance with shots fired.

According to a police report, 60-year-old Robert Stahl, of Bowling Green, was arrested Saturday morning in connection with the shooting.

The victim was transported to an area hospital where their condition is unknown.

Stahl is charged with Assault 1st Degree- Domestic Violence and was taken to the Warren County Jail.


951 F.2d 1256
Tatev.Hassinger*
NO. 91-3180
United States Court of Appeals,Fifth Circuit.
Dec 18, 1991

1
Appeal From:  E.D.La.

2
AFFIRMED.

*
 Fed.R.App.P. 34(a);  5th Cir.R. 34.2


     Case: 16-30975      Document: 00513925162         Page: 1    Date Filed: 03/24/2017

           IN THE UNITED STATES COURT OF APPEALS
                    FOR THE FIFTH CIRCUIT
                                                                         United States Court of Appeals
                                                                                Fifth Circuit
                                    No. 16-30975                                FILED
                                  Summary Calendar                        March 24, 2017
                                                                           Lyle W. Cayce
                                                                                Clerk
UNITED STATES OF AMERICA,

                                                 Plaintiff-Appellee

v.

EDUARDO GUERRERO,

                                                 Defendant-Appellant

                   Appeal from the United States District Court
                      for the Western District of Louisiana
                             USDC No. 3:15-CR-57-1

Before REAVLEY, OWEN, and ELROD, Circuit Judges.
PER CURIAM: *
       Eduardo Guerrero pleaded guilty to conspiracy to distribute and to
possess with the intent to distribute 50 grams or more of methamphetamine
or 500 grams or more of a mixture containing methamphetamine, and he was
sentenced to 120 months of imprisonment, to be followed by five years of
supervised release. Guerrero’s guilty plea was conditional, as he reserved the

       * Pursuant to 5TH CIR. R. 47.5, the court has determined that this opinion should not
be published and is not precedent except under the limited circumstances set forth in 5TH
CIR. R. 47.5.4.
    Case: 16-30975     Document: 00513925162     Page: 2   Date Filed: 03/24/2017

                                  No. 16-30975

right to appeal the denial of his motion to suppress evidence seized from a truck
registered to him that was driven by Raul Tuda.
      Guerrero argues that the district court erred in denying his motion to
suppress the evidence seized from the truck. He contends that there was no
reasonable suspicion to justify a prolonged detention. Additionally, Guerrero
challenges the voluntary nature of Tuda’s consent to search the vehicle and the
use of a canine. When reviewing a denial of a motion to suppress evidence, we
review “factual findings for clear error and the ultimate constitutionality of
law enforcement action de novo.” United States v. Robinson, 741 F.3d 588, 594
(5th Cir. 2014).
      Tuda and the passenger were traveling as unlicensed drivers in a vehicle
that was not registered to them. They exhibited nervous behavior and were
unable to tell Trooper Justin Stephenson their intended destination. After
conferring with the passenger, Tuda stated that Jackson was his destination
but then changed his answer to Atlanta. The vehicle had visible modifications,
including a rerouting of the exhaust pipe and a new fuel filter on one of the fuel
tanks. These factors, when taken together, demonstrate that the continued
detention after the issuance of the traffic citation was supported by reasonable
suspicion. See United States v. Pack, 612 F.3d 341, 361 (5th Cir. 2010); United
States v. Fishel, 467 F.3d 855, 856 (5th Cir. 2006); United States v. Brigham,
382 F.3d 500, 506 (5th Cir. 2004) (en banc).
      Challenging Tuda’s consent to the search of the vehicle, Guerrero
contends that the language barrier prevented Tuda from understanding that
he was consenting, that there was no evidence of verbal consent, that the
written consent form was not presented as evidence, that there was no
evidence that the consent form was read and explained to Tuda, and that there

                                        2
    Case: 16-30975        Document: 00513925162       Page: 3    Date Filed: 03/24/2017

                                       No. 16-30975

was no evidence that Tuda was informed of his Miranda 1 rights.                    The
voluntariness of consent is a factual finding reviewed for clear error. United
States v. Solis, 299 F.3d 420, 436 (5th Cir. 2002).
      Trooper Stephenson was polite throughout the encounter and did not
exhibit coercive behavior. Tuda was cooperative and complied with Trooper
Stephenson’s requests. Trooper Stephenson provided Tuda with a Spanish-
language written consent to search form, and the document contained
information on the right to refuse consent. Moreover, the record does not
indicate that Tuda’s intelligence level was diminished or impaired in any
manner. Finally, given how well the drugs were hidden in the fuel tank, Tuda
could have believed that no incriminating evidence would be found. Moreover,
“[t]here is no ‘Miranda requirement’ attending a simple request for permission
to search.” United States v. Arias-Robles, 477 F.3d 245, 250 (5th Cir. 2007).
Under the totality of the circumstances, the district court’s finding of voluntary
consent is not clearly erroneous. See Solis, 299 F.3d at 436.
      Guerrero also argues that Tuda’s consent was not an independent act of
free will. As Tuda’s consent was not given during an illegal detention, we need
not consider this prong of the consent inquiry.                 See United States v.
Khanalizadeh, 493 F.3d 479, 484 (5th Cir. 2007).
      Citing to Rodriguez v. United States, 135 S. Ct. 1609 (2015), Guerrero
argues that the use of a canine to perform an open-air sniff prolonged the
detention without providing reasonable suspicion. Rodriguez is inapplicable
to the facts of the instant matter because, as discussed above, Trooper
Stephenson had reasonable suspicion of criminal activity to extend the
detention and Tuda had consented to a search of the vehicle. Cf. Rodriguez,
135 S. Ct. at 1614.

      1   Miranda v. Arizona, 384 U.S. 436 (1966).

                                             3
    Case: 16-30975   Document: 00513925162     Page: 4   Date Filed: 03/24/2017

                                No. 16-30975

     Guerrero fails to show that the district court erred in denying his motion
to suppress. The judgment of the district court is AFFIRMED.

                                      4


While we learned earlier that John McCain was responsible for handing over the 35-page "dossier" of compromising, if arguably fake, revelations about Trump's connections to Russia over to the FBI, the identity of the actual creator, who was said to be an ex-British intelligence service, remained a mystery. No longer. Courtesy of the WSJ, we now know his name: the former MI-6 officer, now working for a private security-and-investigations firm "who produced the dossier of unverified allegations about President-elect Donald Trump’s activities and connections in Russia" is Christopher Steele, a director of London-based Orbis Business Intelligence.... and before readers google him, beware, there is a male gay porn star with the same name, who may or may not be into "golden showers." Steele, 52 years old, is one of two directors of Orbis, along with Christopher Burrows, 58. Burrows, reached at his home outside London on Wednesday, said he wouldn’t “confirm or deny” that Orbis had produced the report. A neighbor of Mr. Steele’s said Mr. Steele said he would be away for a few days. In previous weeks Mr. Steele has declined repeated requests for interviews through an intermediary, who said the subject was “too hot.” HAHAHA so this guy and former MI6 agent who wrote up the 4Chan report that Trump had Russian prostitutes taking part in golden showers, and this man is declining to be interviewed by reporters over the thirty-five page fake dossier he wrote about Trump. Funny how an MI6 officer who goes by two names who wrote this garbage about President Trump, for some reason is unwilling to be contacted by people who have questions on his report on Trump that was posted to 4Chan as fan fiction. So President Trump willing to work with Russia is wrong, but the Obama CIA and Liberal media spewing on a lie through involvement with the foreign intelligence of MI6 is somehow ok. See folks Democrats and their media are so desperate for dirt on President Trump, that they have to use foreign secret services to write up fake reports about President Trump.


Q:

How can I get an array out of a select optgroups and options?

Say I want an object with this format
    var optgroups = [
    {
      name: "Cat1",
      options: [
        { text: "item1", value: "1" },
        { text: "item4", value: "4" },
      ],
    },
    { name: "Cat2", options: [{ text: "item2", value: "2" }] },
    { name: "Cat3", options: [{ text: "item3", value: "3" }] },
    ];

And I want to create it based on what's already populated in a select element in a form
<select>
   <optgroup label="Cat1">
      <option value="1">item1</option>
      <option value="4">item4</option>
   </optgroup>
   <optgroup label="Cat2">
      <option value="2">item2</option>
   </optgroup>
   <optgroup label="Cat3">
      <option value="3">item3</option>
   </optgroup>
 </select>

What JavaScript code (jQuery is also an option) would achieve such an object?
This is an old code base so things like React/Vue are not an option.

A:

You can use document.querySelectorAll to get all the <optgroup> elements to loop over and use it again to find all the options.

const optgroups = [];
document.querySelectorAll("#mySelect > optgroup").forEach(group=>{
  const obj = {name: group.label, options: []};
  group.querySelectorAll('option').forEach(option=>{
    obj.options.push({text: option.textContent, value: option.value});
  });
  optgroups.push(obj);
});
console.log(optgroups);
<select id="mySelect">
  <optgroup label="Cat1">
    <option value="1">item1</option>
    <option value="4">item4</option>
  </optgroup>
  <optgroup label="Cat2">
    <option value="2">item2</option>
  </optgroup>
  <optgroup label="Cat3">
    <option value="3">item3</option>
  </optgroup>
</select>


12.03.2009

Philly's Joaquin Rivera - R.I.P.

"Saludos Familia:

It is with great sadness and personal loss that I announce the death of un gran companero de lucha por los derechos de los puertorriquenos en EEUU/a great loss of a brother in the struggle of PRs civil rights Joaquin Rivera. He passed away from a heart attack in Philadelphia.

Joaquin was a resident of Philadelphia since 1965 and from a very early age he played guitar. He was a member of the Philadelphia Young Lords, the Puerto Rican Alliance and founding member of the National Congress for PR Rights (NCPRR). He was also the founder and leader of Los Pleneros del Batey, a group that performed around the country and at all NCPRR Convention including in Philadelphia last month. In addition, Joaquin was a counselor at Olney HS where he also was the faculty advisor to the Aspira Club for decades.

The PR community has lost a tremendous cultural worker but his legacy will live on. Pray for him and his famly".


Description: Correspondence between the Defense Base Closure and Realignment Commission (BRAC) and Donald Rumsfeld and between Jeb Bush and the Commission. In them, the Commission seeks answers as to why Rumsfeld did not include his additional recommendations for base closures in an earlier list. In other letters, Jeb Bush argues in favor of making Cecil Field should be made the Navy's East Coast Master Jet Base.

Description: Letters from Gregory Davis, Edward Woods, and John W. McKinnon to the Defense Base Closure and Realignment Commission (BRAC) protesting the suggested closure of Portsmouth Naval Shipyard. Includes a petition with twenty signatures.


/*
 * 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.solr.highlight;

import java.util.regex.Pattern;

import org.apache.lucene.search.highlight.Fragmenter;
import org.apache.lucene.search.highlight.NullFragmenter;
import org.apache.solr.common.params.HighlightParams;
import org.apache.solr.common.params.SolrParams;
import org.apache.solr.common.util.NamedList;

/**
 * {@link org.apache.lucene.search.highlight.Fragmenter} that tries to produce snippets that "look" like a regular
 * expression.
 *
 * solrconfig.xml parameters:
 *

 *
hl.regex.pattern: regular expression corresponding to "nice" fragments.

 *
hl.regex.slop: how far the fragmenter can stray from the ideal fragment size.
       A slop of 0.2 means that the fragmenter can go over or under by 20%.

 *
hl.regex.maxAnalyzedChars: how many characters to apply the
       regular expression to (independent from the global highlighter setting).

 *

 *
 * NOTE: the default for maxAnalyzedChars is much lower for this
 * fragmenter.  After this limit is exhausted, fragments are produced in the
 * same way as GapFragmenter
 */

public class RegexFragmenter extends HighlightingPluginBase implements SolrFragmenter
{
  protected String defaultPatternRaw;
  protected Pattern defaultPattern;

  @Override
  public void init(@SuppressWarnings({"rawtypes"})NamedList args) {
    super.init(args);
    defaultPatternRaw = LuceneRegexFragmenter.DEFAULT_PATTERN_RAW;
    if( defaults != null ) {
      defaultPatternRaw = defaults.get(HighlightParams.PATTERN, LuceneRegexFragmenter.DEFAULT_PATTERN_RAW);
    }
    defaultPattern = Pattern.compile(defaultPatternRaw);
  }

  @Override
  public Fragmenter getFragmenter(String fieldName, SolrParams params )
  {
    numRequests.inc();
    params = SolrParams.wrapDefaults(params, defaults);

    int fragsize  = params.getFieldInt(   fieldName, HighlightParams.FRAGSIZE,  LuceneRegexFragmenter.DEFAULT_FRAGMENT_SIZE );
    int increment = params.getFieldInt(   fieldName, HighlightParams.INCREMENT, LuceneRegexFragmenter.DEFAULT_INCREMENT_GAP );
    float slop    = params.getFieldFloat( fieldName, HighlightParams.SLOP,      LuceneRegexFragmenter.DEFAULT_SLOP );
    int maxchars  = params.getFieldInt(   fieldName, HighlightParams.MAX_RE_CHARS, LuceneRegexFragmenter.DEFAULT_MAX_ANALYZED_CHARS );
    String rawpat = params.getFieldParam( fieldName, HighlightParams.PATTERN,   LuceneRegexFragmenter.DEFAULT_PATTERN_RAW );

    Pattern p = rawpat == defaultPatternRaw ? defaultPattern : Pattern.compile(rawpat);

    if( fragsize <= 0 ) {
      return new NullFragmenter();
    }

    return new LuceneRegexFragmenter( fragsize, increment, slop, maxchars, p );
  }

  ///////////////////////////////////////////////////////////////////////
  //////////////////////// SolrInfoMBeans methods ///////////////////////
  ///////////////////////////////////////////////////////////////////////

  @Override
  public String getDescription() {
    return "RegexFragmenter (" + defaultPatternRaw + ")";
  }
}


///
//
// LibSourcey
// Copyright (c) 2005, Sourcey <https://sourcey.com>
//
// SPDX-License-Identifier: LGPL-2.1+
//
/// @addtogroup base
/// @{

#include "scy/application.h"
#include "scy/memory.h"
#include "scy/logger.h"
#include "scy/error.h"
#include "scy/singleton.h"

namespace scy {

namespace internal {

    static Singleton<Application> singleton;

    struct ShutdownCmd
    {
        Application* self;
        void* opaque;
        std::function<void(void*)> callback;
    };

}

Application& Application::getDefault()
{
    return *internal::singleton.get();
}

Application::Application(uv::Loop* loop) :
    loop(loop)
{
    LDebug("Create")
}

Application::~Application()
{
    LDebug("Destroy")
}

void Application::run()
{
    uv_run(loop, UV_RUN_DEFAULT);
}

void Application::stop()
{
    uv_stop(loop);
}

void Application::finalize()
{
    LDebug("Finalizing")

#ifdef _DEBUG
    // Print active handles
    uv_walk(loop, Application::onPrintHandle, nullptr);
#endif

    // Shutdown the garbage collector to safely free memory before the app exists
    GarbageCollector::instance().finalize();

    // Run until handles are closed
    run();
    assert(loop->active_handles == 0);
    //assert(loop->active_reqs == 0);

    LDebug("Finalization complete")
}

void Application::bindShutdownSignal(std::function<void(void*)> callback, void* opaque)
{
    auto cmd = new internal::ShutdownCmd;
    cmd->self = this;
    cmd->opaque = opaque;
    cmd->callback = callback;

    auto sig = new uv_signal_t;
    sig->data = cmd;
    uv_signal_init(loop, sig);
    uv_signal_start(sig, Application::onShutdownSignal, SIGINT);
}

void Application::waitForShutdown(std::function<void(void*)> callback, void* opaque)
{
    LDebug("Wait for shutdown")
    bindShutdownSignal(callback, opaque);
    run();
}

void Application::onShutdownSignal(uv_signal_t* req, int /* signum */)
{
    auto cmd = reinterpret_cast<internal::ShutdownCmd*>(req->data);
    LDebug("Got shutdown signal")

    uv_close((uv_handle_t*)req, [](uv_handle_t* handle) {
        delete handle;
    });
    if (cmd->callback)
        cmd->callback(cmd->opaque);
    delete cmd;
}

void Application::onPrintHandle(uv_handle_t* handle, void* /* arg */)
{
    LDebug("Active handle: ", handle, ": ", handle->type)
}

//
// Command-line option parser
//

OptionParser::OptionParser(int argc, char* argv[], const char* delim)
{
    char* lastkey = 0;
    auto dlen = strlen(delim);
    for (int i = 0; i < argc; i++) {

        // Get the application exe path
        if (i == 0) {
            exepath.assign(argv[i]);
            continue;
        }

        // Get option keys
        if (strncmp(argv[i], delim, dlen) == 0) {
            lastkey = (&argv[i][dlen]);
            args[lastkey] = "";
        }

        // Get value for current key
        else if (lastkey) {
            args[lastkey] = argv[i];
            lastkey = 0;
        }

        else {
            LDebug("Unrecognized option:", argv[i]);
        }
    }
}

} // namespace scy

/// @\}


Wednesday, 2 August 2017

Six Reason For Late Periods To More Difficult Girls/Women (Other than Pregnancy)

Periods :-

A Periods is the a part of the menstrual cycle while a female bleeds from her vagina for some days. For maximum girls this happens each twenty eight(28) days or so, but it's common for intervals to start ultimately than this, ranging from day twenty four(24) to thirty five(35).

Six Reason For Late Periods :-

There are a few other factors that you can blame on your missing or delayed intervals. Gynaecologist Dr Arundhati Dhar tells you what may be the purpose of delayed intervals.

● Stress :- Hypothalamus, a place to your brain in which quite a few hormones on your durations are regulated gets affected because of pressure. So in case you are dealing with a smash-up or demise within the circle of relatives or another lifestyles event, the pressure will be the purpose of your overdue length or overlooked duration.

● Thyroid Disorder :- A thyroid imbalance whether it's far hypothyroidism or hyperthyroidism can postpone your durations. So in case you word any symptom of thyroid sickness, be sure to check along with your health practitioner.

● Chronic Disease :- Any chronic contamination like Celiac ailment (characterised by lactose intolerance) that is left undiagnosed or untreated can effect the functioning of your trendy bodily systems and bring about not on time periods.

● Birth Control Pills :- Missing or overdue duration can also be the aspect effect of a start manipulate tablet that you have taken. it is able to additionally be a end result of other strategies like hormonal IUDs, implants or maybe photographs.

● Premature Menopause :- This isn't always very common, but some women underneath 40 have early menopause which is likewise called a untimely ovarian failure. in conjunction with lacking duration signs of premature menopause consist of night time sweats, hot flashes and vaginal dryness.

PCOS: PCOS, a hormonal imbalance can cause abnormal intervals. Hair boom on face and chest, ability fertility issues and issue in dropping weight are some of the alternative signs and symptoms of PCOS.