Add GeneratedCodeAttribute to ThisAssembly

Add GeneratedCodeAttribute to ThisAssembly

Thanks for contributing.
Why is this a worthwhile attribute to include? I'm not too familiar with this attribute.

The GeneratedCodeAttribute class can be used by code analysis tools to identify computer-generated code, and to provide an analysis based on the tool and the version of the tool that generated the code.
see
https://docs.microsoft.com/en-us/dotnet/api/system.codedom.compiler.generatedcodeattribute?view=netframework-4.7.2

Interesting. We have several code generators. You've only updated the C# one. We have other languages, and codedom-based one. Can you update them all so they're consistent?

Thanks for contributing!


Add some tests for plugins menu actions

References and relevant issues
Part of #6941
Description
Add some tests for plugins menu actions.
Notes

There are some related tests with the plugins menu at napari._qt.menus._tests.test_plugins_menu.py. Maybe those tests should be moved to the new file added here (napari._qt._qapp_model._tests.test_plugins_menu.py)?

napari._qt.menus._tests.test_plugins_menu.py - yes please move these tests! That must have been a mistake I made in the original PR. In fact napari._qt.menus/ folder is slated to be removed completely, once we finish migration to app-model.


Add transfer queue support to RenderingDevice and enable multithreaded resource loading

NOTE: This PR depends on https://github.com/godotengine/godot/pull/87340, therefore it should not be considered for merging until https://github.com/godotengine/godot/pull/87340 is reviewed and approved accordingly. If you wish to review anything of this PR in advance, only the changes in the latest commit are relevant.
A few major bottlenecks were identified in Godot that this PR addresses.

Access to RenderingDevice is pretty much entirely blocked using a single thread safety mutex. This means that any thread that wishes to create buffers or textures from different threads needs to wait for the others or even the main thread to free its access.
When Vsync is enabled, waiting is performed while inside the mutex itself, so any arbitrary waiting caused by the presentation rate of the screen potentially stalls all efforts of loading resources in background threads. This can result in major increases in loading times in most games that choose to draw a loading screen and have Vsync enabled.
While the hardware provides dedicated queues for transfer operations that are much faster for the process and can be run independently from the main application loop, Godot chooses to use the same staging buffer logic that it uses for resources uploading during each frame that it uses for resources uploaded from background threads.

The PR solves all these bottlenecks and also simplifies the separate setup command buffer logic that was in place in RenderingDevice. RenderingDevice is now able to create "Transfer Workers" on the fly that can use their own staging buffer and command buffer to record the upload of all resources queued by the thread. Once it reaches a certain saturation point, it'll submit all the work to the dedicated transfer queue. The main loop will wait if necessary for these transfer workers if it's been determined that one of the resources that was uploaded with a transfer worker was used in the frame. This design allows to effectively upload resources in the background without stalling the main thread at all until the resource needs to be used.
The PR also changes the flexibility of the thread safety of RenderingDevice: whatever is allowed to be called from different threads is now allowed with no mutex involved, and whatever is not allowed now has a thread guard in place instead. A thread guard is a much cheaper option than a mutex and it also verifies that RenderingDevice is being used with its intended behavior: drawing from the main loop and not from other threads that could potentially cause issues. This was mostly done following @reduz's advice as noted here.
So far we lack a public project that allows to showcase loading a large amount of resources, but one of W4's internal projects that uses a large amount of textures and meshes had some good results:

master with Vsync enabled (60 HZ Monitor): ~25 seconds
master with Vsync disabled: ~2.5 seconds (10x faster!)
transfer_queues with both Vsync enabled and disabled: ~2.1 seconds

We can see one of the major benefits of this approach is that it makes the behavior much more consistent regardless of the user's vsync settings and refresh rate.
Projects with lots of resources that rely on background resource loading during loading screens or even during gameplay are the ideal candidates for testing out this PR.
TODO:

[ ] Decide on how to configure the max amount of transfer workers (right now it is just derived from the CPU count since it matches the logic of WorkerThreadPool).
[ ] Experiment with taking out the thread-safety of RID Owner by adding the logic from @reduz's PR.

I know big projects i needed but the most i could find was the lumberyard one so tested on my igpu (radeon vega 3)  Results

I know big projects i needed but the most i could find was the lumberyard one so tested on my igpu (radeon vega 3) Results
the 4.3 is the 1 minute and 4.2 is 1.04 , not much difference but it an igpu vs gb's.

On the editor or games? The benefits mostly apply to using threaded resource loading, it shouldn't really matter that much on situations where it's loading but stuck without drawing anything.

Well now added loading screen and nice results from (though vsync dissabled, it enabled was 15 secs ) And while they may not be the most accurate, it works ( still figuring out how to make it in editor)

I'll close this one as its changes are included in #90400.


Fix String.each for Ruby > 1.8

Recent Ruby versions seem to have removed String.each, but String.each_char should work.

 Sorry.


Removes domain-public-lighting and domain-tariff-switching modules.

These modules are not used.

All is well.

@rlemmers Can you review this please?
Please note that some pom.xml files have been formatted (like replacing tabs by spaces).
This change has impact on the Integration-Tests project also.

All is well.


Ad support to snowflake-db single line comments that starts with '#' or '/' ,

Add support for that in the snowflake dialect

Pull Request Test Coverage Report for Build 210775918

