text:
Q: Print_r array problem I have the following code:
<?php
    mysql_connect("localhost", "root", "");
    mysql_select_db("coockie");

    $filename ="excelreport.xls";
    $contents = "date \t ip \t visits \t \n";

    $result=mysql_query("select * from test");

    $mydate='';
    $myip='';
    $visits='';

    while($data=mysql_fetch_assoc($result))
    {
        $mydate.=explode(",", $data['date']);
        $myip.=explode(",", $data['ip']);
        $visits.=$data['visits'];

    }

    print_r($mydate);

    //header('Content-type: application/ms-excel');
    //header('Content-Disposition: attachment; filename='.$filename);
    //echo $contents;
?>

$mydate is outputted as string Array. I need it outputted like array of values. Any suggestions?

A: You are misusing string concatenation operator .=
$mydate.=explode(",", $data['date']);

explode gives you an array, and with .= it's converted to string Array. The proper way is to use [] operator
$mydate=array();
$myip=array();
$visits='';

while($data=mysql_fetch_assoc($result))
{
    $mydate[]=explode(",", $data['date']);
    $myip[]=explode(",", $data['ip']);
    $visits.=$data['visits'];

}

print_r($mydate);

A: You might want to try var_dump instead of print_r. At least for debugging purposes.
var_dump($mydate);

redpajama_set_name: RedPajamaStackExchange


text:
declare module "test-export-20190913222429" {
    class _Foo {
    }
    class _Bar extends _Foo {
    }
    class _Baz {
    }
    /**
     * Default export with 'module.exports =' on a named class.
     */
    export default class extends _Baz {
        constructor(bar: _Bar);
        readonly foo: _Foo;
    }
}

redpajama_set_name: RedPajamaGithub


text:
At What Age Does a Dog Get Its Period?
By: Deborah Lundin
Comstock/Comstock/Getty Images
How Long Does Proestrus Last?
A dog's period, or estrus cycle, is a stage in the reproductive cycle where a dog can become pregnant. Estrus consists of three basic symptom stages, including the stage many consider the period, or time when there is vaginal bleeding. When a puppy gets her first estrus cycle, as well as the frequency or her cycles, depends on her size and breed.
Puppy Puberty
A puppy has her first estrus cycle when she reaches sexual maturity, or puberty. On average, this occurs between 10 and 12 months of age. However, the breed and size of your dog play a role in sexual maturity. Smaller dog breeds, such as Chihuahuas, reach puberty and estrus as early as 6 months of age. Larger dog breeds, such as Newfoundlands, may not begin estrus until 18 to 24 months of age. The normal range of initial estrus is anywhere between 6 and 24 months.
Frequency of Estrus Cycles
On average, your unsprayed female dog begins an estrus cycle every six months, or twice a year. During the first two years, your dog's cycles may not come in regular intervals, as it takes some time for the body to develop and cycle. Breed and size can also play a role in estrus frequency. Smaller breeds may have up to three estrus cycles a year, while larger dogs may only have a cycle every 12 to 18 months. On average, a complete estrus cycle lasts 18 days.
What Occurs During Estrus
As estrus approaches, your dog's hormone levels begin to change. Early symptoms of an estrus cycle, and especially the first cycle, may not be noticeable. You may see slight behavioral changes, such as nervousness, alertness and an increase in urination frequency. During this initial stage, the external vulva swells. Within a couple of days, a bloody vaginal discharge begins. This discharge typically lasts for seven to 10 days before changing to a clear discharge. When this discharge changes to a clear appearance, your dog is able to become pregnant.
Spaying Before Puberty
If you do not plan to breed your dog, spaying should take place before puberty and the first estrus. In addition to reducing accidental pregnancy and dealing with estrus cycles, spaying reduces the risk of breast and other reproductive system cancers. Contrary to previous beliefs, waiting until after the first heat cycle to spay does not provide any health benefits -- it actually increases the risk of breast cancer. Spaying can occur as early as 2 months of age. Talk to your vet about the best time to spay your pup.
VCA Animal Hospitals: Estrus Cycles in Dogs
ASPCA: Estrus or Heat
WebMD: How to Tell If Your Dog's In Heat
Deborah Lundin is a professional writer with more than 20 years of experience in the medical field and as a small business owner. She studied medical science and sociology at Northern Illinois University. Her passions and interests include fitness, health, healthy eating, children and pets.

redpajama_set_name: RedPajamaCommonCrawl


text:
Boeing to offer extended maintenance support for F/A-18 Hornet variants
Boeing has been awarded a $238m contract extension for the provision of additional depot-level maintenance support and sustainment for the F/A-18 A/B/C/D/E/F Hornet and Super Hornet fighters.
Lopamudra
The latest deal is a modification to a previously awarded indefinite-delivery / indefinite-quantity (IDIQ) agreement and was granted by the US Department of Defense.
The contract will see Boeing carry out upgrades to the fighter jets in order to keep them modern and mission-ready for the US Navy and the US Marine Corps (USMC).
It will also include high flight-hour inspections and periodic maintenance inspections, in-service repair and modification works, as well as assorted upgrade and engineering services.
The work will be performed at the company's Cecil Field facility in Jacksonville, Florida, and is expected to be completed in December
Boeing F/A-18 Sustainment programme director Travis McBurnett said: "Our mission is to support the navy's effort to improve readiness.
"The Boeing Cecil Field team has returned 880 modified or repaired F/A-18s to the navy and Marines; we look forward to delivering many more in the coming years."
"Since 1999, the Boeing Cecil Field team has returned 880 modified or repaired F/A-18s to the navy and Marines; we look forward to delivering many more in the coming years."
The Maryland-based US Naval Air Systems Command Patuxent River will serve as the contracting activity.
The F/A-18E/F Super Hornet is a twin-engine, supersonic, all-weather multirole fighter jet that has been designed to perform operation aboard an aircraft carrier, and can be adapted for photoreconnaissance and electronic countermeasure activities.
It is able to perform multiple missions, including air superiority, day-and-night strike with precision-guided weapons, fighter escort, and close air support.
Image: Modification, repair and overhaul work of F/A-18 Hornet at Cecil Field facility. Photo: courtesy of Boeing.
Military Fixed-wing Aircraft Market Size and Trend Analysis including Segments (Multi-role Aircraft, Transport Aircraft, Bomber, Tanker Aircraft, Trainer Aircraft and Others), Key Programs, Competitive Landscape and Forecast, 2021-2031
Military Rotorcraft Market Size and Trend Analysis including Segments (Attack Helicopter, Utility Helicopter, Maritime Helicopter, Multi-mission Helicopter and Others), Key Programs, Competitive Landscape and Forecast, 2021-2031
Defense and Civil Spends on Aircrafts in the United Arab Emirates: 2016 to 2024
Defense and Civil Spends on Aircrafts in Saudi Arabia: 2016 to 2024
Defense and Civil Spends on Helicopters in the United Arab Emirates: 2016 to 2024
U.S. Department of Defense
The Boeing Co
Naval Air Systems Command
US Marine Corp