Team Shooting, there were some extra bags to carry up to the snowpark on Staubaier Glacier.
Icetools produces board/ski/bootbags as well as backpacks. They also got back protectors, crashpants and knee protectors. The backprotectors are partly made out of memory foam, they are really light and adopt to the body shape. And then they offer a wide range of accessories. Stuff one regularly needs, but forgets to buy. Compact screwdriver sets to adjust the binding. Board dryers for normal plugs but also for 12V plugs in cars, and much more. Just visit icetools.de.
Backlit Thilo before drop in.
There is some good Architecture on Stubaier Glacier. The viewing platform "Top of Tyrol" was built by Kathrin Aste with her office LAAC from Innsbruck.
Fellow Julbo team athlete Daniela Hochmuth and me trying to make some more interesting selfie poses while showing off our new Julbo goggles and helmets. It was good fun meeting some friends up on the glacier. Finally got to ride again.


With the touch of a button, you can now decide whether to vent heat externally, or capture condensation internally and drain via a hose.
This convertible feature makes it ideal for boats, RVs, and campers who use vented units, as well as apartments and condos where traditional venting isn't an option.Plus, it measures just 24" wide and 22" deep... much smaller than traditional combos... making it perfect anywhere space is at a premium. The front-loading Combo also makes laundry easier by eliminating the need to move a heavy wet load from the washer to the dryer-so it's great for seniors or those with physical challenges.
Of course clean laundry is the top priority... and we're happy to say that the Super Combo delivers. The unit features 14 programmed wash and dry functions tailored to all fabric types. That way you can be confident that your towels will come out clean and your delicates will be safe.
What's more, the Super Combo not only meets upcoming federal energy standards for 2015, but also the much stricter standards for 2018, meaning that in 5 years, it will still be in the same league as brand new units.
This machine is the perfect laundry solution for RVs, offering features and capabilities never before offered in a combo washer-dryer.
The Super Combo 22" depth is very small compared to a normal washer allowing it to fit any motor home or travel trailer. The Super Combo is very energy efficient using very little water, very little electricity, and putting out a very small amount of waste.
Venting booster fan option to blow air up to 50 ft.
Does it come with the hot and cold water hoses?
Yes, the hot and cold water hoses are included.
Can I order this unit in black?
Is there a gentle cycle with reduced wash/spin speed?
Yes, there is a "Delicates" fabric option ('Delicate' and 'Wool' are the labels on the program menu). The drum will spin @ 500 rpm instead of 800 rpm or the max 1000 rpm. 'Kids' on the program menu will also spin @ 500 rpm.
Where does the lint go if we use the ventless option?
This unit has a self-cleaning pump thus does not require cleaning of link after drying. Instead, there is a convenient coin trap that is to be cleared regularly.
How tall (Height ) is it???
How does the water intake and waste hook up? Portable or fixed?
Water intake and water drainage are just like a residential machine. Hot & Cold intakes are on the upper right hand side of the back and the drain hose is already attached.
How much space do you need behind the w/d?


text:
Q: Multiple Switch Statements Okay, I have one PHP file which needs to contain several switch($_GET['']) statements. For example: switch($_GET['id']), switch($_GET['open']), switch($_GET['number'])... Do I have to close it like:
switch($_GET['id'])
{

}

Or:
switch($_GET['open'])
{

};

One below another with or without semicolon?
This is my index.php:
It does not fully work. My php file is like this (Index.php):
<?php
// THE MAIN SITE
switch($_GET['open'])
{
    default: include("Home-Page.php");
    case 'Site': include("LetsStart/Pages/Home.php"); break;
    case 'Links: switch ($_GET['topics'])
    {
        default: include("LetsStart/Pages/Links.php"); break;
        case 'Tourism': include("LetsStart/Pages/Tourism.php"); break;
        case 'Finance': include("LetsStart/Pages/Finance.php"); break;
        case 'Health Care': include("LetsStart/Pages/HealthCare.php"); break;
    }
    break;
    case 'About Us': switch ($_GET['details'])
    {
        default: include("LetsStart/Pages/AboutUs.php"); break;
        case 'What We Do': include("LetsStart/Pages/WWD.php"); break;
        case 'Our History': include("LetsStart/Pages/OurHistory.php"); break;
    }
    break;
}
// ENCYCLOPEDIA
switch($_GET['letter'])
{
    case 'B': switch($_GET['term'])
    {
        default: include("LetsStart/Pages/TheEncyclopedia/Letter-B-Main.php"); break;
        case 'Term 1': include("LetsStart/Pages/TheEncyclopedia/B/1.php"); break;
        case 'Term 2': include("LetsStart/Pages/TheEncyclopedia/B/2.php"); break;
        case 'Term 2': include("LetsStart/Pages/TheEncyclopedia/B/3.php"); break;
    }
    break;
}
?>

It keeps loading my home page and the first page from the second switch.

A: You do not need a semicolon after the closing bracket of a switch statement (same as an if statement).

A: You don't need semicolon, because the $_GET['id'] is a variable, not a string. Read this http://www.w3schools.com/php/php_switch.asp

redpajama_set_name: RedPajamaStackExchange


