Andrew Yang wants to pay everyone $ 1,000 a month because automation replaces jobs. Why is there no more support?

It does not make any sense to me that if automation dramatically reduced labor costs, the price of goods would fall, so you would not work as much or earn as much to buy the same amount of goods. need $ 1000 more?
Let the market work as expected, supply and demand will rebalance to account for the abundant supply of goods and labor, and maybe if all taxes were not so high, there would be more investment and more jobs to remove around.

Sources)
The government should be abolished.

(tagsToTranslate) yahoo (t) answers (t) questions (t) Politics & Government (t) Politics

Installing a zip rom via TWRP replaces the recovery at the installation location

I formatted my Oneplus 6t and I was able to install TWRP, but when I install the zip for LineageOS, instead of installing it as an operating system it simply replaces TWRP recovery with Lineage, and I still can not boot the system.
log.txt

Deploying using composer that replaces an old installation, but poses problems with drush

I took a Drupal project that had been created some time ago by downloading a tar file and I recreated it on a local disk via composing with the Drupal project.

The recommended files have been entrusted to git (that is, no modules provided, etc.) and cloned on the server. The installation of the composer was clean.

At the time of running drush sqlc to load the database, it became apparent that there was a problem – drush error message below. I think the problem is that drush was already installed.

which drush outputs /home/me/.composer/vendor/bin/drush.

The error message when I try to run drush sqlc or drush status of the project, even with --root, is the next.

PHP Warning:  require(/var/www/html/drupal/d8/vendor/composer/../../load.environment.php): failed to open stream: No such file or directory in /var/www/html/drupal/d8/vendor/composer/autoload_real.php on line 70
PHP Stack trace:
PHP   1. {main}() /var/www/html/drupal/d8/vendor/drush/drush/drush:0
PHP   2. require() /var/www/html/drupal/d8/vendor/drush/drush/drush:4
PHP   3. include_once() /var/www/html/drupal/d8/vendor/drush/drush/drush.php:56
PHP   4. ComposerAutoloaderInit6220513682b217c143f76d07878222a3::getLoader() /var/www/html/drupal/d8/vendor/autoload.php:7
PHP   5. composerRequire6220513682b217c143f76d07878222a3() /var/www/html/drupal/d8/vendor/composer/autoload_real.php:60
PHP Fatal error:  require(): Failed opening required '/var/www/html/drupal/d8/vendor/composer/../../load.environment.php' (include_path='/var/www/html/drupal/d8/vendor/pear/pear_exception:/var/www/html/drupal/d8/vendor/pear/console_getopt:/var/www/html/drupal/d8/vendor/pear/pear-core-minimal/src:/var/www/html/drupal/d8/vendor/pear/archive_tar:.:/usr/share/php') in /var/www/html/drupal/d8/vendor/composer/autoload_real.php on line 70
PHP Stack trace:
PHP   1. {main}() /var/www/html/drupal/d8/vendor/drush/drush/drush:0
PHP   2. require() /var/www/html/drupal/d8/vendor/drush/drush/drush:4
PHP   3. include_once() /var/www/html/drupal/d8/vendor/drush/drush/drush.php:56
PHP   4. ComposerAutoloaderInit6220513682b217c143f76d07878222a3::getLoader() /var/www/html/drupal/d8/vendor/autoload.php:7
PHP   5. composerRequire6220513682b217c143f76d07878222a3() /var/www/html/drupal/d8/vendor/composer/autoload_real.php:60

In addition to drush being both in ~ / .composer / vendor and / vendor, I note that ~ / .composer contains

autoload.php    composer    phpdocumentor   phpunit     symfony
bin     doctrine    phpspec     sebastian

How can I clean this so that the root of the project is the only repository of these files and that Drush can find what he is looking for?

Deploying Drupal using composer that replaces the old-fashioned installation but is problematic with classic drush

I took a Drupal project that had been created some time ago by downloading a tar file and I recreated it on a local disk via composing with the Drupal project.

