text:
#107: Niche Practice: Weed Law, with Matthew Buck
The world of weed law, the ethics of advising clients who are committing federal crimes, and how to market a niche practice.
Lawyerist Podcast
Featured Guest
Matthew Buck
Matt works for (http://robcorry.com/), and he has successfully resolved numerous marijuana cases ranging from cultivation to RICO...
Sam Glover
Sam Glover is the founder and Editor in Chief of Lawyerist.com. Sam helps lawyers understand the economic, demographic, and...
Aaron Street
Aaron Street is the co-founder and CEO of Lawyerist.com. In addition to his work growing Lawyerist's community of small firm...
"Weed law," it turns out, is neither as exciting nor as boring as you might think. In this episode, Matthew Buck offers a window into the world of weed law, the ethics of advising clients who are committing federal crimes, and how to market a niche practice.
Matt works for Corry & Associates, and he has successfully resolved numerous marijuana cases ranging from cultivation to RICO violations, and has assisted in the formation of grows, dispensaries, and MIPs across Colorado, from the Western Slope to Pueblo, County.
Speaker 1: Welcome to the Lawyerist Podcast with Sam Glover and Aaron Street: Each week Lawyerist brings you advice and interviews to help you build a more successful law practice in today's challenging and constantly changing legal market. Now, here are Sam and Aaron.
Sam Glover: Hi. I'm Sam Glover.
Aaron Street: And I'm Aaron Street, and this is Episode 107 of the Lawyerist Podcast, part of the Legal Talk Network. Today we're learning about weed law-
Sam Glover: Weed law, man.
Aaron Street: … from Matthew Buck.
Sam Glover: Today's podcast is sponsored by Ruby Receptionists and its smart, charming receptionist who are perfect for small firms. Visit, call ruby.com/lawyerist to get a risk-free trial with Ruby.
Aaron Street: What if we told you that having a new website designed for your law firm doesn't have to suck? Spotlight Branding prides itself on great communication, on meeting deadlines, and on getting results for their clients. Learn more at spotlightbranding.com/lawyerist.
Sam Glover: Today's podcast is also sponsored by FreshBooks, which is ridiculously easy to use and packed with powerful features. Try it now at freshbooks.com/lawyerist, and enter "Lawyerist" in the how did you hear about us section.
Aaron Street: We spent last week's episode talking about whether lawyers can help innovate, and whether lawyers understand technology enough to make things, and in the past week we helped make a thing.
Sam Glover: Yeah, we did. It was pretty neat. You were down at the midyear meeting for the ABA in Miami.
Aaron Street: Heck yeah.
Sam Glover: Yeah, and like on Friday afternoon I got a message in Slack saying, "Hey, can you help with this thing really fast?" So, we helped.
Aaron Street: Yeah, so I am on the ABA's law practice division Legal Futures Initiative, which is kind of a gathering of a bunch of innovators in the profession talking about the future of law and the future of law practice, and at the meeting in Miami last week we all got there and realized that, setting aside the future of law practice, there were some more pressing issues in law that needed some innovators to work on — namely the travel ban, immigration ban, Executive Order from President Trump — and so our committee spent a couple of hours thinking about how we, as a group, could help lawyers solve that issue.
We created a website, ImmigrationJustice.US, as a partnership between the ABA, the Immigration Lawyers Association, and some other groups with the idea of being a one-stop place for lawyers interested in volunteering on those immigration issues, to be able to sign up as volunteers, learn more about immigration law in general, more about specifically representing clients on these particular issues related to the Executive Order. So, we got Lawyerist involved in helping to build the website, and a team of lawyers as volunteers were able to knock out a fully functioning piece of legal innovation in an afternoon.
Sam Glover: Yeah. It's pretty neat, and when I was talking with Ed Walters from Fastcase about it — because he was helping out with the effort — he explained that when the website was shown there was applause, and he said, "I don't ever want to hear anybody applaud for just slapping together a website ever again, because it's easy and that isn't something that people should applaud for," and I totally, 100% understand what he's talking about, but the traditional model would have been like, "Okay, let's go find a budget. Let's figure out what this is all going to cost," and it would have taken six months at the least, and it would've been a huge, expensive undertaking, and by the time it got done who knows if it would've helped anything?
Aaron Street: Yep, and so, in this case, rather than having a month's long committee process to decide what we could build, and how to do it, and who should do it — a group of lawyers without the help of non-lawyers — was able to knock out a project in a day, and a couple days later ABA President Linda Klein highlighted it both for its innovation work, but also because of the importance of the substantive issues at play.
Sam Glover: Yeah. It's cool. I was thrilled to play a small part in it, but I think it's just neat to see the ABA — which is sometimes seen as a big, clunky organization — be the opposite, and be nimble, and responsive. Hopefully they can use that experience, and hopefully, others can use that experience to say, "You know what? Next time something big like this happens, if we need a website let's just get one up, and we can make it happen, or if we need to employ other tools let's just do it, and figure out what you need and then make it happen." Instead of sitting around worrying about committees, and budget allocations, and things like that. So, it was really inspiring. It was cool leadership on the part of the ABA, and we were thrilled to play a small part.
Aaron Street: It's also cool because that wasn't the only project of this kind going on at the same time. Greg McLawsen — who's been a guest on this podcast a couple of times now — and Joshua Lenon from Clio who's been on the podcast, and some other folks also as a volunteer, Rapid Creation Effort, got together about the same time and created AirportLawyer.org, which has some slightly different functionality, but is another rapidly developed, lawyer built tool to address some of these same issues. Not only are there parallel, lawyer led innovations going on, but they are making things easily and quickly that work.
Sam Glover: I guess I would say — and that one is also very cool — the next time there is anything resembling this scale of mobilizing lawyers to address an emergency, I would love to see those websites pop up within 48 hours rather than a week. If you're part of one of those shoot me an email. I don't know that we can help, but I'm always interested in exploring those things, and if we can help I'd love to. I'm neck deep in building websites just about every day, and that's one of the skills that I can sometimes bring to the table, and we have some varied skills on our team. So, if you're at a bar association, or a specialty bar or an organization and you want to take lead on it, and you aren't sure where to go, reach out to us. We'd love to hear from you.
On that point of loving to hear from you, lots of podcasts say every episode several times how much they want you to send in questions or comments, and I guess we just assume that you usually don't need to tell lawyers to say what they're thinking, but if you do have questions or comments and you're holding onto them, please email us. Send them to [email protected] We would love to hear from you, we'd love to address your questions on the show or on the website, and it's nice to know that you have thoughts about the podcast even if they are thoughts like we are morons and should have asked different questions. We don't mind. Email us at [email protected] All those things said, here is my conversation with Matthew about weed law.
Aaron Street: Weed law.
Matthew Buck: Hi. My name is Matthew Buck: I'm a cannabis attorney from the beautiful mile high city of Denver, Colorado.
Sam Glover: A cannabis attorney. Is that the accepted, professional way to refer to weed?
Matthew Buck: It depends who you're talking to. If I'm talking to someone at Starbucks, I'll tell them I'm a marijuana attorney-
Sam Glover: Nice.
Matthew Buck: … but professionally I will sometimes — as I'm allowed to do because we have the DBA — I will sign pleadings as the Cannabis Law Firm, which would then make me a cannabis lawyer.
Sam Glover: Nice. I like that. Give us a quick background. How did weed law … because I'm going to call it weed law because cannabis-
Matthew Buck: You can call it whatever you want.
Sam Glover: Yes. How did weed law become a thing? Like, as a practice area?
Matthew Buck: That's a good question. My boss, Rob Corry, made his way to Denver, Colorado, and I guess through happenstance happened to take some sort of marijuana case as it was becoming legalized in 2000 in Colorado. I'll give a brief history of the scheme in a second.
Sam Glover: Yeah.
Matthew Buck: He took a cannabis case and was successful, and that led to more and more people knowing that he was the go-to guy for marijuana. I would say that given that we were the first state to legalize, he probably is the first marijuana attorney. I don't know who else could make the claim because all of the other competitor firms are pretty different as far as what they do. So, for his purposes, it was just being in the right place at the right time and knowing the right people. As far as how I ended up there, he's kind of not a run-of-the-mill attorney, and I'd always wanted to work for him, and I saw there was a job opening at his firm, so I was in a partnership — dissolved my partnership — and applied for the job and got it among other people that wanted to be there.
Sam Glover: Wait. You cut ties and dissolved the partnership before you applied for the job?
Matthew Buck: Yes.
Sam Glover: That's ballsy.
Matthew Buck: Well, it was kind of kismet that the job opening was there because he and I are very similar kinds of bombastic, don't really give a care … I'll censor myself because I've just got a sailor mouth over here, so-
Sam Glover: Oh, we swear all the time. It's fine. Yeah. Go for it.
Matthew Buck: Oh, we do? Okay, then I did not give a fuck about what was going on, and that I wanted to work for him. Prior to the job opening, I had been working on a motion to reopen … Prior to doing weed law I did immigration and criminal law, and I was a immigration lawyer on a case, and the criminal lawyer was sitting in court waiting for my current boss to have a fight with a DEA agent on the stand who was refusing service. Usually, they'll just duck it through their attorneys, but he was attempting to serve him a subpoena for some sort of documents, and there was a big hubbub, and I was like, "That's what I want to be doing. I don't want to be doing immigration law. This is boring."
To get back to what this scheme is — or how marijuana law even exists — in 2000 the wise voters of Colorado passed something known as Amendment 20 colloquially. Which is an amendment to the Colorado Constitution — Article 18, Section 14 — was this specific provision that at that time it allowed for people to open up medical dispensaries that were non-licensed, and it also allowed for people to personally use, possess, and cultivate their own marijuana in their homes, or in properly related structures which at that point back in 2000 would have practically been any industrial building. Since then the legislature has done their best to try and erode all of the personal liberties given us by the wise voters in 2000.
Sam Glover: Okay, so this is clearly preempted by federal law, right?
Matthew Buck: Yes. Supremacy clause. Yeah, so this is all federally illegal.
Sam Glover: So, is your practice representing businesses, or representing individuals in criminal cases, or both, or how-
Matthew Buck: Damn, brother, what don't I do? If you like weed I will take your money and do something with it.
Sam Glover: Got you.
Matthew Buck: Here is a wide swath of the cases that I'm current … Not just cases, but things I'm currently doing.
Matthew Buck: I have people who are wanting to get into the marijuana industry, and they don't know what to do. There's two people that I get with that niche. One of them is, "I have a lot of money, and I know that marijuana is a way to make a lot of money," so they think. They say, "Can you help me put together a team of people top to bottom that can help me open up some sort of marijuana business, and can you help me decide what kind of marijuana business I want to run?" I say, "Yes, I can."
Sam Glover: That's more like business strategy consulting even. Not even law practice.
Matthew Buck: Yeah. It's not law. Someone that was not a lawyer can, and people do do that are not lawyers in Colorado. Now, do I think that they abut against the unauthorized practice of law by filling out forms and telling people how to fill out forms? Yes.
Matthew Buck: Because the forms are legal documents, and they are not lawyers, and they are not trained to read contracts, and they're really not trained to write contracts, but they're doing it. So, that's one avenue that I do. The second one that I would do is, "I am really good at marijuana, and I'm on a budget. Can you help me find out what I can do with my meager budget?" I would say that in-
Sam Glover: It's like a home grower.
Matthew Buck: Well, this is a current home grower — or drug dealer maybe — that wants to get legit.
Sam Glover: Or baker?
Matthew Buck: Could be a baker. I would say that our firm rarely deals with people — and I don't know why — that are edible manufacturers that want to get legit. I think that's maybe because it's a small subsection. I do have a couple clients that were like, "I can make XYZ confectionery product. Can you help me get legit?" and I was like, "Yes, I can." The other one is, "If I am good with weed and I have X amount of money, can you help me start a business, or can you put me together with investors?" That's something else we do. That's kind of like the business avenue. We do a regulatory avenue.
There's a large — I don't know what you want to call it — I guess it's a large subsection of the Department of Revenue that regulates marijuana. They go by the name of MED, which would be the Marijuana Enforcement Division. There are maybe — I don't know it's hard to say because there's a lot of turnover because it's not very satisfying and presuming — but there's probably about 50 former cops that work in the regulation industries. They're all post certified, law enforcement professionals that assist people in becoming legal and investing in their businesses.
If you run afoul of MED regulations, we can defend you if you are brought before the Attorney General … Well, technically, the Attorney General acts as attorney for the state before an administrative law judge, an ALJ. We do ALJ representation, and before ALJ representation we help you get regulated because the regulations are … man, brother, they could be more than 800 regulations each with its own subsection, so it will be … M-607, for example, regulates marijuana-infused products. That's anything from hash oil to cupcakes to soda pop. That one rule has probably 10 different subsections written by someone — I don't know who.
Sam Glover: So, it's like regulatory violations and licensing.
Sam Glover: You're doing business formations.
Sam Glover: You're helping with running investment rounds. You're bringing together businesses and strategizing.
Matthew Buck: Yes. We are advising whether investments are legal because the current scheme — as of January 1, 2017 — now allows for out-of-state ownership where it didn't prior to January 1, and does not allow for foreign ownership. There are people from out of country who have met with me like, "I want to get in the marijuana business." I'm like, "I'm sorry, buddy, but you can't because there's no way for a non-US citizen in Colorado to be owner of a marijuana business." The last subsection we do is criminal defense of those who — I guess we do some civil defense although that's its own story — but we do criminal defense of people charged with marijuana defenses. I think that's our — I wouldn't say it's our bread and butter — but it's where our name was made in successful defense of people who have been illegally charged with cultivating marijuana, distributing marijuana, manufacturing-
Sam Glover: What does that look like now, though, that most of this is legal? Like, what would a marijuana-related offense be now?
Matthew Buck: The classic case is someone has a … they will call it a license. I would call it a red card and what that is, is under Amendment 20, you can go to a doctor and get a physician's recommendation for a certain amount of plants, and they will give you an amount of plants above six — which we call an elevated plant count — for certain illnesses. Let's say that you have spinal cancer and you are in constant pain, prior to April 2016 you could get what we called a 99-plant count recommendation, and that would allow you to cultivate 99 plants in your own home, or to have someone else cultivate plants for you as long as they did something besides just give you marijuana. That position is what's known as a caregiver.
Let's say that you actually have spinal cancer. You're probably not super mobile, and you're not attending to 99 plants which would take up about 1000 square feet of a basement. That's a lot of moving around. It's a lot of work, labor, putting soil in, water, nutrients, etc., trimming. It would be a lot of physical output for someone with spinal cancer, or AIDS, or any kind of cancer, leukemia, etc. So, you can let someone grow your plans for you, harvest them, and then give you the marijuana, and then compensate them for their time.
Sam Glover: As long as they also help you get dressed in the morning or something?
Matthew Buck: Correct, or do anything other … The way the law reads — and it's pretty broad — is that you may not be a mere delivery system for marijuana if you're a caregiver. As long as you have something. I always tell people if they are going to care give, do actually care give. Make meal plans, exercise plans. Many of my clients who are also caregivers drive their patients to the doctor because a lot of these people that are using marijuana are either opiate-sensitive or have issues with taking medication other than marijuana because there are practically no negative side effects to marijuana. As far as opiates go, there are a litany of serious side effects, and people don't want to take oxycodone.
Sam Glover: Yeah. You can take, essentially, opium, or you can take a mild dose of marijuana.
Matthew Buck: Exactly. You could eat a chocolate, or you could eat something that causes your skin to feel like it's falling off. It's a pretty obvious choice for some people, but eventually, we'll get to 50 state in med, and get to 50 state legalization. To get back to the criminal case that stems from what's the classic case is someone will get one of those RED cards, and they will get like a 36 plant RED card. The police will come because the neighbors complain about odor, and they come in and lo and behold there are 670 plants in the house, and there are 45 pounds of finished, trimmed marijuana in vacuum sealed bags next to USPS envelopes, next to a scale, next to a list of addresses that are out-of-state. Now, that's not a case that I see frequently, but that would be what a criminal case is because the section related marijuana — which is 1818406 in the Colorado Revised Statutes — says that, "Anything over six plants is a misdemeanor. Anything over 30 plants is a felony."
Sam Glover: Unless you have that exemption?
Matthew Buck: No. Not even then.
Sam Glover: Oh.
Matthew Buck: It says that the elevated plant count RED card is on a permanent defense to prosecution. It is not an exception to prosecution. This state — unlike maybe California, their laws are little dodgy — but this state does not have an exception. You could be charged even if you are legally growing, and there's no proof at all of distribution. You can get charged with felony cultivation which is pretty serious. Felony cultivation would be a drug felony 4. You could serve a year in prison, which is if you have cancer it probably going to be a death sentence for you. But that's what our average criminal cases is, is someone has a RED card or multiple RED cards, and they have more plants than that or, alternatively, they get caught shipping marijuana out-of-state, and that's a pretty cut and dried … You're RED card limit ends at the state border. It doesn't cover you in Kansas, or Texas, or Florida.
Sam Glover: Now that we've got a kind of background, let me take just a few minutes to hear from our sponsors. When we come back, I want to talk about how you navigate the ethics — the professional ethics — of representing people who are doing clearly illegal things at one level but legal things at another level. We'll be right back. This podcast is supported by Ruby Receptionists. As a matter fact, Ruby answers our phones at Lawyerist, and my firm was a paying Ruby customer before that.
Here's what I love about Ruby: when I'm in the middle of something I hate to be interrupted, so when the phone rings it annoys me, and that often carries over into the conversation I have after I pick up the phone. Which is why I'm better off not answering my own phone. Instead Ruby answers the phone — and if the person on the other and asks for me — a friendly, cheerful receptionists from Ruby calls me and asks if I want them to put the call through. It's a buffer that gives me a minute to let go of my annoyance and be a better human being during the call. If you want to be a better human being on the phone, give Ruby a try. Go to callruby.com/lawyerist to sign up, and Ruby will waive the $95 setup fee. If you aren't happy with Ruby for any reason, you can get your money back during your first three weeks. I'm pretty sure you'll stick around, but since there's no risk, you might as well try.
Aaron Street: Most solo and small firm lawyers have had at least one truly miserable experience with a web designer or Internet marketing company — so if the idea of launching a new website for your law firm makes you queasy — our friends at Spotlight Branding get it. At Spotlight Branding they pride themselves in excellent communication with their clients, they are responsive, professional, respectful, and deliver what they tell you they are going to deliver. Spotlight Branding works exclusively with solo and small law firms. Services include law for website design, email newsletter management, social media marketing, and more. All designed to make your law practice more profitable. Visit spotlightbranding.com/lawyerist to see how they can help your firm stand out from the crowd without the headaches.
Sam Glover: So, you're racing against the clock to wrap up three client projects, prepping for a meeting later in the afternoon, all while trying to tackle a mountain of paperwork. Welcome to modern life as a small firm lawyer. The working world has changed with the growth of the Internet. There's never been more opportunities for the self-employed. To meet this need, Freshbooks is excited to announce the launch of an all-new version of their cloud accounting software. It's been redesigned from the ground up, and custom-built for exactly the way you work. Get ready for the simplest way to be more productive, organized, and, most importantly, get paid quickly.
The all-new Freshbooks is not only ridiculously easy to use, but it's also packed full of powerful features. Create and send professional looking invoices in less than 30 seconds, set up online payments with just a couple of clicks and get paid up to four days faster, see when your client has seen your invoice and put an end to the guessing games. Freshbooks is offering a 30-day unrestricted, free trial to our listeners. To claim it, just go to freshbooks.com/lawyerist and enter "Lawyerist" in the how did you hear about us section.
Okay, we're back. Matt, tell me, it is all legal in various ways in Colorado, although as you just told us there's some interesting interplay of being illegal, of federal offenses, whatever, but how do you ethically advise people who are … to do an illegal thing? I mean, it feels like, yes, you could murder this person, but if you do it in this way, it's legal in this way maybe it's not. We can't really advise people how to break the law, so how do you navigate that?
Matthew Buck: Well, it's twofold. First off, as I tell every US attorney when I'm dealing with them in a federal case where I have no defenses, that if slavery was legal I would still advise people how to help escaped slaves remain free because I think it's our moral imperative that we do things that are moral, and I think that prohibiting people from using medication which we know works — which we would have more peer view journal studies showing that it worked — if the federal government didn't make doing the studies so difficult. So, keeping people from the medicine is, to me, immoral, and I will always help them.
Even if I didn't have the second part of this which is that the state of Colorado in a decision in I think 2012 or 11 said that we are allowed to advise them up to the limits of what is legal and illegal in Colorado. That we cannot advise them how to break federal law, but we can advise them what the laws are in Colorado because otherwise, they'd be flying blind. Our job as lawyers is to help people navigate what is a very complex legal system. Specifically, this legal system is very complex because the regulatory body is so ever-changing, that I would say that maybe every month we get a new rule, rules change.
For example, in 2015 they released something that said that you could no longer keep marijuana overnight if you were delivering it, and to do so would be a violation of regulations. Which was a two-parter because they also said, "You can't hire someone to be a marijuana delivery person." It effectively meant that people had to deliver their own marijuana, and they had to get every delivery done in one day because to leave it in their car overnight could put their license at jeopardy. Some of these licenses are worth a couple million dollars a month, and that's a pretty significant chunk of money. Certainly, it's more than a liquor license, and it's probably up there with having a brewery. I don't think, barring some of these large microbreweries, the small local breweries aren't making two million dollars a month. They're not having a $10,000 afternoon, or a $20,000 morning.
Sam Glover: Now that you just mentioned, I'm curious, are there people who would otherwise start a microbrewery — which is huge in Colorado obviously — that are like, "Yeah, you know what? Maybe weed is the way to go. Maybe I'll start a small weed operation instead of brewing beer?"
Matthew Buck: I have never had someone that came to me and said, "I was going to start this but not that," but I have multiple clients who own breweries who also own marijuana businesses.
Sam Glover: Oh, that's an interesting crossover.
Matthew Buck: Well, I think if you've navigated a regulated industry, and you have business sense of how to run a business which a lot of people don't have. They can grow marijuana, but they don't know about inventory, and employees, and staying regulated. So, if you're already doing it with alcohol then it's not that unnatural to me because I feel that, like it or not — because some Coloradans don't like marijuana — but like it or not marijuana and beer are both part of the culture-
Sam Glover: Wait a second. Is anybody selling like marijuana-infused beer? Like, cannabeer?
Matthew Buck: It's not legal.
Sam Glover: Oh. I thought I might have just invented like a brilliant thing.
Matthew Buck: No. We already had that idea, and also you cannot combine caffeine and marijuana.
Sam Glover: Interesting.
Matthew Buck: It's very regulated what you can put in there, and the regulation of not mixing alcohol and marijuana comes from the marijuana side, not from the alcohol side. There is a product which is hemp vodka which we have a bottle of in our locker room freezer, but that's the only liquid that I've seen. I had a client that wanted to make — I won't disclose what the product was — but he wanted to make a product that combined the two other products, and it was not allowed. You can't have nicotine and marijuana gum, for example. That's not the product, but that's one thing that I had the idea of. Because I think if you are involved in the industry you're going to have an idea yourself, and that was my idea. I thought that would be a slam dunk, but the regulations of working with nicotine are too much, and they just don't let you mix drugs. Which I think is a smart idea.
Matthew Buck: THC is a pretty potent chemical onto itself, and we don't need to add other things to it. It's enjoyable by itself.
Sam Glover: Let me ask you about some of the practical realities of representing clients in this area. It's my understanding that banking becomes very difficult because most banks are federally regulated, and that's where you can't launder money that was gained illegally. I'm probably just glossing over all of the important details, but do your clients just drop off bags of cash, or have they figure out a way to manage all of this?
Matthew Buck: That is a very good question. I think that the issues with banking are not as widespread as they were probably five years ago. Right now, if someone came to me and said, "I need to put money in the bank." I could give them a list of five different banks. Not just branches, but actual banks with multiple locations that would take their marijuana cash. That has prevented what we used to have which was people sitting with $1 million of cash in their house which we don't want. As a society, I think that we don't want to attract people that are going to know that if you own a marijuana company you've got cash in your home. Banking is fine, but we were lagging behind in ways to take credit cards.
The way that they take credit cards now is an end around. For example, Square — the credit card processing service — they will not give a Square account to a marijuana company, but there is credit card services, specifically because we want to avoid money laundering, and if you have $1 million in cash, and I can tell you from — not my personal experience but from client's experience — you can't do a lot with $1 million in cash. You can't buy a home in cash because the title companies locally — and I'm guessing nationwide — will not take unseasoned funds for a home. If you can't show the providence of where your $500,000 came from to buy a home, they won't accept it. They want you to put it in a bank.
Sam Glover: For some good reasons apart from-
Matthew Buck: Well, I mean, it does say for all debts. That's a debt technically. I mean, you're-
Sam Glover: Yeah, but there's nobody walking around with $1 million in cash who's gotten it legally.
Matthew Buck: Well, not federally legally, but prior to-
Sam Glover: That's what I mean. Right.
Matthew Buck: … 2015 there were plenty of people in Colorado that had $1 million cash, didn't know what to do with it, and that's why you saw some of the dumb early adopters flaunting their wealth with sports cars, machine guns, etc.
Sam Glover: Because they were just trying to dump it into something to hold it other than cash.
Matthew Buck: Because you can't put it into gold because they are required reporters also. Pawnshops, they take more than $10,000, they have to fill out the form — I think it's 1083 — that says I took more than $10,000 cash. You don't want that kind of name out there because you still are violating federal law, and prior to the Cole Memo — which stated that the feds were not going to interfere with people that were operating legally — there was a realistic chance that the federal government was going to come in and start arresting people that were violating federal law. Thankfully, that has happened to one person that I'm aware of that was not violating another federal law other than the Controlled Substances Act.
Sam Glover: Has Bitcoin become part of the solution at this point?
Matthew Buck: There are dispensaries that have Bitcoin ATMs at their locations, but I think that there's a barrier to entry of knowledge for Bitcoin's and it's difficult. Even I, with a giant doctorate of law, still can't figure out Bitcoin's. There is no good way to transfer them, and I think maybe because they're trying to keep it a secure currency they don't want to be easy, but other than going to a physical Bitcoin ATM — and converting cash to a Bitcoin there — I think there's a barrier to entry where the average person is not going to want to have them around because they really only have … Well, there probably are some legit purposes I don't know of but other than … The only purpose I know of is to buy drugs in the dark market and so-
Sam Glover: I mean, there is, but similar to giant bags of cash, most people with giant wallets of Bitcoin have gotten it by selling drugs.
Matthew Buck: Or maybe they were early adopters that had a mining machine, and they-
Sam Glover: Yeah. That would be the one exception, but now they're probably using it to buy drugs.
Matthew Buck: [inaudible 00:31:52] what can you do? You can't really do a lot with a Bitcoin. That's why I think they haven't … Well, those-
Sam Glover: You can take out hits on people, you can buy drugs, and you can buy illegal pornography.
Matthew Buck: You could probably buy illegal firearms.
Sam Glover: Yeah. There you go.
Matthew Buck: That's the other problem with the darknet is that you have to be smart to get to it. I don't even know what it looks like, but I'm imagining it looks like eBay, and you can pick … I don't know. Who knows what-
Sam Glover: Yeah. It's pretty undark to look at actually.
Matthew Buck: Oh really. Okay.
Sam Glover: Yeah. Lots of this stuff is essentially at the whim of the federal government. Which makes me wonder if it would be wise to use some protections around communications and data storage. I'm wondering if you do, and take extra steps to protect your client's communications and information? If so, what do you use?
Matthew Buck: We don't do anything with that. We use Gmail as our backend, so we would use Google apps for our business email. I can't remember the last time I discussed anything over email with the client. I would say that 99.9% of my communications are face-to-face because I don't have clients out of the state of Colorado. We don't discuss anything. I mean, if I look at my email now most of my emails to clients are, "Can I come see you at blank date?" and I say, "Yes, I have time on blank date," and they come in. So, we never discuss — other than criminal discovery — I would say the word marijuana does not appear in my email.
Sam Glover: So, it's not such a deliberate thing, or it is, and you're just having those conversations face-to-face as a way of keeping them out of your information stream?
Matthew Buck: It's not deliberate. I'm pretty verbose — as this may or may not show — and so they know they are going to get a better answer. Oftentimes, if we're dealing with … My clients don't come to me with quick hit questions. They come to me with difficult questions that they don't want to have a 30-page email response to. They want to sit down for an hour, and then often times if I need to give them written instructions, I'll physically print and give it to them on the way out. That's not intentional because of security. It's just because they don't ask for it.
We don't discuss anything … I guess the one exception to that would be when I'm working with clients to get their business up and running. Multiple municipalities require like an operational guide of how you're physically going to work with the marijuana. In that instance, we'll provide that in writing, and I will work on drafts of that with the clients, but that comes from municipalities. Barring the lawsuit that's currently going on in the Tenth, municipalities have here to far been immune from any sort of liability related to their participation in the marijuana industry.
Sam Glover: Do you worry about the federal government just doing a 180 and saying, "You know what? We are done. We are done tolerating this. We are just going to crackdown?"
Matthew Buck: I didn't until we elected a chimpanzee as president, and he nominated Jeffrey Sessions as his Attorney General nomination. I had no worries until November 8, 2016, I guess. That doesn't work for the country. When they announced Sessions, I became worried because of his previous positions on marijuana are effectively that … He's on record as saying something very literally close to, "No good people use marijuana, or no good people smoke marijuana." When he was, in 2013, interviewing the new DEA head — was confirming that position basically — that marijuana was not good, it had no medical benefits. Even President Obama's last Surgeon General was on the record as stating that there was no medicinal benefits to marijuana which is A, a ridiculous claim, and B, it was obviously politically motivated. So, do I worry about it? Yes, I do worry because-
Sam Glover: What would that even look like? Is it more like, "Hey, Colorado's starting on, you know, July 1 we're going to start arresting people, and we are going to bring the DEA in, and we are going to start shutting down operations," or is it more just like one day everybody starts showing up, and they start arresting people?
Matthew Buck: I would guess they'd give a warning. In 2013 the state of Colorado sent out mass notices to dispensaries that were within 1000 feet of a school that, "You need to shut down, or we're coming." Literally, every single person complied. I'm guessing given that these aren't — whatever your worst stereotype of what a stoner is which to me is like a beard, and dreadlocks, and smelly, and like a Rasta hat, and like a Bob Marley T-shirt — that is not people in the industry today. It's a multi-billion dollar industry. There are very few small shops left. There are a lot of people who are conglomerates. They own 10 licenses, 20 licenses. They own the property that their buildings are in, and commercial property here is incredibly valuable. They might own $100 million in buildings let alone what their business is worth. So, those people if told, "Hey, it's time to shut it down," they would just shut it down. They are entrepreneurs. They would find whatever the new way to make money was.
I know for a fact there are not the law enforcement resources to shut it down, and I know that because one of my clients was engaged in lawful business in the state of Colorado, and they believe that he was also engaging in unlawful business in also the state of Colorado, and they sent every FBI agent they had to raid his personal property and his businesses, and there are so few federal law enforcement officers in the state of Colorado that they had IRS agents in tanks on his property. Which I find laughable, but it's also true, A, and B, when you got to get the IRS cops involved you might be a little light on the staffing.
Sam Glover: Yeah. The practical reality is they can't do much in the short term anyway.
Matthew Buck: No. There is probably … There is over 500 dispensaries in Denver alone. So, the state of Colorado there are probably around 750, and then there are ancillary buildings that are associated with those that are also licensed. They'd need to bring in … Just, if you look at where we are. We are in the middle of nowhere. I mean, Wyoming might have four feds if it has that. Idaho. There's just no states around that have a lot of law enforcement, so you'd have to see such a large-scale movement that would be so expensive that I'd have to think taxpayers would be upset that their tax dollars were being used on that.
I think they'd send letters out, and they'd shut it down, but I think when they sent letters out you would see a lot of us that practices form of law, and there are at least — I mean, people that actually do this and don't just say they do this — there probably are at least 10 of us in the state of Colorado, would all file lawsuits on behalf of our clients, and it would just clog up the district of Colorado with temporary injunctions based on the letter, and I think we'd fight it out in court before they wasted valuable taxpayer dollars and had tanks at everyone's home.
Sam Glover: By way of sort of wrapping up, let's say you're in a state like I am where medical marijuana recently became legal — and it's not like legal and everybody's doing it because they've made it pretty onerous — but how do you start building a weed law practice from that point? Because I assume, that's basically the starting point is once you can actually have a valid business, that's where you can start maybe building that brand as the local weed lawyer. So, how would you go about doing it?
Matthew Buck: That is a great question. Let's take Washington DC for example. They have legal medical marijuana, and they have no marijuana attorneys because the restrictions are so onerous that you don't need a lawyer for it because everything is so black and white. So, let's say that you were in a state like Florida, for example, that just expanded their medical marijuana program. I think that what you would do is get out in front … Well, the problem is most people that say that they do marijuana law, for example, if you look at … I won't name names because I get in trouble for that, but there are people who are out in front media wise and on the web as marijuana attorneys. They are just good-looking lawyers who say they do it, and they don't really do.
If you look at what they're actually doing, they are not really doing a lot in the court. So, I don't really know … If you're that kind of cannabis lawyer, I would say be really attractive and give interviews. That's what you should do, but if you actually want to be boots on the ground is get to know your local — hate to recommend normal because I just think they're so inactive — but I think that a lot of the local NORML attorneys, which is the National Organization for the Regulation of Marijuana Legally.
I think it's what NORML stands for. I'm not a member. Those guys are doing important work. So, I think get involved with NORML because they have good results, and people that get in trouble are going to Google marijuana lawyer, and they're going to find NORML, and so then they are going to find you. Then we don't do a lot of marketing. We are first page Google search because we've been around for so long and because we do so much, and we do so much because we been … It's a horrible, legal chicken and egg if you want to do a certain kind of law.
For example, I wanted to do escort law about three years ago, and I tried to drum up business and talk to people in the industry and say, "Listen, if you are getting in trouble I will help you because I think that this should be a legally protected activity you're engaging in." They were just so averse to talking to lawyers because they're always worried that it's like, "It's a cop. I think." Because we have — thankfully in Colorado — we have a sex work union. Sex workers have a union that they can … I don't know what they do. They don't have a website obviously, but I've talked to the head of it, and I said, "Listen, we'll represent you. I'd love to be your local counsel," and it was just so difficult. The problem was there because I wasn't doing anything, and people knew who I was, and I didn't have results where I could show them, "Listen, this is how I could help you." By the way, I'm undefeated in escorting cases.
Matthew Buck: Yeah, but those clients that wanted me to be trumpeting, "Hey, listen I was charged with-"
Sam Glover: But you have to build a reputation. You have to establish yourself as doing it; maybe you have to ride along on another lawyer's reputation for a little while before you can build that and build some trust.
Matthew Buck: That's what I did. I mean, I didn't necessarily … I'm not some huge warrior for marijuana, but I wanted to work for my boss. He happened to do this, and because of that, I have people that request to me specifically because we were just so simpatico that I started filing the same kind of suits he had been filing, and it works out. As far as if you wanted to start from scratch, I would say meet local people. Tell them if they have a problem you'll help them for free. Then get someone acquitted. That's the biggest way that you can earn reputation is either a not guilty, or even better than that-
Sam Glover: Winning.
Matthew Buck: … which we've done is have cases dismissed because of poor police work or whatever. The problem is the court decisions that keep coming out every year are eroding at what I think are simple liberties. For example, prior to last year it was pretty cut and dried that — or at least it was ambiguous — on whether odor could be probable cause of someone committing an illegal activity. Because marijuana's inherently legal that six plants you don't need a license. Any general citizen in Colorado — and in fact, you don't need a citizen — the second you step foot in Colorado you have the right to grow six plants in your residence. Could you grow six plants in your Ramada Inn you're staying at the airport? Probably not, but if you just move here — day one — you can start growing immediately. You can go to a local store and buy clothes. Because we know that that is legal activity, it's not just decriminalized, it's legal, anyone can do it, there's no license, no exceptions, etc.
I thought it was pretty cut and dried that if you can just smell marijuana it's not evidence of illegal activity. Then a case came out last year that said based on a combination of factors order can be one of the things that is evidence or probable cause of a crime being committed, and I just find it to be ridiculous. So, when you get things like that it makes it harder to fight people engaging in legal activity, and we still are seeing even in 2017 — seven years after the legalization or at least decriminalization of medical use — overzealous policing as it relates to marijuana for people that are doing nothing more than exercising constitutional rights.
Sam Glover: So, get out there, network, meet people, and take cases and win some.
Matthew Buck: That's good advice for every lawyer is win cases you take.
Sam Glover: Yeah. Well, that's true.
Matthew Buck: Especially for free.
Sam Glover: Matt, thanks so much for being on the podcast today-
Matthew Buck: My pleasure.
Sam Glover: … and good luck with weed law.
Matthew Buck: Thank you so much. `
Aaron Street: Make sure to catch next week's episode of the Lawyerist Podcast. If you'd like more information about todays show, please visit lawyerist.com/podcast or legaltalknetwork.com. You can subscribe via iTunes or anywhere podcasts are found. Both Lawyerist and the Legal Talk Network can be found on Twitter, Facebook, and LinkedIn. You can download the free app from Legal Talk Network in Google Play or iTunes.
Sam Glover: The views expressed by the participants of this program are their own, and do not represent the views of — nor are they endorsed by — Legal Talk Network. Nothing said during this podcast is legal advice.
Podcast: Lawyerist Podcast
Category: Legal Marketing , Legal News , Medical Law
The Lawyerist Podcast is a weekly show about lawyering and law practice hosted by Stephanie Everett.
A Better Approach to Feedback
#363: What Is the Future of Legal Tech?, with Zack Glaser
Zack Glaser discusses the future of legal tech.
#362: The Great Re-Onboarding of 2022, with Maryellen Stockton
What does 2022 look like for office life.
#361: Rethinking Your Exit Strategy, with Sam Glover & Aaron Street
The Lawyerist co-founders join to help you work out your exit strategy.
#360: Leading Your Team with Empathy, with Sherry Deutschmann
We're talking with author and entrepreneur, Sherry Deutschmann, about how important it is to have empathy in your leadership with your business.
#359: Why You Need a Business Coach, with Sara Muender
New Lawyerist team member Sara Muender discusses what it means to be and to use a business coach.

redpajama_set_name: RedPajamaCommonCrawl


Dogs are meant to run, jump and play: whether it's jumping on your couch or bed, chasing a bird or playing fetch, but all of this running and jumping around puts a lot of pressure on their joints, which can lead to joint problems and osteoarthritis.
Joint problems or osteoarthritis can be categorized into being either degenerative or developmental. Degenerative joint problems cover a wide range of causal factors that can eventually lead to arthritis. The most common of these are ligament issues, which worsen over time leading to instability and secondary arthritis. Developmental joint problems refer to joints that don't develop as they should, leading to a number of issues such as elbow and hip dysplasia.
A few common signs to look out for are: stiffness; struggling to get up or to climb on and off objects (e.g. struggling to walk up/down the stairs, get on/off your couch or in/out of your car); lameness; more resistant to exercise; less playful; tendency to rest for longer periods; and a change in mood. It's important to catch signs of joint problems in their early stages, as this will help to address the problem easier and less painful for your dog.
Overweight dogs are also putting extra pressure on their joints and over time this will add unnecessary strain and wear and tear to the musculoskeletal system. For this reason it's important to look at your dog's diet and fitness levels for healthy weight and body management.
At Pet Hero you will find the right nutrition and/or supplement to give your dog good and healthy joint support.


text:
Steve Aldous
Writer / Film, Music and Crime Fiction enthusiast / The World of Shaft: A Guide to the Books, Films and TV Series
Poisoned Veins
The World of Shaft: A Complete Guide to the Novels, Comic Strip, Films and Television Series
Sticking It To the Man: Revolution and Counterculture in Pulp and Popular Fiction, 1956 to 1980 (edited by Andrew Nette and Iain McIntyre)
The Songs of Genesis: The Complete Guide to the Studio Recordings
Guide to Shaft
Shaft News
Ernest Tidyman: The White Man Behind the Black Hero
Shaft In Print
Shaft Among the Jews (1972)
Shaft's Big Score! (1972)
Shaft Has a Ball (1973)
Goodbye, Mr. Shaft (1973)
Shaft's Carnival of Killers (1974)
The Last Shaft (1975)
Shaft: A Complicated Man (2014/15)
Shaft's Revenge (2016)
Shaft: Imitation of Life (2016)
Shaft On Screen
Shaft in Africa (1973)
Shaft (TV series 1973-4)
The Executioners
Hit-Run
The Kidnapping
The Capricorn Murders
The Murder Machine
Posted on March 17, 2019 by Steve
Film Review – JOE KIDD (1972)
JOE KIDD (USA, 1972) ***
Distributor: Universal Pictures; Production Company: Universal Pictures / The Malpaso Company; Release Date: 19 July 1972 (USA), 24 September 1972 (UK); Filming Dates: November 1971; Running Time: 88m; Colour: Technicolor; Sound Mix: Mono (Westrex Recording System); Film Format: 35mm; Film Process: Panavision; Aspect Ratio: 2.35:1; BBFC Cert: 15.
Director: John Sturges; Writer: Elmore Leonard; Executive Producer: Robert Daley; Producer: Sidney Beckerman; Director of Photography: Bruce Surtees; Music Composer: Lalo Schifrin; Film Editor: Ferris Webster; Art Director: Henry Bumstead, Alexander Golitzen; Set Decorator: Charles S. Thompson; Sound: James R. Alexander, Waldon O. Watson.
Cast: Clint Eastwood (Joe Kidd), Robert Duvall (Frank Harlan), John Saxon (Luis Chama), Don Stroud (Lamarr), Stella Garcia (Helen Sanchez), James Wainwright (Mingo), Paul Koslo (Roy), Gregory Walcott (Mitchell), Dick Van Patten (Hotel Manager), Lynne Marta (Elma), John Carter (Judge), Pepe Hern (Priest), Joaquín Martínez (Manolo (as Joaquin Martinez)), Ron Soble (Ramon), Pepe Callahan (Naco), Clint Ritchie (Calvin), Gil Barreto (Emilio), Ed Deemer (Bartender), Maria Val (Vita), Chuck Hayward (Eljay), Michael R. Horst (Deputy).
Synopsis: An ex-bounty hunter reluctantly helps a wealthy landowner and his henchmen track down a Mexican revolutionary leader.
Comment: Eastwood and Duvall add a level of class to this otherwise familiar Western. Leonard's script is slight with little in terms of character development but is enlivened by moments of humour – including a deliciously over-the-top finale (unscripted and jokingly suggested by producer Daley) involving a train and a saloon. Outdoor sequences are beautifully shot by Surtees near June Lake, east of the Yosemite National Park. Old Tuscon was used for the town scenes.
Notes: Elmore Leonard's script, originally called "The Sinola Courthouse Raid", was inspired by Reies Tijerina, an ardent supporter of Robert F. Kennedy, who stormed a courthouse in Tierra Amarilla, New Mexico in June 1967, taking hostages and demanding that the Hispanic people have their ancestral lands returned to them.
CategoriesFilm Reviews TagsClint Eastwood, Don Stroud, Elmore Leonard, John Saxon, John Sturges, Robert Duvall, Western
Previous PostPrevious Film Review – THEY LIVE (1988)
Next PostNext Film Review – HIGH PLAINS DRIFTER (1973)
Book Review – GENESIS 3 (2020) by Robert Ellis
Book Review – THE MAKING OF ON HER MAJESTY'S SECRET SERVICE (2009) by Charles Helfenstein
Film Review – MAN AT THE TOP (1973)
Film Review – BREAKHEART PASS (1975)
Film Review – LONELY ARE THE BRAVE (1962)
Film Reviews (575)
Music Reviews (10)
News on my writing (5)
Obituaries (4)
Shaft (124)
Site Update (1)
TV Reviews (135)
Shaft Among the Jews
Shaft's Big Score!
Shaft Has a Ball
Goodbye, Mr. Shaft
Shaft's Carnival of Killers
The Last Shaft
Shaft: A Complicated Man
Shaft's Revenge
Shaft: Imitation of Life
Bradley Walsh
Dietrich Smith
Ernest Tidyman
Tosin Cole
The World of Shaft
Available now from:
McFarland & Co
STICKING IT TO THE MAN
THE SONGS OF GENESIS: A COMPLETE GUIDE TO THE STUDIO RECORDINGS


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

#include "net/url_request/redirect_util.h"

#include <string>

#include "net/http/http_request_headers.h"
#include "net/url_request/redirect_info.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace net {
namespace {

TEST(RedirectUtilTest, UpdateHttpRequest) {
  const GURL original_url("https://www.example.com/test.php");
  const char kContentLengthValue[] = "100";
  const char kContentTypeValue[] = "text/plain; charset=utf-8";
  const char kContentEncoding[] = "Content-Encoding";
  const char kContentEncodingValue[] = "gzip";
  const char kContentLanguage[] = "Content-Language";
  const char kContentLanguageValue[] = "tlh";
  const char kContentLocation[] = "Content-Location";
  const char kContentLocationValue[] = "https://somewhere.test/";
  const char kCustomHeader[] = "Custom-Header-For-Test";
  const char kCustomHeaderValue[] = "custom header value";

  struct TestCase {
    const char* original_method;
    const char* new_method;
    const char* new_url;
    const char* modified_headers;
    bool expected_should_clear_upload;
    // nullptr if the origin header should not exist
    const char* expected_origin_header;
  };
  const TestCase kTests[] = {
      {
          "POST" /* original_method */, "POST" /* new_method */,
          "https://www.example.com/redirected.php" /* new_url */,
          "Header1: Value1\r\nHeader2: Value2" /* modified_headers */,
          false /* expected_should_clear_upload */,
          "https://origin.example.com" /* expected_origin_header */
      },
      {
          "POST" /* original_method */, "GET" /* new_method */,
          "https://www.example.com/redirected.php" /* new_url */,
          "Header1: Value1\r\nHeader2: Value2" /* modified_headers */,
          true /* expected_should_clear_upload */,
          nullptr /* expected_origin_header */
      },
      {
          "POST" /* original_method */, "POST" /* new_method */,
          "https://other.example.com/redirected.php" /* new_url */,
          "Header1: Value1\r\nHeader2: Value2" /* modified_headers */,
          false /* expected_should_clear_upload */,
          "null" /* expected_origin_header */
      },
      {
          "POST" /* original_method */, "GET" /* new_method */,
          "https://other.example.com/redirected.php" /* new_url */,
          "Header1: Value1\r\nHeader2: Value2" /* modified_headers */,
          true /* expected_should_clear_upload */,
          nullptr /* expected_origin_header */
      },
      {
          "PUT" /* original_method */, "GET" /* new_method */,
          "https://www.example.com/redirected.php" /* new_url */,
          "Header1: Value1\r\nHeader2: Value2" /* modified_headers */,
          true /* expected_should_clear_upload */,
          nullptr /* expected_origin_header */
      },
      {
          "FOOT" /* original_method */, "GET" /* new_method */,
          "https://www.example.com/redirected.php" /* new_url */,
          "Header1: Value1\r\nHeader2: Value2" /* modified_headers */,
          true /* expected_should_clear_upload */,
          nullptr /* expected_origin_header */
      },
  };

  for (const auto& test : kTests) {
    SCOPED_TRACE(::testing::Message()
                 << "original_method: " << test.original_method
                 << " new_method: " << test.new_method
                 << " new_url: " << test.new_url);
    RedirectInfo redirect_info;
    redirect_info.new_method = test.new_method;
    redirect_info.new_url = GURL(test.new_url);

    net::HttpRequestHeaders modified_headers;
    modified_headers.AddHeadersFromString(test.modified_headers);
    std::string expected_modified_header1, expected_modified_header2;
    modified_headers.GetHeader("Header1", &expected_modified_header1);
    modified_headers.GetHeader("Header2", &expected_modified_header2);

    HttpRequestHeaders request_headers;
    request_headers.SetHeader(HttpRequestHeaders::kOrigin,
                              "https://origin.example.com");
    request_headers.SetHeader(HttpRequestHeaders::kContentLength,
                              kContentLengthValue);
    request_headers.SetHeader(HttpRequestHeaders::kContentType,
                              kContentTypeValue);
    request_headers.SetHeader(kContentEncoding, kContentEncodingValue);
    request_headers.SetHeader(kContentLanguage, kContentLanguageValue);
    request_headers.SetHeader(kContentLocation, kContentLocationValue);
    request_headers.SetHeader(kCustomHeader, kCustomHeaderValue);
    request_headers.SetHeader("Header1", "Initial-Value1");

    bool should_clear_upload = !test.expected_should_clear_upload;

    RedirectUtil::UpdateHttpRequest(
        original_url, test.original_method, redirect_info,
        base::nullopt /* removed_headers */, modified_headers, &request_headers,
        &should_clear_upload);
    EXPECT_EQ(test.expected_should_clear_upload, should_clear_upload);

    std::string content_length;
    EXPECT_EQ(!test.expected_should_clear_upload,
              request_headers.GetHeader(HttpRequestHeaders::kContentLength,
                                        &content_length));
    std::string content_type;
    EXPECT_EQ(!test.expected_should_clear_upload,
              request_headers.GetHeader(HttpRequestHeaders::kContentType,
                                        &content_type));
    std::string content_encoding;
    EXPECT_EQ(!test.expected_should_clear_upload,
              request_headers.GetHeader(kContentEncoding, &content_encoding));
    std::string content_language;
    EXPECT_EQ(!test.expected_should_clear_upload,
              request_headers.GetHeader(kContentLanguage, &content_language));
    std::string content_location;
    EXPECT_EQ(!test.expected_should_clear_upload,
              request_headers.GetHeader(kContentLocation, &content_location));
    if (!test.expected_should_clear_upload) {
      EXPECT_EQ(kContentLengthValue, content_length);
      EXPECT_EQ(kContentTypeValue, content_type);
      EXPECT_EQ(kContentEncodingValue, content_encoding);
      EXPECT_EQ(kContentLanguageValue, content_language);
      EXPECT_EQ(kContentLocationValue, content_location);
    }

    std::string custom_header;
    EXPECT_TRUE(request_headers.GetHeader(kCustomHeader, &custom_header));
    EXPECT_EQ(kCustomHeaderValue, custom_header);

    std::string origin_header_value;
    EXPECT_EQ(test.expected_origin_header != nullptr,
              request_headers.GetHeader(HttpRequestHeaders::kOrigin,
                                        &origin_header_value));
    if (test.expected_origin_header) {
      EXPECT_EQ(test.expected_origin_header, origin_header_value);
    }

    std::string modified_header1, modified_header2;
    EXPECT_TRUE(request_headers.GetHeader("Header1", &modified_header1));
    EXPECT_EQ(expected_modified_header1, modified_header1);
    EXPECT_TRUE(request_headers.GetHeader("Header2", &modified_header2));
    EXPECT_EQ(expected_modified_header2, modified_header2);
  }
}

TEST(RedirectUtilTest, RemovedHeaders) {
  struct TestCase {
    std::vector<const char*> initial_headers;
    std::vector<const char*> modified_headers;
    std::vector<const char*> removed_headers;
    std::vector<const char*> final_headers;
  };
  const TestCase kTests[] = {
      // Remove no headers (empty vector).
      {
          {},  // Initial headers
          {},  // Modified headers
          {},  // Removed headers
          {},  // Final headers
      },
      // Remove an existing header.
      {
          {"A:0"},  // Initial headers
          {},       // Modified headers
          {"A"},    // Removed headers
          {},       // Final headers
      },
      // Remove a missing header.
      {
          {},     // Initial headers
          {},     // Modified headers
          {"A"},  // Removed headers
          {},     // Final headers
      },
      // Remove two different headers.
      {
          {"A:0", "B:0"},  // Initial headers
          {},              // Modified headers
          {"A", "B"},      // Removed headers
          {},              // Final headers
      },
      // Remove two times the same headers.
      {
          {"A:0"},     // Initial headers
          {},          // Modified headers
          {"A", "A"},  // Removed headers
          {},          // Final headers
      },
      // Remove an existing header that is also modified.
      {
          {"A:0"},  // Initial headers
          {"A:1"},  // Modified headers
          {"A"},    // Removed headers
          {"A:1"},  // Final headers
      },
      // Some headers are removed, some aren't.
      {
          {"A:0", "B:0"},  // Initial headers
          {},              // Modified headers
          {"A"},           // Removed headers
          {"B:0"},         // Final headers
      },
  };

  for (const auto& test : kTests) {
    HttpRequestHeaders initial_headers, modified_headers, final_headers;
    std::vector<std::string> removed_headers;
    for (const char* header : test.initial_headers)
      initial_headers.AddHeaderFromString(header);
    for (const char* header : test.modified_headers)
      modified_headers.AddHeaderFromString(header);
    for (const char* header : test.removed_headers)
      removed_headers.push_back(header);
    for (const char* header : test.final_headers)
      final_headers.AddHeaderFromString(header);
    bool should_clear_upload(false);  // unused.

    RedirectUtil::UpdateHttpRequest(GURL(),         // original_url
                                    std::string(),  // original_method
                                    RedirectInfo(), removed_headers,
                                    modified_headers, &initial_headers,
                                    &should_clear_upload);

    // The initial_headers have been updated and should match the expected final
    // headers.
    EXPECT_EQ(initial_headers.ToString(), final_headers.ToString());
  }
}

// Test with removed_headers = base::nullopt.
TEST(RedirectUtilTest, RemovedHeadersNullOpt) {
  HttpRequestHeaders initial_headers, final_headers;
  initial_headers.SetHeader("A", "0");
  final_headers.SetHeader("A", "0");
  base::Optional<std::vector<std::string>> removed_headers(base::nullopt);
  base::Optional<HttpRequestHeaders> modified_headers(base::in_place);
  bool should_clear_upload(false);  // unused.

  RedirectUtil::UpdateHttpRequest(GURL(),         // original_url
                                  std::string(),  // original_method
                                  RedirectInfo(), removed_headers,
                                  modified_headers, &initial_headers,
                                  &should_clear_upload);

  // The initial_headers have been updated and should match the expected final
  // headers.
  EXPECT_EQ(initial_headers.ToString(), final_headers.ToString());
}

// Test with modified_headers = base::nullopt.
TEST(RedirectUtilTest, ModifyHeadersNullopt) {
  HttpRequestHeaders initial_headers, final_headers;
  initial_headers.SetHeader("A", "0");
  final_headers.SetHeader("A", "0");
  base::Optional<std::vector<std::string>> removed_headers(base::in_place);
  base::Optional<HttpRequestHeaders> modified_headers(base::nullopt);
  bool should_clear_upload(false);  // unused.

  RedirectUtil::UpdateHttpRequest(GURL(),         // original_url
                                  std::string(),  // original_method
                                  RedirectInfo(), removed_headers,
                                  modified_headers, &initial_headers,
                                  &should_clear_upload);

  // The initial_headers have been updated and should match the expected final
  // headers.
  EXPECT_EQ(initial_headers.ToString(), final_headers.ToString());
}

}  // namespace
}  // namespace net

redpajama_set_name: RedPajamaGithub


text:
Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef
P. K. Swart, A. E. Wilson, J. S. Jell
Marine Geosciences
A survey of temperature, salinity and oxygen isotope ratio was conducted on the reefal waters of a lagoonal platform reef, Heron Reef, situated near the southern end of the Great Barrier Reef. The oxygen isotope ratio of the water changed by nearly 2‰ during a 3-week period. Daily variations of 1.4‰ were detected. As the maximum oxygen isotope ratios occurred at low tide, during times of high temperature and high salinity, temperature-induced variation in oxygen isotope ratios of skeletal material was masked. Such a phenomenon can easily explain why previous workers have failed to detect the full range of oxygen isotope ratios in coral skeletons and other calcareous organisms.
Marine and Freshwater Research
https://doi.org/10.1071/MF9830813
10.1071/MF9830813
Dive into the research topics of 'Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef'. Together they form a unique fingerprint.
oxygen isotopes Agriculture & Biology 100%
Ardeidae Agriculture & Biology 88%
oxygen isotope ratio Earth & Environmental Sciences 87%
Great Barrier Reef Agriculture & Biology 87%
reefs Agriculture & Biology 71%
oxygen isotope Earth & Environmental Sciences 63%
reef Earth & Environmental Sciences 57%
salinity Agriculture & Biology 21%
Swart, P. K., Wilson, A. E., & Jell, J. S. (1983). Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef. Marine and Freshwater Research, 34(5), 813-819. https://doi.org/10.1071/MF9830813
Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef. / Swart, P. K.; Wilson, A. E.; Jell, J. S.
In: Marine and Freshwater Research, Vol. 34, No. 5, 1983, p. 813-819.
Swart, PK, Wilson, AE & Jell, JS 1983, 'Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef', Marine and Freshwater Research, vol. 34, no. 5, pp. 813-819. https://doi.org/10.1071/MF9830813
Swart PK, Wilson AE, Jell JS. Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef. Marine and Freshwater Research. 1983;34(5):813-819. https://doi.org/10.1071/MF9830813
Swart, P. K. ; Wilson, A. E. ; Jell, J. S. / Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef. In: Marine and Freshwater Research. 1983 ; Vol. 34, No. 5. pp. 813-819.
@article{e5f6d7b46f064901a7224c3bb53fb4f7,
title = "Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef",
abstract = "A survey of temperature, salinity and oxygen isotope ratio was conducted on the reefal waters of a lagoonal platform reef, Heron Reef, situated near the southern end of the Great Barrier Reef. The oxygen isotope ratio of the water changed by nearly 2‰ during a 3-week period. Daily variations of 1.4‰ were detected. As the maximum oxygen isotope ratios occurred at low tide, during times of high temperature and high salinity, temperature-induced variation in oxygen isotope ratios of skeletal material was masked. Such a phenomenon can easily explain why previous workers have failed to detect the full range of oxygen isotope ratios in coral skeletons and other calcareous organisms.",
author = "Swart, {P. K.} and Wilson, {A. E.} and Jell, {J. S.}",
note = "Funding Information: The authors would like to thank the staffs of Heron Island Research Station and the Department of Geology and Mineralogy, University of Queensland, especially Dr G. R. Orme and Mr E. Thompson. Dr C. T. Pillinger is gratefully acknowledged for allowing one of us (PKS) time to undertake this research. PKS was supported by a University of Queensland Travelling Fellowship. A. E. Fallick is thanked for his comments on the manuscript.",
doi = "10.1071/MF9830813",
journal = "Marine and Freshwater Research",
publisher = "CSIRO",
T1 - Oxygen isotope variation on a lagoonal platform reef, Heron Island, Great Barrier Reef
AU - Swart, P. K.
AU - Wilson, A. E.
AU - Jell, J. S.
N1 - Funding Information: The authors would like to thank the staffs of Heron Island Research Station and the Department of Geology and Mineralogy, University of Queensland, especially Dr G. R. Orme and Mr E. Thompson. Dr C. T. Pillinger is gratefully acknowledged for allowing one of us (PKS) time to undertake this research. PKS was supported by a University of Queensland Travelling Fellowship. A. E. Fallick is thanked for his comments on the manuscript.
N2 - A survey of temperature, salinity and oxygen isotope ratio was conducted on the reefal waters of a lagoonal platform reef, Heron Reef, situated near the southern end of the Great Barrier Reef. The oxygen isotope ratio of the water changed by nearly 2‰ during a 3-week period. Daily variations of 1.4‰ were detected. As the maximum oxygen isotope ratios occurred at low tide, during times of high temperature and high salinity, temperature-induced variation in oxygen isotope ratios of skeletal material was masked. Such a phenomenon can easily explain why previous workers have failed to detect the full range of oxygen isotope ratios in coral skeletons and other calcareous organisms.
AB - A survey of temperature, salinity and oxygen isotope ratio was conducted on the reefal waters of a lagoonal platform reef, Heron Reef, situated near the southern end of the Great Barrier Reef. The oxygen isotope ratio of the water changed by nearly 2‰ during a 3-week period. Daily variations of 1.4‰ were detected. As the maximum oxygen isotope ratios occurred at low tide, during times of high temperature and high salinity, temperature-induced variation in oxygen isotope ratios of skeletal material was masked. Such a phenomenon can easily explain why previous workers have failed to detect the full range of oxygen isotope ratios in coral skeletons and other calcareous organisms.
U2 - 10.1071/MF9830813
DO - 10.1071/MF9830813
JO - Marine and Freshwater Research
JF - Marine and Freshwater Research


text:
Saber Ghiassi
Saber Ghiassi, MD
Bariatric Surgery, General Surgery
Bariatric/Weight Loss Surgery, Colon Surgery, Diverticulitis, Gall Bladder Surgery, Gastric Bypass, GERD Surgery, Hernia Surgery, Laparoscopic Bariatric Surgery, Laparoscopic Cholecystectomy, Laparoscopic Colon Surgery, Laparoscopic Heller Myotomy, Laparoscopic Inguinal Hernia Repair, Laparoscopic Nissen Fundoplication, Laparoscopic Splenectomy, Robotic Surgery, Sleeve Gastrectomy
Brody School of Medicine (2004)
Mount Sinai School of Medicine (2009)
Stanford University School of Medicine (2010)
Yale Bariatric & Minimally Invasive Surgery
2000 Post Road
Biography - Saber Ghiassi, MD
Saber Ghiassi, MD, MPH, director of bariatric surgery at Bridgeport Hospital, has extensive experience in the treatment of obesity and metabolic syndrome. He specializes in the latest minimally invasive, robotic and bariatric surgeries. He also performs many common general surgeries, including hernia surgery.
Bariatric surgery is life-changing for many patients, says Dr. Ghiassi, an assistant professor of surgery (gastrointestinal) at Yale School of Medicine. Dr. Ghiassi has done research on the effects of such operations as the Roux-en-Y gastric bypass, a procedure to reduce the size of the upper stomach, which cuts down on the amount of food a patient can eat. With the use of very small incisions, high-definition video cameras and special instruments, these surgeries have become safer, more precise and less painful, he says. Patients recover faster and are able to quickly return to their normal lives.
Dr. Ghiassi, who also has a major interest in public health, says his passion for medicine revolves around "the ability to make a difference, however small, but occasionally life-saving, in the lives of my patients."


text:
Labour Market Information Council
National Stakeholders Advisory Panel (NSAP)
LMI Experts Panel
LMIC Staff
Post-Secondary Graduate Earnings
Understanding Skills
Survey Results by Population Groups
Survey Results for Employers
Pan-Canadian Survey Results
LMI Insights
LMIC Newsletter
To improve the timeliness, reliability and accessibility of labour market information to facilitate decision-making by employers, workers, job seekers, academics, policy makers, educators, career practitioners, students, parents and under-represented populations.
In June, 2016, the Forum of Labour Market Ministers (FLMM) endorsed a business plan for the implementation of the Labour Market Information Council (LMIC) and in April 2017, LMIC was registered as a not-for-profit corporation to provide the autonomy and the flexibility to undertake its mandate (Read More). The LMIC is led by a Board of Directors and guided by two advisory panels, namely the National Stakeholder Advisory Panel and the Labour Market Information Experts Panel.
National Stakeholder Advisory Panel (NSAP)
Labour Market Information (LMI) Experts Panel
Recognizing that timely, reliable, comprehensive and easily accessible labour market information is critical to identifying and continuing to meet labour market needs, the Forum of Labour Market Ministers endorsed the creation of a Labour Market Information Council for Canada.
In April 2018, we released our first Strategic Plan to provide a high-level overview of our core objectives and planned accomplishments over the coming three years. In particular, in an effort to improve the timeliness, reliability, and accessibility of labour market information, we established three core strategic goals – Collect, Analyze, and Distribute – each with a number of supporting priorities areas.
Sign-up to receive our monthly Newsletter
Labour Market Information Council (LMIC)
410 Laurier Avenue West, Suite 410
Ottawa, Ontario K1R 1B7
info@lmic-cimt.ca
Media Inquiries: nadine.purdy@lmic-cimt.ca
Copyright © 2018 LMIC. All rights Reserved.
Subscribe to the LMIC Newsletter
Stay up to date with developments and exciting news from our newsletter.


Box 1: Enter the date.
Box 3: After the "#" enter your suite number. This is the number that was sent to you when you signed up for your account.
Box 7a-7e: Enter your address and phone number. Don't worry about your country, there is no space for this on the form.
Next, you must get the form notarized.
The notary must sign Box 16, and stamp/seal the form. Banks and embassies normally provide notary service. Both U.S. and non-U.S. notary seals are accepted. If finding a notary proves impossible, you can go through a lawyer or bank official who can sign or stamp an official seal on the form. Government seals are also acceptable.
- NOTE: Social security cards, credit cards, and birth certificates are NOT acceptable forms of identification.
Failure to fill out this form and return it along with required documentation could result in refusal of your packages and suspension of your account.


The most popular websites and apps are constantly updated with new features. Updates should be given to the new and old functions of apps, programs, and websites. No matter the number of tests carried out, it is likely that errors will be found over time and it is up to the support teams to solve them.
However, the starting point for all support team is the report about the problem. This report helps app developers determine the cause of the error and achieve early resolution. Thanks to reports, developers can define the severity of an error and the priority of its resolution.
Here, you will learn about the essential data that you must include in an error report on programs and apps that you are testing.
It is essential for the support team to have certain data about the errors, otherwise, they cannot begin to correct them. This is done using error reports which provide developers with the information necessary to understand the problem and try to reach its resolution.
An error report should not only contain some mandatory data but also be as descriptive as possible. It will be useful for the developers because they will have a good starting point to begin to perform tests to understand why the error occurred in the first place.
You can also include screenshots with the error message or the type of error that occurs. It is particularly if some additional information is presented on the website of the app. The more info the developers have concerning the error, they better it is for the developers.
The title should be as descriptive as possible and summarize the main problem. In the best case, you may have received an error message. This forms a starting point for the developer and is the perfect title for a bug report. In case you don't get any error message but the program is behaving in an unusual way or does not react as it should, it is important to summarize the problem in a sentence and place it as a title. It may be helpful to first describe the error in detail and then try to summarize all that information in one sentence.
If you are dealing with an app, you are likely to have different options and functions. It is not enough for the developer to know that there is a problem or that a certain tool is failing; he needs to know exactly how the problem occurred. It is important to detail the steps that were taken until the error was found.
It is also common that certain errors are solved when restarting an app. If you mention in the report that you have restarted the program and the error still persists, it is a detail to which the developer will pay special attention. Likewise, the version number of the program should be included. It is true that most people keep their programs updated in the latest version, but the developer will not assume anything if you have not mentioned it in your error report.
The operating system that is being used is a fundamental data for developers since each operating system has its unique features and functions.
If it is a web application, not only the operating system and its respective version must be mentioned, but also the browser that has been used when finding the fault. If tests have been done in other browsers and the error persists it should also be mentioned. Also, do not forget to include the exact version of the browsers that have been used. These data help to identify if the error is an isolated case, limited to the specific situation of the user or if it is a generalized problem that could have an impact on a greater number of users.
When the error only occurred once and did not compromise other essential functions of the program, that is, if it has not been a fatal error, it is likely that the problem will not happen again. This implies that it is less priority to solve it.
Many developers, once they have the detailed description of the error, proceed to try to reproduce it under the same circumstances in order to understand what has happened and to be able to reach a resolution of the problem. So if the error can be reproduced, the developers already have a good starting point to start dealing with that particular problem.
This is also another point that the developers take into account for the solution of problems according to the order of priority. If the error has only happened once and to a user, then it is a failure due to a specific situation, therefore it is a subject that has a lower priority for them.
For you as a developer, it is easy to keep in mind all the essential data that should be included in an error report. This is because you understand the technical issues and know how important it is for the support team to have this information. However, it is likely that a user without technical knowledge simply does not have the patience to perform all these steps. Luckily, there are tools like Usersnap to report errors that facilitate this task for users.
Writing a bug report is a task that must be given particular attention. A good error report must contain the essential data previously mentioned, as well as details that describe the error and the circumstances in which it occurred.
There are different tools to report errors that could be useful, whether you are working in conjunction with other developers or are looking for a more appropriate solution for your users.


The tour will be led by Florence Chan, AIA, Director of KPF, and representatives from Outokumpu, the stainless steel supplier for the exterior wall, who will share their experience on the fabrication and installation of the facade, one of the most important features of the Center. During this tour, the group will have this rare opportunity to visit the active mass damper in the tower which is not open to the public.
This will be our last building tour of the year and, as there are limited places available, early registration is strongly recommended. Priorities will be given to AIA members. Our Program Committee is working on other building tour in Shenzhen and please stay tuned for further announcements!
Special Offer for AIA Members to join both the Ping An and Design Society tours – Registration fee (HK$380) to be paid and forward the payment record to rsvp@aiahk.org latest by Oct 31 (Wed) 6pm to confirm the reservation. Special offer bookings will be processed on a first-come-first-served basis.
KPF is a unified architectural practice focused on the design of buildings of all types and scales, in all geographic regions. Projects include the world's tallest towers, longest spans, most varied programs and inventive forms.
Outokumpu is a global leader in stainless steel fabrication with headquarters in Helsinki, Finland. Outokumpu has a long history as a mining company and with their expertise, they can tailor stainless steel into any form for almost any purpose.


Open Mic Tales will be a regular feature since the stories keep turning up. If I run out of stories – which is highly unlikely – there are open mic hosts and performers that could fill in the gaps. There is a lot of good music being played at open mics in the Dallas area. With many interesting stories of those who were passing through and showed up at an open mic. It is my intent to feature some of the better singer/songwriters as well as to share some of those interesting stories.
The first featured act is the West Texas Mammoths. To be truthful, only two of the band members were playing at Poor David's Pub open mic with Mr. Troll: David Kapsner, and Michael Jekot. David is the lead singer and guitarist and Michael is the lead guitar player. I'm looking forward to seeing the entire band play live. The other members are Tyler Rush, on bass, and Joseph Noga on drums. They say their music is a unique flavor of blues inspired rock and roll with a southern twist. And that's pretty much "on the money," as it were.
With just David and Michael playing, it was simply good acoustic music. Mike was playing lead (and playing it well) on a dobro. They reminded me of myself and Joel Nichols in Southern Plains before Joel passed away in 1999. When I played my set, I asked Mike to come up and play lead. As it happened, I had decided to bring my dobro that night, so it was dueling dobros on my song, Chocolate Eclairs and Apple Fritters. It took me back to when I was playing with Joel.
So check out the West Texas Mammoths when you have a chance. They are playing at Three Links in Deep Ellum on December 19. Or you can check them out on their website or on Reverbnation, Facebook, or Twitter. Tell Mike and David, Dan said hi.
For the past couple of years, I have been getting music together in preparation for recording a new CD. I didn't play much when the boys were growing up, what with Little League baseball, church activities, and disc golf tournaments. Now Conner and Cameron are 20 and 19, respectively, J.D. is a senior, and it's time to get back to playing music. We all play in the praise band at church occasionally.
I started with my old standards and added the new songs I've written over the past few years. As I was practicing and getting ready to go into the studio, I kept thinking of other songs I've written that I hadn't thought of in a while. But when I looked in my notebooks, I could not find some of the songs I was looking for. And some of the songs I found didn't have the chords written down.
I remembered the songs in my head, of course – for the most part. And I have a large number of tapes. My musical partner, Joel Nichols, and I were fanatics about recording practices and shows (sadly, Joel died in 1999). Yet not all of the tapes are labeled as to what songs are on them. Unfortunately, there are no clues such as – "this is the recording of that song that you remember was particularly excellent." So I get to spend a lot of time listening to tapes. Which means a lot of recordings of the same songs.
Which is my cross to bear. Here's my point – keep track of everything. Back everything up and date it. Having everything on computer is useless if you don't know where to find it. But you're a couple of steps ahead of me. I still have boxes to go through and copyrights to renew.
Joel and I thought we could hit the big time at any moment. We would spend our lives playing the same songs, along with new ones we were writing. It never occurred to us we might not sing them long enough for them to settle in the backs of our minds with other old memories. Fortunately for me, I played most of my songs enough that, even if I didn't play them again, I probably will never forget them. Once I started playing the newly found old songs, they usually came back to me fairly easily. Yet there were others that didn't come back as quickly or easily.
So trust me, don't rely completely on your memory. You're already having to write songs, record, give interviews, make appearances, and plan tours (among other things). Don't leave anything to chance. It can come back to haunt you.


text:
Q: Manipulating sub matrices in R Nh<-matrix(c(17,26,30,17,23, 17 ,24, 23), nrow=2, ncol=4); Nh
Sh<-matrix(c(8.290133, 6.241174, 6.096808, 7.4449672, 6.894924, 7.692115,
             4.540521, 7.409122), nrow=2, ncol=4); Sh
NhSh<-as.matrix(Nh*Sh); NhSh
rh<-c( 0.70710678, 0.40824829, 0.28867513, 0.22360680, 0.18257419,
       0.15430335, 0.13363062, 0.11785113, 0.10540926, 0.09534626); rh

pv <- c()
for (j in 1:2) {
  for (i in 1:4) {

    pv <- rbind(pv, NhSh[j,i]*rh)
  }
}
pv

row.names(pv) <- rep(c(1:2), each = 4)
lst<-lapply(split(seq_len(nrow(pv)), as.numeric(row.names(pv))), function(i)
pv[i,])

data<-40
nlargest <- function(x, data)
{
  res <- order(x)[seq_len(data)];
  pos <- arrayInd(res, dim(x), useNames = TRUE);
  list(values = pv[res], position = pos)
}
out <- lapply(lst, nlargest, data = 40)

In continuation of above code Is there any brief way of repeating the following steps for each out$'k'$position for k in 1:2?
s1<-c(1,1,1,1); ch<-c(5,7,10,5); C<-150; a<-out$'1'$position
for (j in a[40:1, "row"] )
{
 s1[j] <- s1[j]+1;
 cost1 <- sum(ch*s1);
 if (cost1>=C) break
}
s1; cost1
#Output [1] 5 6 6 5

#       [1] 152

I have to get 2 values for 's' and 'cost' for out$k$position. I tried
mat = replicate (2,{x = matrix(data = rep(NA, 80), ncol = 2)}); mat
for (k in 1:2)
{
  mat[,,k]<-out$'k'$position
}
mat

Error in mat[, , k] <- out$k$position :number of items to replace is not a multiple of replacement length
for (k in 1:2)
{
for (j in mat[,,k][40:1] ) {
  s[j] <- s[j]+1
  cost <- sum(ch*s)
  if (cost>=C) break

}
}
s; cost

Error : Error in s[j] <- s[j] + 1 : NAs are not allowed in subscripted assignments
Please anyone help in resolving these errors.

A: We could apply the function directly by looping over the list.  Note that each element of the list is a matrix
sapply(lst, is.matrix)
#  1    2
#TRUE TRUE

so, there is no need to unlist and create a matrix
out <- lapply(lst, nlargest, data = 40)

-checking with the OP's results
out1 <- nlargest(sub1, 40)
identical(out[[1]], out1)
#[1] TRUE

Update2
Based on the second update, we need to initialize 'cost'  and 'sl' with the same length as 'k' elements.  Here, we initialize 'sl' as a list of vectors
sl <- rep(list(c(1, 1, 1, 1)), 2)
C <- 150
cost <- numeric(2)
for (k in 1:2){

for (j in mat[,,k][40:1, 1] ) {
    sl[[k]][j] <- sl[[k]][j]+1
    cost[k] <- sum(ch*sl[[k]])
    if (cost[k] >=C) break

    }
   }

sl
#[[1]]
#[1] 5 7 6 4

#[[2]]
#[1] 6 5 5 7

cost
#[1] 154 150

redpajama_set_name: RedPajamaStackExchange


text:
<?php

namespace SymfonyAustria\EventBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

/**
 * @Route("/event")
 */
class EventController extends Controller
{
    /**
     * @Route("/", name="symfonyaustria_event_index")
     * @Template()
     */
    public function indexAction()
    {
        return array();
    }
}


text:
The Emergency Ultrasound Section of the American Academy of Emergency Medicine (EUS-AAEM) was founded to foster the professional development of its members and to educate them regarding point of care ultrasound.
AAEM Section elections are democratic – YOU nominate and elect your leaders! EUS-AAEM is seeking nominations from Section members for the 2022-23 Council term. If you know someone who will be a great leader, nominate them when Section Leadership Nominations open on January 3, 2022. Self-nominations are allowed and encouraged!
About EUS-AAEM
Become a part of the Emergency Ultrasound Section of AAEM
Read the EUS-AAEM Newsletter or submit an article.
EUS-AAEM Council Meeting
November 12, 2021 | 7:30am PT | 8:30am MT | 9:30am CT | 10:30am ET
Virtual Course Series
Advanced Emergency Medicine Ultrasonography (AEMUS) Fellowship
Applications for Initial Accreditation due April 1, 2022
The Emergency Ultrasound Fellowship Accreditation Council (EUFAC) is reaching out with an important deadline for fellowship programs planning to apply for initial accreditation for their Advanced Emergency Medicine Ultrasonography (AEMUS) fellowship prior to the end of the 2021-2022 academic year.
Programs must submit an application for initial accreditation by April 1, 2022 in order for EUFAC to review by June 30, 2022. (Applications will be reviewed on a rolling basis up until the deadline and will be reviewed on a rolling basis again after July 2022. Programs submitting after April 1, 2022 might not have their application reviewed before the end of the 2021-2022 academic year, which means any 2021-2022 fellows might graduate from an unaccredited program)
Programs who need to submit applications for continuing accreditation by the April 1, 2022 deadline will be contacted by the EUFAC directly.
Please note: An application is considered complete, when (1) the application form is finalized, (2) the application fee payment has been received by the EUFAC, and (3) the department chair has completed their verification of the application.
Please stay informed of ABEM's requirements for Focused Practice Designation in Advanced Emergency Ultrasound with important deadlines.
Contact the EUFAC Administrative Office at inquiries@eufacouncil.org or 414-918-9832 with any questions.


text:
By Debbie Macomber
Read by Carly Robins
Debbie Macomber MIRA, Harlequin Audio 9781551668413
The Dakota Series: Book 4
3 Formats: Digital Download
It's a time of change for a small prairie town. Buffalo Valley, North Dakota, has a will to survive, to prosper. And the outside world has discovered Buffalo Valley. A large retail conglomerate plans to move in, which would surely destroy the independent businesses…and maybe the town. It's a season of change for Vaughn Kyle. Just out of the army, he's looking for a life to live—and waits for his reluctant fiancée to make up her mind. Vaughn decides to visit Buffalo Vaglley and Hassie Knight. He was named after Hassie's son who died in Vietnam and she thinks of him as a surrogate son. He arrives at her store one snowy day and finds not Hassie but a young woman named Carrie Hendrickson… Will the season bring peace and joy—to Vaughn and to the town? As he begins to love Carrie, Vaughn questions his feelings for the woman he thought he loved. He wants to stay in Buffalo Valley and fight for its way of life. A life that's all about friends and family.
It's a time of change for a small prairie town.
Buffalo Valley, North Dakota, has a will to survive, to prosper. And the outside world has discovered Buffalo Valley. A large retail conglomerate plans to move in, which would surely destroy the independent businesses…and maybe the town.
It's a season of change for Vaughn Kyle.
Just out of the army, he's looking for a life to live—and waits for his reluctant fiancée to make up her mind. Vaughn decides to visit Buffalo Vaglley and Hassie Knight. He was named after Hassie's son who died in Vietnam and she thinks of him as a surrogate son. He arrives at her store one snowy day and finds not Hassie but a young woman named Carrie Hendrickson…
Will the season bring peace and joy—to Vaughn and to the town?
As he begins to love Carrie, Vaughn questions his feelings for the woman he thought he loved. He wants to stay in Buffalo Valley and fight for its way of life. A life that's all about friends and family.
"[Vaughn Kyle is] caught between…the future he always envisioned for himself and the appealing way of life that he glimpsed in the unique little town." —Barnes&Noble.com
"As sweet and heartwarming as apple pie." —Booklist
"The fictional town of Buffalo Valley, which was the setting for Macomber's Dakota trilogy, faces a new hurdle at Christmastime…Vaughn's dilemma generates genuine tension. Macomber keeps her characters straight enough to avoid confusion and displays her usual gift for tugging on the heartstrings." —Publishers Weekly
"Ms. Macomber will delight [with] her unique voice and sense of humor… Readers should rejoice at this 'never leave your house' keeper!" —RT Book Reviews
Author Bio: Debbie Macomber
Debbie Macomber is a leading voice in women's fiction. Her novels have hit the number one on the New York Times bestsellers list as well as making the USA Today and Publishers Weekly lists. Her novels Mrs. Miracle and Call Me Mrs. Miracle inspired the Hallmark Channel's top-watched movies for the year when they were released. There are more than 200 million copies of her books in print worldwide.
Format: Digital Download Format: CD Format: MP3 CD
Available Formats : Digital Download, CD, MP3 CD
Category: Fiction/Romance
Publisher: Harlequin Audio Publisher: MIRA Publisher: MIRA