You look at the shoe corner (somehow all my shoes end up in corners)…and there is this little girl trying hard to pull out her neck to be noticed…you give her this glance and you can almost feel her smile, an assurance that she will not disappoint your other choice of clothes. What do you do? Wave a good morning and tell her, sweetheart… take a lead on how we are going to look today.
All shiny and excited, I want the attention to be on the only shiny part of my body today: my feet. So picking the other pieces to wear is more of a calm affair, a mix of what I consider "not competing" for attention so as to give the right focus to the shoes.
Black is always on my mind because half my life is spent in black clothes. I am throwing in the brown jacket because of the unpredictable Nairobi weather : it gives the necessary warmth and still looks great when rained on. Plus, it's the only piece I have that compliment the shoes.
Happy with the final look :). ..I'm here thinking, what took me so long to put these shoes on… So go ahead, pick that little shiny something that you have been ignoring for so long, you just might discover a new feeling. My new feeling is shiny!!!
Great read, and I love the shoes, I wish we shared shoe size, looking great dear, continue doing what you do best.
I have a shiny handbag somewhere in my closet, saved for special occasions, which funnily enough, haven't come through yet, reading this, am like, what the heck, am just gonna carry it any day i want, to hell with the special occasions, Kudos for inspiring me.
This actually came at the right time…. I am on bed rest for the next week and a half and I glance at my special occasion garments, shoes, bags etc and I am making a decision today to stop saving for a special occasion and be the special occasion. Thanks for the push. Little shiny something here I come.
Haha my mama used to call 'so called special occasion clothes'nguo za safari.Let her catch you donning any of those she considered safari clothes at your own risk….spare the rod and spoil the child was invented for such instances…at least in her mind anyway.Thank God I buy my own clothes now,any day is nguo ya safari day.


text:
Our website uses cookies. See our cookies page for information about them and how you can remove or block them. Click here to opt in to our cookies
Creative Scotland
Screen Scotland
Funding FAQs
Creativity Matters
Cultural Value
Economic Value
The 10-Year Plan
Ambitions and Priorities
Connecting Themes
Creative Learning and Young People
Showcasing Scotland
Refreshed Strategy and Funding Framework
The National Lottery is 25!
Home > What We Do > Latest News > News Releases > 11 > Over £820,000 of National Lottery and Scottish Government funds for creative projects
Gaelic English
Over £820,000 of National Lottery and Scottish Government funds for creative projects
51 projects are sharing in over £820K of National Lottery and Scottish Government funding through Creative Scotland in the latest round of Open Fund awards.
A corner of a patchwork banner created by members of Sewing2gether All Nations, displaying rainbows as a symbol of hope, and members names embroidered onto individual pieces, courtesy of Sewing2gether
These funds are supporting creative people, projects and organisations across Scotland to adapt and respond to the current changing circumstances brought about by COVID-19 and helping to sustain creative development at this challenging time.
Paisley's weekly sewing and language group for English language learners Sewing2gether All Nations, has also received funding to help create a supportive and welcoming environment in which asylum seekers, refugees and new Scots can practice conversational English, receive practical advice and support through the communal endeavour of sewing.
A Sewing2gether spokesperson said: "With doorstep deliveries of sewing activities and food parcels for vulnerable families, we continue to create even when we cannot meet as a group. One of our projects is our "Lockdown" rainbow themed banner, representing the many countries that form our group, with names embroidered individually at home, then collected and stitched together as a perfect illustration of how we continue to support each other."
In the year of the 20th anniversary of the 9/11 terrorist attacks, Highlands-based war and documentary photographer Nick Sidle will present a photographic exhibition Faces of Kabul+20 at Eden Court, Inverness in June 2021.
Drawing from images captured while working as an accredited photographer in these settings, the exhibition will depict New York prior to the first Gulf War, images of Afghanistan after the fall of the Taliban regime, and Western forces and their interactions with local people in Afghanistan in the immediate post-Taliban period.
Nick Sidle said: "Documentary photography is always about partnership, between the photographer and those whose lives they provide a window on, and with everyone who makes presenting the work possible. As the photographer, I feel very privileged to have the support of Creative Scotland that has made this work achievable and a real responsibility to make the project a success for all the partners and the audiences for the exhibition in the future."
Bringing global issues to local communities, Glasgow-based performance collective fieldwork performance has received funding to develop a bold new participatory project, Dear Green Place to coincide with the global climate conference taking place in Glasgow in November 2021.
Lewis Hetherington of fieldwork performance said: "We will use this time to plan and design a programme of creative engagement that weaves together culture, climate and community in the build-up to the 26th UN Climate Change Conference of the Parties. We're excited to explore how the people of Glasgow and beyond can respond to and interact with this historical event."
A new Diploma in Creative Producing is being developed by producer and coach Chris Grady. Delivered by Scottish and international teachers and mentors through a series of online vocational workshops, the ambition of the project is to help build a national network of emerging and expert producers of theatre and the performing arts.
In literature and publishing, Polygon is set to publish works from new female authors over the coming 18 months; award-winning poet Sam Buchan-Watts will publish his debut poetry collection Path Through Woods, and Highlands-based Irish poet Aoife Lyall's new collection Natural Selection, looking at contemporary attitudes to motherhood
Sam Buchan-Watts said: "I am enormously grateful for the work Creative Scotland does to make writers and artists feel valued - especially in a time when many struggle to stay buoyant, spiritually and materially."
Iain Munro, Chief Executive, Creative Scotland said: "The Open Fund is enabling creative people and organisations to explore ways of working that is helping them to adapt and respond to the current changing circumstances brought about as a result of Covid-19.
"From researching and developing new work and practices, to exploring safe ways to reach and engage audiences, these projects reflect the resilience, innovation and determination of Scotland's creative community in the face of extremely challenging circumstances.
"Made possible by the generosity of National Lottery players, who raise £30 million for good causes across the UK every week, and the Scottish Government, these awards are helping to sustain the immense value that creativity adds to our lives."
Download the full list of recipients
October Open Fund Awards
Download the October Open Fund Awards in Excel spreadsheet format.
The fund has no deadlines, and full eligibility criteria and application guidance can be found on the Open Fund webpage.
In October 2020, Creative Scotland's Open Fund: Sustaining Creative Development made 51 funding awards, totalling £821,755.
More information about Covid-19 funding and resources can be accessed via FindBusinessSupport.gov.scot, and through Creative Scotland's Resource Directory for COVID-19.
Regular updates on all emergency funding in response to COVID-19 are provided on our website in our Latest News section
The National Lottery has raised more than £41 billion for more than 565,000 good causes across the UK since 1994. Thanks to National Lottery players, up to £600 million has been made available to support people, projects and communities throughout the UK during the Coronavirus crisis.
https://www.national-lottery.co.uk/
Creative Scotland is the public body that supports the arts, screen and creative industries across all parts of Scotland on behalf of everyone who lives, works or visits here. We distribute funding provided by the Scottish Government and The National Lottery.
www.creativescotland.com
Follow Creative Scotland
Twitter | twitter.com/CreativeScots
Facebook | facebook.com/CreativeScotland
Instagram | instagram.com/creativescots
Claire Thomson, Media Relations & PR Officer
Claire.Thomson@creativescotland.com
Celtic Connections 2021
A Guide to What's On This Winter
Spotlight on Youth Music and their Incubator Fund
Further support for Scottish grassroots music venues
Programme available for Youth Arts virtual festival UNCON 3.0
Showcase Scotland 2021
CashBack for Communities
Creativity Portal
Sign up for the Creative Scotland newsletter
© Creative Scotland 2019
Year of creative Scotland 2012
Browse All FAQs

