Categories
Mastering Development

Java Student management program

So I’m trying to understand a "student management" application example where I’ve got classes like Student, Course, Section, Registrar and TerminalPrinter. The Main class is where the main do, while loop but I’ve run into a snag trying to implement one last thing. Up until this point the functionality is pretty basic, it uses ArrayLists […]

Categories
Mastering Development

SQL Server: Store Procedure throwing Dead Lock when my same SP instance is getting call by many users

In SQL server i write store procedure, function etc but i do not good knowledge on locking and isolation. i have store procedure in sql server where i did all my delete and insert with in BEGIN TRAN and COMMIT TRAN. with in BEGIN TRAN and COMMIT TRAN i am first deleting data from few […]

Categories
Mastering Development

Evaluate arguments passed to a macro that generates functions in lisp

I’m trying to make a macro that defines an accessor function for every config based on the config object created by py-configparser: (defmacro make-config-accessor (config section option) ; create an upper case function name then intern (let* ((fun-name (intern (string-upcase (str:replace-all "_" "-" (str:concat "get-" option)))))) `(defun ,fun-name (config) (py-configparser:get-option config ,section ,option)))) It works […]

Categories
Mastering Development

Unable to make use of the insert statement [closed]

$query = mysqli_query($con, "INSERT INTO staff_table VALUES (’45’,’$fname’,’$mname’,’$lname’,’$parent_mobile’,’$address’,’$dob’,’$username’,’$term’,’$section’,’$level’,’$date’,”,”,”)");

Categories
Linux Mastering Development Ubuntu

Modifying keyboard layout in ubuntu 20

My hp notebook has a german keyboard that seems to be a relabled version of a us keyboard. Because of this it lacks the <>| key that is usually located right of l-shift on german keyboards. This is obviously very annoying and so far I haven’t been able to find an alternative key kombination that […]

Categories
CMS Mastering Development Wordpress

Use same slug base for Custom Post Type posts, and multiple taxonomy terms

I have done a lot of digging the past few days, and can come close, but not exactly what I need. I’m trying to alter a custom taxonomy/CPT permalink structure to all use the same slug base: /resources/. CPT: ‘resources’ TAX1, non-hierarchical: ‘type’ TAX2, hierarchical: ‘section’ I need the structure to look like this: /resources/ […]

Categories
CMS Drupal Mastering Development

Nested sidebar module [closed]

Is there a Drupal module that will display a sidebar like the one on https://vulkan-tutorial.com? I have a website that has a lot of content that is nested like a textbook or legal codex. Think chapter, section, subsection, sub-subsection, etc. I’d like to be able to display this neatly as a sidebar. Key features include […]

Categories
Mastering Development

How can I remove the blank gap between the footer and the bottom of the page?

I am currently stuck on a problem. There is a gap between the footer and the bottom of the page. Some information and things I tried and didn’t work out: body and html has 0 margin and 0 padding Change the size of the body trying to change the position of the footer probably some […]

Categories
Mastering Development

How to use group by statement on multiple fields in sql?

I have the following tables: StudentProfile in which I have fields RollNumber, Major StudentEnrollment in which I have fields RollNumber, CourseCode, Section, Semester DepartmentFees in which I have fields DepartmentName, Semester, Fees What I’m trying to do it to find the fees a student has to pay in a particular semester. The problem is the […]

Categories
Mastering Development

Postgresql query returns string values between quotation marks ” if it contains any space character or without quotation if it had no space char

so I got this strange issue and I have no idea what’s causing it. We are using Charts.js in PHP to plot some charts. We store the arguments needed to create a chart into a PSQL table to load when needed. My issue lies with the title, group and label parameters which are all string […]