text:
Q: Elasticsearch Date Range not working I have indexed records like below
                    [0] => Array
                            (
                                [_index] => test_index
                                [_type] => cool_type
                                [_id] => AVy-s52Kahn1F1gX3B0K
                                [_score] => 1
                                [_source] => Array
                                    (
                                        [name] => TEST
                                        [name_alias] =>
                                        [webiste] => www.test.com
                                        [directions] =>
                                        [narrative] =>
                                        [office_function] =>
                                        [deleted_by] =>
                                        [created_at] => 2017-06-09 11:03:27
                                        [updated_at] => 2017-06-09 11:03:27
                                        [deleted_at] =>
                                    )

                            )
                [1] => Array
                            (
                                [_index] => test_index
                                [_type] => cool_type
                                [_id] => AVy-s52Kahn1F1gX3B0L
                                [_score] => 1
                                [_source] => Array
                                    (
                                        [name] => new
                                        [name_alias] =>
                                        [webiste] => www.new.com
                                        [directions] =>
                                        [narrative] =>
                                        [office_function] =>
                                        [deleted_by] =>
                                        [created_at] => 2017-06-18 10:00:00
                                        [updated_at] => 2017-06-18 10:00:00
                                        [deleted_at] =>
                                    )

                            )

I want to get only records between the given days (between 2 date ranges and records for last 30 days and records of today etc). So I have written code like this using Elasticsearch documentation Link. But I am unable to get the records.
$params = [
    'query' => [
        'match_all' => []
    ],
    'filter' => [
        'range' => [
            'created_at' => [
                'gte' => '2017-06-18 00:00:00',
                'lte' =>  '2017-06-19 00:00:00'
            ]
        ]
    ],
    'size' => 10
];

Which converts like this while hitting to elasticsearch
{
    "query": {
        "match_all": []
    },
    "filter": {
        "range": {
            "created_at": {
                "gte": "2017-06-18 00:00:00",
                "lte": "2017-06-19 00:00:00"
            }
        }
    },
    "size": 10
}

Tried below way also
$params = [
    'query' => [
        'range' => [
            'created_at' => [
                'gte' => '2017-06-18 00:00:00',
                'lte' =>  '2017-06-19 00:00:00'
            ]
        ]
    ],
    'size' => 10
];

Which converts like this while hitting to elasticsearch
{
    "query": {
        "range": {
            "created_at": {
                "gte": "2017-06-18 00:00:00",
                "lte": "2017-06-19 00:00:00"
            }
        }
    },
    "size": 10
}

Kindly help me on this.

A: Will you please give us more data on the mapping that you have created. You might have created the "created_at" field as string, where the range query won't work. The query you have written is looking fine to me. For date field you need to create mapping type as 'date' and format as 'dateOptionalTime'.
Please change the mapping and try again the same query.Please refer to the image attached:
I cannot made  the comment right now so posted this answer.


Work is underway on a new multi-use sporting arena that is being built near Pride Park in Derby.
Capital got a behind the scenes look at the work on the new velodrome, which is due to open in November 2014.
250 meter indoor cycling track for track cycling ranging from big events, track leagues and for beginners to use.
The weight of the steelwork used is equivalent to approximately 200 London Buses.
If laid end to end the steel members used in the construction would stretch the length of a marathon.
Project Director for the Derby multi-sports arena, Neil Brook from Bowmer and Kirkland said; "everything is very much progressing to time and on budget and going very well. I think people from around the city can see the scale of it now and they'll see it all coming together over the coming months, as the cladding goes on the building."
Also there to take Capital around the site was Councillor Martin Repton, who is the Cabinet Member for Leisure and Culture at Derby City Council - he said; "it is going to put Derby on the map and I believe it's going to be our own Angel of the North. When trains are coming past people will look out and say, good God, what's that over there? Yes, it's the Derby Velodrome! People are going to be so excited about this."