redpajama_set_name: RedPajamaCommonCrawl


text:
Newcastle organisations caught up in Facebook ban in response to Federal Government's proposed media bargaining code
Source: Newcastle Herald | By: Sage Swinton | Posted: February 18, 2021
Numerous Hunter organisations including City of Newcastle and the University of Newcastle have been caught up in a decision by Facebook to restrict publishers from sharing links on the platform.
Pages operated by the council, university, Newcastle Jets, Hunter Workers, Hunter Medical Research Institute and Lake Macquarie MP Greg Piper appeared blank on Thursday morning, along with those of media outlets across the country including The Newcastle Herald.
However, the City of Newcastle page has since been restored after the council made contact with the social media giant.
Individual users are also unable to share news content on the social media website.
Other pages that were affected by the ban include the Bureau of Meteorology, domestic violence service 1800RESPECT, national arts and social justice organisation Big hART, Queensland Health, the ACT and Tasmanian Government, Women's Rugby League, AFL Women's and even the official Facebook page.
Facebook has said it will reinstate pages belonging to state and territory health, emergency services and the Bureau of Meteorology and some of those pages have now been restored.
Facebook took the action after the Federal Government's proposed media bargaining code passed through the Senate on Wednesday night.
The code would require social media companies including Facebook to pay media outlets to use their content.
Facebook Australia and New Zealand managing director William Easton said in a blog post on Thursday that the proposed law "fundamentally misunderstands the relationship between our platform and publishers who use it to share news content".
"It has left us facing a stark choice: attempt to comply with a law that ignores the realities of this relationship, or stop allowing news content on our services in Australia," the post said.
"With a heavy heart, we are choosing the latter."
Greg Piper appears to be the only MP in the Hunter to have been caught up in the restriction.
The Independent Lake Macquarie MP said he would hope he had been blocked inadvertently and wouldn't take the matter personally, but said it was a "dangerous slope" once politicians' pages were taken down.
"I wonder how indiscriminate it is," he said. "If that became a thing, who do they choose?"
Beyond his own situation, Mr Piper said he did not agree with the action Facebook had taken against news outlets.
"It's very clear that social media companies have benefited greatly off the back of Australian journalism and news organisations," he said.
"This is data companies flexing their muscles and saying look how powerful we are.
"They're basically playing the bully's game.
"We've known this was an issue for a long time and now the government has introduced legislation. It should not have come to that."
Mr Piper's office has contacted Facebook about the matter and he was hopeful the page would be restored quickly.
Hunter Workers secretary Leigh Shears said he didn't agree with the government's proposed media bargaining laws, but was "puzzled" as to why his organisation had been included in the ban.
"It's unfortunate," he said. "We identify as a not-for-profit community organisation.
"They may have just captured us because of what we share."
The workers union uses the page to highlight issues relevant to members, including industrial relations matters and law changes.
Mr Shears said his team was searching for answers about the ban, but that they were not primarily affected and had other outlets to reach members on.
The Newcastle Jets said in a Tweet they were aware their Facebook page was currently not available.
"We are working with Facebook to resolve the matter. We thank you for your patience."


text:
Type: regular

Level: mid

Category: security

##Description
This talk gives an overview of how logging, monitoring and security are dependent on each other and covers the minimum stack that I recommend.

This talk includes real scenarios that my consulting company has dealt with or come across where these were not implemented correctly, how it could have been prevented or generally some words of wisdom for your own production environments in these cases.

##Other Info

I pitched the idea of this talk a while back in the Silex-php IRC channel and got positive feedback from the members there saying they wished this very talk existed.

redpajama_set_name: RedPajamaGithub


