nvidia – Ubuntu 18.04 freezes after logging in (dark window and frozen mouse)

I am experiencing an error at the beginning of my Ubuntu session, and I cannot understand what it is.
I tried to boot my HP Pavilion 15 (Windows 10) with a version of Ubuntu 18.04. I installed it with the nomodeset option first and then installed my Nvidia gpu (geforce gtx 1050) by downloading the version of the proponent on the Nvidia website. Then I installed an Nvidia driver using ´´apt-get install Nvidia-driver-440´´. So I have a problem right after logging in to my session, it seems to be with the gnome session but I don't know how to solve it.

Can someone help me please? I am stuck with this problem for a long time.

Thanks for your help

ms office – How to make Word for Mac documents open in a new window by default on my Mac Air?

Can anyone tell me how to set the default value so that when you select a Word document from the Finder it opens in a new window? Currently, it opens in the same window as the existing Word document / s, hiding the following. Yes, I know that I can press the green button to appear in full screen, in which case a new window will open, but I didn't have to do it in the past. It is driving me crazy!

PD: I am using Word for Mac 15.13.3 on a MacBook Air with Sierra 10.12.6

Catalina – How to open the profile management window every time you open Chrome?

Chrome allows multiple people to use Chrome on the same computer, and each profile has its own bookmarks, settings and custom accounts. By default, Chrome opens in the profile used the last time the browser was opened.

I don't want that to happen. I want to see this screen every time I start Chrome

Chrome Profile Selector

It is easy to do on Windows and Linux

How do I do it on my Mac?

c ++ – The GLFW window stops responding when information is requested!

Yes. Your program is waiting for the user to give their opinion before continuing.

The solution to this is to use an asynchronous input.

An example of this in GLFW is to use something like this:

// Set the callback
glfwSetKeyCallback(g_odin.windowManager.g_window, key_callback);
// The function that gets called on key events
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { /* ... do something ... */ }

macos: quick shortcut (er) to open the link in a window or private tab in Safari

Is there a keyboard + click shortcut available in macOS Safari so you can immediately open a link in a private window when you click? I just want to hold down a key (or key combination) and then click and go without using the context menu.

Note: I Do not do means hold down the ⌥ key (option / alt) and select Open Link in New Private Window from the context menu (as answered in this question).

If it is not available by default in macOS, how can I create this solution with Automator or terminal commands (for example, maybe even using defaults write ...)?

you cannot extract the window compress the Zip file using the Drupal extraction function in druapl 8

When I use 7zip software to compress the folder, it works fine when I extract this through drupal code 8. But the same thing when I do it by compressed zip of window s / w does not work for me.

Google Play Store: the pop-up window prevents me from accessing my settings

As much as I try, the pop-up window is preventing my access to any program and the most important thing is my configuration in which I can do forced stop, cache, update, etc. . I'm about to think and I'm considering getting rid of the very expensive Samsung S10

sql server – Transmit non-null value with a window function?

On the SQL server, I often see this as a "stain" and there are blog posts about using a "peculiar update" to do so. But how would you do it with the windows functions? For example, if I have:

name     date   happiness
----     ----   ---------
John     1/3    20
John     1/4    NULL
John     1/5    NULL
John     1/6    NULL
John     1/7    18
Mary     1/2    35
Mary     1/3    NULL
Mary     1/4    -15
Mary     1/6    NULL
Mary     1/7    0

Is there any way to do something like:

SELECT
    (name),
    (date),
    CARRY((happiness)) OVER (PARTITION BY (name) ORDER BY (date))

So that the intermediate results look like this:

name     date   happiness
----     ----   ---------
John     1/3    20
John     1/4    20
John     1/5    20
John     1/6    20
John     1/7    18
Mary     1/2    35
Mary     1/3    35
Mary     1/4    -15
Mary     1/6    -15
Mary     1/7    0

CARRY It is clearly not a real function, I just want that functionality.

plugins – Show custom form in the "Quick view" window in WooCommerce

I use the code, which shows the "Toasting level" check box on the product edition page. When the administrator clicks on this check box, a selection box appears on the page of a single product, allowing the customer to select "Roasting level".

When you select and add a product to the cart, the selected value appears in the cart itself. This value is also shown on the payment page, on the "Thank you" page, in the order, in the email notification and on the order edit page in the administration panel.

Here is the code:

// Show checkbox field
add_action (& # 39; woocommerce_product_options_general_product_data & # 39 ;, & # 39; roast_custom_field_add & # 39;);

roast_custom_field_add () function {
$ global post;

// checkbox
woocommerce_wp_checkbox (
training(
& # 39; id & # 39; => & # 39; _roast_checkbox & # 39 ;,
& # 39; label & # 39; => __ (& # 39; Roasting level & # 39 ;, & # 39; woocommerce & # 39;),
& # 39; description & # 39; => __ (& # 39; Enable toast level & # 39 ;, & # 39; woocommerce & # 39;)
)
);
}

// Save check box field
add_action (& # 39; woocommerce_process_product_meta & # 39 ;, & # 39; roast_custom_field_save & # 39;);

roast_custom_field_save function ($ post_id) {
// Custom product check box field
$ roast_checkbox = isset ($ _ POST (& # 39; _ roast_checkbox & # 39;))? & # 39; yes No & # 39 ;;
update_post_meta ($ post_id, & # 39; _roast_checkbox & # 39 ;, esc_attr ($ roast_checkbox));
}

/ * ------------------------------------------------ ---------------
* Show selection box
-------------------------------------------------- ------------- * /
add_action (& # 39; woocommerce_before_add_to_cart_button & # 39 ;, & # 39; add_roast_custom_field & # 39 ;, 0);
function add_roast_custom_field () {
$ global product;

// If it is a single product page and has "roast_checkbox" enabled, we show the field
if (is_product () && $ product-> get_meta (& # 39; _roast_checkbox & # 39;) === & # 39; yes & # 39;) {

eco & # 39;
& # 39 ;; $ select = woocommerce_form_field (& # 39; roast_custom_options & # 39 ;, array ( & # 39; type & # 39; => & # 39; select & # 39 ;, & # 39; class & # 39; => array (& # 39; my-field-class form-row-wide & # 39;), & # 39; label & # 39; => __ (& # 39; Roast level & # 39;), & # 39; required & # 39; => false, & # 39; return & # 39; => false, & # 39; options & # 39; => matrix ( & # 39; & # 39; => & # 39; Please select & # 39 ;, & # 39; Blue & # 39; => & # 39; Blue & # 39 ;, & # 39; Rare & # 39; => & # 39; Rare & # 39 ;, & # 39; Medium Rare & # 39; => & # 39; Medium Rare & # 39 ;, & # 39; Medium & # 39; => & # 39; Medium & # 39 ;, & # 39; Medium Well & # 39; => & # 39; Medium Well & # 39 ;, & # 39; Well done & # 39; => & # 39; Well done & # 39; ) ), & # 39; & # 39;); echo $ select; eco & # 39;
& # 39 ;; } } / * ------------------------------------------------ --------------- * Add as custom cart item data -------------------------------------------------- ------------- * / add_filter (& # 39; woocommerce_add_cart_item_data & # 39 ;, & # 39; add_custom_cart_item_data & # 39 ;, 10, 21); add_custom_cart_item_data function ($ cart_item_data, $ product_id, $ variations_id) { if (isset ($ _POST (& # 39; roast_custom_options & # 39;))) { $ cart_item_data (& # 39; roast_option & # 39;) = wc_clean ($ _POST (& # 39; roast_custom_options & # 39;)); } return $ cart_item_data; } / * ------------------------------------------------ --------------- * Add custom field values ​​below the cart item name in the cart -------------------------------------------------- ------------- * / add_filter (& # 39; woocommerce_cart_item_name & # 39 ;, & # 39; roast_custom_field & # 39 ;, 10, 21); function roast_custom_field ($ item_name, $ cart_item, $ cart_item_key) { if (! is_cart ()) return $ item_name; if (isset ($ cart_item (& # 39; roast_option & # 39;))) { $ item_name. = & # 39;
& # 39 ;. __ ("Toast level", "woocommerce"). & # 39 ;: & # 39 ;. $ cart_item (& # 39; roast_option & # 39;). & # 39;
& # 39 ;; } return $ item_name; } / * ------------------------------------------------ --------------- * Show roasted custom field values ​​below the item name at checkout -------------------------------------------------- ------------- * / add_filter (& # 39; woocommerce_checkout_cart_item_quantity & # 39 ;, & # 39; roast_custom_checkout_cart_item_name & # 39 ;, 10, 21); function roast_custom_checkout_cart_item_name ($ item_qty, $ cart_item, $ cart_item_key) { if (isset ($ cart_item (& # 39; roast_option & # 39;))) { $ item_qty. = & # 39;
& # 39 ;. __ ("Roasting level", "woocommerce"). & # 39 ;: & # 39 ;. $ cart_item (& # 39; roast_option & # 39;). «Гр.
& # 39 ;; } return $ item_qty; } / * ------------------------------------------------ --------------- * Save the value of the selected selection field in each order item as custom metadata and show it everywhere -------------------------------------------------- ------------- * / add_action (& # 39; woocommerce_checkout_create_order_line_item & # 39 ;, & # 39; save_order_item_product_fitting_color & # 39 ;, 10, 21); function save_order_item_product_fitting_color ($ item, $ cart_item_key, $ values, $ order) { if (isset ($ values ​​(& # 39; roast_option & # 39;))) { $ key = __ (& # 39; Roast level & # 39 ;, & # 39; woocommerce & # 39;); $ value = $ values ​​(& # 39; roast_option & # 39;); $ item-> update_meta_data ($ key, $ value, $ item-> get_id ()); } } add_action (& # 39; wp_footer & # 39 ;, & # 39; add_footer_script & # 39;); add_footer_script () function { ?> <? php }

I need to add the "Toast Level" selection form to the quick view window, to the content-product-quick-view.php file.

When adding code, errors appeared. The form is not displayed or the "Add to cart" button disappears.

global $product;

// If is single product page and have the "roast_checkbox" enabled we display the field
if ( is_product() && $product->get_meta( '_roast_checkbox' ) === 'yes' ) {

    echo '
'; $select = woocommerce_form_field( 'roast_custom_options', array( 'type' => 'select', 'class' => array('my-field-class form-row-wide'), 'label' => __('Roast Level'), 'required' => false, 'return' => false, 'options' => array( '' => 'Please select', 'Blue' => 'Blue', 'Rare' => 'Rare', 'Medium Rare' => 'Medium Rare', 'Medium' => 'Medium', 'Medium Well' => 'Medium Well', 'Well Done' => 'Well Done' ) ), '' ); echo $select; echo '
'; }

As a result, I could not put this code in the php file. Maybe here you need to add additional code. And I ask for your help.

Is it possible to duplicate a project in Windows 10 without including a specific window in the output / only specific windows in the output?

Is it possible to duplicate a project in Windows 10 without including a specific window in the output / only specific windows in the output? For example, if a Word document is displayed on the projector and on the main screen, the Word document, as well as a web browser window at the top that is not visible in the projection.

Alternatively, it may be possible to have a window that is on the primary and secondary screen when the projection mode is extended.