52 of 54 (96.3%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 91.995%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/tokenizer.rs
27
29
93.1%

Totals

Change from base Build 205645794:
0.05%

Covered Lines:
4597

Relevant Lines:
4997

💛  - Coveralls


Figure out why Z scaling value is not correct

What am I miscalculating to not get the correct unreal Z scale

Z scale is correct it landscape looks big because it is. lol


Android signin google-play-services-8.3.0 google-services.json missing ERROR!!

While using the signin app using google-play-services-8.3.0 i get the error as
Error:Execution failed for task ':app:processDebugGoogleServices'.

File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.

https://stackoverflow.com/questions/33556780/errorexecution-failed-for-task-appprocessdebuggoogleservices-please-fix/33558478#33558478


Add is_packaging_available

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (1004417) to head (e757b3f).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #651   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           71        71
  Lines         1928      1937    +9
  Branches       237       239    +2
=========================================
+ Hits          1928      1937    +9

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


How come fromList is O(n) instead of O(n*log n)?

https://github.com/haskell-unordered-containers/unordered-containers/blob/10328f25c2cf1f9b4080290b9d8d58b4d5a25a8d/Data/HashMap/Internal.hs#L2050-L2054
By contrast, fromListWith is documented to be O(n*log n).
The difference between these functions is that the former uses unsafeInsert while the latter uses unsafeInsertWith. Both are recursive though, so I don't understand how fromList gets away with linear complexity?!

I think the log n is "log n but not reaaaaaally log n since the base is so large", so there's just an inconsistency here

It's also not really log n because it's only expected to be a balanced tree with a perfect hash function. For instances like Hashable Int, that's very far from the case.


Option to change location of overlay (to appendLocation)?

I use vex in combination with a bootstrap modal. The bootstrap modal is used for instructions and documentation to the website. The problem is that it prevent focusing other elements while the modal is open, thus the vex-modal is a children of the bootstrap modal. But the bootstrap modal has a different z-index, thus the vex-overlay blocks either the complete bootstrap modal including the vex modal, or neither. The "clean" fix would be to move the vex-overlay to the appendLocation. Would this option be desirable in general, for example an appendLocationOverlay option?

Hello, do you know how to open 3d modals?


Attribute Hiding Factor (AHF)

Let's add new metric to ast.py, which will show the ratio of private/protected attributes to all attributes in a class.
Also, let's add Static Attribute Hiding Factor (SAHF), for static attributes only

implemented in #148


Proper CMake Config File Export

The cmake/jsonv/jsonv-export.cmake files all seem correct, but there needs to be a cmake/jsonv/jsonv-config.cmake file as well.

I no longer know what this issue refers to.


Remove reconciled partitions from list of missing partitions

After missing partitions have been reconciled and outputted, remove them from the list of missing partitions. This prevents a race condition that leads to multiple reconcile runs consecutively. Added an unit test to verify this works.
Also increase the wait time before reconciling because typically reconciler is only needed in pipelines that are slow to process partitions. Adding extra wait time gives the pipeline time to catch up.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@jackdingilian has reviewed this

assign to next reviewer


Uncaught Error: Could not find module

Receiving this issue: Uncaught Error: Could not find module ember-cli-chosen/components/ember-chosen imported from squarematics/components/ember-chosen
vendor.js:14338 DEBUG: Ember                    : 1.13.0-beta.1+canary.41542c6f
vendor.js:14338 DEBUG: Ember Data               : 1.0.0-beta.17+canary.dcaf77bdc8
vendor.js:14338 DEBUG: jQuery                   : 2.1.3
vendor.js:14338 DEBUG: Ember Simple Auth        : 0.8.0-beta.1
vendor.js:14338 DEBUG: Ember Simple Auth Devise : 0.8.0-beta.1
vendor.js:14338 DEBUG: Ember C3                 : 0.1.2
Bower: "chosen": "https://github.com/harvesthq/chosen/releases/download/v1.3.0/chosen_v1.3.0.zip"
NPM: "ember-cli-chosen": "https://github.com/green-arrow/ember-cli-chosen/tarball/master"
Not sure where to begin to debug this. I see in both vendor.js and squarematics.js the component loading the correct files.
What I don't see is the jquery plugin loading with $.chosen. I believe there has been changes where libraries with incorrect AMD parameters are failing silently.
FYI this worked correctly on ember-cli ^0.1.15 ember 1.11. Also really not sure if this is an ember-cli-chosen issue that is just the error showing.
Thanks for your help in advance.
****** Updated ******
I was in error. There wasn't a $.chosen but there was a global Chosen.

Hey @niquelbarron - I'm running into a similar problem:
Uncaught Error: Could not find module ember-cli-chosen/components/ember-chosen
bower.json:  "chosen": "https://github.com/harvesthq/chosen/releases/download/v1.3.0/chosen_v1.3.0.zip",
package.json: "ember-cli-chosen": "0.0.3",
template:
{{#ember-chosen value=singleSelectValue}}
yo
{{/ember-chosen}}
What did you do to fix your problem?  Maybe it will help me.  Thanks in advance!
Matt


Added Snake and apple python game

#130
made using pygame

ATTENTION 🚨🚨🚨
Don’t Forget To Follow Me On Github , and Add Your Name In _contributing.md if not found your name in _contributing.md it should be Labelled as SPAM.
STAR 🌟 this REPO for future HacktoberFest.


On 4038

Instead of having to project examples, could we go back to just one and two endpoints in it.


[KYUUBI #5692][Bug] Authz not skip explain command

Why are the changes needed?
To close #5692
Currently explain command still will check privilege of child logical plan.
EXPLAIN SELECT id FROM $db1.$table1
CommandResult [plan#15], Execute ExplainCommand, [[Error occurred during query planning: ], [Permission denied: user [someone] does not have [select] privilege on [default/table1/id]]]
   +- ExplainCommand 'Project ['id], SimpleMode

In this pr, we skip the plan under same execution id of the explain command
How was this patch tested?

[x] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Was this patch authored or co-authored using generative AI tooling?
No

ping @yaooqinn

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2568b0d) 61.46% compared to head (6971734) 61.39%.
 Consider uploading reports for the commit b376964 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5693      +/-   ##
============================================
- Coverage     61.46%   61.39%   -0.08%
  Complexity       23       23
============================================
  Files           604      604
  Lines         35697    35703       +6
  Branches       4889     4891       +2
============================================
- Hits          21942    21920      -22
- Misses        11380    11400      +20
- Partials       2375     2383       +8

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ping @yaooqinn As discussed offline, explain command should be skipped

TBH, you made this thing a bit complicated
It can be one line change in org.apache.kyuubi.plugin.spark.authz.PrivilegesBuilder#build
case _: ExplainCommand => OperationType.EXPLAIN

TBH, you made this thing a bit complicated It can be one line change in org.apache.kyuubi.plugin.spark.authz.PrivilegesBuilder#build
case _: ExplainCommand => OperationType.EXPLAIN

The problem is first it pass ExplainCommand with the unresolved query plan, then call execut on the query plan, and it will check the privilege of query plan,  we need to avoid check the next plan.

ping @yaooqinn

Thanks, merged to master


Fix Android install script issue:

FileNotFoundError:

Traceback (most recent call last):
  File "install-all.py", line 11, in <module>
    if subprocess.call("python build-all.py -deploy %s" % BUILD_ARGUMENTS) != 0:
  File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 1326, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'python build-all.py -deploy '

KeyError:

Traceback (most recent call last):
  File "build.py", line 46, in <module>
    if "additional" in EXAMPLE_JSON["assets"]:
KeyError: 'assets'

Thx 👍


Refactor views

We should refactor the views in order to avoid using fixed positions for the elements.
For instance:

  ORIGINAL

That was made by a PDF to HTML website but it's not a very flexible way to manage the views. Currently we can't work on #2 or #4 because of that.

@lubc and @bronzdoc is there a chance I can give this one a try? Would it just need to have the fixed positions removed and then have everything styled differently to fit the screen?

Please @DamonClark Thank you!

I want to be able to check how the generated pdf looks after I start making changes to the views. So I created a new demo rails app and followed the instructions from the readme. When I render the page I am getting an error ActionController::UnknownFormat with the respond_to object. I basically just added:

Hey @DamonClark, any chance to pick it up yet?

Hi @KostiantynPopovych  sorry I haven't looked at this. I think I requested to try it but then lost track of things.


Agrega switch para activar el uso de la IA

This commit is spam.
#1, under src/view/screens/Search/AIModels.ts, for some reason, you have leaked your own API key, but you're also trying to make the social-app depend on Facebook/Meta's AI API and send queries to it. You have also included some nonsense prompt.
#2, you have changed line counts in the translation file, without actually changing the content of the files referenced.
#3, you've changed 28 files in 1 PR, with many changes not related to each other, and you have code comments in Spanish.

Thanks, but unsure of what the purpose of this is and we definitely won't be adding any models unnecessarily like this.
For the record, you did leave a huggingface token in this PR, so you probably will want to revoke that.


Crash game after load cfg

Hi, what can crash configs made a month ago after csa update and crashes again.

Make new config

That's all I know but I would like to know what caused that now it crashes again not to create the whole again but to change the given value in cfg to make it work again.

Colors are now objects, before they was float arrays. Crash is caused because JSON tries to read an object from config, but in old config it's an array. To fix old config remove Esp and Glow objects from config file.


Fix passing arguments to functions

This fixes issue #23, the problem was checking the length of the args for greater than or equal to 2, when it should be 1.
pytest runs successfully, as do the cpp and math-c examples when passing arguments.

This goes in hand with #21 , sushi needs better logging to diagnose issues.


Create change Repository is not exhaustive

https://gerrit.syberiaos.com

It is not very user-friendly but loading a very long list may not be a good option too, hence let us close this issue as searching works.


UDP capped at 1472 Bytes

Description
Using the netbench benchmark I noticed that UDP packets above 1472 Bytes cannot be received. (I made a udp version of netbench)
This behaviour does not occur when running both the server and client as linux applications. This rules out an issue with the netbench code, in my opinion, since the Linux and Hermit versions run on the same code.
Furthermore this can also be seen in the testudp example code.
How to reproduce issue

Add an output for the number of received bytes to testudp
Connect with socat
Send 1472 Bytes
Send 1473 Bytes

@jounathaen


The version of pytorch

Does the version of pytorch have to be above 1.9+? 1.7 is that all right?

It could work but we cannot guarantee. Please try and if it doesn't work we can figure out solutions later.


RHTAPSRE-404: Update build-service to use auto generated ca bundle

Openshift will inject the ca bundle data into the trusted-ca configmap. Mount this configmap into the build-service pod.

/test kube-linter

/test appstudio-e2e-tests

thanks for the review @MartinBasti

/lgtm


Renaming files to allow RPM build

I was having issues getting an RPM to build. My error was
Processing files: superset-0.20.1-1.noarch
error: File must begin with "/": Lockup
error: File must begin with "/": With
error: File must begin with "/": Text.svg
error: File must begin with "/": Lockup
error: File must begin with "/": With
error: File must begin with "/"<EMAIL_ADDRESS>error: File must begin with "/": Lockup
error: File must begin with "/": Without
error: File must begin with "/"<EMAIL_ADDRESS>error: File must begin with "/": Lockup
error: File must begin with "/": Without
error: File must begin with "/"<EMAIL_ADDRESS>error: File must begin with "/": Mark.png
error: File must begin with "/"<EMAIL_ADDRESS>for ref pypa/setuptools#767
File renaming fixes this issue

Coverage remained the same at 71.461% when pulling 7e4b6883dc7c0eea0b56605ea1d1379dd5fa343e on SpyderRivera:master into b059506afad33611664aa62b3ef43175828e6764 on apache:master.

Do we need these files? Looks like they are not referenced anywhere.

Anyway the error looks like some missing quoting

I don't see them being used. However, when running rpmbuild they cause the issue. I can change to delete them...

Happy to merge, those assets are really just in the repo for reference and could live some place else.


enhancement: disable health checker in cloud mode

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage

/kind enhancement
What this PR does / why we need it:
The health checker of yurthub is not needed in cloud mode. This PR will disable it when yurthub is working in cloud mode.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

/assign @rambohe-ch
Does this PR introduce a user-facing change?

other Note

/lgtm
/approve


BFS Video

Description
Adding video for Breadth First Search along with its code in C.
Domain
C/CPP
Type of Contribution
Video
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign


[BUG] Cannot access a disposed object. Object name: 'ClientRegistration'.

Library name and version
Azure.Messaging.ServiceBus, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8
Describe the bug
Randomly we get an exception with the message  "Cannot access a disposed object. Object name: 'ClientRegistration'."  This occurs when we try to read messages from a topic.
Here is the stack trace of the error:
System.ObjectDisposedException:
at Microsoft.Extensions.Azure.ClientRegistration1.GetClient (Microsoft.Extensions.Azure, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)    at Microsoft.Extensions.Azure.AzureClientFactory2.CreateClient (Microsoft.Extensions.Azure, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
at Infrastructure.ServiceBus.CommandPublisher+d__8`1.MoveNext (ABCD.Infrastructure.ServiceBus, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
Expected behavior
We should be able to consume messages from Azure bus topic.
Actual behavior
Randomly getting the error. At times 20-30 messages fail in quick succession in a day. We normally get 1 million messages to process in a day.
Message consumer is hosted in AKS.
Reproduction Steps
It is a standard setup of message consumption.
Environment
No response

Hi @rajeevBlr.  Thanks for reaching out and we regret that you’re experiencing difficulties.  The message that you’re seeing indicates that either you’ve explicitly disposed the receiver or client that you are attempting to use or that DI has disposed it.
There is not enough to context to offer further thoughts.  If you need further assistance, please share a  stand-alone app that can reproduce the behavior that you’re seeing.  We’d be happy to take a look.

Hi @jsquire , thanks for your response.
As I mentioned in my previous message, this is not replicable consistenly. It occurs say 30 times out of 1 million times. So even if I create a stand-alone app, it will not be easily replicable.

We are using Microsoft.Extensions.Hosting.BackgroundService to host the Message Conumer client
Here is the trimmed down code snippet.
` this.serviceBusClient = new ServiceBusClient("connectionString"));
this.sessionProcessorOptions = new ServiceBusSessionProcessorOptions
{
MaxConcurrentSessions = maxConcurrentSessions,
PrefetchCount = prefetchCount,
SessionIdleTimeout = TimeSpan.FromSeconds(1)
};
this.processor = this.serviceBusClient.CreateSessionProcessor(topicName, subscriptionName, this.sessionProcessorOptions);
this.processor.ProcessMessageAsync += this.ProcessMessagesAsync;
this.processor.ProcessErrorAsync += this.ProcessErrorAsync;
await this.processor.StartProcessingAsync(cancellationToken);`

Hi @rajeevBlr.  Thanks for sharing the snippet.  Unfortunately, there's nothing obvious that stands out in there. That also does not align with the error message that you've shared.   In the snippet, you're directly creating Service Bus clients and your application explicitly owns the lifetime.  Unless you explicitly closed/disposed them and then attempted to use them, you would not see a dispose exception.
The stack trace in your issue description indicates that something in your application is disposing a singleton instance in the DI container that was registered with the Microsoft.Azure.Extensions library.   The snippet does not show any extensions use.
In both cases, there does not seem to be data that indicates an issue with the Azure SDK packages.  We would advise reviewing your application and ensuring that you are not disposing clients registered for DI and that you are stopping any processor instances before your application terminates and Di cleanup happens.


Add mass-storage-gadget replacement for msd on 2711

Create a new rpiboot mode that uses a Linux initramfs to
implement mass-storage-gadget mode supporting EMMC and NVMe
block devices.
To use:
cd usbboot/mass-storage/gadget
../rpiboot -d .

@JamesH65 @peterharperuk
Seems to work with NVMe, EMMC on CM4. Should work on CM4-S.

Is it worth adding a link to your buildroot repo to the README? Apart from that, I think you should just submit this. Great work.

Enabled kernel/buildroot features to create SCSI disks for XHCI USB devices. Since these can be slow to initialise I've added a delay  in /usr/local/bin/configure-gadgets if a PCI USB controller is found. There's better (but more complex) approaches so this will do for now.


cannot GET

my error is
Cannot GET /promote/3935831/15564882
I have no idea who to fix this, help.

We're going to need more information. Consider using the Roblox API Discord server for quicker support.


Support surefire.rerunFailingTestsCount parameter

It seems that currently the parameter rerunFailingTestsCount for the maven-surefire-plugin is not supported, correct? It is used to re-run a test if it has failed the first time.
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>${maven-surefire-plugin-version}</version>
    <configuration>
        <includes>
            <include>**/*Test.java</include>
            <include>**/*TestCase.java</include>
        </includes>
        <rerunFailingTestsCount>2</rerunFailingTestsCount>
    </configuration>
</plugin>

I'm always getting No runnable tests for the second run.
Results :

Tests in error:
  MainPageTest.searchMaterialTest@InternetExplorer ? NoSuchSession Unexpected er...
org.junit.runner.manipulation.Filter.initializationError(org.junit.runner.manipulation.Filter)
  Run 1: Filter.initializationError ?  No tests found matching Method searchMaterialTes...
  Run 2: Filter.initializationError ?  No runnable methods

Any chance this might be supported in a future release?

I'm not sure how surefire works and tries to rerun tests. Maybe custom runners that create multiple tests from one test method is not supported. Needs to be investigated.


(feat) Allow relative paths in oidc_redirect_uri

This PR takes psaiz's work in #2076 and also adds unit tests.
Closes #2076

Apologies for mistakenly opening this PR in your namespace @yakatz


Processing data

In this milestone, I did the following Activities:

Create Custom methods for the tables
Use CRUD for adding the information to the Postgres Database
Add Active Record for the Tables

thank you 😄


Final Internship assignment

Approach
Dividing the assignment into two components, Rust Backend and Flutter Frontend with usage of policy-kit-1 (polkit) and not sudo
Prerequisite for running
Flutter SDK
Rust Language preinstalled on computer
Polkit
Execution
Proceed to Rust_backend Folder and after opening the terminal in the folder, execute the given functions. and also execute cargo update then proceed with running cargo build to update crates.io.
start the server using cargo_run.
Go to Flutter_Frontend folder and run it in terminal. Finally run flutter run -d linux.
Learnings
I have pleasant experience in flutter since 1 year now and quite introductory part in Rust already, but I haven't used Rust to run privileged command for linux, I am a windows user, so I learned how to work efficiently with linux commands, I am very eager to learn more on how to connect different components of frontend and backend through bridges as these are extremely benefitting, thus I am looking forward to this opporunity to code in a collaborative environment

Thanks, but you ignored.

you need to detect if polkit works well, and elevate priviledge with alternative way


change the build system

Evaluate:

gulp
Broccoli

The choice should be strictly related to issue #40. A simplified solution is appreciated.

At the moment, I'm trying to create a generic building system. For this reason, this issue will be closed and a new one (#45) will be opened.


test: [WIN-NPM] dataplane test framework

Framework to specify/test any arbitrary sequence of DP events.

/azp run


How can i cache the weather service?

The approach that you have used is nice however you could try request headers


This is a Pre-Built Javascript File. Try to Require the Original Source...

Hey guys,
Installing braintree-web 2.17.1 via npm yields the following error:
./~/braintree-web/dist/braintree.js
Critical dependencies:
3:420-427 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
 @ ./~/braintree-web/dist/braintree.js 3:420-427

I went went through node_modules and no source files are included, only the dist.
Any suggestions?
Thanks,
Peter

@ppiekarczyk are you seeing this error when installing via npm or trying to compile with Webpack?
If it is the latter, it seems like this is a duplicate of #52.

Ah yeah. Same issue. Thanks


NSURLErrorDomain Code=-999 "cancelled"

my code => `import UIKit
import Alamofire
import SwiftyJSON
class ViewController: UIViewController {
@IBOutlet weak var txtOutput: UITextView!
@IBAction func btnSendRequest(sender: AnyObject) {

    let serverTrustPolicies: [String: ServerTrustPolicy] = [
        "<IP_ADDRESS>": .PinCertificates(
            certificates: ServerTrustPolicy.certificatesInBundle(),
            validateCertificateChain: true,
            validateHost: true
        ),
        "localhost": .DisableEvaluation
    ]

    let manager = Manager(
        serverTrustPolicyManager: ServerTrustPolicyManager(policies: serverTrustPolicies)
    )

    let params = [

        "username"<EMAIL_ADDRESS>        "password": "Ramazan 2",
        "grant_type": "password"

    ]
    manager.request(.POST, "https://<IP_ADDRESS>:8082/token", parameters: params)
        .responseString(){
            response in
            self.txtOutput.text = response.description
        }
        .responseJSON(){
            JSON in
            print(JSON)
    }
}

}`
output =>

FAILURE: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://<IP_ADDRESS>:8082/token, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=https://<IP_ADDRESS>:8082/token}
if you are help to me i'll be so happy..

Thanks

well... I solved this problem but now come another one ...
my code =>
`let serverTrustPolicies: [String: ServerTrustPolicy] = [
"localhost": .PinCertificates(
certificates: ServerTrustPolicy.certificatesInBundle(),
validateCertificateChain: true,
validateHost: true
),
"<IP_ADDRESS>:8082": .DisableEvaluation
]
    let manager = Manager(
        serverTrustPolicyManager: ServerTrustPolicyManager(policies: serverTrustPolicies)
    )

    manager.request(.POST, "https://<IP_ADDRESS>:8082/token", parameters: ["username"<EMAIL_ADDRESS>"password": "Ramazan 2", "grant_type": "password"], headers: ["content-type": "application/x-www-form-urlencoded"]).responseJSON(){
        JSON in
        print(JSON)
    }`

output =>

FAILURE: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://<IP_ADDRESS>:8082/token, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=https://<IP_ADDRESS>:8082/token}

Thanks !

You are most likely being hit by ATS. Please see this section in our README. Also, these types of questions are best suited for Stack Overflow. We use GitHub for bug reports and feature requests.
Best of luck! 🍻

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.

Mahmut Akyol your problem is solved? I have the same problem if know answer me.Thanks

`
let manager = Alamofire.Manager.sharedInstance
func Config(manager: Alamofire.Manager){
    manager.delegate.sessionDidReceiveChallenge = { session, challenge in
        var disposition: NSURLSessionAuthChallengeDisposition = .PerformDefaultHandling
        var credential: NSURLCredential?

        if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust {
            disposition = NSURLSessionAuthChallengeDisposition.UseCredential
            credential = NSURLCredential(forTrust: challenge.protectionSpace.serverTrust!)
        } else {
            if challenge.previousFailureCount > 0 {
                disposition = .CancelAuthenticationChallenge
            } else {
                credential = manager.session.configuration.URLCredentialStorage?.defaultCredentialForProtectionSpace(challenge.protectionSpace)

                if credential != nil {
                    disposition = .UseCredential
                }
            }
        }
        return (disposition, credential)
    }
}

manager.request(.GET, urlString, parameters: param, headers: header).responseJSON(){
json in
if let value = json.result.value  {
let _json = JSON(value)
print(_json)
}
}
`


Prometheus Dashboard broken

The provided Prometheus Dashboard queries all fail.
Are there plans to update them?

Works for me using the sample app.
Note the default /metrics endpoint is set to proto format, you'll have to change that to text here Mabye this is your issue?
I've uploaded a new revision fixing a fiew things: apdex, errors and removing health checks. see here.

@alhardy thanks for all the great content. can you remove the influx DB from this dashboard?


Specific CalendarEventType causes internal server error

Subject of the issue
While using Hyperion in production, trying to create an event with Asso indé type create an error on backend.
This error does not occur when self-hosting Hyperion under a Windows OS.
hyperion-1-app    | [parameters: (title', 'aut', datetime.datetime(2024, 2, 19, 1, 0, tzinfo=<DstTzInfo 'Europe/Paris' CET+1:00:00 STD>), datetime.datetime(2024, 2, 22, 0, 59, tzinfo=<DstTzInfo 'Europe/Paris' CET+1:00:00 STD>), True, 'Hall du M16', 'independentAssociation', 'hvv', '', 'id')]
hyperion-1-app    | (Background on this error at: https://sqlalche.me/e/20/dbapi)
hyperion-1-app    | 23-Feb-24 09:52:29 - uvicorn.error - ERROR - Exception in ASGI application

Your environment

Production or Preproduction

Steps to reproduce

Create or edit an event with "Asso Indé" type

Error is invalid input value for enum calendareventtype: "independentAssociation"
The issue is raised only on preproduction servers (everything works in production). A migration may have failed in the past.


How to calculate model's FLOPs?

Every paper which uses OpenPCDet Framework calculates FLOPs or FPS, but there doesn't have any tools in this framework to compute this direactly. I have used torchsummary, torchstat and many other tools, they didn't work and had error below.
Traceback (most recent call last):   File "test.py", line 229, in <module>     main()   File "test.py", line 209, in main     summary(model, (3,8,4))   File "/opt/conda/lib/python3.7/site-packages/torchsummary/torchsummary.py", line 72, in summary     model(*x)   File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl     return forward_call(*input, **kwargs)   File "../pcdet/models/detectors/IASSD.py", line 13, in forward     batch_dict = cur_module(batch_dict)   File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1120, in _call_impl     result = forward_call(*input, **kwargs)   File "../pcdet/models/backbones_3d/IASSD_backbone.py", line 143, in forward     batch_size = batch_dict['batch_size'] IndexError: too many indices for tensor of dimension 4

I also encountered the same problem. Have you solved this problem yet?

You can refer to our other project https://github.com/CVMI-Lab/SparseKD/blob/master/docs/GETTING_STARTED.md to check out how to calculate model metrics in openpcdet.

Thank you for your help, but there are still some errors . Refer to  https://github.com/CVMI-Lab/SparseKD/blob/master/docs/GETTING_STARTED.md, I installed Thop and spconv==2.1.20, and change the conv
cp extra_files/conv.py ${CONDA_PATH}/envs/${ENV_NAME}/lib/${PYTHON_VERSION}/site-packages/spconv/pytorch/.
Also change some codes.
cuda 10.2 torch 1.7.0

Comment out m.total_acts +=y.features.shape[0]*y.features.shape[1] in extra_files/conv.py
Because "torch.nn.modules.module.ModuleAttributeError: 'SubMConv3d'" object has not attribute 'total_acts'"

@staticmethod
def count_your_model(m,x,y):
    m.total_ops +=torch.DoubleTensor([int(y.flops)])
    #m.total_acts +=y.features.shape[0]*y.features.shape[1]

change cal_fops function in pcdet/utils/common_utils/cal_flops(model, batch_dict)
ori:

def cal_flops(model,batch_dict):
    mac, params,acts = profile_acts(model, inputs=(batch_dict,),
                                    custon_ops ={
                                            spconv.SubMConv3D: spconv.SubMConv3D.count_your_model,
                                            spconv.SparseConv3D: spconv.SparseConv3D.count_your_model,
                                            spconv.SubMConv2D: spconv.SubMConv2D.count_your_model,
                                            spconv.SparseConv2D: spconv.SparseConv2D.count_your_model,
}

cahnged:
def cal_flops(model,batch_dict):
    mac, params= profile(model, inputs=(batch_dict,),
                                    custon_ops ={
                                            spconv.SubMConv3D: spconv.SubMConv3D.count_your_model,
                                            spconv.SparseConv3D: spconv.SparseConv3D.count_your_model,
                                            spconv.SubMConv2D: spconv.SubMConv2D.count_your_model,
                                            spconv.SparseConv2D: spconv.SparseConv2D.count_your_model,
}
)

And then use the model ,https://github.com/open-mmlab/OpenPCDet/blob/master/tools/cfgs/nuscenes_models/cbgs_voxel0075_voxelnext.yaml and follow code to get the model's Flops
    mac, params= profile(model, inputs=(batch_dict,),
                                    custon_ops ={
                                            spconv.SubMConv3D: spconv.SubMConv3D.count_your_model,
                                            spconv.SparseConv3D: spconv.SparseConv3D.count_your_model,
                                            spconv.SubMConv2D: spconv.SubMConv2D.count_your_model,
                                            spconv.SparseConv2D: spconv.SparseConv2D.count_your_model,
   macs2,params2 = clever_format([macs1,parasm1],"%0.3f")
   print('macs1=',macs1)
   print('params1=',params1)
   print('macs2=',macs2)
   print('params2=',params2)

And, the reuslts if follow:
macs1 =<PHONE_NUMBER>6786.0
params1 = 7981398.0
macs2 = 68.317T
params2 = 7.981M

The macs is so huge , is there anything wrong？Wish for you help.

I Fould in the extra_files/conv.py , The method of calculating floats is incorrect！
ori:  extra_files/conv.py #233
 if self.conv1x1:
      if FILTER_HWIO:
           features = torch.mm(
                  input.features,
                    self.weight.view(self.out_channels, self.in_channels).T)
       else:
           features = torch.mm(
                    input.features,
                    self.weight.view(self.in_channels, self.out_channels))

     flops = input.features.shape[0] * input.features.shape[1] * features.shape[1] * features.shape[0]

FLOPS for torch.mm  should: input.features.shape[0] * input.features.shape[1] * features.shape[1]

@Sunmmming  Thank you for pointing this out, I will correct it soon!

Thank you for your help, but there are still some errors . Refer to https://github.com/CVMI-Lab/SparseKD/blob/master/docs/GETTING_STARTED.md, I installed Thop and spconv==2.1.20, and change the conv cp extra_files/conv.py ${CONDA_PATH}/envs/${ENV_NAME}/lib/${PYTHON_VERSION}/site-packages/spconv/pytorch/. Also change some codes. cuda 10.2 torch 1.7.0

Comment out m.total_acts +=y.features.shape[0]*y.features.shape[1] in extra_files/conv.py
Because "torch.nn.modules.module.ModuleAttributeError: 'SubMConv3d'" object has not attribute 'total_acts'"

@staticmethod
def count_your_model(m,x,y):
    m.total_ops +=torch.DoubleTensor([int(y.flops)])
    #m.total_acts +=y.features.shape[0]*y.features.shape[1]

change cal_fops function in pcdet/utils/common_utils/cal_flops(model, batch_dict)
ori:

def cal_flops(model,batch_dict):
    mac, params,acts = profile_acts(model, inputs=(batch_dict,),
                                    custon_ops ={
                                            spconv.SubMConv3D: spconv.SubMConv3D.count_your_model,
                                            spconv.SparseConv3D: spconv.SparseConv3D.count_your_model,
                                            spconv.SubMConv2D: spconv.SubMConv2D.count_your_model,
                                            spconv.SparseConv2D: spconv.SparseConv2D.count_your_model,
}

cahnged:
def cal_flops(model,batch_dict):
    mac, params= profile(model, inputs=(batch_dict,),
                                    custon_ops ={
                                            spconv.SubMConv3D: spconv.SubMConv3D.count_your_model,
                                            spconv.SparseConv3D: spconv.SparseConv3D.count_your_model,
                                            spconv.SubMConv2D: spconv.SubMConv2D.count_your_model,
                                            spconv.SparseConv2D: spconv.SparseConv2D.count_your_model,
}
)

And then use the model ,https://github.com/open-mmlab/OpenPCDet/blob/master/tools/cfgs/nuscenes_models/cbgs_voxel0075_voxelnext.yaml and follow code to get the model's Flops
    mac, params= profile(model, inputs=(batch_dict,),
                                    custon_ops ={
                                            spconv.SubMConv3D: spconv.SubMConv3D.count_your_model,
                                            spconv.SparseConv3D: spconv.SparseConv3D.count_your_model,
                                            spconv.SubMConv2D: spconv.SubMConv2D.count_your_model,
                                            spconv.SparseConv2D: spconv.SparseConv2D.count_your_model,
   macs2,params2 = clever_format([macs1,parasm1],"%0.3f")
   print('macs1=',macs1)
   print('params1=',params1)
   print('macs2=',macs2)
   print('params2=',params2)

And, the reuslts if follow:
macs1 =<PHONE_NUMBER>6786.0
params1 = 7981398.0
macs2 = 68.317T
params2 = 7.981M

SubMConv2d()
ops:<PHONE_NUMBER>656.0 params:16512.0

The macs is so huge , is there anything wrong？Wish for you help.

THX for this method~   a small mistake: custon_ops->custom_ops


Scanner Error Message for Prefix Check

ITS-Pro time category: https://its-pro.ucsd.edu/browse/MA-74
This is complete when:

[x] For barcodes scanned that do not begin with "EXC",, the message "Barcode does not start with EXC. Please scan another barcode." with the Orange color.

Deployed to CMS QA for testing.


Is there an issue with ONE.download threads and the Jupyter notebook extension ?

This has happened twice recently:
Once with a researcher within the IBL, and then again here: https://neurostars.org/t/spikesortingloader-load-spike-sorting-gets-stuck-repeatedly/29560
The download function launches some threads, it may be useful for some staff to install and use VScode to see if this can be reproduced.

This may be resolved by https://github.com/int-brain-lab/ONE/commit/a17cc18b374370e855f1822e68037980473575db. Adding ONE_HTTP_DL_THREADS=1 will now keep ONE single threaded.  Reopen if necessary...


Plan FWD50 attendance

Need to plan who attends when (if possible)
Need to create issues for sessions attended (list topics and link to debrief material)
Personal note: In discussion with massive group (30+) of Canada and international representatives to have a meetup on Government as a Service on November 7. Date/time to be confirmed.

I've selected my sessions and will share them here shortly.
@smellems Did you have a chance to pick yours?


Gradle Image in Step failing

I'm using Gradle image (from docker repo.) to build my SpringBoot application in my Tekton Step and getting the below error.
Caused by:java.io.IOException:Cannot run program 'docker' (in directory "/workspace/source"} : error=13, Permission denied.
I've mounted the docker socket with mount path as '/var/run/docker.sock' to my host system's '/var/run/docker.sock'.
I'm getting the below exception in the logs.
``

I think this is the same as #2424?


Add CSS Speedrun puzzle game by Vincent Will

What does this PR do?
Add resource(s)
For resources
Description
https://css-speedrun.netlify.app/
https://github.com/Vincenius/css-speedrun
Why is this valuable (or not)?
It helps to practice CSS selectors using puzzle strategy. Thanks @Vincenius
How do we know it's really free?
It has MIT license
For book lists, is it a book? For course lists, is it a course? etc.
It's a puzzle game with interactive hints
Checklist:

[ ] Read our contributing guidelines
[ ] Search for duplicates.
[ ] Include author(s) and platform where appropriate.
[ ] Put lists in alphabetical order, correct spacing.
[ ] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

might this fit better into playgrounds?

might this fit better into playgrounds?

Interactive vs playground... a question not resolved yet: #6107

Ok, will merge this - the css games belong together - maybe this is a good place for a crosslink


Using LoRa Interface throws occational errors

Hi Mark,
actually I see some weird errors in my container log while using my ESP32 LillyGo T-Beams with the LoRa Interface:
[2022-06-11 16:54:15] [Error] A serial port error occurred, the contained exception was: index out of range
[2022-06-11 16:54:15] [Error] The interface RNodeInterface[RNode LoRa Interface] experienced an unrecoverable error and is now offline.
[2022-06-11 16:54:15] [Error] Reticulum will attempt to reconnect the interface periodically.
[2022-06-11 16:54:15] [Error] Error while transmitting on RNodeInterface[RNode LoRa Interface]. The contained exception was: an integer is required (got type NoneType)
The interface config I use looks like that:
[[RNode LoRa Interface]]
type = RNodeInterface
interface_enabled = True
outgoing = True
port = /dev/ttyRNODE
frequency = 867200000
bandwidth = 125000
txpower = 7
spreadingfactor = 8
codingrate = 5
id_callsign = myCallSign
id_interval = 600
network_name = myNetworkName
passphrase = myNetworkSecret
flow_control = False
Interessting is, that both netwoked PIs throw this error exactly at the same point in time.
At least the log entries are always have identical timestamps.
I guess the last line of the error message given above indicates the cause of the issue.
It looks like something shall have a default or needs to have assigned a value in the config or like.
But what?
This one did not show up on my servers before the last update of RNS.
Since I updated to the most recent version and started using the beacon and name/password functionality this error startet to appear regardless if I run RNS within a dockerized environment or by running RNS on the host without docker.
Any idea or advice how to fix that would be appreciated.
Cheers
Stephan

Very interesting, thanks for reporting this. What interface is the other one throwing the error at the exact same time? That will help me narrowing it down.

Okay, never mind, I found it ;) This was a missing check in inbound processing for IFAC-enabled interfaces. If you want to try it out, you can grab the latest from master, or I can compile a .whl for you.

It was simply a 1:1 LoRa link with identical interface specs. except the callsign extension, sitting in my shack aprox. 20cm apart.
Von: markqvist @.>
Gesendet: Samstag, 11. Juni 2022 17:32
An: markqvist/Reticulum @.>
Cc: Stephan Becker @.>; Author @.>
Betreff: Re: [markqvist/Reticulum] Using LoRa Interface throws occational errors (Issue #65)
Very interesting, thanks for reporting this. What interface is the other one throwing the error at the exact same time? That will help me narrowing it down.
—
Reply to this email directly, view it on GitHub https://github.com/markqvist/Reticulum/issues/65#issuecomment-1152951673 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWGJMD53M2FGJCXX7R4DBLVOSWPFANCNFSM5YQHABIA .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/ABWGJMDHUCMNJPWBMSBVLXDVOSWPFA5CNFSM5YQHABIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIS4KK6I.gif Message ID: @.*** @.***> >

Well, since I have a fully automated build process setup with docker hub to create non-cached builds of my projects multiarch images every time I push something into the nexus git repository, just feeding in a hot fix is not to easy.
When do you think will that fix be included by just using ‘pip install rns’, which is exactly what my dockerfile does on building the nexus image?
Von: markqvist @.>
Gesendet: Samstag, 11. Juni 2022 18:52
An: markqvist/Reticulum @.>
Cc: Stephan Becker @.>; Author @.>
Betreff: Re: [markqvist/Reticulum] Using LoRa Interface throws occational errors (Issue #65)
Okay, never mind, I found it ;) This was a missing check in inbound processing for IFAC-enabled interfaces. If you want to try it out, you can grab the latest from master, or I can compile a .whl for you.
—
Reply to this email directly, view it on GitHub https://github.com/markqvist/Reticulum/issues/65#issuecomment-1152963221 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWGJMDTU6SMCA3OVSJU2ETVOS72RANCNFSM5YQHABIA .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/ABWGJMH2FQQJ6L5CBQ4ZCSLVOS72RA5CNFSM5YQHABIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIS4NFFI.gif Message ID: @.*** @.***> >

Ah, it makes sense then. It is probably a packet coming from something else that is picked up by both receivers then.
It will be included in 0.3.8, which is more or less ready, except for some final tuning and tests. I will probably have it out during this coming week.

Sounds good.
More tests have to wait until the end of next week since I’m off site anyway.
And yes it is a LoRa Network in my Office / Shack, that consists of 2 different Networks (Name/PW) with 3 nodes each linked together running RNS on 6 mixed RPi/OPi 32bit/64bit SBCs.
It is the LoRa side of my RNS test infrastructure to test and evaluate RNS, nomadnet and LXMF as transport layer for my Nexus Messenger Server and App.
So that makes up for 6 LoRa TRX having all the same radio configuration within just a couple of meters…
Von: markqvist @.>
Gesendet: Montag, 13. Juni 2022 15:52
An: markqvist/Reticulum @.>
Cc: Stephan Becker @.>; Author @.>
Betreff: Re: [markqvist/Reticulum] Using LoRa Interface throws occational errors (Issue #65)
Ah, it makes sense then. It is probably a packet coming from something else that is picked up by both receivers then.
It will be included in 0.3.8, which is more or less ready, except for some final tuning and tests. I will probably have it out during this coming week.
—
Reply to this email directly, view it on GitHub https://github.com/markqvist/Reticulum/issues/65#issuecomment-1153943018 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWGJMFIIJOH5C52V7QPJDDVO44J3ANCNFSM5YQHABIA .
 Keep an eye on the repo then, 0.3.8 should be out within the week.


ImageThumbnail causes infinite callback when image loading failed

Bug Report
Describe the Bug
The ImageThumbnail class useEffect includes many functions as its dependencies.  When writing functional component, these local functions are created every single time the component is rendered.  This causes the useEffect code to be triggered every single render.
The image loading promise is wrapped in a cancellablePromise and the cancel method is called if load failed.  But because all the functions are recreated, the correctly cancelled cancellablePromise is purged and re-created, causing it to be un-cancelled.
What steps can we follow to reproduce the bug?
These steps was only reproduced in a private customized version of OHIF/Viewers.  So I did not actually reproduce with pure OHIF/Viewers.  But I'm sure the problem is there and the steps are as followed

Shutdown the WADO service, causing the image thumbnail loading to fail
Set a breakpoint at cancelablePromise = utils.makeCancelable(...)
Set a breakpoint at the cancelablePromise error handler if (error.isCanceled) return;

Observed that
2. cancelablePromise is recreated at every render
3. cancelablePromise.isCanceled is always false
The following 3 dependency functions, fetchImagePromise, setImagePromise and purgeCancelablePromise should be wrapped in useCallback with their proper dependencies set.
  const fetchImagePromise = useCallback(() => {
    if (!cancelablePromise) {
      return;
    }

    setLoading(true);
    cancelablePromise
      .then(response => {
        setImage(response);
      })
      .catch(error => {
        if (error.isCanceled) return;
        setLoading(false);
        setError(true);
        throw new Error(error);
      });
  }, [cancelablePromise]);

  const setImagePromise = useCallback(() => {
    if (shouldRenderToCanvas()) {
      cancelablePromise = utils.makeCancelable(
        cornerstone.loadAndCacheImage(imageId)
      );
    }
  }, [imageId]);

  const purgeCancelablePromise = useCallback(() => {
    if (cancelablePromise) {
      cancelablePromise.cancel();
    }
  }, [cancelablePromise]);

As reported, this bug no longer occurs in the current master branch (3.8.0-beta.7). However, the  point of the promise creation being done via useCallback was considered and with the current thumbnail implementation useCallback should be used to avoid multiple promise creations for the same thumbnail/imageId.

See the previous comment.


Elastic search index issues with term queries

I'm having problems getting the behaviour out of Es that I would like to. Essentially the term queries doesn't seem to work as I expected them to.
from: https://www.elastic.co/guide/en/elasticsearch/reference/current/term-level-queries.html

While the full text queries will analyze the query string before executing, the term-level queries operate on the exact terms that are stored in the inverted index.
These queries are usually used for structured data like numbers, dates, and enums, rather than full text fields. Alternatively, they allow you to craft low-level queries, foregoing the analysis process.
The queries in this group are:
term query
Find documents which contain the exact term specified in the field specified.

but despite having a Help entry with identifier: "how-is-the-dataset-citation-text-auto-generated" searhing for
{
    "query": {
        "bool": {
            "must": [
                {
                    "match_all": {}
                },
                {
                    "term": {
                        "contentType": "help"
                    }
                },
                {
                    "term": {
                        "identifier": "how-is-the-dataset-citation-text-auto-generated"
                    }
                }
            ]
        }
    }
}

doesn't return results. But it isn't stable either. On rare occasion it will work if the index is rebuild.

Seemingly closed by https://github.com/gbif/content-crawler/commit/8d2f4fbdfcc88314908c77e286f2eae831f60489
@dnoesgaard please reopen if the issues reappears


SCP-5132 Withdrawal query changes

Changes the parameters of the GetWithdrawals query in the following ways:

The query is now paginated (it accepts a Range and returns a Page).
The query accepts a Set PolicyId to filter by role token currencies. Empty set => no filtering.

Pre-submit checklist:

Branch

[x] Tests are provided (if possible)
[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description

Review required
[x] Substantial changes to code, test, or documentation

[x] Reviewer requested

I've tested it thoroughly in the integration tests, and I've got an upstream branch that uses this in the REST API, so there has been additional testing there


WINMAIN

How to use cxxopts with "_tWinMain"'s (https://msdn.microsoft.com/en-us/library/windows/desktop/ms633559(v=vs.85).aspx) lpCmdLine?

Thanks.


ng-repeat does not work

$(element).document.ready() is executing earlier than ng-repeat is doing the logic. (possible when async loading collection). please use $timeout for this as solution,

@victorarandaiglesias  it's true! thks!

The site http://vasyabigi.github.io/angular-slick/
only shows (dot dot dot) it dosent say anything about repeat. I can add my own ng-repeat but I thought the carousel was supposed to implement that for us? Totally not clear :(

I didn't find how to use angular-slick with images until I searched for the issue and landed on this page.
Please provide full example in readme instead of
<slick>
...
<slick>

@daniel-obadia instead of setting data to your actual data set it to a another variable (I used dataLoaded) and then set that variable to true in the callback where your image data is set.
Controller:
StreamService.getStreamById($scope.stream.id, auth).success(function (stream) {
      $scope.photoStream = stream.Results.Photos;
      $scope.dataLoaded = true;
 });

View:
<slick slides-to-show="3" slides-to-scroll="1" init-onload="true" data="dataLoaded">

</slick>

@daniel-obadia

 <slick infinite="true" dots="true" arrows="true" data="photoStream" init-onload="true">

</slick>

@daniel-obadia

(init-onload="true") didn't work for me. The best way is to use (ng-if="dataArray.length").

The correct way to implement it is including
on-finish-render="init()"

in your repeat.
Check this:
https://github.com/kbdaitch/angular-slick-carousel#attributes

@amrfaisal Thanks! This worked to resolve my issue as well.

How to define the callback method inside slick tag. Eg,

.....

@bcruddy He is right!

try to use  ng-if it works for me <3

 0">

Thanx.. It's working...

Not working for me.... My Code

      {{alldata}}

$timeout(function() {
$scope.alldatas = [1,2];
}, 1000);

https://github.com/devmark/angular-slick-carousel    works fine...

@njj njj  thank you for your directive on Jun 12, 2014

Thanks for the workaround @njj. Problem is still here.
For people who're still looking for answers, just change your:
<slick infinite="true" slides-to-show="3" slides-to-scroll="3" dots="true" arrows="true" init-onload="true" data="ctrl.users" responsive="ctrl.breakpoints">

        ...

</slick>

into

    <slick infinite="true" slides-to-show="3" slides-to-scroll="3" dots="true" arrows="true" init-onload="true" data="ctrl.users" responsive="ctrl.breakpoints">

            ...

    </slick>

and add in your Controller
      $timeout(function() {
        ctrl.ready = true;
      }, 1000);

This way, slick won't init (thanks to ng-if parent) until users are loaded and ready has $timeout.

@amrfaisal Thanks! It's charming.

Thank You so much! It helped me a lot


UPDATING.sh: Use proper role FQCNs.

Let me know if you have any suggestions on how to improve this. I tried to make this as narrow as possible to avoid false positives. Before this, the example playbooks didn't work properly and any role that had a dependency would fail.
For example, the PHP role fails to run, because the collection does not satisfy its dependencies in meta/main.yml.
# playbook.yml
---
- name: Prepare
  hosts: all
  become: yes
  gather_facts: no

  roles:
    - role: robertdebock.roles.bootstrap
    - role: robertdebock.roles.epel
    - role: robertdebock.roles.python_pip
    - role: robertdebock.roles.buildtools
    - role: robertdebock.roles.openssl
      openssl_items:
        - name: apache-httpd
          common_name: "{{ ansible_fqdn }}"
    - role: robertdebock.roles.httpd
- name: Converge
  hosts: all
  become: yes
  gather_facts: yes

  roles:
    - role: robertdebock.roles.php

# ansible-playbook -i 'localhost,' -c local ./playbook.yml
ERROR! the role 'robertdebock.httpd' was not found in robertdebock.roles:ansible.legacy:/pwd/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/root/.ansible/collections/ansible_collections/robertdebock/roles/roles:/pwd

The error appears to be in '/root/.ansible/collections/ansible_collections/robertdebock/roles/roles/php/meta/main.yml': line 35, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

dependencies:
  - robertdebock.httpd
    ^ here

Dang, over 200 files changed, and the only thing added is a string 'role', for each role.
Talking about making things over complicated. I guess this commit now has become outdated...

That's a lot of changes! I'll try a e pull, otherwise I'll steal the script and push myself.


VSCode: added patchelf after download for NixOS support

This adds Nix support, and fixes #4542

bump

bors r+

Should this not have read /etc/os-release, and branched on the ID field being nixos? That file was introduced exactly as a stable, consistent means to determine distribution identity, version, etc. without needing O(n) detection heuristics.

Should this not have read /etc/os-release, and branched on the ID field being nixos? That file was introduced exactly as a stable, consistent means to determine distribution identity, version, etc. without needing O(n) detection heuristics.

That was a lot easier (even than writing one line parser for os-release or finding one). I needed to know, whether it is NixOS or not, and that was sufficient :shrug:


Kafka Streams create store support

Hi there!
I'm trying to achieve adding stores (in my case global one) via StreamsBuilder. I think adding state store and global store should be handled inside StreamsBuilderFactoryBean. Because those operations do indeed change underlying topology. My first question would be; how can we safely add store to StreamsBuilder before it is created here: https://github.com/spring-projects/spring-kafka/blob/master/spring-kafka/src/main/java/org/springframework/kafka/config/StreamsBuilderFactoryBean.java#L313
I have in mind for usage;
Provide KafkaStreamsStoreCustomizer(s) having customize(StreamsBuilder) and call this before we initialize Topology.
Any comments, suggestions?

I wonder if this is something what can help you from Kafka Streams Binder perspective: https://cloud.spring.io/spring-cloud-static/spring-cloud-stream-binder-kafka/3.0.0.M3/reference/html/spring-cloud-stream-binder-kafka.html#_state_store
Although I won't mind if you provide more context how that KafkaStreamsStoreCustomizer could help us.
Thanks

Well, it seems the kafka-streams setup occurs inside KafkaStreamsStreamListenerSetupMethodOrchestrator. Currently with only spring-kafka and kafka-streams dependencies, I got a custom store working like;
@Configuration
class KafkaStreamsConfiguration {

    @Bean("categoryStreamsBuilderFactoryBean")
    @Primary
    public StreamsBuilderFactoryBean streamsBuilderFactoryBean(@Qualifier(CONFIG_BEAN_NAME) StreamsConfig streamsConfig)
        throws Exception {
      StreamsBuilderFactoryBean factoryBean = new StreamsBuilderFactoryBean(streamsConfig);
      factoryBean.setStateRestoreListener(new CategoryStateRestoreListener());
      factoryBean.afterPropertiesSet();
      return factoryBean;
    }
}

@Configuration
class CategoryKafkaStreamsConfiguration {

    private final StreamsBuilder streamsBuilder;

    private final String categoryTopicName;

    private final String categoryStoreName;

    @PostConstruct
    public void init() {
        StoreBuilder<KeyValueStore<Long, Category>> categoryStoreBuilder =
            Stores.keyValueStoreBuilder(inMemoryKeyValueStore(this.categoryStoreName),
                                        Serdes.Long(), CATEGORY_JSON_SERDE);
        streamsBuilder.addGlobalStore(categoryStoreBuilder,
                                      this.categoryTopicName,
                                      Consumed.with(Serdes.Long(), CATEGORY_JSON_SERDE),
                                      () -> new CategoryUpdateProcessor(this.categoryStoreName));
    }
  }

// and use it somewhere
private ReadOnlyKeyValueStore<Long, Category> getStore() {
    return Optional.ofNullable(this.store).orElseGet(() -> {
      KafkaStreams kafkaStreams = factoryBean.getKafkaStreams();
      this.store = kafkaStreams.store(storeName, QueryableStoreTypes.keyValueStore());
      return store;
    });
}

Is this approach ok? Or can we reduce the boilerplate code here, just like you pointed at spring-cloud-stream-binder project?

@nyilmaz In the latest version of the kafka streams binder in spring cloud stream (which is built upon spring-kafka), you can provide a state store bean and the binder will add that to the topology through the stream builder. Here are some examples. See this also for a StreamListener based approach. In the 2.x versions, the binder provided an annotation to do the same, but the bean based approach is preferable to the annotations based approach. Currently, the binder doesn't provide any hook for adding global state store, but that is certainly an interesting feature to add. When using Spring Kafka, I think the approach you laid out above seems to be in the right direction, although it looks like the customizer you mentioned can be enhanced to address this.

@nyilmaz,
Thank you for your example to go. Yes, it really sounds like a boilerplate code and definitely should be addresses from the Framework perspective for better end-user experience.
@sobychacko,
thank you for your explanation!
Seems for me you already have a solution in the Binder implementaiton.
Wouldn't everybody benefit from having your solution here in Spring Kafka?
I mean contribution is welcome, folks! 😄

@artembilan That sounds like a good idea. I am afraid it might be too late to do so in the current version. Maybe after the 3.0 release of Spring Cloud Stream, we can go through the things in the binder to see what all we can push down to Spring Kafka.

Well, I think that's OK to keep current API in Binder for a while, but would be great to have something similar for the current Spring Kafka 2.3 version. So, we can utilize it in the next Binder version.
However if we can't make it for this Thursday's release, it is OK to push such a task to the next 2.4 version.

@artembilan @sobychacko do you have guys a structure to implement this feature in mind? Or I can provide a blind PR without knowing your requirements.

You provide a PR and we review and everything else whatever would be needed for this work.
Thank you for your proposition!

Hello,
I'm using spring-kafka 2.4.1 and have used KafkaStreamsInfrastructureCustomizer to add a state store to the StreamsBuilder.
This state store is being used by a custom Kafka Transformer that I'm using in a KStream.
The KStream is defined as a bean in a configuration class.
While running the application I get this exception:
TopologyException: Invalid topology: StateStore testStateStore is not added yet.
While debugging I seem to have found the issue.
It seems that the KafkaStreamsInfrastructureCustomizer is only being called while starting the Kafka streams inside: org.springframework.kafka.config.StreamsBuilderFactoryBean#start.
But here the StreamsBuilder is already created and the KStream has already been added.
So while going through the debugger at org.apache.kafka.streams.kstream.internals.InternalStreamsBuilder#buildAndOptimizeTopology(java.util.Properties) I noticed that the StreamsSourceNode was added before the StateStoreNode (due to the Customizer only being called while starting instead of at creation time).
This causes the streams to be added first to the Topology and when that one tries to connect the processor to the state store, it cannot find it. (at: org.apache.kafka.streams.kstream.internals.InternalStreamsBuilder#buildAndOptimizeTopology(java.util.Properties)).
In the Kafka documentation I also read that you should always define the state stores first before creating streams.
Could it be that I'm missing something here? Or is there a chance that this is not supported?
Thanks in advance!

@stijnvanbever Can you open a new issue with a small sample that reproduces this?
I think you are saying that this.infrastructureCustomizer.configureBuilder(builder) needs to be moved to createInstance() so that any streams you build from the builder will already have the customizations applied.


Fix and clarify _clearSuggestions method

Fix #74

Hey, sorry for the late response. I am going to look into this. I looks good to me but I want to quickly test it. I will be merging this soon. Thanks again for your contribution!


data/chinese_word2vec has bugs

the LOAD method in data/chinese_word2vec has bugs. You can try with
from collections import Counter
Counter(word2id.values()).most_common()

and see what will happen. The point is that the words have duplicates.
The correct ways should be
# 2x faster, but much more memory consuming
content = list(filter(lambda l: len(l)==301, [line.strip().split(' ') for line in f.readlines()]))
id2vec = np.array([line[1:] for line in content], dtype=float)
word2id = {line[0]:i for i,line in enumerate(content)}

or
id2vec = []
word2id = {}
for idx, line in enumerate(f.readlines()):
    tmp = line.strip().split(' ')
    word = tmp[0]
    embed = np.array([float(x) for x in tmp[1:]])
    if len(embed) != 300:
        continue
    word2id[word] = idx
    id2vec.append(embed)
    print(f"processed {idx+1} lines", end="\r")
id2vec = np.stack(id2vec)

Similar problem in counter_fit, but I haven’t checked if the words in it have duplicates or not.
The problem is that the indices are shifted immediately after the first occurrence of the duplicates.

Thank you for your feedback, we will fix this issue in the next release.

Fixed in #237


Clean up & Renaming CluwneLib

Removed Robust
Joined SS14.Client.Graphics and SS14.Client.Graphics.CluwneLib Together
CluwneLib is now know as SS14.Client.Graphics
Removed the SFML Audio DLL from SS14.Client.Graphics

Aww, I liked the idea of CluwneLib

Me too Nienhaus...me too :cry:


[SPARK-20319][SQL] Already quoted identifiers are getting wrapped with additional quotes

What changes were proposed in this pull request?
Oracle JDBC Writer uses dialects to quote the field names but when the quotes are explicitly wrapped with the column names, JDBC driver fails to parse columns with two double quotes.
e.g. ""columnName"".
This pr fix this issue.
How was this patch tested?
unit tests
Closes https://github.com/apache/spark/pull/17631

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/4911/
Test PASSed.

Test build #98679 has started for PR 22999 at commit b2af6b3.

Test build #98679 has finished for PR 22999 at commit b2af6b3.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98679/
Test PASSed.

This is only the Oracle dialect issue? How about other dialects?

@wangyum can you keep working on this?

@maropu Could you take this over?


error on heroku app

Was trying to check out how this works and am getting and error.

Yep, noticed (/caused :wink:) earlier by another user. Should be back online now, and a fix to prevent the crash is in the works.

It was back on for a minute, but now it's back down.
On Wed, Sep 30, 2015 at 5:31 PM, Graham Mueller<EMAIL_ADDRESS>wrote:

Yep, noticed (/caused [image: :wink:]) earlier by another user. Should be
back online now, and a fix to prevent the crash is in the works.
—
Reply to this email directly or view it on GitHub
https://github.com/shortstuffsushi/Universal-Link-Validator/issues/1#issuecomment-144548537
.

Give it a shot now. I just pushed the updates that should fix the issue that was causing the crash, and make submitting an app a bit nicer.

Can see you hitting it in real time :) Looks like it's working for you.

it works! and I actually got a valid file this time!
Is the IPA uploader not working?
On Wed, Sep 30, 2015 at 6:09 PM, Graham Mueller<EMAIL_ADDRESS>wrote:

Can see you hitting it in real time :) Looks like it's working for you.
—
Reply to this email directly or view it on GitHub
https://github.com/shortstuffsushi/Universal-Link-Validator/issues/1#issuecomment-144557882
.

As far as I can tell, it is working, just very slowly (this will probably vary depending on upload size). Keep in mind this is running on a free dyno on Heroku. I'll probably migrate it soon enough, as I only ever put it on there to test the deployment process on Heroku.

Question, have you ever had a file that validates but still doesn't open the app? It's driving me crazy trying to figure it out.

Yeah, definitely. This isn't the "end all" solution -- this is just some of the common issues. However, based on what I saw when I scraped your site locally, I think you may be using the wrong JSON format. I just yesterday published a bug w/ Apple, since their docs are now listing a different format than what was originally given. You're using
{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "...",
                "paths": [ "..." ]
            }
        ]
    }
}

while the previous version (the one I've had success with) looks like
{
    "applinks": {
        "apps": [],
        "details": {
            "{{app-identifier}}": {
                "paths": [ "..." ]
            }
       }
   }
}

Note, I could be wrong here, as what you're using is in the official Apple docs now, it's just not what they had presented earlier (at WWDC). You can see that most services that are hosting this file use the older format, though (see bnc.lt, twitter.com, etc).

Tried changing to that format, still validates, still does not open the app
On Thu, Oct 1, 2015 at 5:33 PM, Graham Mueller<EMAIL_ADDRESS>wrote:

Yeah, definitely. This isn't the "end all" solution -- this is just some
of the common issues. However, based on what I saw when I scraped your site
locally, I think you may be using the wrong JSON format. I just yesterday
published a bug w/ Apple, since their docs are now listing a different
format than what was originally given. You're using
{
"applinks": {
"apps": [],
"details": [
{
"appID": "...",
"paths": [ "..." ]
}
]
}
}
while the previous version (the one I've had success with) looks like
{
"applinks": {
"apps": [],
"details": {
"{{app-identifier}}": {
"paths": [ "..." ]
}
}
}
}
Note, I could be wrong here, as what you're using is in the official
Apple docs now, it's just not what they had presented earlier (at WWDC).
You can see that most services that are hosting this file use the older
format, though (see bnc.lt, twitter.com, etc).
—
Reply to this email directly or view it on GitHub
https://github.com/shortstuffsushi/Universal-Link-Validator/issues/1#issuecomment-144856505
.

If you check your device console (not Xcode console, device console), you may be able to see it pinging your server and the associated error code. Note, this only happens after you first install on the device.

I've tried looking at device console but don't see it in there, tried searching for all the common ideas, like apple-app-site-association (note even the word association doesn't appear in the console). any hints what to search for in the console?
I have deleted and re-ran the app multiple times. In the early stages of launching the app I do see (by way of a web debugger/proxy) calls being made to my domain (but they're encrypted so I can't see anything other than that they are response 200.

Hi @DancinDirk -- sorry for the delay in response. Without seeing your project, it's difficult for me to guess what else may be wrong. Would you be interested in spending some actual screensharing time together or something? If so, shoot me an email directly (contact in profile) and we can get something set up. I know this is a huge pain, but perhaps I can use whatever we find to further this project!


[type-checker] More correct way to determine if a given generic parameter of a function cannot be inferred because it is not used

The overall idea is like this:

first, collect the generic params that are explicitly used by types of arguments or return type
then perform a fix-point analysis, where at each step, a set of generic signature’s requirements is checked.

If there is a requirement where one of the involved generic params is already proven to be used, then all other generic params from the same requirement are also considered to be implicitly used in the function signature, because they are used to put a requirement on a generic param that is already known to be used in the function signature.

The fix-point iteration is required to handle chains of dependencies between requirements. See the updated test case for an example.
Fixes rdar://29585211

@swift-ci please test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 0f013330326558d42e4dd510a8e0465840dc73ab
Test requested by - @swiftix

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 0f013330326558d42e4dd510a8e0465840dc73ab
Test requested by - @swiftix

This looks fine, but as I understand it not diagnosing this case just leads to a type checked function that can't be called, but is otherwise harmless. Were you seeing crashes or something?

@slavapestov No, there are no crashes due to this. The function just cannot be called. Plus, @moiseev  was complaining about this, because he has written such functions a couple of times and could not understand why they were not called and a different function with the same name was picked.

Fun. It has found a bunch of places where the generic param cannot be inferred. We haven't noticed it ourselves ;-)

@DougGregor Doug, WDYT? In particular, could you open the Details to see the failures, which are the newly identified places (about a dozen such places), where we had generic parameters that cannot be ever inferred at call-site. Can you confirm that that they are identified correctly and not a bug in my implementation? May be I misunderstood something? E.g. I assumed that knowing T.AssocType is not enough to infer T itself at the call-site.

@swiftix You are correct that knowing T.AssocType is not enough to know T without further constraints.

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please test

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 0f013330326558d42e4dd510a8e0465840dc73ab
Test requested by - @swiftix

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 0f013330326558d42e4dd510a8e0465840dc73ab
Test requested by - @swiftix

@swift-ci please smoke test

@swift-ci please smoke test


Fix build with 'serde' feature + fix warning + update various dependencies

Hey!
Trying to add my little contribution to the porting effort.
If I have the time, I'll have a look into tiles and tilemaps removal after that.
Thanks for your amazing work! :)

Added some logic to maintain a registry for mapping MainEntity to RenderEntity so we can properly remove entities in the render world.
Kind of naive implementation: there may be a more performant way to do that.
FYI, I'm testing with https://github.com/adrien-bon/bevy_ecs_tiled/pull/45 (notably map_reload example)

Thanks for the PR! I'll look at this closer when I get a chance. I'm not sure how much time I'll have over the holiday.

Thanks again for sharing the work.
Working my way through these changes still. I pushed some stuff to my branch which might complicate things here in this PR.
I'd like to understand and be able to test the removal situation a bit better before proceeding there. Wondering if it makes sense to store the mapping on RenderChunkStorage2d and add some methods for removing by main-world entity. Maybe using MainEntity and MainEntityHashMap where applicable. But it may be best to just get something working in a minimal way and tidy up later.

Is it possible with observers or component hooks to retrieve the values of removed entities before they leave the world? Seems like it might be. Could potentially pass along the RenderEntity stored on the entity in the main world through an extract system. Might be just as convoluted.

Rebased the PR on your branch.
I agree with you, I don't like either keeping this RenderEntity / MainEntity mapping around (and I especially don't like how I construct it).
What I tried was to add a query in removal_helper_tilemap() and removal_helper() functions to get the RenderEntity and propagate it instead of the MainEntity. It did not  work: the query never returned anything since I believe the underlying Entity was actually already removed at this point.
I'll give a try to components hooks instead, they are maybe called earlier, before the RenderEntity component is gone.

I just pushed an obsever-based solution here: https://github.com/rparrett/bevy_ecs_tilemap/commit/c06a01f1314a9987b15f3f3fbe2367ddd4c86d0d
Which seems to work at a glance and feels really clean. I only tested by running the remove_tiles example so far though.

More removal than insertions, I like that.
I was doing the same kind of change but using hooks instead of observers, but I prefer your solution.
I believe we can drop this PR in favor of your branch.
Can you please also pick commits for fixing warning / compilation with serde feature ?

I'd prefer to leave the dependency updates for a followup unless there's something critical in there.

Ok: fine for me! :)
Closing this PR, let's continue the discussion over https://github.com/StarArawn/bevy_ecs_tilemap/pull/574


5phinx.5pk.src not compiling

I pasted the code into the code editor, clicked build, ticked allow import, navigated to /root/src/ and tried to save it as 5phinx.5pk and it errors with:
Compiler Error: import_code: File path: /root/src/5phinx.5pk not found.
All the others, kore, drugwars, battleship, etc worked fine.

I got around this for now by using the previous commit of 5phinx, which seems to work for now, although I haven't used 5hell extensively yet.

5phinx was updated and is now working, I'll just close this out. Cheers.


Guess My Number Game

Is your feature request related to a problem? Please describe.

Describe the solution you'd like.
You have to guess the number

It gives hints like this whether the number entered is lower or higher than the number to be guessed.

When we enter the correct number
we can play again using the again button
Describe alternatives you've considered.
.
Add any other context or screenshots about the feature request here.
No response

please assign this issue to me

@Khushi-Mattu  Good Luck 👍🏻


add GTS-headers using CSV file to map filepath with headers and updated downloader functionality

https://github.com/wmo-im/wis2box/issues/680

Changes were made in wis2downloader that prevented the GHA on this PR to complete.
I've decided to add the changes to fix the wis2downloader to this PR and I will close https://github.com/wmo-im/wis2box/pull/693
I will all the suggestions from Dave in PR 693 to this PR

@tomkralidis the downloader CLI commands have been removed


Easing Doesn't Work

When I add easing as a prop I get an error in the console and it crashes.
"react-whirligig.es.js:491 Uncaught TypeError: easing is not a function"
              <Whirligig
                visibleSlides={8}
                preventScroll={true}
                slideClass="slide"
                gutter=".2em"
                easing="easeInQuad"
                ref={(_whirligigInstance) => { whirligig = _whirligigInstance}}
              >
                { slideList }
              </Whirligig>

It also doesn't work on the demo page, https://jane.github.io/react-whirligig/.

The easing prop takes a function, easing: (number) => number. easeInQuad, for example, would be a => a * a. Docs: https://github.com/jane/react-whirligig#easing-number--number--easeoutquint

Ok, got it. Thanks!


Support nil checks in ||

Code:
class Foo
  property :bar
  @bar : Int32?

  def initialize
    @bar = 0
  end
end

a : Foo? = Foo.new
puts "doesn't work!" if a.nil? || a.bar.nil?

Result:
  undefined method 'a' for Nil (compile-time type is (Foo | Nil))

Would it be better if the a.nil? was evaluated and resulted in the a.bar.nil? not erroring, since with || the result short-circuits?

I don't know with what code you are getting that error, the snippet you sent works fine: https://carc.in/#/r/2yqp

Hmmm, I tried to reduce down my code but I guess that didn't work... here is my repository, the error is here:
Error in src/mirrors.cr:17: instantiating 'Mirrors::Window#show()'

test.show
     ^~~~

in src/mirrors/window.cr:26: undefined method 'listener' for Nil (compile-time type is (Mirrors::Display | Nil))

              @display.listener.listen(mouse_pos) unless @display.nil? || @display.listener.nil?

You can't rely on @quux.nil? to short-circuit the right hand expression of || to prevent nil values because there might be a context switch in between which could set the ivar to nil. Therefore you need to assign it to a local variable. Saves an unnecessary lookup, too. See the docs (this page is about #is_a? but essentially the same goes for #nil?).
You can do it with unless (quux == @quux).nil? || quux.bar.nil? though it's probably easier readable if you write if (quux = @quux) && quux.bar.


Update the list of Boilerplates

Transparent design with responsive layout built with Bootstrap.
[Please describe your pull request here]
Checklist

[x] The URL is not already present in the list (check with CTRL/CMD+F in the raw markdown file).
[x] Each description starts with an uppercase character and ends with a period.Example: solc-js - JavaScript bindings for the compiler.
[x] Drop all A / An prefixes at the start of the description.

Hello Philip, unfortunately, I can't accept this PR as I'm trying to keep this repo web3 related and the Light Blue Dashboard you've added is non-web3 resource.


Typed, static endpoints for contracts

The Contract type introduced in #1013 uses strings to identify the set of currently available endpoints (in Step), and when an endpoint is called we try to decode the argument from JSON to the correct type (https://github.com/input-output-hk/plutus/pull/1013/files#diff-0c70358a7c647e9fb38c726c94108085R57). Also, the set of endpoints doesn't stay the same during the lifetime of the contract.
This is a problem because:

We have to guess what the types of the endpoints are, and call them with the correct JSON Value
We don't know the set of all possible endpoints until we run the contract, because some of the endpoints may only appear after a while. But we need to know all the endpoints in advance (for the Plutus Playground).
We can merge (e.g. using both) two contracts that expose the same endpoint with different types

To solve (1) we can change the endpoints field in Step to Map String GraphQLSchema (GraphQLSchema is just a stand-in, it will probably be a type from the morpheus-graphql package, see #1062)
For (2) the way that endpoints are communicated needs to be changed. Instead of using the Step type there should be a different way to make all the endpoints statically known. Possible solutions that I can think of are selective functors from the selective package, or promoting the endpoints to the type level using something like singleton-dict.
To prevent (3) I think we either need type-level information about the endpoints, OR we could modify the endpoints when merging contracts

Aren't you describing something extremely similar to what servant does? i.e. mapping a disjoint set of endpoints to some routes in a typed fashion?

Good point. Maybe what we are looking for is servant minus HTTP plus GraphQL?

FWIW, I think once we move over to graphql, servant will all-but disappear...

Implemented in #1375


[pulsar-broker] disable publish timeout by default

Motivation
Disable publish timeout by default until we figure out right fix for the race condition.

run java8 tests

run java8 tests

run java8 tests

run java8 tests

run java8 tests

run java8 tests

run java8 tests

run java8 tests
run integration tests

@rdhabalia Please take a look unit test, looks like related to changes of this pr.

run java8 tests

@rdhabalia I'd still prefer to keep this off by default, until we are 100% sure the race conditions in the timeout handling are all flushed out.

@rdhabalia I'd still prefer to keep this off by default

Sure, let' disable it for now.

rerun integration tests

rerun java8 tests


MassTransit not reconnecting to RabbitMQ

Is this a bug report?
Yes.
Can you also reproduce the problem with the latest version?
Yes.
Environment

Operating system: Windows
Dotnet version: Both FW and Core

Steps to Reproduce

Start MassTransit service (connected to a rabbit cluster, tried both to connect via a load balancer and via the UseCluster methods)
Shut down rabbit node that application is connected to. Either by stopping the RabbitMQ service or taking it out of the load balancer.
Service does not switch to any other node and starts failing.
Start rabbit node again.
Service does not reconnect.
Restart service.
Service working again.

Expected Behavior
In the optimal case Id expect that MassTransit tries to connect to another node in the cluster when it notices that the node it was connected to is down.
At the very least, I would expect it to reconnect to the original node once it becomes available again.
It does not seem that either happens.
We setup the bus as follows
Bus.Factory.CreateUsingRabbitMq(sbc =>
{
    var host = sbc.Host("rabbitmq://......", h => // We have tried using a load balancer here, but that didnt work either
    {
        h.Username("....");
        h.Password("....");

        //h.UseCluster(x => // We tried UseCluster but that didnt seem to help.
        //{
        //    x.Node("node1 ip");
        //    x.Node("node 2 ip");
        //});
        // h.Heartbeat(1); // We tried setting a heartbeat here, but it didnt seem to help.
    });
);

I have made a small reproduction example in this repository:
https://github.com/wastaz/masstransit-reconnection-reproduction
It uses the latest masstransit version 5.5.2
Today we have tried this repro running against our cluster both

Connecting to a single node directly
Connecting to the cluster via a load balancer
Connecting to the cluster via UseCluster

We can see that the publishing side seems to reconnect when publishing, it may throw an exception on the first (and very rarely second) publish after the rabbit node is up again.
However the consumer side never reconnects, it's dead in the water after we kill the rabbit node.
We also tried this with an older version of MassTransit (5.0) and noticed the same behavior.
Running against a non-clustered rabbit seems to work a little bit better. There I at least saw that it reconnected once even on the consumer side (after adding a heartbeat). However this was not always the case and sometimes it seems like it was just dead in the water there as well (which is weird).
Our rabbit cluster is not setup in any special way. Its basically the default configuration for everything, and MassTransit has has free reign to setup the exchanges/queues/bindings however it likes.

So your problem is this line:
await bus.StartAsync().ConfigureAwait(false);
There is something about how the built-in async Task Main() support works that causes some thread to block. Changing it to bus.Start() resolves the issue.

Wait, what? Are you shitting me? Thats insane. 😹
Im not entirely sure that this resolves the issue fully though. We have seen this in production and there we actually do use a normal int Main() and a sync IBusControl.Start(), although everything is running in a topshelf service. I guess I have to redo all tests with that setup then...

Yeah, it's pretty crazy. But for real, Console.Anything blocks the thread engine somehow.

Any update on this, or can I close it?

The problem still exists in our production code, but I need to figure out a better reproduction for it so we can find what is causing it. Currently on vacation though so thats why Ive been silent. Ill try to post an update when Im back at work in beginning of august.
On 23 July 2019 15:10:27 CEST, Chris Patterson<EMAIL_ADDRESS>wrote:

Any update on this, or can I close it?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/MassTransit/MassTransit/issues/1487#issuecomment-514202692

@phatboyg Ive tried reproducing this again and again with the latest version 5.5.4 and I cant get it to fail. I can reproduce it with 5.0 which seems to be what we use in prod after all, but upgrading to latest version seems to fix it. So Ill close this issue. Sorry for stealing your time with this :)

No worries, glad it's working!


Original files are not removed from MongoDB

This has been tested on the latest version of Ambar using docker.
Log messages in frontend UI show messages such as:
2018-10-25 00:16:07.861: [pipeline] [verbose] [0] original file removed from Ambar for //crawler
However, the files are not actually deleted or removed from mongodb.
The following query shows every file crawled:
db.fs.files.count()

....


Support LIVE-4440 btc fix integration test and cleanup

📝 Description
Btc fix integration test and cleanup. Due to the bitcoin nano app 2.1.0 migration, we had some APDU to check the bitcoin nano app version firstly and call the corresponding bitcoin API. Now we update the min required version for bitcoin app to 2.1.0 and we don't need this check any more on live side.
❓ Context

Impacted projects: ``
Linked resource(s): ``

✅ Checklist

[X] Test coverage
[X] Atomic delivery
[X] No breaking changes

📸 Demo

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

LGTM but snapshot seems to differ a lot, is this expected ?

I just use the -u parameter to update the snapshot. I think it should be OK


Closes #1280 Document the constructor contract change for persistent Serializers

That's a good first iteration. But I believe the whole section about persistent caches needs a rewrite to focus on the 3.1 constructor contract. And then leave a section indicating that the 3.0 contract remains valid for disk caches.

Refactored the content in such a way that the main content is about the latest contracts and there is a backward reference to the older contract.

test this please

Good once rebased