Customizable length and chain options listed below.
Fish Hook size is 24.5mm x 8.8mm (1/16" less than an 1" inch).
$65 for the fishhook necklace (shown). Will come package in a drawstring bag tucked in a cotton filled gift box tied with an elastic ribbon.
Chain & Hook Metal- .925 Sterling Silver or Golden solid Bronze.
Made with a sterling silver 1.9mm rolo chain.
Made with a bronze 2mm oval link chain.
Sturdy stainless chains are available, please message me for styles.


text:
Q: Pyplot saving blank figures I need to save graphics in very high quality, like eps. Basically I need to save 4 images of a hyperspectral data. Showing the graphics is not a problem, so I know my figures are ok, but I can't save them.
I have already tried other formats, like jpg,png or pdf, and none of them worked. I also already tried to save 4 figures instead of one figure with 4 subplots, but the problem persisted. I changed also matplotlib's backend a lot of times, and none of them worked.
Here is my code:
import matplotlib.pyplot  as plt
import numpy as np

np.random.seed(0)

RGB = np.random.randint(255, size=(3518,117,3))
var = RGB[:,:,0]
cmap = plt.cm.get_cmap('cividis')
col = 3
forma = "eps"
fig, ax = plt.subplots(1,col,figsize = (1.5,45))

plt.subplots_adjust(left = 2, right = 4)

im = ax[0].imshow(RGB.astype(np.uint8), cmap = cmap)

ax[1].pcolormesh(var, cmap = cmap)

ax[2].plot(np.mean(var,axis = 1),np.arange(var.shape[0]))

plt.colorbar(im)
fig.savefig("runnable" + "." + forma, format = forma,dpi=1200 )

plt.show()

I get a warning that I don't understand:

RunTimeWarning:"Mean of empty slice"

I've done some research and it seems like this is common when there is NaN in the data. However, I looked for it and didn't find any.
edit: I changed the code so it can be runnable.


text:
Q: How to save inherited objects in hibernate I have three classes

Rule
  Contract
  Trip
  and class Contract extends Rule.and class Trip has contract object .
  TripInstance.contract = contractObj
  TripInstance.save()

i am not able to save the contract in to table trip.

A: By default, Grails sets all properties on domain objects to nullable: false.  Since it seems like you're getting a validation error, you might want to make sure that you've added all of the appropriate properties to the instance before you save it.


Townhouse - Eneriz (Enériz) , Built Surface 135m2, 229m2, 4 Bedrooms, 3 Bathrooms, Urbanizacion.
Townhouse - Obanos , Built Surface 184m2, 20m2, 3 Bedrooms, 2 Bathrooms.
Apartment - Pamplona-Iruña (Mendebaldea) , Built Surface 77m2, 4m2, 2 Bedrooms, 2 Bathrooms, Lift.
Townhouse - Obanos , Built Surface 170m2, 50m2, 3 Bedrooms, 2 Bathrooms.
Country house - Urdaniz (Urdaniz/Urdaitz) , Built Surface 212m2, 8m2, 4 Bedrooms, 3 Bathrooms.
Chalet - Orcoyen , Built Surface 220m2, 170m2, 5 Bedrooms, 3 Bathrooms, All Exterior.
Apartment - Pamplona-Iruña (Mendebaldea) , Built Surface 143m2, 15m2, 4 Bedrooms, 2 Bathrooms, Lift.
House - Olaz , Built Surface 194m2, 426m2, 40m2, 5 Bedrooms, 2 Bathrooms, Urbanizacion.
House - Ororbia (Orobia) , Built Surface 314m2, 970m2, 27m2, 4 Bedrooms, 3 Bathrooms.


Cushions, lampshades, upholstered furniture, wall décor, bolsters, headboards, wallpapers and just about any interior product you need can be made to reflect and celebrate your individuality and business story.
Sarah Burghard Designs creates bespoke products for boutique hotels, commercial projects, interior designers and private clients.
Sarah uses a totally unique and innovative approach. We all want to be understood and valued for our insights and personality, and Sarah provides a wonderful way to do just that.
Using your visual images, souvenirs, or simply memories, Sarah will create a unique fabric design which captures the spirit of your hotel, special moments or history, to transform almost any piece of furniture into something which means more than words can say to you or your guests and customers.


