linux – Tool written in Go works fine from terminal ( in any directory) but gives “command not found” error when called from inside a script

so I wrote a shell script that bundles a few networking tools together ( amass, nmap etc) and they all work fine except httprobe a tool that takes a list of domains and probes for working http and https servers. The tool is written in Go. Go is in my $PATH and as I said the tool works perfectly when used from the terminal ( in any directory including the one the script is in). I wish I could provide more information but I’m stumped and really can’t think of how to debug this.
Thank you for your time.

OS: Elementary OS (ubuntu bionic base)

Can I fine tune the manual focus confirmation on my Nikon?

On a Nikon, (AF fine-tune) is linked to the lense’s s/n in the built in CPU, usually you assign the last 2 digits of the lens (from the CPU) to the newly tuned value.

The issue you have with non Nikon lenses (eg Lensbaby, with no CPU) and back focus (which is typical for most Nikon lens/body combo, so go to the minus side) requires a (Default) value adjustment which mean GLOBAL FOR ALL lenses and saved (AF fine-tune) values. That means ALL LENSES will be +/- from what ever you may have done to specific Nikon (AF fine-tune) values.

The reason you need to change the (Default), is that the Nikon body cannot assign a specific +/- value to an item with no CPU. Nor can it get the data you assigned in the (No-CPU lens data) = that is only used for metering. So you cannot assign a non-CPU lens number to the (AF-fine tune) menu.

