Button class does not block events from reaching fallbackInputStack

Overview
Button class (HoloToolkit.Unity.Buttons.Button) does not mark received Event Data as used. This causes events to be handled twice, once by the button callbacks, and once by handlers inside InputManager.fallbackInputStack.
Expected Behavior
From /Assets/HoloToolkit/Input/README.md

handle various types of input and send them to any game object being currently gazed at, or any fallback object.

This means that events sent to the button shouldn't be sent to the fallback object.
Actual Behavior
Pressing a button also activates both the fallback object's method and the callback on the button.
Steps to reproduce

git clone https://github.com/SujeathPareddy/MixedRealityToolkit-Unity.git
git checkout origin/june18_dev
git checkout 9a44898316c89 (This is an intermediate commit before I fixed the bug)
Open Assets/repro scene
Press play
Shift + left click on the circular button
Observe that two types of callbacks are emitted in the console. (relevant code is in attachtobutton.cs). The callback registered directly with the button is executed twice, possibly related to #1879.

Fix
The bug is in Button.cs. The passed eventData parameter should call EventData.Use() before returning.
The patched version is here.
Demo of potentially fixed code here:
git checkout origin/june18_dev
Note on behaviour: If the button has no registered callbacks, then the event is not marked as used. This is a matter of opinion. I believe this makes the most sense in my app's context. Perhaps there should be a flag on the Button class.
Unity Editor Version
2017.3 and 2017.4
Mixed Reality Toolkit Release Version
2<IP_ADDRESS>

Ahh, good catch! This sounds like a bug to me. @cre8ivepark, was this done by-design for some reason?

@keveleigh I experienced the same issue on my personal projects. @paseb Could you please verify this issue? Thanks!

@cre8ivepark Perhaps you can replace your Button.cs with the patched one and see if it gets fixed.

Any update on this? I am happy to work on a pull request.

@SujeathPareddy, please feel free! This sounds like a bug that should be fixed.

Hey, I am using the Button out of the Toolkit. I pulled it for the first time a two weeks ago. I am still seeing this issue. I have a fallback event and two buttons that are both still activating the fallback. I checked the button.cs, but all the input have their own eventdata.Use(). Is there any other thing that needs to be done to get the proper functionality. When I deactivate the fallback gameobject the buttons behave as intended.

Is it possible that the raycast is somehow hitting the ground before hitting the button?
This could happen if there were some incorrect raycast flags on the button. Another possibility is that the button is somehow intersecting or overlapping with the collider of the fallback.

I have not changed any of the raycast functionality, but I am not quite sure of everything that is happening there or how to check if that's happening. If you have a suggestion I can check that though.
The button should not be overlapping with the fallback collider. The fallback is just an empty gameobject. Additionally, I placed it at 100,100,100 and I am viewing at origin, so it should not be interfering.

Could you put a breakpoint on each line with eventData.use() and see if it's getting hit? I am able to see that it's getting hit on my machine.
If it isn't, then it might be some issue with the conditions in the if block. That could be mean a new bug or perhaps some issue with the way the prefab is being used.

So I was able to get the fallback function to work successfully with ButtonTraditional. When I had the breakpoint for that button it all occurs properly and I consume the event on exit, enter, clickUp, and down. But when I am using the Button it does not fire any of the method that consume the event.

I can't say for sure but I think this is an issue with your prefab.
If the functions aren't being called at all, then it's probably unrelated to this issue.


[BUG] BF16 training with FP32 gradient accumulation - Zero Stage 1 CPU - DeepSpeedCPUAdam

I am trying to train a model with bf16,  fp32 gradient accumulation and zero stage 1. Using DeepSpeedCPUAdam as optimizer.
Config
{
    "steps_per_print":10000,
    "wall_clock_breakdown":true,
    "train_batch_size": 1024,
    "gradient_accumulation_steps": 16,
    "train_micro_batch_size_per_gpu": 2,
    "fp32_allreduce": true,
    "data_types": {
        "grad_accum_dtype":"fp32"
    },
    "bf16": {
        "enabled": true
    },
    "optimizer": {
        "type": "DeepSpeedCPUAdam",
        "params": {
            "lr": 0.001
        }
    },
    "gradient_clipping": 1.0,
    "scheduler": {
        "type": "WarmupLR",
        "params": {
            "warmup_min_lr": 0,
            "warmup_max_lr": 0.001,
            "warmup_num_steps": 1000
        }
    },

    "zero_optimization": {
        "stage": 1,
        "offload_optimizer": {
            "device": "cpu",
            "pin_memory": true
          },
      "allgather_partitions": true,
      "reduce_bucket_size": 5e8,
      "allgather_bucket_size": 5e8,
      "reduce_scatter": true,
      "overlap_comm": true,
      "round_robin_gradients":true,
      "contiguous_gradients": true,
      "sub_group_size": 1e9
    },
  }

ds_report output
--------------------------------------------------
DeepSpeed C++/CUDA extension op report
--------------------------------------------------
NOTE: Ops not installed will be just-in-time (JIT) compiled at
      runtime if needed. Op compatibility means that your system
      meet the required dependencies to JIT install the op.
--------------------------------------------------
JIT compiled ops requires ninja
ninja .................. [OKAY]
--------------------------------------------------
op name ................ installed .. compatible
--------------------------------------------------
 [WARNING]  async_io requires the dev libaio .so object and headers but these were not found.
 [WARNING]  async_io: please install the libaio-dev package with apt
 [WARNING]  If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
async_io ............... [NO] ....... [NO]
cpu_adagrad ............ [YES] ...... [OKAY]
cpu_adam ............... [YES] ...... [OKAY]
fused_adam ............. [YES] ...... [OKAY]
fused_lamb ............. [YES] ...... [OKAY]
quantizer .............. [YES] ...... [OKAY]
random_ltd ............. [YES] ...... [OKAY]
 [WARNING]  sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.1
 [WARNING]  using untested triton version (2.1.0+9e3e10c5ed), only 1.0.0 is known to be compatible
sparse_attn ............ [NO] ....... [NO]
spatial_inference ...... [YES] ...... [OKAY]
transformer ............ [YES] ...... [OKAY]
stochastic_transformer . [YES] ...... [OKAY]
transformer_inference .. [YES] ...... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/work2/conda/envs/env/lib/python3.11/site-packages/torch']
torch version .................... 2.1.0.dev20230725+cu121
deepspeed install path ........... ['/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed']
deepspeed info ................... 0.10.0+unknown, unknown, unknown
torch cuda version ............... 12.1
torch hip version ................ None
nvcc version ..................... 12.0
deepspeed wheel compiled w. ...... torch 2.1, cuda 12.1

