My batch informs the user when the value entered is wrong and offers two options: retype the value or exit the program. @echo off cls setlocal enabledelayedexpansion set /p _Value=Enter the value: for /f skip^=4 %%e in ('echo;prompt $E^|cmd')do set "_$E=%%e" if "!_Value!" gtr "10" ( echo %_$E%[31mInvalid value! Do […]
Monthly Archives: May 2022
Using youtube-dl and ffmpeg I’ve got downloading part of a youtube video working fine thanks to this question ffmpeg -ss 60 -i $(youtube-dl -g -f 18 "https://youtu.be/oHg5SJYRHA0") -t 5 -c copy out.mp4 but I’d like to simplify figuring out the -t argument. Currently I do “copy video URL at current […]
I have an OptiPlex 980 mini tower PC (Windows 7 Enterprise, w/ 16 GB of RAM), that has two external graphics cards in it, one with dual-DisplayPort and one with a DMS-59 output that I have a dual-DVI adapter connected to. My primary monitor, a Dell 2408WFP, is connected via […]
Similarly to this question I’d like to restore factory APFS partition container structure after reinstalling macOS Big Sur from bootable USB flash drive, exactly: make Macintosh HD volume disk1s1 (currently disk1s5) and Macintosh HD - Data volume disk1s2 (currently disk1s1). This is what factory setup looks like: diskutil list /dev/disk0 […]
Small disclaimer: I’d much rather ask this question in forums.openvpn.net but it appears that the registration page is busted… I’m trying to set up my home router (an Asus RT-AX55) to act as a VPN server, offering me secure internet access if I’m using, say, a public Wifi at a […]
I have a project in which DB access is happening during the DI compilation process. My understanding is that there should be no DB access while running bin/magento setup:di:compile. When I test this theory on a default installation of Magento it holds up. No database access during DI compile. (My […]
I am overriding shipping address in mixin js file , I want id in my controller when we move from checkout page next step. /jshint browser:true jquery:true/ /global alert/ define([ ‘jquery’, ‘mage/utils/wrapper’, ‘mage/storage’, ‘uiComponent’, ‘Magento_Checkout/js/model/quote’ ], function ($, wrapper, storage,Component, quote) { ‘use strict’; return function (setShippingInformationAction) { return wrapper.wrap(setShippingInformationAction, […]
I created a Popup modal. when user click on button i showing the popup form. But the Background is moving top of the page when the popup modal is opened. How to stop the background from moving top when the popup is opened. Thanks. this is my popup modal form […]