iPhone listed inside ‘Manage your Apple ID’ and activation lock

I have an iPhone which is at the activation lock screen.

Using web browser on a computer, I logged in with my Apple ID. I can see this iPhone listed as a device on the webpage. The IMEI displayed on the webpage matches the IMEI displayed on the iPhone.

The Apple ID I used to sign in with the computer is correctEmail@gmail.com.

However, on the iPhone’s activation lock screen, it states that my phone is linked to another Apple ID: anotherApple@icloud.com.

I am stuck as I cannot recall how to login with anotherApple@icloud.com?

Is it possible to use the computer to somehow remove the activation lock on that iPhone? Since I can login to Apple ID with correctEmail@gmail.com, would removing that device from account using the web browser remove the activation lock on the phone?

After I have installed VirtualBox in Redhat, I cannot run an OS inside the VirtualBox

https://www.server-world.info/en/note?os=CentOS_7&p=vbox&f=1

^This is the link of the website I followed for the installation of the VirtualBox (Part 1 specifically)

I am using a Windows 10 OS(Host), on Windows 10 I am running Redhat on Workstation Pro 15, and in the Redhat I have install VirtualBox. I have tried running the VirtualBox, adding an iso file to the storage adapter settings. I have also tried doing it on a fresh Redhat OS but there is still the same error. Thanks in Advance

Below is the error prompt

Failed to open a session for the virtual machine Lubuntu.

The device helper structure version has changed.

If you have upgraded VirtualBox recently, please make sure you have terminated all VMs and upgraded any extension packs. If this error persists, try re-installing VirtualBox. (VERR_PDM_DEVHLPR3_VERSION_MISMATCH).

