Categories
CMS Drupal Mastering Development

Auuopopulate a content type with user information

I have a custom content type. I have created users using Add users. I need to create a page with a search box for the username. After selecting the username, I need to be directed to the content type with user data auto-populated. The user data is already added with Add user. How do I […]

Categories
Game Creation Mastering Development

Can I set the unity camera to have the same position in a real world?

I have a problem about setting the camera in the unity to have the same extrinsic parameters as my real world camera to the origin. So let’s me describe my problem step by step. I have a camera in a real world and Its extrinsic to an aruco plane was calculated. So I use the […]

Categories
Linux Mastering Development

lxde desktop non-functional in ubuntu 20.04 but works in 19.10

I’m trying to install lxde desktop on a remote Ubuntu 20.04 server and VNC in. When I use a ubuntu 19.10 server I have no problem: #USING 19.10 sudo apt-get install -y lxde xorg lxdm –no-install-recommends #or sudo apt-get install -y lxde xorg lxdm sudo reboot Using VNC it works just fine to access the […]

Categories
Mastering Development

Boostrap container overflow and not responsive (always displayed two columns)

I have created a form with two columns. But when I decrease the browser width, two columns are preserved even when their content overflows. I have tried to change the code to plain DIV with container class, specify cols count, set width but it resists. Here is the codepen: https://codesandbox.io/s/stoic-goldberg-4ugt6 and the source code of […]

Categories
Mastering Development

Has anyone figured out how to program the STWBC-MC module by STM?

The documents say that we can flash custom firmware on this module but it doesn’t say how. I am unable to locate any build tool chain either. I tried raising a customer support ticket with STM and they don’t seem to have any answers. Has anyone used this module in any of their products?

Categories
Mastering Development

CORS Policy blocking a redirect from one method, but not another method

I’m getting an odd CORS problem with my .NET Core 3.0 project where only one page that is being redirected is throwing the following error: Access to XMLHttpRequest at ‘http://localhost:4200/#/passwordchanged‘ (redirected from ‘http://localhost:5000/api/auth/resetpassword‘) from origin ‘http://localhost:4200‘ has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response. When […]

Categories
Mastering Development

SQL: convert military time to standard time

I’m creating a SQL report that tracks agent login and logout times. The request is to add a threshold to login time to track agents coming in late. I’ve separated the DATETIME field to be able to add the threshold, but now I only get military time instead of standard time. Here’s my query: SELECT […]

Categories
Mastering Development

How to check build variant inside the module’s build.gradle

I have the following modules in my project: MyProject – app // the usual module that contains the java codes – theLibraryModule // this is the module in question – theLibraryDebug.aar – theLibraryRelease.aar – build.gradle The theLibraryModule‘s build.gradle is below: configurations.maybeCreate(“default”) artifacts.add(“default”, file(‘theLibraryDebug.aar’)) Is there a way to check the build variant (debug/release) I am […]

Categories
Mastering Development

Implement JWT Bearer authorization in mvc on startup.cs

I’m trying to implement JWT Bearer authorization in my ASP.NET MVC application which is in requests data from my api. I’ve implemented Swagger and figured out how to authorize using Bearer tokens in my api there but when trying to connect through my client (ASP.NET MVC) I keep bouncing on 401 not authorized. My api […]

Categories
Mastering Development

Python: using regex and while loop to break out paragraphs in a PDF

I have a pdf file that has 82 paragraphs, my goal is to use python to break each paragraph into its own block of text. I have already extracted the text using PyPDF2. The paragraphs all begin with a number and a period (1. 42. 76. etc.). It is working for most of the paragraphs […]