text:
What is an 'Essential Business' in Minnesota During COVID-19?
Curt St. John Published: March 24, 2020
UPDATE 3/25/20 2:00 PM): Governor Walz has issued a "Stay at Home" order for Minnesota starting Friday, March 27 at Midnight. READ ALL THE DETAILS OF THE MINNESOTA STAY AT HOME ORDER HERE
Workers who provide critical services are exempt. Exemptions are based on federal guidance from the Cybersecurity and Infrastructure Security Agency (CISA) at the U.S. Department of Homeland Security with some Minnesota-specific additions. This includes, but is not limited to jobs in:
Law enforcement, public safety, and first responders
Critical manufacturing
essential business minnesota, minnesota shutdown, what businesses open in minnesota
Minnesota Governor Tim Walz hasn't issued a 'shelter in place' order for Minnesota yet, but if he does, only essential businesses will be allowed to stay open. So just what is an essential business?
Well, that's what the good folks at the Department of Homeland Security attempted to define, as states across the country are implementing 'shelter in place' orders that will close any 'non-essential' business.
So just what is an 'essential business?' Well, they're quick to point out that it's a state-by-state decision, and that their list is only advisory, and not a legal definition. But according to THIS document, if you work in any of the categories, you're working in an 'essential business,' that would still be allowed to work even if Gov. Walz orders a 'shelter in place.'
Categories like communications, chemicals, commercial facilities, critical manufacturing, dams, defense industrial base, emergency services, energy, financial, food and agriculture, government facilities, nuclear reactors (material and waste), information technologies, water, transportation systems, and-- the big one here in Rochester-- healthcare and public health.
That's a pretty big list, isn't it? So even if a 'shelter in place' order is issued here in Minnesota, chances are you STILL might be allowed to work-- maybe from home, mind you-- but you'll still be called to work.
Of course, everything is subject to change-- and change fast-- but for more information, check out the Department of Homeland Security's Cybersecurity and Infrastructure Security Agency list HERE.
Listen to Curt St. John mornings from 6 to 10 a.m. on Quick Country 96.5
and afternoons from 2 to 6 p.m. on 103.9 The Doc
Enter your number to get our mobile branded app
Source: What is an 'Essential Business' in Minnesota During COVID-19?
Filed Under: Coronavirus (COVID-19) Coverage, Covid-19, Minnesota
Last Chance For Minnesota Residents To Get Free COVID-19 Tests From The State
Pandemic Steepened Declines in Minnesota Math & Reading Scores
Nearly One Million Minnesotans Have Received COVID Bonus Payments
Minnesota Set to Distribute Frontline Worker Bonuses


text:
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.Internal.Log;
using Microsoft.CodeAnalysis.RemoveUnnecessaryImports;
using Microsoft.CodeAnalysis.Shared.Extensions;
using Microsoft.CodeAnalysis.Text;
using Roslyn.Utilities;

namespace Microsoft.CodeAnalysis.CSharp.RemoveUnnecessaryImports
{
    internal partial class AbstractCSharpRemoveUnnecessaryImportsService :
        AbstractRemoveUnnecessaryImportsService<UsingDirectiveSyntax>
    {
        public override async Task<Document> RemoveUnnecessaryImportsAsync(
            Document document,
            Func<SyntaxNode, bool> predicate,
            CancellationToken cancellationToken)
        {
            predicate = predicate ?? Functions<SyntaxNode>.True;
            using (Logger.LogBlock(FunctionId.Refactoring_RemoveUnnecessaryImports_CSharp, cancellationToken))
            {
                var unnecessaryImports = await GetCommonUnnecessaryImportsOfAllContextAsync(
                    document, predicate, cancellationToken).ConfigureAwait(false);
                if (unnecessaryImports == null || unnecessaryImports.Any(import => import.OverlapsHiddenPosition(cancellationToken)))
                {
                    return document;
                }

                var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);

                var oldRoot = (CompilationUnitSyntax)root;
                var newRoot = (CompilationUnitSyntax)new Rewriter(unnecessaryImports, cancellationToken).Visit(oldRoot);

                cancellationToken.ThrowIfCancellationRequested();
                return document.WithSyntaxRoot(await FormatResultAsync(document, newRoot, cancellationToken).ConfigureAwait(false));
            }
        }

