text:
Q: Sum of subsequences Consider the first integer is A, A[i] equals i-th digit of A (0-based indexing, from right to left) and the second integer is B , B[i] equals to i-th digit of B (0-based indexing, from right to left).
The lucky sum of A and B is equal to C, C[i] = max(A[i], B[i]). If i is greater than or equal to size of integer, the i-th digit is equal to 0.
For example,

*

*the lucky sum of 47 and 729 is

max(7,9)=9
max(4,2)=4
max(0,7)=7
answer = 749

*Similarly, the lucky sum of W = (74, 92, 477)

max(4,2) = 4
max(7,9) = 9
Lucky sum of 74,92 = 94
Lucky sum of W=(Lucky sum of (94,477))

which is

max(4,7)=7
max(9,7)=9
max(0,4)=4

So the lucky sum of w is=497.
The task: we are given an array  W, containing n (1<=n<=50) integers.
We have to find a number of non-empty subsequences of W such that the lucky sum of integers in that subsequences is a lucky number (lucky numbers are positive integers whose decimal representation contains only the lucky digits 4 and 7. For example, numbers 47, 744, 4 are lucky and 5, 17, 467 are not.).
Constraint: 0 < W[i] < 1e9
Examples:

*

*W = {4,7}: answer = 3

*W = {43, 87 ,44}: answer = 2

Can this problem be solved by dynamic programming?
How this problem can be solved efficiently in C++ ?

A: Since every bit of the answer is independent. So update them separately and the whole algorithm takes O(n*log10(w))
Here's the code i just wrote:
#include <cstdio>
#include <cstring>
#include <algorithm>

#define MAXL 15

using namespace std;

int n;
int ans[MAXL];

int main(){
    int i,j,w;
    scanf("%d",&n);
    memset(ans,0,sizeof(ans));
    while (n--){
        scanf("%d",&w);
        i = 0;
        while (w>0){
            j = w % 10;
            ans[i] = max(ans[i], j);
            i++;
            w /= 10;
        }
    }
    bool flag = false;
    for (i=MAXL-1;i>=0;i--){
        if (ans[i] > 0) flag = true;
        if (flag) printf("%d",ans[i]);
    }
    printf("\n");
    return 0;
}

A: Here's what i can think of(unfinished yet):
Uses DP with bit mask. we now represent a number in the following way: every bit is categorized into five kinds:

*

*(0)       ->  0

*(1,2,3)   ->  1

*(4)       ->  2

*(5,6)     ->  3

*(7)       ->  4

*(8,9)     ->  -1

As we can easily see, whenever a bit is 8 or 9, it can never be added into a valid solution. now we represent the number with bit-mask, which takes 5^8.
So we let f[i][s] denotes the total ways we can choose the subset from the first i numbers to make out the number whose bit-mask is s.
Here is the code i just wrote again.....
Three things remains:

*

*use __int64 or long long instead of int for f[][].

*use queue to accelerate enumeration for there are a lot of impossible status(i.e. f[][s]==0) if we enumerate with for (i = 0;i < MAXS;i++).

*use f[0..1][MAXS] to reduce memory cost.

The sample code:
#include <queue>
#include <cstdio>
#include <cstring>
#include <algorithm>

#define MAXN 51
#define MAXS 390625 //5^8

using namespace std;

const int exp[] = {1, 5, 25, 125, 625, 3125, 15625, 78125, 390625};
int n;
int w[MAXN];
struct node{
    int i;
    int stat;
    node(int x, int y):i(x),stat(y){}
};
queue<node> q;
__int64 f[MAXN][MAXS];
bool inq[MAXN][MAXS];

int main(){
    //freopen("test.txt","r",stdin);
    memset(f,0,sizeof(f));
    memset(inq,0,sizeof(inq));
    scanf("%d",&n);
    for (int i = 0;i < n;i++) scanf("%d",&w[i]);
    while (!q.empty()) q.pop();
    f[0][0] = 1;
    for (int i = 0;i < n;i++)
        for (int j = 0;j < MAXS;j++)
            if (f[i][j] > 0){
                f[i + 1][j] += f[i][j];
                int stat = j;
                int loc = 0;
                int k = 0;
                for (int p = w[i];p > 0;p /= 10){
                    k = p % 10;
                    if (k <= 0) k = 0;
                        else if (k <= 3) k = 1;
                            else if (k <= 4) k = 2;
                                else if (k <= 6) k = 3;
                                    else if (k <= 7) k = 4;
                                        else k = -1;
                    if (k < 0) break;
                    int bit = stat % exp[loc + 1] / exp[loc];
                    if (k < bit) k = bit;
                    stat = stat - (bit - k) * exp[loc];
                    loc++;
                }
                if (k < 0) continue;
                f[i + 1][stat] += f[i][j];
            }
    int ans = 0;
    for (int i = 0;i < MAXS;i++){
        bool flag = false;
        for (int loc = 7;loc >= 0;loc--){
            int bit = i % exp[loc + 1] / exp[loc];
            if (bit > 0) flag = true;
            if (flag == true && (bit != 2 && bit != 4)){
                flag = false;
                break;
            }
        }
        if (flag == true) ans += f[n][i];
    }
    printf("%d\n",ans);
    return 0;
}


text:
#najib abdul razak
#src trial
Zikri Kamarulzaman
Roadblock in Najib's GE15 comeback
Published: Dec 8, 2021 4:07 AM
Hopes that former prime minister Najib Abdul Razak will defend his Pekan seat in the next general election has hit a roadblock after the Court of Appeal upheld his guilty verdict in the SRC International case.
While Najib will continue to serve as a member of Parliament since he has secured a stay of execution pending appeal, he will not be eligible to contest in any elections...

redpajama_set_name: RedPajamaCommonCrawl


