Feature: Add Table of Contents to README

TOC to README, see post: https://github.blog/changelog/2021-04-13-table-of-contents-support-in-markdown-files/
It would also be nice to have a proper TOC at the start of the page
SEE:

https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#table-of-contents

the readme suggests using TOC functionality but needs a bit better layout too I feel
The workflows and actions can be separated to sections and the Meta information version etc could be a badge?


[3.0] Set to not register metadata service to registry.

fixes #9895.
Although the address of RegistryConfig for MetadataService Config was set N/A, it gets overridden by the value set in application.properties. So we need to set the register property explicitly to false to stop it from being registered.
 RegistryConfig registryConfig = new RegistryConfig("N/A");
registryConfig.setId("internal-metadata-registry");
serviceConfig.setRegistry(registryConfig);
serviceConfig.setRegister(false);

Codecov Report

Merging #9902 (2ba7faa) into 3.0 (4992684) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                3.0    #9902      +/-   ##
============================================
- Coverage     65.65%   65.54%   -0.11%
+ Complexity      319      296      -23
============================================
  Files          1213     1213
  Lines         52928    52931       +3
  Branches       8017     8016       -1
============================================
- Hits          34749    34694      -55
- Misses        14377    14421      +44
- Partials       3802     3816      +14

Impacted Files
Coverage Δ

...apache/dubbo/common/constants/CommonConstants.java
100.00% <ø> (ø)

...in/java/org/apache/dubbo/config/ServiceConfig.java
72.77% <ø> (+0.53%)
:arrow_up:

.../metadata/ConfigurableMetadataServiceExporter.java
73.68% <100.00%> (+1.08%)
:arrow_up:

...nt/metadata/ServiceInstanceMetadataCustomizer.java
75.00% <100.00%> (ø)

.../rpc/protocol/tri/transport/TripleTailHandler.java
50.00% <0.00%> (-50.00%)
:arrow_down:

...o/rpc/protocol/tri/transport/GracefulShutdown.java
50.00% <0.00%> (-35.72%)
:arrow_down:

...nt/metadata/ServiceInstanceHostPortCustomizer.java
65.78% <0.00%> (-21.06%)
:arrow_down:

...dubbo/common/status/support/LoadStatusChecker.java
46.15% <0.00%> (-15.39%)
:arrow_down:

...ava/org/apache/dubbo/rpc/proxy/InvocationUtil.java
81.81% <0.00%> (-9.10%)
:arrow_down:

...g/apache/dubbo/remoting/api/ConnectionHandler.java
45.45% <0.00%> (-9.10%)
:arrow_down:

... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4992684...2ba7faa. Read the comment docs.


haste-client: Init at 0.2.3

Motivation for this change
https://github.com/NixOS/nixpkgs/issues/86041
Things done
Packaged haste-client at release 0.2.3.
This seems a bit unmaintained and a few warnings are given at runtime but it still works and it is quite useful to share code on IRC.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

while the warnings are annoying
it works for me, thanks

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 96536 run on x86_64-linux 1

1 package built:

haste-client

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 96536 run on x86_64-linux 1

1 package built:

haste-client

The tarball job on unstable-small is broken right now and a git bisect points me to this PR.

The tarball job on unstable-small is broken right now and a git bisect points me to this PR.

I believe the issue is the use of the bundlerEnv as a propagated build input, which no other package does. I believe it should be replaced with a bundlerApp usage, which seems to be what @SCOTT-HAMILTON intended, without silently breaking a piece of infrastructure way higher up.

I believe the issue is the use of the bundlerEnv as a propagated build input, which no other package does. I believe it should be replaced with a bundlerApp usage, which seems to be what @SCOTT-HAMILTON intended, without silently breaking a piece of infrastructure way higher up.

Fixing it, BTW haste servers seems to be dead right now.

Fixing it, BTW haste servers seems to be dead right now.

Awesome, I'd suggest looking at https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/ruby.section.md#packaging-applications for the best way to solve it :p

Awesome, I'd suggest looking at https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/ruby.section.md#packaging-applications for the best way to solve it :p

Fixing it, BTW haste servers seems to be dead right now.

maybe I did not get rate limited but it is down. Interesting.

Fixing it, BTW haste servers seems to be dead right now.

maybe I did not get rate limited but it is down. Interesting.


Remove deprecated usage of Exchange.getOut in StaxProcessor

Description

Target

[ ] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[ ] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I have run mvn clean install -DskipTests locally and I have committed all auto-generated changes

By what should it be replaced then? How to get rid of the deprecated method?

By what should it be replaced then? How to get rid of the deprecated method?

Leave it as-is. The deprecation is for end users to not use it.
We will later in Camel 5 remove and change internal inside camel


testimonial changes

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #311
Test URLs:

Before:

https://main--shredit--stericycle.aem.page/en-us/marketing/bulk-paper-shredding

After:

https://test-changes--shredit--stericycle.aem.page/en-us/marketing/bulk-paper-shredding

I haven't changed the font because we use the same font for all headings—'Lato', 'Lato Fallback', sans-serif—so it should be consistent here as well.


calc_PhiID return array

Attempting to calculate information atoms on two timeseries derived from BOLD signals, the calc_PhiID returns an array of atoms which has N - tau dimensions, N  being the number of timepoints in the timeseries.
My understanding would be that the function would return a single value per information atom instead, is that correct?
Hereby attached the steps required to elicit the same behavior:

path_file = '/XXX/preprocessing/ROI_Subject001_Condition001.mat'
mat_file = loadmat(path_file)

data = mat_file['data']
data_src = data[0,3]
data_trg = data[0,4]

aaa, bbb = calc_PhiID(data_src, data_trg, tau=1, kind='gaussian', redundancy='MMI')

where both src and trg are (152,1) and the return information atom is (151,1)

Hey, thanks for the issue. Currently, the function returns the "local" PhiID atoms. You can take their mean to get the single value. We may make changes in future versions.

Thank you!!


silx.gui.plot.items.roi: Added RegionOfInterest's getText and setText methods

Added 2 methods to change the displayed text of ROIs without changing its name.
The default behavior (setText(None)) is to display the ROI's name.
This PR also contains a fix for PySide6 for RegionOfInterest.
closes #3817

Very nice. I think this will simplify more things than i was expecting.


Attempts a testing environment for the cookiecutter

This should provide a way to test the cookie cutter. It is not exactly bulletproof, but will check and make sure that the conda or pip environments are setup correctly. Fixes #2.
If you could add this repo to travis, I would be curious to see how far this gets.

I turned on appveyor now, could you add a meaningless commit to trigger the build?

Awesome, thanks for this, @dgasmith!


Customise Keycloak login page

We want to have otomi logo on Keycloak login page, so user knows that login request comes from Otomi Container Platform.
Requirements:

[x] background: red (color like background behind the 'paper' (dark red) in otomi console
[x] Login box: white like paper in Otomi Console with (as now) Otomi logo at the top
[ ] ~Not 'Or select an alternative', but 'Sign in with OAuth'~

Already done.

Already done.


ARTEMIS-1001 fix time unit from seconds to minutes for slow-consumer-…

…check-period
Problem is that reaper which is responsible for detecting slow consumer is triggered every x seconds instead of every x minutes as documented.

Please close this PR.  I've commented on the related JIRA with an explanation.  Thanks!


exec entrypoints/entrypoint.predict.cpu.sh: no such file or directory

Has anyone encountered this problem?
How to slove it?

how did you solve it?


Issue with k8s.io/docs/tasks/extend-kubernetes/configure-multiple-schedulers/

This is a Bug Report

Problem:
I am not able to use multiple schedulers at the same time following these instructions
Proposed Solution:
Page to Update:
k8s.io/docs/tasks/extend-kubernetes/configure-multiple-schedulers/

1.18.5

With --leader-elect=false the new scheduler was working
I set --leader-elect=true, --lock-object-namespace=kube-system, --lock-object-name=lock-obj. I also did add my scheduler to the kube-scheduler clusterrole.
The scheduler logs refer to it acquiring a leader lease after updating --leader-elect

/sig scheduling


Include output from jailer.sh to log if it fails

jailer.sh script output is now logged not only when the script succeeds and is now at TRACE level instead of DEBUG (to prevent potentially sensitive information from being logged).

Linked issue: #33175
Note it's currently not trivial to observe previous behavior as jailer.sh doesn't fail. It was discovered as part of working on https://github.com/rancher/rancher/issues/33127

Isn't it so that not seeing the output means there is no output (length check)? Also, what was the output you needed from the non-error situation that we need to print it? I would expect to print it when err != nil? All and all, it doesn't matter that much but logging is not free in the end.

Isn't it so that not seeing the output means there is no output (length check)? Also, what was the output you needed from the non-error situation that we need to print it? I would expect to print it when err != nil? All and all, it doesn't matter that much but logging is not free in the end.

@superseb , in my particular case it was cp command that failed due to source file not existing. With "before" code, only something like [FATAL]: error running the jail command: exit status 1 was logged with no information on root cause of the issue. err returned from out, err := cmd.CombinedOutput() doesn't contain script output; it's out that contains combined stderr and stdout in this case.
Since we were already logging it in case of success, I believe logging it in case of failure (which results in Rancher failing to start) makes sense as logging overhead is not a concern if application is failing to start.


Fixed selecting yellow server on saved accounts

Sorry for all the commits just to make 1 single edit, I still struggle to manage my branches and when they are local and when I push where am I pushing and whatnot.

Hello, I have a question, after clone or download your repository, how to run proshine, cause i cant find proshine.exe like when i download from http://proshine-bot.ml/. Sorry for commend here because i cant find any way to contact you. :)

You only clone or download the repository if you can build or compile the latest features, if you don't know how to do that I suggest you to go to my releases for a full functioning software of Proshine.

If u dont mind can u tell me how to build from the project. :D I want to add or modified some function myself. I tried to open .dll file but it seems i cant edit it. :/

For that I suggest you use Visual Basic, you can download the free version, Then download the plugin for Github and add your own repository where you can test and debug, and ultimately build it.

Ok, thanks you so much. I prefer using Sublime text. :D But can u teach me to build the program after i modify some files plz. I never buy a pc program be4.

Please ask for assistance in the Proshine forums.

ok, thank you so much for helping me. :+1:


Don't detect pdf file in root

how can i read normal pdf file, no comic with folder structure. It seems like it don't detect any books if i put all my pdf to root folder

Hey there, PDF support hasn't been implemented yet.

ok, guess i need to wait

I'll try and make it a bit clearer on the readme regarding what's completed.
I'll also be adding some sort of automated, changelog system before the first release that would highlight stuff like that.


Is there a way to print or log to a file every word that is sent to the OpenAI API, in the same format that the API receives them?

Confirm this is a feature request for the Python library and not the underlying OpenAI API.

[X] This is a feature request for the Python library

Describe the feature or improvement you're requesting
I would like to be able to view whatever gets sent to the OpenAI API, after it gets sent, as a .json.  I would like to see what the OpenAI server sees when my messages arrive to it.
Additional context
This would help with building my own agents using existing framework.

You should be able to do this with a custom http_client using httpx event_hooks, which can be used as interceptors / middleware, for example:
def log_request(request):
    print(f"Request event hook: {request.method} {request.url} - Waiting for response")

def log_response(response):
    request = response.request
    print(f"Response event hook: {request.method} {request.url} - Status {response.status_code}")

client = openai.OpenAI(
    http_client=httpx.Client(
        event_hooks={'request': [log_request], 'response': [log_response]}
    )
)

but where you print the request/response body.


Added description to the EnableP2PRecording parameter to explain it is only supported for audio sessions

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/Set-CsConferencingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

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.


Seq2Seq Model with PreTrained BERT Model is Throwing Error During Training

Hi Ben,
As you advised, I tried creating a seq2seq model using pretrained BERT model following your tutorials:
https://github.com/bentrevett/pytorch-sentiment-analysis/blob/master/6 - Transformers for Sentiment Analysis.ipynb
https://github.com/bentrevett/pytorch-seq2seq/blob/master/1 - Sequence to Sequence Learning with Neural Networks.ipynb
However during training, I am getting the following error:
AttributeError                            Traceback (most recent call last)

<ipython-input-63-472071541d41> in <module>()
      8     start_time = time.time()
      9
---> 10     train_loss = train(model, train_iterator, optimizer, criterion, CLIP)
     11     valid_loss = evaluate(model, valid_iterator, criterion)
     12

6 frames

/usr/local/lib/python3.7/dist-packages/transformers/models/bert/modeling_bert.py in forward(self, input_ids, attention_mask, token_type_ids, position_ids, head_mask, inputs_embeds, encoder_hidden_states, encoder_attention_mask, past_key_values, use_cache, output_attentions, output_hidden_states, return_dict)
    917             raise ValueError("You cannot specify both input_ids and inputs_embeds at the same time")
    918         elif input_ids is not None:
--> 919             input_shape = input_ids.size()
    920             batch_size, seq_length = input_shape
    921         elif inputs_embeds is not None:

AttributeError: 'Field' object has no attribute 'size'

I am sharing my code for your review in the following github repo:
https://github.com/Ninja16180/BERT/blob/main/Training_Seq2Seq_Model_using_Pre-Trained_BERT_Model.ipynb
Also, request you to kindly review the Encoder and Decoder classes which have been modified to incorporate pretrained bert embedding.
Thanks in advance!

I believe this an error in your Decoder:
input = input.unsqueeze(0)

#input = [1, batch size]

with torch.no_grad():
    embedded = self.bert(sent2)[0]

embedded = self.bert(sent2)[0] should be embedded = self.bert(input)[0] because sent2 is an instance of your Field class.

Thanks!
The attribute error is resolved following your suggestion.
I am closing this issue.
However, I am now encountering a new error; opening a new issue for the same.


[NOTICKET] Handle Retry-After header in HTTP Client

If I'm understanding the code correctly, this change would "block" any calls that are made using the client during the rate limiting window but doesn't handle retrying those calls? So whoever is using the HTTP client would have to explicitly implement retry logic themselves?

When we receive a 429 it's a signal from the service to back off, we explicitly don't retry those. Specifically the 429 with a Retry-After header, it's desireable for those requests to not be retried until (for example) the worker loop picks that up again. It effectively throttles throughput on the basis that the downstream cannot handle the number of requests.


Editing controls should be always on the screen when I click the element

When I click the element to edit, editing controls pop up on the right side of the element.
It's ok for tasks, gateways, events but inconvenient when I am editing pool or swim lanes - I have to scroll left left left to see controls on the screen.
Very cumbersome when editing big diagrams.
See screenshots.

Can you share sample bpmn file for reference with your issue?

@RamjiRamachandran,
just create BPMN with loooong lanes and easy to reproduce the problem.

@RamjiRamachandran,
just create BPMN with loooong lanes and easy to reproduce the problem.

Ok sure..

How do other tools solve such problem? Any idea how we could improve?

In Modeler, controls pop up on the right side always even they are not on the screen.
In other tools, they can pop up on either side depending on situation.
IMO, Bounding Box of toolbox must be always on the screen.
See screenshots from Visio -

Thanks for the clarification. Helps us to build an appropriate solution.


[BUG] Missing dependency when launching the application if Visual Studio or VSCode is installed on runtime

The application did not boot because of an unresolved dependency

, but it works only when all external libraries and Visual Studio (or VSCode) are removed from the runtime environment. All existing compilers like MinGW or MSVC would also stop the application from running.

Same, any solutions?

Same, any solutions?

Have you tried not doing anything?

Same, any solutions?

Have you tried not doing anything?

I tied to update Maven indices, but nothing happened :(


Vickel: Watch newlaunchbangalore.in

Vickel requests the watch of the watch_keyword newlaunchbangalore\.in. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

newlaunchbangalore\.in has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


H1 fixed.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

server-2013/phase-7-complete-post-migration-tasks.md
: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.


Server-side comments

Allow comments that is stripped from the generated html

1.0.2

Whitespace strip settings
Comment strip settings


New sorting methods

Might I suggest that you provide some alternative sorting methods to the torrentio addon?
My most pressing request would be sorting by the number of seeders divided by the file size. This would effectively tell you how fast you can stream something.
Other suggestions include:

Inverse Size (small to big)
Inverse Quality (bad to good)
Inverse Size then quality (Shows high quality but small streams)

I don't see value in such sorting options, seems like they would have very niche and little value for users


About run environment

Excuse me, can the model run only in the GPU environment that supports cuda?

Hi~thank you for your interest in our work. Yes, now we only support GPU machines, we will support CPU machines in the future.
And you can try to modify pykt/datasets/data_loader.py where we use from torch.cuda import FloatTensor, LongTensor to set the default machine to GPU, maybe you can change this line to support CPU.

Thank you for your reply！i tried to change from torch.cuda import FloatTensor, LongTensor into from torch import FloatTensor, LongTensor, which can run in the CPU.

Thank you for your results, we will update this to a future version.

Hello! i want to konw why generate window_sequences when testing. Could you briefly describe the sequence_window of how and why to do this，which generate a large number of sequences.

Hello ! here has some discussions, if that does not answer your question, please let us know.


Fix merge conflicts with current compose master

All tests run by script/test pass locally.
___________________________________ summary ____________________________________
  py26: commands succeeded
  py27: commands succeeded
  py33: commands succeeded
  py34: commands succeeded
  pypy: commands succeeded

This should fix the merge conflict in https://github.com/docker/compose/pull/440 / https://jenkins.dockerproject.com/job/Compose-PRs/194/console.

Thanks!


Adding a pyxform_test_case and "tests_v1/" directory

This will be useful for testing the inputs and outputs of this
tool as strings, avoiding the confusion of having complicated
features buried in fixtures and XLS files in the repository.
More examples of the PyxformTestCase in action coming soon!

:thumbsup:

Notes on the PyxformTestCase pull request--
This PR changes very little in the main pyxform code, but it allows us to change how we test the functionality by writing tests with readable string markdown input, and a number of pattern matching assertions on the output.
I have created a new branch with a few examples of tests which have been rewritten in this format:

Rewriting geo widgets tests
For loops
Testing caps of labels

The goal is to get away from having a number of tests which rely on separate files (xls, xml, csv) and tend to give confusing failure messages when you try to make small changes. This has been a problem since the earliest pyxform tests, as @amarder and @nathanathan can attest.
I haven't built this out to support external datasets yet (or any zip file output) but if we agree this is a good direction for the tests to go, we could extend it in the future.
Thoughts, @prabhasp @ukanga @yanokwa @mberg @MartijnR ?

One observer has suggested using a slightly different markdown syntax for the tables that looks more like:
# sheetname
| col1 | col2 | col3 |
|------+------+------|
| val1 | val2 | val3 |

The important thing is that plug-ins (like this for sublime-text), are available to do the formatting, and that devs are happy to read and write it. This syntax will only be used in tests.

I can see it would make sense to go for the full (unofficial) markdown syntax for tables. I believe the + should be a | though in most implementations (e.g. GitHub).

:+1: Looks good


chore(LinearAlgebra/DFinsupp): make DFinsupp.coprodMap computable

There was no need to go via Finsupp here.

bors merge


Custom Recipes do not work with CommandAPI

CommandAPI version
v3.3
Minecraft version
1.16.1
Describe the bug
Custom Recipes are being loaded in, then removed by commandapi on server load
My code
Command Registration can be found at https://github.com/CelesteMagisteel/ModdedAdditions/tree/master/src/main/java/xyz/fluxinc/moddedadditions/commands
Recipe Registration in https://github.com/CelesteMagisteel/ModdedAdditions/blob/master/src/main/java/xyz/fluxinc/moddedadditions/utils/CustomRecipeUtils.java
Behavior
The recipes should be loaded into the server and accessible to players. However, the code to register them runs, but the recipes no longer load. Removing the commands added by CommandAPI and the plugin itself causes the issue to be resolved.

This may sound like a complete pain, but does this issue arise on Minecraft 1.15.2?

Seemingly works as intended on 1.15.2

Seemingly works as intended on 1.15.2

@KieranGateley Thanks for taking the time to confirm this - it appears my predictions were correct. This appears to correlate to my fix for #114 due to force-reloading datapacks on 1.16+. While this is indeed an annoying setback, I'll try my best to see if I can get this resolved within the next week.

Tahnk you

If you're desperate, a temporary one that should work is to do the following:
@Override
public void onEnable() {
    Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, () -> {
        //register recipes here
    }, 20L);
}

I've confirmed that recipes work in the 3.4 release on Minecraft 1.16.1 by re-registering the recipes after the CommandAPI reloads datapacks. This does in no way affect other plugins, so it's all good!
Marking as solved since it's fixed for version 3.4 due to release within the next 24 hours.


Facets by price in sample app

(moved from https://code.google.com/p/solrnet/issues/detail?id=76 )
Add facets by price ranges to sample app.

Current issue has been closed as part of cleanup process, which is tracked in https://github.com/SolrNet/SolrNet/issues/338.
Please reopen if needed, hopefully helping bringing up to date with current code.


Allow customization of formatting in NetworkLoggerPlugin

Enhancement #1635

@alanyjw Looks like there is a problem with the build. I also changed the target branch to development because this is an API breaking change.

@SD10 @sunshinejr I've made the changes based on the suggestions. The build seems to be failing due to an email verification issue with GitHub. It doesn't seem to be from my account because I've verified mine 🤔

@alanyjw I think it's possible that this is due to you working off of the master branch and not development. Just a wild guess

@SD10 sorry, but it's kinda not clear to me: how would the branch impact the build fail? Didn't investigate it yet, but didn't see that error before 😅

Yeah ignore what I said about CI, this is an odd one. The error isn't even the same as the last build.

I'm not sure about these changes making it in Moya 12.0. Anyone else have thoughts at this point?

I know it's a huge delay, but would you like to finish the works on this one @alanyjw? I think it would be valuable addition to Moya 13.

@sunshinejr When is the release cutoff date? I'll see if I could work towards that date.

@alanyjw there is no definitive date for the moment, but we will try to align our release with new Alamofire 5 I think. No pressure tho, let us know if you’d need any help :)

This was added in #1906. Thanks a lot for the time you put into this! 🧡


Bumb XDP Patch Version

Update after previous release.

Some CIs for XDP are failing?

Some CIs for XDP are failing?

They are eBPF specific tests that have known issues. They are not required if you notice and we can merge with them failing.


Collect schema field FieldTypeBool does not save "false"

Hi,
I have the following custom DB migration file with a schema field FieldTypeBool which is required:
...
&schema.SchemaField{
	Name:     EmailValid,
	Type:     schema.FieldTypeBool,
	Options:  &schema.BoolOptions{},
	Required: true,
	Unique:   false,
},
...

I'm trying to save the record with the value false (or int(0) or "false" or nil) as follows:
// Values like false, int(0), "false", nil doesn't work either
rec := models.NewRecord(emailCollection)
rec.SetDataValue(migrations.EmailValid, false)
err = forms.NewRecordUpsert(app, rec).Submit()

// This results in the error: valid: Missing required value

The same code with the value true does work as expected.
How can I save a boolean value false in the database? Thanks for your help!
Different question, but related to schema fields / database: Is it possible to have a composite key / constraint like the combination of userId and email must be unique? (Don't know if this works in sqlite in general; haven't yet looked for it)
Thanks guys!

Required bool type fields can be only true. This is because since v0.3.0 PocketBase doesn't handle null values anymore and uses the respective zero-value as default (see the table in https://github.com/pocketbase/pocketbase/releases/tag/v0.3.0)
So to allow false you'll have to set Required to false for the field.
About the composite unique key/constraint - you cannot do it from the Admin UI but you could create a composite unique index  (that will also add a unique constraint) with the raw query:
CREATE UNIQUE INDEX combined_unique_idx ON YOUR_TABLE (field1, field2, field3);


select() on first assistant token broken (in different ways in Mistral and Llama). Likely tokenization issue.

Below is simple code with the output, showing that Llama and Mistral choose a clearly nonsensical first token in select() depending on whether the assistant message contains a leading space, but each in the opposite way.
@sglang.function
def selected(s):
    s += sglang.user('Hi!')
    s += sglang.assistant_begin()
    s += sglang.gen('var', choices=('Hello', 'Goodbye', '^*B^&A'))
    s += sglang.assistant_end()
print(selected.run(backend=runtime).text())
# Mistral: [INST] Hi! [/INST]^*B^&A </s><s>
#   LLAMA: [INST] Hi! [/INST]Hello </s><s>

@sglang.function
def selected_space(s):
    s += sglang.user('Hi!')
    s += sglang.assistant_begin()
    s += ' '
    s += sglang.gen('var', choices=('Hello', 'Goodbye', '^*B^&A'))
    s += sglang.assistant_end()
print(selected_space.run(backend=runtime).text())
# Mistral: [INST] Hi! [/INST] Hello </s><s>
#   LLAMA: [INST] Hi! [/INST] ^*B^&A </s><s>

@sglang.function
def freeform(s):
    s += sglang.user('Hi!')
    s += sglang.assistant_begin()
    s += sglang.gen('var', max_tokens=3)
    s += sglang.assistant_end()
print(freeform.run(backend=runtime).text())
# Mistral: [INST] Hi! [/INST] Hello! How </s><s>
#   LLAMA: [INST] Hi! [/INST]  Hello! </s><s>

@sglang.function
def freeformp_space(s):
    s += sglang.user('Hi!')
    s += sglang.assistant_begin()
    s += ' '
    s += sglang.gen('var', max_tokens=3)
    s += sglang.assistant_end()
print(freeformp_space.run(backend=runtime).text())
# Mistral: [INST] Hi! [/INST] Hello! How </s><s>
#   LLAMA: [INST] Hi! [/INST]  Hello! It </s><s>

subscribing, seeing the same issue.

Try inspecting the logprobs with selected.get_meta_info("var"). It looks like it could be a similar issue as #523. "Hello" and "Goodbye" will be one or two tokens, whereas "^*B^&A" is probably six, which may result in a lower normalised score even though it's clearly a nonsensical response.
The reason the leading space makes a difference is because it's included in the normalised logprob calculation, and/or it alters the tokenisation boundaries of the choices (for token healing purposes).

Yup, you're right, @AidanCooper! decode_token_logprobs looks reasonable, but normalized_prompt_logprobs is skewed. FWIW, I've switched away from using select()/choices last week after reading the issue you linked, and just do the greedy thing with regex (when possible; sometimes I have dynamic choices, which makes regex unworkable due to FSM generation time). Would definitely appreciate alternative normalization schema, though I don't know I haven't thought through any alternative better than greedy sampling.


What I studied today

Code

[x] clone & took a look at initial code

Study

[x] typescript handbook

Good job!


polysemy-plugin-<IP_ADDRESS> test suite build failure with polysemy-<IP_ADDRESS>

As seen on the Stackage build server:
test/InlineRecursiveCallsSpec.hs:49:16: error:
    • The constructor ‘Yo’ should have 5 arguments, but has been given 4
...
test/InlineRecursiveCallsSpec.hs:66:16: error:
    • The constructor ‘Yo’ should have 5 arguments, but has been given 4

Sorry about this! It's a breaking change, but in an internal module. This is an acceptable test failure I think.

Fixed in polysemy-plugin-<IP_ADDRESS>


Remove spaces around equal (=) signs (.env.sample)

What
Removed the spaces around the equal signs in the .env.sample file.
Why
Docker does not allow whitespaces in environment variable values. When you try to boot docker (compose) using the .env copied from the sample file (as it currently is) it results into the following error:
ERROR: In file ./.env: environment variable name 'DEBUG ' may not contain whitespace.

Thank you!


Use #741 reference implementation in OpenZeppelin

Presently, OpenZeppelin has ERC-721 (draft) implemented here https://github.com/OpenZeppelin/zeppelin-solidity/tree/master/contracts/token/ERC721
A reference implementation has just been released and added to the standard (draft). The reference is here: https://github.com/nastassiasachs/ERC721ExampleDeed
Could the reference implementation please be added to OpenZeppelin.
Also, please note, we prefer the name DEED, currently it is listed as a TOKEN. We would appreciate that for consistency a new DEED folder could be created.
Ping @nastassiasachs

I'm trying to contribute. Maybe someone can review this pull request: https://github.com/OpenZeppelin/zeppelin-solidity/pull/747

If there is any question as to whether 841 is the canonical standard for ERC-721 then please see the new comment at the top of the ERC-721 issue at https://github.com/ethereum/eips/issues/721

Pinging @facuspagnuolo @frangio to please review this request.

Should be covered by #803


Is it possible to upload self-hosted logs to your cloud-hosted servers.

Thanks for the helpful self-host wandb server image! As there is a chance that good hyperparameters and learned weights come from some preliminary experiments on my laptop,  I would like to upload local dumped logging files to your servers in such cases. Moreover, we can get a consistent experiment logging during the full workflow if it's possible to do so. I haven't found any docs or passages concentrating on this topic.

You can sync existing local run directories to a self-hosted or SaaS wandb server using the wandb sync command: https://docs.wandb.ai/ref/cli/wandb-sync


Angular 1.4.x with ocLazyLoad 1.0.4 fails to load controller.

Seems like there may be a regression from 1.0.3 to 1.0.4.  The following code works in 1.0.3 and fails in 1.0.4.  The error generated is...
Error: [ng:areq] Argument 'sftSearchController' is not a function, got undefined
http://errors.angularjs.org/1.4.2/ng/areq?p0=sftSearchController&p1=not aNaNunction%2C got undefined
at REGEX_STRING_REGEXP (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:68:12)
at assertArg (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:1770:11)
at assertArgFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:1780:3)
at http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:8977:9
at compile (webpack:///./~/angular-ui-router/release/angular-ui-router.js?:4018:28)
at invokeLinkFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:8652:9)
at nodeLinkFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:8152:11)
at compositeLinkFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:7543:13)
at publicLinkFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:7418:30)
at updateView (webpack:///./~/angular-ui-router/release/angular-ui-router.js?:3959:23)
.config({
  'sft': {
    abstract: true,
    controller: 'sftAppController',
    templateUrl: 'src/app/views/app.html'
  },
  'sft.search': {
    url: '/search',
    templateUrl: 'src/app/views/page.html',
    controller : 'sftSearchController',
    data: {
      index: APP_DATA.site.hasElasticSearch,
      follow: APP_DATA.site.hasElasticSearch
    },
    resolve: {
      searchBundle: ['$q', '$ocLazyLoad', function($q, $ocLazyLoad) {
          var deferred = $q.defer();
          require.ensure(['../searchApp.js'], function(require) {
            var mod = require('../searchApp.js');
            $ocLazyLoad.load({
                  name: 'ari.endvr.sft.app.search'
              });
              deferred.resolve(mod.controller);
          }, 'searchBundle');
          return deferred.promise;
    }]
  }
},
'sft.search.list': {
  url: '/:type',
  template: '<div ui-view></div>'
},
'sft.search.list.recommended': {
  url: '/recommended/{params:RawValue}',
  recommended: true,
  controller: 'sftSearchListController',
  templateUrl: 'src/widgets/search/views/lists/recommended.html'
},
'sft.search.list.studio': {
  url: '/studio/{params:RawValue}',
  studio: true,
  controller: 'sftSearchListController',
  templateUrl: 'src/widgets/search/views/lists/default.html'
},
'sft.search.list.default': {
  url: '/{params:RawValue}',
  controller: 'sftSearchListController',
  templateUrl: 'src/widgets/search/views/lists/default.html'
},

I also observe modules not loading with ocLazyLoad 1.0.4 that work fine in 1.0.3. In my case, I'm attempting to $ocLazyLoad.load()  a module loaded from webpack. For some reason, it does not invoke the module.config() or module.run() blocks.
Note: if I instead call $ocLazyLoad.inject() to initialise the webpack-loaded module, it DOES call the run() block, however the module's dependencies are NOT loaded.
Reverting to 1.0.3 causes $ocLazyLoad.load() to work again, however with 1.0.3 for some reason the module.run() method is not called, while the module.config() is.

Hello, I tried the solution of @scottmcnab and it works.
Weird !

degrading to 1.0.1 version will bring back run initialising.

To add to this, I had to revert to v0.5.1 after recently updating to 1.0.4.
To be honest, I don't understand a lot about this, so I'll just explain the behaviour:

module.a contains directiveA
directiveA has a dependency on serviceB
module.b. contains serviceB
module.a is defined with a dependency on module.a:

angular.module('module.a', [ 'other.modules', 'module.b' ])

module.a is explicitly loaded using $ocLazyLoad
HTML containing directiveA is compiled once the load promise for module.a` is resolved.

With versions after 1.0.0, I found that there were situations where directiveA would throw errors saying it's missing serviceBprovider.
Sorry if this is not helpful, I might be able to produce a plunkr for it at a later date.

+1, not working after upgrading from 1.0.1 to 1.0.4

Sorry for the long time without any answer to this, I was away for 3 weeks...
@dgwaldo could you make me a plunkr? Or just narrow the bug to a simple example? It's hard to see what is failing here :)

Exactly the same error as @dgwaldo (Argument 'SomeController' is not a function, got undefined), using ocLazyLoad v1.0.4, except that I'm using AngularJS v1.3.16. Revert back to ocLazyLoad v1.0.3 resolve the problem immediately, and the controllers of the lazy module loads fine.

+1.
Easy way to reproduce

git clone https://github.com/ay13/webpack-angular-oclazyload.git - sidenote: this repo is mentioned in the docs too - IMHO it could be potentially misleading as it works out-of-the-box (0.6.3), but does not after upgrading to the latest version (or 1.0.4).
npm run dev - check Page 4 - should be okay. ctrl+c to exit.
(optional) npm install<EMAIL_ADDRESS>(optional) npm run dev - check Page 4 - should be still okay. ctrl+c to exit.
npm install<EMAIL_ADDRESS>or simply npm install oclazyload@^1 to install the latest version (1.0.5)
npm run dev - check Page 4 - should say: Error: [ng:areq] Argument 'Page4Controller' is not a function, got undefined

Ahh thanks for the test case! Should help a lot :)

No worries - keep up the good work :beers:

Ok it should be fixed in 1.0.6, thank you a lot @phenomnomnominal for the PR !

:clap:


Extract domain from mapRoutes in common-functions

Signed-off-by: Stoyan Gradev<EMAIL_ADDRESS>

Coverage remained the same at 90.588% when pulling d999ec475ed0044f6ae563d257d866fc2dedc508 on SAP:extract_domain into 94ce220b6217380a52644697fce48dbf981c30d4 on cloudfoundry-incubator:master.

Coverage remained the same at 90.588% when pulling d999ec475ed0044f6ae563d257d866fc2dedc508 on SAP:extract_domain into 94ce220b6217380a52644697fce48dbf981c30d4 on cloudfoundry-incubator:master.

Coverage remained the same at 90.588% when pulling d999ec475ed0044f6ae563d257d866fc2dedc508 on SAP:extract_domain into 94ce220b6217380a52644697fce48dbf981c30d4 on cloudfoundry-incubator:master.


Allowing the sl_rad parameter in searchlight to be 0

There are use cases in which we want to do the same processing on all voxels and want to use MPI to parallelize this. In this case, the searchlight has the size of 1, and it corresponds to sl_rad = 0 when initializing SearchLight. But the current implementation will distribute an empty array to each worker if we set sl_rad = 0. The consequence is that nothing gets computed for each voxel. This PR fixes this bug.

I hope the Conda build problem is intermittent and it will be gone on Monday. :) Will review then.

Happy to review this once those issues are resolved

Awesome! @CameronTEllis you are welcome to review it as well. The changes are minor.

@CameronTEllis, you can review; the errors are unrelated.


Turning on enableIAMDatabaseAuthentication after the DBCluster creation has no effect

Describe the bug
Turning on enableIAMDatabaseAuthentication after the DBCluster creation has no effect.
Steps to reproduce

Create a valid DBCluster resource with spec.enableIAMDatabaseAuthentication turned off. (I was using aurora-postgresql engine version 12.15)
Wait until the actual DB cluster has been created in the AWS cloud
Turn on spec.enableIAMDatabaseAuthentication after that

Expected outcome
IAM database authn should be enabled after the step (3) above.
Environment

Kubernetes version v1.25.14-eks-f8587cb
Using EKS (yes), version v1.25.14-eks-f8587cb
AWS service targeted: RDS

@pciang Hi! What's going on in RDS controller logs? Could you kindly share them here?

https://github.com/aws-controllers-k8s/rds-controller/pull/159

https://github.com/aws-controllers-k8s/rds-controller/pull/159 is merged rds-controller 1.1.8 has just been released. Thanks for your contribution @arjunrn !
/close


Manage additional user object selection in MudList, MudChipset and other selection components

This is a solution for #1295 and its dismissed PR #1299 without making Mudlist generic. We can add an additional selection of user objects like WPF does. In WPF you have SelectedItems and SelectedValues.
I think managing a user object selection is very important because it is cumbersome now for users to do it themselves with the references of components in  SelectedItems - especially when it comes to changing the selection programmatically or pre-selecting items on initial render.

This issue is now organized in our feature requests project
Note: the issue is closed but that doesn't mean that this won't be implemented. Check the project to see how it is scheduled. If enough users vote for a different scheduling it can be changed. Also, if you want to PR this feature you may do so any time.
You can still discuss this feature here!

How do you expect the votes to be done? Thumbs up on the issue?

Sure, or comment.

Now we have a generic MudListExtended component.
Ready on Nuget: https://www.nuget.org/packages/CodeBeam.MudExtensions/6.2.1
Try online: https://codebeam-mudextensions.pages.dev/mudlistextended


setup.py was missing license field

While it has no effect on the actual license or the usability of this library, it hinders the use of tools like pip-licenses.

Thanks!


Fix Loc keys for spark so that dup key error doesnt occur

The sparkJobSubmission loc keys are in the format sparkJobSubmission_ however when xlfs are changed to localized xlfs - the subkey after _ gets dropped.After this while converting to xlf --> loc json dup keys miss to get added.
All other modules' keys use "." in place of "_" so keeping the same pattern here to so that next wave of xlf creation picks up the right keys. Doing this now so that I don't miss later.

@kevcunnane yes in loc string keys.

@kburtram checkin this also - this was the spark job keys we talked about


Remove or delete or log out from account should be added

Currently, there is no way to remove or delete an account. Should this be considered to add?

Hi ChauHuynh17071994!
You have reported this issue in the challenge repository for testnet3. Please note that Testnet3 was taken down when Testnet4 came up. Testnet4 and all related releases have it's own repository here.
I will close this issue here, as I cannot see which version of mobile app and testnet you are referring to. Please create a new issue in the correct repository, if you feel it is an issue on testnet4 and the newest iOS release 0.1.63.
Thanks :blush: :+1:

Hi ChauHuynh17071994!
You have reported this issue in the challenge repository for testnet3. Please note that Testnet3 was taken down when Testnet4 came up. Testnet4 and all related releases have it's own repository here.
I will close this issue here, as I cannot see which version of mobile app and testnet you are referring to. Please create a new issue in the correct repository, if you feel it is an issue on testnet4 and the newest iOS release 0.1.63.
Thanks :blush: :+1:


Get External IP when the Auth Service is Exposed as LoadBalancer

Description
This pr fixes an issue on taking the external IP from a LoadBalancer service
How Has This Been Tested?

[x] Locally on kind, where no changes are expected
[x] On managed solutions, with a peering between GKE and AKS, exposing the auth service as LoadBalancer on GKE

/rebase

/merge


title attribute being parsed with twemoji.js

I'm using twemoji.js on the front end for some preview features. I'm using twemoji.rb for backend rendering. If I take these steps I run into issues:

If I backend render an img tag with Twemoji.parse that includes something like the deafult title title = ":heart_eyes:"
edit that text (which includes the <img title=":heart_eyes:"> tag) in a wysiwyg editor on the front end after backend rendering
twemoji.parse in the frontend for preview the title attribute value is replaced for another img tag

:(
We can fix this a number of ways in our own app, but if we made one of three possible easy modifications to twemoji.rb it would be a non-issue.

change title to be the shortname without the : so heart_eyes instead of :heart_eyes:
remove title attribute from default (adding when needed)
make all the attributes in the image tag come from an options hash like options[:default_img_attrs] or make options[:img_attrs] that default.

I would be happy to code whatever solution you prefer.
Thanks!

I misunderstood the use if the img_attrs option. Looking again.

As it turns out, my first PR also causes issues since the js wants to replace the unicode in alt as well. Seems like the best option might be full control over the img tag structure. Trying some other things.


Prompt for user's preferred bundler

[ ] Prompt for the user's preferred bundler
[ ] Initialize the template with that bundler pre-configured

Maybe using yeoman?
cc @ashleygwilliams @sendilkumarn

work is happening at https://github.com/sendilkumarn/generator-rustwasm


关于Maskfeat和A2MIM的代码问题

Maskfeat里面实现的target是sobel、canny一些边缘检测算子，没有原文中HoG特征的实现？
请问A2MIM里面的frequency loss具体在哪里呀

Thanks a lot for your reply! I will check these in detail. Thanks very much!


languages: flag missing dependency requirement

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.
[x] Have you successfully run brew tests with your changes locally?

This is in part designed to handle situations described in https://github.com/Homebrew/legacy-homebrew/issues/42273 where we tell someone to install a special dependency, but because we (rightly, IMO) resolve special dependencies first users can end up being told to execute a command on a tool that isn't yet installed and isn't immediately obvious how to install it.
In the situation raised there, with the sile formula people are being told to luarocks install xyz but we hadn't installed Lua for them first, so they just get a command not found: luarocks message. Perhaps it should be obvious enough how to install said tools by looking at the formula's dependencies, but it's not a huge burden on us to make life easier than that.
Shuffled over from https://github.com/Homebrew/legacy-homebrew/pull/42576.

👍

Pulled with the style nit fixed. Happy to have further debate on the<EMAIL_ADDRESS>style syntax but this is an improvement over the status quo at least.


println to stdout is suppressed

Problem description: println output to stdout is suppressed when using clojure-extras eval functions.
Steps to reproduce:

Run JVM REPL in terminal
Connect to remote REPL (nrepl) in Cursive
Eval code (println "Hello world!") using clojure-extras eval functions.
I see result of evaluation => nil in pop-up window, but can't see printed "Hello world!" string neither in terminal, nor in Cursive REPL window.

Expected behaviour:
I see result  of evaluation => nil in pop-up window, but also see Hello world! in terminal or Cursive REPL window or in pop-up window.
BTW, Cursive eval functions works as expected, no suppression is found

Thanks for reporting, should be fixed on master, I'm waiting for jetbrains to approve it, should be in the marketplace shortly :)


Ignore scala steward for flink itself

We are not interested in scala steward updates for flink itself, because we are cross building for multiple versions.
To prevent more like

#20

in the future

@mzuehlke thanks, I did not know it can be configured this way.


API: Improve DX by adding more named arguments to Skia-bindings

Since we also expose the Skia-bindings for a Canvas-like API I think it might be a good idea to start refactoring the API to utilise more named arguments e.g. ~x=..., ~y=....
What do you others think?

Yes please! I'm working with the Skia/Canvas API right now, and needing to look up what the umpteen different float arguments of a function means is definitely a frustrating experience.


Conditionally create service account and add to deployment

Have built upon the work in of @ichasco-heytrade in #11 and resolved the contentious issue, hopefully to the approval of @canterberry

Released in v1.16.0.


Update ObjectStore 0.7.0 and Arrow 46.0.0

Which issue does this PR close?

Closes #7332
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

I'm not sure what the pyarrow CI failures are, but they don't appear to be related to this PR


When tag contracts docs are not pushed to nvm-docs

There were/are a couple of issues with current action setup:

Error was caused by [widdershins](https://github.com/Mermade/widdershins) trying to convert from json to markdown the doc's file category.json. I have removed the widdershins execution as it seems it is not used/needed any longer, but if it is needed for any project we can exclude that file from widdershins execution.
Workspace is not shared between different jobs inside the same workflow. That means that the docs generated during the [build-doc](https://github.com/nevermined-io/contracts/blob/master/.github/workflows/push-to-docs.yml#L10) job are not shared with push-to-docs job, and then it requires that the documentation output to be committed to the repository as it is now. There is not an easy workaround for sharing state between jobs, you can use artifacts and cache but it seems a bit complex when the input is unknown. Another ad-hoc solution is developing a custom action for some of the work done in the push-to-docs shared workflow.


Remote debugger won't detach when running uvicorn app with --reload

Environment data

debugpy version: 1.4.1
OS and version: Windows 10
Python version: python:3.9.6-alpine3.13 (in docker)
Using VS Code or Visual Studio: VS Code

Actual behavior
Debugging works fine, but when I'm finished and I click on the detach button the remote debugger won't detach.
Expected  behavior
Remote debugger should stop and close
Steps to reproduce:

Create a very simple fastapi app called app.py

from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def read_root():
    return {"Hello": "World"}

Run it with debugpy and with uvicorn and --reload option (I run it in a docker container it so that I can then attach remotely, and make sure to expore ports 5678 and 80)

python -u -m debugpy --listen <IP_ADDRESS>:5678 -m uvicorn --reload --host <IP_ADDRESS> --port 80 app:app

Attach to it with the following launch.json config:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Remote debugging",
            "type": "python",
            "request": "attach",
            "connect": {
                "host": "localhost",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "...",              -> make sure to map source files correctly
                    "remoteRoot": "..."
                }
            ]
        }
    ]
}

Importing debugpy inside the app itself works, but I was wondering if I can make it work without this workaround.

This one would be a minor issue by itself - you'd only need to click Disconnect once more to disconnect from the child process, as well

@int19h Clicking once more and more and more doesn't work for me. The debugger remains attached

Can confirm that behaviour with werkzeug, a different spawn-and-reload python/django host:
After attaching to localhost:3000:

After Detaching:

PID 53 is the spawned process:
app@dschmitt:/opt/app/app$ ps auxwfwwww
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
[...]
app           19  0.5  1.8 1256992 300948 ?      Sl   11:35   0:29 python -m debugpy --listen <IP_ADDRESS>:3000 -m app runserver_plus --threaded <IP_ADDRESS>:8000
app           53  6.8  2.5 3180892 408876 ?      Sl   11:36   6:19  \_ /opt/app/deps/venv/bin/python /opt/app/deps/venv/lib/python3.7/site-packages/debugpy/_vendored/pydevd/pydevd.py --module --port 41871 --ppid 19 --client <IP_ADDRESS> --access-token token --multiprocess --skip-notify-stdin --json-dap-http --file app runserver_plus --threaded <IP_ADDRESS>:8000
app           26  0.0  0.1 1514160 20328 ?       Sl   11:35   0:01 /opt/app/deps/venv/bin/python /opt/app/deps/venv/lib/python3.7/site-packages/debugpy/adapter --for-server 42925 --host <IP_ADDRESS> --port 3000 --server-access-token token

Possibly same as what's going on in https://github.com/microsoft/vscode/issues/164553

@connor4312 this seemed to work-ish. It reliably took 3 clicks to detach.

Yea, that's intentional. Detaching detaches from the specific session, as Python does not use lifecycleManagedByParent (https://github.com/microsoft/vscode-python/issues/20376). But you can do this instead of having the UI break 🙂


Add test to resize PVC

@thiguetta the travis build is failing with
./drivers/scheduler/k8s/k8s.go:1129:1: receiver name d should be consistent with previous receiver name k for k8s


Display Multiple GPUs separately

Due to the way GPUs are utilized, it doesn't make sense to try and combine their usage into a single value like it does with CPU cores. In fact, combining their values into a single number renders that number almost useless.

This will be included in the next release 👍


Problems with testing App/index.js

Hope this is the right place to post this.
We are having problems with testing our modified App/index.js, whenever we do the props that we pass are null (I presume the redux store is overwriting our values). I tried to solve this by creating our own store from the reducer in the test but then we get complaints that router is not available, and then had difficulties with providing the test with the router as well.
 *
 * App.js
 *
 * This component is the skeleton around the actual pages, and should only
 * contain code that should be seen on all pages. (e.g. navigation bar)
 *
 */

import React from 'react';
import { Switch, Route } from 'react-router-dom';
import { useInjectReducer } from 'utils/injectReducer';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import PropTypes from 'prop-types';
import CategoriseItem from '../CategoriseItem';
import ScanBarcode from '../ScanBarcode';
import DefectContainer from '../DefectContainer';
import KeyboardInput from '../KeyboardInput';
import { SCAN_BARCODE_URL, CATEGORISE_ITEM_URL, DEFECT_URL } from './constants';
import MissingConfigError from '../../components/MissingConfigError';
import 'antd/dist/antd.less';
import './antd-overrides.less';
import reducer from './reducer';

import Notification from '../Notification';
import ErrorBoundary from '../../components/ErrorBoundary';
import Header from '../Header';
import Footer from '../Footer';
import LoadingSpinner from '../../components/LoadingSpinner';
import {
  makeSelectLoading,
  makeSelectWorkbench,
  makeSelectSite,
} from './selectors';

/**
 * We use css grid here and ensure the whole application is only as big as the maximum viewport (no scolling)
 * The footer and header are fixed height, and all the remaining space is used for the middle section
 */
const AppWrapper = styled.div`
  display: grid;
  height: 100vh;
  width: 100vw;
  grid-template-rows: 110px 1fr 110px;
  background: #ececec;
`;

/**
 * CSS GRID is only applied to direct children divs/elements so we have the Header,Switch, and footer as
 * direct children, the other elements are kept outside
 */
export function App({ loading, site, workbench }) {
  useInjectReducer({ key: 'global', reducer });
  const validConfig = workbench && site;
  return (
    <ErrorBoundary>
      <Notification />
      <KeyboardInput />
      <AppWrapper>
        {loading && <LoadingSpinner />}
        {!workbench && <MissingConfigError messageId="enterWorkbench" />}
        {!site && <MissingConfigError messageId="enterSite" />}
        {validConfig && <Header />}
        {validConfig && (
          <Switch>
            <Route exact path={SCAN_BARCODE_URL} component={ScanBarcode} />
            <Route
              exact
              path={CATEGORISE_ITEM_URL}
              component={CategoriseItem}
            />
            <Route exact path={DEFECT_URL} component={DefectContainer} />
          </Switch>
        )}
        {validConfig && <Footer />}
      </AppWrapper>
    </ErrorBoundary>
  );
}

App.propTypes = {
  loading: PropTypes.bool,
  site: PropTypes.string,
  workbench: PropTypes.string,
};

const mapStateToProps = createStructuredSelector({
  loading: makeSelectLoading(),
  workbench: makeSelectWorkbench(),
  site: makeSelectSite(),
});

const withConnect = connect(mapStateToProps);

export default compose(withConnect)(App);

How can we test this component and provide the required loading, workbench and site props?

In your test, do you do import App from '../index'; or import { App } from '../index';?
In the first example, you're importing the connected component so it will look for a Redux store.
In the second example, you can do:
<App
  loading={}
  site={}
  workbench={}
/>

and pass whatever you want.
Neither is better. They're just different approaches.
(See here for some ideas for how to deal with the first case.)

Hey thanks for replying, not sure why my issue got closed straight away.
I've tried both methods now but both seem to have troubles, trial 1:
import React from 'react';
import { render } from 'react-testing-library';
import { IntlProvider } from 'react-intl';
import { Provider } from 'react-redux';
import { browserHistory } from 'react-router-dom';
import configureStore from '../../../configureStore';
import App from '../index';

const renderApp = store =>
  render(
    <Provider store={store}>
      <IntlProvider locale="en">
        <App />
      </IntlProvider>
    </Provider>,
  );

describe('<App />', () => {
  let store;

  beforeEach(() => {
    store = configureStore(
      { global: { loding: true, workbench: 'ES01', site: 'something' } },
      browserHistory,
    );
  });

  it('should render and match the snapshot', () => {
    const { debug } = renderApp(store);

    debug();
  });
});

gives me:
console.error node_modules/redux/lib/redux.js:313
      Unexpected key "global" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "language", "router". Unexpected keys will be ignored.

and trial 2:
import React from 'react';
import { render } from 'react-testing-library';
import { IntlProvider } from 'react-intl';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'connected-react-router';
import { browserHistory } from 'react-router-dom';
import configureStore from '../../../configureStore';
import { App } from '../index';
// import App from '../index';
import history from '../../../utils/history';

// const renderApp = store =>
//   render(
//     <Provider store={store}>
//       <IntlProvider locale="en">
//         <App />
//       </IntlProvider>
//     </Provider>,
//   );

describe('<App />', () => {
  //   let store;

  //   beforeEach(() => {
  //     store = configureStore(
  //       { global: { loding: true, workbench: 'ES01', site: 'something' } },
  //       browserHistory,
  //     );
  //   });

  //   it('should render and match the snapshot', () => {
  //     const { debug } = renderApp(store);

  //     debug();
  //   });

  it('Expect App to show loading spinner', () => {
    const store = configureStore({}, browserHistory);
    const { debug } = render(
      <ConnectedRouter history={history}>
        <Provider store={store}>
          <IntlProvider locale="en">
            <App loading workbench="workbench" site="site" />
          </IntlProvider>
        </Provider>
      </ConnectedRouter>,
    );
    debug();
  });
});

I get
Invariant Violation: Could not find "store" in the context of "Connect(ConnectedRouterWithContext)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(ConnectedRouterWithContext) in connect options.


fix: copying B1 having "=A1" to A2 generates "#REF!" instead of "=2"

Currently, copying the B1 cell having the formula =A1 to the A2 cell produces the formula =2.
This PR fixes it to produces =#REF! as in Excel.

Thanks


Why were all the base styles removed?

I upgraded from 3.0.0 to 4.0.0 and noticed that there are no longer files which overwrite user-agent styles e.g. _base-reset.scss, _base-typography.scss, etc. I would love to get some insight into why these were removed, can you let me know :v: or else point me in the direction of the changelog :point_right:

See https://github.com/basscss/basscss/releases/tag/8.0.0

Thanks :+1:


[feat] Tests

feat: 🐛 add playwirght dep and "boilerplate"

@xat If you have ideas for tests that could apply to teia, shoot! I'm trying to come up with a few automatic tests (jest + playwright).
For now it's simply scrolls the feed for 60 sec but I'm not checking anything yet

@melMass personally i would just test logic-heavy functions with unit tests.
testing that includes scrolling etc. is very fragile and will need a lot of maintenance. imo, adding these kinds of tests only makes sense if we are very sure that they provide enough value.


Create incorrect account when connect dApp

Describe the bug
Create an incorrect account when connecting dApp
Reproduce the behavior
Steps:

Install extension (have no account on wallet)
Open the dApp (example: SubWallet web-app)
On the dApp: Click on connect wallet/Connect extension
On the extension, perform import account by seed phrase only 1 type (example: substrate)
After importing successfully, click on create one on the connect dApp popup
Confirm to create one account
Observe the screen displayed

Actual:

In Step 6: Create a substrate account although request create on a EVM account
In step 7: Still show create one screen

Expect: Create correct account

Version test: http://<IP_ADDRESS>:8900/s/8N7Nrxb3JamK7x3
Validation passed


Error when running sphinx-autobuild in python 3.5 on Windows 7

I installed sphinx-autobuild using
pip install sphinx-autobuild

I am using anaconda python:
$ python
Python 3.5.1 |Anaconda 2.4.0 (64-bit)| (default, Dec  7 2015, 15:00:12) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

Here is the traceback:
$ sphinx-autobuild source build/html
Traceback (most recent call last):
  File "k:\python\anaconda\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "k:\python\anaconda\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "K:\Python\Anaconda\Scripts\sphinx-autobuild.exe\__main__.py", line 9, in <module>
  File "k:\python\anaconda\lib\site-packages\sphinx_autobuild\__init__.py", line 280, in main
    server.watch(srcdir, builder)
  File "k:\python\anaconda\lib\site-packages\livereload\server.py", line 203, in watch
    self.watcher.watch(filepath, func, delay, ignore=ignore)
TypeError: watch() got an unexpected keyword argument 'ignore'

Duplicate of #39

As a quick fix you can do:
pip install livereload==2.4.0

Thanks. I'll give it a try.
By the way, kudos for this excellent package! It saves so much time and effort.

I've attempted the livereload==2.4.0 work around and I still get a very similar error.
$ python
Python 2.7.10 |Anaconda 2.3.0 (x86_64)| (default, Sep 15 2015, 14:29:08)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin

$ sphinx-autobuild . _build_html
Traceback (most recent call last):
  File "//anaconda/bin/sphinx-autobuild", line 11, in <module>
    sys.exit(main())
  File "//anaconda/lib/python2.7/site-packages/sphinx_autobuild/__init__.py", line 280, in main
    server.watch(srcdir, builder)
  File "//anaconda/lib/python2.7/site-packages/livereload/server.py", line 203, in watch
    self.watcher.watch(filepath, func, delay, ignore=ignore)
TypeError: watch() got an unexpected keyword argument 'ignore'

can this be deployed to pip as a dot release?
Is it available in pip? If yes, what is the version number


[FLINK-6356] Make optional available to all patterns/times() eager by default and allow allowCombinations() on it.

This PR addresses both [FLINK-6356] and [FLINK-6248].
For the first, we now allow all patterns to be optional in a pattern sequence.
Singleton becomes simply optional, times(X) transforms from
"exactly X" to "0 or X", and "one or more" becomes "zero or more".
For the second, now, by default, the times() quantifier operates in eager mode and the
user can disable eagerness by calling .allowCombinations().
R @dawidwys

Thanks for the review @dawidwys ! Thanks a lot for the review.
I integrated your comments. Let me know when you are done so that I can merge this.

@kl0u I don't have any more comments, so for me it LGTM.
I've also rebased the skip-till-next on top of this one, so would be nice to merge it and start reviewing #3698


Cannot link C static libraries through cgo after building IREE from source

What happened?
I'm using the C API from golang, using the cgo library.  Pasting truncated output
# command-line-arguments
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/hal/drivers/libiree_hal_drivers_drivers.a(init.c.o): In function `iree_hal_register_all_available_drivers':
init.c:(.text+0x20): undefined reference to `iree_hal_vulkan_driver_module_register'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/hal/drivers/local_sync/registration/libiree_hal_drivers_local_sync_registration_registration.a(driver_module.c.o): In function `iree_hal_local_sync_driver_factory_try_create':
driver_module.c:(.text+0x9d): undefined reference to `iree_hal_executable_import_provider_default'
driver_module.c:(.text+0xc0): undefined reference to `iree_hal_create_all_available_executable_loaders'
driver_module.c:(.text+0x156): undefined reference to `iree_hal_executable_loader_release'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/hal/drivers/local_sync/libiree_hal_drivers_local_sync_sync_driver.a(sync_device.c.o): In function `iree_hal_sync_device_create':
sync_device.c:(.text+0x14b): undefined reference to `iree_arena_block_pool_initialize'
sync_device.c:(.text+0x170): undefined reference to `iree_hal_executable_loader_retain'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/hal/drivers/local_sync/libiree_hal_drivers_local_sync_sync_driver.a(sync_device.c.o): In function `iree_hal_sync_device_destroy':
sync_device.c:(.text+0x1f9): undefined reference to `iree_hal_executable_loader_release'
sync_device.c:(.text+0x218): undefined reference to `iree_arena_block_pool_deinitialize'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/hal/drivers/local_sync/libiree_hal_drivers_local_sync_sync_driver.a(sync_device.c.o): In function `iree_hal_sync_device_query_i64':
sync_device.c:(.text+0x2d4): undefined reference to `iree_hal_query_any_executable_loader_support'
sync_device.c:(.text+0x375): undefined reference to `iree_cpu_lookup_data_by_key'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/hal/drivers/local_sync/libiree_hal_drivers_local_sync_sync_driver.a(sync_device.c.o): In function `iree_hal_sync_device_create_command_buffer':
...
...
...
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/task/libiree_task_api.a(api.c.o): In function `iree_flag_register_task_topology_max_group_count':
api.c:(.text+0x250): undefined reference to `iree_flag_register'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/task/libiree_task_api.a(api.c.o): In function `iree_task_topology_initialize_from_flags':
api.c:(.text+0x2d8): undefined reference to `iree_task_topology_initialize_from_physical_cores'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/task/libiree_task_api.a(api.c.o): In function `iree_task_executor_create_from_flags':
api.c:(.text+0x39f): undefined reference to `iree_task_topology_initialize_from_physical_cores'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/modules/hal/libiree_modules_hal_types.a(types.c.o): In function `iree_hal_module_register_loader_types':
types.c:(.text+0x17b): undefined reference to `iree_hal_executable_destroy'
src/metric_service/iree/iree_bridge/build/third_party/iree/runtime/src/iree/modules/hal/libiree_modules_hal_types.a(types.c.o): In function `iree_hal_module_register_all_types':
types.c:(.text+0x28d): undefined reference to `iree_hal_executable_destroy'
types.c:(.text+0x3e3): undefined reference to `iree_hal_event_destroy'
collect2: error: ld returned 1 exit status
Makefile:389: recipe for target 'iree' failed
make: *** [iree] Error 2

What could I possibly be missing? I have included all of the .a files generated when building IREE from source, i.e. everything under iree_bridge/build/ in my case
Version information
-f https://github.com/iree-org/iree/releases/expanded_assets/candidate-20220930.282
--extra-index-url https://github.com/iree-org/iree/releases/expanded_assets/candidate-20220930.282
iree-compiler
iree-runtime
iree-tools-tf
iree-tools-tflite
iree-tools-xla

cmake version 3.24.1

clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Additional context
I only need this to work with dylib-llvm-aot, which I think is now called llvm-cpu.

Please excuse the delayed reply.
I am not familiar with go at all and I think the problem is rather related to IREE than to this specific example. The iree-template-cpp project only demonstrates how to integrate IREE into an external C++ project using CMake. Therefore, I would suggest to continue the discussion in https://github.com/iree-org/iree/issues/10882 and allow myself to close the issue here accordingly.


Download questions from qbreader

Like the download button in quizdb. Export to JSON, CSV, TXT, etc.

Please do this!!


Possible bug in Uglifier call from Sprockets

http://stackoverflow.com/questions/8692666/rails-3-1-possible-bug-in-asset-pipeline-and-uglifier
I ran into a problem deploying on Heroku do to a failure in the rake task
rake assets:precompile
At the bottom is the error I get if I integrate
Rails 3.1
Jquery calendar: https://github.com/themouette/jquery-week-calendar
Twitter bootstrap
The error happens from uglifier.
I suspect that problem could be related to the inclusion of many localizations for the calendar.
I worked around the error by setting:
Compress JavaScripts and CSS
config.assets.compress = false
I was not able to examine the files as the temporary files are cleaned up. I also could not get the debugger in RubyMine to stop at a breakpoint.
Any ideas if this is a bug? Any way to get the temporary files to not get deleted? Any way to make the RubyMine debugger work on the rake task (yes, tried the obvious, using EAP 112-291.
rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets rake aborted! Unexpected character '' (line: 21454, col: 0, pos: 641761)
Error at new JS_Parse_Error (/tmp/execjs20111231-15374-1fve7h4.js:497:22) at js_error (/tmp/execjs20111231-15374-1fve7h4.js:505:15) at parse_error (/tmp/execjs20111231-15374-1fve7h4.js:596:17) at Object.next_token [as input] (/tmp/execjs20111231-15374-1fve7h4.js:839:17) at next (/tmp/execjs20111231-15374-1fve7h4.js:943:37) at Object.semicolon [as 1] (/tmp/execjs20111231-15374-1fve7h4.js:986:38) at prog1 (/tmp/execjs20111231-15374-1fve7h4.js:1527:28) at simple_statement (/tmp/execjs20111231-15374-1fve7h4.js:1123:35) at /tmp/execjs20111231-15374-1fve7h4.js:1031:35 at /tmp/execjs20111231-15374-1fve7h4.js:1510:32

That error sounds like you have a syntax error in JavaScript source file. There are some cases where this happens because of the concatenation. You could try to check what is on "(line: 21454, col: 0, pos: 641761)".
Of course, the error can be incorrect. It could also be a bug in UglifyJS. Your JavaScript runtime and used MultiJson engine could also play a role.
Could you provide a minimal failing example (unminified source with offending libraries) and tell what JS/JSON gems are you using?

That error sounds like you have a syntax error in JavaScript source file. There are some cases where this happens because of the concatenation. You could try to check what is on "(line: 21454, col: 0, pos: 641761)".
Of course, the error can be incorrect. It could also be a bug in UglifyJS. Your JavaScript runtime and used MultiJson engine could also play a role.
Could you provide a minimal failing example (unminified source with offending libraries) and tell what JS/JSON gems are you using?


CSS Sponge Animation[GSSOC'23]

Describe the project you want to add with tech stack

Sponge Animation
Expected behavior

Hello Sir,
I have made an animation where we can see a sponge jumping form a bowl of water using HTML & CSS.
Screenshots (optional)

Additional context (optional )

Please assign me this project under GSSOC'23

@MohitGupta121 @TusharKesarwani @pranjay-poddar please assign me this project under GSSOC'23.


[question] Is there a way to make mui css codes external instead of internal?

Order ID or Support key 💳 (optional)
59340
Duplicates

[X] I have searched the existing issues

Latest version

[x] I have tested the latest version

The problem in depth 🔍
when i see chrome inspect elements, in my <head>, i had many <style data-emotion="css" data-s=""></style> and inside of it was mui css codes like :.css-jwafdq-MuiButtonBase-root-MuiPickersDay-root-MuiDateRangePickerDay-day.Mui-selected:hover{will-change:background-color;background-color:#1565c0;}
But my problem is why the styles go directly to the head tag like this and were not bundled in a stylesheet.
I wanted to know if there is a way to prevent this approach and these codes do not appear in the head tag and are created in an external file.

Your environment 🌎

`npx @mui/envinfo`
  chrome browser.
  System:
    OS: Windows 10 10.0.19045
  Binaries:
    Node: 18.14.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.19041.1266.0), Chromium (116.0.1938.62)
  npmPackages:
    @emotion/react: ^11.10.6 => 11.10.8
    @emotion/styled: ^11.10.6 => 11.10.8
    @mui/base:  5.0.0-alpha.127
    @mui/core-downloads-tracker:  5.12.2
    @mui/icons-material: ^5.11.11 => 5.11.16
    @mui/lab: ^5.0.0-alpha.121 => 5.0.0-alpha.128
    @mui/material: ^5.11.11 => 5.12.2
    @mui/private-theming:  5.12.0
    @mui/styled-engine:  5.12.0
    @mui/styles: ^5.11.11 => 5.12.0
    @mui/system:  5.12.1
    @mui/types:  7.2.4
    @mui/utils:  5.12.0
    @mui/x-date-pickers: ^6.0.0 => 6.3.0
    @mui/x-date-pickers-pro: ^5.0.20 => 5.0.20
    @mui/x-license-pro: ^5.17.12 => 5.17.12
    @types/react: 18.0.28 => 18.0.28
    react: ^18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    typescript: 4.9.5 => 4.9.5

I'm transfering to the core repository because this is related to the styling engine and not specific to the X components

This is not currently possible with emotion. Check https://github.com/emotion-js/emotion/blob/main/docs/extract-static.mdx for more details on the reasoning around this.
However, this will be possible in the future with the https://github.com/mui/material-ui/issues/38137


Configuration to track how many best blocks to store in the in memory store

Currently we save last 200 blocks in the in memory store.
Should make this configurable and potentially make it infinite, which makes local development easier by avoiding the subql services.
Should print some big warning if infinite is used.

closed by #280


Rename helper functions

Hi @drvinceknight would like your opinion on this.
We currently (on restructure-inputs branch) have the following functions:
Network_From_Dictionary
Network_From_File
which both return a Network object. I don't like the names of these things.
I propose the following change:
Network_From_Dictionary -> create_network_from_dictionary
Network_From_File -> create_network_from_yml_file
and then have another main function that might look like this::
def create_network(input):
if input is yml:
create_network_from_yml_file(input)
if input is dictionary:
create_network_from_dictionary(input)
And it'll be this create_network function that most users will use.

Implemented with commit 93a2d4353f32c8821258e4eb99cdf0e60390a2a7


Cluttered log file

I noticed that this palette is cluttering too much the log. I have hundreds of these lines:
2024-01-12T08:21:30.828663+01:00 liliorest Node-RED[478]: 12 Jan 08:21:30 - [info] [tuya-smart-device:Stato Luce Monitor] Recieved input : {"payload":{"operation":"CONTROL","action":"CONNECT"},"tab":3,"name":"Studio Francesco","socketid":"RU60YUA6-U18sRAVAAD_","socketip":"<IP_ADDRESS>","params":{},"_msgid":"622328b8415820d8"}
2024-01-12T08:24:06.240312+01:00 liliorest Node-RED[478]: 12 Jan 08:24:06 - [info] [tuya-smart-device:Stato Luce Monitor] Recieved input : {"payload":{"operation":"CONTROL","action":"CONNECT"},"tab":3,"name":"Studio Francesco","socketid":"uVjK3Ia7VgLGpRlPAAEB","socketip":"<IP_ADDRESS>","params":{},"_msgid":"0f6e8b78e0a5a216"}

Is there a way to reduce the logging of the palette?

Do you need to reduce the Log or the data throughput?
Usually, the log is not a problem: I copy-paste the log to an editor (Notepad++), and then...
The unique solution for the log is to customize the code by adding a filter based on the ID that leads to the decimation of messages.
About the data throughput (i have devices that send data every second !) some options are presented here:  https://github.com/msillano/tuyaDEAMON-applications/tree/main/daemon.energy#step-1-fine-tuning-tuyadeamon
Best regards.

Hi Marco,
no, the problem is the log which gets full of "tuya" lines. I am used to watch and verify the log daily, and those hundreds of lines keep me confused.

I have this problem too. I have a device that is not always connected to the socket, and nodered is retrying to connect. It is not needed to log every connection error, maybe only once when device goes offline.
I send to logs to a graylog server and it fills the storage / mess the stats. I miss real error messages

If this cannot be fixed, I must remove the palette as I am missing important NodeRed messages. Can't stand like this.

I see there is new logging options in 0.5.3 but they are not visible in node red UI

Please share a screenshot also try clearing cache and restarting node red
On Tue, 30 Jul 2024 at 3:15 AM, 8666 @.***> wrote:

I see there is new logging options in 0.5.3 but they are not visible in
node red UI
—
Reply to this email directly, view it on GitHub
https://github.com/vinodsr/node-red-contrib-tuya-smart-device/issues/140#issuecomment-2257064037,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADQ6OGTR5GARCOIZ3IDCLLZO2ZX3AVCNFSM6AAAAABBX53GI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXGA3DIMBTG4
.
You are receiving this because you are subscribed to this thread.Message
ID: <vinodsr/node-red-contrib-tuya-smart-device/issues/140/2257064037@
github.com>

What version of NodeRed do I need to run this properly. It is getting messy as I have bunch of plugins

It supports the latest version
Thanks
Vinod S R
On Mon, 2 Sep 2024 at 6:56 PM, 8666 @.***> wrote:

What version of NodeRed do I need to run this properly. It is getting
messy as I have bunch of plugins
—
Reply to this email directly, view it on GitHub
https://github.com/vinodsr/node-red-contrib-tuya-smart-device/issues/140#issuecomment-2324760495,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADQ6OE4S42ZCKOD4TYT6KLZURRRBAVCNFSM6AAAAABBX53GI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUG43DANBZGU
.
You are receiving this because you commented.Message ID:
@.***
com>


Using current or Last Mobile Location status

Subject of the issue
Rather than prompting the user to enter their location info is it possible to gather it from the N/w operators using the numbers entered on the "https://www.keralarescue.in" website. Even if the mobile is switched off or discharged the last active location can be checked to find the location.
This location if superimposed with the flooded area map from google can help is to filter out the locations where the evacuation team has to search or visit for help.
Your environment

version of your python
which browser and its version
OS Type (iOS/Android/Linux/Windows)

Steps to reproduce
Tell us how to reproduce this issue. Please provide a working demo as a GIF, if possible.
Expected behaviour
Refer Subject
Actual behaviour
Refer Subject

We need API and necessary access to the Telco NBI APIs. Once The access is available create another issue with the details of access, API end points and documentation.


Add a database

[x] Decide on a DB schema
[x] Configure CI to use the DB
[x] Start storing things in the DB.

Closes #83.

This is ready to merge, but will require some coordination around the database. I’d like to do this together via Hangout @binx.


Add tags parameter to TestFairy upload action

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[ ] I see several green ci/circleci builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)
[x] I've read the Contribution Guidelines
[ ] I've updated the documentation if necessary.
[x] I've added or updated relevant unit tests.

Motivation and Context

We use the testfairy action to upload builds for QA testing, however, the QA team has recently been asking if we can add tags to our builds to make them easier to organize. Unfortunately, the current implementation of TestFairy uploads within fastlane does not support adding tags to builds. Since tags are set via an additional parameter during upload, it seemed like a simple addition to modify the testfairy action to add support. Support for tags was first brought up in discussion #22062.
Description

This PR adds an optional tags parameter when calling the testfairy action to upload a new build. Tags in TestFairy are string labels that aid organization and support categorization of app builds. The tags parameter accepts an array of strings, with a default value of an empty array. The array is joined into a comma separated string, which is required for the TestFairy upload API.
TestFairy documentation on tags
Tested uploading a build in the following scenarios:

Uploaded a build with no tags
Uploaded a build with a single tag
Uploaded a build with multiple tags

All test builds are visible within TestFairy with their respective tags.
Testing Steps

The best way to test these changes is to upload a build to TestFairy containing zero, one, or multiple tags.

Can anyone help me rerun the CircleCI workflow? It seems like one job failed randomly while switching Ruby versions

Is there anyone that might be able to take a look at this? Happy to answer questions or address feedback

Just rebased, but would appreciate anyone who can review this PR.
Looks like a similar PR was just made here: https://github.com/fastlane/fastlane/pull/22162, so this is definitely a wanted feature!


i guess we need to add something to help the user debug

i find a bug ,that is label's dictionary is wrong ,however my IDE tell me there is something wrong with my loss. and it take me some hours to read all the code to check it .
so i think  can there add some module,like assert function in python ,to avoid it .
and in dataprocess's error should not occur in the trainner part.
the wrong line  number is 243.
thank you.

ok


add example to docker top

Problem description

Problem location
https://docs.docker.com/engine/reference/commandline/top/

I saw a problem on the following URL:

I couldn't find the information I wanted. I expected to find it near the following URL:

Other:

Project version(s) affected

Suggestions for a fix

add example for docker top command

@londoncalling @johndmulhausen thoughts and hackathon

Issue moved to docker/cli #588 via ZenHub


Rplacement for ImageDataGenerator

In Keras 3, the ImageDataGenerator has been deprecated. Is there a replacement for it?

ohhhh thats y it didnt work for me, thanks folk i got to know that its been deprecated...😅

image_dataset_from_directory is the replacement of the ImageDataGenerator, for augmentation you need to use preprocessing layer separately.
For more details on API usage, visit https://keras.io/api/data_loading/image/#image_dataset_from_directory-function

How can I find the way to replace ImageDataGenerator function with image_dataset_from_directory if ImageDataGenerator function has been set up as follows:
image_gen = ImageDataGenerator(rotation_range=20, # rotate the image 20 degrees
                               width_shift_range=0.10, # Shift the pic width by a max of 5%
                               height_shift_range=0.10, # Shift the pic height by a max of 5%
                               rescale=1/255, # Rescale the image by normalzing it.
                               shear_range=0.1, # Shear means cutting away part of the image (max 10%)
                               zoom_range=0.01, # Zoom in by 10% max
                               horizontal_flip=True, # Allow horizontal flipping
                               fill_mode='nearest' # Fill in missing pixels with the nearest filled value
                              )
RandomTransformImage = image_gen.random_transform(Anthracnose_leaf_img)
plt.imshow(RandomTransformImage)


'json.h' file not found in Mac M1-M3

If you found that: fatal error: 'json.h' file not found in you Mac M1-M3, it may be due to that brew installs the .h files into /opt/homebrew/include/json-c/. Please just copy them into the /opt/homebrew/include/ folder.

cp /opt/homebrew/include/json-c/* /opt/homebrew/include/

done


initial makefile re-write

pulling the contents of operators/Makefile into top level one.
Added Makefile.preflight to install some new tools required to work with the operator.

just pushed manually


Roblox crashes after a few minutes.

This problem has occured quite recently and is still ongoing... After a few minutes into a game (Plane Crazy) roblox crashes without sending an eror, it just closes after a short freeze, I don't know if it is due to the bloxstrap client or due to the game 'Plane Crazy' itself... But if this error is occuring to other players, that might be an issue to fix. Thanks

Apparently, the problem comes from the roblox game 'Plane Crazy' itself and is not caused by the bloxstrap client. It's actually quite obvious since the game was hardcoded so hard a roblox update can destroy the game with ease.


[rv_plic] rv_plic irq_id_o synthesis error

I just generated the rv_plic with the value of the N_SOURCE as 32.
After setting the N_SOURCE, and tried to  synthesis with the design compiler version 2019.12-SP5 version, and got an error on the width mismatch on the irq_id_o port.
One question I have is why the width of the irq_id_o port is different from the width of the irq_id_o from the rv_plic_target design.
In the rv_plic_target module, there seems using the localparam SrcWidth as the number of the Interrupt source plus 1.
With the clog2 system task called for generating the value of the localparam, it seems the number could be quite different.
In my example, the width of the irq_id_o from the rv_plic_target module would be 6, though the width from the rv_plic is 5.
Of course, this seems my human mistake, but I just wonder what intention there has been when writing the rv_plic design file.
Could someone explain why the equation of the localparam are like those?
Thank you.
Below is the source code from the rv_plic_target.sv
parameter int N_SOURCE = 32,
parameter int MAX_PRIO = 7,
// Local param (Do not change this through parameter)
localparam int SrcWidth  = $clog2(N_SOURCE+1),  // derived parameter
localparam int PrioWidth = $clog2(MAX_PRIO+1)   // derived parameter

And below is from the rv_plic.sv
module rv_plic import rv_plic_reg_pkg::*; #(
  // derived parameter
  localparam int SRCW    = $clog2(NumSrc)
) (
  input     clk_i,
  input     rst_ni,

  // Bus Interface (device)
  input  tlul_pkg::tl_h2d_t tl_i,
  output tlul_pkg::tl_d2h_t tl_o,

  // Interrupt Sources
  input  [NumSrc-1:0] intr_src_i,

  // Interrupt notification to targets
  output [NumTarget-1:0] irq_o,
  output [SRCW-1:0]      irq_id_o [NumTarget],

  output logic [NumTarget-1:0] msip_o
);

Thanks for finding this. the reason irq width in rv_plic_target module is defined as $clog2(NumSrc+1) is to represent the max Source ID. RV_PLIC interrupt ID begins at 1. 0 represents no interrupt.
I actually don't know why this has discrepancy in between. I will fix it ASAP. :)

Adding here what I found:
In the commit 88a861588795ccd2c43603096cd007600412ec2f I revised RV_PLIC to use NumSrc as it is. The topgen will add 0 interrupt outside of RV_PLIC. So I removed +1 part here (rv_plic.sv.tpl) but not rv_plic_target.sv . My bad. I should revise that module too.

Thank you for your fast reply.
Also just in case, the rv_plic_target internally seems using the N_SOURCE+1 for prioritize the interrupt.
I am cautious on the change on the logic on comparing the maximum priority with changing the parameter.

Yeah. I also found that too. I will double check the target module and revise accordingly.

@eunchan Thank you for your check.
After pull request accept, I’ll check with design compiler.

Design has been merged. Please let me know if you see the issue again. Let me close this ticket for now.

@eunchan
After cloning the new rv_plic, there has no error on the design compiler compilation.
Thanks for your help.


How can I send a vcard or contact to a chat? It doesn't work.

Hello I am trying to send a vcard to a chat but it is not working. It sends the card as a text (the 'type' of the message is always 'chat' and never 'vcard') when I use chat.sendMessage or Store.SendTextMsgToChat. How can I send a vcard or contact to a chat? Does anyone have a working sample of it? How is your updated wapi.js? Please, can anyone help me? Thank you very much.

Hello I am trying to send a vcard to a chat but it is not working. It sends the card as a text (the 'type' of the message is always 'chat' and never 'vcard') when I use chat.sendMessage or Store.SendTextMsgToChat. How can I send a vcard or contact to a chat? Does anyone have a working sample of it? How is your updated wapi.js? Please, can anyone help me? Thank you very much.

Hi @danielovianna use window.WAPI.sendVCard function for send vcard
vcard json :{
displayName: 'Contact Name',
vcard: 'BEGIN:VCARD\nVERSION:3.0\nN:;Contact Name;;;\nEND:VCARD'
}

Is there a way to send a raw message? So I could add the 'type' as a 'vcard' and send a contact vcard and not just a text message.

There are important details in the code of "The window.WAPI.sendVCard" function. It's pretty hacky, needs to have at least one message that is tampered with new data. I don't even understand what they tried. All my attemps to send a vcard miserably failed. Ended up serving vcard data in a website and sending links ...
Any hint to fix that function is greatly appreciated.


MYNEWT-335

fcb_offset_last_n() changed to return a struct fcb_entry
Added a test case
Now properly returns error when there is no item at requested offset

@mkiiskila @vrahane This pull request implements a change to fcb_offset_last_n to return a fcb_entry. Since you both have worked on this code, would be nice to get a review. Something that I might have involuntarily changed might be a "offset by one" error. But I added a test now and I assumed that offset 0 refers to the last element...

Updated to return error only if there are no fcbs available and number of entries is considered as 1-indexed (was previously offset by one). Documentation was updated to explain it better (I hope!).

Thanks for the unittest for this.

Looks great utzig. Thank you for the unit tests for this.


67 try ingesting branching routes as multilinestring objects

Ingesting branching routes as MultiLineString objects was successful. Ingestion script for TransitStop and TransitRoute is in good enough condition to merge into main.

For future iterations (not urgent) we may want to separate ingestion from extraction to allow for tests to work

Can we get a screenshot of tests passing if its too much to migrate tests to the route_rangers_api/tests.py

Looks good to me! I made some updates with my latest PR that migrated your test file to the app/route_rangers_api/tests.py file so that when the imports tried to call these functions that rely on django models they wouldn't immediately error.
That being said, most of those tests are currently being skipped and outdated imports were commented out (https://github.com/uchicago-capp-30320/RouteRangers/blob/main/app/route_rangers_api/tests.py#L11-L16) so if you want to make an issue to go back and update those tests, delete the ones that are no longer needed, etc. please do! doesn't have to be high priority though


In high contrast Aquatic/desert modes, focus indicator is not visible on Fluent Auto complete control

🐛 Bug Report
In high contrast Aquatic/desert modes, focus indicator is not visible on Fluent Auto complete control
💻 Repro or Code Sample

Go to https://www.fluentui-blazor.net/Autocomplete
Enable Aquatic/Desert color contrast mode from windows setting.
Click on the fluent autocomplete, a list will be populated.
Now use the down arrow key to chose the element

🤔 Expected Behavior
In High contrast Aquatic/Desert Modes, focus indicator should be clearly visible.
😯 Current Behavior
In high contrast Aquatic/desert modes, focus indicator is not visible on Fluent Auto complete control.
In Desert mode, on hover on element populated in list is not visible.
💁 Possible Solution
🔦 Context
🌍 Your Environment

OS & Device: [Windows] on [PC]
Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
.NET 6 and Fluent UI Blazor library Version [3.7]

Will be fixed in the next release #2018