plotting – How to control the decimals in MaTex

I’m using MaTex to display the ticks of a stream plot. However, I would like to standardize the number of decimals displayed in this plot, that is, I would like to show just one decimal. My code is the following:

graf = Show(
  StreamPlot({If(u <= 0, -1, 1), u*w}, {u, -2, 2}, {w, -1, 1}, 
   StreamStyle -> Gray, 
   StreamScale -> {Automatic, 2, Automatic, 
     Function({x, y, vx, vy, n}, Sqrt(x x + y y))}, 
   WorkingPrecision -> 2), 
  Graphics({PointSize(0.015), Point({u(3*M), 0}), Point({-u(3*M), 0}),
     Point({u(1/2 (4 M - CC M)), 0})}), Frame -> True, 
  FrameStyle -> BlackFrame, 
  FrameTicks -> {{With({ticks = Range(-2, 2, .2)}, 
      Thread({ticks, 
        MaTeX(ticks, "DisplayStyle" -> False, Magnification -> m)})), 
     None}, {With({ticks = Range(-2, 2, .5)}, 
      Thread({ticks, 
        MaTeX(ticks, "DisplayStyle" -> False, Magnification -> m)})), 
     None}}, FrameLabel -> 
   MaTeX({"u/M", "M^{-1}(\textrm{d}u/\textrm{d}\eta)^2"}, 
    Magnification -> m), BaseStyle -> texStyle)

How can I do this?

documentation – Version Control For Figma

Looking for a better way to version-control designs in Figma. The default version control manager doesn’t show versions of a specific artboard and doesn’t show comments made for a specific version. I tried some methods like creating a page for each version but the document gets very big after dozens of iterations.

Is there an alternative to Figma version control having those features?
What’s the best way to take Figma version control to the next level?

unity – Control Cenimachine Freelook script from another script

I want to control variables on cenimachine script from another script. I want to control the speed of the camera rotation on the xAxis, but when ever I define a variable and replace it in the code:

public AxisState m_XAxis = new AxisState(-180, 180, true, false, xSpeed, 0.1f, 0.1f, "Mouse X", true);

I defined xSpeed as Public float so i can use and control it in another script. I defined it under

    public class CinemachineFreeLook : CinemachineVirtualCameraBase{Public float xSpeed = 300f; public AxisState m_XAxis = new AxisState(-180, 180, true, false, xSpeed, 0.1f, 0.1f, "Mouse X", true);}

I get the error in the unity console:

LibraryPackageCachecom.unity.cinemachine@2.5.0RuntimeBehavioursCinemachineFreeLook.cs(74,74):
error CS0236: A field initializer cannot reference the non-static
field, method, or property ‘CinemachineFreeLook.xSpeed’

here is the code from the beginning to the line where I get the error

using UnityEngine;
using Cinemachine.Utility;
using UnityEngine.Serialization;
using System;

namespace Cinemachine
{
/// <summary>
/// A Cinemachine Camera geared towards a 3rd person camera experience.
/// The camera orbits around its subject with three separate camera rigs defining
/// rings around the target. Each rig has its own radius, height offset, composer,
/// and lens settings.
/// Depending on the camera's position along the spline connecting these three rigs,
/// these settings are interpolated to give the final camera position and state.
/// </summary>
(DocumentationSorting(DocumentationSortingAttribute.Level.UserRef))
(DisallowMultipleComponent)
#if UNITY_2018_3_OR_NEWER
(ExecuteAlways)
#else
(ExecuteInEditMode)
#endif
(ExcludeFromPreset)
(AddComponentMenu("Cinemachine/CinemachineFreeLook"))
public class CinemachineFreeLook : CinemachineVirtualCameraBase
{
    public float xSpeed = 300f;

    /// <summary>Object for the camera children to look at (the aim target)</summary>
    (Tooltip("Object for the camera children to look at (the aim target)."))
    (NoSaveDuringPlay)
    public Transform m_LookAt = null;

