Can I monitor iPhones with Apple Configurator 2 without MDM to obtain activation lock bypass codes when needed?

I work for a subsidiary, and our parent company uses Microsoft Intune as MDM and for using Office 365 Mobile. There were some issues with deceased employees returning factory-locked iPhones either with a personal AppleID email or with an AppleID email from the company that already had the company mailbox deleted.

I want to be able to monitor the iPhones so that I can reset the phones, even if the original AppleID is no longer available. I can not use MDM because I have a minimal budget and our company vendor pointed out that iPhones can not have two MDMs at once.

I wonder (before I decide to buy a Mac Mini) whether I can first monitor the phones with Apple Configurator 2 (or similar) and then set up and deploy them as usual for the users, so I can either disable or disable them Bypass activation lock (I see some mention of a bypass code) should be necessary.

(Our vendor has the option to register these phones in Apple Business Manager, but it states that this requires an MDM.)

applescript – lock screen with terminal? Javascript prevents keystrokes

I want to lock the screen of my Mac remotely. I do not want to sleep my Mac. Only the screen. I do not want to request a password every time I put my monitor into sleep mode (system settings / password required). And I definitely do not want to suspend the current user (CGSession -suspend) because my Mac also serves as the Media Control Center.

I tried to create an App with an Applescript that I could start remotely, but this command in the Applescript fails:

 tell application "System Events"
      key code 12 using {command down, control down}
 end tell

When I start the applescript from the terminal, I get the error message that Javascript is not allowed to send keystrokes.

Here's what I'm trying to achieve: I have a Philips Hue dimmer remote near the front door of my house. I've reprogrammed the keys to do different things (light up, replay everything I've heard in iTunes recently, etc.). It's great, besides, I want the OFF button to turn off my lights, iTunes, etc., and lock my Mac's monitor. Everything works, except for the last step.

I can sleep with the monitor of my Mac

do shell script "pmset displaysleepnow"

I resigned myself for the time being, but that sleeps the monitor. I want to lock the monitor.

I know I can go to system settings and request a password after hibernating, but I do not want to use a password every time I put my monitor to sleep. That would drive me crazy. I also know that I could do something like this:

do shell script "/System/Library/CoreServices/Menu\ Extras/ -suspend"

This will break the current user's session, so my remote can not control my Mac. I just want to lock my monitor (Command Control Q) without using a hotkey so I can trigger it remotely.

How can I remotely lock the screen of my Mac?

Locking – Why table lock escalation happens in my scenario

I have a Table1 table that is updated with the following query in small blocks:

update top (1000) Table1
    set VarcharColumn1 = 'SomeValue'
from Table1
where ID in (select ID from Table2)
      and VarcharColumn1 is NULL

More details:

Table 2 contains 90000 rows, and the total number of rows that must be updated in Table1 is also 90000 (1: 1 relationship).

Even if table rows1 are updated, there is a trigger for tables1, which inserts rows into table Table1History as they were before the update
So, when I update 1000 rows in Table1, 1000 rows are inserted into Table1History


When I update top 100 rowsThere is no escalation of the table lock

I oversee this Extended Events "lock_escalation" eventand also in Performance Monitor - SQLServer:Access Methods - Table Lock Escalations / sec

When I refresh the first 1000 or 500 rows, the table lock escalation for Table1 occurs

So I wonder, what is the mechanism or formula that is used by SQL Server     
to escalate locking to table level ?  

Google states that 5000 rows are the threshold, but in my case, 1000 or 500 rows are apparently sufficient to cause Table1 to escalate to Table1

twrp settings crash when I try to set a screen lock

I have a Google Pixel. The boot loader is unlocked, but the system software remains unchanged.

A few days ago I booted TWRP (flashboot boot twrp.img) to access the data partition. The encryption key for the data partition is encrypted with a key that is partly derived from the unlock code. I had the impression that TWRP touch screen input would be very low due to the minimal recovery system. So I thought I would not be able to enter my password so that TWRP could then mount the data partition. I am searching the Internet for this question and the results say that the password for the lock screen should be removed. I did that and was able to access the data partition while TWRP was booted.

I restarted my phone with normal Android and successfully reset my lock screen password. But I can remember picking up my password, then setting it up again and then booting with TWRP for the first time. The problem now is that if I either:

  • Go to Settings and select Security & location > Screen lock
  • In the settings at the top of the main menu, press the "Save phone" box.

Settings crashes. Now I can not set a screen lock. Why does this happen and how do I fix it?

These are not solutions:

  • Wipe my phone.
  • Restore from a backup.
  • Everything that has to do with syncing with Google.

Pattern Lock Nokia 7.1 even thought I had specified the correct passcode

I use a Nokia 7.1 mobile phone. I have setup screen blocking pattern and fingerprint.
Now I have a problem with the phone because I can not unlock the phone even though I give the correct passcode and fingerprint.
Now I do not know how to fix this problem in Nokia 7.1. Please suggest that he correct the problem. I have been rebooted several times and do not want to perform a factory reset.

Thank you in advance.

Permissions – How do you lock a user's access to ODBC settings in Windows 10?

I was working with a user's computer yesterday because they complained that one MS Access database they use is that an ODBC data source can not be accessed.

I changed the settings for the ODBC data source (on the Systems tab). Regardless of which account I signed in with, I could not click on the data source or the "Configuration" button in "% windir% System32" odbcad32.exe & # 39;

Is there a group policy or Windows permission that controls access to it?

If so, it seems really good for information security.

apt – lock / var / lib / dpkg / lock – frontend could not be retrieved – specific to a single .deb package

I have a custom package that I want to install on my device.

It returns this error:

nvidia@tegra-ubuntu:~$ sudo dpkg -i MyPackage.deb 
(Reading database ... 181574 files and directories currently installed.)
Preparing to unpack .../MyPackage.deb ...
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
dpkg: error processing archive MyPackage.deb (--install):
 subprocess new pre-installation script returned error exit status 100

I've already tried all the traditional ways to remove a lock:

None of them worked for me. I can not find any ongoing process related to lock or Lock frontend Files. I also noticed that this problem is related to this particular package. Any other version of the same package or package is installed correctly and does not raise an error.

Any idea ?

c ++ – Trivial Spin Lock

Very simple implementation and application example.

Although the code mainly heats the CPU, it would be nice to have criticism of the approach.


#ifndef spin_lock_h__
#define spin_lock_h__


class SpinLock {
    SpinLock() {}

    SpinLock(const SpinLock&) = delete;
    SpinLock& operator=(const SpinLock&) = delete;

    void run(std::function func, Args... args) {
        while (flag.test_and_set()) {
            // spinning

    std::atomic_flag flag = ATOMIC_FLAG_INIT;

#endif // spin_lock_h__


#include "spin_lock.hpp"


using Lock = SpinLock;

void fn(int i) {
    const std::string begin = "#" + std::to_string(i) + " is about to sleep ";
    const std::string end = "#" + std::to_string(i) + " has woken up ";

    std::cout << begin;
    for (int k = 0; k < 20; k++) {
        std::cout << '.';
    std::cout << end << 'n';

int main() {

    std::vector v1;
    for (int n = 0; n < 10; ++n) {
        v1.emplace_back(fn, n);
    for (auto& t : v1) {

    Lock lock;
    std::vector v2;
    for (int n = 0; n < 10; ++n) {
        v2.emplace_back(()(int i, Lock* lock) {lock->run(fn, i); }, n, &lock);
    for (auto& t : v2) {