if a jamaican is deported despite living in the UK there whole life can they live in irland or other countries close like France? [migrated]

looking for some advice, if a jamaican is being deported and lost the appeal to stop in the UK does this mean he can also not live in irland/ and northan irland? also does it mean he would not be able to move to local countries such as France and the Netherlands? thanks

What does the Mirror Image spell look like?

Mirror image creates ‘three illusory duplicates’ of you. Attacks against you may end up attacking one of them. The actual text (PHB p.260) reads:

Three illusory duplicates of yourself appear in your space. Until the spell ends, the duplicates move with you and mimic your actions, shifting position so it’s impossible to track which image is real. You can use your action to dismiss the illusory duplicates.

Each time a creature targets you with an attack during the spell’s duration, roll a d20 to determine whether the attack instead targets one of your duplicates.

[snip details of random rolls, AC of images etc]

A creature is unaffected by this spell if it can’t see, if it relies on senses other than sight, such as blindsight, or if it can perceive illusions as false, as with truesight.

I just noticed there’s a rapidly-growing megathread on the GITP forums arguing over whether it affects spells that do not require an attack roll (specifically hold person). I skimmed a few pages of the debate but it seems to have got rather confused. Checking here I did find both RAW and word-of-god information strongly supporting the interpretation that it does not.

This seems pretty conclusive, and to clarify, I accept this interpretation and I’m not asking to start a debate about it. However, I’m struggling to reconcile this with my previous mental image of how this spell would appear; I always pictured an array or group of casters shuffling around like a giant shell game, which pop out of existence one by one as they are targeted. I think this was even how it looked in the old SSI D&D games, although it’s been a long time since I played those. I’d like to make sure that in any games in future I can describe the spell effect in a way consistent with the way the spell works.

So what does a mirror image look like? I suppose I’m ideally looking for ‘fluff as written’ (the spell description alone isn’t really sufficient; descriptions from official novels or rulebooks, preferably from 5e would be great) but it should at least be consistent with the facts that:

  1. the images occupy ‘the same space’ (does this mean overlapping?);
  2. attacks get randomised among the images;
  3. spells that do not require an attack roll do not get randomised (unerringly find the right image, presumably);
  4. creatures that do not rely on sight or that can see through illusions are unaffected.
  5. RAW, there is no way to track the ‘real’ image (by e.g. noticing they were standing on a particular floor tile before the duplicates appeared, or noting which image gets struck by a magic missile).

I think #5 is the bit I have most trouble with – what stops you from keeping track of the original caster by just keeping them in view or watching which one gets hit by magic missile? Does the caster randomly swap places with an image via a very limited blink-type effect or something?

Is there a way to run a persistent Docker container, like a VPS?

Problem: I have a NAS machine at home, built out of old hardware. Virtualization does not work on it due to bug in motherboard. Docker, however, runs perfectly. I want to have a single small VPS on that machine.

Question: Is there a way to run a Docker container in such a way, that I could SSH into it, make changes, install packages and it will be persistent across reboots? I don’t need neither speed no enterprise reliability, just a hack. I would use it for simple tasks like “unpack archives” or “monitor for proper file permissions on the share” and I don’t feel like writing docker files every time I want to run anything. If I caould not make it work, I’ll buy a RapberryPi to plug alongside the NAS.

“What is needed to write functions with good performance like OpenCV does?”

I’ve tried to implement my own canny edge detector and tried to make it as fast as possible.

I tried to code most of the needed function myself and only used opencv as input/output.

However, the performance isn’t comparable to opencv’s cv::Canny() when input’s size gets larger. Even using OpenMP on most of my loops don’t make it as fast as opencv. My compiled opencv includes optimization libs like IPP, etc.

I know opencv’s functions may not be the fastest, but I still want to know what is needed to write code with good performance.

Take my conv2_h_sobel() functions for example (I separated sobel kernel), is there any way to improve its performance?

conv2_h_sobel() takes a 2D image and a 1D kernel as inputs, then performs a convolution process.

template<typename src_type, typename dst_type, typename kernel_type> void conv2_h_sobel(const Mat& src, Mat& dst, const vector<kernel_type>& kernel) {      // Params check     if (src.empty() || src.channels() == 3) {         cout << "conv2_h() input error.\n";         return;     }     if (kernel.size() % 2 == 0) {         cout << "conv2_h() kernel size error. \n";         return;     }       // Inits     if (dst.empty()) dst = Mat(src.rows, src.cols, CV_32FC1);      int k_size = kernel.size(),         src_rows = src.rows,         src_cols = src.cols;      int offset_col = k_size / 2;     int k_idx = -offset_col;      OMP_FOR( src_rows * (src_cols - offset_col) ) // Automatically ignored if no openmp support     for (int i = 0; i < src_rows; i++) {         const src_type* src_ptr = src.ptr<src_type>(i);               dst_type* dst_ptr = dst.ptr<dst_type>(i);          for (int j = offset_col; j < (src_cols - offset_col); j++) {              float sum  = src_ptr[j - 1]  * kernel[0];                   sum += src_ptr[j]      * kernel[1];             dst_ptr[j] = sum + (src_ptr[j + 1]  * kernel[2]);         }     }  }; 

Is attempt like this, when using Application class, breaking MVVM pattern?

In my application I am using two view models. MainViewModel if fiered when MianWindow is initialized. And UpdateViewModel is fiered when UpdateWindow is initialized.

The update VM is supposed to use data from collection that is a property of the main VM and has its instance laready, and I need to refer to it somehow. And I was wondering, is refering to this collection with MainViewModel vm = (MainViewModel)win.DataContext; is breaking MVVM pattern or testability somehow or is any kind of antipattern? Thank you.

The code:

public class UpdateViewModel : ViewModelBase     {         public UpdateViewModel()         {             Jockeys = new ObservableCollection<LoadedJockey>();              PopulateCollections();         }          private void PopulateCollections()         {             MainWindow win = Application.Current.Windows.OfType<MainWindow>().FirstOrDefault();             MainViewModel vm = (MainViewModel)win.DataContext;              Jockeys = vm.Jockeys; //is it ok?              vm.Jockeys //is it ok?         }          public ObservableCollection<LoadedJockey> Jockeys { get; private set; }      } 

Avoid specific messages like TTY=unknown from logging in /var/log/messages

I am receiving the messages in /var/log/messages and this is populating my /var partition with more space:

“Jun 6 04:02:58 sdp-A sudo: apache : TTY=unknown ; PWD=/var/Tapps/appworks/public ; USER=root ; COMMAND=/bin/rpm -q Tuser”

I want to stop this message from piling up my /var/log/messages , I know logrotate but I am looking for a solution other than logrotate to stop this.