    /// <summary>Object for the camera children wants to move with (the body target)</summary>
    (Tooltip("Object for the camera children wants to move with (the body target)."))
    (NoSaveDuringPlay)
    public Transform m_Follow = null;

    /// <summary>If enabled, this lens setting will apply to all three child rigs, otherwise the child rig lens settings will be used</summary>
    (Tooltip("If enabled, this lens setting will apply to all three child rigs, otherwise the child rig lens settings will be used"))
    (FormerlySerializedAs("m_UseCommonLensSetting"))
    public bool m_CommonLens = true;

    /// <summary>Specifies the lens properties of this Virtual Camera.
    /// This generally mirrors the Unity Camera's lens settings, and will be used to drive
    /// the Unity camera when the vcam is active</summary>
    (FormerlySerializedAs("m_LensAttributes"))
    (Tooltip("Specifies the lens properties of this Virtual Camera.  This generally mirrors the Unity Camera's lens settings, and will be used to drive the Unity camera when the vcam is active"))
    (LensSettingsProperty)
    public LensSettings m_Lens = LensSettings.Default;

    /// <summary> Collection of parameters that influence how this virtual camera transitions from
    /// other virtual cameras </summary>
    public TransitionParams m_Transitions;

    /// <summary>Legacy support</summary>
    (SerializeField) (HideInInspector)
    (FormerlySerializedAs("m_BlendHint"))
    (FormerlySerializedAs("m_PositionBlending")) private BlendHint m_LegacyBlendHint;

    /// <summary>The Vertical axis.  Value is 0..1.  Chooses how to blend the child rigs</summary>
    (Header("Axis Control"))
    (Tooltip("The Vertical axis.  Value is 0..1.  Chooses how to blend the child rigs"))
    (AxisStateProperty)
    public AxisState m_YAxis = new AxisState(0, 1, false, true, 2f, 0.2f, 0.1f, "Mouse Y", false);

    /// <summary>Controls how automatic recentering of the Y axis is accomplished</summary>
    (Tooltip("Controls how automatic recentering of the Y axis is accomplished"))
    public AxisState.Recentering m_YAxisRecentering = new AxisState.Recentering(false, 1, 2);

    /// <summary>The Horizontal axis.  Value is -180...180.  This is passed on to the rigs' OrbitalTransposer component</summary>
    (Tooltip("The Horizontal axis.  Value is -180...180.  This is passed on to the rigs' OrbitalTransposer component"))
    (AxisStateProperty)
    public AxisState m_XAxis = new AxisState(-180, 180, true, false, xSpeed, 0.1f, 0.1f, "Mouse X", true);

Is it possible to allow/deny connections to a domain name using Access Control Lists on Aruba switch?

I’m working on an Aruba 2900 series switch and I’d like to restrict any traffic except traffic from/to a handful of domain names.

What I have to far:

ip access-list extended "production"

deny ip any any
permit 192.168.64.0 0.0.0.255 192.168.64.0 0.0.0.255 // Allow internal traffic
permit 192.168.64.0 0.0.0.255 *.mydomain.local // Is this possible?

I was unable to find anything regarding the use of domain names in the documentation of Aruba/HPE

Is this possible? And if so, how can I achieve this?

Punjab Pollution Control Board

If you plan on starting any business that could generate pollutants such as chemical waste, detergent washing, fly ashes, smoke emissions (including cooking smoke), and medical waste, to name a few – also referred to as trade effluents. You will need to apply to the Punjab Pollution Control Board and obtain a pollution license or consent to establish your business.
This consent to establish will obtain before starting the business.Once the setup state is complete, you will have to apply and obtain a consent to operate ( CTO). This CTO will usually be valid for five years, which may vary from State to State.
The Ministry of Environment, Forest and Climate Change (MoEFCC) has built up the standards of the order of modern areas dependent on the Pollution Index, which is a component of the outflows (air contaminations), effluents (water toxins), dangerous wastes produced and utilization of assets. Examine the rundown of ventures that the Central Pollution Control Board has determined as requiring contamination permitted in the red, orange, green, and white classification.
As the name proposes, the Red classification industry has the most exceptional contamination list, such as substantial assembling enterprises, enormous lodgings, emergency dispensaries, etc. The orange classification is a moderately medium-sized endeavor, which creates nearly elevated levels of contamination. However, the Green classification is the arrangement of the business with a low contamination Index. Lastly, the white class, which is non-contaminating.

.(tagsToTranslate)webmaster forum(t)internet marketing(t)search engine optimization(t)web designing(t)seo(t)ppc(t)affiliate marketing(t)search engine marketing(t)web hosting(t)domain name(t)social media

permissions – Linux whitelist-based Mandatory Access Control instead of a blacklist-based model

I’m trying to harden a Linux installation on a personal computer – I decided to try both SELinux and AppArmor as a Mandatory Access Control (MAC) to supplement the default Discretionary Access Control (DAC) that Linux comes with by default.

However, after having played around with both solutions for a couple of days it seems to me that both of them have roughly the same model of security:

  1. All programs are unconfined by default.
  2. You define a security profile where you define access rules and permissions for a program.
  3. You enforce the security profile which restricts the program’s access/permissions.
  4. Repeat this for every program you want to restrict.

This model is a targeted security model where you define a specific security profile for a program based on paths (AppArmor) or object labels (SELinux) that it can access.

This seems quite odd to me, as what I would expect intuitively is a security model like so:

  1. All programs are fully confined by default (i.e. can’t do anything on the system)
  2. You define a list of programs you would like to whitelist (e.g. coreutils, system daemons etc.) or loosen the restrictions for programs that you trust (e.g. editor, package manager etc.)
  3. More specific profiles take precedence over the less specific profiles (i.e. /usr/bin/foo takes precedence over /usr/bin/*).
  4. When a new program is installed – the default profile is automatically applied to it and you need to manually loosen the restrictions / whitelist it to increase the access permissions of that program.

This model applies the maximum security globally – where every program is confined by default – and uses the whitelist approach to expand the capabilities of a specific program or a list of programs as per your requirements.

As far as I know the first model is how both AppArmor and SELinux function by default. Is there a way to implement a MAC security layer in Linux which follows the second approach? I would like to maximally restrict all programs by default unless I specify otherwise – as this seems to be a better security model in my opinion and is how I would expect the MAC layer to work intuitively.

operating systems – Confused between the terms Process and Process Control Block

I was reading about the Long term scheduler, when I read that when memory is not enough and load on the CPU due to multiprogramming is too high, a process might be moved to secondary storage space (namely swap space). I am slightly confused as too what exactly happens when a process is moved out of memory. Is its “PCB(Process Control Block)” moved out and store in Hard disk or something else like “process state”.

I believe that this confusion is due to lack of clarity between “process in memory” and “process control block”. Are the two things different or the same?

process control Block
process in memory

version control – Can I do exponential binary search, or open-interval git bisect?

git bisect is great to locate the commit that introduced a bug. You just need to know a good commit where the bug is not present, a (newer) bad commit where it is present, and a method to test whether the bug is present in any given commit. Then git bisect guides you through a binary search.

I’m interested in the situation where I don’t know a good commit. I’m assuming that there is one in the past, but I just don’t remember it. Finding it out manually is a huge manual labour that I want to avoid.

Can I run git bisect in a way such that I don’t need to specify a good commit? Can it find a good commit for me?

I’m surprised this problem isn’t well-known. I run into it every month.

One approach might be taking the first commit of the repository and marking that as good. But this has a number of problems.

The standard solution to such a problem is exponential search. The good commit is located by going to HEAD~1, then HEAD~2, HEAD~4, HEAD~8 and so on until a good commit is encountered. This also works in logarithmic time and is much better than going backwards through all the history, because we start with commits to which our testing method will probably apply well.

Is exponential search implemented for git bisect? Are there helper scripts that do it? How do you solve this problem?