Thursday, March 24, 2022

IntelliJ Git Tab not Showing Local Changes

IntelliJ has moved Local Changes and Shelf to a new separate Commit tool window on the left. If you don't like the new commit workflow, you're not alone.

However, there is a way to switch back to the old behavior and layout. Simply go to:

File --> Settings --> Version Control  --> Commit  ->> 

and untick on Use non-modal commit interface 

Friday, February 19, 2021

Change Direction of the Extended Monitors

Please follow these steps to change the direction of the extended monitors:

  • First, Right-click a blank area on the desktop.
  • Then, Search for "Display settings" in the search box (Find a setting search box).
  • Click on Display Settings.
  • In the Monitor window that opens you should see your two monitors. Find out which is which by clicking Identify Monitors.
  • Click and drag the right-hand monitor to the left or vice versa. (Drag and drop to the left or right).

That should change the positions of the two monitors so that the mouse motions should be the way you want them.

Wednesday, December 23, 2020

Five Star Restaurant Reservations Version 2.2.2 Issue

 Version 2.2.2 has the following issue:

[23-Dec-2020 15:48:53 UTC] PHP Warning:  call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home1/<your_username>/public_html/wp-content/plugins/restaurant-reservations/includes/template-functions.php on line 211


Issue was on the following line on wp-content/plugins/restaurant-reservations/includes/template-functions.php:

call_user_func( $field['callback'], $slug, $field['title'], $field['request_input'], $callback_args );

Temporary Fix:

Replace the plugin files with your old version (Version 2.1.19) in the following directory:

<your_website>\wp-content\plugins\restaurant-reservations


My guess on the issue:

They have added some new fields in the plugin. So, it needs to be fixed. I saw a new "Message" field.




Sunday, December 6, 2020

How to Check PHP Version of Your Website

 First add the following script if not already on your website folder:

#Use the following code to show all the information about PHP.

<?php

phpinfo(); // This would be used to display all of the PHP information available for the installation.

?> 

Once you save the phpinfo.php file, just go to your website homepage url/phpinfo.php:



Sunday, April 19, 2020

Fixed! WordPress database error Unknown character set: 'utf8_unicode_ci' for query

Issue

[19-Apr-2020 14:30:12 UTC] WordPress database error Unknown character set: 'utf8_unicode_ci' for query
CREATE TABLE wp_wc_admin_note_actions (
action_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
note_id BIGINT UNSIGNED NOT NULL,
name varchar(255) NOT NULL,
label varchar(255) NOT NULL,
query longtext NOT NULL,
status varchar(255) NOT NULL,
is_primary boolean DEFAULT 0 NOT NULL,
PRIMARY KEY (action_id),
KEY note_id (note_id)
) DEFAULT CHARACTER SET utf8_unicode_ci made by do_action_ref_array('generate_category_lookup_table'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Admin\CategoryLookup->regenerate, Automattic\WooCommerce\Admin\Install::create_tables, dbDelta

Solution:

Few suggestions on the web were to change the database to following:
SET =utf8 COLLATE = utf8_unicode_ci 

Tuesday, March 31, 2020

VB Script to Simulate Keyboard Keys and Press CapsLock in Every 60 Seconds

Dim objResult
Set objShell = WScript.createObject(“WScript.shell”)

Do While True
    objResult = objShell.sendkeys(“{CAPSLOCK} {CAPSLOCK}”)
     Wscript.Sleep (6000)
Loop


Save as .vbs file.

Saturday, June 1, 2019

Woocommerce WordPress database error Table 'meveekay_****.wp_wc_product_meta_lookup' doesn't exist for query...

I had the following issue on my Wordpress/Woocommerce website:

Woocommerce WordPress database error Table 'meveekay_****.wp_wc_product_meta_lookup' doesn't exist for query...


Error Log:
[10-May-2019 17:21:18 UTC] WordPress database error Table 'meveekay_***.wp_wc_product_meta_lookup' doesn't exist for query SHOW FULL COLUMNS FROM `wp_wc_product_meta_lookup` made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Form_Handler::checkout_action, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Cheque->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_on-hold'), WP_Hook->do_action, WP_Hook->apply_filters, wc_update_total_sales_counts, WC_Data_Store->__call, WC_Product_Data_Store_CPT->update_product_sales, WC_Data_Store_WP->update_lookup_table