controllers – Joystick servo control axis value when idle (unity)

When the joystick servo control is idle (user not moving it) , i don’t believe the axis value will be 0 because there’s a lot of thing that interfere with the value (such as calibration , inaccuracy , physics problem in real life , ect . . ) . Is anybody have tested at which range the joystick servo control axis value is safe to be considered as idle? (both negative and positive) . I’m looking for constants here.

To anyone confused what does i meant with joystick servo control , picture below :
(ps : not my image, i found it on google)

joystick servo control

Default Concurrency Control Implementation in MySQL

What is the default implementation of concurrency control in MySQL? Is it optimistic locking (multi version concurrency control), or pessimistic locking (2 phase locking)? More specifically, how does InnoDb do it?

Is there extra Javascript involved in the 2016 version of a multi-lookup control?

I have to filter the available options for a multi-lookup field based on the value of a Taxonomy field. I had it working in 2013 doing this:

  • On page load, detach all the option elements from the _SelectCandidate select control and store them in an array.
  • Once the Term has been selected, make a REST query to the lookup list to return all items that are tagged with the same Term.
  • Filter through the array of all options and return the ones whose value matches an ID of the items returned from the REST query.
  • Append the matches back into the _SelectCandidate select control.

This worked fine, even for Editing, because any selected options would be in the _SelectResult control and therefore wouldn’t be in the candidate options that got filtered according to the REST query results, and the Add and Remove buttons seemed to just pop the options back and forth between the selects.

But in SP 2016, if I go to remove one of the previously selected options, not only does that option move back to the candidate select, but also, all of the original options that should have been filtered out reappear.

I poked around in the HTML and I saw that there was a hidden input field with an ID that ended in _data that seemed to have an encoded version of what all the options would be.

So, I tried modifying that to only have the filtered options that I wanted to count as “all valid candidates”. However, even after doing that, when trying to remove a selected option, the candidate box still gets repopulated with all the options, including the ones I want filtered out, so it seems that teh value of that hidden _data input is unimportant, at least after the page loads.

So is the multi-lookup control now being controlled by some extra Javascript somewhere, that’s maybe caching it’s own version of “all the valid candidates”? How can I hijack that to make sure my filtering is applied correctly? core – Dependency access control in DI

As I’m just getting into ASP.NET Core, I’m also continuing to slowly learn about Dependency Injection and still trying to identify some value in it for our practical purposes. The point I’ve reached leaves me asking, if all of the dependencies for a given operation must be injected into the controller, what limits developers from misusing those dependencies in inappropriate spots? For example, if a controller must have an Entity Framework database context and an IMemoryCache injected into its constructor so that it can pass them all the way down to your data access layer, what now prevents Dudley the dull developer from accessing the cache or executing a database query directly from the controller? The controller and every layer actor in between having to act as a broker for dependencies they should know nothing about is making me uncomfortable with it, but I’m sure this must be addressed. How is this handled?

version control – Continuous Integration practices for forked repository

We have an on-premises BitBucket server with a git repo for an embedded device. We use a multi-branch pipeline in Jenkins to:

  • Build and run tests
  • Build the firmware (and a little supporting PC tool)
  • (In the near future) run hardware-in-the-loop integration tests
  • Upload artifacts to Artifactory (if the branch name meets certain requirements)

Now, for a spin-off project which uses the same hardware, I have created a fork of the repository in BitBucket, of which I start to doubt the added value now (elaboration at the end of my post). I will be the main contributor of this, just like in the other repo.

To have good CI practices in the spin-off too, I cloned the VM which contains the Jenkins instance and changed its pipeline to use the fork. To not have duplicated build time of the main branches of the original project, I configured some branch name filters. I created a secondary develop branch (let’s call it spinoff-develop) in the fork and set this as default, to allow integrating the spin-off features together, while keeping develop clean, allowing receiving upstream updates (which are automatically synced from the original by BitBucket, this would otherwise break). So far so good, the Jenkins clone now runs builds for any branch not named master or develop.

Now I run into the issue that there is some logic in my Jenkinsfile to determine when to upload a build to Artifactory. Of course I can change that logic in the fork, but when I eventually decide to merge useful changes from the fork into the original project, those will be changes which I can’t accept there. Should I start playing around with Jenkins environment variables to get around this? I don’t prefer that, as I want to keep as little configuration as possible in Jenkins, because I regard it “volatile” and it should not take too much time to set it up again if anything bad happens to it (there are also initiatives in the company to automate this more with a kind of “Infrastructure as code” approach but I don’t use them yet).

As mentioned above, I doubt the direction where I am going with this, because of the increased complexity. The reason for the fork is that I am not 100% certain yet whether the spin-off contributions will be eventually merged back into the original project, but I want easy integration of upstream changes into the spin-off. Also, if another team would ever take over the spin-off, it’s easy to just grant them full access to the fork in BitBucket and give them the VM.

What are your thoughts about this?

EDIT: I could add Jenkinsfile-spinoff and have the clone use that. But my main concerns do still apply, and is this a good solution in the end? Suppose there were 100 forks, would there need to be 101 Jenkinsfiles?

Control functions in mobile Youtube iFrame

Is it possible to add controls into mobile version of YouTube iFrame player?
With controls I mean being able to change the speed and quality of the video, or turn on the subtitles.

version control – Questions about cloud hosting for a solo dev

So basically I’m shopping around for the right version control software. Whether free/open-source like SVN, or paid like Plastic, I keep seeing references to cloud hosting, which pretty much always requires some kind of extra subscription.

As someone with a non-technical background, I don’t feel like I have a good grasp on whether or not cloud hosting is even something that I would benefit from as a solo developer. What are the pros and cons?

And even if it’s something I do need, is there a “free” way to go about it?

For example, would it be a valid workflow to install SVN for maintaining a local repository on my computer, and then just manually upload my current project version to GitHub periodically to serve as a sort of “offsite backup”?

licensing – Can choices of version control software control how you can sell or distribute your project?

Basically I’m doing a lot of research lately on the various version control options available to a solo indie dev — Git, Plastic SCM, SVN, and so forth.

As someone without a strong CS/technical background, I don’t feel like I have the best handle on all the implications of using open source software. Additionally, sometimes the paid products’ licensing sections, like this one for Plastic SCM, aren’t fully clear (e.g. they don’t define what makes someone a “hobbyist” — can a “hobbyist” still sell their work, or would that, legally speaking, make you a “professional”?)

Basically I’m wondering if there’s a handy explainer somewhere for important things to know when choosing VCS based on what you plan to do with your eventual finished project, so I don’t have to exhaustively research each program one by one. Or alternatively, if this is a non-issue and I can just move forward without worrying about the legalese :).

How do you install php modules in Directadmin Control panel?

How do you install php modules or extensions in Directadmin?

Can any body help please?… | Read the rest of

dock – Windows Dissapear in Mission Control (Mac OS Catalina 10.15.5)

Windows will shrink/reduce to nothing while using the Mission Control feature. This applies to both the button and the three finger gesture. No other workspaces are open, and I have attempted to both restart the system and the dock, to no success. defaults read only shows that showMissionControlGestureEnabled is enabled.

Unfortunately, I lost track of when this first appeared. If someone could nudge me in the right direction to diagnose the issue, I could tinker.