Can a Perl script install its own CPAN dependencies?

Each of the standard build paradigms has their own way of specifying dependencies. In all of these cases, the build process will attempt to install your dependencies, automatically in some contexts. In ExtUtils::MakeMaker, you pass a hash reference in the PREREQ_PM field to WriteMakefile: # Makefile.PL for My::Module use ExtUtils::MakeMaker; WriteMakefile ( NAME => ‘My::Module’, … Read more

Create Outlook email draft using PowerShell

Based on the other answers, I have trimmed down the code a bit and use $ol = New-Object -comObject Outlook.Application $mail = $ol.CreateItem(0) $mail.Subject = “<subject>” $mail.Body = “<body>” $mail.save() $inspector = $mail.GetInspector $inspector.Display() This removes the unnecessary step of retrieving the mail from the drafts folder. Incidentally, it also removes an error that occurred … Read more

Programmatically building htpasswd

.httpasswd files are just text files with a specific format depending on the hash function specified. If you are using MD5 they look like this: foo:$apr1$y1cXxW5l$3vapv2yyCXaYz8zGoXj241 That’s the login, a colon, ,$apr1$, the salt and 1000 times md5 encoded as base64. If you select SHA1 they look like this: foo:{SHA}BW6v589SIg3i3zaEW47RcMZ+I+M= That’s the login, a colon, … Read more

Automation Google login with python and selenium shows “”This browser or app may be not secure””

First of all don’t use chrome and chromedriver. You need to use Firefox.(if not installed) Download and install Firefox. Login to Google with normal Firefox. You need to show the Google site that you are not a robot. You can use code like this: from selenium import webdriver import geckodriver_autoinstaller from selenium.webdriver.common.desired_capabilities import DesiredCapabilities geckodriver_autoinstaller.install() … Read more