Categories
Mastering Development

R Shiny SelectizeInput: Passing values from froped choices not working

Following the answers given in this link R shiny selectInput: how to search group name/label , I created a Shiny app exemplified below: library(shiny) library(tidyverse) library(sqldf) library(DT) library(stringr) df <- data.frame(empName = c("Jon", "Bill", "Maria", "Dan", "Ken", "Fay"), empID = c("J111", "B222", "M333", "D444", "K555", "F666"), empAge = c(23, 41, 32, 28, 35, 38), empSalary […]

Categories
Mastering Development

Laravel Eloquent request has no quotes in request data

I am getting the following error: SQLSTATE[42S22]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name ’employee’. (SQL: insert into [records] ([category_ID], [subcategory_ID], [employee], [fileDate], [notes], [disposalType], [fileType], [employeeSignature], [status]) values (9, 57, test, test, testing functionality, test, test, test, 1)) As you can see there are no quotes around any of the strings in […]

Categories
Mastering Development

Bootstrap style disappearing on refresh only on one page in React app

I am working on a react app with a bootstrap template. So far all my pages work well except for one page. When I click on a link to this page the template loads fine, when I refresh on this page I loose my bootstrap styling. The only thing different about this page from the […]

Categories
Mastering Development

Blazor webassembly with Entity Framework fails with “ContentType is not supported; the supported types are ‘application/json'”

This is a simple CRUD application I am using to learn how this works. I have used Entity Framework before, but know very little about how it works. This app has a database with one table, Employee, with 6 common type columns. I downloaded a working copy of the same app written before System.Text.Json, so […]

Categories
Mastering Development

How to display data from an API on a V-TAB VUETIFY with certain data on each tab

I’m trying to popularize a V-TAB, where each tab will have its specific data according to this image: I want to play the data in the TAB PROFILE with the firstName, lastName, email, phone, etc … and in the TAB SERVICES the data from the array services, these two extracted from this JSON object: [ […]

Categories
Mastering Development

After Successfull Login Attempt the System is redirecting to Login Page Again in ASP.NET CORE

In The Startup.cs at the ‘ConfigureServices’ I am Using services.AddAuthentication(options => { options.DefaultScheme = “Boss”; }) .AddCookie(“Employee”, options => { options.Cookie.Name = “Employee.Says”; options.LoginPath = “/Employees/Login”; }) .AddCookie(“Boss”, options => { options.Cookie.Name = “Boss.Says”; options.LoginPath = “/Boss/Login”; }); Then in the Login Action I have Written this Code [HttpPost] [ValidateAntiForgeryToken] [AllowAnonymous] public async Task<IActionResult> Login([Bind(“Email”, […]

Building application similar to Google G-Suite (using MEAN stack?)

My client is a medium company. They want to develop something like Google G Suite. That is everyone with different role in their company (e.g. End user, Employee, Admin etc) should be able to login with role based access, make attendance, able to share information, communicate using video/audio conference etc. Although G-Suite caters to many […]

Categories
Development

SQL Database ER for blood bank [closed]

I was assigned to design a DB for any organization I chose for the course project. I decided to design a DB for a blood bank. I have to draw ER for my DB, which I decided to have these entities patient, donor, employee, department (transfusion, donation..etc.), bloodstock, and donor pre-exam. Actually, I got stuck […]

Categories
Development

How to use postgresql roles to connect a database?

We saw PostgreSQL roles in class this year. Our teacher told us that it is more secure to use different roles with custom rights for every table or even column if necessary. We have a project in which we have to use PostgreSQL to build a website with restricted access for connected users, who can […]

Categories
Development Linux Ubuntu

Getting this error can anyone please help

this is my adminpanel model class Society(models.Model): society_nme = models.CharField(max_length = 250, null = True) sector = models.CharField(max_length = 250, null = True) city = models.CharField(max_length = 250, null = True) state = models.CharField(max_length = 250, null = True) pincode= models.IntegerField() num_of_towers = models.IntegerField() class SocietyAdmin(models.Model): admin_name = models.CharField(max_length = 250) user_email = models.ForeignKey(MyUser,on_delete=models.CASCADE,related_name=’admin_email’) societyName […]