The recommended files have been entrusted to git (that is, no modules provided, etc.) and cloned on the server. The installation of the composer was clean.

At the time of running drush sqlc to load the database, it became apparent that there was a problem – drush error message below. I think the problem is that drush was already installed.

which drush

returns

/home/me/.composer/vendor/bin/drush

and the error message when trying to drush sqlc or drush status inside the project, even with –root, is as follows:

PHP Warning:  require(/var/www/html/drupal/d8/vendor/composer/../../load.environment.php): failed to open stream: No such file or directory in /var/www/html/drupal/d8/vendor/composer/autoload_real.php on line 70
PHP Stack trace:
PHP   1. {main}() /var/www/html/drupal/d8/vendor/drush/drush/drush:0
PHP   2. require() /var/www/html/drupal/d8/vendor/drush/drush/drush:4
PHP   3. include_once() /var/www/html/drupal/d8/vendor/drush/drush/drush.php:56
PHP   4. ComposerAutoloaderInit6220513682b217c143f76d07878222a3::getLoader() /var/www/html/drupal/d8/vendor/autoload.php:7
PHP   5. composerRequire6220513682b217c143f76d07878222a3() /var/www/html/drupal/d8/vendor/composer/autoload_real.php:60
PHP Fatal error:  require(): Failed opening required '/var/www/html/drupal/d8/vendor/composer/../../load.environment.php' (include_path='/var/www/html/drupal/d8/vendor/pear/pear_exception:/var/www/html/drupal/d8/vendor/pear/console_getopt:/var/www/html/drupal/d8/vendor/pear/pear-core-minimal/src:/var/www/html/drupal/d8/vendor/pear/archive_tar:.:/usr/share/php') in /var/www/html/drupal/d8/vendor/composer/autoload_real.php on line 70
PHP Stack trace:
PHP   1. {main}() /var/www/html/drupal/d8/vendor/drush/drush/drush:0
PHP   2. require() /var/www/html/drupal/d8/vendor/drush/drush/drush:4
PHP   3. include_once() /var/www/html/drupal/d8/vendor/drush/drush/drush.php:56
PHP   4. ComposerAutoloaderInit6220513682b217c143f76d07878222a3::getLoader() /var/www/html/drupal/d8/vendor/autoload.php:7
PHP   5. composerRequire6220513682b217c143f76d07878222a3() /var/www/html/drupal/d8/vendor/composer/autoload_real.php:60

In addition to drush being both in ~ / .composer / vendor and / vendor, I note that ~ / .composer contains

autoload.php    composer    phpdocumentor   phpunit     symfony
bin     doctrine    phpspec     sebastian

How can I clean this so that the root of the project is the only repository for these files and that the drush command can find what it is looking for?

replacement – Identifies the complex expression and replaces

I have trouble finding a way (if there is one) to analyze an expression, identify a complex pattern and replace it with another element. I think it will be easier to explain my problem with the code.

I have these expressions for mx and my:

mz = MZ(x, y, t);
ang = ANG(t);
mzX = D(mz, x);
mzY = D(mz, y);
mod = Sqrt((1 - mz^2)/(mzX^2 + mzY^2));
mx = mod (Cos(ang) mzX + Sin(ang) mzY);
my = mod (-Sin(ang) mzX + Cos(ang) mzY);

I calculate the derivative of mx with respect to t, which gives a very complicated expression:

deriv = D(mx, t)

enter the description of the image here

I want to identify the parts corresponding to the definitions of mx and my. This may involve grouping terms, distributing products, and so on. And then, I want to replace these parts by "mx" and "my" to get a simpler expression to the eye. Note that FullSimplify does not reach what I need.

Can someone help me better?

Which other library replaces Conio?

I understand that this library should be avoided as it is not standard.
What else do we use instead that has equivalent functions?

mysql – My subquery replaces an extraction table column

I've established a list of positions where, besides the information about the positions, I need information from the house that created them.

I made the following table query posts and casas:

SELECT * FROM posts, (SELECT * FROM casas) AS sqlcasas 
WHERE casa = $c_id AND casa = sqlcasas.id