So, in your case, I would change the (Default) to a (-) or (+) value that you can ascertain using a ruler at a less than ~45 degree angle, and focus in the middle using the ( > o < ) green indicator in the lower left corner of the viewfinder. Keep adjusting the (AF fine-tune) until you get a sharp result for that lens. Make a note of the selected value, and use that corrected value in the (Default) each time you use that specific lens. NOW, YOU MUST RETURN the (Default) value to (0) when finished, and going to use another lens. A good tool, is Focus Tune by Michael Tapes Design. You will discover that all your Nikon lenses focus at different +/-. The (Default) setting rarely, if ever, needs to be changed, unless the AF system is out of whack, and you are far, on a trip, from a Nikon Repair center. Good Luck, hope this helps, and logically clear. Oh!and make sure you turn on the (AF fine-tune (On/Off) to enable the changes… return to (Off) when finished using that lens.

windows 10 – Computer BSOD to ‘Boot device not found’, then after restart is fine

I hope this is the right site

My computer, after booting it up after not using it for about six months has this problem. It seems to randomly BSOD, which lasts a few seconds until it automatically restarts. It then goes into this screen:

    Boot device not found

    Please install an operating system on your hard disc

    Hard disc (3F0)

    F2       System Diagnostics

    For more information, please visit:

That’s a very scary screen to pop up on my after a BSOD. But, after simply hitting the power button twice to restart it boots up as normal! This confuses the heck out of me. How could the boot device be gone and also there?

Doing some quick diagnostics with the hard drive, it says there is not one installed. A memory test passed, with this info: - BIOS

System info:
Intel core i5 8th gen
No graphics card (not the best pc, just using this one while the other is in repairs)
8gb memory
250gb nvme ssd

If anyone knows anything about why this is happening, some sort of explanation or fix would be greatly appreciated!

magento2 – Currency formatting is fine in catalog view but not produtc view on front-end

So basically I am trying to adjust currency formatting for an Algerian client, the french part of the site works fine, the Arabic side was a bit messy due to RTL language but I managed to make it work. To adjust the currency format, I edited the ar.xml and ar_SA.xml under vendor/Magento/Zend…../Locale/Data and this works fine in Catalog view but if I go into a product view (And slow down loading). The initial formatting appears and then it is caught by something else that turns it into the formatting that I do not want.

Basically the price shows up as 123 000, no decimals and space as a thousands separator in the catalog view.

If I click the product, it then appears as 123,000.00 , showing 2 decimals and putting , as the thousands seperator.

Thank you for your time

ios – iPhone works fine with car bluetooth for Playing Music but not working for Phone Calls

After upgrading to iOS 13.5, I am facing issue while connecting Bluetooth of my car. I am able to connect Bluetooth of car for music and phone calls but after 2-3 minutes Bluetooth for phone gets disconnected and only music is working. Please note I am able to play music continuously.

This was working fine before iOS 13.5, I have upgraded to iOS 13.6 but I am still facing issue.

sharepoint online – ItemAdded remote event Receiver return clientcontext Null working fine other same level webs pages library

ItemAdded remote event Receiver return clientcontext Null working fine on other same level webs pages library, i used TokenHelper class for get content on behalf of current login user, i tried to use Admin account as well if Client context null but that also not work , i tried to detach and attach again on new libraries but still null.

I tried below ways but no success:

  1. ClientContext clientContext = TokenHelper.CreateRemoteEventReceiverClientContext(properties)

working fine in other webs but not working on new Web Library under same site collection.

  1. // obtain web URL somehow – line below is fine for a list item RER, but you’ll need another approach elsewhere:
string webUrl = properties.ItemEventProperties.WebUrl;

Uri webUri = new Uri(webUrl);

string realm = TokenHelper.GetRealmFromTargetUrl(webUri); 
string accessToken = TokenHelper.GetAppOnlyAccessToken(TokenHelper.SharePointPrincipal, webUri.Authority, realm).AccessToken; 
using (var clientContext = TokenHelper.GetClientContextWithAccessToken(webUrl, accessToken))  
    // do CSOM stuff here..

this way showing item may be deleted or checkout by other user.

Please let me know if any other way to fix this issue .

htaccess – Safari prompts for BasicAuth credentials on every request in WordPress admin area, but works fine on the rest of the site

I have a WordPress website which is in development, and is hidden behind a BasicAuth password prompt. My root level .htaccess file:

AuthType Basic
AuthName "Login Details"
AuthUserFile /var/www/vhosts/site.tld/.htpasswd
Require valid-user

When accessing the front-end of the site, it seems to prompt once and then all is fine. When using the admin, we are seeing the prompt multiple times, despite ticking “remember password”. It seems to mostly occur when using Safari – a prompt for almost all network requests on a page load.

The site is fully HTTPS, and I have cleared the Safari cache and closed/reopened the browser. An example request in the Apache access (SSL) log:

"GET /wp-content/themes/blender/screenshot.png HTTP/1.0" 401 1802 "" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15"

csom – Fine grained permissions applied to SharePoint Online App-Auth?

We have written an application that access SharePoint CSOM apis to do the following:

  1. Get sharepoint users and groups in a site collection.
  2. Get sites in a site colleciton
  3. Get lists in a site collection
  4. Get role assignments/definitions
  5. Get list items in a site collection.
  6. Get changes since a given time in a site collection.

When we access SharePoint online using app-auth (oauth or azure private key), we are forced to give Full admin access to the app in order to do these things.

But when we user a normal service account (username/password) we have access to the fine-grained permissions as you would expect. We do this by creating a custom SharePoint permission level and give it

  • View Items – View items in lists and documents in document libraries.
  • Open Items – View the source of documents with server-side file handlers.
  • View Versions – View past versions of a list item or document.
  • View Application Pages – View forms, views, and application pages. Enumerate lists. Site Permissions
  • View Web Analytics Data – View reports on Web site usage.
  • Browse Directories – Enumerate files and folders in a Web site using SharePoint Designer and Web DAV interfaces.
  • View Pages – View pages in a Web site.
  • numerate Permissions – Enumerate permissions on the Web site, list, folder, document, or list item.
  • Browse User Information – View information about users of the Web site.
  • Use Remote Interfaces – Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site.
  • Open – Allows users to open a Web site, list, or folder in order to access items inside that container.

Is Microsoft ever going to fix this so that app-auth can be given fine grained permission?

Loop boot menu booting to Windows 10 GRUB while booting to Ubuntu is fine

I installed Ubuntu along with Win 10. Everything is fine until I installed GRUB Customizer to change the boot order. All I did is change the boot order and nothing else. But I cannot boot to Win 10 anymore. When I choose boot to Win 10, it reopens the GRUB boot menu forever (no restart). Booting to Ubuntu is still fine. Here is the boot setting for Win 10 in GRUB Customizer:

insmod part_msdos
insmod ntfs
set root='hd1,msdos1'
if ( x$feature_platform_search_hint = xy ); then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  4C728DCD728DBBE8
  search --no-floppy --fs-uuid --set=root 4C728DCD728DBBE8
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1

Any suggestions? Thank you in advance.

compatibility – preg_match_all not working in my wordpress website template page and working fine in w3school website test

preg_match_all not working in my WordPress website template page and working fine in w3school website test

$U_PNo = $_POST(‘U_phoneno’);

if(strpos($U_PN, ' ')!==FALSE)
    $erro('U_PN_space') = "Phone number has Space ";

if (empty($U_PN)) {
     $error('U_PN_empty') = "Phone number is required";

$pattern = '/^(923)(0-9)\d{10}$/';

if(!preg_match_all($pattern, $U_PNo, $matches)) 
    $error('U_PN_invalid') = "Please match the requested format 923XXXXXXXXX";


if (count($error) == 0) {
    echo "Successfully";