text:
https://www.farmprogress.com/sites/all/themes/penton_subtheme_farmprogress/images/logos/footer.png
Farm Progress is part of the Informa Markets Division of Informa PLC
WATCH: This Week in Agribusiness
Prime the Pump Resource Center
Serving: United States
Orchard Crops
Tree nuts
Vine Crops
Crop Topics
Beef Quality
Cow-calf
Markets & Quotes
Cash Grain Bids
Livestock/Dairy
Farm Operations
Master Farmers
Farm succession
Max Armstrong
Farm Futures Business Summit 2020
Crop disease
Morning Market Review for Jan. 22, 2020
MORNING Midwest Digest, Jan. 22, 2020
Farm Progress America, January 22, 2020
How to beat SCN resistance
New Holland makes bet on 'wild, wild west' of hemp
Top crop diseases to watch for in 2020
Look at 'whole picture' when addressing climate change
Early fall cover feeds soil
Home>Crops>Rice
Kellogg, Wal-Mart tour Louisiana rice fields
The field day at the LSU AgCenter Rice Research Station at Crowley, La., was a follow-up to a planning meeting held in February for a Master Rice Grower program in collaboration with the Louisiana Master Farmer program, Kellogg and Louisiana Rice Mill. The event allowed farmers to demonstrate how they are good stewards of Louisiana's natural resources.
Bruce Schultz, LSU AgCenter | Jun 30, 2011
Representatives of the Kellogg Co. and Wal-Mart saw firsthand last month how Louisiana rice farmers are using sustainable agricultural practices to produce a crop profitably in an environmentally friendly manner.
The field day at the LSU AgCenter Rice Research Station at Crowley, La., was a follow-up to a planning meeting held in February for a Master Rice Grower program in collaboration with the Louisiana Master Farmer program, Kellogg and Louisiana Rice Mill.
Steve Linscombe, director of the LSU AgCenter Rice Research Station, said the event allowed farmers to demonstrate how they are good stewards of Louisiana's natural resources.
The field day "was very well received by all participants," Linscombe said. "It provided an excellent opportunity for Kellogg to obtain a much better understanding of Louisiana rice production and perhaps more importantly, a much greater appreciation of how good our rice producers are at what they do."
Farmers also benefited from the day, he said. "It also allowed our rice producers to develop a greater appreciation of the justification and overall goals of Kellogg Company's sustainability effort."
Kellogg U.S. Morning Foods President David Denholm said he was amazed by what he saw and heard. "We have a real opportunity to help consumers understand the importance of the sustainable agriculture advancements being made here."
Denholm said Wal-Mart sold 50 million pounds of Kellogg's Special K cereal that uses rice and 20 million pounds of Kellogg's Rice Krispies, the rice for which is grown by Louisiana farmers.
"Kellogg is the single most important customer for rice in Louisiana," said Bill Dore of Louisiana Rice Mill, based in Crowley.
Tres Bailey of Wal-Mart said the corporation has its own sustainability initiative in effect with goals to reduce waste, conserve energy and sell products that are produced sustainably. Wal-Mart will not sell beef that contributes to deforestation of the Amazon rainforest, he said, adding that the examples shown at the field day were impressive.
"You are the model in many cases for the best practices in agriculture," he told farmers. "The innovations we saw today are fantastic."
The sustainability movement is not intended to force environmental practices to be used, Bailey said. "This is not meant to be the stick. This is meant to be the carrot approach."
Wal-Mart also recognizes that food producers have to make a profit. "Without economic viability for farmers, there is no food," he said.
The field day was the result of months of work and planning, said Diane Holdorf, Kellogg vice president of environmental stewardship. The group had met in February to lay the groundwork for this sustainability effort.
Consumers have become more conscious about buying products with environmentally sound origins, Holdorf said. "They want to know they are doing the right thing."
At the same time, Holdorf said, feeding the global population of 9 billion people by 2050 will require three times the present natural resources worldwide. Kellogg is well on its way to achieving goals to reduce its environmental impact by 20 percent in 10 years, she said.
Sustainability is not a new concept for rice farming and research, Linscombe told the Kellogg and Wal-Mart representatives.
"This station has been working for the past 102 years toward sustainability," he said. And some of the greatest progress toward becoming more sustainable has come in the past 20 years.
Kellogg and Wal-Mart representatives toured the Rice Research Station to see how new rice varieties are developed. Linscombe said the station scientists have worked with more than 50 institutions worldwide to develop new rice varieties and farming practices.
Water quality is a concern in rice production, and more use of farming practices such as drill seeding has helped farmers address that issue, Linscombe said. "Rice does an excellent job of improving water quality."
LSU AgCenter rice specialist Johnny Saichuk showed the group a rice field farmed by Buck Leonards and Sam Theunissen. The field was drill-seeded, a practice that was revived with the Clearfield rice technology developed at the Rice Research Station.
Drill seeding was once the dominant planting technique in Louisiana, but it was replaced by water seeding with the use of aircraft. Saichuk said drill seeding uses less water and can be used with conservation tillage methods.
LSU AgCenter agronomist Dustin Harrell told the group about the benefits of laser leveling and a new soil test for nitrogen that has the potential to allow farmers to reduce the amount of fertilizer needed for a crop.
Harrell is conducting a trial of the new test on the Zaunbrecher Brothers farm. He said the goal is to obtain the best yield with the least amount of fertilizer.
Jennifer James, an Arkansas farmer and chair of the USA Rice Federation Sustainability Task Force, said sustainability has been an important consideration in agriculture. She said farmers have contributed through checkoff dollars to research that has reduced soil erosion, water usage and fertilizer use while providing an improved environment for waterfowl.
"I'm really proud of all the research checkoff dollars that we have raised," James said. She said a FieldPrint Calculator computer program will be available for farmers to determine the environmental impacts of their individual operations.
Rice farming creates habitat for ducks and wading birds, said Bob Dew, of Ducks Unlimited. "Rice is very important for waterfowl," he said. "What's good for rice is good for ducks."
He said the Gulf Coast prairie is vital to waterfowl migration. "We winter more ducks here than in any place in North America. Part of that is because of rice fields."
Rice fields will become even more important for wintering birds as the Louisiana coast erodes, Dew said.
Ernest Girouard, director of the Louisiana Master Farmer program and a retired farmer, explained the requirements to obtain Master Farmer status. He said 124 individuals have earned the certification in Louisiana.
The program has caught the attention of the U.S. Environmental Protection Agency, Girouard said. "The EPA wants this program implemented in the Chesapeake Bay area."
Suggested Event
Farm Futures Business Summit - Ag Finance Boot Camp
Jan 22, 2020 to Jan 24, 2020