text:
House Committee : Armed Services House Committee : Judiciary Introduced Committee Consideration House Subcommittee : Veterans' Affairs|Health
1. H.R.5942 — 115th Congress (2017-2018) Health Equity and Accountability Act of 2018 Sponsor: Rep. Lee, Barbara [D-CA-13] (Introduced 05/23/2018) Cosponsors: (71) Committees: House - Energy and Commerce, Ways and Means, Agriculture, Education and the Workforce, Budget, Judiciary, Veterans' Affairs, Armed Services, Natural Resources Latest Action: House - 10/19/2018 Referred to the Subcommittee on Health, Employment, Labor, and Pensions. (All Actions) Tracker:
2. H.R.4653 — 115th Congress (2017-2018) Servicemembers and Veterans Prescription Drug Safety Act of 2017 Sponsor: Rep. Cartwright, Matt [D-PA-17] (Introduced 12/14/2017) Cosponsors: (2) Committees: House - Energy and Commerce, Armed Services, Judiciary, Veterans' Affairs Latest Action: House - 01/10/2018 Referred to the Subcommittee on Military Personnel. (All Actions) Tracker:
3. H.R.5475 — 114th Congress (2015-2016) Health Equity and Accountability Act of 2016 Sponsor: Rep. Kelly, Robin L. [D-IL-2] (Introduced 06/14/2016) Cosponsors: (21) Committees: House - Energy and Commerce, Ways and Means, Agriculture, Education and the Workforce, Budget, Judiciary, Veterans' Affairs, Armed Services, Natural Resources Latest Action: House - 09/19/2016 Referred to the Subcommittee on Health, Employment, Labor, and Pensions. (All Actions) Tracker:
4. H.R.5189 — 114th Congress (2015-2016) Opioid Abuse Crisis Act of 2016 Sponsor: Rep. Kuster, Ann M. [D-NH-2] (Introduced 05/11/2016) Cosponsors: (0) Committees: House - Energy and Commerce, Judiciary, Veterans' Affairs, Education and the Workforce, Ways and Means, Armed Services, Natural Resources Latest Action: House - 06/07/2016 Referred to the Subcommittee on Military Personnel. (All Actions) Tracker:
5. H.R.4635 — 114th Congress (2015-2016) Servicemembers and Veterans Prescription Drug Safety Act of 2016 Sponsor: Rep. Cartwright, Matt [D-PA-17] (Introduced 02/26/2016) Cosponsors: (0) Committees: House - Energy and Commerce, Armed Services, Judiciary, Veterans' Affairs Latest Action: House - 04/01/2016 Referred to the Subcommittee on Crime, Terrorism, Homeland Security, and Investigations. (All Actions) Tracker:
6. H.R.3722 — 114th Congress (2015-2016) Mental Health and Safe Communities Act of 2015 Sponsor: Rep. McSally, Martha [R-AZ-2] (Introduced 10/08/2015) Cosponsors: (39) Committees: House - Judiciary, Science, Space, and Technology, Veterans' Affairs, Appropriations, Armed Services Latest Action: House - 09/30/2016 Referred to the Subcommittee on Research and Technology. (All Actions) Tracker:
7. H.R.1055 — 114th Congress (2015-2016) Comprehensive Dental Reform Act of 2015 Sponsor: Rep. Cummings, Elijah E. [D-MD-7] (Introduced 02/25/2015) Cosponsors: (6) Committees: House - Energy and Commerce, Ways and Means, Judiciary, Natural Resources, Veterans' Affairs, Armed Services Latest Action: House - 11/23/2015 Referred to the Subcommittee on Military Personnel. (All Actions) Tracker:
8. H.R.5294 — 113th Congress (2013-2014) Health Equity and Accountability Act of 2014 Sponsor: Rep. Roybal-Allard, Lucille [D-CA-40] (Introduced 07/30/2014) Cosponsors: (81) Committees: House - Energy and Commerce, Ways and Means, Agriculture, Education and the Workforce, Budget, Veterans' Affairs, Armed Services, Judiciary, Natural Resources Latest Action: House - 11/17/2014 Referred to the Subcommittee on Higher Education and Workforce Training. (All Actions) Tracker:
9. H.R.3714 — 113th Congress (2013-2014) Servicemembers and Veterans Prescription Drug Safety Act of 2013 Sponsor: Rep. Cartwright, Matt [D-PA-17] (Introduced 12/12/2013) Cosponsors: (13) Committees: House - Energy and Commerce, Armed Services, Judiciary, Veterans' Affairs Latest Action: House - 01/27/2014 Referred to the Subcommittee on Crime, Terrorism, Homeland Security, and Investigations. (All Actions) Tracker:
10. H.R.3120 — 113th Congress (2013-2014) Comprehensive Dental Reform Act of 2013 Sponsor: Rep. Cummings, Elijah E. [D-MD-7] (Introduced 09/18/2013) Cosponsors: (1) Committees: House - Energy and Commerce, Ways and Means, Judiciary, Natural Resources, Veterans' Affairs, Armed Services Latest Action: House - 11/06/2013 Referred to the Subcommittee on Military Personnel. (All Actions) Tracker:
13. H.R.3001 — 111th Congress (2009-2010) Ending LGBT Health Disparities Act Sponsor: Rep. Baldwin, Tammy [D-WI-2] (Introduced 06/23/2009) Cosponsors: (24) Committees: House - Ways and Means, Energy and Commerce, Armed Services, Judiciary, Oversight and Government Reform, House Administration, Education and Labor, Veterans' Affairs, Transportation and Infrastructure, Intelligence (Permanent Select), Foreign Affairs Latest Action: House - 08/03/2009 Referred to the Subcommittee on Military Personnel. (All Actions) Tracker:
14. H.R.840 — 111th Congress (2009-2010) Military Domestic and Sexual Violence Response Act Sponsor: Rep. Slaughter, Louise McIntosh [D-NY-28] (Introduced 02/03/2009) Cosponsors: (64) Committees: House - Armed Services, Judiciary, Veterans' Affairs Latest Action: House - 03/16/2009 Referred to the Subcommittee on Crime, Terrorism, and Homeland Security. (All Actions) Tracker:
15. H.R.3990 — 110th Congress (2007-2008) Military Domestic and Sexual Violence Response Act Sponsor: Rep. Slaughter, Louise McIntosh [D-NY-28] (Introduced 10/29/2007) Cosponsors: (59) Committees: House - Armed Services, Judiciary, Veterans' Affairs Latest Action: House - 12/05/2007 Referred to the Subcommittee on Military Personnel. (All Actions) Tracker:
16. H.R.508 — 110th Congress (2007-2008) Bring the Troops Home and Iraq Sovereignty Restoration Act of 2007 Sponsor: Rep. Woolsey, Lynn C. [D-CA-6] (Introduced 01/17/2007) Cosponsors: (52) Committees: House - Foreign Affairs, Armed Services, Veterans' Affairs, Rules, Judiciary Latest Action: 10/03/2007 Sponsor introductory remarks on measure. (All Actions) Tracker:
18. H.R.3566 — 109th Congress (2005-2006) To provide that no Federal funds may be expended for the payment or reimbursement of drugs when prescribed for the treatment of erectile or sexual dysfunction. Sponsor: Rep. King, Steve [R-IA-5] (Introduced 07/28/2005) Cosponsors: (0) Committees: House - Energy and Commerce, Ways and Means, Government Reform, Armed Services, Veterans' Affairs, Resources, International Relations, Judiciary Latest Action: House - 09/19/2005 Referred to the Subcommittee on Crime, Terrorism, and Homeland Security. (All Actions) Tracker:
Health [10]
Department Operations, Oversight, and Nutrition [1]
Military Personnel [15]
Health, Employment, Labor, and Pensions [2]
Constitution, Civil Rights, and Civil Liberties [1]
Crime, Terrorism, Homeland Security, and Investigations [6]
Crime, Terrorism, and Homeland Security [4]
Immigration, Citizenship, Refugees, Border Security, and International Law [1]
Energy and Mineral Resources [2]
Federal Lands [2]
Fisheries, Wildlife, Oceans, and Insular Affairs [1]
Indian and Alaska Native Affairs [3]
Indian, Insular and Alaska Native Affairs [4]
Public Lands and Environmental Regulation [1]
Water, Power and Oceans [1]
Science, Space, and Technology
Research and Technology [1]
Health Remove
Cartwright, Matt [D-PA] [3]
Cummings, Elijah E. [D-MD] [3]
Slaughter, Louise McIntosh [D-NY] [3]
Lee, Barbara [D-CA] [2]
Baldwin, Tammy [D-WI] [1]
Schakowsky, Janice D. [D-IL] [9]
Grijalva, Raul M. [D-AZ] [8]
Cohen, Steve [D-TN] [6]


