Gutenberg ServerSideRender is deprecated, how to work with new wp.serverSideRender component?

While working with ServerSideRender wordpress gutenberg component, I am seeing the following notice. wp.components.ServerSideRender is deprecated. Please use wp.serverSideRender instead. Here is my test code: const { __ } = wp.i18n; const { registerBlockType } = wp.blocks; const { Fragment } = wp.element; const { InspectorControls } = wp.blockEditor; const { PanelBody, SelectControl, ServerSideRender, TextControl,…

Details

ssh ProxyCommand not working in centos but works for Ubuntu

This is my ssh config file in ubuntu located ~/.ssh/config Host gitlab.com User git ProxyCommand nc -x 127.0.0.1:1080 %h %p and it works but the same config in centos doesn’t work. and this is the result: git pull Ncat: Connection timed out. ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository.…

Details

How to make Localization update believe that the translation of a local .po-file not up to date?

I use a local development branch of a contributed project on several sites. The strings that need translation does not exist on https://localize.drupal.org/ (yet), so I cannot use it to translate the project. Checking l10n update status produces: $ drush l10n-update-status … my_project (7.x-1.x) Up to date … Now, how do I convince Localization update…

Details

Sort records on multiple columns and conditions

I have the below table, that stores the rank of person participating in respective events. event_running and event_jumping are the events and the ranks stored. CREATE TABLE `ranks` ( `id` int(11) NOT NULL, `personid` int(11) NOT NULL, `event_running` int(11) DEFAULT NULL, `event_longjump` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; Sample data INSERT INTO `ranks`…

Details

When I enable SSL on apache2 ubuntu server both http and https does not work

I am trying to enable SSL for my webserver. However, when I enable ssl, http stops working and https does not start working. I have followed the following guide: https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 There is no firewall activated on the server. This is the default-ssl.conf file: <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerAdmin admin@MyWebSit.com ServerName MyWebSite.com ServerAlias www.MyWebSite.com DocumentRoot /var/www/html…

Details

Updated: How to checkmark select items from selection List by clicking Tableview cell in swift

I am trying to retrieve selected item in tableView from ViewController which has a list from sqlite like checkmark selection. My FirstViewController have tableView and on clicking selective cell it opens ViewController to select items. Once selection has been made I have to reload FirstViewController tableview. Actually I am trying to do but not accurately…

Details