redpajama_set_name: RedPajamaCommonCrawl


text:
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/** Functions to send synthetic key and mouse events. */
const EventHelper = {
  /**
   * Sends a single key stroke (down and up) with the given key code and
   *     keyboard modifiers (whether or not CTRL, ALT, SEARCH, and SHIFT are
   *     being held).
   * @param {!EventHelper.KeyCode} keyCode
   * @param {!chrome.accessibilityPrivate.SyntheticKeyboardModifiers} modifiers
   */
  simulateKeyPress: (keyCode, modifiers = {}) => {
    let type = chrome.accessibilityPrivate.SyntheticKeyboardEventType.KEYDOWN;
    chrome.accessibilityPrivate.sendSyntheticKeyEvent(
        {type, keyCode, modifiers});

    type = chrome.accessibilityPrivate.SyntheticKeyboardEventType.KEYUP;
    chrome.accessibilityPrivate.sendSyntheticKeyEvent(
        {type, keyCode, modifiers});
  },

  /**
   * Sends a synthetic mouse event.
   * @param {number} x
   * @param {number} y
   * @param {?number} delayMs The delay between mouse press and mouse release,
   *     in milliseconds.
   */
  simulateMouseClick: (x, y, delayMs) => {
    let type = chrome.accessibilityPrivate.SyntheticMouseEventType.PRESS;
    chrome.accessibilityPrivate.sendSyntheticMouseEvent({type, x, y});

    const callback = () => {
      type = chrome.accessibilityPrivate.SyntheticMouseEventType.RELEASE;
      chrome.accessibilityPrivate.sendSyntheticMouseEvent({type, x, y});
    };

    if (delayMs !== null) {
      setTimeout(callback, delayMs);
    } else {
      callback();
    }
  },

  /**
   * Defines the key codes for specified keys.
   * @enum {number}
   * @const
   */
  KeyCode: {
    ESC: 27,
    END: 35,
    HOME: 36,
    LEFT_ARROW: 37,
    UP_ARROW: 38,
    RIGHT_ARROW: 39,
    DOWN_ARROW: 40,
    C: 67,
    V: 86,
    X: 88
  }
};

redpajama_set_name: RedPajamaGithub


It is probably safe to say that you spent a good chunk of money on your Gilbert countertops, so why not take a little time to maintain them to keep them looking new and staying functional for years to come. There are a few simple things you should do and you should avoid, ensuring proper maintaining of your countertops.
Take for instance, applying a granite sealer to your countertop. It is important that once you have your Gilbert countertops installed, that you properly seal them with a granite sealer. This is because granite is a porous stone and can be easily scratched or damaged. If your countertop is not sealed it is more susceptible to stains from oil, wine, and other substances, such as mustard.
When cleaning your Gilbert countertop, you will want to avoid the use of glass cleaners, degreasers, and other cleaning products with bleach. These products contain acids in them that can scratch and damage the countertop surface. If you happen to use these cleaners, over time your granite sealer will start to break down and weaken its protection. Once the granite sealer has weakened, it will leave your Gilbert countertops more prone to unwanted stains. Avoiding other cleaners, such as vinegar, ammonia, and citric acid cleaners like, lemon or orange, will help eliminate the potential weakening of the sealer and prevent any unwanted scratches to the countertop surface. Bathroom cleaners, as well as tile and grout cleaners are other chemicals to avoid because they contain harsh abrasives, also causing scratches and damage to the granite sealer.
Using warm water and plain soap can cause soap build-up over time and eventually cause the countertop to lose its glossy shine. The simplest and best way to clean your Gilbert countertop is to use warm water and biodegradable, phosphate-free dish soap, along with a soft sponge or dishtowel. This is one sure way to not damage the surface with any scratches. There are special cleaners that can be purchased at home improvement stores, specifically made for cleaning granite.


