Applications – Looking for a library to implement a vertically segmented progress bar with scaling and captioning

I am looking for a library to implement the following design in Android (and later for iOS):

Vertical progress bar with colored segments and scale

It is important that the following is displayed on the progress bar:

  • Segments with different colors
  • a linear scale of numbers above or below
  • a labeled pointer of the current progress
  • (Optionally, it is also ok if the label can be written to the bar itself.)

I've already looked at a lot of chart libraries, like AnyChart, Highcharts, MPAndroidChart, but these libraries are mostly for diagrams and none of them have such exact functionality. I also tried to search for progress bar libraries, but these usually do not support such advanced features.

opengl – GLSL billboard without scaling or rotation from the projection

I have an object that I want to render as a billboard in GLSL. It almost works, except that objects on billboards are still scaled based on distance and are not aimed directly at the camera when the camera is not looking directly at them.

Here are two boxes with the same transformation, except for their Z coordinates, with the camera pointing slightly above:

crates

Their rotations are corrected so that their front faces the camera. However, they are easily turned away from the camera when they are not in the center of the screen, and the farther field is still downsized.

Here's how to display my non-billboard networks:

void display()
{
    gl_Position = projection * (vec4(position, 1.0) * (transformation * inverse(view)));
    fragCoord = texCoord;
}

That works fine.

I've copied a tutorial from here: https://www.geeks3d.com/20140807/billboarding-vertex-shader-glsl/ and found this code in my vertex shader:

void displayBillboard()
{
    mat4 bbTransformation = transformation * inverse(view);

    bbTransformation(0)(0) = 1.0;
    bbTransformation(0)(1) = 0.0;
    bbTransformation(0)(2) = 0.0;

    bbTransformation(1)(0) = 0.0;
    bbTransformation(1)(1) = 1.0;
    bbTransformation(1)(2) = 0.0;

    bbTransformation(2)(0) = 0.0;
    bbTransformation(2)(1) = 0.0;
    bbTransformation(2)(2) = 1.0;

    gl_Position = projection * (vec4(position, 1.0) * bbTransformation);

    fragCoord = texCoord;
}

I thought that setting the top 3×3 of bbTransformation to the 3×3 identity matrix would delete all scaling and rotation, but this does not seem to be the case. I suspect that the billboard, which does not show the camera, is due to the projection, but I'm not sure how to handle it. My projection matrix was created with gluPerspective(25, (double)WINDOW_W / (double)WINDOW_H, 1.0, 1000.0);,

I want to correct the rotation and not scale billboards based on distance. How can I do that?

macos – Privilege scaling with OSX Meterpreter

I test Metasploit on my own computer. I was able to run meterpreter through a reverse TCP shell, but I can not use some tools like post / osx / gather / hashdump because I do not have root privileges.

Since this is my PC, I know the password, but when I try to use multi / manage / sudo, I get the error "SUDO: Did not work, still a mere user."

What am I doing wrong? Is there another way to get to root?

Thanks a lot!

Unarmed Fight – Scaling for Powerful Fist

Given the description for powerful fist:

You know how to use your fists as deadly weapons. The damage die for your fist increases to 1d6 instead of 1d4. Most people suffer a -2 penalty when they make a deadly attack with non-lethal unarmed attacks because they find it difficult to use their fists with lethal force. You will not receive this penalty if you make a fatal attack with your fist or other unarmed attacks.

If a Barbarian or other class with damage greater than 1W4 has been multi-classified as a Monk and received that talent, it would increase by a single step, such as 1W6 -> 1W8, or will that not increase at all?

My group has been discussing this for several hours now. Send us help.

c ++ Daubechies Wavelet and Scaling Filter: Is there a better way?

I've calculated the Daubechies wavelet and scaling filters in float. double. long double, and quad Accuracy and want to make these filters available in a usable API. My problem is this: I want to make sure that these filters are correct for every single bit, so I wrote them as hexadecimal floating-point literals. Then I wanted them to be parsed in the right format, so I have to attach literals like that f. L, or Q, But to analyze it as the right guy, I have to duplicate it over and over again, resulting in a monstrous result #include File, given here

The file is too big to include in the question, but here's a quick example:

