[QUESTION] Subpackages documentation

Hi, I'm new to Unity Atoms and I can see there is a list of subpackages available, but I have no idea what these do, and could not find any documentation.
How can I tell what features these subpackages add, is there documentation somewhere?
Thanks!

Core is the main package. you NEED this, if you want to use atoms.
Base Atoms is a set of standard components, like in the core package you have an abstract class AtomsVariable, and in the BaseAtoms you have all the common datatypes like IntVariable, FloatVariable, StringVariable, ...
you usually WANT this, if you wanna use atoms.
FSM - Finite State machine.
If you need an FSM, based on atoms, this is ready to go.
Input System - there is a video about this, but I personally find this package pretty situational.
MonoHooks Is similar to BaseAtoms, it contains a set of predefined assets which may alleviate writing some components yourself.
Tags is for people that like the unity tags to find or filter gameobjects. Objects can have multiple tags and there are  nearly no garbage allocations.
there are more packages, and the documentation for them is mostly a stub. My recommendation would be to just take a glimpse here in github into the package content, as the packages are usually not that large anyways.

Thanks a lot! I'll look into the packages content for the others. I was wondering about the mobile one in particular since I want to build a mobile app. I'll mark this as resolved.


Complete tests for a11y check

Purpose
To take advantage of Stencil's spec and e2e tests when a component is generated to build accessibility testing right into the component. These tests can then be used by GitHub through actions to provide an additional layer of quality control.
How we can do this
Using Stencil's e2e tests, we can use the library axe-core/puppeteer to run accessibility tests, this example runs a colour contrast test but can be expanded with additional rules.
The e2e ends tests also allow testing the interactions of a component when it is loaded on a page. This example showcases a test of the gc-ds-button component being focused using keyboard navigation.
With a new GitHub action, when a pull request is authored/modified the tests will run for quality control.

No longer needed


[WIP] ARROW-988 [JS] Add entry to Travis CI matrix

I guess I need to provide flatc... is there a way I can piggyback off of one of the other libs for this? @wesm?

You can use the flatbuffers from conda-forge, that's pretty easy to do


Benchmark special-casing TextDirection in BuildContext

Once we've got RTL implemented, we should check whether there's performance on the table by special casing the TextDirection in BuildContext rather than using the generic inherited widget codepath.

/cc @Hixie

I'm curious to see how you would implement it. If there's a way to implement this that's faster than inherited widgets, maybe we can use it for inherited widgets too... :-)
(The interesting part is the ability to mark only the widgets that changed dirty when the directionality of a subset of the tree changes.)

We need to make inheritFromWidgetOfExactType faster in general. Adding one call to this method from Theme.of is adding 200ms to the build benchmark.

I wonder if its the _inheritedWidgets lookup that is slow or messing around with _dependencies.  It's possible there's some room for optimization for maps keyed by Type objects.

See also https://github.com/dart-lang/sdk/issues/31011.

cc @alexmarkov

I tried adding a DefaultAssetBundle.of call in the middle of RichText's create and update methods, and it barely affected the numbers (it was within the noise). So I'm going to close this. Thanks everyone who helped improve this!


Allow approving perf tests early

This makes hold-run-perf-tests job/step top level, so it can be approved, without waiting for integration test to complete.

Going with a ping


Storage Access API

https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API

The MDN link lists https://caniuse.com/#feat=mdn-api_document_requeststorageaccess at the bottom.
Coming to Edge and Chrome it seems: https://twitter.com/tomayac/status/1281149537768345600

Updated in Safari 14.1: https://webkit.org/blog/11648/new-webkit-features-in-safari-14-1/