Error message
CPUAdam param is on cuda:7 and must be 'cpu', make sure you enabled 'offload_optimizer': 'cpu' in your ZeRO config.
But offload_optimizer is already set in our config.
Same config works if I change the grad_accum_dtype to "bf16" with zero code changes.
    self._configure_optimizer(optimizer, model_parameters)
           ^^^^^^^^^^^^^^^^^^
  File "/work2/dragoon_deepspeed/deepspeed_trainer.py", line 320, in <module>
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/engine.py", line 1220, in _configure_optimizer
AssertionError: CPUAdam param is on cuda:5 and must be 'cpu', make sure you enabled 'offload_optimizer': 'cpu' in your ZeRO config.```

Can someone help by letting me know how to solve this?

Could you try this branch: https://github.com/microsoft/DeepSpeed/pull/4084

@jomayeri Tried that, now facing another error. Here is the trace.
    ret_val = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/engine.py", line 1917, in backward
    self.allreduce_gradients()
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/engine.py", line 1844, in allreduce_gradients
    self.optimizer.reduce_gradients(pipeline_parallel=self.pipeline_parallelism)
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 671, in reduce_gradients
    self.reduce_ready_partitions_and_remove_grads(param, i)
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 1318, in reduce_ready_partitions_and_remove_grads
    self.reduce_independent_p_g_buckets_and_remove_grads(param, i)
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 887, in reduce_independent_p_g_buckets_and_remove_grads
    self.reduce_ipg_grads()
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 1265, in reduce_ipg_grads
    self.average_tensor(self.extra_large_param_to_reduce.grad.view(-1))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'view'

@jomayeri tried the branch build. Facing a different error.
Here is the stack trace.
    self.allreduce_gradients()
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/utils/nvtx.py", line 15, in wrapped_fn
    ret_val = func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/engine.py", line 1843, in allreduce_gradients
    self.optimizer.reduce_gradients(pipeline_parallel=self.pipeline_parallelism)
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 671, in reduce_gradients
    self.reduce_ready_partitions_and_remove_grads(param, i)
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 1318, in reduce_ready_partitions_and_remove_grads
    self.reduce_independent_p_g_buckets_and_remove_grads(param, i)
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 887, in reduce_independent_p_g_buckets_and_remove_grads
    self.reduce_ipg_grads()
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 1265, in reduce_ipg_grads
    self.average_tensor(self.extra_large_param_to_reduce.grad.view(-1))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'view'

Can you provide a script so I can repro it.

I was able to exercise the code path, another fix was pushed.

Thanks @jomayeri , I tried from the branch again. Now facing error at a different location and here are my observation.
            for i, group in enumerate(self.bit16_groups):
                for param in group:
                    grad_reduc = self.get_gradient_for_reduction(param)
                    if grad_reduc is not None:
                        self.reduce_ready_partitions_and_remove_grads(param, i)

this call to self.get_gradient_for_reduction(param) has param.grad_accum but  when this calls self.reduce_ready_partitions_and_remove_grads(param, i)
def reduce_independent_p_g_buckets_and_remove_grads(self, param, i):
        grad_reduc = self.get_gradient_for_reduction(param) ->This call to the function has None for param.grad_accum

        return param.grad_accum.to(self.dtype) if self.use_grad_accum_for_reduction else param.grad

Stack trace
    self.optimizer.reduce_gradients(pipeline_parallel=self.pipeline_parallelism)
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 669, in reduce_gradients
    grad_reduc = self.get_gradient_for_reduction(param)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work2/conda/envs/env/lib/python3.11/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 840, in get_gradient_for_reduction
    return param.grad_accum.to(self.dtype) if self.use_grad_accum_for_reduction else param.grad
           ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'to'

Also if this helps,
Zero stage 2 works for the same config from the #4084 , issue happens only in stage 1.
The same zero stage 2 doesn't work from 0.10.0.

That should be fixed now as well.

This is a strange issue, I want to test stage0 and this issue appears. But it works fine on stage1.


failure to commit

Issue Type: Bug
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
$ git status
warning: could not open directory 'Application Data/': Permission denied
warning: could not open directory 'Cookies/': Permission denied
warning: could not open directory 'Local Settings/': Permission denied
warning: could not open directory 'My Documents/': Permission denied
warning: could not open directory 'NetHood/': Permission denied
warning: could not open directory 'PrintHood/': Permission denied
warning: could not open directory 'Recent/': Permission denied
warning: could not open directory 'SendTo/': Permission denied
warning: could not open directory 'Start Menu/': Permission denied
warning: could not open directory 'Templates/': Permission denied
On branch making_websites
Changes not staged for commit:
(use "git add/rm ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
deleted:    OneDrive/Desktop/JWD/MAKING WEBSITE PRACTICE FOLDER/simpleherosection.html
deleted:    OneDrive/Desktop/JWD/MAKING WEBSITE PRACTICE FOLDER/simpleherostyle.css
deleted:    README.md
Untracked files:
(use "git add ..." to include in what will be committed)
.gitconfig
.vscode/
AppData/
Contacts/
Documents/
Downloads/
Favorites/
Landing_Page/
Links/
MicrosoftEdgeBackups/
Music/
NTUSER.DAT
NTUSER.DAT{fd9a35db-49fe-11e9-aa2c-248a07783950}.TM.blf
NTUSER.DAT{fd9a35db-49fe-11e9-aa2c-248a07783950}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{fd9a35db-49fe-11e9-aa2c-248a07783950}.TMContainer00000000000000000002.regtrans-ms
OneDrive/.849C9593-D756-4E56-8D6E-42412F2A707B
OneDrive/Desktop/Grammarly.lnk
OneDrive/Desktop/IMPORTANT CODES/
OneDrive/Desktop/Ivan_Challenge/
OneDrive/Desktop/JWD/ivan_studentsite/
OneDrive/Desktop/Landing_Page HTML and CSS/
OneDrive/Desktop/SPICUS FEEDBACKS.txt
OneDrive/Desktop/Spicus.html
OneDrive/Desktop/Spicus.lnk
OneDrive/Desktop/Spicus_files/
OneDrive/Desktop/VIPKID FEEDBACKS/
"OneDrive/Desktop/Your Progressive Home Advantage\302\240Homeowners Insurance Quotation -<EMAIL_ADDRESS>
Gmail_files/"
OneDrive/Desktop/desktop.ini
OneDrive/Desktop/website_practice_folders/
OneDrive/Document 2.docx
OneDrive/Documents/
OneDrive/Personal Vault.lnk
OneDrive/Pictures/
OneDrive/desktop.ini
Pictures/
Saved Games/
Searches/
Tracing/
Videos/
bootstrap_practice/
fonts/
jwd_final_project/
my-portfolio-site/
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini

VS Code version: Code 1.64.0 (5554b12acf27056905806867f251c859323ff7e9, 2022-02-03T04:22:20.678Z)
OS version: Windows_NT x64 10.0.18363
Restricted Mode: No

System Info

Item
Value

CPUs
AMD Ryzen 3 3250U with Radeon Graphics          (4 x 2595)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
5.92GB (1.58GB free)

Process Argv
--crash-reporter-id 19329e6f-dd01-44c3-b8de-bf42d4a98350

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30425749
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30433059
pythonvs932:30410667
wslgetstarted:30433507
vscop453:30404998
vsrem710:30416614

It looks like you are trying to use git to manage a Onedrive folder. See https://github.com/microsoft/vscode/issues/106287#issuecomment-688934395

@MadonaAbbott, could you please confirm that you are trying to use git with a OneDrive folder? Thanks!


Fix issue #256:  Copy-pasting from Notepad does not work

A PR that addresses https://github.com/bustlelabs/mobiledoc-kit/issues/256. Fallback to text/plain if text/html is empty.

Thanks! As written, this continues to use the HTMLParser to parse the plaintext, so if someone copied the text "abc <b>bold</b>" it would get pasted as "abc bold". Ideally there would be a text parser in addition to the HTML parser, and it could interpret pasted plaintext into mobiledoc (also splitting into multiple sections by linebreak, for instance).
I'm going to merge this and add an issue to use an actual text parser. If you have interest in tackling that you would be welcome to, otherwise I should get to it sometime this week.
thanks @YoranBrondsema !

Ah true, hadn't thought of that case. Well at least we have a semi-functional plaintext pasting functionality now so thanks for merging! I'll see what I can do this week, I might find some time to tackle this as well. I'll let you know in https://github.com/bustlelabs/mobiledoc-kit/issues/263 if I start working on it so we don't do double work!


New version: winfsp.winfsp version 2.1.24255

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@gtskhadadze83 Sorry for raising this. It seems WinFsp version 2.1.24255 is a pre-release version -> https://github.com/winfsp/winfsp/releases/tag/v2.1B2
Since the previous version in this package is a stable version (and thus still the latest version as of 23 October 2024), it will cause stable release users to be updated to a pre-release version. Is it intended?

As you can see in attached image above, if I try to update my WinFsp installation via UniGetUI, I will be upgraded from stable release to pre-release


documentation - split long line for better readability

Description
split long line for better readability

Todos

[x] Documentation

Release Note

None required

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@mvasilenko awesome, this LGTM.
Could you also apply this change to the corresponding document in the master/ and v3.0 directories? That way it will show up in future releases as well.
Thanks!

Hmm, actually, scratch that - the affected text is the output of a calicoctl command, which means I think we might want to leave it as it is right now.
The calicoctl command emits this as one big blob, so we probably want to update calicoctl to print something prettier before we make this change.


Execute wasm binary file generated by javy in HTML

I have created a webAssembly binary file from simple javascript file by javy.
But I am unable to execute this webAssembly binary file in my html file. Kindly suggest me how to proceed.
simple javascript file - add.js
export function add(a,b){
	return a + b;
}

Generated wasm file by following command
javy compile add.js -o add.wasm
Now I am trying to load this wasm file
fetch('add.wasm')
  .then(response => response.arrayBuffer())
  .then(bytes => WebAssembly.instantiate(bytes))
  .then(result => {
    // Call a function in the WebAssembly module
    const add = result.instance.exports.add;
    console.log(add(2, 3.5)); // Output: 5.5
  });

But it throws error like
Uncaught (in promise) TypeError: WebAssembly.instantiate(): Imports argument must be present and must be an object
Help me if I missed something

There isn't a concrete mechanism to export JS functions to Wasm at the moment, by default, code at the top level will get evaluated. So you could restructure your code a bit to make your example work:
function add(a, b) {
   return a + b;
}

add(1, 2);

If you'd like to make your exported functions available in your Wasm, you'd need to assemble a custom runtime with the crates included in this project. I'll note that we have plans to tackle this at some point in the future.

@saulecabrera Can you please share demo or guidelines on how to assemble a custom runtime with the crates. Please share some documentation.

The process isn't super documented, but the best example is to follow what's done in the core crate https://github.com/Shopify/javy/blob/main/crates/core/src/main.rs#L13 and modify that to your needs. Note that the core crates uses all the other crates in this repo.

The process isn't super documented, but the best example is to follow what's done in the core crate https://github.com/Shopify/javy/blob/main/crates/core/src/main.rs#L13 and modify that to your needs. Note that the core crates uses all the other crates in this repo.

I'm closing this since the main question was already answered, but feel free to continue the discussion here.


Using the default property file in @Source mode + multiple keys

Hello,
I want to specify several sources for a config (which honestly is super easy, that's great).
But I would like to be able to fall back on my dedicated .properties file.
Is there a way not to provide the whole path of the file ?
As an example, say I have path/to/package/MyConfig.java in my src/main and the corresponding path/to/package/MyConfig.properties in src/resources.
It works like a charm without @Source, but what if I use it like so:
@Sources({
    "file:~/my/project/path/foo.config",
    "system:env",
    "classpath:path/to/package/MyConfig.properties"
})

Is there a way not to give path/to/package ?
Second question is, is there a way to specify several keys (I guess there isn't) ?
What would be the workaround as env var are most of the time in CAPS and formatted differently than what a properties file might be ?
For example: CORE_THREAD_NUMBER vs core.thread_number.
Thanks ! (great framework btw)

Hi.
There are several solutions to the above problem.

using variable expansion, as explained here:

// notice ${mypath} here
@Sources("file:${mypath}/myconfig.properties");
interface MyConfig extends Config { ... }

MyConfig cfg = ConfigFactory.create(MyConfig.class);

I think you can also specify a relative path to file:: "file:./foo.config" or "file:foo.config" , in this way the file should be searched locally to current work dir. (please verify)
I don't remember if this gives an error when the file is not found. If you have time, please verify what happens, and in case of exception, please let me know.

Do it programmatically:

// define sources to a variable
@LoadPolicy(FIRST)
@Sources("${my.config.uri}")
public interface MyConfig extends Config {
}

// then set the variable before first usage

  private String defaultConfigURI = "classpath:foo/bar/baz.properties";

    Config getConfig() {
        String configURI = defaultConfigURI;

        // configFileName is specified at the command line in my case
        if (configFileName != null) {
            configURI = "file:" + configFileName;
        }

        ConfigFactory.setProperty("my.config.uri", configURI);
        LOGGER.info("Loading configuration from URI '{}'.", configURI);
        Config config = create(Config.class);
        verify(config);

        LOGGER.info("Successfully loaded configuration with description '{}'.",
                      config.configDescription());
        return config;
    }

I know, this can be improved.

FYI:
file:./foo.config is working just fine to get the file from the current working directory.

Hi, sorry I'm from Mexico and English is not my primary language.
I will try to explain a problem that I have using Dropwizard (microservice), dropwizard generates a jar file and I need to change some properties in the fly (owner is good for this).
java -Downer.config.file=/Users/fernando/git/RHBridge/recursos/bridge.properties -jar target/bridge-1.0.0.jar server config.yml

I have OWNER interface that works fine, this has my local path and dev server path into @Sources

@Sources({ "file:/Users/fernando/git/RHBridge/recursos/bridge.properties",
        "file:/opt/aplicaciones/dev/Bridge/config/bridge.properties" })
@HotReload
public interface OwnerConfig extends Config {
...
}

When I try to deploy to test and production environments these are 2 different servers and paths, this makes to compile again with different @Sources values
I have few experience in develop, but I use -Downer.config.file=xxx and http://owner.aeonbits.org/docs/importing-properties/ (Interactions with loading strategies) and it is ignoring @HotReload

    public OwnerConfig ownerConfig() {
        try {
            if (System.getProperty("owner.config.file") != null
                    && System.getProperty("owner.config.file").length() > 0) {
                Properties props = new Properties();
                props.load(new FileInputStream(new File(System.getProperty("owner.config.file"))));
                LOG.info("Using properties file from Java System Property -Downer.config.file={}",
                        System.getProperty("owner.config.file"));
                return ConfigFactory.create(OwnerConfig.class, props);
            } else {
                LOG.info("Using properties from owner @Sources");
                return ConfigFactory.create(OwnerConfig.class);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }

Do you have a recommendation or way to do this with OWNER?
Something like this:
@Sources({ "file:/Users/fernando/git/RHBridge/recursos/bridge.properties",
        System.getProperty("owner.config.file"))
@HotReload
public interface OwnerConfig extends Config {
...
}

Thanks

Hi, sorry I'm from Mexico and English is not my primary language.
I will try to explain a problem that I have using Dropwizard (microservice), dropwizard generates a jar file and I need to change some properties in the fly (owner is good for this).
java -Downer.config.file=/Users/fernando/git/RHBridge/recursos/bridge.properties -jar target/bridge-1.0.0.jar server config.yml

I have OWNER interface that works fine, this has my local path and dev server path into @Sources

@Sources({ "file:/Users/fernando/git/RHBridge/recursos/bridge.properties",
        "file:/opt/aplicaciones/dev/Bridge/config/bridge.properties" })
@HotReload
public interface OwnerConfig extends Config {
...
}

When I try to deploy to test and production environments these are 2 different servers and paths, this makes to compile again with different @Sources values
I have few experience in develop, but I use -Downer.config.file=xxx and http://owner.aeonbits.org/docs/importing-properties/ (Interactions with loading strategies) and it is ignoring @HotReload

    public OwnerConfig ownerConfig() {
        try {
            if (System.getProperty("owner.config.file") != null
                    && System.getProperty("owner.config.file").length() > 0) {
                Properties props = new Properties();
                props.load(new FileInputStream(new File(System.getProperty("owner.config.file"))));
                LOG.info("Using properties file from Java System Property -Downer.config.file={}",
                        System.getProperty("owner.config.file"));
                return ConfigFactory.create(OwnerConfig.class, props);
            } else {
                LOG.info("Using properties from owner @Sources");
                return ConfigFactory.create(OwnerConfig.class);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }

Do you have a recommendation or way to do this with OWNER?
Something like this:
@Sources({ "file:/Users/fernando/git/RHBridge/recursos/bridge.properties",
        System.getProperty("owner.config.file"))
@HotReload
public interface OwnerConfig extends Config {
...
}

Thanks


Proposal: Instantiate custom classes through config

I'm having a bit of trouble using the custom post classes as described here.
The problem is that upon doing Timber::get_post() or Timber::get_posts() the post type is not always clear yet. I have now implemented a workaround that'll do the trick.
My proposal is to tell Timber about the custom classes in advance. So whenever you retrieve posts through Timber you get the correct class instance.
Timber::config([
  'post_classes' => [
    'post' => 'MyCustomPost',
    'page' => 'MyCustomPage'
  ]
]);

Any thoughts on this?

Yes this something that @jarednova has mentioned a couple of times to me. Will work on this soon, but it will probably come with a host of other changes to how Timber itself is initialised. So we may be looking at 1.1.0

Cool. Thanks. Looking forward to it.
Let me know if I can help in any way.

I'm closing out old issues. Please open a fresh issue if this is still a live issue that we should investigate — thank you!
BTW this in particular of what we're doing with Factories in 2.x — stay tuned!


DisableUpdateMSProducts doesn't seem to work on Windows 10 2004

I have DisableUpdateMSProducts in my preset and I have run the script and restarted but I am still shown that "Receive updates for other Microsoft Products when you update Windows" is enabled.

When I turn it off manually it doesn't save my setting (I'm not sure why).

Also this is off-topic but Cortana is back in my Start Menu too. I followed the instructions in https://winaero.com/blog/uninstall-and-remove-cortana-in-windows-10-version-2004/ and got rid of it.

Not sure whether this is related, MoUsoCoreWorker.exe handles windows Updates now instead of wuauclt.exe - Bu I dont know whether this changed from 1909 to 2004 or earlier (I upgraded 1803 to 2004)

Lol, alright. I was puzzled by "I have DisableUpdateMSProducts in my preset", because that used to be the default. So congrats, @a-vrma for finding yet another Microsoft bug. 1909 had Microsoft updates disabled by default. 2004 has it still disabled by default, but the control displays it as enabled. If you simply try to disable it, nothing changes. You need to manually disable, enable, disable, so the Microsoft update gets registered as a service managed by the update service manager and then it stays registered and disabled. DisableUpdateMSProducts tweak can't be used to fix the graphical bug, as it reverts the setting to the "factory default", which in this case means that it unregisters the update service, so the control bugs again.
So basically there's no need to change anything in the script and Microsoft needs to sort this one on their side.

Thanks!


LatLng Debug and Display print different values (rad / deg)

When debugging my code today, it was quite confusing to me that the Debug implementation for LatLng printed the latitude and longitude in radians, while I had initialized them in degrees. I checked the documentation, and found out that the Display implementation does print degrees. Debug is automatically derived, and so it uses the struct's own variables in radians.
I think this could be solved by writing a manual Debug implementation, and adding the units to the output of both Debug and Display. It would also save some confusion if the unit was consistent between them, though maybe Debug could print both units.
What do you think?

That's a good point.
Originally, both Display and Debug printed radians, but then I moved to degrees for Display (since this is what most users are gonna use I believe), which left the auto-generated Debug impl with radians and created this confusing situation.
While I would like to keep radians for Debug (since algorithms are using radians internally, that's good for troubleshooting), I could:

document, in the type's top level doc, what each impl are priting (printing the unit for each value is gonna be noisy when you have a lot of values, e.g. a Vec).
impl Debug to print both radians and degrees

I think this would solve this issue and avoid the confusion.

That sounds like a good solution!


the use of backup.chia.net

What is the use of backup.chia.net? I am not getting at what serves.
TY.

I am afraid that I do not know. Looking at updates to the api for 1.3 it looks like it isn't used anymore. You may have to ask over on keybase. They would know.


[Bug] When moving parent of CSG model the model doesn't update

When moving a normal unity parent GameObject of the CSG model the model doesn't update.
Could be solved by either rebuilding when hierarchy changes - or ideally the generated-meshes would actually be a child of the main csg model so the behaviour would match with the generated model when built (+would save some editor performance)

Hi, what version are you on? I can't reproduce it on 1.329 ..

Grump grump - updated to 1.329 and it's gone!
I think here's what happened: while upgrading I got an error message about the DLL being in. Manually deleting it after closing unity and then upgrading worked. I think I must have foregone this last time and got stuck on some hybrid 1.312 & 1.328 version, hence some weird behaviors...
So, warning to people upgrading, be sure to close unity and delete the realtime CSG folder manually first.

Yeah this is an anoying artifact of not being able to overwrite a dll when it's in use by unity .. yet you can't unload it either :-/
I guess it's ok to close this ticket then?

Fine with me :) Will be careful about my upgrades from now on

👍


when trying to add reset all button to work with dc charts, the reset all button not work with dc.leaflet map.

Hello, dc.leaflet.js community, when I am trying to add reset all button to work with dc charts, the reset all button not work with dc.leaflet map. any suggestions to make this work?

This project is the original dc.leaflet.js; dc-js/dc.leaflet.js is somewhat more recent.
This issue dc-js/dc.leaflet.js#42 indicates that
dc.filterAll(); dc.redrawAll();

should work?

@gordonwoodhull Thank you Gordon! this works.

Great! Please close the issue.


feat(DW): add workloads table

Closes: RHOAIENG-3583
Description
Implement first iteration of workloads table. More information is necessary before including links from the table. After selecting a project with workloads, go to the workload metrics -> workload status tab.

Test Impact
Cypress tests to see that the table is there with a workload name and with the placeholder text if no workload. Unit test on a new utility function
Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[x] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change (find relevant UX in the SMEs section).

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

/ok-to-test
?

/retest


added docs to indicate what the eye icon means for directive settings

I couldn't figure out what the eye icon meant for certain settings and I couldn't see anywhere where it was explained. The icon referenced:

So I just added a little explanation under a new heading called "Reading the documentation" in the demo index.html.

Nice, I thought this was somewhere, but looks like it has disappeared - I will merge this sometime tonight.

Awesome, thanks! :+1:


removing replace line on first rabbitmq messaging operator version

Thanks for submitting your Operator. Please check the below list before you create your Pull Request.
New Submissions

[ ] Are you familiar with our contribution guidelines?
[ ] Are you familiar with our operator pipeline?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want to use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Your submission should not

[X] Add more than one operator bundle per PR
[X] Modify any operator
[X] Rename an operator
[X] Modify any files outside the above mentioned folders
[X] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[X] Description of the managed Application and where to find more information
[X] Features and capabilities of your Operator and how to use it
[X] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[X] Human readable name and 1-liner description about your Operator
[X] Valid category name1
[X] One of the pre-defined capability levels2
[X] Links to the maintainer, source code and documentation
[X] Example templates for all Custom Resource Definitions intended to be used
[X] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

Hello @mporrato following this PR https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/3924. Could you approve also for this other operator (I think I may have the same situation). Thank you!

@mporrato thank you!


ARROW-13580: [C++] quoted_strings_can_be_null only applied to string columns

Allow quoted nulls if quoted_strings_can_be_null is true

Well, the docstring looks quite clear to me:
  /// Whether string / binary columns can have quoted null values.
  ///
  /// If true *and* `strings_can_be_null` is true, then quoted strings in
  /// "null_values" are also considered null for string columns.  Otherwise,
  /// quoted strings are never considered null.

Perhaps it's beneficial to change the behaviour?

Agreed that it's beneficial to change the behavior and docstring to allow for treating empty quoted strings as null in the case of numeric columns.
Bigger picture, CSVs are a mess where we should ideally allow controlling options like null_values, true_values, false_values, quoted_strings_can_be_null on a per-column level in addition to globally.

Ah, if this is a behavior change then I can update that docstring as well.  I'll add, in support of my argument, that we parsed quoted non-nulls as integers.  For example:
>>> pyarrow.csv.read_csv(io.BytesIO(b'A\n"1"\n"2"\n'))
pyarrow.Table
A: int64

AppVeyor build on my fork: https://ci.appveyor.com/project/pitrou/arrow/builds/40577420


Create task failed

Hello,
I'm following the launch guide, but I'm getting this error message below. Any suggestions?
FAILURE
Create appliance task failed: An error occurred (AccessDenied) when calling the GetRole operation: User: arn:aws:iam::625424302336:user/galaxy_cloudman is not authorized to perform: iam:GetRole on resource: role jackson0-genomics-virtual-lab-21-06-18t23-52-cm2-kube-role

This seems like a lack of appropriate permissions. Please see this comment for appropriate permissions: https://github.com/galaxyproject/cloudlaunch/issues/198#issuecomment-655128278
and please re-open the issue if that doesn't help.


Error thrown when trying to use ftp.site()

Was trying to active UTF8 mode on microsoft IIS ftp server using site command.
My code:
let ftp = new PromiseFTP();

        return ftp
            .connect({
                host: config.ftp.host,
                user: config.ftp.user,
                password: config.ftp.password
            })
            .then(message => {
                return ftp.site('OPTS UTF8 ON');
            })
            .then(() => {
                return Promise.all(_.map(files, file => {
                        return ftp.put(file.buffer, file.originalname)
                    }))
                    .then(() => {
                        return ftp.end();
                    })
            })

Here's the error that gets thrown:
TypeError: promisifiedClientMethods.site(...).spread is not a function
    at PromiseFtp.site (/node_modules/promise-ftp/dist/promiseFtp.js:155:55)
    at /node_modules/promise-ftp/dist/promiseFtp.js:223:28
    at process._tickCallback (node.js:368:9)

I'm not sure whether i'm supposed to use the site command to achieve this but this error seemed to me to be unrelated to what i was trying to do.

Right you are -- .spread() is a bluebird-ism that didn't get removed when we removed that dependency.
I've released v1.2.13 which should fix the problem, please let me know.

Works like a charm :) :+1:


CLDC-1014: Add Pagination for Logs Index

https://digital.dclg.gov.uk/jira/browse/CLDC-1014
Shows 20 logs per page

Looks good, though think I wouldn’t show any pagination (or the ‘Showing 1 to X of X logs’ text) if there is only one page.
Also… the page title should be updated to include pagination details where relevant, for example:
Logs (page 2 of 10) – Submit social housing lettings and sales data (CORE) – GOV.UK

Seeing ‘← Previous‘ on page with 4 logs:

Also, previous (or next) link shouldn’t show unless there is a previous or next page.

@paulrobertlloyd  done


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

Changed the check of the first character as only letters are allowed in the first character of the username


Unable to join another lobby with SteamMultiplayerPeer after calling close().

Describe the bug
SteamMultiplayerPeer will complain that the user is still in a lobby even after calling close(). This prevents the user from joining another lobby and forces the creation of another SteamMultiplayerPeer object.
To Reproduce
Steps to reproduce the behavior:

Create a script that with two buttons: the first should create a lobby through SteamMultiplayerPeer.create_lobby() and the second should close the connection with SteamMultiplayerPeer.close().
Click the first button to create a lobby.
Click the second button to close the peer.
Click the first button again to create a different lobby. An error in the console should pop up stating that the user is already in a lobby.

Expected behavior
I expect the multiplayer peer to create a different lobby and connect the user to that one instead.
Screenshots
Initial state before joining a lobby.

After clicking on "Create" which calls SteamMultiplayerPeer.create_lobby() and updates the lobby ID.

After clicking on "Leave" which calls SteamMultiplayerPeer.close() and clears the lobby ID.

After clicking on "Create" again. Notice that the lobby ID is still "None".

The error that is displayed in the terminal.

Desktop (please complete the following information):

OS: Microsoft Windows 10 Home
Version: 10.0.19045 Build 19045

Version of Godot:
Godot Engine v4.3.dev.custom_build.d00734053
Version of GodotSteam:
GodotSteam Multiplayer Peer 4.8 (Module) (Latest Version)
Additional context
I think the fix is very simple, just add a line to reset the lobby_state in the close method back to disconnected.

Hey there!  I've still not used the MultiplayerPeer stuff but yeah, it should definitely reset that, I'd think.  I'll check it out!

After cross referencing with ENetMultiplayerPeer, it looks like some other state should probably be reset as well such as flushing any incoming packets. https://github.com/godotengine/godot/blob/b7feebefabc2d48b0d4794cd31fc141f1caecc5c/modules/enet/enet_multiplayer_peer.cpp#L294

Yeah, looks like there are a few big differences indeed.  Seems like something that should be patched in.


[$250] Refactor createDistanceRequest to use a parameter object

As part of the tracking issue, and as advised in its description, refactor createDistanceRequest  to use a parameter object.
cc @mkzie2 @dukenv0307
Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~021866886683506920885
Upwork Job ID:<PHONE_NUMBER>506920885
Last Price Increase: 2024-12-11

Proposal
Please re-state the problem that we are trying to solve in this issue.
Refactor createDistanceRequest to use a parameter
What is the root cause of that problem?
This is an improvement
What changes do you think we should make in order to solve the problem?
Wrap all parameters of this function into one object and in this object, we can have some sub-objects that will wrap the related data.
https://github.com/Expensify/App/blob/4f4720e896d6db90fd9acca0982d8620b3937e47/src/libs/actions/IOU.ts#L5310
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

What alternative solutions did you explore? (Optional)

@neil-marcellini I'm here.

@neil-marcellini Is this ready?

Not actually a bug but assigning you to handle payment when the time comes.

@mkzie2's proposal looks good. Please go ahead and get started.

@dukenv0307 The PR is ready.

Hi @dukenv0307 @mkzie2 we have a deploy blocker https://github.com/Expensify/App/issues/54513
Is it related to this?

@Christinadobrzyn My PR is deployed to production so I don't think it's related to the blocker.

Okay thanks for checking @mkzie2 - I'll keep digging to see if I can find what's linked to the blocker


Tensor board validation plot

The validation graph is not being plotted. Would there be any reason why?

are you using --skip_validate in training.

yes I was using --skip_validate in training after I did without that part and I now have the validation graph as well. Thank you.


pudl_out.gens_mega_eia() fails with start/end date

While checking in on the consequences of the database schema changes in #1748 I discovered that the pudl_out.gens_mega_eia() method fails when the output object has start/end dates restricting what data is selected and processed. For example this will generate an error:
pudl_out = PudlTabl(
    pudl_engine=pudl_engine,
    start_date="2020-01-01",
    end_date="2020-12-31",
    freq="AS",
    fill_fuel_cost=True,
    roll_fuel_cost=True,
    fill_net_gen=True,
)
pudl_out.gens_mega_eia()

The error which comes up says that technology_description is missing in one of the dataframes being merged (in a merge that uses that field as a merge key).

Update: the issue seems to be more confusing than we initially thought. With a new DB generated from dev I was unable to recreate the error and successfully generated gens_mega with a bunch of different start and end dates. @zaneselvans can generate gens_mega starting from scratch on dev, but when attempting to run pudl_out.plant_parts_eia() after having run pudl_out.gens_mega(), it fails. But when pudl_out.plant_parts_eia() is run without running gens_mega() first, it works.
I'm going to try some more experiments and document when the error is generated.

@katie-lamb Should this issue be closed now?


Fix small crashes

The WriteXML constructor seems to have changed on the Mitsuba side
Collection instances were not handled correctly by the instance detection code, resulting in a crash

Thanks Merlin! Could you rebase on render-engine please?


Added guideUrl to the 'Iterate Through the Keys of an Object with a for...in Statement' challenge.

Added guideUrl to the 'Iterate Through the Keys of an Object with a for...in Statement' challenge.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

Closes #34574

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Reason: Your suggested solution does not actually solve this problem.  The title key in the file's front matter is for information purposes only and the gudeUrl key is only to be used for linking official freeCodeCamp videos.
Feel free to try other solutions and submit them in a new PR.  Make sure you test your changes locally before creating a PR.
Thank you and happy coding.


Added sample Public Holidays

Q
A

New sample?
yes

What's in this Pull Request?
Added new ACE sample Public Holidays.  This sample shows how to build an ACE with a card view and multiple quick views to display the public holidays for user based on their office location. Users can also use this ACE solution to update their office location.
Co-Authors: @ravi16a87, @SmitaNachan

@nanddeepn can you please take a look at this sample. When I configure it based on the instructions I get the following error. https://mytenant.sharepoint.com/_api/web/lists('87532e11-adcb-49db-82a8-1a17a6a1bc74')/getitems 500 error
{"lang":"en-US","value":"One or more field types are not installed properly. Go to the list settings page to delete these fields."}}}
I followed the instructions on how to create the list. Not sure if this is an issue with the code or with the instructions. Can you please take a look. Also, does this need any API permissions, I didn't see any in the package-solution file.

Hi @dcashpeterson
Thank you for noticing.
It was my bad to include the Date column in the instructions. Apologies for the inconvenice.
Can you please retest? Thank you.


Implement Detailed Client Page Parsing

Currently only https://e-hentai.org/hentaiathome.php is being fetched and parsed.
There are more details to be found at https://e-hentai.org/hentaiathome.php?cid=12345&act=settings.
This PR extends the worker to also parse this page, bringing five new metrics:

hath_client_static_range
hath_client_p1_range
hath_client_p2_range
hath_client_p3_range
hath_client_p4_range

There is actually HC range, but I'm not sure how it looks like in the page (presumably P1 = 123, P2 = 123, HC = 123?) so I'm not implementing that for now


Do not see option to "Sprite creation" only "Import settings"

After hours spent trying to figure it out myself, I got it working finally.  You need to select a layer group. The only/easiest way to do this is by right-clicking the layer name. If it's successful, you should get the "Select a layer group" text turned to "Build [layer group] as Unity Sprites" button. I am using Unity 2017 for Windows for compatibility.


5qa035846b h24 soft 0479

hello i tried to patch 4 carplay and android and it does not work .
mst2_eu_se_zr_p0479t
MST2_EU_SE_ZR_P0479T.zip

Wrong topic.


Async?

Hello,
I'm trying to schedule a job from a web application, but it looks like this module doesn't release the process (works synchronously), so whenever I'm trying to schedule something I'm not getting a reply from the server, the process stuck on the scheduling function. Isn't it supposed to be async? Am I doing something wrong? Here's the code:
var rule = new schedule.RecurrenceRule();
if (params.schedule.recurrence === 'weekly') rule.dayOfWeek = params.schedule.dow;
rule.hour = params.schedule.hour;
rule.minute = params.schedule.minute;
var j = schedule.scheduleJob(rule, function(name) {
    SomeClass.runSomeFunction(name);
}.bind(null, name));

the process stuck on the scheduling function

By this, do you mean that you're never able to run the next function.... never getting the callback / response that the job is scheduled. If that's the case, the answer is no, node-schedule's jobs do not occupy a whole thread; you're scheduling something for later- you don't have to keep that as the only process running in the app.

@tejasmanohar Yes, correct. So is there something wrong with my code? Why is is happening?

@achurack: I ran in to the same problem and resolved it by putting my require statements (including require('async')) in the function declaration of the job being scheduled.
@tejasmanohar , you may want to update the examples to indicate this for any async functions... or really, any jobs that require use of outside modules.

@achurak can you detail a little more? Thanks for the help!

@aktary Example? PR?

I ran in to the same problem and resolved it by putting my require statements (including require('async')) in the function declaration of the job being scheduled.
Can you show me a runnable example so I can replicate this locally? Plus, I don't think @achurak mentions anything about the async module- don't mix up "asynchronous" and caolon's async.

Same issue here. Just a logging statement in the callback, but the process just hangs and does neither call the callback nor continue execution.

@nmaggioni sample code?

@santigimeno here it is: http://git.io/vBWF0

Can you reduce it to something simpler I can run myself?

Nevermind, my bad: the date passed to the scheduler was not a proper Date, but a Moment.js object. Sorry for the nuisance :sweat_smile:

np :)


NOISSUE - Add check acess by key

Signed-off-by: 0x6f736f646f<EMAIL_ADDRESS>What does this do?
It  adss check acess by key
Which issue(s) does this PR fix/relate to?
It doesn't relate to previous issues
List any changes that modify/break current functionality
There was no check access by key previously
Have you included tests for your changes?
Yes.
Did you document any new/modified functionality?
No

Same as here

Same as here

Unlike here I am also not sure if this is necessary. The idea of the thing key is to provide access control to things, not to perform this kind of "search" by key and access other thing data based on that.

@dusanb94 I think this can be helpful if you are buiding backend Pyton-based microservice (like for example some protocol adapter), so that you can communicate Auth service.

@0x6f736f646f please resolve conflicts and update the branch

Resolved but still, there is some CI errors

@0x6f736f646f please fix the conflicts and CI


formatting: routes.gen.ts

in routes.gen.ts line 1 and what should be line 2 are on the same line.

this can be resolved by adding \n to line 21 in build.ts.

fixed
https://github.com/jordanreger/deno-react/commit/8e20601ffa2c0f545651a2cf78935cf844aa24ce


Plans for supporting K8s 1.23.x and 1.24.x

Hi,
I was wondering about plans to support newer versions of K8s. Are there plans to support beegfs 7.1.5 on the K8s version 1.23.x and other versions since 1.24 is planned for April?

Hello @klis,
We plan to release a new version near the end of April that will support Kubernetes v1.23. Our general cadence is a new minor or patch release every 3-4 months. We test on any the latest versions of Kubernetes that can be deployed into our test infrastructure with Kubespray. Kubespray tends to lag behind the latest version of Kubernetes by a few months itself, so we don't tend to support Kubernetes versions right on release.
See https://github.com/NetApp/beegfs-csi-driver#support-policy for a bit more detail.
That being said, we haven't had to modify anything about the driver or its deployment manifests to make it work with a specific Kubernetes version since Kubernetes v1.19 released, so it is likely the current version can be deployed on Kubernetes v1.23 (and soon on Kubernetes v1.24). We simply can't provide any guarantees.

@ejweber thanks for the quick response. And since we are talking about versions, will v1.2.1 work on K8s 1.22.7? I see that you support 1.22.3 but since this is the minor version I'm thinking to upgrade all the way to K8s v1.22.7.

Thanks for the info.


[Custom Curved Navigation Bar UI Design]

Is your feature request related to a problem? Please describe.
This navigation bar UI is a modern, curved design that provides an aesthetically pleasing and minimalistic look. The navbar consists of distinct, rounded icons for navigation options. The clicked  button will be  visually separated from the rest of the menu items through a creative and curved background effect, while the other options maintain a clean, uncluttered appearance.
This design is ideal for mobile or responsive interfaces as it simplifies navigation, provides a fresh visual experience, and highlights the currently active option. It uses a smooth curve and icon-based interface for ease of recognition and accessibility.
Describe the solution you'd like.
No response
Describe alternatives you've considered.
No response
Additional context.
No response
Show us the magic with screenshots
Changing the UI of navbar like this :

Checklist

[X] I have checked the Existing Issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

I have seen many navbar issues, and i have mentioned it before for contributors to not create issues regarding navbar and there should be no more navbar issues, so i have closed this issue, if you have any queries, you can join discord server for further updates and communication.
we are not looking for navbar updates for now, as it was done and changes many times before.
So I am closing this issue.
please understand.


Strange Behaviour on Advanced Indexing

Thanks for your work, it helps me to speed up in preprocessing state during pytorch training.
Description is contained in code comment.
Code: (Could be copied and run)
import numba as nb
import numpy as np

@nb.jit(nopython=True)
def randomize(input, H, W, Z, H_indices, W_indices, Z_indices):
    W_indices[:] = np.random.permutation(W)
    input = input[:, W_indices, :, :]
    for w_i in range(W):
        Z_indices[w_i, :] = np.random.permutation(Z)
        # FIXME: Numba Bug?
        # x_wi_x_x = input[:, w_i, :, :] # GOOD
        # input[:, w_i, :, :] = x_wi_x_x[:, Z_indices[w_i, :], :] # GOOD
        input[:, w_i, :, :] = input[:, w_i, Z_indices[w_i, :], :]  # ERROR
        for z_i in range(Z):
            H_indices[w_i, z_i, :] = np.random.permutation(H)
            input[:, w_i, z_i, :] = input[H_indices[w_i, z_i, :], w_i, z_i, :]  # But this line is fine?

    return input, H_indices, W_indices, Z_indices

H = 10
W = 10
Z = 10

W_indices = np.empty((W), dtype=np.int32)
Z_indices = np.empty((W, Z), dtype=np.int32)
H_indices = np.empty((W, Z, H), dtype=np.int32)

input = np.random.rand(H, W, Z, 7)

input, H_indices, W_indices, Z_indices = randomize(input, H, W, Z, H_indices, W_indices, Z_indices)

print(input)

Error:
Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function(<built-in function getitem>) found for signature:

 >>> getitem(array(float64, 4d, C), Tuple(slice<a:b>, int64, array(int32, 1d, C), slice<a:b>))

There are 22 candidate implementations:
  - Of which 20 did not match due to:
  Overload of function 'getitem': File: <numerous>: Line N/A.
    With argument(s): '(array(float64, 4d, C), Tuple(slice<a:b>, int64, array(int32, 1d, C), slice<a:b>))':
   No match.
  - Of which 2 did not match due to:
  Overload in function 'GetItemBuffer.generic': File: numba/core/typing/arraydecl.py: Line 166.
    With argument(s): '(array(float64, 4d, C), Tuple(slice<a:b>, int64, array(int32, 1d, C), slice<a:b>))':
   Rejected as the implementation raised a specific error:
     NumbaNotImplementedError: only one advanced index supported
  raised from /opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/numba/core/typing/arraydecl.py:69

During: typing of intrinsic-call at [/Users/krill/Desktop/numba_bug_report.py]() (13)

File "numba_bug_report.py", line 13:
def randomize(input, H, W, Z, H_indices, W_indices, Z_indices):
    <source elided>
        # input[:, w_i, :, :] = x_wi_x_x[:, Z_indices[w_i, :], :]
        input[:, w_i, :, :] = input[:, w_i, Z_indices[w_i, :], :]
        ^
  File "/Users/krill/Desktop/numba_bug_report.py", line 31, in <module>
    input, H_indices, W_indices, Z_indices = randomize(input, H, W, Z, H_indices, W_indices, Z_indices)

Thanks for the report. I suspect this is due to a limitation in Numba's "advanced indexing" support, in the error message there is:
Rejected as the implementation raised a specific error:
     NumbaNotImplementedError: only one advanced index supported

Thanks for the report. I suspect this is due to a limitation in Numba's "advanced indexing" support, in the error message there is:
Rejected as the implementation raised a specific error:
     NumbaNotImplementedError: only one advanced index supported

Thanks for the quick reply. I'm not sure, could you give some clues on difference between the two sentences below?

input[:, w_i, Z_indices[w_i, :], :]
input[H_indices[w_i, z_i, :], w_i, z_i, :]

Actually, Z_indices[w_i, :] and H_indices[w_i, z_i, :] are one dimensional numpy array, and w_i and z_i are both of type int.  I'm confused, why the sentence 2 can be compiled without error, but line 1 should be adjusted in order to avoid the NumbaNotImplementedError?
I'm from head to heels a newbee to python, hope some helps on it, thank you.

@HikariS97 it's to do with the way Numba compiles code. The first thing Numba has to do when it compiles code is work out the types of every variable and call in the code it is given. It does this through a process of "type inference", which is an algorithm that combines information about the types of the arguments to the function, known constant types declared in the function and a load of rules about what functions called in the code will do for given argument types (some docs: https://numba.readthedocs.io/en/stable/developer/architecture.html#stage-4-infer-types). In the cases above:

Has a __getitem__() with argument of type:
Tuple(slice<a:b>, int64, array(int32, 1d, C), slice<a:b>)
if there's an array index then the integer index also counts as an advanced index, this is what is unsupported. The adjustment you made to your code split the indexing into two parts such that only one "advanced index" existed in each __getitem__ and as a result Numba managed to compile it.
Has a __getitem__() with argument of type:
Tuple(slice<a:b>, int64, int64, slice<a:b>)
which has no array index and so the two integers don't count and "advanced" indexes and this is fine.

@stuartarchibald
Z_indices[w_i, :] and H_indices[w_i, z_i, :] are same in Numpy type, but inferred as slice<a:b> and `array(int32, 1d, C)' as two different types correspondingly?