Result Code: NS_ERROR_FAILURE (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

After I have installed VirtualBox in Redhat, I cannot run an OS inside the VirtualBox

https://www.server-world.info/en/note?os=CentOS_7&p=vbox&f=1

^This is the link of the website I followed for the installation of the VirtualBox (Part 1 specifically)

I am using a Windows 10 OS(Host), on Windows 10 I am running Redhat on Workstation Pro 15, and in the Redhat I have install VirtualBox. I have tried running the VirtualBox, adding an iso file to the storage adapter settings. I have also tried doing it on a fresh Redhat OS but there is still the same error. Thanks in Advance

Below is the error prompt

Failed to open a session for the virtual machine Lubuntu.

The device helper structure version has changed.

If you have upgraded VirtualBox recently, please make sure you have terminated all VMs and upgraded any extension packs. If this error persists, try re-installing VirtualBox. (VERR_PDM_DEVHLPR3_VERSION_MISMATCH).

Result Code: NS_ERROR_FAILURE (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

Should validation be inside or outside function?

Which one is better?

A

if ( complexDataCheck(...) ) {   doJob(...) } 

vs

B

doJob()  func doJob(...) {    if not(complextDataCheck(...)) return error;    ...  } 

In A, the function does one and only one thing which is good, but OTOH it may be called with invalid input.

In B, the function does multiple things (assuming the validation part is a non-trivial part of the logic).

I want to know what are other pros and cons of the above and if there is a third better option?

Overwrite block layout inside text_list (content) blocks

I re-developed the whole category page in a layout.xml file included in my custom module, trying to reuse the block names. I needed to change many block (type) classes.

I had read that by redefining the block it overwrote but it is not so. Now the category page works correctly but the block category.products” is printed 3 times.

<catalog_category_default>     <reference name="content">         <block type="ristothemefrontend_handler/catalog_category_view" name="category.categories" template="catalog/category/category-categories.phtml" />         <block type="ristothemefrontend_handler/catalog_category_view" name="category.products" template="catalog/category/view.phtml">             <block type="ristothemefrontend_handler/catalog_product_list" name="product_list" template="catalog/product/list.phtml">                 <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>                 <block type="ristothemefrontend_handler/catalog_product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">                     <block type="page/html_pager" name="product_list_toolbar_pager" />                     <block type="ristothemefrontend_handler/catalog_product_list_toolbar" name="catalog.left" template="catalog/category/left.phtml">                         <block type="ristothemefrontend_handler/catalog_category_view" name="catalog.left.categories" as="categories" template="catalog/category/categories.phtml" />                         <block type="risto_programmablebanners/list" name="catalog.left.banners" as="banners">                             <action method="setBlockType"><type>category</type></action>                         </block>                     </block>                     <block type="ristothemefrontend_handler/catalog_layer_view" name="catalog.left.layer" template="catalog/layer/view.phtml">                         <action method="unsetChild"><alias>category_filter</alias></action>                     </block>                     <block type="ristothemefrontend_handler/catalog_product_list_toolbar" name="category.toolbar" template="catalog/category/toolbar.phtml" />                 </block>                 <block type="ristothemefrontend_handler/catalog_category_view" name="category.products.long_description" template="catalog/category/long_description.phtml"/>             </block>         </block>     </reference> </catalog_category_default> 

The blocks in the previous layouts (base / default etc.) are not overwritten, but loaded.

Laraval Eloquent – Getting data from another model inside Where

The code I have currently is split into 2.

$  response = Role::select('role_id')                        ->where('type','Admin')                        ->first();         $  admin_id = $  response->role_id;         //Check if user role_id is admin_id         $  response = UserRole::select('email')                             ->where('role_id',$  admin_id)                             ->where('id',$  user_id)                             ->first();         echo $  response->id; 

I am trying to combine it together into a single query.

I have 3 columns. Users, Roles, and User_roles. What I am trying to check is if the logged in user is admin.

What I am trying to do is, select email, if the current user has role_id of that of admin role.

Something like,

$  response = UserRole::select('email')  ->where('role_id',>>>>"select(role_id)->where('type','Admin')->first()"<<<)  ->where('id',$  user_id)  ->first(); 

How to make print messages show up immediately on console when inside a long loop?

I noticed something changed, I am not sure when this started, if it is with 12.0 or 11.3.

I like to use Print inside either Do or Table for debugging. I have all prints send to console which I have open to see how far the computation has gone so far.

  CurrentValue[$  FrontEnd, {"PrintAction"}] = {"PrintToConsole"} 

When the number of iterations is large, the front end do not show the print statements at all in the console, until after the loop finished. which defeats the purpose of the prints since I want to see the them as the loop is running.

It is either the console is not scrolling automatically, or the messages are buffered there but not flushed.

What is the correct way to make the Print show up immediately? I found that adding a Pause[0.1] after each print makes it display the print at each iteration. A smaller value of Pause that 0.1 did not work as well.

But this means the loop now takes longer time.

Here is a MWE I was using now.

ClearAll[x,y,t,n,m] L=20; H=30; c=3/10; f1[x_]:=Piecewise[{{1,48/100 L<= x<= 52/100 L},{0,True}}]; f2[y_]:=Piecewise[{{1,48/100 H<= y<= 52/100 H},{0,True}}]; numberOfTerms=200; res[n_,m_]=N@Integrate[f1[x]*f2[y]*Sin[(n Pi)/L x]*Sin[(m Pi)/H y],{x,0,L},{y,0,H}]; 

And now the loop.

Be careful. Before running this loop below, make sure to save all your work. As the front end can lock up until the loop is completed, which can take many long minutes. So if you do not want to wait, you might not be able to stop the evaluation.

Anm = Table[Print["n=", n, ", m=", m]; (*Pause[.1];*)     Evaluate[res[n, m]], {n, 1, numberOfTerms}, {m, 1, numberOfTerms}]; 

Now, as the above is running, looking at the console, shows that nothing is being printed, until the loop is completed, then all the messages will show at once.

Using 12.0 on windows 10 with 64 GB RAM.

Users with Read permission can not view the “Pending” alerts inside enterprise wiki pages

I am working on an Enterprise wiki site collection inside sharepoint on-premises 2013. and i have set the following approval settings:-

enter image description here

now i edited the home page and i added random text qqqqqq.. where the status for the page became “Pending”. now when i access the page using contributor user or approve user, they can view the pending change + pending yellow message, as follow:- enter image description here

while if i login using a Read user, the user can view the pending change (which sound valid based on the list settings), but the user did not get the yellow pending message, to explain to the user that the page he/she is reading is pending, as follow:- enter image description here

so can anyone advice if i can allow the Reader users to view the pending yellow message similar to contributors and above?