but this query overwrites the column id of the table posts at id of casa. For example:

(
    {
        "id": "9",
        "casa": "9",
        "midia": "/1564714715.png",
        "texto": "...",
        "data": "...",
        "likes": "26",
        "nome": "...",
        "endereco": "...",
        "cidade": "...",
        "telefone": "...",
        "logo": "/1564714696.png",
        "site": "...",
        "facebook": "...",
        "instagram": "..."
    }
)

And on my site, this endpoint must return both the home identifier and the message identifier.

php – When I create a new custom publication type, it replaces the old publication type.

I've created a plugin that will create a custom message type. When I create a custom article type, it replaces the old one.

* /
$ new_input = array ();

CustomPostComparison class
{
/ **
* Contains values ​​to use in callback fields
* /
private options $;

/ **
* Start
* /
public service __construct ()
{
add_action ('admin_menu', array ($ this, & # 39; add_plugin_page & # 39;));
add_action (& # 39; admin_init & # 39;) array ($ this, & # 39; page_init & # 39;));
add_action (& # 39; init & # 39 ;, array ($ this, & # 39; custom_post_type_register & # 39;));

}
public service custom_post_type_register ()
{
$ cpts = get_option (& # 39; my_name_option);
// print_r ($ cpts);
// echo $ cpts['supports'];exit;
if (! empty ($ cpts)) {

$ labels = array (
& # 39; name & # 39; => _x ($ cpts['post_type'], & # 39; Name of the message type & # 39;),
& # 39; singular_name & # 39; => _x ($ cpts['singular_label'], & # 39; Singular name of the message type & # 39;),
& # 39; nom_du_menu & # 39; => $ cpts['menu_name'] ? $ cpts['menu_name'] : $ cpts['plural_label'],
& # 39; name_admin_bar & # 39; => __ ($ cpts['post_type'], & # 39; text_domain & # 39;),
& # 39; archives & # 39; => __ ($ cpts['archives'], & # 39; text_domain & # 39;),
& # 39; parent_item_colon & # 39; => __ ($ cpts['parent_item_colon'], & # 39; text_domain & # 39;),
& # 39; all_items & # 39; => __ ($ cpts['all_items'] ? $ cpts['all_items'] : "All". $ Cpts['plural_label'] )
& # 39; add_new_item & # 39; => __ ($ cpts['add_new_item'], & # 39; text_domain & # 39;),
& # 39; add_new & # 39; => _x ($ cpts['add_new'] ? $ cpts['add_new'] : Add new, strtolower ($ cpts['singular_label'] )),
& # 39; new_item & # 39; => __ ($ cpts['new_item'], & # 39; text_domain & # 39;),
& # 39; edit_item & # 39; => __ ($ cpts['edit_item'], & # 39; text_domain & # 39;),
& # 39; view_items & # 39; => __ (! empty ($ cpts['view_item'] )? $ cpts['view_item'] : "See". $ Cpts['singular_label'] )
& # 39; search_items & # 39; => __ ($ cpts['search_items'], & # 39; text_domain & # 39;),
& # 39; not_found & # 39; => __ ($ cpts['not_found'], & # 39; text_domain & # 39;),
& # 39; not_found_in_trash & # 39; => __ ($ cpts['not_found_in_trash'], & # 39; text_domain & # 39;),
& # 39; featured_image & # 39; => __ ($ cpts['featured_image'], & # 39; text_domain & # 39;),
& # 39; set_featured_image & # 39; => __ ($ cpts['set_featured_image'], & # 39; text_domain & # 39;),
& # 39; remove_featured_image & # 39; => __ ($ cpts['remove_featured_image'], & # 39; text_domain & # 39;),
& # 39; use_featured_image & # 39; => __ ($ cpts['use_featured_image'], & # 39; text_domain & # 39;),
& # 39; insert_into_item & # 39; => __ ($ cpts['insert_into_item'], & # 39; text_domain & # 39;),
& # 39; upload_to_this_item & # 39; => __ ($ cpts['uploaded_to_this_item'], & # 39; text_domain & # 39;),
& # 39; ITEMS_LIST & # 39; => __ ($ cpts['items_list'], & # 39; text_domain & # 39;),
& # 39; items_list_navigation & # 39; => __ ($ cpts['items_list_navigation'], & # 39; text_domain & # 39;),
& # 39; filter_items_list & # 39; => __ ($ cpts['filter_items_list'], & # 39; text_domain & # 39;),
)
$ args = array (
& # 39; Label & # 39; => __ ($ cpts['post_type'], & # 39; text_domain & # 39;),
& # 39; description & # 39; => __ ($ cpts['post_description'], & # 39; text_domain & # 39;),
& # 39; labels & # 39; => $ labels,
& # 39; supports & # 39; => array (& # 39; title & # 39 ;, & # 39; editor & # 39;),
& # 39; Taxonomies & # 39; => array (& # 39; category & # 39 ;, & # 39; post_tag & # 39;),
& # 39; hierarchical & # 39; => $ cpts['hierarchical'] == & # 39; fake & # 39; false true,
& # 39; public & # 39; => $ cpts['public'] == & # 39; fake & # 39; false true,
& # 39; show_ui & # 39; => $ cpts['show_ui'] == & # 39; fake & # 39; false true,
& # 39; show_in_menu & # 39; => $ cpts['show_in_menu'] == & # 39; fake & # 39; false true,
& # 39; menu_position & # 39; => __ ($ cpts['menu_position'], & # 39; text_domain & # 39;),
& # 39; has_archive & # 39; => $ cpts['has_archive'] == & # 39; fake & # 39; false true,
& # 39; bility_type & # 39; => & # 39; post & # 39;
& # 39; show_in_rest_api & # 39; =>! empty ($ cpts['show_in_rest_api'])? $ cpts['show_in_rest_api'] : wrong,
)
if (post_type_exists ($ cpts['post_type'] )) {
echo & # 39; Message type already exists & # 39 ;;
}
other{
register_post_type ($ cpts['post_type'], $ args);
}


}
}

/ **
* Add an options page
* /
public function add_plugin_page ()
{
// This page will be under "Settings"
add_options_page (
"Admin Settings",
& # 39; Post Type Creater & # 39;
& # 39; & # 39 ;, manage_options
& # 39; my-setting admin & # 39 ;,
array ($ this, create_admin_page & # 39;)
)
}
/ **
* Reminder of the Options page
* /
public function create_admin_page ()
{
// set the property of the class
$ this-> options = get_option (my_option_name);
?>
    
Custom post type creator
Type of position:
The description:
Singular label:
Plural label:
hierarchical:
To archives:
Supports: title
Editor
Author
Thumbnail
Extract
Trackbacks
Custom fields
comments
revisions
Page Attributes
Post-formats
Add a new:
Add a new object:
Edit the article:
New article:
All items:
See the articles:
Research Articles:
Not found:
Not found in the trash:
Two-point parent article:
Menu name:
The selected image:
Set the selected image:
Delete the selected image:
Use the featured image:
Archives:
Insert in the article:
Downloaded in this article:
Filter articles:
Navigation in the list of articles:
List of articles:
public:
Show the user interface:
Show in the navigation menus:
Show in the menu:
Position of the menu:
Menu icon:
Type of capacity:
taxonomies: Category
Post_tag
Product_Cat
Product_tag
Product_Shipping_Class
Rewrite:
With before:
Rewrite the slug:
Show in the REST API:
<? php } public service page_init () { register_setting ( & # 39; my_option_group , group of options & # 39; my_option_name & # 39 ;, // option name array ($ this, # sanitize) // Sanitize ) } / ** * Disinfect each setting field as needed * * @param array $ input Contains all parameter fields as array keys. * / public service sanitize ($ input) { $ new_input = array (); // echo $ input['post_type'];exit; $ field = array (& # 39; post_type & # 39 ;, & quot; post_description & # 39; & # 39; hierarchical & # 39 ;, & quot; has_archive & # 39 ;, & quot ;, & quot ;, & quot ;, add_new & # 39 ;, add_new_item & # 39 ;, & # 39; edit_item & , New_item, all_items, view_items, search_items, not_found & # 39; , Not_found_in_trash, "parent_item_colon", "menu_name", "selected_image", "set_featured_image & # 39; , "Remove_featured_image", "remove_featured_image", "use_featured_image",, "insert_into_item", upload_to_this_item & # 39; 39,, & # 39; filter_items_list & # 39 ;, items_list_navigation & # 39 ;, items_list & # 39; public & # 39 ;, & # 39; show_ui & # 39; & # 39; 39; show_in_nav_menus', 'show_in_menu', 'menu_position', 'show_in', 'taxonomies', & rewrite & # 39; , With_front, & rewrite_slug & # 39; & # 39; show_in_rest_api & # 39;); foreach ($ as $ value field) { if (isset ($ input[$value] )) { $ new_input[$value] = sanitize_text_field ($ input[$value] ) } } return $ new_input; }

}
$ my_settings_page = new CustomPostComparison ();

php – Replaces the header with a large image on the homepage only, with the help of the Genesis child theme

After looking at the Show TwentyEleven header image only on the home page, replace the home page with an image link in the menu. custom header, etc., I do not see what I'm trying to do.

We want to replace the header only on the home page, by a much larger image. FYI I am not the designer and we had a trainee using a lot of plugins to edit the sidebars and build pages, so this is not me LOL. I prefer code-based solutions, not plugins.

THE QUESTION IS: I have this code in the Genesis child theme (Outreach Pro, also out of my control) front-page.php:

/ ** added by jim on 06/28/19 for https://wpsites.net/web-design/remove-header/
removes the header from the homepage (this file) of * /
remove_action (& # 39; genesis_header & # 39;; & # 39; genesis_header_markup_open & # 39 ;, 5);
remove_action (& # 39; genesis_header & # 39 ;, & quot; genesis_do_header & # 39;);
remove_action (& # 39; genesis_header & # 39;; & # 39; genesis_header_markup_close & # 39 ;, 15);

This successfully deleted the header, but now it seems that I can not use the after_header type code to set my image. Instead, I try to use a :: before in the navigation menu in CSS like this:

/ ** jim customizations in july 2019 for the big picture Bob Gray replacing the header of the homepage only * /
.nav-primary: before {
content: url (/images/robert-c-gray-banner-maskbob-sharpen.jpg);
padding-right: 6px;
}

But that does not show up and the inspector does not show it either.

Is the ::before on the nav-primary selector a good approach? (I had the idea here.) FWIW I will also need to place some text on this image.

Thank you for any advice. Here is the page I'm working on (test page) and here's what another page looks like with the header. Any suggestions to improve the question are welcome!

replacement – Replaces at given levels, but ignores subexpressions with specified heads

I implements a function tacite1 who builds a pure function by applying all symbolher #. For example.

tacite1[IntegerPartitions[Max, Length/2, Select[Most, # < 10&]]](* IntegerPartitions[Max[#], Length[#]/ 2, select[More[Bridge[Plus[Most[#], # <10 &]]& *)

However, I also need to be able to escape symbols, for example with a head tacit Verbatim, so that tacite1 do not enter expressions with head tacit Verbatim. (May be Compose and other higher order functions should automatically be excluded too.)

tacite1[SortBy[Most, tacitVerbatim[ Abs @* Sin]]](* Sort by[More[Bridge[Plus[Most[#], Abs @ * Sin]& *)

I've tried the answer to How to replace everything except in the specified heads, but Replaces all between Heads by default and tries to replace the IntegerPartitions head with IntegerPartitions[#]. I also need to specify levels to keep the A function to be replaced.

Replace examines the expressions from deep to shallow, so the stuff that keeps Replaces all on some expressions does not work.

I'm thinking of manually looking for the expression tree, but is there a more elegant idea?