magento2.3 – Install Magento2 Enterprise via Docker on a desktop Mac

I'm trying to install a fresh install of Magento 2.3.3 Enterprise on my local Mac desktop via Docker. I'm new to Docker, so maybe I'm missing something.

I have installed Composer and Docker.

The mistake I get says

 To initialize a project, please create a composer.json file as described in the 
 https://getcomposer.org/ "Getting Started" section
 Could not open input file: /app/bin/magento

 An error has occurred. Removing newly installed files and/or Docker containers.

I tried to manually create a composer.json file and put the following in it

{
    "require": {
       "magento/product-enterprise-edition": "2.3.3"
    }
 }

I've also made sure my yml file contains my correct public and private Magento keys. I use the tutorial here
https://www.magemodule.com/all-things-magento/magento2-freebies/magento2-docker-vm-script/

Even if I execute the following command
Docker-compose

I get a mistake that says
Error: No such object: websites

Javascript – Use Python & Selnium to set Gnome Desktop to Google Chromecast wallpapers

I've created a simple script that implements Google's Chromecast wallpaper as a wallpaper for my Gnome desktop.

The script extracts the images from 2 different sources:

  1. A static webpage with a collection of Chromecast images
  2. A dynamic (javscript-driven) web page that displays a different background image at an interval specified by Google.

The reasons why I use 2 different sources are:

  1. I already had a working script that just used the static side and wanted to challenge myself
  2. If you only use the dynamic page, the first image will always be the same when loading this web page (or one from a very small subgroup with minor deviations) and I would like to see an immediately different background image each time the script is run.

My current code looks like this:

#!/usr/bin/env python
"""This script runs in the background to download wallpapers used by Google's
chromecast devices and set them as a desktop wallpaper in Linux environments
using Gnome desktop. The wallpaper that is being set will change
automatically within a given interval."""

import io
import os
import subprocess
import time
from random import shuffle
from bs4 import BeautifulSoup
from PIL import Image
from pyvirtualdisplay import Display
import requests
from selenium import webdriver
from selenium.webdriver import DesiredCapabilities


def first_picture():
    """Retrieve a random image from a non-interactive website. This 
    will be the first image to which the Gnome desktop will be set. It 
    will (1) give the user visual feedback that the script is working 
    and (2) prevent the same image (or minor set of images) to be shown
    whenever the script is run."""

    request = requests.get('https://github.com/dconnolly/'
                           'chromecast-backgrounds')
    content = request.content
    soup = BeautifulSoup(content, features="lxml")
    images = soup.find_all("img")
    sourcelist = ()
    current_dir = os.path.dirname(os.path.realpath(__file__))

    for image in images:
        if "camo" in image("src"):
            sourcelist.append(image("src"))

    # Implemented a try-except because pil_image sometimes raises an error:
    # raise IOError("cannot identify image file %r" % (filename if filename
    # else fp))
    # OSError: cannot identify image file <_io.BytesIO object at
    # 0x66d3bea6d3b0>

    try:

        shuffle(sourcelist)
        raw_image = requests.get(sourcelist(0))
        pil_image = Image.open(io.BytesIO(raw_image.content))

    except IOError:

        first_picture()

    temp_local_image_location = (current_dir + "/interactive_wallpaper."
                                 + pil_image.format)
    pil_image.save(temp_local_image_location)
    subprocess.Popen(("/usr/bin/gsettings", "set",
                      "org.gnome.desktop.background",
                      "picture-uri", "'" + temp_local_image_location + "'"),
                     stdout=subprocess.PIPE)
    time.sleep(40)


def change_desktop(image_source):
    """Tap into the dynamic webpage that is displaying a different
    wallpapers-like images at a given interval."""

    request = requests.get(image_source)
    image = Image.open(io.BytesIO(request.content))
    image_format = image.format
    current_dir = os.path.dirname(os.path.realpath(__file__))
    temp_local_image_location = (current_dir + "/interactive_wallpaper."
                                 + image_format)
    image.save(temp_local_image_location)
    subprocess.Popen(("/usr/bin/gsettings", "set",
                      "org.gnome.desktop.background",
                      "picture-uri", "'" + temp_local_image_location + "'"),
                     stdout=subprocess.PIPE)
    time.sleep(20)