Indeed, while the term "Storage Access API" is not used explicitly, Document.hasStorageAccess(), Document.requestStorageAccess(), and <iframe sandbox="allow-storage-access-by-user-activation"> are covered by MDN data:
https://caniuse.com/mdn-api_document_hasstorageaccess
https://caniuse.com/mdn-api_document_requeststorageaccess
https://caniuse.com/mdn-html_elements_iframe_sandbox-allow-storage-access-by-user-activation
(via mdn/browser-compat-data#2990)


Condition Error for new_watcher_rckooeisl: SyntaxError: Unexpected number

I have a payload like this:
{
  "_index": "watcher",
  "_type": "watch",
  "_id": "new_watcher_rckooeisl",
  "_score": 1,
  "_source": {
    "title": "u3d",
    "disable": false,
    "uuid": "new_watcher_rckooeisl",
    "trigger": {
      "schedule": {
        "later": "every 2 mins"
      }
    },
    "input": {
      "search": {
        "request": {
          "indices": [
            "<logstash-{now/d}>",
            "<logstash-{now/d-1d}>"
          ],
          "body": {
            "size": 0,
            "query": {
              "bool": {
                "must": [
                  {
                    "query_string": {
                      "query": "*",
                      "analyze_wildcard": true
                    }
                  },
                  {
                    "range": {
                      "@timestamp": {
                        "gte": "now-1h",
                        "lte": "now",
                        "format": "epoch_millis"
                      }
                    }
                  }
                ],
                "must_not": []
              }
            },
            "_source": {
              "excludes": []
            },
            "aggs": {
              "2": {
                "terms": {
                  "field": "player_id.keyword",
                  "size": 5,
                  "order": {
                    "1": "desc"
                  }
                },
                "aggs": {
                  "1": {
                    "sum": {
                      "field": "reward_gold"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "condition": {
      "script": {
        "script": "payload.aggregations.2.buckets.forEach(function(e){if(parseFloat(e.1.value)>100000){return true;};})"
      }
    },
    "transform": {
      "script": {
        "script": ""
      }
    }
      }
    }
  }
}

When the task running time, generated the following error log:
{"type":"log","@timestamp":"2017-06-30T06:42:00Z","tags":["status","info","Sentinl"],"pid":3752623,"message":"Condition Error for new_watcher_rckooeisl: SyntaxError: Unexpected number"}
No idea what is going wrong.

My first try with nested aggregations had the same error, so after searching a little on the issues I finally used :
var match=false;payload.aggregations.histo.buckets.forEach(function(e){var cpu=e.cpu.value; if(cpu > 0.8){console.log(cpu); match=true;}});  match;

I can't explain to you why we can't directly return true or false in the if statement.
I also changed the names of the aggs since I was using the same as the dashboard request (1,2,3).

Thanks for the update. So this is no longer an issue?

@mza97 I changed the name "2" of the aggs to "histo" and condition script:
var match=false;payload.aggregations.histo.buckets.forEach(function(e){var cpu=e.1.value; if(cpu > 100000){console.log(cpu); match=true;}}); match;
Still the following error:
{"type":"log","@timestamp":"2017-07-03T02:08:00Z","tags":["status","info","Sentinl"],"pid":3752623,"message":"Condition Error for new_watcher_rckooeisl: SyntaxError: Unexpected number"}

This error always occurs when I configure the configuration in your input format: Condition Error for new_watcher_bzd9kgjzi: TypeError: Cannot read property '_score' of undefined.

@andryzhu is it working now ?  if not, did you try to change e.1.value to e.reward_gold.value?

The error should indeed be selector e.1.value - You can't point in such way, so try ```e[1].value ```` or similar instead

Yo tuve el mismo problema y comente la solucion para mi caso en esta issue. Capaz puede ser lo mismo.
Saludos,
Alejandro

Hi. I need a watcher that would send me a letter with switch ip and switch port that was flapping more than 1000 times yesterday and more than 1000 times day before yesterday. But before, I have this watcher
watcher.txt
and this is output
watcher.txt
How can i get "doc_count" in this section
"5" : {                                   "doc_count_error_upper_bound" : 0,                                   "sum_other_doc_count" : 0,                                   "buckets" : [                                     {                                       "key" : "44436274",                                       "doc_count" : 22871                                     }                                   ]                                 },
Whith my current condition i only can get "doc_count" in section "4"
 "4" : {                             "doc_count_error_upper_bound" : 0,                             "sum_other_doc_count" : 4,                             "buckets" : [                               ...                                                           ]                           },                           "key" : "<IP_ADDRESS>",                           "doc_count" : 23726                         }
Can someone help me?

Hi @Uvizor please open a new issue with the details and we'll take a look


[NEW]: Another BitMEX employee convicted of violating Federal anti-money laundering laws

Date
Aug 8, 2022
Description
U.S. Attorney Damian Williams said:  “With this plea, this Office has now obtained criminal convictions against all three founders, as well as a high-ranking employee at BitMEX, for willful violations of anti-money laundering laws.
Links
https://www.justice.gov/usao-sdny/pr/high-ranking-employee-cryptocurrency-exchange-pleads-guilty-bank-secrecy-act-violations?mkt_tok=NDE3LUxYRi01NjUAAAGGUMPj3R24ZUfXcdMtLfZlGp8ziocFPgKvdAV5le1jxa1nRB5xKd7sh4l_i9t9AySwtYFD-PFsodys0qemjsS2vkKs820lJu0DOkBloH1pg-GU
Agreement

[X] I irrevocably agree to release my contribution under the CC-BY 3.0 License

Attribution name
No response
Personal link
No response

Already included at https://web3isgoinggreat.com/?id=bitmex-crypto-exchange-founders-plea


feat(integrations): Checkpoint logging flag log_checkpoint_on added to WandbLogger

What does this PR do?

Fixes #<issue_number>

Before submitting

Was this discussed/agreed via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure your PR does only one thing, instead of bundling different changes together?
Did you make sure to update the documentation with your changes? (if necessary)
Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
Did you list all the breaking changes introduced by this pull request?
Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

Reviewer checklist

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

📚 Documentation preview 📚: https://pytorch-lightning--19288.org.readthedocs.build/en/19288/

@awaelchli Would love some 👀 on this

Merged into #19297


SuperPutty window sometimes restores but remains behind all other active windows

Experiencing this on Windows 7. I can minimize all other applications to use SuperPutty, but once I restore or start any new windows, they are always in front of the SuperPutty window.
At time of writing, I have 2 SuperPutty instances open. One is working fine but the other is stuck "in background".
'Showing desktop' and then restoring the Superputty window and typing in to one of the open tabs, then allows the window to function normally again.
Not using any fancy window managers.

I've actually been having this issue for years. Seems to happen randomly. I'm on Windows 10 now and the problem is still there.

this problem does exits and seems to be very annoying


Allowing strides with dilated convolutions in tf.keras.layers.Conv2D

System information

TensorFlow version (you are using): v2.4.1
Are you willing to contribute it (Yes/No): Depends on acceptable solution

Describe the feature and the current behavior/state.
At this point in time tf.keras.layers.Conv2D doesn't support dilated convolutions with strides > 1, which would be a nice feature to have. This limitation seems to be a limitation of Keras Conv2D, not a Tensorflow. tf.nn.conv2d supports dilated convolutions with strides, but all Keras Conv layers use generic tf.nn.convolution, which doesn't support dilated convolutions with strides.
The most natural solution would probably be creating something like _conv_implementation method in base Conv layer and override it using tf.nn.conv1d, tf.nn.conv2d, tf.nn.conv3d in corresponding Keras layers.
Will this change the current api? How?
It seems that tf.nn.convolution and tf.nn.conv1d, tf.nn.conv2d, tf.nn.conv3d behave identically, so it shouldn't change API or break back-compatibility (except now dilated convolutions will be able to use strides).
Who will benefit with this feature?
Anybody who wants to use convolutional neural networks with large receptive field but little computational overhead.

I found that check here
https://github.com/tensorflow/tensorflow/blob/9a2545aecc498e7a5e8bf5d63c47af59e1550111/tensorflow/python/ops/nn_ops.py#L1135
seems redundant as nn.conv2d supports gradient for dilations for non TPU devices


Social Links are broken on the homepage

This is help visitors on the website follow the org on social media and share stuff from the website properly

Join the social links and adding more styles with respect to page design on these social links


Dependent on Constituencies

I'm looking at the feasibility of forking this for the States of Jersey Government and have running locally with no issues (to start poking around at how it's doing certain things).
A few questions around Constituencies though.

What role does the check for a Constituency actually do?
Is it purely for results on the backend (which Constituencies are concerned the most about a petition) or is it tied up with the actual validation of a signature?
Is this only performed on the signature of a petition you've created or any time you sign one?

As I can currently sign a petition on parliament.uk without an issue using Jersey as a location and a valid Jersey postcode (assuming it be far too easy to limit location to just Jersey and have it all work...).
Thanks for any help.

Constituencies are a convenient way to break up the data for analysis and obviously the preferred one since it's a website for the UK Parliament - you could just as easily do counties or in the case of Jersey,  parishes. It performs no role in the validation of signatures (nor does the postcode if you check the codebase) and the lookup is performed for all signatures.
If you're limiting it to people on the island and not ex-pats then you could hard-code country to Jersey and replace the API lookup for constituency with a simple select menu and effectively constituency_id becomes parish_id. You'd also want to remove signatures_by_country from the JSON API since they'd be pointless.
Happy to have a call about it if you want to discuss in more detail.

Ah thought that might be the case - had considered just hardcoding the parishes.
Thanks for the offer, will probably take you up on it.


SAK-49446 - Changing Passwords in Admin is Broken

This somewhat awkward conditional is necessary for both SAK-49446 and SAK-48161 to pass. The use of a conditional like "(pwcur)" -- i.e., without comparing it to null-- makes SAK-48161 fail.

Yeah - I know your pain.  PHP has made some really simple conditionals really complex because PHP dreams of being a typed language.   Sigh.


reorganised example code

Removed the data read & write folders out of the MDR_Library folder structure.
Simplified DICOM handling using the dicomdb package (currently still in weasel v0.3)
Grouped all example scripts into a single module examples (run this outside of MDR_Library).
Simplified folder structure a bit
Fixed fit[x,:] bug in paralellized models
Added simpler non-parallellized models as templates.
Partially tested - still need to run DCE, DTI, T1_simple, constant.

Hi @plaresmedima , just finished an overall review of this Pull Request. There are a couple of points to be discussed (in the meeting shortly):

Folder "mydata" needs to be created and we can leave a README file there with the link to the DICOM data
dicomdb exists in another Github project. It might be a package that becomes public and installable, but for now the dicomdb folder should be copied to this project, otherwise the tests won't work. I can see that this package replaces some of the functions that were deleted in Tools.
I made some changes in examples.py, which I'll send you in a separate email. The main change is that "MDR_Library" statements shouldn't be present. The tests work without it.

Great, this is all good and I'll approve and merge!
Next step for me is to contribute with another PR where I'll make changes to .gitignore and setup.py


Connection refused ERRNO = 111

Hello,
I cant' connect with HA Client.
My home assistant work very well but NO connection from android HA client.
I create a long life token but always error: ERRNO = 111.
Hi also assign port 8123 but in log I found a different port number that change on every time that I try to connect.
Please see screenshot

Do you use http://<IP_ADDRESS>:8123 to access your Home Assistant web interface, or there is some domain assigned to it?

I have also a domain myhome.duckdns.org.
I have created https SSL certificate in home assistant and long lived token that I pasted on HA Client app but now I have error: token or password wrong. Seems that it does not want to recognize the generated token but this is correct.

Just make sure you don't have excess spaces at the beginning and at the end of your long-lived token. Also make sure you copied it all.

No space and copied all. Any other suggestion?

Can I download release 0.6 apk?

0.6.0 is in closed alpha now. It is unstable. Everybody are using 0.5.4 now. Could you please show me a screenshot with error you see on a main screen?

The log screenshot is above. Main screen error is: "invalid access token or password (code 6)".
Seems that it does not want to recognize the generated token but this is correct.

Please, can you tell me how to install a not-signed certifcate on home assistant?

Same problem. Using ip as http host and defined 8123 as port.
On logs there is random port where this app is trying to connect, not using 8123.

I'll check my setup with local ip and 8123 port

Will be resolved with #309


Require documentation for undefined reference to `_tx_initialize_low_level'

EXPLANATION

I compiled threadx in a different folder using the documentation

$ cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=cmake/cortex_m4.cmake -GNinja .
$ cmake --build ./build

Proceeded to add tx_api.h, tx_port.h and libthreadx.a to the threadx folder of my Minimal STM32 Project

Updated CMake like so

# Add Threadx
target_include_directories(${USER_PROJECT_TARGET} PRIVATE threadx)
target_link_directories(${USER_PROJECT_TARGET} PRIVATE threadx)
target_link_libraries(${USER_PROJECT_TARGET} PRIVATE threadx)

CMake generates the project successfully

Updated main.c

TX_THREAD my_thread;
void my_thread_entry(ULONG thread_input) {
  while (1) {
    uart_interrupt__write_string(&uart_interrupt_config,
                                 "Hello from Interrupt\r\n");
    tx_thread_sleep(100);
  }
}

void tx_application_define(void *first_unused_memory) {

  /* Create my_thread! */
  tx_thread_create(&my_thread, "My Thread", my_thread_entry, 0x1234,
                   first_unused_memory, 1024, 3, 3, TX_NO_TIME_SLICE,
                   TX_AUTO_START);
}

int main(void) {

  // UART Config
  main__uart_init();
  main__uart_interrupt_init();

  // uart__write_string(&uart_config, "Hello World\r\n");
  // _spin_delay(1000 * 1000);
  uart_interrupt__write_string(&uart_interrupt_config,
                               "Hello from Interrupt\r\n");

  tx_kernel_enter();

  while (1) {
  }

  return 0;
}

ERROR when running

cmake --build build

D:\Code\threadx\threadx\build/../common/src/tx_initialize_kernel_enter.c:117: undefined reference to `_tx_initialize_low_level'
I took a look at the above-mentioned function used in this example Getting Started STM32L4 Example
@VOID   _tx_initialize_low_level(VOID)
@{
    .global  _tx_initialize_low_level
    .thumb_func
_tx_initialize_low_level:
@
@    /* Disable interrupts during ThreadX initialization.  */
@
    CPSID   i
@
@    /* Set base of available memory to end of non-initialised RAM area.  */
@
    LDR     r0, =_tx_initialize_unused_memory       @ Build address of unused memory pointer
    LDR     r1, =__RAM_segment_used_end__           @ Build first free address
    ADD     r1, r1, #4                              @
    STR     r1, [r0]                                @ Setup first unused memory pointer
@
@    /* Setup Vector Table Offset Register.  */
@
    MOV     r0, #0xE000E000                         @ Build address of NVIC registers
    LDR     r1, =g_pfnVectors                       @ Pickup address of vector table
    STR     r1, [r0, #0xD08]                        @ Set vector table address
@
@    /* Set system stack pointer from vector value.  */
@
    LDR     r0, =_tx_thread_system_stack_ptr        @ Build address of system stack pointer
    LDR     r1, =g_pfnVectors                       @ Pickup address of vector table
    LDR     r1, [r1]                                @ Pickup reset stack pointer
    STR     r1, [r0]                                @ Save system stack pointer
@
@    /* Enable the cycle count register.  */
@
    LDR     r0, =0xE0001000                         @ Build address of DWT register
    LDR     r1, [r0]                                @ Pickup the current value
    ORR     r1, r1, #1                              @ Set the CYCCNTENA bit
    STR     r1, [r0]                                @ Enable the cycle count register
@
@    /* Configure SysTick for 100Hz clock, or 16384 cycles if no reference.  */
@
    MOV     r0, #0xE000E000                         @ Build address of NVIC registers
    LDR     r1, =SYSTICK_CYCLES
    STR     r1, [r0, #0x14]                         @ Setup SysTick Reload Value
    MOV     r1, #0x7                                @ Build SysTick Control Enable Value
    STR     r1, [r0, #0x10]                         @ Setup SysTick Control

@
@    /* Configure handler priorities.    */
@
    BX      lr
@}
@

REQUIREMENT
If possible I would like to get an example for the above function in C since my startup code and interrupt vector table (entire project) has been written in C. Link to my Minimal Projects for STM32
If possible I would also like to know if there is more documentation to learn about the internal working of Threadx.

We do not have this file in C, only assembly.
There is the user guide here: https://docs.microsoft.com/en-us/azure/rtos/threadx/about-this-guide
And a book available for purchase: https://www.amazon.com/Real-Time-Embedded-Multithreading-Using-ThreadX/dp/1523730420

Would there be any roadmap for a C based version?
Also I went through the documentation and I was unable to find any reference for _tx_low_level_initialization usage and implementation.
Please point me in the right direction for this as well! Thank you

There is no roadmap for a C version as of now. This file is where the SysTick is configured. Doesn't look like we have our port-specific readmes up yet, but we'll be putting them up in the next few days.

Please update with the link here as well when the READMEs are live.
That should resolve this issue.

Hi @coder137 - the readme_threadx.txt files are now live. See here for example: https://github.com/azure-rtos/threadx/tree/master/ports/cortex_m4/iar
The readme files for the Cortex-M0/M3/M4/M7 GCC ports did not make it up for some reason. I'll get them up ASAP.
We've added a bunch of new processors and toolchains. More coming soon.

Thank you for your help @goldscott !

@goldscott would it be possible to update Chapter 2 of the user guide with some conceptual information about _tx_low_level_initialization?
I can certainly adapt the one from ports/.../example_build/, but it would be useful to know - from the horse's mouth, so to speak - which parts are important vs. which are specific to the sample application.

Hello @reynoldsbd - we try to keep the port-specific stuff out of the user guide, but I agree with you - some more info about what this function does would be helpful. It's on my to-do list to add more detail in the user guide.
This function really has only one requirement: it must set up the _tx_initialize_unused_memory global with the first free memory address. We also usually set up the timer interrupt here as well, but that is port-specific. For something like the Cortex-M, it's easy to set up the SysTick here (and users can configure the timer by modifying the #defines at the top of the file), but for other architectures like Cortex-A, it's up to the user to configure a timer elsewhere.

@reynoldsbd I managed to convert the _tx_low_level_initialization from assembly to C
Please reference this issue https://github.com/azure-rtos/threadx/issues/60
The C code for tx_low level is here. The code has very verbose comments and I hope it helps. (https://github.com/coder137/STM32-Repo/blob/master/Template/Minimal_Threadx/application/tx_initialize_low_level.c)
The assembly equivalent is here (https://github.com/coder137/STM32-Repo/blob/master/Template/Minimal_Threadx/application/tx_initialize_low_level.S)


Client Real IP set to NPM IP in back end Apps.

Hello, I'm using the latest (v2.8) NPM but still having the real IP logged as the proxy IP in default.log and the proxy_host-(1-6).log and of course at the backend App.
I tried some of ideas like this and this  but no luck.
I'm using IPv6 only VPS if that helps
here are some logs from default.log
[16/Feb/2021:08:02:32 +0000] 444 - GET https wp.mydomain.com "/favicon.ico" [Client fd00::1:0:0:1] [Length 0] [Gzip -] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" "http://wp.mydomain.com/"
[17/Feb/2021:09:54:41 +0000] 200 - GET http [2a0d:ipv6:1:52:1800::ea] "/" [Client fd00::1:0:0:1] [Length 568] [Gzip 1.86] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"

here are some logs from proxy_host-(1).log
[17/Feb/2021:12:26:20 +0000] - 200 200 - GET https dkr.mydomain.com "/api/templates" [Client fd00::1:0:0:1] [Length 25802] [Gzip -] [Sent-to [fd00::1:0:0:1]] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0" "https://dkr.mydomain.com/"
[17/Feb/2021:12:26:22 +0000] - 200 200 - GET https dkr.mydomain.com "/api/endpoints/1/docker/containers/json?all=1" [Client fd00::1:0:0:1] [Length 17177] [Gzip -] [Sent-to [fd00::1:0:0:1]] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0" "https://dkr.mydomain.com/"

the [fd00::1:0:0:1] is my private IPv6 gateway of the network attached to NPM and the other containers (backend apps)
how to solve this my tricks bag is empty right now.
thanks in advance.

Have a look at https://github.com/jc21/nginx-proxy-manager/issues/41, if this is related

I'm also experiencing the same issue,
I'm running a remotely.one server behind NPM and the IP of remotely clients are showing NPM Docker IP as the public IP of each client.
I've added the following to advance config in NPM to try and get things working as expected however, no luck.
add_header Content-Security-Policy "upgrade-insecure-requests"; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block" always; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy no-referrer always; add_header X-Robots-Tag none; proxy_hide_header Upgrade; proxy_hide_header X-Powered-By; proxy_set_header   Upgrade $http_upgrade; proxy_set_header   Connection keep-alive; proxy_set_header   Host $host; proxy_cache_bypass $http_upgrade; proxy_set_header X-Real-IP $remote_addr; proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header   X-Forwarded-Proto $scheme;
I've also tried without X-Real-IP $remote_addr and just keeping the X-Forwarded-For $proxy_add_x_forwarded_for.
I know I've doubled up abit on some of the proxy_set_header but remotely's own nginx example is the following so for testing I've tried adding things here and there but none of this is working:
server {     listen        80;     server_name   example.com *.example.com;     location / {         proxy_pass         http://localhost:5000;         proxy_http_version 1.1;         proxy_set_header   Upgrade $http_upgrade;         proxy_set_header   Connection keep-alive;         proxy_set_header   Host $host;         proxy_cache_bypass $http_upgrade;         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_set_header   X-Forwarded-Proto $scheme;     }     location /_blazor {             proxy_pass http://localhost:5000;             proxy_http_version 1.1;             proxy_set_header Upgrade $http_upgrade;             proxy_set_header Connection "upgrade";             proxy_set_header Host $host;             proxy_cache_bypass $http_upgrade;             proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_set_header   X-Forwarded-Proto $scheme;         }         location /AgentHub {             proxy_pass http://localhost:5000;             proxy_http_version 1.1;             proxy_set_header Upgrade $http_upgrade;             proxy_set_header Connection "upgrade";             proxy_set_header Host $host;             proxy_cache_bypass $http_upgrade;             proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_set_header   X-Forwarded-Proto $scheme;         }         location /ViewerHub {             proxy_pass http://localhost:5000;             proxy_http_version 1.1;             proxy_set_header Upgrade $http_upgrade;             proxy_set_header Connection "upgrade";             proxy_set_header Host $host;             proxy_cache_bypass $http_upgrade;             proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_set_header   X-Forwarded-Proto $scheme;         }         location /CasterHub {             proxy_pass http://localhost:5000;             proxy_http_version 1.1;             proxy_set_header Upgrade $http_upgrade;             proxy_set_header Connection "upgrade";             proxy_set_header Host $host;             proxy_cache_bypass $http_upgrade;             proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_set_header   X-Forwarded-Proto $scheme;         } }
Any help would be appreciated, as I'm running the latest docker build of NPM and Remotely.


lvgl: specify ram requirement in sample.yaml

Commit c79b1a38aabe26fc0fbc6bd6af0a5453e8aba95a ("samples: display:
Convert driver and lvgl sample.yaml to use depends_on") started using
depends_on in the sample YAML for a lvgl application instead of
platform_allow.
This breaks build testing with twister and overflow checking enabled
on more resource constrained platforms. The test case's .config
ends up with:
    CONFIG_LVGL_HOR_RES_MAX=320
    CONFIG_LVGL_VER_RES_MAX=240
    CONFIG_LVGL_VDB_SIZE=64
    CONFIG_LVGL_BITS_PER_PIXEL=24

And lib/gui/lvgl/lvgl.c, where we allocate a buffer of size:
    (CONFIG_LVGL_BITS_PER_PIXEL *
     ((CONFIG_LVGL_VDB_SIZE * CONFIG_LVGL_HOR_RES_MAX *
       CONFIG_LVGL_VER_RES_MAX) / 100)
     / 8)

Require 147456 bytes to build the sample, ultimately overflowing RAM
if you run something along the lines of:
    twister -T samples/.... -p <constrained_platform> --overflow-as-errors

This is a reasonable test to be doing to make sure that sample RAM
requirements do not get too big for a subset of platforms that are of
interest, and it no longer works.
To fix it, add a min_ram line for this case so that we can still run
overflow tests on a large set of samples without fine-grained special
casing or creating an ever-growing list of platform excludes for this
test.
I also added a docs patch to make the min_ram (and min_rom) units explicit.

I'm curious why we're just hitting this now?

We just merged upstream into our zephyr fork last week; it had been a while so I'm guessing it just never got tested in our CI until now.

What Marti wrote is correct. To elaborate a bit why it wasn't seen in the upstream:

on-commit CI doesn't have nrf52832 in its scope for this test
nightly build has it, but it is treated as a skip due to the overflow
in our internal CI we wanted to trace overflows and are using --overflows-as-errors flag, hence we got the error with the recent upstream merge.


Fix order of arguments in foldBack lambda

Running the following in F# Interactive will help explain why I believe this change is necessary:
> List.foldBack (fun elem acc -> printf "elem: %A " elem; elem + acc) [1;2;3;4] 0;;
elem: 4 elem: 3 elem: 2 elem: 1 val it : int = 10
> List.foldBack (fun acc elem -> printf "elem: %A " elem; elem + acc) [1;2;3;4] 0;;
elem: 0 elem: 4 elem: 7 elem: 9 val it : int = 10

The accumulator is the second argument in foldBack (contrary to fold where it is the first).
Positioning the arguments in reverse in an example is a great way to confuse a reader.
This also helps promote the fact that the state and list arguments to the folding function
are in the same order as their lambda counterparts.
Feel free to disagree :-).

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/conceptual/snippets/fslists/snippet41.fs
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Publish Images For Operate-First

@chandrams @khansaad Lets Begin with this. I have created a new Dockerfile and workflow to keep this segregated for now. You can update your scripts and workflows later, if you like the changes.
Also, Don't forget to add the below two secrets:-

QUAY_USERNAME
QUAY_PASSWORD


Allow passing a file to the plugin, as the destination for injected props

see https://github.com/argyleink/open-props/issues/315

Would love to see this!  Would be incredibly useful with CSS Modules.
Seems like if this option was passed you could defer writing to each file and once all files were done you could write to the provided file path if it exists (or error).


[Storage] StorageManagementClient.storage_task_assignments.begin_create(...) fail with date-time format not aligned with server request.

Package Name: https://pypi.org/project/azure-mgmt-storage/21.2.1/
Package Version: 21.2.1
Operating System: N/A
Python Version: N/A

Describe the bug
An external customer recently tried to use the Python SDK to create Task assignments and they are running into validation errors and Task assignment creation is not accepted.
This is because they tried to pass in date times with and without padding on "2024-09-22T19:50:32" format, which the Python SDK always Serializes converts to UTC: "2024-09-22T19:50:32.000Z" which looks to be not accepted by backend.
That is, upon calling this:
StorageManagementClient.storage_task_assignments.begin_create(...)

A log line is shown:
"Datetime with no tzinfo will be considered UTC."
Customer also shared the root cause might be because the default serializer used converts to the format:
>>> from azure.mgmt.storage._serialization import Serializer
>>> Serializer.serialize_iso("2024-09-22T19:50:32")
Datetime with no tzinfo will be considered UTC.
'2024-09-22T19:50:32.000Z'

Options:
Can SDK be updated to sync with what SRP/infra accepts? Possibly update the parameters passed to Serializer?
To Reproduce
Steps to reproduce the behavior:
see above comment.
Expected behavior
The datetime send from python SDK can be accepted by Server.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

@blueww Could you show the specific parameter values when calling StorageManagementClient.storage_task_assignments.begin_create?

@msyyc I am the customer who reported this bug.  Here is the full request I make (with sensitive values stored in variables)
    response = storage_client.storage_task_assignments.begin_create(
        resource_group_name=resource_group_name,  # of the storage account being modified
        account_name=storage_account_name,  # the storage account being modified
        storage_task_assignment_name=assignment_name,
        parameters={
            "properties": {
                "description": "Change tier",
                "enabled": True,
                "executionContext": {
                    "target": {"excludePrefix": [], "prefix": ["src/test_files"]},  # prefix includes container name
                    "trigger": {
                        "parameters": {"startOn": "2024-09-22T19:50:32.0000000Z"},
                        "type": "RunOnce",
                    },
                },
                "report": {"prefix": "ingests"},
                "taskId": storage_task_id,
            }
        },
    ).result()

I encourage you to reproduce starting from the example: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment.py
That example does not work.

"2024-09-22T19:50:32" format, which the Python SDK always Serializes converts to UTC: "2024-09-22T19:50:32.000Z"

Per the original comments, customer input "2024-09-22T19:50:32" format, Python SDK always Serializes converts to UTC: "2024-09-22T19:50:32.000Z" and send to server.

@blueww Could you show the specific parameter values when calling StorageManagementClient.storage_task_assignments.begin_create?

Per the original comments, customer input "2024-09-22T19:50:32" format, Python SDK always Serializes converts to UTC: "2024-09-22T19:50:32.000Z" and send to server.

Hi, According to https://datatracker.ietf.org/doc/html/rfc3339#section-5.8, "2024-09-22T19:50:32.000Z" is valid date-time string and server shall be able to handle it.
We ever discussed about it in teams that the root cause is server can't handle some valid date-time string:

So SDK will wait for the response of service team.


Fix typos in error messages (throwed to threw)

Fix minor typos in error messages.
Throwed to threw
https://www.quora.com/Is-it-grammatically-incorrect-to-use-the-word-throwed

duplicate of #358


ART-3099 Sweep ignores bugs already attached to advisories & placeholders

To sum up, I would prefer to pass the correct arguments to a function rather than pass the incorrect ones then silently ignore the error inside the function.

@thegreyd could you rebase this PR?


Accessing undefined enums

I love the concept. But, after playing with it, I ran across a non-starter that I am hoping you have an idea on how to solve.
Undefined Variables
import {Enum} from 'enumify';
class MyType extends Enum {}
MyType.initEnum(['FOO', 'BAR']);
let x;
if(x === MyType.SOME_TYPO) {
console.log('Found X!');
}

Ideally, I'd like this to be a compile time (i.e. babel) or static (i.e. ESLint) check or at the very least get syntax highlighting in Webstorm. Any suggestions?

Does it throw a runtime exception for invalid enum cases yet?
I once had great success using a Proxy for a similar case, to intercept access to unknown fields.

@tp that is a good idea for run time checks

+1 @mlucool Exactly what I was thinking too. @tp I also considered using a Proxy to lock things down. Did you publish anything with that?

It would be awkward to expect a parser to detect something that's not formally part of the grammar. You could of course extend ESLint to check if MyType.WHATEVER appears in a call initEnum. But this is made trickier by the fact that initEnum also accepts objects as an argument, or even no argument at all. And what about nested Enums? Would you rather account for (untested) input like what's below, or just carefully watch what you type?
import {Enum} from 'enumify';
import resourceTypes from 'somewhere/else'; // Surprise array linters can't see!

console.log(resourceTypes); // ['BOOKS', 'MUSIC', 'VIDEO']

class Events extends Enum {}
class CreateEvents extends Enum {}
class ReadEvents extends Enum {}
class UpdateEvents extends Enum {}
class DeleteEvents extends Enum {}

CreateEvents.initEnum(resourceTypes);
ReadEvents.initEnum(resourceTypes);
UpdateEvents.initEnum(resourceTypes);
DeleteEvents.initEnum(resourceTypes);
Events.initEnum({
    CREATE: CreateEvents,
    UPDATE: UpdateEvents,
    READ: ReadEvents,
    DELETE: DeleteEvents,
});

/* ... 500+ lines ... */

Events.CREATE.MSUIC // Oops.

Each case requires its own analysis, which is honestly a bit much to handle given the limited scope of the project. If you are only going to care about simpler cases anyway, I'd just note the general coding habits in the source and write a assumption-laden ~50 line one-off that checks all suspect files in a pre-commit hook or something. That's the best compromise between "static" and "fast" as you are going to get until JS actually makes enums part of the language.

@zyrolasting I think runtime exceptions, as with a mistyped function name, would be appropriately consistent and also guard against hidden errors caused by undefined values, which is a large part our the potential benefit of an enum type. In fact, perhaps an enum lib like enumify could directly generate functions instead of primitives.

@doublemarked I understand where you are coming from. I'm only speaking in the context of OP, where @mlucool was asking about detecting errors before running code, which won't happe until you get TypeScript, ESLint or some other auditor involved.
But if you are in the runtime, yes, a Proxy + rxceptions will suffice when intercepting incorrect names.


Updating parser to use existing subparsers for commands instead of re…

…creating every time. This allows users to manipulate parser properties from load_params(_) method.

@scobb,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


v0.2.0 not available on the google cdn

https://storage.googleapis.com/learnjs-data/deeplearn-0.2.0.js currently returns a 503 access denied.

Uploaded new version and updated latest. Sorry about that, and thanks for the bug.


Bert retrained

Naming: feature/descriptive-name
Reviewers: minimum 2 (Chris and/or 2 from Web or DS respectively and not person who submitted PR)
Description:
What is the motivation for changes?
To address the class imbalance for Ranks 2,3 and 4
What specific changes were made?

We incorporated the synthesized tweets from GPT2 into the training data
We retrained bert
We evaluated the performance metrics of the model.

Submitter Checklist:

[* ] Small scope (1-2 components)
[ *] Not too many concerns in a single commit
[* ] Remove extraneous comments (code in comments), print statements, to-dos, console.logs, extra fluff
[ *] Atomic, descriptive commit messages
[ ] Consistent formatting

Reviewer Checklist:

[ ] Small scope (1-2 components)
[ ] Comments, print statements, to-dos, console.logs, extra fluff were removed
[ ] Give feedback no matter what conversations happened elsewhere, document here
[ ] Comment on the line of code itself (blue plus box) in files changed tab

Request not to merge this pull request yet as it is still a work in progress. However, feel free to continue to review the work.


priority of utilitary jobs

with @amaltaro @juztas I have observed that the priority of utilitary jobs (merge, clean, ...) are not as expected from reading the code.
It's supposed to be N*1e7 + , and they do not have that sort of values at the moment.
is that a job-router rule underneaf changing these (nothing in unified about this @bbockelm ?) ? a condor feature truncating the priority ? no clue
I cannot provide any link to gwmsmon as it will get outdated almost immediately, a simple query
condor_q -g -const 'CMS_JobType=?="Merge"' -af  WMAgent_SubTaskName JobPrio
will show what the problem is

@todor-ivanov can you please have a look at it still today? Ideally we should at least answer whether it's a bug in WMCore or something else is touching those job priorities. If the agent is doing that, then it's pretty bad and many merge jobs will never get to run. Something tells me it has nothing to do with WMCore though...
Just to give you some extra information. Here is where we define the JobPrio inside the agent:
https://github.com/dmwm/WMCore/blob/master/src/python/WMComponent/JobSubmitter/JobSubmitterPoller.py#L373
which depends on the workflow priority, a given job type weight (task_prio) and a constant 1e7 value (maxTaskPriority).
Task weight/priorities are defined here:
https://github.com/dmwm/WMCore/blob/master/src/python/WMCore/WMBS/CreateWMBSBase.py#L504
which means, a Merge job should NEVER have a priority < 4M.
When someone bumps the workflow priority in reqmgr2, that change gets also reflect to all the jobs (I believe only to Production/Processing) in all the agents thhrough this component:
https://github.com/dmwm/WMCore/blob/master/src/python/WMComponent/JobUpdater/JobUpdaterPoller.py#L160
So we should likely make sure that this priority update does NOT touch any utilitarian job.

So far I can just confirm, what @vlimant reported. Here is the priority distribution for all merge jobs from all the requests we have in the queue right now:
$ condor_q -g -const 'CMS_JobType=?="Merge"' -af  JobPrio |sort |uniq -c
      1 109008
      1 109999
     50 110004
      2 110005
     12 110006
     19 110104
     32 110204
     11 111005
      6 160014
      3 160018
      1 160032
      2 160034
      1 160042
      1 180016
      1 220204
     68 220404
    145 300004
     26 40090004
      2 80009
      2 80010
      5 80011
      4 80012
      1 80013
      2 80018
      1 85005
      4 90008
      1 90013

And here is the only one that follows the expected behavior:
$ condor_q -global  -const 'CMS_JobType=?="Merge" && JobPrio==40090004' -af WMAgent_RequestName |uniq -c
     26 pdmvserv_task_HIG-RunIISummer15wmLHEGS-01210__v1_T_200228_050902_5489

I'd suggest to check whether those workflows had any priority change. If one of the badly prioritized workflows does not, then we know it's NOT the update made by JobUpdater.

While looking at other things, I noticed this in the JobSubmitter logs:
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:Priority submission report ...
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:    20110000.0 : {"LogCollect": {"Total": 1}}
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:    10110000.0 : {"Cleanup": {"Total": 6}}
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:    109997.0 : {"Processing": {"Total": 1}}
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:    20160014.0 : {"LogCollect": {"Total": 1}}
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:    109999.0 : {"Processing": {"Total": 2}}
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:    40110000.0 : {"Merge": {"Total": 15}}
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:    90002.0 : {"Processing": {"Total": 7980}}
2020-03-15 16:15:10,360:140296118867712:INFO:JobSubmitterPoller:    110000.0 : {"Processing": {"Total": 2841}}
2020-03-15 16:15:10,361:140296118867712:INFO:JobSubmitterPoller:    90004.0 : {"Processing": {"Total": 38974}}

so it's likely NOT any problem in the job creation and/or submission.
Still to rule out the following though:
a) workflow priority update
b) unified
c) cmsgwmsmon
d) anything else


Exact solution bugs extend

Fix bugs of exact-solution (algorithm, method Runge-Kutta 4th order, etc)
Calculate divergence of both methods

Exact solution is not correct. Need debug it!!!

Debuged!


Doesn't work with https for webpack-dev-server

Thank you for taking time to open a new issue. Please answer a few questions to help us fix it faster. You can delete text that is irrelevant to the issue.
Is this a bug report or a feature request?
Version
"start-server-and-test": "^1.9.0"
"cypress": "^3.2.0",
Platform
macOs High Sierra - Version 10.13.6
I am using create-react-app and I am running my development webpack server in https.
So running npm run cypress:open, I would expect

My application to run in https://localhost:3000
Once the server is up, the cypress launcher to run on it.

Only the first step happens, cypress launcher is not opening up.
This is my scripts config in package.json.
 "scripts": {
        "watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive",
        "start-js": "export HTTPS=true&&react-scripts start",
        "start": "npm-run-all -p watch-css start-js",
        "cy:open": "cypress open",
        "cypress:open": "start-server-and-test start http-get://localhost:3000 cy:open"
    },

I am facing this issue only for https, not http.

Change http-get://localhost:3000 to https-get://localhost:3000 this should resolve your issue.

Piggybacking on this thread.
Does that mean @rajzik that if I have two servers...
{
  "scripts": {
    "test": "node src/test",
    "start:api": "node src/api",
    "start:server": "node src/server",
    "start:server-and-api": "start-test start:api 7600 start:server",
    "test:all": "start-test start:server-and-api http-get://localhost:3000 test"
  }
}

@rodoabad
The error comes from where?
If you have some sort of routing inside of your application and you get redirected from / to /#/ it shouldn't be problem.
start-test waiting for response from sever. Also it looks like something running on port 5555, maybe it's only debugging port.
There might be problem with timing of your servers.
start-test waits only for one server.

@rajzik

Change http-get://localhost:3000 to https-get://localhost:3000 this should resolve your issue.
If not try following script:
START_SERVER_AND_TEST_INSECURE=1 start-server-and-test start http-get://localhost:3000 cy:open.

I can confirm this works for me:
// package.json
    "start": "HTTPS=true PORT=3001 react-app-rewired start",
    "cy:run": "cypress run",
    "cy:ci": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test start:ci https-get://localhost:3001 cy:run",

@praneetha-ck-robo , can you try this and tell if it works?

@rodoabad you can try to isolate what is causing the error. Try each command separately:
  "scripts": {
    "test": "node src/test",
    "start:api": "node src/api",
    "start:server": "node src/server",
    "start:server-and-api": "start-test start:api 7600 start:server",
    "test:all": "start-test start:server-and-api http-get://localhost:3000 test"
  }

this is step 1, to validate the problem is actually in test:all.
If your server runs on https, see my previous comment

I'm also having this problem with CRA (react-scripts v3.4.3).
The way my HTTPS is set is in my .env file:
HTTPS=true
SSL_CRT_FILE=./.cert/cert.pem
SSL_KEY_FILE=./.cert/key.pem

I've tried the answer you suggested @goldylucks however it seems that when the Webpack server starts it hijacks / overrides the rest of the script.

Just chipping in to add that I was trying to run end-to-end tests on my Create React App on localhost with https enabled. Initially the server would start but then the test would not get triggered, but by adding the command START_SERVER_AND_TEST_INSECURE=1 before running start-server-and-test it worked perfectly.


Add the event doc

Description

Add the event doc

Checklist

[ ] Does npm test pass with this change (including linting)?
[ ] Is the new or changed code fully tested?
[ ] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

The PR only changes a doc.

@guyroyse I'm sorry that I deleted the patch repository accidentally, so I have to open this pr to continue the old one #1745.

I have merged your suggestions, that are very useful, especially the markdowntable website.


failed to update coverage via rest api for Composite Res (a bug or by design?)

This rest call is failing against 1.16.1 and 1.17.
I got a 400 error on the client, but I couldnt find any error messages in log files on a testing server that seems to be related.
metadata = {
"coverages": [
{"type": "period", "value": {"start": "01/01/2000", "end": "12/12/2010"}}
],
}
science_metadata_json = hs.updateScienceMetadata('ID OF RESOURCE GOES HERE', metadata=metadata)

@sblack-usu @pkdash @horsburgh @dtarb
I found the failure is caused by this line. So it is by design?
https://github.com/hydroshare/hydroshare/blob/develop/hs_core/models.py#L3733
I was able to manually update resource-level coverage for a composite resource on UI. But currently, REST API is prohibiting it.
Also, the specific error message didn't bubble up to the client, which caused troubles in debugging unless going through the source code.

Also this file has more than 4000 lines codes.....it even takes github 1-2 sec to load for the first time...
https://github.com/hydroshare/hydroshare/blob/develop/hs_core/models.py#L3733

@zhiyuli

I found the failure is caused by this line. So it is by design?
https://github.com/hydroshare/hydroshare/blob/develop/hs_core/models.py#L3733

The above update() function is used by REST API for bulk (updating multiple metadata elements)metadata update. At the time of implementation it was by design not to allow manual update of coverage for composite resource as the coverage gets set by the file types contained by the resource. Later in phase-2 of composite resource, this was changed and now we allow manual update of coverage for composite resource. The code line in reference needs to be fixed.

@zhiyuli - we could likely squeeze this into the enxt release if you wanted to make the change.

@sblack-usu   yeah. It seems to be a small change and  I would like to look into this. I need some guidance on PR policy though as I heard it has changed recently. Will bother you on slack.

@pkdash @horsburgh
Thanks for the explanations. I just notice the "if statement" that prevent updating coverage also applies to TimeSeriesResource as well. Do we want to keep unchanged for TimeSeriesResource (while lifting the ban for CompositeResType)?

I think we should probably not spend time updating time series resource, but rather focus on migration of existing time series resources to composite and then full deprecation of the time series resource type.

OK. I assume that means we should keep everything here related to
TimeSeriesResource unchanged. Will update my PR accordingly.
On Wed, Nov 28, 2018 at 12:59 PM Jeff Horsburgh<EMAIL_ADDRESS>wrote:

I think we should probably not spend time updating time series resource,
but rather focus on migration of existing time series resources to
composite and then full deprecation of the time series resource type.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/hydroshare/hydroshare/issues/3027#issuecomment-442584285,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJmqRyKtWyHT77YzdNwNtlvGyAjhuHELks5uzusggaJpZM4Y2D2Y
.

PR https://github.com/hydroshare/hydroshare/pull/3031


*(Question) Not an Issue

Hi Marco,
First of all, thank you so much for developing and continuing to maintain this library, the features it yields are astonishing. I have a question (wasn't able to find it anywhere in the documentation/no previous issue correlates) regarding the very useful options to interact with the 3D scene (the keyboard commands -> A, K, L, etc.), is there any way to hide them/toggle them off? (For the less experienced users of the program that might get confused if they accidently click a button on their keyboard).
Thank you!

Thanks Vladyslav! Yes, you can add in your script:
from vedo import settings
...
settings.enable_default_keyboard_callbacks = False
settings.enable_default_mouse_callbacks = False
...

Thank you so much, Marco!


Allow project specific keybindings

same as the settings.json, I should be able to specify a local keybindings.json that overrides user keybindings and global keybindings.
A prompt alerting the user to the override and asking which to use might be appropriate.

seems like a duplicate of https://github.com/Microsoft/vscode/issues/4504 where an extension was suggested instead
I found thru https://stackoverflow.com/questions/48945319/a-keybindings-json-per-workspace-in-visual-studio-code

I believe this issue attempts to address part of the reasoning used to dismiss issue #4504:  this issue requests an alert noting when local keyboard shortcuts would be overwritten by workspace-specific shortcuts.  As to the "win+" vs "cmd+" argument, these keys should simply be synonymous for obvious reasons.
I would also like to see this feature, not simply for team sharing (as noted in the other issue), but also so I can easily move from one computer to another, sharing the Workspace via a cloud, and have the same shortcuts easily available.
Finally, users can build shortcuts that are primarily designed for a given project/workspace.  This feature would allow a clear distinction between general, user-defined shortcuts and workspace-specific shortcuts while alerting a user when his or her settings are being overwritten (and perhaps allow the user to prevent this?).
Thanks for your time and effort!

Another strong argument in favor of this feature is tasks. If I can't define tasks globally, why force me to assign keyboard shortcuts to them in exactly such way.
Consider a task called "Foo" and the following keybindings.json content:
{
    "key": "ctrl+h",
    "command": "workbench.action.tasks.runTask",
    "args": "Foo"
}

The same combination of keys can now trigger entrirely different behavior across several workspaces.

@davidstraka2 Yes in multiple workspaces my keys trigger different tasks! Drives me crazy...
There should be consistency between the different config files.

This feature would be appreciated because adding some key bindings (or disabling them cough https://github.com/Microsoft/vscode/issues/60711 cough) are very helpful to share across team members / desktops / laptops in the same way we standardize other settings. Creating a custom extension is a doable workaround but adds significant overhead, compared with the way other workspace settings can be defined.

For me, it is about the Run Tests task.  You have Cmd+Shift+B for the Build task.  It appears that you removed the Cmd+Shift+T keystroke for the Run Tests tasks.  I want to ensure that those two keystrokes are consistant within my organization.  Honestly, I should be able to define the keystroke when I define the task but, failing that, have a way to "bake" it into the project.  i.e. Allow me to add a keybindings.json file in the .vscode directory or let me add the keybindings json snippet to the settings.json file (or some other mechanism).  I just need an easy/consistant way to run our Test task.

...probably allow us to specify key bindings right in tasks.json?

Imagine grabbing a third party codebase and then unwittingly running their shortcut to a binary as you copy a line out of the editor.
Sad times - and maybe a security solution should be considered?

@chrisbward this could probably hook nicely into the new-ish Workspace Trust feature. Workspace tasks are already disabled in "restricted mode." It would probably make sense to disable keyboard shortcuts as well.

I would like to see local workspace keybindings.json for two reasons:

I have different projects that use the same keybinding to run the same command "evalInHost" but with different arguments for each workspace (the host app specifier is different depending on the project/workspace).

Adding a keybindings.json file to the local .vscode workspace folder is logical and expected—I did it intuitively (before discovering it doesn't work).

Am I missing the "correct" way of achieving what I need? I have read other (closed) issues asking for the same thing (for different use cases) and none of the reasons given against the feature persuade me. Sure it would be bad manners to add personal keybindings to a shared project—no argument there—and I would support a one-off security type warning that local keybindings would override my global keybindings. But really, making an extension for each project just to add a key shortcut isn't at all logical or intuitive.

I would also like to point out that it is common practice in many repositories to add ignore rules for certain files. If workspace-local keybindings are not expected to end up in a repository, then it is generally a trivial affair to mark them as ignored.

@chrisbward this could probably hook nicely into the new-ish Workspace Trust feature. Workspace tasks are already disabled in "restricted mode." It would probably make sense to disable keyboard shortcuts as well.

I dont understand why this is (still) not possible when a concept of workspace trust exists. Would be quite beneficial to onboard people to projects with shared keybindings for/in tasks.json.

Came here after creating .vscode/keybindings.json for a project-specific keybinding and wondering why didn't it work. Please, make it happen! Absolute necessity in some situations. For anyone looking for a workaround, I chose this one:
In the project's .vscode/settings.json
{
    ...
    "workspaceKeybindings.myAwesomeTask.enabled":  true
}

In the User keybindings.json
{
    ...
    {
        "key": "...",
        "command": "workbench.action.tasks.runTask",
        "args": "My Awesome Task",
        "when": "config.workspaceKeybindings.myAwesomeTask.enabled"
    }
}

Happy six year aniversary!

I believe this issue attempts to address part of the reasoning used to dismiss issue https://github.com/microsoft/vscode/issues/4504

If we cannot dismiss it we totally can ignore it. Not a single comment from MS.

This is needed, atleast allow us specify keybindings based on os if that is the concern, I am happy to duplicate keybinding.json to keybindings.macosx.json, keybindings.win.json, keybindings.linux.
This atleast will allow those who care specifiy a keybinding for their desired os and move on. This is needed please!

I want this to be able to save my keybindings in github along with the project.
Ideally the .vscode/keybindings.json can be activated from .vscode/settings.json

I want this to be able to save my keybindings in Github along with the project.
I for example work on multiple devices and this would be a great benefit to me.
Ideally the .vscode/keybindings.json can be activated from .vscode/settings.json.
This could be handled the same way as settings, where folder settings take priority over workspace settings, which take priority over user settings.
In my opinion this would be very intuitive as people are already used to this system from the way vscode handles settings.
Also the implementation of this feature would be easier that way as the outline is already there from settings.
Additionally nobody is forced to use this feature.
This feature can be especially useful as different project can use different languages. Since there are only limited keys that can be reached comfortably, having language specific keybindings for different project can be very helpful.
You can probably imagine that there are a lot more customization possibilities that I didn't think of and mention here.


Move to ipfs-shipyard?

Now we have an org to incubate projects that not part of the core implementation of the protocol or discussion of the spec. That org is ipfs-shipyard created from https://github.com/ipfs/pm/issues/448
Short description:

IPFS Shipyard is a venue for the community to pursue and collaborate on research experiments, products, code libraries and more around the IPFS project. It is where innovation in userland happens and where we discover and form new primitives to push to the core of IPFS.

Anyone opposing?

Hm, we have lots of better and probably more updated examples. I vote for archiving this repository instead of moving to ipfs-shipyard.


Source-initiated subscription with computer OU?

Hi, is there a way to create a source-initiated subscription except use a computer OU instead of a security group? We could copy our dynamic computer OU to a security group, but then the security group would be static (we’d have to write a PS script or something to continue to dynamically copy over which is not desirable)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e5862cc7-3f36-5f2e-9ade-f7441f99f818
Version Independent ID: b8bd1985-7b5b-ea79-976a-7d96ad69335c
Content: Use Windows Event Forwarding to help with intrusion detection (Windows 10)
Content Source: windows/security/threat-protection/use-windows-event-forwarding-to-assist-in-intrusion-detection.md
Product: w10
Technology: windows
GitHub Login: @DulceMontemayor
Microsoft Alias: dolmont

@officedocsbot assign @jvsam

Hi @nick405060 thank you for opening this issue, however, please be informed that this Github site is used as a feedback system to help improve the quality of the technical documentation of Microsoft Docs. So if you have suggestions related to this documentation or ideas to make it better for users, please let us know here and we will submit them for review.
Now, with regard to your question, we believe it will be best addressed by contacting Windows 10 support. You can also check the Microsoft Defender ATP Community Center. It's a place where community members can learn, collaborate, and share experiences about the product. It's the best place to ask your question and engage with the community. Also, kindly keep us informed on the resolution or any relevant information you will learn that can be incorporated into this documentation.
Thank you for being part of the Microsoft Docs community!

Hello again @nick405060, we didn’t hear back from you regarding this issue but we're hoping you were able to contact support to resolve your concern. We will now close this issue, however, feel free to re-open if you have suggestions or ideas to improve the quality of this documentation. Thank you.

@officedocsbot close


Define hf_config explisitly for convert_hf_mpt_legacy

Otherwise, the convert_hf_mpt_legacy call may fail when the function is called in other than global scope because the function refers hf_config in the global scope right now.

Hi @bloodeagle40234  could u please share us the reproduce steps when u met the issues?

Hi @nv-guomingz
My minimum snippet is
from convert_checkpoint import convert_hf_mpt_legacy
from tensorrt_llm import Mapping
from transformers import AutoModelForCausalLM
hf_model = AutoModelForCausalLM.from_pretrained("mosaicml/mpt-7b")

convert_hf_mpt_legacy(hf_model, Mapping())

This snippet can be located within /TensorRT-LLM/examples/mpt dir.
After running the snippet via python command, we will get the following error.
Traceback (most recent call last):
  File "/TensorRT-LLM/examples/mpt/snippet.py", line 6, in <module>
    convert_hf_mpt_legacy(hf_model, Mapping())
  File "/TensorRT-LLM/examples/mpt/convert_checkpoint.py", line 666, in convert_hf_mpt_legacy
    num_key_value_heads = hf_config.attn_config['kv_n_heads'] if 'kv_n_heads' in hf_config.attn_config \
NameError: name 'hf_config' is not defined

The reason why calling convert_checkpoint doesn't hit this problem is because hf_config is defined in __main__ condition in the global module scope. Then, the global scoped variable is referred even though hf_config is not defined in the local scope of convert_hf_mpt_legacy
As you may notice it, convert_hf_mpt funciton already has hf_config argument to resolve the issue.

Hi @bloodeagle40234 , thanks for your explanation. Let me cherry-pick your mr into our internal code repo firstly.


Attribute Microphone

Hi, I am new in this topic.
So, I have installed the SpeechRecognition without problem, but when I tried to test the example I got the message "AttributeError:'module' object has no attribute 'Microphone'".
I am using Python 3.4 and SpeechRecognition was installed using the files of this page. Besides I have updated using PIP but I still get the same message.
I don't know if SpeechRecognition only  works in a specific version of Python or if it is neccessary to use other libraries or an extra microphone because I am using the internal microphone of my laptop.
Thanks

Please read the README.
In short, you need to install PyAudio in order to use the Microphone class. Installers for Windows are provided in the download. On Linuxes, you can likely obtain PyAudio via your package manager.


[New Feature] need support for dynamic import

What problem does this feature solve?
dynamic import a single component when required.
can reduce the first page assert size.
What does the proposed API look like?
import(/* webpackPrefetch:true */ 'cube-ui/datePicker')

You can import the components directly
import('cube-ui/lib/date-picker')
import('cube-ui/lib/date-picker/style.css')
// or
import('cube-ui/src/modules/date-picker')

well done, it works.


[Feature Request] Ability to modify text

Hello!
This is an amazing tool ✨ and I wonder if it's possible to add an additional feature to modify the text using the findObjectByName or findObjectById?
For example:
function onLoad(spline) {
    const obj = spline.findObjectByName('Text');
    // change the content of the text
    obj.text('Something Else')
    // or
    obj.text = "Something Else"
  }

Appreciate your help!!

Not possible at the moment, but we'll look into it!

this would be great!!

I look forward to this feature being launched soon.
BTW, there has been no updated version for a long time.

Hi this is now possible using string variables in your spline scene and modifying the variable through the runtime API spline.setVariable('myStringVariable', 'new text').
The spline object is exposed as an argument of the onLoad prop function of react-spline. Happy coding !


Update Submariner & Lighthouse to 0.6.1

No functional changes exist in this release, but fixes the testing
issue of Lighthouse + Globalnet handled in [1]

[1] https://github.com/submariner-io/lighthouse/pull/272

Signed-off-by: Miguel Angel Ajo<EMAIL_ADDRESS>

Re-running , as there was a random unrelated globalnet failure: https://github.com/submariner-io/submariner-operator/issues/461#issuecomment-683687714

Ok, I updated the lighthouse go.mod reference to grab https://github.com/submariner-io/lighthouse/pull/275 changes just merged in. Otherwise E2E doesn't work correctly on openshift or randomly fail in kind.


One or two questions about the running of experimental code

Hello, I'm honored to read your paper. I want to ask some questions. First, how can I download the experimental data set in the paper? Need to climb over the wall? Second, is the system running in the whole experiment on windows or Linux?

Thanks a lot for reading our paper!
(1) We provide the code to download dataset (see README -- Download Data). The CNN data needs access to Google Drive.
(2) All under Linux.

Hello, author. Thank you for your reply，We plan to repeat your experiment, but at present, it is on the windows system of the local computer, so the data cannot be downloaded directly before, and I have a problem with running train.py. Do I need to climb the wall while running that program? Next, we plan to rent a Linux server online to run the program. Hello, the author. In addition, my computer has two GPUs locally, but one is the integrated display GPU and the other is the NVIDIA GPU. If these two GPUs are running code on the local computer, can they meet the basic two GPUs required by the experiment?
------------------ 原始邮件 ------------------
发件人: "Bowen @.>;
发送时间: 2022年8月19日(星期五) 上午6:15
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [tanyuqian/progressive-generation] One or two questions about the running of experimental code (Issue #5)
Thanks a lot for reading our paper!
(1) We provide the code to download dataset (see README -- Download Data). The CNN data needs access to Google Drive.
(2) All under Linux.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Oh sorry for missing this message.
(1) Yes, VPN might be necessary because the data is downloaded from google drive.
(2) About the GPUs, I'm not sure if your hardware setting is run-able. You can check if PyTorch can detect your gpus by torch.cuda.device_count().

Hello, the author. I also want to ask you about this configuration. Due to the limited hardware resources, can you change the code structure to run the bart and gpt models on a GPU. Because I don't have such high experimental conditions as 2 GPUs or 4 GPUs at present, please reply. Thank you very much

Hello, the author. My current configuration of the local laptop is an independent video card RTX3060, and the video memory is 6GB. Do you think such a configuration has the basic conditions for completing your experiment of progressive long text generation? Thank you for your reply. Thank you very much!

Hi! Our model is BART-Large with max_length=1024 on both encoder and decoder sides, and it takes more than 10GB GPU memory (roughly 15 GB, if I remember correctly), so I distributed the parameters on 2 1080Ti GPUS. A single 6GB GPU is not able to run the code.


Liking a post continuously causes the like count to to decrease

If you click fast on a posts like button it causes the like count to decrease
We need to disable the like button when it's in the process of liking/unliking a post

Sry copied extra stuff on first commit, removed in PR.


Connect to OData Service on Cloud Foundry Using SAP Cloud SDK

Tutorial URL: https://developers.sap.com/tutorials/s4sdk-odata-service-cloud-foundry.html
Please specify the step you are referring to 10: Systems.json and credentials.
Hi gurus,
I managed to run the test class and get results. Failure has happened on status code (<404> instead of <200>).
I reviewed the systems.yml and play around with fields systemId, sapClient, but got no luck. I´ve tried already both fields systemId and sapClient = blank, however, I keep getting 404.
Find enclosed my project.
simpleCFApp - Copy.zip
BR,
Pietro

Hi, to pinpoint the issue please consider the following querstions:

Are you running your tests locally?

I managed to run the test class and get results.
With "results" you mean the 404 messages?

Are you certain you provided the correct details for your S/4 system in the systems.yml and it is placed in the appropriate directoy?
Do you target a cloud S/4 instance or on premise?

Hi @MatKuhr,
My comments down below:
Are you running your tests locally?
Pietro: No. I am connecting to an S/4HC
Are you certain you provided the correct details for your S/4 system in the systems.yml and it is placed in the appropriate directoy?
Pietro: Yes, I do. I can assure you on URL, what was used successfully in step07. However, I am not sure of systemId and sapClient as I am using S/4HC, thus I cannot retrieve such information. Also, I´ve tried using sapClient and systemId = blank. The file systems.yml is in "/integration-tests/src/test/resources
Do you target a cloud S/4 instance or on premise?

Pietro: No. I am connecting to an S/4HC

I was actually asking if you are executing the test class introduced in step 8 on your local machine. This is different from running the code on Cloud Foundry or a locally setup server instance.
In general, for S4HC you can remove the optional lines including system ID and sap client.

Pietro: Yes, I do. I can assure you on URL, what was used successfully in step07.

Step 7 does not contain any instructions to execute tests. Do you mean step 8? Please specify a little bit more at which point exactly the problem is occurring.

Hi @MatKuhr,
Sorry, I misunderstood the question. Yes, I am running it locally (step 08 of the tutorial). Also, I removed optional lines and tried both instances ( https://my302085.s4hana.ondemand.com and  https://my302085-api.s4hana.ondemand.com). Unfortunately, the issue kept.
As for my quote " Pietro: Yes, I do. I can assure you on URL, what was used successfully in step07.", my bad again. I meant I got no issue by using such instance and credentials on step 05 (servlet) and 06 (deployment of servlet connecting to S4HC).
I attach my project up to date (after the changes stated out above)
simpleCFApp - Copy2.zip
BR,
Pietro

Hi Pietro,
after some investigation this again turned out to be a copy and paste error. Note that in your test code you are deploying the wrong servlet for testing.
Instead of:
return TestUtil.createDeployment(HelloWorldServlet.class);

please use:
return TestUtil.createDeployment(BusinessPartnerServlet.class);

The HelloWorldServlet  of course has no endpoint /businesspartners so it returns a 404.

Hi @MatKuhr,
First of all, the correction proposed (which was a mistyping from my end) did solve the issue. Thus, I close the issue.
 My way of absorbing it by retyping the code. Anyway, from now, I will make sure I reviewed my code type carefully before I raise a new ticket.
That said, thank you again, and I wish you a good one.
BR,
Pietro

No problem, I am glad that solved it for you 👍


Update tasks/sep/006-1 with new 1/1 Safe architecture

This task was previously executed. Then, we decided to install the DeputyGuardianModule on a new 1/1 Safe, so that execution was reverted. This PR modifies the original task to work for this new architecture, and is nearly identical to the version of this task we will use on Mainnet (we will need to update addresses, etc.)

Needs updating to these new liveness contracts due to the incorrect threshold:
"LivenessGuard": "0xc26977310bC89DAee5823C2e2a73195E85382cC7",
"LivenessModule": "0xEB3eF34ACF1a6C1630807495bCC07ED3e7B0177e",


Cannot open rviz2

$ rviz2
[INFO] [1695823660.091830699] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1695823660.091943524] [rviz2]: OpenGl version: 4.1 (GLSL 4.1)
D3D12: Removing Device.
Segmentation fault
Could someone help?

Can you please give details on what ROS release you are using, and which platform you are using?

Can you please give details on what ROS release you are using, and which platform you are using?

Hi, I am using ros2 humble and wsl2

Hi, I am using ros2 humble and wsl2

OK, yeah, I thought it would be WSL2.  That's not currently one of our supported platforms, so I don't have a lot of advice to give you.  It will probably be best to open a question on https://robotics.stackexchange.com/questions/tagged/ros, which is our central Question and Answer site.
If you find out a way to fix it, we'd be happy to take pull requests to update the code or the documentation to make it run.

Hi, I am using ros2 humble and wsl2

OK, yeah, I thought it would be WSL2. That's not currently one of our supported platforms, so I don't have a lot of advice to give you. It will probably be best to open a question on https://robotics.stackexchange.com/questions/tagged/ros, which is our central Question and Answer site.
If you find out a way to fix it, we'd be happy to take pull requests to update the code or the documentation to make it run.

OK thanks^^ I will do it

fixed the issue by adding
export LIBGL_ALWAYS_SOFTWARE=true
to .bashrc file.
Thanks! @clalancette

Thanks!  I've made a PR to the documentation to add this as a possible troubleshooting step: https://github.com/ros2/ros2_documentation/pull/3965


Enable ginkgolinter and fix finding

Proposed changes
Enable ginkgolinter in .golangci.yaml, and fix its findings.
The fixing was done by running the ginkgolinter cli. All the finding except for one, are categorized as style findings, e.g. Expect(err).To(BeNil()) instead of Expect(err).ToNot(HaveOccurred()).
The linter also found one real issue in tests/suite/longevity_test.go, where there was a check (Expect) with no assertion (To(...)). That was fixed manually from:
Expect(framework.WriteContent(resultsFile, "\n## Traffic\n"))

to
Expect(framework.WriteContent(resultsFile, "\n## Traffic\n")).To(Succeed())

Closes #1678
Checklist

[x] I have read the CONTRIBUTING doc
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked that all unit tests pass after adding my changes
[ ] I have updated necessary documentation
[x] I have rebased my branch onto main
[x] I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

Release notes
None

@nunnatsa, thanks for adding this! This will be very helpful 😄


Missing the --list-of-files option

The option -list-of-files is not covered here.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: d1bdc29f-175d-09b9-771d-cd84dbffbb49
Version Independent ID: f5fe11b9-8224-aa19-602d-bcc3ed7c9452
Content: azcopy copy
Content Source: articles/storage/common/storage-ref-azcopy-copy.md
Service: storage
Sub-service: common
GitHub Login: @normesta
Microsoft Alias: normesta

@LeeBear35
Thanks for your feedback! We will investigate and update as appropriate.
Could you please elaborate the query for better understanding. So, we can assist you further.

@LeeBear35
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Dynamically Loading a String Dictionary at Runtime

Hello everyone,
I'm facing a challenge where I need to dynamically load a dictionary of strings during the runtime of my application. I want to update localized strings in the app without having to reload or recompile the entire application. How can I implement the loading and updating of string resources "on the fly"? Are there any methods or practices that would allow me to efficiently manage strings, especially in the context of multilingual support?
I would appreciate any ideas or suggestions on how to implement or integrate such functionality.
Thank you!

Hi! This is a feature that will be implemented in the feature, but unfortunately, it's not supported yet.


[release-v1.9] Allow wathola components to run with Istio

Backport from upstream

/cherry-pick release-v1.10


PUT IIIF Collection

Update existing Create endpoint to support creating IIIF Collections
part 1:
https://deploy-preview-3--dlcs-docs.netlify.app/api-doc/iiif#example-create-a-iiif-collection-within-a-storage-collection
see https://github.com/dlcs/iiif-presentation/issues/28
addition to PUT endpoint /{customer id}/collections/{id}

IIIF Collections do not contain the "storage-collection" behavior (see iiif-behaviors)
still requires data added to the database but IsStorageCollection = false
JSON document needs to be saved to S3
Any valid IIIF collection can be saved
slug and parent properties are required
retrieved document should be equivalent to saved
the ID field should be the same as generated by the ID

Saves anything in items (as JSON in S3) but does not process it.

NOTE: look into model binding + reading contents separately


Add error codes to API responses

Currently the API only includes the detail message in error responses.  For instance, if you fail to include the required header, you'll get a response like:
{
  "detail": "X-Environment-Id or X-Team-Id header must be set",
}

That "detail" message is mostly intended for human consumption.  For something that is programmatically accessing the API, a more parser friendly code should be included so that there is a means of differentiating between the various errors that might share a status code (i.e. the many flavors of 400 errors) without having to resort to parsing the detail message.
What we'd like the response to look like instead is:
{
  "detail": "X-Environment-Id or X-Team-Id header must be set",
  "code": "missing_header"
}

There are a few steps involved with this.
FIrst, we want to create a custom exception handler that adds the code to the response.  Our custom handler should look basically like the on in the example shown at that link, except where they are adding status_code we'll want to do:
response.data["code"] = exc.get_codes()

This custom exception handler can live in core.api.exceptions
Next, we'll want to build custom exceptions, again in core.api.exceptions (mostly) that we will raise in the appropriate places instead of the generic BadRequest that we are raising currently.
For exceptions that are specific to the builder app (exceptions that would be raised when calling /publish), those should be created in builder.api.exceptions.


[PL] Added support for more entity in weather (detailed weather, temperature, humidity, dew point, pressure, wind speed, ozone, cloud coverage, visibility, uv index)

Added by default support for:

detailed weather
temperature
humidity
dew point
pressure
wind speed
ozone
cloud coverage
visibility
uv index

@witold-gren I'll have a look at it when back at home, today's night/tomorrow's morning 👍

@witold-gren Approved, merge at your discretion 🙂


license?

what's the license of this open source stuff?

Hi halx99, I just added an MIT License file. There are doubtlessly better implementations around at this point to base your code off though. :-)

tks


Dependencies update

Hi,
I'm using loopback 4 with couchbase and I'd like to use this connector in replacement of a fragile rework of the unmaintained https://github.com/guardly/loopback-connector-couchbase . I don't need N1QL for now and your connector seems to fit my needs.
An important question is whether you plan to update the main depencencies such as couchbase and loopback components to their lastest releases ?
Best regards,

@fidgi hi, we don't have a plan to upgrade this npm to support the latest couchbase and loopback(4?) in near future,  it is not a light migration, as the node.js SDK also bumped to a major version v3: https://docs.couchbase.com/nodejs-sdk/3.0/hello-world/start-using-sdk.html.

Thanks for the reply @xavierchow .
Just moving to version 2.6.11 of couhbase node SDK and the latest loopback-connector-* version will be fine.


tweak_pallet

#45 first draft.
Checklist

[x] I read the CONTRIBUTING GUIDE
[x] I opened a CONTRIBUTING ISSUE before opening the PR

Description
This is the first draft for the implementation of the tweak_pallet config section, the main problem here is the following:

It only works for some of the colors from lackluster.color, I'm guessing this has to do with the theme or how the colors are assigned.

Big problem
the diffs you will see are mostly formatting changes, we need a convention for formatting Lua, my bad if I didn't see it. But some stuff had single quotes and other stuff doubles. My changes can be looked up greping @JuanBaut
Example config
return {
	dir = "~/dev/neovim/lackluster.nvim",
	dependencies = {
		"nvim-lua/plenary.nvim",
	},
	dev = true,
	lazy = false,
	priority = 1000,
	init = function()
		local lackluster = require("lackluster")

		lackluster.setup({
			-- ('default' is default) ('#ffaaff' is a custom colorcode)
			tweak_pallet = {
				lack = "#c3e88d", -- works in lualine
				luster = "#b4f9f8 ", -- doesnt work in syntax
				orange = "default",
				yellow = "default",
				green = "default",
				blue = "default",
				red = "#ff757f", -- doesnt work in errors
				black = "default",
				gray1 = "default",
				gray2 = "default",
				gray3 = "default",
				gray4 = "default",
				gray5 = "default",
				gray6 = "default",
				gray7 = "default",
				gray8 = "default",
				gray9 = "default", -- some of the gray values get chaged
			},
		})

		vim.cmd.colorscheme("lackluster")
		vim.keymap.set(
			"n",
			"<leader>0",
			"<cmd>lua require('lackluster').dev.lackluster_reload()<CR>",
			{ desc = "Reload lackluster" }
		)
	end,
}

Screenshots

image showing the mismatch of the red and the error and the match in lack and lualine in insert mode

Thanks so much for the PR! I'm on holiday right now, so I'll get to reviewing this when I get back, sometime shortly after the 23rd :)

It's gunna be a few more days until I get to this, I just moved house and am gunna focus on uppacking and getting settled in :)


Add CORS headers to microservice

Current coverage is 93.24% (diff: 100%)

Merging #17 into master will increase coverage by 0.09%

@@             master        #17   diff @@
==========================================
  Files             4          4
  Lines            73         74     +1
  Methods          13         13
  Messages          0          0
  Branches         14         14
==========================================
+ Hits             68         69     +1
  Misses            5          5
  Partials          0          0

Powered by Codecov. Last update 6aebd25...f243bb3

Maybe this could be configurable? Would be nice to set a list of the domains it is used from.

Why would somebody restrict the domains this can be used from, what's the use case?

Filtering out local calls from development of a website using this, but this might not be the best way to do it 😛

See #11, I think this should be fine?

LGTM, thanks so much!


Send dispute resolution accepted notification to both parties

Currently, when a dispute resolution is accepted by calling release_funds, the other party is not notified. The following should happen:

the buyer and seller should both receive a notification over webSockets of type "payment_released" with the order id of the order
when get_purchases and get_sales are called, the order should return a status of 6. Currently if the buyer wins, the buyer gets a status of 6 on the transaction, but the seller gets a status of 5, and doesn't know the resolution has been accepted.

Related client issue: https://github.com/OpenBazaar/OpenBazaar-Client/issues/838

I'm inclined not to do this now. It would need yet another network message that needs to make it to the other party, and would likely end up in the DHT adding to the amount of data in there.

This is pretty important from a UX perspective. Is this something you have the bandwidth to do @cpacia ?


Pinning the Version of license-lint

What type of PR is this?
/kind bug
What this PR does / why we need it:
The licenses check functionality in the CI system was broken due to an issue where the version of license-lint was upgraded automatically.
By locking down license-lint to a specific, known-good version, the licenses check task is able to perform reliably on each build
Which issue(s) this PR fixes:
Fixes #608

/lgtm


Update README.md

Fixes #42

Thanks for catching this @galvesribeiro - looks like you've also found a bug in our CI setup (forked repos cause a specific edge case to occur). Let me figure out how to handle that and we'll try to get this in ASAP.
Thanks again.

wasn't able to get CI to retrigger manually (seems i can only trigger it for in-repo branches) so i've made a small additional change here in the hopes that CI goes green now....we'll see 😸


Missing app icons

Describe the bug
Many apps only show up with the default ghost icon
To Reproduce
just look at the neohtop process
Expected behavior
show their app icon
Screenshots

Desktop (please complete the following information):

OS: [e.g. macOS] macOS
Version [e.g. 22] 15.2

Additional context
Add any other context about the problem here.

that's not a bug, unless you wanna take some time to add NeoHtop to simpleIcons