#ifndef BOOST_MATH_FILTERS_DAUBECHIES_HPP
#define BOOST_MATH_FILTERS_DAUBECHIES_HPP
#include 
#ifdef BOOST_HAS_FLOAT128
#include 
#endif
namespace boost::math::filters {

template 
constexpr std::array daubechies_scaling_filter()
{
    static_assert(sizeof(Real) <= 16, "Filter coefficients only computed up to 128 bits of precision.");
    static_assert(p < 25, "Filter coefficients only implemented up to 24.");
    if constexpr (p == 1) {
        if constexpr (std::is_same_v) {
            return {0x1.6a09e6p-1f, 0x1.6a09e6p-1f};
        }
        if constexpr (std::is_same_v) {
            return {0x1.6a09e667f3bcdp-1, 0x1.6a09e667f3bcdp-1};
        }
        if constexpr (std::is_same_v) {
            return {0xb.504f333f9de6484p-4L, 0xb.504f333f9de6484p-4L};
        }
        #ifdef BOOST_HAS_FLOAT128
        if constexpr (std::is_same_v) {
            return {0x1.6a09e667f3bcc908b2fb1366ea95p-1Q, 0x1.6a09e667f3bcc908b2fb1366ea95p-1Q};
        }
        #endif
    }
    if constexpr (p == 2) {
        if constexpr (std::is_same_v) {
            return {0x1.ee8dd4p-2f, 0x1.ac4bdep-1f, 0x1.cb0bfp-3f, -0x1.0907dcp-3f};
        }
        if constexpr (std::is_same_v) {
            return {0x1.ee8dd4748bf15p-2, 0x1.ac4bdd6e3fd71p-1, 0x1.cb0bf0b6b7109p-3, -0x1.0907dc193069p-3};
        }
        if constexpr (std::is_same_v) {
            return {0xf.746ea3a45f8a62ap-5L, 0xd.625eeb71feb8557p-4L, 0xe.585f85b5b8845bdp-6L, -0x8.483ee0c9834834cp-6L};
        }
        #ifdef BOOST_HAS_FLOAT128
        if constexpr (std::is_same_v) {
            return {0x1.ee8dd4748bf14c548b969de58fap-2Q, 0x1.ac4bdd6e3fd70aae9f48d8a63d1bp-1Q, 0x1.cb0bf0b6b7108b79b4bf11d08b16p-3Q, -0x1.0907dc1930690697b13714fd4a15p-3Q};
        }
        #endif
    }
...

template
std::array daubechies_wavelet_filter() {
    std::array g;
    auto h = daubechies_scaling_filter();
    for (size_t i = 0; i < g.size(); i += 2)
    {
        g(i) = h(g.size() - i - 1);
        g(i+1) = -h(g.size() - i - 2);
    }
    return g;
}

Is there a way to specify the filter coefficients only once with the maximum allowable precision and have the compiler analyze it as the user-requested type and save it? constexpr?

Keep the filter coefficients constexpr a reasonable desideratum here? (I'm not even sure if I should do that p a template parameter. , .) If so, note that the scaling filters constexprbut the wavelet filters are not. Is there a way to get around that?

C ++ 17 solutions are acceptable. C ++ 20 solutions are. , , less, but if they can be shown to dramatically improve the code, what is the correct language update?

Linux – No scaling can be selected for each monitor – Fedora v30

I'm using Fedora v30 on an X1 Carbon ThinkPad and have some basic configuration issues with a single dual monitor connected via HDMI.
The display settings provide an option for scaling on each monitor, but only the built-in display scaling changes, which happens on both screens (although there is an obvious option for each screen).

Ideally, I want the built-in display to display 200% and the dual monitor 100%, otherwise the menu / toolbars on each screen will be very large / small. Fedora does not seem to offer many ways to change things, and I'm not sure how else to optimize it. Do I miss something? How to manually change the size of toolbars in Fedora?

Virtual Machines – Azure VM Scaling Set – Scaling during the task

This seems to be a fundamental question, but I could not find an answer that went through my head.

How do scaling sets know that a particular VM is ready and can be de-provisioned?

The scale FAQs will first remove the VMs with the highest IDs. It does not say anything about whether it's a mid-task or not.

This is important for my application as my tasks are performed long (about 30 minutes on a 1CPU / 4GB computer).