This will be resolved once all the PRs listed in https://github.com/numba/numba/issues/8616 goes through.
We can now close this particular issue as a duplicate.


For inclusion of proportional fonts

The programming fonts must have these features.

Monospaced

Monospaced is the most important features for programming fonts, because monospaced fonts are easy for coding which must be easy to check or align or compare.

I disagree with this. Monospacedness is necessary only when alignment is used, which is not always. If I don't have to align, I prefer proportional fonts. Some characters don't fit nicely into a grid for all characters. Even just widening the glyphs of ‘m’, ‘w’, ‘@’ make a monospaced font look better usually.
There are several proportional fonts good for programming:

Input Sans
iA Writer Quattro (Duo)
Recursive Sans

Other fonts may be good for programming. I like Verdana for programming in languages with long names and not much punctuation, like Java.

That sounds like a personal preference and opinion to me. Fork the repo, add your preferred fonts and use them. Leave the original repo to its specific requirements.

Why are the repo's specific requirements exactly these?
It seems that this repository is for sharing among a wide variety of people, so I think it shall offer a wide variety of fonts.

@matj1 Hey bro, Monospaced fonts are not 100% necessary for programming, you can also use non-monospaced fonts, it's OK, just do what you like,  as @davidsneighbour said, you can fork or just use the fonts as your version. Good luck to you!