def set_display_and_start_browser():
    """Start virtual display and selenium driver. This is needed
    for the selenium-initiated browser to grab the dynamically
    loaded images dfrom the webpage"""

    display = Display(visible=0, size=(1920, 1080))
    display.start()
    desired_capabilities = DesiredCapabilities.CHROME.copy()
    desired_capabilities('connection') = "keep-alive"
    browser = webdriver.Chrome(desired_capabilities=desired_capabilities)
    url = "https://clients3.google.com/cast/chromecast/home/"
    browser.get(url)

    first_picture()

    while True:

        element = browser.find_element_by_id("picture-background")
        image_source = element.get_attribute("src")
        change_desktop(image_source)
        time.sleep(20)

Any tips, insights, comments, opinions, etc. more than welcome!

Curious to learn what you think.

html – Gmail app that displays the desktop version and is not mobile

I did not encode this email. This is an older mailer that needs to be updated because the mobile batch version is no longer displayed on mobile devices and instead the desktop version is displayed side by side. When you view the online version on your phone, it will open with the correct mobile ad.
This only happens in the Gmail app. All other mobile apps are displayed correctly.

Please help!

96

@media screen and (maximum width: 599px)
{
.laybytable1 {
Display: Block! Important;
width: 300px! important;
Height: 265px! important;
}
.laybytable2 {
Display: Block! Important;
width: 300px! important;
Height: 265px! important;
}
}