        protected override ImmutableArray<UsingDirectiveSyntax> GetUnnecessaryImports(
            SemanticModel model, SyntaxNode root,
            Func<SyntaxNode, bool> predicate, CancellationToken cancellationToken)
        {
            predicate = predicate ?? Functions<SyntaxNode>.True;
            var diagnostics = model.GetDiagnostics(cancellationToken: cancellationToken);
            if (!diagnostics.Any())
            {
                return ImmutableArray<UsingDirectiveSyntax>.Empty;
            }

            var unnecessaryImports = new HashSet<UsingDirectiveSyntax>();

            foreach (var diagnostic in diagnostics)
            {
                if (diagnostic.Id == "CS8019")
                {
                    var node = root.FindNode(diagnostic.Location.SourceSpan) as UsingDirectiveSyntax;

                    if (node != null && predicate(node))
                    {
                        unnecessaryImports.Add(node);
                    }
                }
            }

            return unnecessaryImports.ToImmutableArray();
        }

        private async Task<SyntaxNode> FormatResultAsync(Document document, CompilationUnitSyntax newRoot, CancellationToken cancellationToken)
        {
            var spans = new List<TextSpan>();
            AddFormattingSpans(newRoot, spans, cancellationToken);
            var options = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false);
            return await Formatter.FormatAsync(newRoot, spans, document.Project.Solution.Workspace, options, cancellationToken: cancellationToken).ConfigureAwait(false);
        }

        private void AddFormattingSpans(
            CompilationUnitSyntax compilationUnit,
            List<TextSpan> spans,
            CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            spans.Add(TextSpan.FromBounds(0, GetEndPosition(compilationUnit, compilationUnit.Members)));

            foreach (var @namespace in compilationUnit.Members.OfType<NamespaceDeclarationSyntax>())
            {
                AddFormattingSpans(@namespace, spans, cancellationToken);
            }
        }

        private void AddFormattingSpans(
            NamespaceDeclarationSyntax namespaceMember,
            List<TextSpan> spans,
            CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            spans.Add(TextSpan.FromBounds(namespaceMember.SpanStart, GetEndPosition(namespaceMember, namespaceMember.Members)));

            foreach (var @namespace in namespaceMember.Members.OfType<NamespaceDeclarationSyntax>())
            {
                AddFormattingSpans(@namespace, spans, cancellationToken);
            }
        }

        private int GetEndPosition(SyntaxNode container, SyntaxList<MemberDeclarationSyntax> list)
        {
            return list.Count > 0 ? list[0].SpanStart : container.Span.End;
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
Q: EF - not supported in LINQ to Entities I am trying to list some food items with a controller. I use Repository pattern with UnitOfWork for the data in another assembly and referenced it in a BaseApiController. The Data property is my UnitOfWork instance.
var result = Data.Food
            .FindAll()
            .Select(FoodItemViewModel.Create);

return result;

and here is my ViewModel:
public static Expression<Func<FoodItem, FoodItemViewModel>> Create
    {
        get
        {
            return fi => new FoodItemViewModel
            {
                Id = fi.Id,
                Description = fi.Description,
                DiaryEntries = fi.DiaryEntries
                .Select(s => new DiaryEntityViewModel()
                {
                    Id = s.Id,
                    Quantity = s.Quantity
                }
            };
        }
    }

But all I get is:

"The specified type member 'DiaryEntries' is not supported in LINQ to
  Entities. Only initializers, entity members, and entity navigation
  properties are supported."

My DiaryEntries member in the ViewModel is
IEnumerable<DiaryEntityViewModel>

and my DiaryEntries member in the Data instance is
IRepository<DiaryEntry>

and DiaryEntry is my model class
and here is my FoodItem model class:
public class FoodItem
    {
        private IEnumerable<Measure> measures;
        private IEnumerable<DiaryEntry> diaryEntries;

        public FoodItem()
        {
            this.measures = new HashSet<Measure>();
            this.diaryEntries = new HashSet<DiaryEntry>();
        }

        public int Id { get; set; }

        public string Description { get; set; }

        public virtual IEnumerable<DiaryEntry> DiaryEntries
        {
            get
            {
                return this.diaryEntries;
            }
            set
            {
                this.diaryEntries = value;
            }
        }

        public virtual IEnumerable<Measure> Measures
        {
            get
            {
                return this.measures;
            }
            set
            {
                this.measures = value;
            }
        }
    }

A: Change you FoodItem class to the one below, IEnumerable<T> is not supported as a type for a navigation collection :
public class FoodItem
{
    public FoodItem()
    {
        this.Measures = new HashSet<Measure>();
        this.DiaryEntries = new HashSet<DiaryEntry>();
    }

    public int Id { get; set; }

    public string Description { get; set; }

    public virtual ICollection<DiaryEntry> DiaryEntries
    {
        get;
        set;
    }

    public virtual ICollection<Measure> Measures
    {
        get;
        set;
    }
}

redpajama_set_name: RedPajamaStackExchange


text:
Q: Call C methods from C++/Java/C# code? Many of today's programming languages are based on C; like C++, C#, Java, Objective-C. So could I call a C method from C++ code? Or call C from Java or C#? Or is this goal out of reach and unreasonable? Please include a quick code sample for my and everyone else's understanding.

A: C++,C#, Objective-C, and Java can all call C routines. Here are a few links that will give you an overview of the process needed to call C from each language you asked about.

*

*Calling C from Java

*Calling C
from C++

*Calling C from C#

*Calling C from Objective-C

A: An example of calling C from C++. Save this C function in a file called a.c:
int f() {
   return 42;
}

and compile it:
gcc -c a.c

which will produce a file called a.o. Now write a C++ program in a file called main.cpp:
#include <iostream>
extern "C" int f();

int main() {
   std::cout << f() << std::endl;
}

and compile and link with:
g++ main.cpp a.o -o myprog

which will produce an execuatable called myprog which prints 42 when run.

A: To Call C Methods In Java...
there a Keyword "native" in Which You can write machine-dependent C code and invoke it from Java....
Basically it creates a DLL file..then u have to load it in ur program...
a nice example here....

A: To call C methods from Java, there are multiple options, including:

*

*JNA - Java Native Access. Free. Easy to use. Hand-declaration of Java classes and interfaces paralleling existing C structs and functions. Slower than JNI - by a few hundred nanoseconds per call.

*JNI - Java Native Interface. Free. Fastest option. Requires a layer of native glue code between your Java code and the native functions you want to call.

*JNIWrapper - Commercial product, similar to JNA.

A: To call C/C++ from Java, also give a look at BridJ (it's like JNA with C++ and better performance).


A seminal French New Wave film that offers an honest, sympathetic, and wholly heartbreaking observation of adolescence without trite nostalgia.
"The 400 Blows" marks the birth of legendary nouvelle vague character Antoine Doinel; his is the story of a 13-year-old wild child whose adventures were based on director Francois Truffaut's own adolescence.
Henri Decae's black and white photography helped Truffaut enormously but what the director himself provides is a sense that though there is no easy answer to the problems of growing up, there is a hope that will never be wholly denied.
One of the first glistening droplets of the French New Wave.
Distinguished by its naturalistic, quasi-documentary approach and an extraordinary central performance from the 12-year-old Jean-Pierre Léaud, this is a blisteringly authentic story.
Forget my curmudgeonly attitude and see it -- again, or for the first time -- for yourself.
A remarkable confluence of talents are at work here.
The cinematography by Henri Decaë is gorgeous and 400 Blows is great to watch just on a technical level.
This beautiful, tough and some- times funny film is a lesson (by implication) in love : here's what it does, being without it.
Truffaut imbues the movie with the irrepressible energy and optimism of youth.
Francois Truffaut's debut film not only galvanized the Nouvelle Vague movement of French cinema, but he also generated a personal filmic idiom that he would elaborate on for the rest of his career.
In the decade or so since I first saw "Les Quatre cents coups" on that fateful day in film class, it has become one of those litmus test films, during which, I stress myself out anticipating my friends' reactions to the movie almost as much as watching the movie itself. Sad to say, perceptions change when watching films with different people and at different times of life and sometimes, when the denouement is known. As pure and as unadulterately awesome as that denouement is, with young Jean-Pierre Léaud's impressively improvised tales of Antoine's teenage woes and the endless run to the beach, the adagio and sometimes broken pacing of the rest of film seems to redeem itself only because of that ending. And perhaps also Jean Constantin's mesmerizing zither score.
Francois Truffaut's directorial debut and great coming-of-age story 'The 400 Blows' stands as one of the best of its sub genre. With a great lead performance and assured direction, Truffaut handles this autobiographical film with remarkable ease and aesthetics. This film about a troubled youth growing up in Paris still stands as one that helped define the New Wave era in France.
Without a doubt, one of the best films ever made. This is Paris in 1968 before Paris in 1968. This is punk rock before punk rock, and what The Clash meant by "I wasn't born, so much as I fell out." This is New Wave before New Wave. This is existentialism, Camus from the mouth of babes. This is what Foucault was going on about in Discipline and Punish. This is the non-conformist spirit, at once made concrete and abstract. This is how it feels to be dispossessed, displaced, and dispirited. This is the un-coming-of-age story, the moment of the invention of the precise opposite of the cliche. This is On The Waterfront for the French, but better. This is the loneliness at the core of human existence, communicated better than in most art made before or since. This is one of the few films I will gush about rather than "objectively" pick apart. This is brilliant, visionary film-making, and a movie you absolutely must not die without having seen.
Along with maybe Saturday Night Fever, this is one of the best growing up stories ever put on film. I know that statement will probably send people through the roof and I'll get some hate mail for it, but oh well. The 400 Blows is one of cinema's true masterpieces, and this coming from a first-time director with the name Francois Truffaut. It's no wonder this film made a splash on the art house scene in the late fifties and early sixties, influencing countless filmmakers. I can certainly see the effect it had on people like Jonathan Demme. It's basically the tale of a troubled kid who goes through some tough times with his parents, teachers and friends. It sounds cliche'd, I know, but it feels very fresh and unique, even by today's standards. It holds up remarkably well because the story is told so well, and it's pretty much a universal story about youth in revolt against society. Very few films have that sort of lasting appeal, and this one does, in spades.


text:
San Francisco Gentrification
Condemned home in Fremont fetches $1,230,000
"Enter at your own risk," reads the listing
By Brock Keeling@BrockKeeling Apr 17, 2018, 12:12pm PDT
Photo courtesy of Larry Gallegos
It's hard to feign surprise when a teardown home in the Bay Area sells for well over the asking price. This real estate narrative is no longer an anomaly. It's de rigueur. It is, by design, the norm.
Politicians and longtime homeowners continue to collude to keep zoning exclusionary, which results in astronomical housing costs that price out low- to mid-income residents desperate for habitat.
On that note, let's take a look at yet another house that fetched above and beyond its initial asking: a condemned property in Fremont's Mission neighborhood that nabbed $1,230,000.
To state the obvious, the money for this uninhabitable home is for the 9,408-square-foot lot upon which the teardown sits.
Realtor Larry Gallegos listed the home in January for $1 million. In one week, he received five offers before closing the sale—all of them cash.
Gallegos cites the job market and the good schools as the primary reasons people are flocking to the area as the dearth of affordable housing in Bay Area cities—see: Cupertino, Palo Alto— has pushed interest to outlying cities. It's also near a BART station, making it even more desirable to those with jobs in San Francisco.
"It's typically an expensive area, but I've seen houses almost double in price within the last two years," Gallegos tells Curbed SF. "This is happening all over the East Bay."
Most recently, a charred San Jose teardown landed on the market for $799,000. According to NBC Bay Area, the realtor of that pile of rubble "has six offers in hand, all well over asking price."
What is exclusionary zoning? [Vox]
Blame Zoning, Not Tech, for San Francisco's Housing Crisis [CityLab]
Cupertino mayor says housing crisis 'not dire' [Curbed SF]
Marin County's anti-growth mindset keeps minorities and low-income residents out [Curbed SF]
Berkeley's zoning laws wall off communities of color, seniors, low-income people and others [Berkeleyside]
Cupertino teardown sells for $2 million [Curbed SF]

redpajama_set_name: RedPajamaCommonCrawl