Supreme Court Resumes Normal Activities

first_imgAfter closing over the weekend as part of it precautionary measure against the spread of the deadly Ebola virus, the Supreme Court on Monday, August 4, resumed normal activities.The High Court was among several government institutions that were temporary shut down for spraying of the entire offices and building including the entire compound of Temple of Justice.The moved intended was to ensure the safety of employees of the Judiciary Branch of the government, after an employee of that institution was believed to have been killed by the deadly Ebola virus that had claimed the over hundreds of  lives, including medical practitioner in the country.At Monday’s opening Judges were seen performing their usual duties by proceeding with cases.One of such, court that was in action yesterday was the Criminal Court ‘C’.That Criminal Court was hearing the drug smuggling case involving  Perry Dolo, the former presidential convoy chief and four others.They were accused of trafficking over LD$3.7million substance believed to be narcotic from neighboring Sierra Leone through the Bo Waterside crossing point into the country.The claim they denied when they were appeared before that court early last month for prosecution.It can be recalled that on July 31, the Chief Justice of the Supreme Court, Cllr.  Francis Korkpor instructed his Court’s administrator Cllr. Elizabeth J. Nelson to have all court’s activities closed pending the completion of the spraying of offices and building at  the Temple of Justice.In that directive, the    Chief Justice declared that“We are taking all precautionary measures in response to the deadly Ebola virus.” “In light of this,” Chief Justice Korkpor added, “the entire Temple of Justice compound will be fumigated (disinfected) beginning July 31 at 2:30 pm.”He further declared that “And will end on August 1.”In concluding, the Supreme Court stated that “normal activities will begin on Monday, August 4.”Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)last_img read more

Trial continues for Carlsbad woman accused of hiring man to murder estranged