text:
Q: PHP strtotime +1 month behaviour I know about the unwanted behaviour of PHP's function

strtotime

For example, when adding a month (+1 month) to dates like: 31.01.2011 -> 03.03.2011
I know it's not officially a PHP bug, and that this solution has some arguments behind it, but at least for me, this behavior has caused a lot waste of time (in the past and present) and I personally hate it.

What I found even stranger is that for example in:
MySQL: DATE_ADD('2011-01-31', INTERVAL 1 MONTH) returns 2011-02-28
or
C# where new DateTime(2011, 01, 31).AddMonths(1); will return 28.02.2011
wolframalpha.com giving 31.01.2013 + 1 month as input; will return Thursday, February 28, 2013
It sees to me that others have found a more decent solution to the stupid question that I saw alot in PHP bug reports "what day will it be, if I say we meet in a month from now" or something like that. The answer is: if 31 does not exists in next month, get me the last day of that month, but please stick to next month.

So MY QUESTION IS: is there a PHP function (written by somebody) that resolves this not officially recognized bug? As I don't think I am the only one who wants another behavior when adding / subtracting months.
I am particulary interested in solutions what also work not just for the end of the month, but a complete replacement of strtotime. Also the case strotime +n months should be also dealt with.
Happy coding!

A: PHP devs surely don't consider this as bug. But in strtotime's docs there are few comments with solutions for your problem (look for 28th Feb examples ;)), i.e. this one extending DateTime class:
<?php
// this will give us 2010-02-28 ()
echo PHPDateTime::DateNextMonth(strftime('%F', strtotime("2010-01-31 00:00:00")), 31);
?>

Class PHPDateTime:
<?php
/**
 * IA FrameWork
 * @package: Classes & Object Oriented Programming
 * @subpackage: Date & Time Manipulation
 * @author: ItsAsh <ash at itsash dot co dot uk>
 */

final class PHPDateTime extends DateTime {

    // Public Methods
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /**
     * Calculate time difference between two dates
     * ...
     */

    public static function TimeDifference($date1, $date2)
        $date1 = is_int($date1) ? $date1 : strtotime($date1);
        $date2 = is_int($date2) ? $date2 : strtotime($date2);

        if (($date1 !== false) && ($date2 !== false)) {
            if ($date2 >= $date1) {
                $diff = ($date2 - $date1);

                if ($days = intval((floor($diff / 86400))))
                    $diff %= 86400;
                if ($hours = intval((floor($diff / 3600))))
                    $diff %= 3600;
                if ($minutes = intval((floor($diff / 60))))
                    $diff %= 60;

                return array($days, $hours, $minutes, intval($diff));
            }
        }

