Categories
Mastering Development

Video JS in Angular 9 – live video – ‘Can’t resolve videojs’ problem?

I am struggling to get the videojs to work in my angular 9 app. I have viewed all the exisitng stackoverflow posts, applied their solution, looked at different blog posts and github for issues with video js but I still have the ‘Can’t resolve videojs’ problem. I would like it to work in that an […]

Categories
Mastering Development

Duplicate entry for primary key – registration form

I have one simple registraton form with jsp, servlet and mysql. But, I can register only one user, then i got this error: Severe: Message: Duplicate entry ‘1’ for key ‘PRIMARY’. Of course, when I delete that user from database I can create again but just one user. Also, I put auto increment on that […]

Categories
CMS Mastering Development Wordpress

Multiple Select on Gutenberg Sidebar as metakey

I want to show a multiple select element in the sidebar when editing a page in admin, where I can save the selected values in a metakey. Of course also load the selected values upon load of page-edit in admin. I manage to show the list, but I don’t know how to save it i […]

Categories
User Help Web Pro

how to stop htaccess rewrite rule from rewriting all urls

i am having a mod rewrite problem and i am new to htaccess not because i tried to do a mod_rewrite and link i try to open assumes that i am in profile.php heres my code FOR HTACCESS ErrorDocument 404 /404,/ RewriteEngine On RewriteRule ^([a-z\A-Z\0-9\_\-]+)$ profile.php?username=$1 RewriteRule ^([a-z\A-Z\0-9\_\-]+)/$ profile.php?username=$1 I just wanted localhost/qwerty to display […]

Categories
Mastering Development

Resetting the file pointer in JAVA file handling

Hi All I’m pretty new to java and decided to write a voting app and make use of jdbc and file handling. I seem have problems bringing the file pointer back to the starting of the file and upon using mark and reset it returns an error called "Mark Invalid" even though it returns markSupported […]

Categories
CMS Mastering Development Wordpress

Why mu shortcode not working°

I m making a plugin and i need to connect to db for get some values that i will put in the content of new page that will be created. It s strange because this morning it worked and now there is a problem: function mic_keyword_shortcode($atts = [], $content = ”) { try { $base […]

Categories
Mastering Development

Auto scrolling canvas to show off screen tk Entries

I’ve structured this post into four parts, the goal of what I’m trying to achieve, the minimal amount of code to recreate the problem, things I have already tried, and a conclusion. The code provided will look like this. Goal: Using Python Tkinter, set up a canvas to be able to scroll through tk.Entry widgets […]

Categories
Mastering Development

How to Get data in text field dynamically, based on selected dropdown list

I want to get the value of input field dynamically based on previously selected dropdown list. Now in the input box I get some html tags along with the desired value.How can i get only the desired value without the html tags. The following code contain a dynamic dropdown which works perfectly, but the input […]

Categories
Mastering Development

laravel error 1071 key was too long php artisan migrate

I am using Laravel and I have migration with function: public function up() { Schema::create(‘products’, function (Blueprint $table) { $table->increments(‘id’); $table->string(‘title’)->unique(); $table->string(‘slug’)->unique(); $table->string(‘subtitle’); $table->integer(‘price’); $table->text(‘description’); $table->boolean(‘featured’)->default(false); $table->timestamps(); }); } and when i do ‘php artisan migrate’ on my cmd i get error Migration table created successfully. Migrating: 2014_10_12_000000_create_users_table Illuminate\Database\QueryException SQLSTATE[42000]: Syntax error or access violation: […]

Categories
Mastering Development

How to add value to the Mysql table using ajax

I have written a code to insert the values into the database table using ajax. If u see the image below ,the values are appeared in the text boxes and when pressed add areas button, these values must be added to the table. image: From the image, the values of X,Y,W and H are gathered […]