@ifeegoo Right. But, if monospaced fonts are not necessary for programming, why is monospacedness the most important feature of fonts for programming according to this repository?

why is monospacedness the most important feature of fonts for programming according to this repository?

Author's preference.


ref deconstruct defaultValue not work

Version
3.2.31
Reproduction link
sfc.vuejs.org/
Steps to reproduce
open link
What is expected?
data defaultValue 10 not work
What is actually happening?

Your useFetch() is returning a ref, which is not undefined and therefor data is filled wiht a ref with undefined which is why nothing is displayed. Change it to anything else like "hey" and you will see "hey".

Remember to use the forum or the Discord chat to ask questions!


Readme should focus on NPM

.. remove other docs which might make it confusing to users. We should refer to the original repo for documentation.

@mdbassit do you have an opinion on this?

I agree that referring to the original repo for documentation may be less confusing, but I don't mind either way.

Turns out that the info on https://www.npmjs.com/package/@melloware/coloris is copied from the readme, so we'll keep it as it is.

The doc looks outdated on NPM though!

@mdbassit It was updated after the release of 0.7.0. @melloware Can we force an update?

Yep I can just push a 0.7.1. Versions are cheap 😁


Make bias vector enabled by default in ConvolutionND and DeconvolutionND

In ConvolutionND and DeconvolutionND, the bias parameter is unexpectedly disabled by default. This should be fixed, but fixing it may break user codes. It can be fixed at least in v2.

