Pivot not updating programmatically

I have a canvas. It has an empty game object as a child. That object has a RectTransform component. The RectTransform pivot value is set to 0.4, 0.5 (x, y). In some code I wanted to update the pivot value using the following:

Debug.Log(((RectTransform)transform).pivot);  // logs: (0.4, 0.5) ((RectTransform)transform).pivot.Set(0.3f, 0.8f); Debug.Log(((RectTransform)transform).pivot);  // logs: (0.4, 0.5) 

I don’t know why the set command is not working. The tooltip for Set is: “Set x and y components of an existing Vector2”

Unity Editor stops updating ScriptableObjects if I click away from them in editor

I’m trying to be better about structuring my code, and I think I’m doing it right. The issue I’ve got right now is I need to get joystick inputs, scale those values appropriately, and then use that scaled data on any number of MonoBehaviour scripts.

I’m trying to split the input conditioning from the end user, and I’d like to do that by using a ScriptableObject to hold the conditioned data.

I was thinking that a MonoBehaviour script would run, get the joystick data, scale it, and then push that data to variables in the ScaledJoystickData ScriptableObject. Later, a second MonoBehaviour script would access the variables in the ScaledJoystickData and use those to move the things in the game.

I’m understanding the benefits of structuring the code this way, especially in that I can access the ScriptableObject from the editor and manipulate those values; I don’t actually need to have a joystick connected, and I’m free to test either end of the input handling independently.

The problem is that, if I am looking at the ScriptableObject instance in the editor, it stops updating as soon as I click away from it (to the consuming GameObject). If I click back to the ScriptableObejct instance, none of the values update. Nothing on the GameObject’s script updates unless I start the game with that GO selected in-editor, and again THAT fails to update if I click off and click back.

The GameObject script is currently using the values from the ScriptableObject instance and piping them to public variables, and the public variables aren’t updating.

Is there some bug with ScriptableObjects, or am I doing this wrong?

Updating Sharepoint using Flow and Excel

I have a SharePoint list and want to update a specific field using Excel and Flow.

I understand how to pull the Excel table (using Get List Rows Present) and then to pull up the Update Item action however I’m unsure how to tell Flow which field in the Excel table relates to the Id in SharePoint (i.e. the one described as ‘Unique Identifier of Item to be Updated’)

Sorry – I’m a novice, so simple responses would be appreciated.

Best options to page a dynamically updating list

We’ve got a list of very dynamic items. New items are frequently added to the list (maybe one every few seconds).

The items can also be re-arranged (say they’ve been sorted by ‘last updated’ and one is updated by the system).

Our problem comes with paging this list. If the user has it sorted by “latest”, and they’re looking at the top 20 paged items for, say, 20 seconds, then scroll down – 5-10 items might now have been created.

If we naively query the database to get items “20-40” (the next ‘page’, although it’s actually a scroll), we’ll get duplicate items.

We’ve spent quite a lot of effort in our backend to be able to query our list from a specific date – we send a “get me items 20-40 FROM THIS TIME” to the back end.

However, that’s quite a difficult requirement for the database schema and back-end, we can’t support some things we want to because we have to try keep duplicate records for this ‘history’.

Are there any generally accepted strategies for dealing with this kind of situation?

Unable to install npm after updating Ubuntu 18.04 to 19.04

After updating ubuntu from 18.04 to 19.04, several modules and packages has been removed from my system. While installing npm following error is showing

Reading package lists… Done Building dependency tree
Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: npm : Depends: node-gyp (>= 3.6.2~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

I’ve tried almost every solutions but still not able to resolve it.

Thanks in advance.

Workflow initiation form not updating the parameters

I have an existing workflow in SharePoint Online that uses a drop-down list on the initiation form. In the past I have been able to modify the available choices with no problem, but currently if I add/remove/change one of the choices in the Initiation form parameters box and then re-publish the workflow, it does not show the changes on the WFInitForm when running the workflow.

Publishing appears to be successful as far as I can tell but if I close SPD and then re-open it, the Initiation form parameters have reverted back to the original values.

If I delete the WFInitForm.aspx file and re-publish, a new file is created but it keeps the original values. I’ve also tried adding a new field to the form but get the same result.

I’ve also been able to reproduce the issue on a different site collection with a brand new workflow.

Has anyone else experienced this or have any suggestions for me to try before contacting Microsoft?

Webpage isn’t updating changes unless I restart apache2

I’ve been searching for a solution to this problem for a very long time now and I just can’t seem to figure it out.

I’ve installed apache2 and mysql and php7.0 on a fresh install of ubuntu yet the problem stil persists.

Just trying to create an ideal web development environment. The process goes as follows: 1) start apache2 && mysql 2) make changes to my index.php file in /var/www/html 3) check my ip using ifconfig and then go to that adress 4) notice my changes haven’t taken place!! 5) restart apache2 6) refresh my page and realize that the changes have been made

Why wont apache2 recognize changes made without having to completely restart the service everytime???

Sharepoint Foundation REST interface, updating an object fails

I’m using the REST interface detailed here -https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ff521587(v%3Doffice.14)

As a proof of concept, I’m trying to access an item in a list from our Sharepoint 2010 intranet site and update a field.

To do this, I created a Connected OData service to the endpoint (AccountingWorkflowsDataContext) and here is my code –

var tasks = new AccountingWorkflowsDataContext(new Uri(                     "https://mysite/_vti_bin/ListData.svc"));   tasks.Credentials = new NetworkCredential("username", "password", "domain"); var task = tasks.GLRecsTasks.Where(x => x.StatusValue != "Completed" && (x.AssignedToId == 1 || x.AssignedToId == 2)).First();  task.DueDate = DateTime.Now.AddDays(5); tasks.UpdateObject(task); tasks.SaveChanges(); 

I can connect to the list and I’m picking up the correct item and I’m tracking changes to it as well, however, the call to SaveChanges always fails with the message “An error occurred while processing this request.” and the innner exception is –

<?xml version="1.0" encoding="utf-8" standalone="yes"?> <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">   <code></code>   <message xml:lang="en-US">An error occurred while processing this request.</message> </error> 

Can someone shed some light on this.