first_img Show Caption Hide Caption Posted: October 30, 2017 Weldon McDavid Jr., 50 (Far right) , 12 Weldon McDavid Jr., 50 (Far right) Trial continues for Carlsbad woman accused of hiring man to murder estranged husband Weldon McDavid Jr., 50 (Far right) Weldon McDavid Jr., 50 (Far right) Show Caption Hide Caption October 30, 2017 VISTA (CNS) — The trial of a Carlsbad woman and her gun instructor, accused of attempted murder for hire, continued into its second day Tuesday. Diana Lovejoy, 44, and the alleged gunman, Weldon McDavid Jr., 50, are each charged with attempted first-degree murder and conspiracy to commit murder.Related Link: Woman allegedly plotted hit on estranged husband in CarlsbadDeputy District Attorney Jodi Breton told jurors in her opening statement that Lovejoy’s estranged husband, Greg Mulvihill, got a call just before 11 p.m on Sept. 1, 2016, from a person claiming to be a private investigator, who supposedly had information on his estranged wife.The caller instructed Mulvihill to go to a dirt road near Avenida Soledad and Rancho Santa Fe Road, where he could pick up a package containing materials pertaining to Lovejoy, according to the prosecutor. She said Mulvihill and a co-worker, Jason Kovach, drove to the area and used a flashlight to look for a package taped to a power pole.Kovach, who was called as a witness, testified that he armed with an aluminum baseball bat that Mulvihill had given him. They saw some rustling in the bushes, then noticed what looked like a someone lying in a prone position with a rifle pointed at them, he said.”Greg yelled `gun!”’ Kovach testified.The witness said shots rang out and he and Mulvihill took off running back toward their car.As Mulvihill drove away, he told Kovach, “I think I’ve been shot,” the witness testified.Kovach called 911 and told a dispatcher, “My friend has just been shot. He’s bleeding pretty bad.”The witness said a gunman was hiding in the bushes and was wearing camouflage.Related Link: Judge to hear pretrial motions against woman, gunman accused in plot to murder her husbandAccording to Breton, Mulvihill was shot under the armpit but thought he took a bullet in the back.The prosecutor said Mulvihill was trying to reclaim his life after Lovejoy had made claims that he had molested their young son and sexually abused her. The couple had been separated since July 2014 and were in the final stages of completing their divorce, Breton said.Carlsbad police determined that the phone used to call Mulvihill was purchased by Lovejoy, and feces found in the bushes at the scene of the shooting were traced to McDavid, the prosecutor said.Investigators found a multitude of guns and a silencer in McDavid’s garage, and a “blast bag” containing seven spent shell casings, Breton told the jury.The prosecutor said Mulvihill was three weeks away from receiving a $20,000 settlement from Lovejoy as part of the divorce and was set to share custody of their son.McDavid’s attorney, Ricky Crawford, said his client was a trained marksman and former Marine who fired his rifle only after he heard someone yell “I have a gun!””If Weldon McDavid wanted to kill someone with his skill set, he would have done so,” Crawford told the jury. “That was not his intent.”Crawford said Lovejoy — whom he met when she took shooting lessons at a gun range where he worked — told him that she had been trying for years to get someone to do something about her estranged husband allegedly abusing their child.If someone showed up to a meeting to get information about the situation, he must be guilty, McDavid thought, according to his attorney.”He (McDavid) was never asked to perform a violent act,” Crawford said. “He never agreed to do so. He was never offered money.”Brad Patton, Lovejoy’s attorney, said his client had taken out a temporary restraining order against Mulvihill because she claimed he was abusing her and their son.After the restraining order elapsed, Lovejoy still had concerns about her estranged husband but “at no time was there a discussion/conspiracy to murder her husband,” Patton told the jury.McDavid faces 50 years to life behind bars if convicted, and Lovejoy could be sentenced to 25 years to life if she’s found guilty. Show Caption Hide Caption Show Caption Hide Caption Categories: Local San Diego News FacebookTwitterlast_img

How to call an Azure function from an ASPNET Core MVC application

first_img If everything worked out right, you will see the following page when you run your ASP.NET Core MVC application. The login form is obviously totally non-functional: However, the login form is totally responsive. If you had to reduce the size of your browser window, you will see the form scale as your browser size reduces. This is what you want. If you want to explore the responsive design offered by Bootstrap, head on over to https://getbootstrap.com/ and go through the examples in the documentation: The next thing we want to do is hook this login form up to our controller and call the Azure Function we created to validate the email address we entered. Let’s look at doing that next. Hooking it all up To simplify things, we will be creating a model to pass to our controller: Create a new class in the Models folder of your application called LoginModel and click on the Add button: 2. Your project should now look as follows. You will see the model added to the Models folder: The next thing we want to do is add some code to our model to represent the fields on our login form. Add two properties called Email and Password: namespace CoreMailValidation.Models { public class LoginModel { public string Email { get; set; } public string Password { get; set; } } } Back in the Index.cshtml view, add the model declaration to the top of the page. This makes the model available for use in our view. Take care to specify the correct namespace where the model exists: @model CoreMailValidation.Models.LoginModel @{ ViewData[“Title”] = “Login Page”; } The next portion of code needs to be written in the HomeController.cs file. Currently, it should only have an action called Index(): public IActionResult Index() { return View(); } Add a new async function called ValidateEmail that will use the base URL and parameter string of the Azure Function URL we copied earlier and call it using an HTTP request. I will not go into much detail here, as I believe the code to be pretty straightforward. All we are doing is calling the Azure Function using the URL we copied earlier and reading the return data: private async Task ValidateEmail(string emailToValidate) { string azureBaseUrl = “https://core-mail- validation.azurewebsites.net/api/HttpTriggerCSharp1″; string urlQueryStringParams = $”? code=/IS4OJ3T46quiRzUJTxaGFenTeIVXyyOdtBFGasW9dUZ0snmoQfWoQ ==&email={emailToValidate}”; In this tutorial, we’ll learn how to call an Azure Function from an ASP.NET Core MVC application. This article is an extract from the book C# 7 and .NET Core Blueprints, authored by Dirk Strauss and Jas Rademeyer. This book is a step-by-step guide that will teach you essential .NET Core and C# concepts with the help of real-world projects. We will get started with creating an ASP.NET Core MVC application that will call our Azure Function to validate an email address entered into a login screen of the application: This application does no authentication at all. All it is doing is validating the email address entered. ASP.NET Core MVC authentication is a totally different topic and not the focus of this post. In Visual Studio 2017, create a new project and select ASP.NET Core Web Application from the project templates. Click on the OK button to create the project. This is shown in the following screenshot: On the next screen, ensure that .NET Core and ASP.NET Core 2.0 is selected from the drop-down options on the form. Select Web Application (Model-View-Controller) as the type of application to create. Don’t bother with any kind of authentication or enabling Docker support. Just click on the OK button to create your project: After your project is created, you will see the familiar project structure in the Solution Explorer of Visual Studio: Creating the login form For this next part, we can create a plain and simple vanilla login form. For a little bit of fun, let’s spice things up a bit. Have a look on the internet for some free login form templates: I decided to use a site called colorlib that provided 50 free HTML5 and CSS3 login forms in one of their recent blog posts. The URL to the article is: https://colorlib.com/wp/html5-and-css3-login-forms/. I decided to use Login Form 1 by Colorlib from their site. Download the template to your computer and extract the ZIP file. Inside the extracted ZIP file, you will see that we have several folders. Copy all the folders in this extracted ZIP file (leave the index.html file as we will use this in a minute): Next, go to the solution for your Visual Studio application. In the wwwroot folder, move or delete the contents and paste the folders from the extracted ZIP file into the wwwroot folder of your ASP.NET Core MVC application. Your wwwroot folder should now look as follows: 4. Back in Visual Studio, you will see the folders when you expand the wwwroot node in the CoreMailValidation project. 5. I also want to focus your attention to the Index.cshtml and _Layout.cshtml files. We will be modifying these files next: Open the Index.cshtml file and remove all the markup (except the section in the curly brackets) from this file. Paste the HTML markup from the index.html file from the ZIP file we extracted earlier. Do not copy the all the markup from the index.html file. Only copy the markup inside the tags. Your Index.cshtml file should now look as follows: @{ ViewData[“Title”] = “Login Page”; } @ViewData[“Title”] – CoreMailValidation @RenderBody()© 2018 – CoreMailValidation using (HttpClient client = new HttpClient()) { using (HttpResponseMessage res = await client.GetAsync( $”{azureBaseUrl}{urlQueryStringParams}”)) { using (HttpContent content = res.Content) { string data = await content.ReadAsStringAsync(); if (data != null) { return data; } else return “”; } } } } Create another public async action called ValidateLogin. Inside the action, check to see if the ModelState is valid before continuing. For a nice explanation of what ModelState is, have a look at the following article—https://www.exceptionnotfound.net/asp-net-mvc-demystified-modelstate/. We then do an await on the ValidateEmail function, and if the return data contains the word false, we know that the email validation failed. A failure message is then passed to the TempData property on the controller. The TempData property is a place to store data until it is read. It is exposed on the controller by ASP.NET Core MVC. The TempData property uses a cookie-based provider by default in ASP.NET Core 2.0 to store the data. To examine data inside the TempData property without deleting it, you can use the Keep and Peek methods. To read more on TempData, see the Microsoft documentation here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/app-state?tabs=aspnetcore2x. If the email validation passed, then we know that the email address is valid and we can do something else. Here, we are simply just saying that the user is logged in. In reality, we will perform some sort of authentication here and then route to the correct controller. So now you know how to call an Azure Function from an ASP.NET Core application. If you found this tutorial helpful and you’d like to learn more, go ahead and pick up the book C# 7 and .NET Core Blueprints. Read Next What is ASP.NET Core? Why ASP.NET makes building apps for mobile and web easy How to dockerize an ASP.NET Core applicationlast_img read more