I'm planning to add bias and nobias parameters to ConvolutionND same as Convolution2D. Is it OK?

I think it is better to clean up the APIs of Convolution2D and Linear links, especially arguments related to bias (bias, nobias and initial_bias), as I discussed here. Could you discuss it with me?

One option is to change the default value of initial_bias to 0 or initializers.Constant(0).

This issue has been solved by #2185. So I close it.


(PDB-4513) Set correct cipher-suites setting

When we migrated to clj-parent 4.0.0 and then again in 4.2.0, the
default cipher-suites set by trapperkeeper were restricted. This could
occasionally result in puppetserver failing to connect with puppetdb.
This sets our default cipher-suite to match that of puppetserver, which
can be found
here.

CLA signed by all contributors.


1.2 Meteor - FlowRouter not defined

I'm creating a new project from zero. After the meteor 1.2 release Flow is not working.
Test route:
FlowRouter.route( '/test', {
  action: function() {
    console.log( "Working" );
  }
});

The console log.

It's appear that flow's package loads after my router.js files. I also made a test with old release of meteor and it's working fine.

@mgambati mate, looks like it's not the FlowRouter problem. Check the stacktrace within the first thrown exception. It's materialize's issue refer to this issue

We are using flow with 1.2 and there is not issue.
If there is an issue, try to build re-producible app.

