Is it allowed to spend a night in the first entry country before moving to the main destination?

I have booked to spend a night in the first entry point which is Germany. Then in the second day I’m going to move to the main destination (Switzerland), where my visa has been issued, by car.Is that illegal and I have to have a flight to the main destination at same time?

jquery.done runs before when – deferred promise

I have placed a SEWP in an editform and the code is supposed to do the following: check if the logged in user is site administrator and web administrator – if not then hide a specific field. These two checks runs async and the method that does the hiding should not execute until it is checked that the user is siteadmin and webadmin.

$  (document).ready(function () { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', readyFunction); });  var isSiteAdmin = false; var isWebAdmin = false; var context; var web;  function readyFunction() {    $  .when(isUserSiteAdmin(), isUserWebAdmin()).done(hideSiteManagerField()) }  function isUserSiteAdmin() {   var currentSite = _spPageContextInfo.siteAbsoluteUrl;   var currentUserID = _spPageContextInfo.userId;    return $  .ajax({     url: currentSite + "/_api/web/siteUsers?$  select=Id,IsSiteAdmin&$  filter=id eq " + currentUserID,     method: "GET",     dataType: "JSON",     headers: { "accept": "application/json; odata=verbose" },     success: function (data) {         $  .each(data.d.results, function (index, item1) {             isSiteAdmin = item1.IsSiteAdmin;             console.log("User is admin on site: " + item1.IsSiteAdmin)         });     },     error: function (error) {         alert(JSON.stringify(error));     } }) }  //If a user is admin he/she will have manageWeb permissions. function isUserWebAdmin() {   var deferred = $  .Deferred(function () {     context = new SP.ClientContext.get_current();     web = context.get_web();     context.load(web, 'EffectiveBasePermissions');     context.executeQueryAsync(onSuccess, onFailure);      function onSuccess() {         if (web.get_effectiveBasePermissions().has(SP.PermissionKind.manageWeb)) {             isWebAdmin = true;             console.log("User is admin on web: true");             deferred.resolve();         }     }      function onFailure(sender, args) {         alert('failed: ' + args.get_message() + 'n' + args.get_stackTrace());     } });  return deferred.promise(); }  function hideSiteManagerField() { //hide field Site Manager if permissions != full access or administator on site collection if (!isSiteAdmin && !isWebAdmin) {     $  ('div[title="SiteManager"]').parents().eq(2).hide()   } } 

When I debug I see that isSiteAdmin and isWebAdmin always returns false inside the isUserWebAdmin method, and some time later it runs the content inside success and gives me the console.log message. The problem with this is of course that the field has already been hidden, and it doesn’t wait until I get the result from my two other methods.

Can anyone see what is wrong here? I have tried linking to newer jQuery versions to see if that helped, but nothing so far. I had an understanding that one can return $ .ajax directly as it is deferred compatible and that the internal jQuery code will call resolve for me. Is this not the case?

Has there been any previous mentions of these Lesser Ministries before?

On page 122 of the Mage: the Awakening 2nd Edition sourcebook Signs of Sorcery, there is a sidebar that introduces Prelacy bonuses for members of Lesser Ministries of the Seers of the Throne mage order.

In it is includes the following information:

The Raptor (Sycorian) grants the Crown of Instinct. The character may ignore surrenders without spending Willpower, is immune to the Beaten Down Tilt and wound penalties and increases his own Doors in Social Maneuvering by his Life dots.

The Prophet (Kyrian and Horologian) grants the Crown of Agency. When she or another character uses Temporal Sympathy on a spell with her as the subject, the character counts as having a Strong Temporal Sympathy to any point in her own past. If a supernatural effect (including Time spells) alters history such that the character’s past is changed, she does not change immediately but only after her Time dots in turns, allowing her the opportunity to do something about it.

The only other place in the book that these Ministries are mentioned is in the descriptions of the ten Iron Seals (the major Exarchs who represent the Arcana), which each have a final sentence to the effect of “He is served by the X and Y Ministries,” with no further description.

I’ve checked the Mage the Awakening Second Edition corebook as well as the Seers of the Throne sourcebook for Mage the Awakening First Edition, and I can’t find any mention of the Sycorians, Kyrians, or Horologians, and I can’t find anything about them on Google, either. Is this the first time that these Lesser Ministries have been mentioned in a Mage book, or have they been mentioned in other (first edition) sourcebooks or official short stories that I haven’t checked?

Has there been any previous mentions of these Lesser Ministries before?

On page 122 of the Mage: the Awakening 2nd Edition sourcebook Signs of Sorcery, there is a sidebar that introduces Prelacy bonuses for members of Lesser Ministries of the Seers of the Throne mage order.

In it is includes the following information:

The Raptor (Sycorian) grants the Crown of Instinct. The character may ignore surrenders without spending Willpower, is immune to the Beaten Down Tilt and wound penalties and increases his own Doors in Social Maneuvering by his Life dots.

The Prophet (Kyrian and Horologian) grants the Crown of Agency. When she or another character uses Temporal Sympathy on a spell with her as the subject, the character counts as having a Strong Temporal Sympathy to any point in her own past. If a supernatural effect (including Time spells) alters history such that the character’s past is changed, she does not change immediately but only after her Time dots in turns, allowing her the opportunity to do something about it.

The only other place in the book that these Ministries are mentioned is in the descriptions of the ten Iron Seals (the major Exarchs who represent the Arcana), which each have a final sentence to the effect of “He is served by the X and Y Ministries,” with no further description.

I’ve checked the Mage the Awakening Second Edition corebook as well as the Seers of the Throne sourcebook for Mage the Awakening First Edition, and I can’t find any mention of the Sycorians, Kyrians, or Horologians, and I can’t find anything about them on Google, either. Is this the first time that these Lesser Ministries have been mentioned in a Mage book, or have they been mentioned in other (first edition) sourcebooks or official short stories that I haven’t checked?

Can I transfer SEVIS Information for F1 US Visa, if I have already paid once for a J1 US visa before?

I applied for an F1 US visa sometime back, for which, the biometric information has already been submitted; the interview is also coming up soon. I had previously visited the US for a summer as a J1 summer intern, which had involved paying a SEVIS fee, and thus has a corresponding SEVIS ID. When applying for my F1 visa, I used my old SEVIS ID (from the DS-2019 corresponding to the old J1 visa) by mistake, and the application showed no error. I was wondering which of the following needs to be done by me now:

  1. Request transfer from old SEVIS ID (DS-2019) to new SEVIS ID (I-20)
  2. Pay SEVIS fee for the new SEVIS ID and request the information to be updated in my visa application
  3. Cancel the previous application and start a new application after paying the SEVIS fee

Any help in this regard will be deeply appreciated!

Can you reduce the metamagic cost before applying Metamagic Song?

The description of Metamagic Song states:

When applying a metamagic feat to a spell, you must either use Metamagic Song to completely offset the increase in the spell’s effective level or apply the metamagic feat normally and cast the spell at its higher level. You cannot partially increase the level of the spell (or “split” the cost) to reduce the number of uses of bardic music spent when using the Metamagic Song feat. Only one method can be used to pay for metamagic feats that affect a single spell. You cannot use the Metamagic Song feat to improve a spell with the Silent Spell metamagic feat. – emphasis mine

Does the emphasize section mean other metamagic reducers, ie Practical Metamagic can’t be applied? Or simply that you can’t partially reduce the spell by say only one level if you only have one bardic music use?

WPF MVVM validate property before setting when user’s change value in DataGrid [migrated]

Issue: I have a list of a class that’s being displayed in a Datagrid, one of the values needs to ask the user if they really want to change it. This was implemented with a YesNo MessageBox in the value’s Setter.

The problem is that this messagebox should not come up every time the Setter is called, like when a new object is being added to the datagrid with a dialog, it will still ask if you are sure you want to change the value of what is currently being created.

I’m not sure if there’s a clean way of doing this, so any help is appreciated.

Right now the setter in the class looks like this:

public string Value {   get { return _value; }   set    {        string message = "Are you sure you want to modify this value?";        MessageBoxResult result = MessageBox.Show(message, "Confirmation",        MessageBoxButton.YesNo, MessageBoxImage.Question);        if (result == MessageBoxResult.Yes)        {           _value = value;        }        else        {         // Set to previously used value         Value = _value;        }           RaisePropertyChanged("Value");   } } 

Apple “pre-scans” all your files before them being uploaded to iCloud?

I don’t know if this community has been aware of this latest development by Apple.

Please read the news here:

Apple Now Scans Uploaded Content for Child Abuse Imagery

So apparently, all the common understandings about Apple’s approach towards encrypting communication data were false because Apple only start to encrypt all i-devices data once your uploads were met by certain rules of Apple. Technically, they cannot scan which materials were legitimate without reviewing the full content of all i-devices first, which bears the question was this the latest policy just being introduced or had been implemented for years without explicitly being transparent to the public. (Being strict with the law is one thing, but where’s the full transparency report on this?)

If this development were true, could one also assume all data stored on iCloud were in fact duplicated by Apple for information-miming purpose? All the data were supposed to be permanently deleted or erased by Apple were being kept indefinitely without the consent of the client? To be more precise, does Apple even obey the rules of GDPR since all your information were being sent to California’s data centre where iCloud’s serves are based? Even according US law, could they keep all your usage data from Safari, Notes, Photos, Books…on the i-Devices indefinitely as long as they want even if you had decided to erase and exit Apple’s universe and switch to Android devices…?

Even creepier, is Apple “pre-scanning” and “collecting” all data of Apple’s users across the world? This sounds worse than a plot from the “Minority Report”. Should iCloud still be trusted if you are data safety nerd?

This policy was updated in Apple’s privacy policy on 9 May 2019, is this a new thing or year-long practice known in the industry?

printing 2 words before and after a specific word in a file in python

What approach may i take for this question. I have an excel file which contains different sentences in every row. I want to look for a word in a row and print 2 words before it , the word itself and 2 words after it. for eg: “I am going to New York tomorrow” search for “to” print in different column : am going to New York Only 5 words. Help me out.

I tried this but it does not give output:

def c():     y = "you"     text = "Thank you for chatting with us.  A rep will be with you shortly.          You are currently number 1 in queue. "     for i in text:         for line in i:             split_line = line.split()             if y in split_line:                 index = split_line.index(y)                 print(' '.join(split_line[max(0, index - 2):min(index+3,len(split_line))])) 

iPhone 6 iOS 12.3.1 (before Ios 12.2) apps stuck in waiting/loading/greyed out

I believe I have already read all related posts on stack.

Hardware/Software: I’ve got an iPhone 6 with iOS 12.3.1 (before iOS 12.2).

Problem: Some apps are stuck in loading/waiting or are greyed out.

Cause: I guess my stupidity 😉 I tried to set up restrictions on a non-jailbroken phone. Trying several apps like flipd, space, break and kid protection tools that all need MDM-profile access. And my stupidity and ignorance led me to clicking on a link and activated the corresponding MDM-profile that promised jail breaking the device. I think it was through https://pangu8.com/jailbreak/12.2

Some of these official apps then remove the apps from your device during the restricted time (instagram, facebook, etc.), but need to reload them onto your device after the restricted time is over.

The support from one of the developers advised to remove the MDM-profile, which I did. And I de-installed the apps, etc. Everything worked fine. But at one point it just didn’t anymore and apps got stuck in waiting/loading/greyed out (can’t start/stope/delete app).

In one support-response I’ve got this info: “Your apps will return automatically when these directions are followed. Please note that the Full Lock feature requires an internet connection and an interruption or disconnected network can affect the functionality.” (emphasis added by me)

I wasn’t aware of that.

I have tried deleting/starting/stopping the loading, connecting to different wi-fi networks, start/stop directly from App Store, I have done several soft and hard resets for network settings and the complete phone. I have then restored from a backup. I have tried restoring from several backups, but they issue stays the same. I thought an update would fix it, so I have just updated from iOS 12.2 to iOS 12.3.1, but to no avail.

I assume that a hard reset and starting from scratch without restoring would “fix” it. And that would be my last resort.

Why then did I not do that yet? A) There are a few apps (Google Authenticator and iMala (for counting mantras) I need the data from that are not backed up by iCloud or another cloud service. And – as long as they are not installed completely – don’t show up in iTunes “File Sharing”.

I hoped that I could recover it using the method as displayed on this post https://dpron.com/recovering-google-authenticator-keys-from-ios-backups/. It seems that it wouldn’t work with iOS 12. I haven’t tried it yet.

Any ideas are well appreciated.

  • Steve