text:
All Departments Open By Appointment. COVID-19 Protocols In Place.
Visit Us	2595 St Clair Ave W,
Toronto, Ontario, M6N 4Z5
Reception 416-766-2443
Body Shop 24/7 416-878-3003
GM Roadside Assistance 1-800-268-6800
https://www.facebook.com/OldMillGM.Toronto
https://twitter.com/OldMillGM
https://www.instagram.com/oldmillgm/?hl=fr-ca
https://www.youtube.com/user/OldMIllGM
Warranties & Protections
Cadillac Live
Chevy Specials
Deals On Tires
Parts Deptartment
About Our Bodyshop
On approved credit by GM Financial to qualified retail customers who take delivery between Jan 5/21 to Mar 1/21. Eligible new 2021 vehicles: Chevrolet: Trailblazer, Equinox (excluding LS), Blazer, Traverse. Lease at 0.9% APR for up to 24 months with $0 down. Representative Lease Example based on specifically equipped 2021 Chevrolet Equinox LT: price of $38,337, 52 bi-weekly payments of $350, total lease obligation of $18,186. First 2 bi-weekly payments ($700) and PPSA/RDPRM fee (gov't and agent fees) (up to $43) due at lease inception. 20,000 km allowance; charge of $0.16 per excess kilometer. License, insurance, registration and applicable taxes are extra. Dealers are free to set individual prices. Conditions apply. See dealer for details.
EQUINOX LEASE: Offer available to qualified retail customers in Ontario for vehicles leased and delivered between January 5, 2021 to February 1, 2021. Lease based on suggested retail price of $38,302, towards the lease of an eligible 2021 Equinox True North Sport All-Wheel Drive; includes $35 dealer to consumer credit (tax exclusive). Bi-weekly payment is $200 for 48 months at 2.9% lease rate (2.9% APR) on approved credit to qualified retail customers by GM Financial. The $100 weekly payment is calculated by dividing the bi-weekly payments. Payments cannot be made on a weekly basis. Equivalent weekly payments are for informational purposes only. Annual kilometer limit of 20,000 km, $0.16 per excess kilometer. $0 down payment required. Payment may vary depending on down payment trade. Cost of borrowing is $3,433, for a total obligation of $20,677. Taxes, license, insurance, registration and applicable fees, levies, duties and dealer fees (all of which may vary by dealer and region) are extra. Option to purchase at lease end is $21,058. Chargeable paint costs may vary depending on the vehicle/colour. See dealer for details. Credits vary by model. Dealer may sell for less. Factory order may be required. Limited time offer which may not be combined with certain other offers. General Motors of Canada Company may modify, extend or terminate offers in whole or in part at any time without notice. Conditions and limitations apply. Offers may not be redeemed for cash and may not be combined with certain other consumer incentives. See dealer for details.
++Whichever comes first. Cadillac Premium Care Maintenance Program provides eligible customers who have purchased, leased or financed in Canada a new eligible Cadillac with a GM dexos1™ oil and oil filter change, and tire rotations (limit of up to eight (8) in total) in accordance with the oil life monitoring system and your vehicle's Owner's Manual, along with limited inspections and other select services, for 4 years from your vehicle's delivery date or 80,000 km, whichever occurs first, performed at participating authorized Cadillac dealers. CTS-V may be eligible for additional services. Fluid top offs, brakes, wheel alignments etc. and dealer recommended maintenance are not covered. May not be redeemed for cash or combined with certain other consumer incentives. General Motors of Canada Company reserves the right to amend or terminate this offer, in whole or in part, at any time without prior notice. Additional conditions and limitations apply. See dealer for details. XT4 Lease: Offer valid at participating dealers to eligible retail lessees in Canada (excluding Quebec) who have entered a lease agreement with GM Financial and who accept delivery between January 5, 2021 and February 1, 2021 of a 2021 Cadillac XT4 (1SG) . Lease based on suggested retail price of $48,562 for an eligible new 2021 XT4 at participating dealers. $3,600 down payment required. Bi-Weekly payment is $249 at 2.9% APR for 48 months. Total lease obligation is $29,223. 16,000-kilometer allowance; charge of $0.16/km for excess kilometers. Cost of borrowing is $3,947. Taxes, license, insurance, registration and applicable fees, levies, duties and, except in Quebec, dealer fees (all of which may vary by dealer and region) are extra. Option to purchase at lease end is $23,286. See dealer for details. Dealer may sell for less. Limited time offer, which may not be combined with certain other offers. General Motors of Canada Company may modify, extend or terminate offers in whole or in part at any time without notice. Conditions and limitations apply. Offers may not be combined with certain other consumer incentives.
Buy Online-Express Store
Eastside GM
We are committed to making you a long-lasting customer and friend.
I don't many people outright love car shopping so I can't say Old Mill made the whole experience a joy. But I can say, they were all pleasant to deal with and when I had questions they happily answered them and when an issue arose barely a week into new old car ownership they made it better. Shout out to...
Rosemary Kilpatrick
I have brought two of my Enclaves in for repairs and tune-ups in the past month. The staff were very attentive and friendly. The work done was thorough. The shuttle driver is very interesting to talk to, and prompt. I would highly recommend this dealership. Thank you for making the experience of getting...
Laura MacKinnon
I don't many people outright love car shopping so I can't say Old Mill made the whole experience a joy. But I can say, they were all pleasant to deal with and when I had questions they happily answered them and when an issue arose barely a week into new old car ownership they made it better. Shout out to the guys in the preowned section especially Stefan [...]
I have brought two of my Enclaves in for repairs and tune-ups in the past month. The staff were very attentive and friendly. The work done was thorough. The shuttle driver is very interesting to talk to, and prompt. I would highly recommend this dealership. Thank you for making the experience of getting vehicle service pleasant.
Old Mill Pontiac dealership opened in 1947 at 2500 Bloor Street West in beautiful Toronto West. The dealership was purchased in 1984 by a young entrepreneur, Lou Vavaroutsos. In 1991, Old Mill was awarded the prestigious Cadillac line of vehicles. Honesty, integrity and respect are the pillars of Lou's vision, and this is the way Old Mill GM sells and services cars every day. Twenty-seven years later, they are still the same business philosophies. We are #1 in Customer Satisfaction in Service and we are very proud.
We are conveniently located at 2595 St Clair Ave W,
Old Mill GM
Sedan	Truck	Van	SUV
Shop New	Shop Used
About Old Mill
About Us	Meet The Team	Careers	Contact Us
Copyright © 2021 Old Mill GM.
By submitting your email address or phone number, you allow us, Old Mill GM	, to include you on our contact lists to send you information about our products, services and promotions. You may revoke consent at any time by clicking on the "Unsubscribe" link in your email. Please read our Privacy Policy or contact us for more details.


ALLIED London has released time-lapse video footage to show how the construction of their iconic No.1 Spinningfields building is progressing.
The footage shows for the first time how No.1 Spinningfields will fit into the existing Spinningfield's skyline to become one of the city's flagship structures.
For developers, Allied London, the owners and creators of Manchester's leading Spinningfields district, No.1 Spinningfields is the last piece of the award-winning masterplan.
Over 19 floors, No.1 Spinningfields will provide the highest specification office and amenity space in Manchester. Sitting alongside a chic business and meeting lounge will be a world-class rooftop restaurant and terrace, by operators D&D boasting stunning panoramic views across the city.
The footage not only captures for the first time how much progress has already been made on the site which overlooks Quay Street, but shows the sheer scale and height of the £73m building, which will be home to tenants including, global law firm Squire Patton Boggs and professional services network, PwC.
Chris Reay, Spinningfields Estate Director at Allied London, said: "Designed using the highest architectural principles, No. 1 Spinningfields is a beautiful and sustainable office development which encapsulates our 16 years of work at Spinningfields in a truly exquisite environment.
"Tenants at No.1 Spinningfields will have the ultimate opportunity to make their company HQ within Spinningfields.
Complimented by some of the finest food, drink, retail and leisure offerings, No.1 Spinningfields will boast upscale restaurants and flexible event spaces for a range of corporate, business and private events.
The No.1 Spinningfields project will continue to gather pace over the coming weeks as major Vierendeel columns arrive. The columns will be hoisted into place to form the six storey cantilever on Byrom Street at each side of the central bay.
Tony Grindrod, Construction Director at BAM, said: "BAM's construction of No.1 Spinningfields has moved quickly with the structural steel frame progressing to level seven on the east side of the building and level five on the west side.
The new Allied London marketing suite which showcases the exceptional No.1 Spinningfields offering will be opening at the end of June.


Ald. Edward M. Burke (14th) broke his silence on the ghost payroll scandal Thursday and blamed a dead man for irregularities that federal investigators have found in Burke's City Council Finance Committee.
Burke's comments came as U.S. Attorney James Burns said he considers public officials who provide or sanction the appointment of phony government workers to be "even more guilty" of violating the public trust than the low-level ghost payrollers.
Burns said he believes ghost payrolling may be "more widespread than the public appreciates." His comments came during taping of the "At Issue" program, which airs at 9:30 a.m. Sunday on WBBM-AM (780).
The influential Finance Committee, which Burke chairs, is one of five city and county agencies that Burns confirmed Thursday are targets of a federal grand jury investigation of ghost payrolling.
Later Thursday, in a call from a pay phone in Palm Springs, Calif., Burke said his former chief investigator, Horace Lindsey, "apparently connived" with Marie D'Amico, the daughter of former Ald. Anthony Laurino (39th), to carry D'Amico on the committee payroll from 1991 to 1993, even though she did no work.
D'Amico was sentenced to one year in prison last week after she pleaded guilty to also ghosting in the county clerk's office from 1981 to 1985 and in the sheriff's office from 1988 to 1990.
Lindsey was a colorful political veteran who once was Park District patronage chief for former Supt. Ed Kelley.
Lindsey was fired from that post in 1982 after he backed Richard M. Daley's first, unsuccessful mayoral bid.
Lindsey sued, charging that his firing was politically motivated, and won a $98,940 settlement in 1986. Meanwhile, he joined Burke's staff in 1984 and carried the title of chief investigator when he suffered a stroke last year. He died Dec. 13, 1994.
Burke, who is on vacation, also commented for the first time on remarks by U.S. District Court Judge George Lindberg, who sentenced D'Amico.
Lindberg said it appeared to him that Murray, the Finance Committee chief of staff, had at first lied to federal investigators probing the D'Amico case and initially had withheld records. Lindberg suggested that the U.S. attorney's office consider prosecuting Murray for obstruction of justice.


text:
Q: How do I read options from a jqgrid instance? I need to read the editurl from one jqgrid for use in a DND operation.
Background:
I have two jqgrid objects setup and have enabled drag and drop between the grids.  In the onDrop event handler, i have the incoming event handler for which i can get the id of the destition grid and the row data, but I need to submit an ajax post against the same url as the destination grid. (it has a querystring parameter i need to get to)
When you create a jqgrid object, you pass in a hash of options.  How do you get them back out of that object later?

A: From "Methods" in jQgrid wiki docs:
var options=  $(tableSelector).jqGrid('getGridParam');
console.log(options)

To target a specific param:
var records=$("#gridId").getGridParam("records");

redpajama_set_name: RedPajamaStackExchange


Professor Tim Briggs, Chair of the Getting It Right First Time (GIRFT) programme, has been appointed to the new role of National Director of Clinical Improvement for the NHS.
Professor Briggs was formerly National Director of Clinical Quality and Efficiency at NHS Improvement and heads up the GIRFT programme, which aims to improve the quality of care within the NHS by identifying efficiencies and improvements. He remains as GIRFT Chair as he takes up his new role with immediate effect.
He said: "I am looking forward to working to improve clinical care and squeezing out any unwarranted variation complications to provide the best value care for the health service. Together with the new National Director of Improvement, we will be working to improve the whole system.
Professor Briggs will be working with Hugh McCaughey, who will take on the new role as National Director of Improvement in the new NHS Executive group in April. Together they will oversee the delivery of support to the NHS to help reduce unwarranted clinical variation, improve quality and access, and ensure the most efficient use of resources.
In line with the NHS Long Term Plan, published earlier this month, part of Mr McCaughey's role will be to take forward and build on work to improve NHS productivity. This includes supporting the GIRFT programme.
Professor Briggs joined the Royal National Orthopaedic Hospital at Stanmore as a consultant in 1992. His specialist interests are in orthopaedic oncology as well as surgery to the hip and knee. He was medical director at the RNOH for 15 years and president of the British Orthopaedic Association in 2014. He is the author of GIRFT's 2015 national report on adult elective orthopaedic services.
He was appointed as National Director for Clinical Quality and Efficiency for the NHS in September 2015 and was asked to lead and roll out his GIRFT methodology, developed in orthopaedics, across all surgical and medical specialties within the provider network.
Professor Tim Briggs was made a Commander of the Most Excellent Order of the British Empire (CBE) in the 2018 New Year's Honours List for services to the surgical profession.


Real Madrid Wants This Chelsea Star Now, Will A Deal Actually Happen?
Real Madrid are looking to bolster their defense and after promising left back Theo Hernandez left the European giants for Spanish Liga outfit Real Sociedad on a season long loan, the three time consecutive Champions league winners have turned their eye towards former La Fabrica academy graduate Marcos Alonso.
Marcos Alonso has had a great start to the Premier League campaign this season and has sort of rejuvenated himself under new Blues boss Maurizio Sarri, Alonso has so far been instrumental in the opening weeks of the season as he has scored a goal and assisted twice maintaining Chelsea's 100% winning record intact in three league games.
The Galacticos already posses a world class left back in Brazilian international Marcelo who has been a undisputed starter for the past decade and just last summer they acquired the services of Atletico Madrid's academy graduate Theo Hernandez but he unfortunately failed to make a name for himself at the Bernabeu and left for regular game time to another La Liga side Real Sociedad.
Fabio Coentrao was also made to terminate his contract due to lack of opportunities and hence the European giants are forced to look for a probable back up for Marcelo and if they manage to land Alonso he can be great backup for that position and will provide tough competition to the Brazilian international and may also establish himself as a undisputed started ahead of the 30 year old.
The Spanish giants may face competition from arch rivals Atletico Madrid as Diego Simeone is also looking to add more quality to his side but nothing can be done as of now as the transfer window will open in the January and Chelsea will certainly reject any advances made by both the clubs as they will not lose one of their key player mid way through the season.
Los Blancos were also interested in the Blues star campaigner Eden Hazard but they failed to agree on a potential sum with Chelsea and hence the move broke out but Real Madrid managed to sign Thibaut Courtois from Chelsea after the Belgian international went AWOL and failed to report to training after the World Cup.
Eden Hazard spoke to media after the win against rivals Arsenal he said "You know what did I say after the World Cup. I'm very happy here at Chelsea and I do not like to talk about it as of now. Too any things are being said which is nonsense everything of it. For now I am really happy, I still have two years left on my contract and we'll see what happens after that but I will not leave this year.
He further added "The transfer window is already closed for us so we can sell but we can't sign any new players, it would be strange for the club to let go of me and sign a replacement, The fans here like me a lot I feel really good here, lets see what happens after a year or two.
Previous articleTalking Points: Spain's Resurgence Under Luis Enrique, As They Demolish The World Cup Finalists Croatia?


Uptake rates for MMR vaccine in Northern Ireland have reached an all-time high.
Statistics have shown that uptake for the vaccine, which protects against measles, mumps and rubella, is 95.3% at two years of age. This exceeds the World Health Organization's target for MMR vaccination is 95%.
Dr Carolyn Harper, Director of Public Health, Public Health Agency (PHA), said: "It is excellent news that the latest quarterly statistics show that MMR uptake at two years of age has exceeded 95% for the first time ever in Northern Ireland.
"Virtually all parents here are now choosing to have their children vaccinated against measles, mumps and rubella before two years of age. By doing so they have done the best thing for their children and protected them against these serious infections.
"These excellent uptake rates are also a testament to the GPs, practice nurses, health visitors and treatments room nurses, as well as child health computer system staff and administration support staff who all play a very important part in delivering the vaccination programme, and in helping us attain levels above the UK average.
Health Minister Edwin Poots also welcomed the news: "Measles, mumps and rubella are highly infections conditions which can be life threatening, and MMR vaccine is the safest and most effective way to ensure protection.
"These most recent figures are very encouraging and parents are to be congratulated for taking this very positive step to ensure their children are protected.
It is recommended that all children should have two doses of MMR vaccine by age four to ensure they are protected.
Chief Medical Officer Dr Michael McBride added: "The seriousness of measles, mumps and rubella should not be underestimated. Each condition can bring serious complications including meningitis, swelling of the brain and deafness. They can also lead to complications in pregnancy that affect the unborn baby and can lead to miscarriage.
1. The first dose of MMR vaccine is normally given just after the child's first birthday (this is measured at two years of age and this year has reached 95.3%).
2. The second dose is given at three years and four months.
3. The vaccine works by triggering the immune system (the body's natural defence against infection and illness) to produce antibodies against measles, mumps and rubella.


text:
При́нсипе де Асту́риас () — испанский трёхпалубный 112-пушечным линейный корабль 1-го ранга, названный в честь молодого короля Фердинанда VII, уцелевшего старшего сына Карла IV, короля Испании, впоследствии наследника престола Принца Астурийского. Был построен в Гаване в 1794 году по чертежам  и спущен на воду 28 января 1794. При постройке корабля использовались лучшие породы древесины, что позволило добиться впечатляющих характеристик и внешности.

17 мая 1795 года корабль прибыл в Кадис, сопровождая ценный конвой. В 1797 году он приобрел нового капитана — Антонио де Эсканьо и был послан как часть эскадры под командование генерала  для сопровождения другого каравана. После завершения этой миссии, незадолго до достижения Кадиса, эскадра была настигнута внезапно появившемся штормом. Затем у мыса Сент-Винсент встретила Британскую эскадру. В ходе боя 14 февраля 1797 года потерял 10 человек убитыми и 19 ранеными.

 В Трафальгарском сражении он ходил под командованием Рафаэля де Хора (Rafael de Hore), составляя часть испано-французской эскадры адмирала Федерико Гравины, который умер в следующем году от раны, которую он получил во время сражения. Судно потеряло 50 человек убитыми и 110 раненными. После битвы корабль была отбуксирован французским фрегатом «» в порт Рота, а затем прошёл капитальный ремонт в Кадисе. После этого линкор воевал в Перинейской войне. В сентябре 1810 «Принсипе де Астуриас» и «Санта Ана» пересекли Атлантический океан и прибыли в Гавану, чтобы избежать захвата французами. В 1814 году он ударился о скалу и был списан в 1817 году.

Литература

 «Cabo Trafalgar». Перес-Реверте, «Мыс Трафальгар» (Перевод с испанского Н. Кирилловой) «Эксмо», Москва, 2006 г., 368 стр.
 «The Line of Battle: The Sailing Warship, 1650—1840» Conway's History of the Ship «Naval Institute Press», 1St Edition editionHardcover — Сертябрь, 1992 г., 208 стр.
 «Militares y Navíos Españoles que participaron en Trafalgar (1)» Aragón Martín, Luis.
 «Militares y Navíos Españoles que participaron en Trafalgar (2)» Aragón Martín, Luis.
 José Romero Fernández de Landa, Un Ingeniero de Marina del Siglo XVIII, de José María de Juan-García Aguado, Universidad de Coruña, 1998.

Ссылки
 «Navíos Españoles» Batalla de Trafalgar.
 El navío Príncipe de Asturias en combate
 Príncipe de Asturias 1
 Príncipe de Asturias 2

Появились в 1794 году
Парусные линейные корабли Испании
Суда по алфавиту

Примечания

redpajama_set_name: RedPajamaWikipedia


In this article I discuss the following: 1. Secularization and desecularization and the metaphysics of man and religion; 2. Religion as a way of life; 3. The social aspects of religion and the problem of the neutrality of the outlook on life; 4. The scope of religious education; 5. The proper understanding of the inclusivism of religious education.


Provide evidence that an interested person will provide support. You may also provide evidence that establishes your ties with the sponsor .
FOR ADDITIONAL INFORMATION REGARDING B-2 VISA PLEASE CONTACT US FOR A CONFIDENTIAL CONSULTATION REGARDING THIS VISA OR OTHER IMMIGRATION ISSUES.


Do you want to 3d print objects, or do you want to learn about 3d printers? The Felix 1.5 ends up giving buyers a little of both. Most thinking about getting the Felix 1.5 from Felix Printers will be getting it as the kit, to save the €400 cost of the upgrade from the DIY kit to fully assembled. It's a unique machine, with some great design ideas, but it comes with a few flaws.
The kit took us about 12 hours to build, and we've build Rep rap machines before. The components come with a pdf of how to assemble everything. We heard horror stories of having to file down pieces of the motor as a required step, but the Felix 1.5 motor comes with flats, a great upgrade from the Felix 1.0.
The Felix 1.5, much like the Felix 1.0 has a rigid frame that slides the print in the Y axis, while the print head moves in the X axis. The bed retracts in the Z with each layer. Unfortunately, moving the entire 3d print can shake the object if you're dealing with tall thin objects that don't have solid adhesion to the print bed. The printer is a bit easier to calibrate, as the design makes it less overengineered. Dialing in settings typically only has to be done on one screw instead of multiple screws. But, its differences from other 3d printers made it hard to understand at times what needed to be done.
This video shows a sped up build process. Clearly these guys know what they're doing. It took us much longer.
The extruder uses 1.75mm PLA filament with a standard stepper extruder. We didn't notice much stringing, so it retracts the filament well. The heated bed helped only a little bit with warping, because the open design makes it difficult for the bed to reach full temperature unless you're working in a warm room. The design includes many 3d printed parts, which makes it so you can order the machine in red, black, or blue. The fans and the ball-bearing rails make printer operation extremely quiet. The Felix is one of the quietest machines we've dealt with.
At €899 (about $1200), the Felix 1.5 gives a great kit for learning a bit more about 3d printing, with some pretty good results and rivals other midrange printers. But it's a bit complicated to put together, and other options like the Type A or MendelMax Pro give similar quality with no assembly required. If you want to learn about how 3d printers are put together or you want to play with a unique 3d printer design, get the Felix 1.5 3d printer. But if you want to get up and running with great prints, look to the other midrange players.


text:
Displaying 21 to 30 of 42 results for molecular biology
Laboratory of Richard L. Huganir
The Laboratory of Richard L. Huganir is interested in the mechanisms that regulate synaptic transmission and synaptic plasticity. Our general approach is to study molecular and cellular mechanisms that regulate neurotransmitter receptors and synapse function. We are currently focusing our efforts on the mechanisms that underlie the regulation of the glutamate receptors, the major excitatory neurotransmitter receptors in the brain.
Research Areas: synapses, neurotransmitters, cell biology, brain, molecular biology
Richard Huganir, Ph.D.
Michael Wolfgang Laboratory
The Wolfgang Laboratory is interested in understanding the metabolic properties of neurons and glia at a mechanistic level in situ. Some of the most interesting, enigmatic and understudied cells in metabolic biochemistry are those of the nervous system. Defects in these pathways can lead to devastating neurological disease. Conversely, altering the metabolic properties of the nervous system can have surprisingly beneficial effects on the progression of some diseases. However, the mechanisms of these interactions are largely unknown.
We use biochemical and molecular genetic techniques to study the molecular mechanisms that the nervous system uses to sense and respond to metabolic cues. We seek to understand the neurometabolic regulation of behavior and physiology in obesity, diabetes and neurological disease.
Current areas of study include deconstructing neurometabolic pathways to understand the biochemistry of the nervous system and how these metabolic pathways impact animal beh...avior and physiology, metabolic heterogeneity and the evolution of metabolic adaptation. view more
Research Areas: metabolic biochemistry, obesity, diabetes, genomics, neurology, nervous system, molecular biology
Michael J. Wolfgang, Ph.D.
Biological Chemistry
Mikhail Pletnikov Laboratory
The Mikhail Pletnikov Laboratory is interested in the neurobiology of neurodevelopmental diseases such as schizophrenia and autism. The major focus of our laboratory is to evaluate how adverse environmental factors and vulnerable genes interact to affect brain and behavior development. We address these experimental questions by using methods of cell and molecular biology, neuroimmunology, neurochemistry, psychopharmacology and developmental psychobiology. The current projects in our laboratory are: (1) Genetic risk factors in neuron-astrocyte interaction during neurodevelopment, (2) Gene-environment interplay in the pathogenesis of psychiatric conditions, and (3) The neuroimmune interactions in abnormal neurodevelopment
Research Areas: autism, immunology, neurobiology, cell biology, neurodevelopment, developmental psychobiology, schizophrenia, pharmacology, chemistry, molecular biology
Mikhail Pletnikov, M.D., Ph.D.
Psychiatry and Behavioral Sciences
Molecular Mechanisms of Cellular Mechanosensing (Robinson Lab)
The Robinson Lab studies the way in which mechanical stress guide and direct the behavior of cells, including when they are part of tissues, organs and organ systems.
Research Areas: cellular mechanosensing, tissues, organs, molecular biology
Douglas Robinson, M.Phil., Ph.D.
Nathaniel Comfort Lab
Research in the Nathaniel Comfort Lab looks at the history of biology. Areas of particular interest include heredity and health in 20th century America, genetics, molecular biology, biomedicine, the history of recent science, oral history and interviewing.
Research Areas: biomedicine, history of biology, genomics, history of medicine, molecular biology
Nathaniel Comfort, M.S., Ph.D.
Nicholas Zachos Lab
Researchers in the Nicholas Zachos Lab work to understand variations in protein trafficking that occur during pathophysiological conditions that cause ion and water transport that result in diarrhea. We recently identified a clathrin-independent endocytic pathway responsible for elevated intracellular calcium-mediated inhibition of NHE3 activity in intestinal epithelial cells. We use advanced imaging techniques, including confocal and multi-photon microscopy, to characterize protein trafficking of intestinal transporters. We also perform functional assays using fluorescent probes (ratiometric and non-ratiometric) to measure ion transport in cell culture models, intact intestinal tissues and human small intestinal enteroids.
Research Areas: imaging, protein trafficking, diarrhea, bioinformatics, molecular biology
Nicholas Zachos, Ph.D.
O'Rourke Lab
The O'Rourke Lab uses an integrated approach to study the biophysics and physiology of cardiac cells in normal and diseased states.
Research in our lab has incorporated mitochondrial energetics, Ca2+ dynamics, and electrophysiology to provide tools for studying how defective function of one component of the cell can lead to catastrophic effects on whole cell and whole organ function. By understanding the links between Ca2+, electrical excitability and energy production, we hope to understand the cellular basis of cardiac arrhythmias, ischemia-reperfusion injury, and sudden death.
We use state-of-the-art techniques, including single-channel and whole-cell patch clamp, microfluorimetry, conventional and two-photon fluorescence imaging, and molecular biology to study the structure and function of single proteins to the intact muscle. Experimental results are compared with simulations of computational models in order to understand the findings in the context of the system as a whole....
Ongoing studies in our lab are focused on identifying the specific molecular targets modified by oxidative or ischemic stress and how they affect mitochondrial and whole heart function.
The motivation for all of the work is to understand
•	how the molecular details of the heart cell work together to maintain function and
•	how the synchronization of the parts can go wrong
Rational strategies can then be devised to correct dysfunction during the progression of disease through a comprehensive understanding of basic mechanisms.
Brian O'Rourke, PhD, is a professor in the Division of Cardiology and Vice Chair of Basic and Translational Research, Department of Medicine, at the Johns Hopkins University. view more
Research Areas: biophysics, ischemia-reperfusion injury, imaging, electrophysiology, cardiovascular, arrhythmia, physiology, sudden cardiac death, molecular biology, cardiac cells
Brian O'Rourke, Ph.D.
Rong Li Lab
Research in the Rong Li Lab aims to better understand the fundamental laws that regulate the behavior and interactions of cellular systems. Our team is currently examining how cells consolidate their damaged proteins and prevent them from spreading freely — work aimed at understanding how to better treat diseases such as Alzheimer's and ALS. We are also applying insights gained through basic research to better understand diseases such as cancer and polycystic kidney disease.
Research Areas: cell biology, ALS, kidney diseases, cancer, cellular dynamics, molecular biology, Alzheimer's disease
Rong Li, M.S., Ph.D.
Sesaki Lab
The Sesaki Lab is interested in the molecular mechanisms and physiological roles of mitochondrial fusion. Mitochondria are highly dynamic and control their morphology by a balance of fusion and fission. The regulation of membrane fusion and fission generates a striking diversity of mitochondrial shapes, ranging from numerous small spheres in hepatocytes to long branched tubules in myotubes. In addition to shape and number, mitochondrial fusion is critical for normal organelle function.
Research Areas: brain, mitochondrial fusion, mitochondria, molecular biology
Hiromi Sesaki, Ph.D.
Seydoux Lab
The Seydoux Lab studies the earliest stages of embryogenesis to understand how single-celled eggs develop into complex multicellular embryos. We focus on the choice between soma and germline, one of the first developmental decisions faced by embryos. Our goal is to identify and characterize the molecular mechanisms that activate embryonic development, polarize embryos, and distinguish between somatic and germline cells, using Caenorhabditis elegans as a model system. Our research program is divided into three areas: oocyte-to-embryo transition, embryonic polarity and soma-germline dichotomy.
Research Areas: cell biology, soma cells, genomics, germ cells, embryo, molecular biology
Geraldine Seydoux, Ph.D.


text:
Q: Django rest API : Python command-line .py execution: Stuck at a certain place I'm trying to deploy the following Django-rest api on gcp ubuntu 22.0.4 using python 3.9.
https://github.com/OkunaOrg/okuna-api
The entire setup is supposed to be done and get setup using a single command :
python3.9 okuna-cli.py up-full
The execution seems stuck at "Waiting for server to come up..." and doesn't proceed ahead. The setup should complete by stating "Okuna is live at "domain". Another important aspect of the setup is the 5 docker containers are running and working fine when i run the py file. I'm even able to access the database after creating a superuser.
The code is as follows :

import random
import time
import click
import subprocess
import colorlog
import logging
import os.path
from shutil import copyfile
import json
import atexit
import os, errno

import requests
from halo import Halo

handler = colorlog.StreamHandler()
handler.setFormatter(colorlog.ColoredFormatter(
    '%(log_color)s%(name)s -> %(message)s'))

logger = colorlog.getLogger('')
logger.addHandler(handler)

logger.setLevel(level=logging.DEBUG)

current_dir = os.path.dirname(__file__)

OKUNA_CLI_CONFIG_FILE = os.path.join(current_dir, '.okuna-cli.json')
OKUNA_CLI_CONFIG_FILE_TEMPLATE = os.path.join(current_dir, 'templates/.okuna-cli.json')

LOCAL_API_ENV_FILE = os.path.join(current_dir, '.env')
LOCAL_API_ENV_FILE_TEMPLATE = os.path.join(current_dir, 'templates/.env')

DOCKER_COMPOSE_ENV_FILE = os.path.join(current_dir, '.docker-compose.env')
DOCKER_COMPOSE_ENV_FILE_TEMPLATE = os.path.join(current_dir, 'templates/.docker-compose.env')

REQUIREMENTS_TXT_FILE = os.path.join(current_dir, 'requirements.txt')
DOCKER_API_IMAGE_REQUIREMENTS_TXT_FILE = os.path.join(current_dir, '.docker', 'api', 'requirements.txt')
DOCKER_WORKER_IMAGE_REQUIREMENTS_TXT_FILE = os.path.join(current_dir, '.docker', 'worker', 'requirements.txt')
DOCKER_SCHEDULER_IMAGE_REQUIREMENTS_TXT_FILE = os.path.join(current_dir, '.docker', 'scheduler', 'requirements.txt')
DOCKER_API_TEST_IMAGE_REQUIREMENTS_TXT_FILE = os.path.join(current_dir, '.docker', 'api-test', 'requirements.txt')

CONTEXT_SETTINGS = dict(
    default_map={}
)

random_generator = random.SystemRandom()

def _remove_file_silently(filename):
    try:
        os.remove(filename)
    except OSError as e:  # this would be "except OSError, e:" before Python 2.6
        if e.errno != errno.ENOENT:  # errno.ENOENT = no such file or directory
            raise  # re-raise exception if a different error occurred

def _get_random_string(length=12,
                       allowed_chars='abcdefghijklmnopqrstuvwxyz'
                                     'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'):
    """
    Return a securely generated random string.
    The default length of 12 with the a-z, A-Z, 0-9 character set returns
    a 71-bit value. log_2((26+26+10)^12) =~ 71 bits
    """
    return ''.join(random.choice(allowed_chars) for i in range(length))

def _get_django_secret_key():
    """
    Return a 50 character random string usable as a SECRET_KEY setting value.
    """
    chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
    return _get_random_string(50, chars)

def _get_mysql_password():
    return _get_random_string(64)

def _get_redis_password():
    return _get_random_string(128)

def _copy_requirements_txt_to_docker_images_dir():
    copyfile(REQUIREMENTS_TXT_FILE, DOCKER_API_IMAGE_REQUIREMENTS_TXT_FILE)
    copyfile(REQUIREMENTS_TXT_FILE, DOCKER_WORKER_IMAGE_REQUIREMENTS_TXT_FILE)
    copyfile(REQUIREMENTS_TXT_FILE, DOCKER_SCHEDULER_IMAGE_REQUIREMENTS_TXT_FILE)

def _check_okuna_api_is_running(address, port):
    # Create a TCP socket
    try:
        response = requests.get('http://%s:%s/health/' % (address, port))
        response_status = response.status_code
        return response_status == 200
    except requests.ConnectionError as e:
        return False

def _wait_until_api_is_running(address, port, message='Waiting for server to come up...', sleep=None):
    spinner = Halo(text=message, spinner='dots')
    spinner.start()

    if sleep:
        time.sleep(sleep)

    is_running = _check_okuna_api_is_running(address=address, port=port)

    while not is_running:
        is_running = _check_okuna_api_is_running(address=address, port=port)

    spinner.stop()

def _clean():
    """
    Cleans everything that the okuna-cli has created. Docker volumes, config files, everything.
    :return:
    """
    logger.info(' Cleaning up database')
    subprocess.run(["docker", "volume", "rm", "okuna-api_mariadb"])
    subprocess.run(["docker", "volume", "rm", "okuna-api_redisdb"])

    logger.info(' Cleaning up config files')
    _remove_file_silently(LOCAL_API_ENV_FILE)
    _remove_file_silently(DOCKER_COMPOSE_ENV_FILE)
    _remove_file_silently(OKUNA_CLI_CONFIG_FILE)
    logger.info('✅ Clean up done!')

def _print_okuna_logo():
    print(r"""
   ____  _
  / __ \| |
 | |  | | | ___   _ _ __   __ _
 | |  | | |/ | | | | '_ \ / _` |
 | |__| |   <| |_| | | | | (_| |
  \____/|_|\_\\__,_|_| |_|\__,_|

  """)

def _file_exists(filename):
    return os.path.exists(filename) and os.path.isfile(filename)

def _replace_in_file(filename, texts):
    with open(filename, 'r') as file:
        filedata = file.read()

    # Replace the target string
    for key in texts:
        value = texts[key]
        filedata = filedata.replace(key, value)

    # Write the file out again
    with open(filename, 'w') as file:
        file.write(filedata)

def _ensure_has_local_api_environment_file(okuna_cli_config):
    if _file_exists(LOCAL_API_ENV_FILE):
        return
    logger.info('Local API .env file does not exist. Creating %s' % LOCAL_API_ENV_FILE)

    if not _file_exists(LOCAL_API_ENV_FILE_TEMPLATE):
        raise Exception('Local API .env file template did not exist')

    copyfile(LOCAL_API_ENV_FILE_TEMPLATE, LOCAL_API_ENV_FILE)

    _replace_in_file(LOCAL_API_ENV_FILE, {
        "{{DJANGO_SECRET_KEY}}": okuna_cli_config['djangoSecretKey'],
        "{{SQL_PASSWORD}}": okuna_cli_config['sqlPassword'],
        "{{REDIS_PASSWORD}}": okuna_cli_config['redisPassword'],
    })

def _ensure_has_docker_compose_api_environment_file(okuna_cli_config):
    if _file_exists(DOCKER_COMPOSE_ENV_FILE):
        return
    logger.info('Docker compose env file does not exist. Creating %s' % DOCKER_COMPOSE_ENV_FILE)

    if not _file_exists(DOCKER_COMPOSE_ENV_FILE_TEMPLATE):
        raise Exception('Docker compose env file template did not exist')

    copyfile(DOCKER_COMPOSE_ENV_FILE_TEMPLATE, DOCKER_COMPOSE_ENV_FILE)

    _replace_in_file(DOCKER_COMPOSE_ENV_FILE, {
        "{{DJANGO_SECRET_KEY}}": okuna_cli_config['djangoSecretKey'],
        "{{SQL_PASSWORD}}": okuna_cli_config['sqlPassword'],
        "{{REDIS_PASSWORD}}": okuna_cli_config['redisPassword'],
    })

def _ensure_has_okuna_config_file():
    if _file_exists(OKUNA_CLI_CONFIG_FILE):
        return

    django_secret_key = _get_django_secret_key()
    mysql_password = _get_mysql_password()
    redis_password = _get_redis_password()

    logger.info('Generated DJANGO_SECRET_KEY=%s' % django_secret_key)
    logger.info('Generated SQL_PASSWORD=%s' % mysql_password)
    logger.info('Generated REDIS_PASSWORD=%s' % redis_password)

    logger.info('Config file does not exist. Creating %s' % OKUNA_CLI_CONFIG_FILE)

    if not _file_exists(OKUNA_CLI_CONFIG_FILE_TEMPLATE):
        raise Exception('Config file template did not exists')

    copyfile(OKUNA_CLI_CONFIG_FILE_TEMPLATE, OKUNA_CLI_CONFIG_FILE)

    _replace_in_file(OKUNA_CLI_CONFIG_FILE, {
        "{{DJANGO_SECRET_KEY}}": django_secret_key,
        "{{SQL_PASSWORD}}": mysql_password,
        "{{REDIS_PASSWORD}}": redis_password,
    })

def _bootstrap(is_local_api):
    logger.info(' Bootstrapping Okuna with some data')

    if is_local_api:
        subprocess.run(["./utils/scripts/bootstrap_development_data.sh"])
    else:
        subprocess.run(["docker-compose", "-f", "docker-compose-full.yml", "exec", "webserver",
                        "/bootstrap_development_data.sh"])

def _ensure_has_required_cli_config_files():
    _ensure_has_okuna_config_file()
    with open(OKUNA_CLI_CONFIG_FILE, 'r+') as okuna_cli_config_file:
        okuna_cli_config = json.load(okuna_cli_config_file)
        _ensure_has_docker_compose_api_environment_file(okuna_cli_config=okuna_cli_config)
        _ensure_has_local_api_environment_file(okuna_cli_config=okuna_cli_config)

def _ensure_was_bootstrapped(is_local_api):
    with open(OKUNA_CLI_CONFIG_FILE, 'r+') as okuna_cli_config_file:
        okuna_cli_config = json.load(okuna_cli_config_file)
        if okuna_cli_config['bootstrapped']:
            return

        logger.info('Okuna was not bootstrapped.')

        _bootstrap(is_local_api=is_local_api)

        okuna_cli_config['bootstrapped'] = True
        okuna_cli_config_file.seek(0)
        json.dump(okuna_cli_config, okuna_cli_config_file, indent=4)
        okuna_cli_config_file.truncate()

        logger.info('Okuna was bootstrapped.')

@click.group()
def cli():
    pass

def _down_test():
    """Bring Okuna down"""
    logger.error('⬇  Bringing the Okuna test services down...')
    subprocess.run(["docker-compose", "-f", "docker-compose-test-services-only.yml", "down"])

def _down_full():
    """Bring Okuna down"""
    logger.error('⬇  Bringing the whole of Okuna down...')
    subprocess.run(["docker-compose", "-f", "docker-compose-full.yml", "down"])

def _down_services_only():
    """Bring Okuna down"""
    logger.error('⬇  Bringing the Okuna services down...')
    subprocess.run(["docker-compose", "-f", "docker-compose-services-only.yml", "down"])

@click.command()
def down_services_only():
    _down_services_only()

@click.command()
def down_full():
    _down_full()

@click.command()
def up_full():
    """Bring the whole of Okuna up"""
    _print_okuna_logo()
    _ensure_has_required_cli_config_files()
    _copy_requirements_txt_to_docker_images_dir()

    logger.info('⬆  Bringing the whole of Okuna up...')

    atexit.register(_down_full)
    subprocess.run(["docker-compose", "-f", "docker-compose-full.yml", "up", "-d", "-V"])

    okuna_api_address = 'domain'
    okuna_api_port = 80

    _wait_until_api_is_running(address=okuna_api_address, port=okuna_api_port)

    _ensure_was_bootstrapped(is_local_api=False)

    logger.info('  Okuna is live at http://%s:%s.' % (okuna_api_address, okuna_api_port))

    subprocess.run(["docker-compose", "-f", "docker-compose-full.yml", "logs", "--follow", "--tail=0", "webserver"])

    input()

@click.command()
def up_services_only():
    """Bring only the Okuna services up. API is up to you."""
    _print_okuna_logo()
    _ensure_has_required_cli_config_files()
    _copy_requirements_txt_to_docker_images_dir()

    logger.info('⬆  Bringing only the Okuna services up...')

    atexit.register(_down_services_only)
    subprocess.run(["docker-compose", "-f", "docker-compose-services-only.yml", "up", "-d", "-V"])

    _ensure_was_bootstrapped(is_local_api=True)

    logger.info('  Okuna services are up')

    subprocess.run(["docker-compose", "-f", "docker-compose-services-only.yml", "logs", "--follow"])

    input()

@click.command()
def down_test():
    _down_test()

@click.command()
def up_test():
    """Bring the Okuna test services up"""
    _print_okuna_logo()
    _ensure_has_required_cli_config_files()

    logger.info('⬆  Bringing the Okuna test services up...')

    atexit.register(_down_test)
    subprocess.run(["docker-compose", "-f", "docker-compose-test-services-only.yml", "up", "-d", "-V"])

    logger.info('  Okuna  tests services are live')

    subprocess.run(
        ["docker-compose", "-f", "docker-compose-test-services-only.yml", "logs", "--follow", "--tail=0"])

    input()

@click.command()
def build_full():
    """Rebuild Okuna services"""
    _ensure_has_required_cli_config_files()
    logger.info('♀  Rebuilding Okuna full services...')
    _copy_requirements_txt_to_docker_images_dir()
    subprocess.run(["docker-compose", "-f", "docker-compose-full.yml", "build"])

@click.command()
def build_services_only():
    """Rebuild Okuna services"""
    _ensure_has_required_cli_config_files()
    logger.info('♀  Rebuilding only Okuna services...')
    _copy_requirements_txt_to_docker_images_dir()
    subprocess.run(["docker-compose", "-f", "docker-compose-services-only.yml", "build"])

@click.command()
def status():
    """Get Okuna status"""
    logger.info('♂  Retrieving services status...')
    subprocess.run(["docker-compose", "ps"])

@click.command()
def clean():
    """Bootstrap Okuna"""
    _clean()

cli.add_command(up_full)
cli.add_command(down_full)
cli.add_command(up_test)
cli.add_command(down_test)
cli.add_command(up_services_only)
cli.add_command(down_services_only)
cli.add_command(build_full)
cli.add_command(build_services_only)
cli.add_command(clean)
cli.add_command(status)

if __name__ == '__main__':
    cli()

I checked that the def status() isn't working as well which is supposed to  check the running docker containers as defined in docker-compose.env and show results. I can se following error when I try:
python3.9 okuna-cli.py status

Can't find a suitable configuration file in this directory or any parent.Are you in the right directory?Supported filenames: docker-compose.yml, docker-compose.yaml, compose.yml, compose.yaml

When i do docker-compose -f docker-compose-full.yml up
I have the following warning displayed :
Aborted connection 3 to db: 'unconnected' user: 'unauthenticated' host: '172.16.16.2' (This connection closed normally without authentication)
Aborted connection 4 to db: 'unconnected' user: 'unauthenticated' host: '172.16.16.3' (This connection closed normally without authentication)
EDIT : The above  Warning disappears after downgrading Mariadb version to 10.2
I'm getting the 2 additional warnings as well. This is despite running inside a virtual environment and I've done everything using only pip3 without sudo:
1.The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag
2.Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
My docker-compose:

version: '3'

services:
  webserver:
    container_name: okuna-api
    build:
      dockerfile: Dockerfile
      context: ./.docker/api
    privileged: true
    extra_hosts:
      - db.okuna:172.16.16.4
      - redis.okuna:172.16.16.5
    volumes:
      - ./:/opt/okuna-api-core
      - ./.docker-cache/pip:/root/.cache/pip
    ports:
      - 80:80
    working_dir: /opt/okuna-api-core
    networks:
      okuna:
        ipv4_address: 172.16.16.1
    depends_on:
      - db
      - redis
    env_file:
      - .docker-compose.env
  worker:
    container_name: okuna-worker
    build:
      dockerfile: Dockerfile
      context: ./.docker/worker
    privileged: true
    extra_hosts:
      - db.okuna:172.16.16.4
      - redis.okuna:172.16.16.5
    volumes:
      - ./:/opt/okuna-api-core
      - ./.docker-cache/pip:/root/.cache/pip
    working_dir: /opt/okuna-api-core
    networks:
      okuna:
        ipv4_address: 172.16.16.2
    depends_on:
      - webserver
    env_file:
      - .docker-compose.env
  scheduler:
    container_name: okuna-scheduler
    build:
      dockerfile: Dockerfile
      context: ./.docker/scheduler
    privileged: true
    extra_hosts:
      - db.okuna:172.16.16.4
      - redis.okuna:172.16.16.5
    volumes:
      - ./:/opt/okuna-api-core
      - ./.docker-cache/pip:/root/.cache/pip
    working_dir: /opt/okuna-api-core
    networks:
      okuna:
        ipv4_address: 172.16.16.3
    depends_on:
      - webserver
    env_file:
      - .docker-compose.env
  db:
    image: mariadb:latest
    hostname: db.okuna
    volumes:
      - mariadb:/var/lib/mysql
    ports:
      - 3306
    privileged: false
    networks:
      okuna:
        ipv4_address: 172.16.16.4
    command: --character-set-server=utf8 --collation-server=utf8_unicode_ci
    env_file:
      - .docker-compose.env
  redis:
    image: bitnami/redis:latest
    privileged: false
    ports:
      - 6379
    networks:
      okuna:
        ipv4_address: 172.16.16.5
    env_file:
      - .docker-compose.env
    volumes:
      - redisdb:/bitnami/redis/data

volumes:
  mariadb:
  redisdb:

networks:
  okuna:
    ipam:
      driver: default
      config:
        - subnet: "172.16.16.0/16"

my docker-compose.env :

# Variable specifying execution environment
# Required always.
# Possible values: production,development,acceptance, test
ENVIRONMENT=development

# ============= START NON-ENV SPECIFIC VARIABLES ============= #

# [NAME] ALLOWED_HOSTS
# [DESCRIPTION] Django variable specifying allowed hosts.
# [REQUIRED][PRODUCTION]
# [MORE] https://docs.djangoproject.com/en/2.1/ref/settings/#allowed-hosts
#ALLOWED_HOSTS=www.openbook.social

# [NAME] SECRET_KEY
# [DESCRIPTION] Django variable to provide cryptographic signing.  If using okuna-cli, obtained from .okuna-cli.json
# [REQUIRED][ALWAYS]
# [MORE] https://docs.djangoproject.com/en/2.1/ref/settings/#secret-key
SECRET_KEY=949m="long passwrod generated here"

# [NAME] JWT_ALGORITHM
# [DESCRIPTION] Django variable to provide cryptographic signing.
# [REQUIRED][ALWAYS]
# [MORE] https://docs.djangoproject.com/en/2.1/ref/settings/#secret-key
JWT_ALGORITHM=HS256

# [NAME] MEDIA_ROOT
# [DESCRIPTION] Absolute filesystem path to the directory that will hold user-uploaded files.
# [MORE] https://docs.djangoproject.com/en/2.1/ref/settings/#media-root
# [OPTIONAL=./media]
# MEDIA_ROOT=

# [NAME] MEDIA_URL
# [DESCRIPTION] URL that handles the media served from MEDIA_ROOT, used for managing stored files. It must end in a slash if set
# [MORE] https://docs.djangoproject.com/en/2.1/ref/settings/#media-url
# [OPTIONAL=/media/]
# MEDIA_URL=

# [GROUP] SQL Database Configuration
# [DESCRIPTION] The SQL database configuration
# [REQUIRED][ALWAYS]
RDS_DB_NAME=okuna
RDS_USERNAME=root
RDS_HOSTNAME=db.okuna
RDS_PORT=3306
RDS_HOSTNAME_READER=db.okuna
RDS_HOSTNAME_WRITER=db.okuna
#[NAME] RDS_PASSWORD
# [DESCRIPTION] The password for the SQL Database. If using okuna-cli, obtained from .okuna-cli.json
RDS_PASSWORD=long passwrod generated here

# [GROUP] Redis Database configuration Configuration
# [DESCRIPTION] The redis database configuration
# [REQUIRED][ALWAYS]
REDIS_HOST=redis.okuna
REDIS_PORT=6379
#[NAME] REDIS_PASSSWORD
# [DESCRIPTION] The password for the REDIS Database.
REDIS_PASSWORD=long password generated here

# [GROUP] Top posts criteria
# [DESCRIPTION] The criteria under which posts will be added to the Explore/Top posts section of the app
# [OPTIONAL=2]
# MIN_UNIQUE_TOP_POST_REACTIONS_COUNT=
# MIN_UNIQUE_TOP_POST_COMMENTS_COUNT=

# [NAME] NEW_USER_SUGGESTED_COMMUNITIES
# [DESCRIPTION] The ids of the communities to be suggested to a new user
# [OPTIONAL=1]
# NEW_USER_SUGGESTED_COMMUNITIES=1,1310,216

# [GROUP] Allowed media sizes
# [DESCRIPTION] The criteria under which posts will be added to the Explore/Top posts section of the app
# [OPTIONAL]
# POST_MEDIA_MAX_SIZE=30485760
# PROFILE_AVATAR_MAX_SIZE=10485760
# PROFILE_COVER_MAX_SIZE=10485760
# COMMUNITY_AVATAR_MAX_SIZE=10485760
# COMMUNITY_COVER_MAX_SIZE=10485760

# [NAME] MODERATORS_COMMUNITY_NAME
# [DESCRIPTION] The community which when joined, will become global moderators
# [OPTIONAL=mods]
# MODERATORS_COMMUNITY_NAME=

# ============= END NON-ENV SPECIFIC VARIABLES ============= #

# ============= START DOCKER COMPOSE SPECIFIC VARIABLES ============= #

# [GROUP] Mysql Docker Image env vars
# [DESCRIPTION] This must match the RDS_PASSWORD AND RDS_DATABASE env vars on top
# [REQUIRED][ALWAYS]
MYSQL_ROOT_PASSWORD=long password generated here
MYSQL_DATABASE=okuna

# [NAME] WAIT_HOSTS
# [DESCRIPTION] The hosts that the Kosmos API should wait for
# [REQUIRED]
WAIT_HOSTS:db.okuna:3306

# ============= END DOCKER COMPOSE SPECIFIC VARIABLES ============= #

This is despite the configuration files are intact and in the right place.
Help appreciated.


Additional documents released today by the Ontario NDP show that the plan to establish a new healthcare "Super Agency" has been in the works for months, and was approved by the PC Cabinet on January 16, 2019. When asked at a media conference, ONDP Leader Andrea Horwath stated that members of the board of the "Super Agency" had already been sought out and remuneration had been agreed to.
New information in the documents also reveals a plan that would threaten quality of care through widespread outsourcing of vital services including inspections, laboratories, licensing, devices and Ornge.
The release of the three documents follows the full release of a draft bill to create a "Super Agency" that would have far-reaching powers including merging health services such as hospitals, long-term care homes, and community health centres.


As digital manufacturing becomes increasingly popular and more companies begin exploring their options for streamlined, expedited operations, it's become clear that there are many misconceptions surrounding this method of production.
So what is digital manufacturing, exactly, and how can it benefit your operations?
Digital manufacturing centers on the collection, analysis, and subsequent application of data. Many people believe digital manufacturing is synonymous with 3D printing, but this isn't the case. Digital manufacturing involves connecting different systems, machines, and processes, allowing for more accurate planning and testing and a more efficient, streamlined production line.
Through the collection of relevant data, stakeholders have quick, easy access to important information, which means improvements and adjustments can be made more quickly. A centralized computer system holds this information, allowing manufacturers to identify trends, pinpoint areas for improvement, and prepare for future needs. The secure IT network also allows for reduced downtime and mass customization.
Often playing a major role here is the Industrial Internet of Things (IIoT), a subcategory of the IoT, which refers to a network of devices, equipment, and computers that collects and shares data. This interconnectivity allows for enhanced efficiency, better scalability, cost savings, and better accuracy in planning and scheduling. Digital manufacturing processes don't rely on the IoT, but they can greatly benefit from it.
In conjunction with high-powered software, the internet in general, and new sophisticated systems, the IIoT is proving to be a solid backbone for digital manufacturing techniques.
1. Explain to your team the value in digital manufacturing.
Many manufacturing and machining facilities are used to the way things are done and tend to resist change. This can make the prospect of implementing a new system daunting and overwhelming. Some workers may even be nervous that these new technologies with supplant their jobs.
But there's a lot to be gained from digital manufacturing — in terms of both time and cost. So make sure everyone on your team understands the benefits to be gained from these advancements and how it will help workers in their daily duties.
2. Take time to learn the basics before taking action.
Before doing anything, take the time to learn about the new technologies you're considering implementing and how they would change things in your facility. Sometimes expectations don't match up to reality, so it's important to learn how digital manufacturing techniques would work for your exact systems, equipment, and processes, and how these techniques may impact staff.
Don't waste too much time building analytical models, as the major players at your company may lose patience with the process and opt out. But taking some time to map out a game plan and analyze how new strategies would affect current processes is smart for any kind of facility change, and this will give you solid talking points if presenting new ideas to management.
3. Start small and test out new strategies before making big changes.
You don't need to implement a multimillion-dollar digital setup to reap the benefits of digital strategies. Start by pinpointing a few areas that could benefit from a more sophisticated system and try out some new digital techniques.
This will allow you to test out new software and technologies and get an idea of what a larger-scale setup may look like. You can then identify any difficulties and see what works best, allowing you to plan ahead for any future changes and digital upgrades. Consider doing a proof of concept to illustrate the benefits of any newly implemented systems.
4. Consider cybersecurity and take the time to study up on necessary preventative measures.
Any discussion of digital manufacturing should involve a conversation focused on cybersecurity. New digital processes will inevitably bring up new security risks, so it's crucial to fully consider the implications before taking action. Be sure to stay up to date on new advancements in cybersecurity, and take the time to research key concerns and talk with experts who can guide you in the right direction.
Networks must be isolated to reduce the risk of attacks. Otherwise, if a single system that is integrated with other pieces of equipment and machinery is compromised, all of the other connected items are at risk as well.
As the manufacturing sector continues to shift and evolve, the many unique benefits of digital manufacturing are coming to the forefront. Allowing for cost savings, increased uptime, higher efficiency, quicker maintenance, and better planning, the digital sphere is changing the way virtually every industry does business.
Before embarking on a full-scale implementation of digital manufacturing, consider the tips listed above and make sure you fully grasp the concept as a whole — challenges and risks included. This will set you on good path to start optimizing and updating your systems and facility without disruption or pushback.
Helen Carey: As senior copy editor for Thomas' Insights, Helen Carey reviews all articles, white papers, eBooks, and other content prior to publication. She also develops original content for Insights and other publications.


We specialise in Plant and Tool Hire for the Trade and DIY from our depot situated at Didcot in Oxfordshire.
Our range of equipment for hire is extensive, from mini diggers and excavators, dumpers, compressors and trailers right through to power tools and gardening equipment.
At Didcot Plant we believe strongly in providing our clients with the very best service.
February's arrival of three new Hinowa HS701 skip loading tracked mini dumpers increases our fleet to six.
The requirement for green flashing beacons to be fitted is becoming more and more prevalent. With this is mind we are taking measures to fit them to all of our machines.
Demand for the excellent Manitou MT625 6.0m Telehandler continues to be strong so we've added two more to our fleet.
"Their drivers have always been courteous and helpful, and I can't remember their kit ever letting us down. I would recommend them."
"We find Didcot plant to be a friendly and helpful company with great knowledge, due to their many years of experience. Their prices are competitive and the service is very efficient."


Contract Type: Temporary basis with 2 years work available.
3D Personnel are currently recruiting for a Gateman in Winchester. to work with a reputable contractor. Duties will involve working on the gate, accepting deliveries, directing site traffic and ensuring site entrances are safe from obstructions.


So, Im Sorry Metaliman coz of mine 2 bad words about u. I was wrong. Coz i c that u want to make this game alive,and i respect that.
Sakke can write how good or bad admin i was, i think that u all believe him, for some reason.
cheat, after that u lied about ur "brother" ect...so u dont have any right to write anything about anyone, coz all u u did is a cheating,lying and trashing.
I think Raver was mostly a good admin, I had some fights with you but they weren't about administration stuff. Once I gave too long ban for fake tag, and you made me realize that it was too long. The fight we had was useless, both had some fault in it. Sometimes people get too hot-tempered for little to no reason, it applies to almost everyone.
We can put a cross on the SamTrack anyway, we'll get 2 or 3 new servers and manage them by FTP.
Sad to see such a great feature unfairly gone.
sure, the hospitality here at GZ has always been an example, you and your replies out of arguments are the perfect examples.
Ok this post offends me and i better stay out of gz from now on.
Thanks for enlighten me me coordinator.


text:
require 'test_helper'

class UsersSignupTest < ActionDispatch::IntegrationTest
  test 'invalid signup information' do
    get signup_path
    assert_no_difference 'User.count' do
      post users_path, params: { user: { email: 'user@invalid',
                                         password: 'foo',
                                         password_confirmation: 'bar' } }
    end
    assert_template 'users/new'
    assert_select 'div#error_explanation'
    assert_select 'div.field_with_errors'
  end

  test 'illegal j-scorer email address' do
    get signup_path
    assert_no_difference 'User.count' do
      post users_path, params: { user: { email: 'someone@j-scorer.com',
                                         password: 'password',
                                         password_confirmation: 'password' } }
    end
    assert_template 'users/new'
    assert_select 'div#error_explanation'
    assert_select 'div.field_with_errors'
  end

  test 'valid signup information' do
    get signup_path
    assert_difference 'User.count', 1 do
      post users_path,
           params: { user: { email: 'user@example.com',
                             password: 'password',
                             password_confirmation: 'password' } }
      follow_redirect!
    end
    assert_template 'pages/home'
    assert logged_in_here?
    assert_not flash.empty?
  end
end

redpajama_set_name: RedPajamaGithub


Residents of Airdrie are concerned about getting another job in order to pay for sudden or overdue bills. People want to spend their hard earned money on vacations or go on shopping sprees instead of paying for unexpected expenses. Getting a payday loan is an excellent option however with high credit score demands and long application processing times people are deterred from taking the time to apply for a loan. Thankfully, you are not able to access payday loan applications and have them processed faster than ever before by applying online.
will not turn away any applicant and even aim to get applicants their money within only 1 or 2 business days. Lastly, all the top loan companies in Airdrie are available for your viewing right at your computer screen making it easy and fast for you to compare each provider and make an educated decision.
Take a look of our list of reputable online loan providers in Airdrie and click on "Apply Now" to gain access to their loan application. After completing and submitting their online loan application an agent from that company will get in touch with you to complete the process. Don't hesitate to pre-apply here at Smarter Loans and allow us to match you up with a suitable online loan provider in Airdrie to process your application and get you more money fast.


text:
search=1C4RDJDG7KC557174& 0 auto-used2 ,auto-certified-used /used-inventory/index.htm
Find a Great Deal on a Used Car at Mercedes-Benz of Little Rock Serving Little Rock, North Little Rock, Benton AR, Bryant AR and Conway AR
We know that savvy shoppers are always seeking a great deal on a used car near Little Rock, North Little Rock, Benton AR, Bryant AR or Conway AR. Luckily for you, it doesn't have to cost a pretty penny to drive a safe, reliable and family-oriented pre-owned car. Take a look below to find that Mercedes-Benz of Little Rock maintains a broad selection of Certified Pre-Owned Mercedes-Benz models and affordably-priced used vehicles. We're certain that you'll be impressed by the quality, condition and performance of every pre-owned vehicle in our current inventory!
Get More Car for Less Money at Mercedes-Benz of Little Rock
Now, we always guarantee quality but there's only so much online shopping can tell you about a pre-owned vehicle. The best thing you can do is take a test drive to learn more about the ins and outs of your chosen ride. You can do just that by visiting Mercedes-Benz of Little Rock in Little Rock to get behind the wheel right away. While you're here, we'll explain your auto financing options, perform a trade-in vehicle appraisal and address your questions and concerns!


text:
4 Mexican Food Deals to Snag During Chipotle's Feb. 8 Shutdown
Everyday Money
Best Banks
Best Cell Phone Plans
Money 50: The Best Mutual Funds
Mastering the Journey
Ultimate Retirement Guide
Boston Globe—Getty Images
By Brad Tuttle
Chipotle wants everyone to know that it is taking the reputation-damaging food poisoning episodes that have taken place at its restaurants very seriously. To ensure all of its employees are up to speed on the latest efforts to guarantee food safety, Chipotle is taking the drastic step of shutting down all locations for a spell on Monday, Feb. 8, in order to conduct a nationwide meeting.
While the restaurant world in general must theoretically commend such a commitment to food safety, Chipotle's competitors are seizing the moment as an opportunity to drum up business when it's physically impossible for consumers to buy a Chipotle burrito. Here are some deals and promotions on burritos and other Mexican fare that are available during Chipotle's Feb. 8 shutdown:
The Canadian burrito restaurant chain is offering 50% off Mexican fare during the hours that Chipotle is closed on Monday.
This chain of sit-down Mexican restaurants just so happened to choose Monday, Feb. 8, as the day to launch to-go burritos and bowls, at a special price of $5 each ($1 extra for steak or shrimp).
Moe's Southwest Grill
"Not only is Moe's Southwest Grill open on February 8, we're also offering a Buy One, Get One deal so you and your friend or colleague can enjoy the best rebound burrito on the market – complete with all the free chips and salsa you can pack in," a note from the company said.
Read next: Free Bagels, Free Chinese Food, Free Pancakes Coming Soon
The latest oddball promotion from Taco Bell involves a mysterious new menu item that won't be announced publicly until the company airs its Super Bowl commercial this Sunday. Select customers were allowed to pre-order the mystery item for consumption on Saturday, Feb. 6—yes, the idea is you order and pay without knowing what it is—and the hyped new treat will go on sale to the public on Monday, Feb. 8. That's the day Chipotle is shutting down, if you weren't aware.
Sign up to receive the latest updates and smartest advice from the editors of MONEY
© Copyright 2018 Meredith Corporation. All Rights Reserved. Use of this site constitutes acceptance of our Terms of Use and Privacy Policy (Your California Privacy Rights).
Money may receive compensation for some links to products and services on this website. Offers may be subject to change without notice.
S&P Index data is the property of Chicago Mercantile Exchange Inc. and its licensors. All rights reserved. Terms & Conditions. Powered and implemented by Interactive Data Managed Solutions. | AdChoices | EU Data Subject Requests


This was the game that could end the season for the Sydney Thunder and keep the Perth Scorchers' season alive. I expected it to be a close match, as the Thunder would be aiming to end their losing streak, while the Scorchers would be hoping they could keep their chances of making the semi-finals.
As always I was hoping the Scorchers would come away with the win.
Simon Katich was the difference between the two teams. He was the only batsman who converted a start into a big score and he guided the Scorchers' run chase very well. His experience proved to be vital.
As a Western Australian I would have loved it if Michael Hussey was still playing for the Scorchers. As it is, he chose to move to the Thunder and in doing so joined a team without a lot of recent success. He got the odd boo but didn't cop too much sledging from the WACA crowd. The revenge was his team losing!
It was interesting watching Brad Hogg bowling to Eoin Morgan: two world-class players battling it out. Morgan attempted a couple of reverse sweeps, one of which went for four, however, he didn't really look comfortable against Hogg. Unfortunately Morgan got run out, in rather strange circumstances, between Hogg's second and third overs, preventing any more face-offs between the pair.
The run-out of Morgan by Mitch Marsh. The ball on which it occurred was a free-hit. Marsh bowled a yorker that Morgan just managed to squeeze out. Not realising the ball had bounced straight down the pitch to Marsh, Morgan left his crease. Marsh flicked the ball at the stumps, and Morgan dived back. The ball hit the stumps but Morgan appeared to be comfortably in. There was a half-shout from the Scorchers, so the third umpire decided to go upstairs just to be sure. The Scorchers were not too confident. They all returned to their positions in readiness for the next ball. There were a couple of replays played on the big screen which seemed to confirm Morgan had made his ground, and then it cut to shots of the crowd. A minute later more replays were shown, and the crowd soon realised that Morgan might just be out. Hogg ran in from the boundary at deep midwicket to congratulate Marsh, and the rest of the team soon followed. The verdict was delivered soon after and the crowd cheered.
Craig Simmons fielded in front of me during the Thunder innings and took a great diving catch to dismiss Michael Hussey. Dirk Nannes was there when the Scorchers were batting. He fumbled once to allow an extra run and got a cheer from the crowd. A couple of balls later when he fielded one cleanly, he got an even louder cheer and he doffed his cap to the crowd.
Katich's six over cover off the bowling of Tillakaratne Dilshan was a marvellous shot, timed beautifully and easily clearing the fence.
There was barely a spare seat anywhere. The crowd was enthusiastic and cheered the Scorchers loudly. There were lots of beach balls being thrown around, and whenever a security guard took it upon himself to pop one he got a huge boo. There were also a fair number of Mexican Waves towards the end of the match.
There wasn't a whole lot of fancy dress at this game, just lots of orange everywhere. There were orange wigs, face-paint, hairspray, and anything else you could think of.
There were the usual fire and fireworks when the Scorchers entered the field. Under the Inverarity Stand there were three people playing big drums with drumsticks with fire on the end of them. There was also a dance group dressed in orange that performed during the innings break.
It was an exciting game of cricket with plenty of runs and wickets and a fairly close result. The crowd was good as always, so overall it was another great experience.


Phone Number in Reedsville. Find a Phone Number, Address or other Contact Detail, like Email Address and Profiles of people or friends who live in Reedsville, Ohio, USA. Results of Phone Numbers and Addresses in any Street.


text:
Q: When I add custom post type permalink rewrite, my regular post permalinks stop working. Can't get both to work at the same time really struggling with this one, so any help would be much appreciated. My site has both regular post posts, and a custom post type called "articles."
I'm trying to get it to work so that my regular posts will use the /%category%/postname%/ permalink structure, (which I have set up in settings). This is working fine, until I add a custom rewrite for my article post type. I'd like articles to follow a /%issue%/%postname%/ structure.  I can get this working great with the following:
add_filter( 'post_type_link', 'wpa_show_permalinks', 1, 2 );

function wpa_show_permalinks( $post_link, $id = 0 ){
    $post = get_post($id);
    if ( is_object( $post ) && $post->post_type == 'article' ){
        $terms = wp_get_object_terms( $post->ID, 'issue_tax' );
        if( $terms ){
            return str_replace( '%issue%' , $terms[0]->slug , $post_link );
        }
    }
    return $post_link;
}

where my post type is registered like this:
function article_post_type() {

$labels = array(
    'name'                => _x( 'Magazine Articles', 'Post Type General Name', 'text_domain' ),
    'singular_name'       => _x( 'Magazine Article', 'Post Type Singular Name', 'text_domain' ),
    'menu_name'           => __( 'Magazine Articles', 'text_domain' ),
    'name_admin_bar'      => __( 'Magazine Articles', 'text_domain' ),
    'parent_item_colon'   => __( 'Parent Article:', 'text_domain' ),
    'all_items'           => __( 'All Articles', 'text_domain' ),
    'add_new_item'        => __( 'Add New Article', 'text_domain' ),
    'add_new'             => __( 'Add New', 'text_domain' ),
    'new_item'            => __( 'New Article', 'text_domain' ),
    'edit_item'           => __( 'Edit Article', 'text_domain' ),
    'update_item'         => __( 'Update Article', 'text_domain' ),
    'view_item'           => __( 'View Article', 'text_domain' ),
    'search_items'        => __( 'Search Article', 'text_domain' ),
    'not_found'           => __( 'Not found', 'text_domain' ),
    'not_found_in_trash'  => __( 'Not found in Trash', 'text_domain' ),
);
$rewrite = array(
    'slug'                => '%issue%',
    'with_front'          => false,
    'pages'               => true,
    'feeds'               => true,
);
$args = array(
    'label'               => __( 'article', 'text_domain' ),
    'description'         => __( 'Magazine Articles and Features', 'text_domain' ),
    'labels'              => $labels,
    'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', ),
    'taxonomies'          => array( 'issue_tax', 'category', 'featured_media', 'tag' ),
    'hierarchical'        => false,
    'public'              => true,
    'show_ui'             => true,
    'show_in_menu'        => true,
    'menu_position'       => 5,
    'menu_icon'           => 'dashicons-welcome-write-blog',
    'show_in_admin_bar'   => true,
    'show_in_nav_menus'   => true,
    'can_export'          => true,
    'has_archive'         => true,
    'exclude_from_search' => false,
    'publicly_queryable'  => true,
    'rewrite'             => $rewrite,
    'capability_type'     => 'page',
);
register_post_type( 'article', $args );

}

add_action( 'init', 'article_post_type', 0 );

I add that, reset permalink settings, and the article permalinks start working as indended -  BUT  - as soon as I get that working, my regular posts start displaying a 404.
Why am I unable to get both to work at the same time? Am I missing a piece somewhere?
Thanks for any advice!
-erin

Just a follow up to my question - perhaps the thing that I'm really struggling with is why is the post_type_filter function affecting more than just the article post type that I have specified?
Thanks,
Erin

Ok, one more super strange thing. This all works if I pass a query parameter at the end of my custom post links, so this works: http://www.mysitename.com/spring-2015/test-article-here/?post_type=article but this gives me a 404 http://www.mysitename.com/spring-2015/test-article-here/
Why would that be? I'm sorry for so many questions, just really trying to get to the bottom of this..!
Thanks again,
Erin

A: Replace   'slug' => '%issue%', with 'slug' => 'article/%issue%',
It will definitely work, I have tested it. Kindly note that "article" is the post type name.
Also Save permalinks after making above change.

A: From the answer above:
Replace: Replace 'slug' => '%issue%', with 'slug' => 'article/%issue%',
That didn't work fully for me, so I had to change my post_type_link filter as well.
All I had to do was to change following:
return str_replace( '%issue%' , $terms[0]->slug , $post_link );

With:
return str_replace( 'article/%issue%' , $terms[0]->slug , $post_link );

It's a bit strange and I spent several hours figuring this out. Hope it helps someone in the future!