errors – My CSS suddenly doesn’t load anymore

I’ve did some small changes on my CSS, nothing crazy, uploaded them to my website. Cleared my cache and suddenly, the website doesn’t show my custom styles.

Website: http://experienceantwerp.be/

My styles are included in the enqueue.php file, but it always worked.

if (!function_exists('understrap_scripts')) {
    /**
     * Load theme's JavaScript and CSS sources.
     */
    function understrap_scripts()
    {
        // Get the theme data.
        $the_theme = wp_get_theme();
        $theme_version = $the_theme->get('Version');

        wp_enqueue_style('slider-slider-styles', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css');
        wp_enqueue_style('lity-style', 'https://cdnjs.cloudflare.com/ajax/libs/lity/2.4.1/lity.min.css');
        $css_version = $theme_version . '.' . filemtime(get_template_directory() . '/css/theme.min.css');
        wp_enqueue_style('understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(), $css_version);

        }
    }
} // endif function_exists( 'understrap_scripts' ).

add_action('wp_enqueue_scripts', 'understrap_scripts', 10);

If I check my source code in the browser, it seems that the slider-slider-styles and lity-style are loaded, but not my styles “understrap-styles”.

The file is available on the server because I can directly open the file in my browser.

twitter – Youtube video link doesn’t appear as embedded in tweet

Till yesterday, whenever I retweeted a YouTube link, it appeared with its thumbnail and title in the tweet itself. Video auto-plays if someone opens that tweet.

However today, when I tweeted/retweeted link of my new youtube video, it just remains a link and doesn’t convert into embedded video in that tweet.

Here are 2 such tweets, one with embedded video and one without.

Old tweet, with video – https://twitter.com/PolKholYouTube/status/1347938969711996928?s=20

New tweet, without video – https://twitter.com/PolKholYouTube/status/1349879126535057408?s=20

I am not sure what different I did when I wrote those 2 tweets.

I want my video to appear as embedded in my tweet, same as old video.

Any help please

drivers – start /wait doesn’t wait. How to workaround without using pause in script (Script is meant to be unattended)

I have a script that is run after windows is installed and performs a vast number of tasks, including installation of drivers and various programs. The intent is that the script is run unattended.

I am adding code to install printer drivers, in this case the Canon TS8300 series.

I think the problem is that that the installer runs in several parts. The first step is to extract the drivers and various utilities that come with the installer. I notice that once the extraction has completed the script continues.

If I understand the /wait parameter on the start command (and please correct me if I’m wrong), this is expected behavior. That certainly seems to be the consensus from the searches I’ve done.

The command is;

start /wait "TS8300 Installation" /d "%SRC%PostInstallCanon" "win-ts8300-1_02-ea34_2.exe"

I’ve also tried with start /b /wait (apparently /wait /b is also known to not work).

As the next step in the code is to stop and delete a service that is installed, that fails because it’s executing before the service has been installed as the script does not wait. So I’ve temporarily added a pause but that means I have to be there to press the any key.

I thought about simply using ping x.x.x.x -n yy >nul and it might work if I get the value of yy right (which will probably vary depending on the PC). It’s better than using pause, but I was hoping there might be something a bit more elegant and fool proof.

Thoughts?

development – Xcode generates project template that doesn’t compile

I’m on Mojave 10.14.6, and installed Xcode 11.3.1. Swift says it’s version 5.1.3.
I thought this was OK according to the Xcode release notes:
“Xcode 11.3.1 requires a Mac running macOS Mojave 10.14.4 or later.”
And the notes for Swift said Swift 5.1 needs macOS 10.14.6 and Xcode 11 or later.

In Xcode, when I create a new ‘nothing’ macos app, Xcode generates this in one of the files:

struct ContentView: View {
    var body: some View {
        Text("Hello, World!")
            .frame(maxWidth: .infinity, maxHeight: .infinity)
    }
}

When I build this, I get these errors:

  • ‘some’ return types are only available in macOS 10.15.0 or newer
  • ‘Text’ is only available in macOS 10.15 or newer
  • ‘frame(minWidth:yada:yada:)’ is only available in macOS 10.15 or newer

In the project General settings, I set Deployment to 10.14, but that comes too late – the empty app was already generated for 10.15.

In the Build Settings, Deployment is set to 10.14 and the Swift compiler is set to Swift 5.

Is there a way to tell Xcode 11.3.1 to setup a project that will build and run on 10.14.6?

Or do I need to drop back to Xcode 10.3? (the next oldest release?).

Thanks!

repair – Olympus Mju-1 doesn’t turn on

I just found an Olympus Mju-1 which wasn’t used for more than 10 years. After that, I have dropped it once from a height of around 80cm. Then, I bought a new battery and put inside, it still can turn on and seems like all good, but I’m not sure it still functions well or not. So, I just left the battery inside and kept it, because I can’t find any film in stores near me. Then recently, after maybe 4 months, I went to try to use it and realised it doesn’t turn on. But the new battery inside didn’t rupture, and the compartment is all clean.

My question is, do you think the camera will work if I change to a new battery? If not, what can I do, other than changing the parts in it, because the local camera repair store said they didn’t have any parts for point-and-shoot cameras.

Why doesn’t Packet Tracer Simulation Mode look like it should?

I’m running Packet Tracer version 7.3.1.0362 in Windows 10. My Simulation Mode doesn’t have the icons that I see in tutorials and screen shots from other users. The link is two screen snips of what my version looks like and what I see in tutorials and other users. How do I fix my version?

enter image description here

storage – iMovie doesn’t appear to be able to use all the available space on iPad

When trying to save a 15-minute movie from iMovie in order to upload it in the YouTube app, I frequently get the message “Storage Full: There is not enough space left on this device. You cannot share until you free some space.”

This despite the fact that Settings shows “28.8 GB of 64 GB Used” and that iMovie is using only 1.29 GB of that. (It also shows that iMovie was “Last Used: 12/12/18” which is clearly false; is that a clue that the storage graph is inaccurate?)

How can I get iMovie to use this 35G available space for its export?

iPad Air 2, iPadOS 14.2, iMovie 2.3.2 (5087)

dnd 5e – Is there another +1 Charisma feat for a half-elf warlock who doesn’t want to be a “face”?

My half-elf warlock has 16 Charisma, and I’m considering taking the Elven Accuracy feat (XGtE, p. 74), which would boost his Charisma to 17. Since I definitely want 20 Charisma eventually, a +2 Cha ASI and a second +1 Cha feat would get me there.

However, every other feat I can find that offers +1 to Charisma falls into one of three categories:

  • Specific to some other race (e.g. Dragon Fear for dragonborn, from XGtE p. 74)

  • Redundant for a warlock (i.e. Resilient choosing Charisma, from PHB p. 168)

  • Related to being a “face” character (e.g. Actor, from PHB p. 165)

Since I am a half-elf warlock, and I’m not really looking to be a face character, these options seem to run counter to the sort of character I’m trying to build. Are there any other options? Charisma for my warlock is all about “spirit” and magic.

Any Wizards of the Coast material, including Unearthed Arcana, might be considered here.

windows 10 – Blocking a website using “hosts” file doesn’t work when using a VPN

I’m trying to use Windows’ hosts file to block a specific website, but my problem is that while using a VPN it doesn’t get blocked at all, and without a VPN it gets blocked on Chrome but not on Firefox. I did the same setup using the same Hosts file and VPN on another PC and it worked perfectly there; consistently blocking the website, but it has the problem I stated on my own PC.

I already tried :

1- ipconfig /flushdns

2- Double-checked hosts file for syntax errors or whitespaces

3- Checked for permission problems

cluster – Redhat 7 Pacemaker: wait_for_all: 0 doesn’t start the resources

I deployed test cluster based on Redhat 7.6. Its a two node cluster. In corosync.conf

quorum {
    provider: corosync_votequorum
    two_node: 1
    wait_for_all: 0
}

Now when i see the votes count using corosync-quorumtool -m it shows this

Quorum information                                   
------------------                                   
Date:             Thu Dec 24 08:28:39 2020           
Quorum provider:  corosync_votequorum                
Nodes:            1                                  
Node ID:          2                                  
Ring ID:          2/524                              
Quorate:          Yes                                
                                                     
Votequorum information                               
----------------------                               
Expected votes:   2                                  
Highest expected: 2                                  
Total votes:      1                                  
Quorum:           1                                  
Flags:            2Node Quorate                      
                                                     
Membership information                               
----------------------                               
    Nodeid      Votes Name                           
         2          1 RTG-STGDB-02.gulfpc.com (local)

Now one node is down (I turn it off) to test whether wait_for_all: 0 will work or not. Now Cluster is in quorate state but resources are still down.

stgdbfence1    (stonith:fence_vmware_soap):    Stopped        
stgdbfence2    (stonith:fence_vmware_soap):    Stopped        
Resource Group: rtgdb-resources                               
    VirtualIP  (ocf::heartbeat:IPaddr2):       Stopped        
    vg_data    (ocf::heartbeat:LVM):   Stopped                
    xfsfs_data (ocf::heartbeat:Filesystem):    Stopped        
    vg_arch    (ocf::heartbeat:LVM):   Stopped                
    xfsfs_arch (ocf::heartbeat:Filesystem):    Stopped        
    vg_backup  (ocf::heartbeat:LVM):   Stopped                
    xfsfs_backup       (ocf::heartbeat:Filesystem):    Stopped
    oracle_DB  (ocf::heartbeat:oracle):        Stopped        
    oracle_LR  (ocf::heartbeat:oralsnr):       Stopped  

But as soon i turn on the node 1 resources come online

What im missing