How to add nofollow to all external links?

365/5000 I have a site with external links and I want to add nofollow to all the links that direct to another site than mine.

There is a module to do this :

https://www.drupal.org/project/elf

But if I have tile link on a google map, it’s not nofollow.

Is there a way to do this in a custom module or directly in the theme ?

I am with Drupal 8

Is there an external intervalometer for Pentax cameras?

I would like to take HDR time lapse photos on my Pentax K-50. That means I want to take a set of three bracketed exposures, then another three exposures 10 seconds later, and so on.

As far as I can tell there is no way to do this using the camera’s built-in “interval shooting” feature, because if I activate both exposure bracketing and interval shooting, the exposure bracketing setting is ignored.

However, what I can do is set the camera up so that a single press of the shutter release takes three bracketed exposures. So if there is an external device that can trigger the shutter at timed intervals then, hopefully, that means I can take bracketed exposures at regular intervals.

However, I haven’t been able to find such a device for sale online. I can find infrared and cable-based shutter releases for Pentax cameras, but I haven’t found one with a built-in interval timer. Does such a device exist, and if so what is its name / model number? Or is there another way in which one can take HDR time lapses on the K-50?

Everytime I need to use command to mount external hardisk in WSL Ubuntu in windows 10

I am using Ubuntu 18.10 in WSL linux in Windows 10. Whenever I open linux terminal with external hard disk I need to use command to mount the hard drive in the terminal. If I donot use the sudo command to mount the hard drive I cannot enter the hard drive directory. Is there any solution for this. Please help me with this.

Thank you in advance,

External bootcamp drive not seen on different MacBook Pro

When I purchased my MacBook Pro I setup bootcamp to run Windows 10 from and external SSD drive. I wrote up the details here: https://blog.brettski.com/2015/11/08/booting-a-macbook-pro-to-windows-using-an-external-ssd/ at the time.

What escapes me is why other MBP’s cannot boot from this drive. If I connect the SSD to an identical MBP, hold down Option and start, the external drive is not an option to boot from. It works fine from the computer it was created on.

Anyone know what may keep other computers from being able to use this drive as a boot drive?

Remove an external user access for a Folder/Document in a Document Library Programatically

I have shared a folder/document to an external user (outside the organization) in SharePoint online doc library. An email to the new user is shared with One time passcode to access the file. Now, the requirement is to Un-Share the document only for that user programatically. PLease suggest me the right API and sample code piece to help me in this regard. Any help as CSOM, REST API is appreciated TIA!

PS: I am using .NET CSOM apis and I am not sharing anonymous links to external user

Pass Data From SSIS To External Component

I currently have an SSIS package whose final task is a Script Task which works with data in a DataTable. I need to add the following functionality:

  • Execute an external batch component that will use this data. This component will preform business logic.
  • The component will insert its results into a database.
  • Add another script task to the SSIS package that reads this data from the database.

I am considering the best approach for the first step, i.e. passing data from the SSIS script task to the external batch component. The use of a database for this is tricky because the data’s columns are changeable. Therefore, I was thinking of just writing the DataTable object to the filesystem as a XML file using the WriteXml method, and getting the component to read this file.

Does this seem like an acceptable solution or am I overlooking a better alternative?

Can Xiaomi Mi Box 4K stream video from an external server using SMB or FTP protocol with external subtitles?

I am seriously considering moving from my Android TV-based Flix TVBox player to Xiaomi Mi Box 4K, because my current solution fails completely on playing / streaming videos from from an external server through SMB or FTP protocol with external subtitles.

Some software players (i.e. VLC) can browse network shares (some can’t), but all of them fails on opening external subtitles, i.e. stored in the .srt or .txt file with exactly the same filename as corresponding video file. It is only possible to display subtitles, if they are embedded into video files that supports embedded subtitles (i.e. MKV) or subtitles downloaded from OpenSubtitles.org.

This is especially weird, because happens only on SMB / FTP protocol. When using exactly the same player on local disk, everything works just like a charm.

I’d like to ask how does it work in case of Xiaomi Mi Box 4K?

Can Apple TV stream video from an external server using SMB or FTP protocol with external subtitles?

I am seriously considering moving from my Android TV-based player to Apple TV player, because my current solution fails completely on playing / streaming videos from from an external server through SMB or FTP protocol with external subtitles.

Some software players (i.e. VLC) can browse network shares (some can’t), but all of them fails on opening external subtitles, i.e. stored in the .srt or .txt file with exactly the same filename as corresponding video file. It is only possible to display subtitles, if they are embedded into video files that supports embedded subtitles (i.e. MKV) or subtitles downloaded from OpenSubtitles.org.

This is especially weird, because happens only on SMB / FTP protocol. When using exactly the same player on local disk, everything works just like a charm.

I’d like to ask how does it work in case of Apple TV?

While searching the Internet, I managed to learn that Apple TV can play content from local network (don’t know, if using SMB or FTP protocol), using VLC or some other players. But I can’t find any certain, confirmed information about fetching subtitles from. srt, .txt etc. files stored in exactly the same source and using exactly the same protocol (local share using SMB or external share using FTP) as used for fetching main video file.

Can anyone shed some light on this problem? Thank you.

18.10 Unmounts external HDD when session locks

I have an external HDD I use for backups (rsync during night) and other stuff. On 16.04 it was mounted all the time and I did not have any problems. In 18.04 however, after I lock my session, the disk spins down and gets unmounted.

The mountpoint is /media/username/NameOfDisk and the device is /dev/dm-0

Is there a way to prevent this from happening?

BTW: I tried

sdparm –save –clear=STANDBY /dev/dm-0

and got

unable to access /dev/dm-0, ATA disk?