That is a problem with lastest Materialize package release @mgambati

@grsabreu It's working now. Just rollbacked materialize.


Sometimes cell come to front if i add some other view on cell,need your help

Hi,
I am using 6.0.5 version of your calendar, and i am adding tooltip (using custom tooltipview - ZGTooltipView)on cell but it behaves weird,like some time cell comes to from of tooltipview and after scrolling sometimes it goes to back , i am attaching screenshots here,can you please help me with this,
Sometimes it looks perfect

sometimes it cuts under headerview

Sometimes cell comes to front

Please help me with this

Hmm. I'm not quite sure how that other library adds values to the cells.
Does this also happen on version 7.0.4?

that i didn't checked because i have used 6.0.5 version and coded acordingly so i can't update it now ....can you please check for me once ?

What I can do is, I can help you convert your project to version 7.
however, i would not be able to check to see how the external library adds views to the cells.
In version 7.0, this library provides the raw UICollectionView to the developer. No extra design code is done under the hood. Everything is up to the dev.
I can help you convert to version 7.

I'll close this issue.
But once you have the time, let me know, and i'll help convert.


Creating a PR and choosing the commit changes action leads to error notifs

Not sure if this is reproducible every time, but here are the steps.

 It will tell you that you have no changes committed
Choose commit changes
🐛 Pr is properly created but not previewed. You also get some errors

