Categories
Mastering Development

Form on web page?

I’m working on an assignment dealing with forms in HTML and CSS. I’m trying to follow the instructions but my form is coming out really wonky. Any suggestions on how I can fix this? I’d like to learn what I’m doing wrong. HTML body { background-color: #B8DBED; font-family: Arial; } header { background-color: #000033; color: […]

Categories
Mastering Development

Bug or incorrect setting in the Visual Studio Code?

In an HTML file, when I position the cursor at the beginning of element (example <div>), VS CODE select the closing tag correctly (</div>). On the other hand, if I create a PHP file containing HTML this does not happen. If I position myself at the beginning of a tag (example <div>), VS CODE selects […]

Categories
Mastering Development

CSS blur filter on 3D transformed elements

document.querySelector( ‘style’ ).innerHTML += ` hr:nth-of-type( 1 ) { transform: translateZ( calc( var( –mid ) * 1rem ) ); } hr:nth-of-type( 2 ) { transform: translateZ( calc( var( –mid ) * -1rem ) ); } hr:nth-of-type( 3 ) { transform: rotateY( 90deg ) translateZ( calc( var( –mid ) * 1rem ) ); } .rotate_y, .rotate_x, […]

Categories
Mastering Development

CSS blur filter on 3D transformed elements

document.querySelector( ‘style’ ).innerHTML += ` hr:nth-of-type( 1 ) { transform: translateZ( calc( var( –mid ) * 1rem ) ); } hr:nth-of-type( 2 ) { transform: translateZ( calc( var( –mid ) * -1rem ) ); } hr:nth-of-type( 3 ) { transform: rotateY( 90deg ) translateZ( calc( var( –mid ) * 1rem ) ); } .rotate_y, .rotate_x, […]

Categories
Mastering Development

CSS blur filter on 3D transformed elements

document.querySelector( ‘style’ ).innerHTML += ` hr:nth-of-type( 1 ) { transform: translateZ( calc( var( –mid ) * 1rem ) ); } hr:nth-of-type( 2 ) { transform: translateZ( calc( var( –mid ) * -1rem ) ); } hr:nth-of-type( 3 ) { transform: rotateY( 90deg ) translateZ( calc( var( –mid ) * 1rem ) ); } .rotate_y, .rotate_x, […]

Categories
CMS Mastering Development Wordpress

Retrieve all custom field values of a specific custom field metakey as an array, inside WP_Query

I’m building a function into a shortcode to retrieve information relative to a custom post. For the most part, I can retrieve everything I need with the following, despite (probably) not being the most elegant code and a bit long-winded. function gazdept_shortcode($attr){ $a = shortcode_atts( array( ‘posts’ => 1, ‘issue’ => ”, ‘dept’ => ”, […]

Categories
Mastering Development

Jquery UI Sortable items access in multiple container

I setup one demo in jQuery UI sortable and want the below functionality and restriction. I setup 2 container section and column. I have one portal element "Outer" which can be sortable and movable between inner column and section both but the inner portal "Inner" element should be movable only inside the inner column not […]

Categories
Database Development

auto populate common columns of all tables using triggers

I have 4 tables course, section, student, and enrollment. All of them have 4 common columns that I want to auto-populate before insert and update. Before insert trigger gives infinite recursion error, after looking up for a while I found out that using views and instead of trigger can be good solution. Now when I […]

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 […]