        return false;
    }

    /**
     * Formatted time difference between two dates
     *
     * ...
     */

    public static function StringTimeDifference($date1, $date2) {
        $i = array();
        list($d, $h, $m, $s) = (array) self::TimeDifference($date1, $date2);

        if ($d > 0)
            $i[] = sprintf('%d Days', $d);
        if ($h > 0)
            $i[] = sprintf('%d Hours', $h);
        if (($d == 0) && ($m > 0))
            $i[] = sprintf('%d Minutes', $m);
        if (($h == 0) && ($s > 0))
            $i[] = sprintf('%d Seconds', $s);

        return count($i) ? implode(' ', $i) : 'Just Now';
    }

    /**
     * Calculate the date next month
     *
     * ...
     */

    public static function DateNextMonth($now, $date = 0) {
        $mdate = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
        list($y, $m, $d) = explode('-', (is_int($now) ? strftime('%F', $now) : $now));

        if ($date)
            $d = $date;

        if (++$m == 2)
            $d = (($y % 4) === 0) ? (($d <= 29) ? $d : 29) : (($d <= 28) ? $d : 28);
        else
            $d = ($d <= $mdate[$m]) ? $d : $mdate[$m];

        return strftime('%F', mktime(0, 0, 0, $m, $d, $y));
    }

}
?>

A: Here's the algorithm you can use. It should be simple enough to implement yourself.

*

*Have the original date and the +1 month date in variables

*Extract the month part of both variables

*If the difference is greater than 1 month (or if the original is December and the other is not January) change the latter variable to the last day of the next month. You can use for example t in date() to get the last day: date( 't.m.Y' )

A: Had the same issue recently and ended up writing a class that handles adding/subtracting various time intervals to DateTime objects.

Here's the code:
https://gist.github.com/pavlepredic/6220041#file-gistfile1-php
I've been using this class for a while and it seems to work fine, but I'm really interested in some peer review. What you do is create a TimeInterval object (in your case, you would specify 1 month as the interval) and then call addToDate() method, making sure you set $preventMonthOverflow argument to true. The code will make sure that the resulting date does not overflow into next month.
Sample usage:
$int = new TimeInterval(1, TimeInterval::MONTH);
$date = date_create('2013-01-31');
$future = $int->addToDate($date, true);
echo $future->format('Y-m-d');

Resulting date is:
2013-02-28

A: Here is an implementation of an improved version of Juhana's answer above:
<?php
function sameDateNextMonth(DateTime $createdDate, DateTime $currentDate) {
    $addMon = clone $currentDate;
    $addMon->add(new DateInterval("P1M"));

    $nextMon = clone $currentDate;
    $nextMon->modify("last day of next month");

    if ($addMon->format("n") == $nextMon->format("n")) {
        $recurDay = $createdDate->format("j");
        $daysInMon = $addMon->format("t");
        $currentDay = $currentDate->format("j");
        if ($recurDay > $currentDay && $recurDay <= $daysInMon) {
            $addMon->setDate($addMon->format("Y"), $addMon->format("n"), $recurDay);
        }
        return $addMon;
    } else {
        return $nextMon;
    }
}

This version takes $createdDate under the presumption that you are dealing with a recurring monthly period, such as a subscription, that started on a specific date, such as the 31st. It always takes $createdDate so late "recurs on" dates won't shift to lower values as they are pushed forward thru lesser-valued months (e.g., so all 29th, 30th or 31st recur dates won't eventually get stuck on the 28th after passing thru a non-leap-year February).
Here is some driver code to test the algorithm:
$createdDate = new DateTime("2015-03-31");
echo "created date = " . $createdDate->format("Y-m-d") . PHP_EOL;

$next = sameDateNextMonth($createdDate, $createdDate);
echo "   next date = " . $next->format("Y-m-d") . PHP_EOL;

foreach(range(1, 12) as $i) {
    $next = sameDateNextMonth($createdDate, $next);
    echo "   next date = " . $next->format("Y-m-d") . PHP_EOL;
}

Which outputs:
created date = 2015-03-31
   next date = 2015-04-30
   next date = 2015-05-31
   next date = 2015-06-30
   next date = 2015-07-31
   next date = 2015-08-31
   next date = 2015-09-30
   next date = 2015-10-31
   next date = 2015-11-30
   next date = 2015-12-31
   next date = 2016-01-31
   next date = 2016-02-29
   next date = 2016-03-31
   next date = 2016-04-30

A: what you need is to tell PHP to be smarter
$the_date = strtotime('31.01.2011');
echo date('r', strtotime('last day of next month', $the_date));

$the_date = strtotime('31.03.2011');
echo date('r', strtotime('last day of next month', $the_date));

assuming you are only interesting on the last day of next month
reference - http://www.php.net/manual/en/datetime.formats.relative.php

A: I have solved it by this way:
$startDate = date("Y-m-d");
$month = date("m",strtotime($startDate));
$nextmonth = date("m",strtotime("$startDate +1 month"));
if((($nextmonth-$month) > 1) || ($month == 12 && $nextmonth != 1))
{
    $nextDate = date( 't.m.Y',strtotime("$initialDate +1 week"));
}else
{
    $nextDate = date("Y-m-d",strtotime("$initialDate +1 month"));
}
echo $nextDate;

A: Somewhat similar to the Juhana's answer but more intuitive and less complications expected. Idea is like this:

*

*Store original date and the +n month(s) date in variables

*Extract the day part of both variables

*If days do not match, subtract number of days from the future date

Plus side of this solution is that works for any date (not just the border dates) and it also works for subtracting months (by putting - instead of +).
Here is an example implementation:
$start = mktime(0,0,0,1,31,2015);
for ($contract = 0; $contract < 12; $contract++) {
    $end = strtotime('+ ' . $contract . ' months', $start);
    if (date('d', $start) != date('d', $end)) {
        $end = strtotime('- ' . date('d', $end) . ' days', $end);
    }
    echo date('d-m-Y', $end) . '|';
}

And the output is following:
31-01-2015|28-02-2015|31-03-2015|30-04-2015|31-05-2015|30-06-2015|31-07-2015|31-08-2015|30-09-2015|31-10-2015|30-11-2015|31-12-2015|