I'm not able to repro this. If you see it again can you check if there's anything in the console?

I did check the console when I reproed this the first time and it didn't contain anything helpful, so feel free to close for now and I will reopen if I see it again.


Medication Controller Implementation and Testing

~Tanrının Kırbacı~'nı reviewe davet ediyorum.

Codecov Report
Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (6616e15) 66.59% compared to head (03441d2) 68.43%.
Report is 1 commits behind head on 1-create-table-for-medtype.

Files 	Patch % 	Lines
...ndapi/DTO/request/CreateOrUpdateMedicationDTO.java 	66.66% 	6 Missing ⚠
...anbackendapi/Controllers/MedicationController.java 	50.00% 	1 Missing and 1 partial ⚠
...roduction/ehayvanbackendapi/DTO/MedicationDTO.java 	50.00% 	2 Missing ⚠
.../ehayvanbackendapi/Services/MedicationService.java 	60.00% 	2 Missing ⚠
.../production/ehayvanbackendapi/DTO/ScheduleDTO.java 	0.00% 	1 Missing ⚠
Additional details and impacted files
☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here.

Kral bunları seneye fixleriz gibi duruyor. Kusura bakma, önce dynonun videosunu izlemem lazım.


Implement site settings section in dashboard

Blocked by #2705

@maarcingebala @pwgryglak We need a design for this.