Description:An escape room is an interactive adventure game, meant to bring to life puzzle video games you may have played. You and a group of your friends will be locked inside of a room filled with puzzles, clues and mysterious objects.
Recent trends: Anna Morna Anastasia devine Anastasia Devine is from Prague, Czech Republic. She began posing and making adult movies in Early in her career she released some lactating and pregnant galleries.


Recently we told you about Ethan Brown's magnificent investigative report on the Jeff Davis 8 and how that case may have influenced True Detective. In the event you're unfamiliar with the report and the case, here's the gist: for years prostitutes have been turning up dead in and around the southwestern Louisiana town of Jennings, which sits in Jeff Davis Parish, and for years local authorities have claimed that a serial killer is to blame. But Brown's exhaustive, meticulously reported piece alleges that something else may be at play, namely that the prostitutes may have murdered by local law enforcement officers.
Recently our office has come under fire by an investigative reporter from New Orleans and a author of fiction stories. They have written some very negative articles involving the Jeff Davis Sheriff's Office, including the Multi-agency Investigative Team (MAIT) formed under former Sheriff Ricky Edwards on the eight deaths that occurred in our area from 2005 to 2009. They have drudged up investigations and incidents, some going back thirty years, insinuating corruption in our Sheriff's Office. Well, I don't dispute the Sheriff's Office has had problems, but the past is the past.
When you elected me as your sheriff in 2011, I promised to bring professionalism to the department, which included having integrity that is beyond reproach, and gaining the respect and trust of our citizens. We have worked hard at this and will continue to do so. Having said that, I would like to say I resent out-of-town journalists trying to paint our parish with a broad brush that insinuates we are corrupt.
As your sheriff, I want to insure the victim's families and the public that we are continuing to work on these eight investigations. I have the utmost confidence in the people I have assigned and the members of the MAIT from other agencies. They will continue the investigations into these deaths until all leads are exhausted. I also would like to make it clear that the MAIT and the law enforcement personnel working these investigations are not hiding anything. We are doing everything possible to solve these cases. It is unfortunate out-of-town journalists are taking information and twisting it to support a fictional conspiracy theory to gain followers and sell a story.
"The past is the past," you guys.
If you're interested in learning more, Ethan Brown is doing a Reddit AMA soon, possibly next Friday. And this may also be of interest to True Detective fans.


text:
Q: 10Mbps bidirectional wireless transmission with an MCU I have a Teensy 3.6 microcontroller it has the following specs

*

*180 MHz ARM Cortex-M4 with Floating Point Unit

*1M Flash, 256K RAM, 4K EEPROM

*Microcontroller Chip MK66FX1M0VMD18 (PDF link)

*USB High Speed (480 Mbit/sec) Port

*2 CAN Bus Ports

*32 General Purpose DMA Channels

*22 PWM Outputs

*4 I2C Ports

*11 Touch Sensing Inputs

*14 Hardware Timers

I want a way to communicate with the microcontroller with a speed of 10Mbps in a short indoor range.
I have been searching a lot but could not find any helpful information. I found the following Wifi solutions but they all do not support that high amount of data.

*

*ESP8266

*ESP32

*Realtek RTL8710

*EMW3265

I also thought of using ENC28J60 Ethernet to SPI Header Board and connect the ethernet port to a router but not sure if will be able to get 10Mbps
I just want a simple way to communicate with the MCU remotely 10Mbps is it that difficult ?

A: Have a look at ATWILC1000 from Atmel. It is a 802.11bgn "SPI network card" (or SDHC). You have to implement lwIP in your application. It should definitely work at 10Mbps if your MCU and bus is fast enough.
You could also look at TI eg. CC3100MOD (as far as I remember they have IP stack build in so I am not sure about the speed).

A: According to your documentation page, your board has

*

*Ethernet MAC, capable of full 100 Mbit/sec speed

So you just need to wire the RMII interface and SPI control pins to a suitable Ethernet PHY.  The documentation mentions that a LAN8720A is known to work.

A: If line-of-sight, use LEDs (HP and others make high-speed LEDs) and photodiodes.

A: Instead of looking for a high bandwidth data link, consider looking for efficient compression / decompression options for whatever it is you are trying to transmit. There are very few applications I can think of that demand this kind of sustained througput.

redpajama_set_name: RedPajamaStackExchange