.preheader {
Display: none! important;
Visibility: hidden;
Opacity: 0;
Color: transparent;
Height: 0;
Width: 0;
}
img {
height: car;
}
Body {
-webkit-text-size-adjust: none;
-ms-text-size-adjust: none;
Font family: Arial, Helvetica, sans serif;
Edge: 0;
Padding: 0;
}
on {
Color: # 000;
}
a: hover {
Color: # 1079bf;
}
Table {
Edge distance: 0;
}
table td {
Border collapse: collapse;
}
a (x-apple-data-detectors) {
Color: inherit! important;
Text decoration: inherit! important;
Font size: inherit! important;
Font family: inherit! important;
Font size: inherit! important;
Row height: inherit! important;
}
.columns-container {
Width: 100%
}
.column-image {
Width: 100%;
}
@media only screen and (maximum width: 600px) {
* (class = "hide") {
Display: none! important;
}
* (class = "center") {
Align text: center! important;
Width: 100%! important;
height: car! important;
}
table (class = "container") {
Width: 100%! important;
}
table (class = "col-2") {
float: none! important;
Width: 100%! important;
Upholstered floor: 10px;
}
table (class = "col-3") {
float: none! important;
Width: 100%! important;
Edge Floor: 12px;
Upholstered floor: 10px;
}
table (class = "col-4") {
Swimmer: left! important;
Width: 50%! important;
Edge Floor: 12px;
// padding-bottom: 10px;
Edge: 1px fixed # 707070! important;
}
Table (id = "last-col-3"),
Table (id = "last-col-4") {
Bottom edge: 0;
Edge-down: 0;
}
td (class = "force-col") {
Screen lock;
Fill up right: 0! important;
}
td (class = "logo") {
Screen lock;
Fill up right: 0! important;
Width: 100%;
Text orientation: center;
float: center;
}
td (class = "header-col") {
Screen lock;
Upholstery: 20px! important;
Width: 100%;
Align text: right;
float to the right;
}
td (class = "header-col-instore") {
Text orientation: left;
Screen lock;
Upholstery: 0! important;
}
td (class = "mobile-padding") {
Upholstery: 0px! important;
}
td (class = "align-center") {
Align text: center! important;
}
div (class = "mobile-remove-padding") {
Upholstery: 0! important;
}
.mobile-remove-padding {
Upholstery: 0! important;
}
img (class = "banner-img") {
Width: 100%;
}
img (class = "hide") {
Display: none;
}
img (class = "center") {
maximum width: 180px;
Screen lock;
left-aligned: car;
right side: car;
}
img (class = "col-2") {
float: none! important;
Width: 100%! important;
Upholstery floor: 0;
}
hr (class = "hide") {
Display: none;
}
span (class = "fullwidth-mobile") {
Width: 100%;
}
.remove-mobile {
Upholstery: 0! important;
}
.mobile-full {
Width: 100%! important;
Screen lock;
}
mobile-padding-top {
padding-top: 15px! important;
}
.text-mobile-padding-left {
Upholstery: 0px 20px 0px! important;
}

        .red-block {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
        .mobile-margin-bottom {
            margin-bottom: 20px;
        }
        .mobile-block {
            padding-left: 20px !important;
            padding-right: 20px !important;
        }
        .grey-block {
            padding: 40px 20px !important;
        }
        .footer-social-buttons {
            width: 89%;
            margin-left: auto;
            margin-right: auto;
        }
        .last-menu-item {
            display: inline-block;
            margin-top: 14px;
        }
        .mobile-margin {
            margin-left: 12px;
            margin-right: 12px;
        }
        .mobile-remove-margin-top {
            margin-top: 0 !important;
        }
        .grey-bar-right-padding {
            padding-right: 12px !important;
        }
        .grey-bar-left-padding {
            padding-left: 12px !important;
        }
        .remove-mobile-padding-top {
            padding-top: 0 !important;
        }
        .column,
        .column-top { float: left !important; width: 100% !important; display: block !important; }
    }
    @media screen and (max-width: 480px) {
        table(class="col-2") {
            float: none !important;
            width: 100% !important;
            padding-bottom: 10px;
            text-align: center !important;
        }
        table(class="social-footer") p {
            width: 100%;
        }
        td(class="left") {
            text-align: center !important;
            padding: 0;
        }
        td(class="right") {
            text-align: center !important;
            padding: 0;
        }
        td(class="container-padding") {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
        span(class="mobile-line-break") {
                display: block;
        }
        img(class="col-2") {
            float: none !important;
            width: 100% !important;
            max-width: 100% !important;
            padding-bottom: 10px;
            text-align: center !important;
        }
        .last-menu-item {
            display: inline-block;
            margin-top: 14px;
        }
        td(class="header-col") p {
            font-size: 11px;
        }
        .copy {
            width: 260px;
        }
        .mobile-font-size {
            font-size: 13px !important;
        }
        .mobile-image-padding {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
        .mobile-align-left {
            text-align: left;
        }
        .mobile-display-none {
            display: none;
        }

}
@media screen and (max-width: 320px) {
.footer-logos {
Width: 290px;
}

    }

Opening text goes here.

%% DC :: DCLOGO :: DCLOGO %%

Hello %% TITLE %% %% SURNAME %%,

Please find yours Layby statement State: %% LAYBY_STATEMENT_DATE %%.
This is a summary of all current Laybys in.

SUMMARY

Customer Number:
%% LAYBY_NO %%

Layby limit:
%% CURRENCY %% %% LAYBY_LIMIT %%

Total outstanding balance:
%% CURRENCY %% %% LAYBY_BALANCE %%

Quantity for which you can use Layby:
%% CURRENCY %% %% LAYBY_OTB %%

PAYMENT OPTIONS

The following payment methods are available:

• Cash

• debit card

• Credit card

* Please note that Layby payments can only be made in the shop where Layby was initiated.

%% DC :: DCLOGO :: DCIMAGEANDLATESTLOOKS %%

E-mail: xxx | Tel: +27 21 xxx

© Copyright 2019 xxx. All rights reserved.
Headquarters address: xxx Headquarters number: +27 21 xxx

Our e-mail disclaimer is available online.

Did you forward this email from a friend? Subscribe for regular updates and updates from xxx.

Sign out

Linux setup and partitioning of Ubuntu / Windows 10 Dual Boot on my new desktop

I set up my new desktop primarily as Linux (I'm starting Ubuntu at the moment) and keep a Windows 10 system for configuring the hardware.

After reading about the various Linux distributions, there are so many and I do not know which one to try. But to make it easier in the future, I'd like to effectively partition my ssds to make it easier in the future to change the distribution or reset the system.

I have 3 ssds:

nvme_0- 500gb nvme ssd

nvme_1- 500gb nvme ssd

ssd_0- 250gb ssd

I thought it would be best to partition the root drive (/) and the home drive (/ home) into nvme_0 and nvme_1, respectively. I would also need an EFI and swap partition, so I set 250 MB for EFI in SSD_0, 65536 MB for swap space in SSD_0 and then the rest of SSD_0 will be the Windows 10 system.

Is this a good and robust setup for me to keep the Windows 10 system up and running smoothly, regardless of whether the Linux system is changed as needed?

If there is a better solution, please let me know.

Thanks for your help community

How do I add bookmarks to Google Docs for Android without using the desktop browser?

I need the functionality to insert bookmarks into the Google Drive or Google Docs Android app. I can do that from the desktop browser. Is this feature already in place and do not I see it?

This is not the same as adding a shortcut to the home screen of the Android device, as indicated by the following: Can I make a Google Doc released for me more accessible on my Android device?

Google is a big company. When creating apps for Android, it has to be parsed with the desktop browser, unless there are specific technical reasons why this is not possible, and sometimes it is not possible, but not certain in that particular situation.

Windows 10 – Offline file synchronization causes permission issues and hiding desktop shortcuts

I have a user running Windows 10 on his laptop and I have activated it in the Offline Files Control Panel Sync Center. After we restarted his computer, everything seemed fine in the beginning, but the next day he said that some of his shortcuts had disappeared on the desktop and when he tried to open the shortcuts that were still on his desktop , he received the error message "Windows can not access [file path]." Contact your network administrator to request access.

I tried to check the permission settings in the properties windows of the shortcut, but the Security tab simply displayed "You do not have permission to view or edit this object's permission settings."

Disabling offline files again reset his desktop with all shortcuts to their previous state, and returned to the files referenced by the links.

The offline files are currently not encrypted.

Any ideas on how to leave Offline Files enabled without causing the behavior described above?

Blurry when connecting to the Remote Desktop through VMware Horizon

When you connect to the Remote Desktop through VMWare Horizon Client, the image is out of focus, which is different from the local computer.

The above paragraph looks good, the lower – is blurry.

It's not that big of a deal, but I have to program a lot with SQL Server, and the code is also blurry.

Is there a special setting I should try to fix the problem?

Many thanks

Enter image description here

I want to label icons on my desktop with more than one line in Xubuntu

On Xubuntu 16.04.3 LTS, the labels attached to the icons on my desktop can span more than one line.

Now I have installed Xubuntu 18.04.3 LTS. This version (with the default settings) truncates any captions on my desktop that would require a line break.

This is quite unsatisfactory because sometimes I have similar elements that are not in the first 12 characters, but in some later ones that would appear on the second or third line of the label if line breaks were used instead of cuts.

I must admit that the line break under Xubuntu 16.04 sometimes occurred in odd places, eg. in the middle of a word, sometimes even leading to strange interpretations of the words … At least it was better than what I have now.

But where the hell can I tell Xubuntu not simply to cut the label, but to accommodate up to three lines?

Even better would be if Xubuntu could label the symbols with an appropriate hyphenation … just for aesthetic reasons.

C # and .NET desktop core applications

I'm already a bit used to working with C # with Windows Forms, but recently I've tried to expand my knowledge. I tried a few other languages, but I want to continue with C #.
I've been researching applications with .NET Core, but most of the examples are in ASP.net and I understand it to be web applications.
My question is:

  • If so, which view model is used in C # for the desktop with .NET Core?

  • any material suggestions?

Post-processing – How did Apple create the dynamic desktop background of Catalina?

The new version of macOS, Catalina, includes a "dynamic" desktop wallpaper with photos of Catalina Island at different times of the day.

Here are two of the eight different pictures:

Enter image description here

You can see all eight images here: https://drive.google.com/drive/folders/1BBjFJoOZ6UWPGs_4vlWiJGR9yCqNu2pb

My question is, how did you do that logistically? Obviously, it's a drone shot, but getting eight drone shots across the ocean to be so accurate seems to be an incredible undertaking. Looking at the high-resolution versions above, it looks like they've used a mix of digital manipulation and original recording, but it still seems to be an incredible undertaking!

Thank you for helping me to understand how this could have been achieved seamlessly.