Fix FACT-893 - prefer /etc/centos-release over /etc/redhat-release

CentOS decided to change the format of /etc/redhat-release within
a minor release, which affected correct detection of CentOS systems
on a 7.1.1503 release.
This patch prefers /etc/centos-release over /etc/redhat-release if
present.
/etc/centos-release has already been present on EL6 and actually
/etc/redhat-release used to be a symlink on /etc/centos-release.
From CentOS 7.1.1503 on /etc/redhat-release id not anymore a
symlink, but comes with its own not (yet) parseable content.
Given that the CentOS project prefers /etc/centos-release over
/etc/redhat-release facter should also prefer that.
More background: http://lists.centos.org/pipermail/centos-devel/2015-February/012873.html
Parsing /etc/os-release might be the more forward looking change,
however this would require much more changes to facter, than such
a emergency hot-fix would justify.

@duritong thanks a ton for jumping on this so fast!  This  helps with the bookkeeping in our release process.

@whopper here you go

also :+1: based on a bit of functional testing. In CentOS 7.1
operatingsystem => CentOS
operatingsystemmajrelease => 7
operatingsystemrelease => 7.1.1503
os => {"name"=>"CentOS", "family"=>"RedHat", "release"=>{"major"=>"7", "minor"=>"1",     "full"=>"7.1.1503"}}
osfamily => RedHat

... and in CentOS 6:
operatingsystem => CentOS
operatingsystemmajrelease => 6
operatingsystemrelease => 6.5
os => {"name"=>"CentOS", "release"=>{"major"=>"6", "full"=>"6.5", "minor"=>"5"}, "family"=>"RedHat"}
osfamily => RedHat

... and in RedHat 7, these facts remain correct.

CLA signed by all contributors.


Use a reverse-proxy with nmos-cpp-node

Hello,
I have a question.
My goal is to use a reverse proxy and send the reverse proxy IP (for example, <IP_ADDRESS>) to the registry. When accessing this address, the reverse proxy should redirect to the IP where the node is running (for example, <IP_ADDRESS>).
My question is: Is it possible to have a node running on one IP (like <IP_ADDRESS>) but send a different IP (like <IP_ADDRESS>) to the registry?

With your own Node based on nmos-cpp, the thing to do is to set host_address(es) to the address(es) of the reverse proxy and use proxy_map to map between reverse proxy port(s) and the port(s) where the Node is actually running.
Of course, as well as the addresses/ports on which the NMOS APIs are being served, there's also the ones that Senders and Receivers are using. Both their IP addresses (in IS-05) and their interfaces (in IS-04) are advertised via NMOS. The example nmos-cpp-node doesn't really send or receive media streams, but it uses the first and last host_address(es) for its mock Senders and Receivers and attempts to discover the local interfaces associated with those IP addresses, which won't necessarily work with a reverse proxy IP address. I think it's possible to set up a working example nmos-cpp-node config with a reverse proxy but it needs a bit of care.
Also consider that we should be encouraging people to use DNS names instead of IP addresses. Therefore we also need to think about using host_name and href_mode.
And then there's security: client_secure and server_secure can be used along with the above to allow deployment of nmos-cpp behind a reverse proxy that does TLS termination. (That was one of the original motivations.)


Tear drops discord bot

Pull Request Template
script name - TearDrops DISCORD_BOT
What have you Changed
I've added by bot project that I started a week ago..
It uses MongoDB as a database(It used TinyDB before that but that was unstable)
NOTE- I will continue this say after a week or two when I have time and add more functionality.
But, for now it functions satisfactorily.
The code has been linted. Though visual-indents were not addressed as they make the code look cleaner.
(I can make them one-line lists, if you guys tell me to)
I've tried to give documented code (but one shall need to read discord documentation to fully understand)
Issue no.(must) - closes #254
Self Check(Tick After Making pull Request)

[x] This issue was assigned to me.
[] One Change in one Pull Request
[x] My file is in proper folder
[x] I am following clean code and Documentation and my code is well linted with flake8.
[x] I have added README.md and requirements.txt with my script

Join Us on Discord:- https://discord.gg/JfbK3bS
acknowledgement

[x] I have tested the script and distributing it under MIT license.

Star this repo!
: )

um... all the lint checks are for long lines and continuations.
(does this have to be fixed too, since the embed etc. cause this)

I'm sorry for the lint errors... I'm a bit inexperienced at linting my code

It will be really helpful if this can maybe be merged
(I want to make a 12 PR record)

Can this be added, I wanna make a PR record of 40

Thanks for making your Contributions.


fixes callstack described in #17348

Motivation
fixes call-stack described in #17348
Bug shows up as:
com.facebook.react.common.JavascriptException: TypeError: undefined is not an object (evaluating 'this._subscribableSubscriptions.forEach')
This error is located at:  in ScrollView
Test Plan
I've tested that this does indeed fix the problem described in #17348
Related PRs
Release Notes
[MINOR] [BUGFIX] [Subscribable.js] fixed javascript exception on startup.

Duplicate of 17463


Restore of soft wallet completed ok but in report page there is a 'x' against wallet created

I just did a restore of a BIP32 soft wallet from a zip backup.
It all worked fine but in the wallet restore report screen there was a X against the 'wallet created ok' message. It did not go away when the wallet synced and there were no errors in the log.

I think I have also seen this in the FEST tests, en passant

Screenshot:

Also, it is misleading to have a 'Press finish to show the wallet screen' for this usage of Wallet created successfully. Label usage needs splitting into two terms

Adjusted the return value in RestoreWalletReportPanelView to be true if the wallet is present, rather than depending on the Bitcoin network starting. Duplicated this logic into the Trezor restore.
This screen shot shows it working (previously it showed a cross):

Ready for review and close.

Tried it out with a couple of sets of wallet words.
Worked fine.
Closing


[VS Code] [Audio] HTTPS request failed for SkypeToken: Parse Error: JS Exception

Error:
HTTPS request failed for SkypeToken: Parse Error: JS Exception
Steps to Reproduce:
1.
2.

Version Data

extensionName
VSLS-Audio

extensionVersion
0.1.84

applicationName
VSCode

applicationVersion
1.44.2

platformName
Windows

platformVersion
10.0.18363

We released a fix for this issue. Now available in the Marketplace Live Share Audio v 0.1.85. Please let us know if you're still hitting this after an update. Thanks for the help!

it working now, thanks for the fix!


Ignore empty updates

Closing as fixed by https://github.com/jupyter-server/pycrdt/pull/107.

Reopening as pycrdt v0.8.24 was yanked.

Closing in favor of https://github.com/jupyter-server/pycrdt/pull/111.


nit: rename currentChannel to channel

Description

I thought that current didn't add any value, and I believe this could have been a leftover from where the first implementation of channel upgrades where the channel state needed to be reverted.
closes: #XXXX

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against the correct branch (see CONTRIBUTING.md).
[ ] Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
[ ] Code follows the module structure standards and Go style guide.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/).
[ ] Added relevant godoc comments.
[ ] Provide a conventional commit message to follow the repository standards.
[ ] Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
[ ] Re-reviewed Files changed in the GitHub PR explorer.
[ ] Review Codecov Report in the comment section below once CI passes.

Summary by CodeRabbit

Refactor

Updated event logging to use the correct channel parameter for attribute values.

New Features

Added functionality to prune all consensus states associated with a client, improving system performance and resource management.

seems logically sound and aligns with the PR's objective to improve the efficiency of the codebase by providing a mechanism to prune all consensus states associated with a client.

nice try @coderabbitai but the truth is the function does not align with the PR's objective to improve code readability of channel upgradability related functions :smile:

seems logically sound and aligns with the PR's objective to improve the efficiency of the codebase by providing a mechanism to prune all consensus states associated with a client.

nice try @coderabbitai but the truth is the function does not align with the PR's objective to improve code readability of channel upgradability related functions 😄

:microphone: :droplet:


Using with gulp and browserify.

Newbie here guys. I could not get the component to render and it is showing me this error.

Below are my codes and it was working fine until I added the component in App.js.

Any help will be appreciated!

turns out it was referencing React wrongly and I had to add a React dependency in gulp's package.json.


feat: drop semver from dependencies

semver's publish size is 59.2kB: https://packagephobia.now.sh/result?p=semver
Node 4.x EOF is 2018-04-30: https://github.com/nodejs/Release#end-of-life-releases

#108