A: function ldom($m,$y){

     //return tha last date of a given month based on the month and the year
    //(factors in leap years)

    $first_day= strtotime (date($m.'/1/'.$y));
    $next_month = date('m',strtotime ( '+32 day' , $first_day)) ;
    $last_day= strtotime ( '-1 day' , strtotime (date($next_month.'/1/'.$y)) ) ;
    return $last_day;

}


text:
BlogTravel tips6 Hidden gems in Belize to visit
6 Hidden gems in Belize to visit
If you ask anyone on our Go Ahead staff, they'll tell you: Belize is an underrated vacation destination. There are so many hidden gems in Belize—from Maya ruins that date back to 800 B.C. to one of the biggest coral reefs on the planet.
That's why we're going to take you through the six little-known things to do in Belize on tour. Get a notepad, because you're going to want to start planning your trip today.
1. The Lamanai Mayan ruins
Lamanai is one of the oldest continually inhabited archeological zones in the Mayan World—making it one of the top things to do in Belize. Explore the partially restored trails of this once prominent pre-Columbian city and listen to the howler monkeys as you learn about life in 200 A.D.
There are three main temples to explore: the Jaguar Temple, the Mask Temple, and the High Temple. You'll see impressive carvings, as well as one of the carved Mayan calendars that "predicted" the end of the world in 2012. You can even climb to the top of the High Temple and soak in views of the jungle, where many ruins have yet to be discovered.
Fact: Lamanai is one of the only Mayan ruins close to a body of water. The word Lamanai comes from the Yucatec Maya word Lam'an'ain, meaning submerged crocodile. It's no surprise, then, that crocodiles cruise the nearby New River Lagoon.
2. Hol Chan Marine Reserve
Admire views of the sparkling blue water and snorkel through the "little channel" of the Mesoamerican Barrier Reef, the second largest reef in the world. Locals created this reserve to control overfishing and diving activities in the area—and the preservation efforts have paid off.
Today, you can search for local wildlife, including turtles, dolphins, rays, and over 160 species of fish that call the reserve home. You'll also learn about the country's commitment to preserving the reef. It's one of the top things to do in Belize for a reason.
3. Any Mayan chocolate factory
Chocolate lovers, rejoice! This hidden gem in Belize is for you. Visit a Mayan chocolate factory like we do on our Belize tour to learn about the history of one of the country's most delicious foods.
You'll see how cacao is produced, harvested, and turned into chocolate—a process that's taken place in this area since 1500 A.D. Of course, you'll also get to taste the sweet treat, too.
Fact: The ancient Mayans made liquid chocolate from crushed cacao, chili peppers, and water because they didn't have sugar in Central America at the time. They do now!
4. Jaguar Paw
Nowhere else in the world can you float on a river through a network of ancient underground caves like you can at Jaguar Paw. Our Ruins, Reefs & Rainforests trip will take you right into the heart of it all.
Sit back, relax, and cool off a bit as you learn all about the Mayan history, local geology, birds, plants, and animals. It's an unforgettable opportunity to see the local flora and fauna up close (and from an entirely unique perspective). The water is crystal clear, the local guides are fun, and the views of the pointed stalagmite formations reflecting on the sparkling river will make you feel like you're on another planet.
You'll even get to visit the secret spots where the ancient Mayans worshipped and sourced their sacred water—though the Mayans didn't travel there on an inner tube.
5. San Antonio Women's Cooperative
This nonprofit in the Cayo District's San Antonio Village is one of the most rewarding hidden gems in Belize. Here, more than 25 women dedicate their lives to preserving Maya traditions, building awareness of Maya culture, and generating ethical income for the community from your visit.
During your visit, you can shop for meaningful souvenirs like handmade embroidery and pottery crafted with the ancient techniques and even try your hand at it. If you're feeling hungry, the women here would be delighted to prepare you an authentic lunch. It's an experience you'll never forget.
6. San Ignacio
If you're looking for an artistic experience, add this vibrant village in the Cayo district to your bucket list. Everywhere you look, the town's walls depict Belize's rich culture. You'll see gorgeous murals that showcase everything from the city's evolution to the story of a midwife who delivered over a thousand local babies.
Every Saturday, San Ignacio also hosts the biggest market in the entire country. Watch the district come alive with a vibrant blend of colors and crafts, try some fresh dragonfruit juice from a local vendor, and maybe even bring home some handmade jewelry as a unique souvenir from your Belize trip.
Been to Belize? Share your top things to do on Facebook.
Travel trendsTravel news
Explore Central & South America tours
Grand Tour of Peru: Machu Picchu to Lake Titicaca
13 days | 17 days with Bolivia extension
Cuba People & Culture: Havana, Trinidad & Cienfuegos
10 days | 13 days with West Cuba extension
A Week in Peru: Lima, Cuzco & Machu Picchu
8 days | 11 days with Lima & Paracas extension
Ancient Peru & Machu Picchu
11 days | 14 days with the Amazon extension
Chile to Argentina: Santiago, Patagonia & Buenos Aires
12 days | 15 days with Iguazú Falls extension
Food & Wine: Flavors of Chile & Argentina
12 days | 14 days with Uruguay extension
See more travel tips
Travel buzz
How to visit the 7 new wonders of the world on tour
6 top-reviewed bucket list trips you can't miss
2023 trips solo travelers are booking now
The spookiest places to visit in Scotland & Ireland