Reducing size

compress storedFields with chunk
use zstd replace snappy
packed int for docNum, offset of docValue
packed int for TF, Loc of posting list
compress chunk of posting list
RunOptimize for roaring.Bitmap

After that,
we can reduce index size from 28 MB -> 9 MB with the same test data.
on a bigger data set,
we can reduce index size from 900 MB -> 160 MB with the same test data.
test data:
https://github.com/zinclabs/zinc/releases/download/v0.1.1/olympics.ndjson.gz

I fixed CI

Lint Error is not my fault, Then golang-ci version is too old, please upgrade Github action.

Lint Error is not my fault, The golang-ci version is too old, not compatible with go 1.18.1.
please upgrade Github action.
i run golang-ci in my local is ok.

Don't worry, we are aware of the issues, have them on the main Bluge project as well: https://github.com/blugelabs/bluge/pull/112
Hopefully I can get that sorted out, and apply it here as well.
I plan to start reviewing this weekend.

Looks good! Is this going to be backwards compatible with existing indexes? or would users need to rebuild their index?

Yes, the MR not compatible old version.

OK, this is going to take longer than I originally thought, but I did an overview today and it all seems reasonable.  A few initial questions/concerns, meanwhile I'll start trying to go feature by feature and be more thorough.

reducing the index size is great, but I'm wondering if on the zinc side you have any performance tests?  It's reasonable to wonder if there are some higher latency or reduced throughput that come with the trade-offs here.
you say "compress storedFields with trunk" and "compress trunk of posting list" and also the code/comments make multiple references to 'trunk'.  what does this word mean in this context? I am not familiar with how you are using it.

Thanks again for the contribution, I will dig deeper into the individual features next.

Sorry, trunk -> chunk, i update me description.

Ah, it is chunk, thanks, that makes sense.

looks good to me, thanks for the great work @hengfeiyang !

fix panic when search memory

OK, so my plan is to do the following tomorrow (please comment if you think there are other steps):

[ ] Tag the existing master branch as v1.0.0 (this is more a formality to have a clean semantic version number to refer to what bluge has been using for the past year)
[ ] Merge this PR
[ ] Tag master as v2.0.0
[ ] Update bluge config.go to support both ice v1 and v2
[ ] Release new version of Bluge, with default to new format

Alright I don't have perms to fix the lint issue on this branch, so I'll clean it up after merging

Alright I don't have perms to fix the lint issue on this branch, so I'll clean it up after merging

i merged ci udpate from master

@hengfeiyang hello, seems like this PR introduced several critical issues in Bluge, see discussion in https://github.com/blugelabs/bluge/issues/123, so the latest version is broken.

@FZambia i create a new pr sync our version in zinc.

Thanks! Do you mean that in zinc you already have a version of Bluge which already solves those panics/errors?

I'm not sure fixed your case, we just fixed some panic. Also i can do more try with your given test code. https://github.com/blugelabs/bluge/issues/123#issuecomment-1171390796

@FZambia I tested you test code, it work well with my PR https://github.com/blugelabs/ice/pull/18


Dask jobqueue Cluster factories to make clusters with correct configurations

Fixes #399

Codecov Report

Merging #413 (4e273de) into main (95e2ddd) will decrease coverage by 0.20%.
Report is 2 commits behind head on main.
The diff coverage is 72.95%.

Confirmed that this works on lilac.

@dotsdl @jthorton could I grab a review here :)

I just need to do some final testing on lilac itself to make sure this is all good.

Confirmed that this works on lilac.


New Features Poll

Thinking about new features, medium term:

You can give 1 vote per each item, i.e. multiple vote

The results are surprising

perhaps export VAD model to C++ or .py
so it wont require any dependencies to install


Folded code regions should not show region marker

Just started using region markers to fold chunks of code (Python). When folded, I see this:

This comes from code like this:
# region Example 1: blah blah blah

The region marker should be hidden when folded, so I just see the comment following it as the "title" of the region.
region is case sensitive so it's unsightly and inflexible, in my opinion.

I thin it's fair to say that this is a duplicate of https://github.com/microsoft/vscode/issues/83458,
depending on https://github.com/microsoft/vscode/issues/70794


user12986714: Watch thetechlearn.com

user12986714 requests the watch of the watch_keyword thetechlearn\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

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

Approved by Makyen in Charcoal HQ


SAA-1988: Fix env typo

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

Project coverage is 84.18%. Comparing base (d2fb518) to head (54d25a9).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1105   +/-   ##
=========================================
  Coverage     84.18%   84.18%
  Complexity     3727     3727
=========================================
  Files           384      384
  Lines         12630    12630
  Branches       1085     1085
=========================================
  Hits          10633    10633
  Misses         1499     1499
  Partials        498      498

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


#2735 Improve DataMemberAttribute Note

Summary
Adds additional guidance regarding the annotation read-only or write-only properties, as per discussion in the associated issue.
Fixes #2735

Hehehe you requested the PR between the branches of your own fork. You need to send it to the main fork. Click this link to do that and close this one. Copy/paste your PR comment from this one to the new one. 🥂
https://github.com/dotnet/dotnet-api-docs/compare/master...TheXenocide:TheXenocide-DataMemberAttribute

Hahaha, thanks. I think that just wound up being a "convenience" click in the GitHub interface from the inline editor.


Remove online requirements from TestSceneTextures

As seen in https://github.com/ppy/osu-framework/pull/4783/checks?check_run_id=3728380421

I can't seem to find the failure from the link provided, did it lose context?

Scroll down in the link. GitHub nuked the failures from the sidebar :/


2 Bugs Ig, one major one minor. (Nailgun Animation & V2 Healthbar Crashing)

1: When I swap from my nailgun to another hotbar slot while firing, the firing animation still happens. Minor, but it would be cool to fix.
2: I spawned the V2 boss fight in my Cybergrind map, and it kept flying off the map, so I went to another map to do the fight. I come back to the Cybergrind map, and it crashes the game. I think it has something to do with V2 still doing the leaving animation from falling into the void, and the healthbar was a variable that the game depended on, because it came out with this error: (image attached)

while there's no attached image, I found the crash and fixed it interally; it'll be part of the next update


heap: adding way to upload from mobile

Fixes LAND-912 by adding a custom placeholder component to the heap editor which gives an upload button.
https://github.com/tloncorp/landscape-apps/assets/5466421/7f91c44d-616f-44b5-80e2-5144ec1e43cb

Let's get it out!


Searchable #tags for rooms

It would be nice if we could add searchable tags to a room, to make them easier to find.

YES.  This will happen.

Although having thought about it, it might not!! Keyword search might be better - room admins can add keywords that make their rooms appear in searches.  Basically same as tags, but not visible (so not cluttering UI). Will keep thinking about this!

I agree, I wasn't really on about visible keywords anyway, but more a keyword field like you say.


tortoise: not using base ballots with abstain votes for empty layers

closes: https://github.com/spacemeshos/go-spacemesh/issues/3446
to encode votes tortoise picks base ballot and encodes voting diff (support, against for blocks, abstain for layers) explicitly. if hare didn't terminate with empty layer immediately then tortoise will vote abstain for that layer within zdist. unless it receives certificate and updates local opinion it should vote against that layer after zdist layers passed.
it is obvious that we can't encode against votes for an empty layer explicitly, because it has no blocks and there is nothing to add to the diff. therefore we should not pick base ballot that votes abstain for a layer if it is empty and already terminated by hare.
this change also updates hare to not output empty block in case of failures, as discussed in the issue above.

bors try

bors try

bors try

bors try

@dshulyak instead of not choosing a base ballot that abstains, does it make sense to create vote diff that support EmptyBlockID instead?

instead of not choosing a base ballot that abstains, does it make sense to create vote diff that support EmptyBlockID instead?

@countvonzero can you elaborate? empty block id can't be used as it not sufficient to identify which layer is empty. there is an option to add one more slice, empty with layer ids that are voted as empty. it makes encoding shorter, but increases complexity and ambiguity

instead of not choosing a base ballot that abstains, does it make sense to create vote diff that support EmptyBlockID instead?

@countvonzero can you elaborate? empty block id can't be used as it not sufficient to identify which layer is empty. there is an option to add one more slice, empty with layer ids that are voted as empty. it makes encoding shorter, but increases complexity and ambiguity

you are right. there is no layer attached to just a block id.

bors merge

bors merge


Remove test IPs from sample project.

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


Fix openssl-dgst.html hep file

Fix openssl-dgst.html (list -digest-algorithms, NOT -digest-commands),
move option -list just after the related option -digest,
fix HTML formatting of section 'Examples' by adding missing newlines
and add 2 examples variant to clarify syntax of the command openssl dgst|digest [-digest] ...
[x] documentation is updated

This pull request is ready to merge

Merged to master and 3.0 branches after rewording and reformatting the commit message slightly. Thank you for your contribution.


Switch to zbus

Using zbus instead of the dbus crate would make it possible to use this crate without a build and runtime dependency on libdbus.
https://crates.io/crates/zbus

Also would allow for async

I just did an zbus+async port so I could stop linking libdbus: https://github.com/talonvoice/ksni/commits/zbus
This is a substantial rewrite and the api / send+sync traits changed slightly.

Also would love to see an async-capable version!

My port is async-capable.

My port is async-capable.

Mind providing a working example with async API in your fork? As the API changes seems to be pretty significant.

As the API changes seems to be pretty significant

I almost completely rewrote the ksni internals, but the public api is almost identical.
This is all that changed for me when doing a synchronous spawn:
-        let tray = ksni::TrayService::new(service);
-        let handle = tray.handle();
-        tray.spawn();
+        let handle = ksni::spawn(service)
+            .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;

I didn't plumb up an equivalent to the sync fn spawn() for async spawning, but the run_async function is public and using it directly would look about like this:
let (client_tx, client_rx) = tokio::sync::mpsc::unbounded_channel::<ClientRequest<T>>();
run_async(tray, client_rx).await?;
Ok(Handle { sender: client_tx })

Hi! May I ask what the state of this is? @lunixbochs would you say that your fork is useable for real (OSS) projects? Is it possible to help here?

I use my fork in Talon with real world users.

hm... may I ask why you don't create a PR request with your zbus changes @lunixbochs ?

Read up-thread:

This is a substantial rewrite and the api / send+sync traits changed slightly, so I'm unsure about merging it as is

Hm... would it make sense to create a new "project" with your fork?
Your example doesn't work sadly on my machine :( I'm using stalonetray as a testing system tray and after running cargo run --example example on your fork, nothing changed. May I ask if you have an idea what may be the reason?

stalonetray might not support SNI. You can try running snixembed

Yay, starting stalonetray and snixembed did it. Thank you! :)

I'd prefer to not hard fork the dependency. I'd like to hear @iovxw's thoughts on merging my changes.

I'd prefer to not hard fork the dependency. I'd like to hear @iovxw's thoughts on merging my changes.

Would be nice if there will be a clear answer to this because my friend and I need this for our project and we need gtk4 for this :)

Actually... I finished the port a few months ago, but didn't have time to test it (I suffered from CVS), and worse, I lost the hard disk somewhere at home...

I'd prefer to not hard fork the dependency. I'd like to hear @iovxw's thoughts on merging my changes.

The mpsc layer doesn't seem necessary, let me try to find the hard drive

I lost the hard disk somewhere at home...

@iovxw may I ask if you've found it? :D

@lunixbochs may I ask if it's possible to have a blocking variant of starting the tray? Because I'm trying to invoke a notification with notify-rust inside the activate function of the ksni::Tray implementation.

@lunixbochs may I ask why you don't have a Cargo.lock in your zbus branch?

@lunixbochs
may I ask if you could bump the zbus dependency of ksni? Because I'm getting
    Updating crates.io index
error: failed to select a version for `zvariant_utils`.
    ... required by package `zbus_macros v3.14.1`
    ... which satisfies dependency `zbus_macros = "=3.14.1"` of package `zbus v3.14.1`
    ... which satisfies dependency `zbus = "^3.14.1"` of package `ksni v0.2.1 (https://github.com/talonvoice/ksni/?branch=zbus#05abf939)`
    ... which satisfies git dependency `ksni` (locked to 0.2.1) of package `flakeshot v0.1.0 (/home/tornax/projects/flakeshot)`
versions that meet the requirements `=1.0.1` are: 1.0.1

all possible versions conflict with previously selected packages.

  previously selected package `zvariant_utils v1.1.0`
    ... which satisfies dependency `zvariant_utils = "=1.1.0"` of package `zbus_macros v4.0.0`
    ... which satisfies dependency `zbus_macros = "=4.0.0"` of package `zbus v4.0.0`
    ... which satisfies dependency `zbus = "^4"` of package `flakeshot v0.1.0 (/home/tornax/projects/flakeshot)`

failed to select a version for `zvariant_utils` which could resolve this conflict

Or do you prefer a PR?

That's no lock in the fork because there's no lock in the upstream repo. Personally I'm just relying on the lock file in my app.
There's a pattern in this thread of people asking me for support on my branch. If I want to provide that kind of support, I will hard fork ksni. Right now, what you see in my repo is what you get. I do actively use my ksni fork in my production app and you can probably expect me to make changes needed by my app and fix bugs reported by my users, but you are not my users and you should not approach me for support in your use of my fork at this time.
I would prefer to keep this thread about merging the fork.

Fair, I'm sorry for the noise!

Hey! Are there any plans to go forward with zbus in the main branch in the foreseeable future?

Friendly ping, I'm also looking forward to using zbus version, but don't want to depend on a custom branch that is not guaranteed to exist long-term.


test: fix L2 standard bridge interop tests

Merged at https://github.com/ethereum-optimism/optimism/pull/11668


fix(host-image): update build flags

What this PR does / why we need it:

Does this PR need to be backport to the previous release branch?:

release/3.9
/area build util
/cc @swordqiu @ioito

/lgtm


UnicodeDecodeError with default ascii encoding

I have a "μ" in my part description and this caused KiField to fail with following error:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 14: ordinal not in range(128)

I fixed this by adding following lines in kifield.py:

reload(sys)
sys.setdefaultencoding('utf8')

I understand the setdefaultencoding() usage is not encouraged and the reload of sys is a workaround. But in the end it worked for me. See following link: http://stackoverflow.com/questions/3828723/why-should-we-not-use-sys-setdefaultencodingutf-8-in-a-py-script
I use python 2.7 and KiField 0.1.1 on OS X 10.11.3

I hit this problem too from using µ symbols in the schematic. While it looks like the default format for the schematic files is utf8, I at least got round the problem by running:
grep --color='auto' -P -n "[\x80-\xFF]" my_schematic.sch
(source)
And replacing all the µ symbols with u

Seems like you could also use Python 3 to avoid this error for the time being.


_error in initialValues

Hi there,
apologies for this, but I am new to redux-form and redux in general and I don’t understand what I am doing wrong. I am trying to pass the result of a server-side error to a component wrapped in a redux-form, through initialValues. My reduxForm({}) looks like this:
export default reduxForm({
    form: 'user',
    fields
  },
  state => ({ initialValues: state.userReducer.user}),
  userActions.loadUser()
 )(UserForm);

My state.userReducer is composed by an object user and a string error, that gets returned in case the action fails. I have tried passing the error down via an extra field on the user called _error, but it doesn’t work.
This is what I usually do in a redux component (not a redux-form):
function mapStateToProps(state) {
  const { users, error } = state.userReducer;
  return { users, error };
}
export default connect(mapStateToProps)(Users);

So that, in case the action LOAD_USERS_FAILURE —> reducer returns an error (for example a 500 or a 401), I will pass it down to my component via this.props.error.
I have tried something similar (see above), but I have no idea how to retrieve it in the render(). Thank you.

Not sure if it answers your question. But it's related to this one
https://github.com/erikras/redux-form/issues/163
You can still do the way you did it before
function mapStateToProps(state) {
  const { users, error } = state.userReducer;
  return { users, error };
}

UserForm = reduxForm({
    form: 'user',
    fields
 })(UserForm);

export default connect(mapStateToProps)(UserForm);

now you should be able to access this.props.error which was imported from state.userReducer

@abachuk I somehow was not able to access this.props.error in the form. However, in the end I have realised I don't need to pass it to the form itself, but to the component that is wrapping the form.
Thanks!! I will close this


network details - display total value locked

What would you like to be added:
Display total value locked in Network Detail Page. Same as what we have on DeFiScan:

Why is this needed:

Will be adding this on DEX so not needed anymore


Syntax error trips up the compiler

Note that Buggy lacks () after it. If you remove the causeBug function, you will get a proper error message about that. However, if you leave causeBug, you get a compiler bug report.
class Buggy {}

Anything causeBug(Buggy bugsy) => null;

This is 1.2.2 on OS X.

Thanks.

I think this is a duplicate of #6164.

Indeed. Closing as dupe.


Use compilations instead of multiple mpp targets for java codegen tests

Inspired from https://youtrack.jetbrains.com/issue/KT-61007
This introduces an intermediate kotlinCodegenTest source set that is common to everything except javaCodegen. Our sourceSet graph for tests is now like this:

Build scans

Before

apollo-kotlin https://ge.apollographql.com/s/ezzplv3ttifbw
apollo-tests https://ge.apollographql.com/s/oat2hvd4xf2ge

After

apollo-kotlin https://ge.apollographql.com/s/iyaarjqicguka
apollo-tests https://ge.apollographql.com/s/5npnxfyyupr74

There are more native tasks executed here, will dig into it

We used to add targets for both macosArm64 and macosX64 while tests were running only on one of those (but compilation can be run for both). By only adding the host target, we should save a bit of time.

1131 tests executed
macosX64 tests are executed here
Merging this.


Avoid warnings about POD_NAMESPACE not set when they are irrelevant

Fixes #924

/test-all

/test-windows-conformance
/test-windows-networkpolicy

Independent failure in jenkins-windows-networkpolicy , merging now

/test-e2e

/test-e2e


Ralof Conversation Now Broken at Korvanjund for Jagged Crown Quest for Stormcloaks

Normally, if the player opts to meet with Galmar as instructed rather than charging in and engaging the Imperials, Ralof forcibly starts a conversation with the player as they try to approach Galmar. Now, that conversation seems impossible to activate, even if intentionally trying. Version 1.0.7a.

also do are you another tester? if so welcome to the team :D

I have not tried this portion on the imperial side, no.
If downloading the mod and posting here makes me a tester, then yes and thank you. =)
Of course, the ugly third possibility is that it's simply inconsistent. I didn't repeat the process to see if it kept happening.
And the fourth is the ubiquitous threat of conflicts. I'd be happy to check anything specific I should in SSEEdit for conflicts. I couldn't find anything at a glance, though. Ralof himself seems to match except for appearance data.

And the fourth is the ubiquitous threat of conflicts. I'd be happy to check anything specific I should in SSEEdit for conflicts. I couldn't find anything at a glance, though. Ralof himself seems to match except for appearance data.

i doubt it is , unless you have a mod that specifically targets that quest or ralof/hadvar themselves i doubt a conflict is likely but it is always good to check

Thanks @Eve-Knight for reporting. Sorry for the delayed response. Work has been crazy this week. I found the dialogue record [INFO:000E6C33]. CWO does not change this record or affect CW02A or CW02B. Also, as @LABWAZHERE  reported, I made some adjustments but that's only to the CWAttackCity quest and it should have no bearing on the Jagged Crown. I do see in my load order that this record is overridden by Alternate Start Live Another Life. I will try to take a look tonight to see if I can reproduce.

My pleasure. Thank you for all your efforts on the mod, too.
I'm actually not even using any alternate start. Makes sense regarding Live Another Life, though; it removes references to Helgen since you aren't there, and knowing Ralof already would be such a reference.
That still leaves us no closer to knowing what caused this, of course.

It sounds like you were able to get around this issue. What were you able to do?
I tried to replicate last night but I was unable.

I was, yes. The issue was never blocking as the Jagged Crown quest doesn't really rely on talking to Ralof. It's just extra flavor. Galmar acted normally and charged in as usual after his speech.

i'd just like to add i could not replicate this, in my stormcloak save pre  jagged crown he ran up to me

it is also interesting to point out that (even in base game) no matter who you choose to go with (hadvar or ralof) both of them will appear id you join opposing sides (ralof if you went with hadvar and joined stormcloaks and hadvar if you went with ralof and joined the legion)

I going to close this issue but I will see if I can do more digging sometime to see if this is a general Skyrim bug and how they resolved.


Does this make any big difference in performance and load issue?

Just today, i made a composer update to all latest version of ratchet and reactphp files.

Do this make any big impact in the performance that i cant achieve for all these days?
All these days, i thought updating the core files will cause some serious issue in the php codes which is done by other developer.
But after the update in my test server "the chat works good and normal". Just want to make sure, does this improve the chat performance? with multiple chat connection at a time ( concurrent).

It should actually improve performance since several of those ReactPHP packages contain performance improvements.


Delete snapshot only after validation

Bug: HCPCFS-2885

The test validate-service-fabrik-advanced: test_cross_space_restore/test_validate_cross_space_restore is still failing.

Pull Request Test Coverage Report for Build 4907

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 89.135%

Totals

Change from base Build 4868:
0.0%

Covered Lines:
9406

Relevant Lines:
10181

💛  - Coveralls


[5.8] Migrator Event before detecting migrations

Allows for providing paths on runtime.
This has been discussed/talked about in #28342 and #29503.
Problem / Situation
I've been building a system that uses different databases and different sets of migrations. It's been quite a challenge to make some things work, but the migrations have been the biggest issue. The migrations for databases other than the main database are quite easily loaded as we'll get the paths before, resolve the migrator, and then pass our paths to it.
However, when wanting to run things on the main database (simply by using artisan migrate), you won't have any way to adjust the paths (or migrations) on the fly. Whenever the Migrator gets resolved (which is before a lot of events like CommandStarting), it already has all its paths and only paths provided by the --path option will be taken into account.
You don't always want to provide paths upfront through the command line, but want to adjust them later on. This PR allows you to do that by providing events to listen to where you can adjust the most important variables for the migrator.
This helps with a few things:

Systems that use different databases (with different sets of migrations)
Support for other Design Patterns (like DDD)

PS: Hope I provided enough information, always open for discussion, additions, changes. Thanks for all the work you guys do on Laravel!

An event modifying a pass-by-ref array of paths in some random part of the codebase just doesn't sound like clean architecture to me.


App crash when i click textinput then i click btn to call authorize function

This is err:

Help me please!

same here +1

I'm also seeing this crasher. It appears to occur if the textInput has been given focus and has a onChangeText callback set.

one more note: I met this issues only in IOS, Android work fine

@winglonelion are you using the version published in npm? I noticed that a PR to fix #188 was accepted, and it might be the resolution for this issue. I’m trying out the master branch today to confirm:
$ npm i fullstackreact/react-native-oauth#master --save

Note that you'll still need to patch the swapped if statement in OAuthManager.m (I think there are at least two open PRs for that, including #157)

In my case, app only crash when vitual Keyboard exist: And i think it has been mention in React Native release Note 0.52.0

Fix a crash when keyboard is visible and bridge reload happens on iOS (d9c6585 by @fromcelticpark) .

I have not try RN 0.52.0 yet but i think it is my problem.

I've submitted #207 with a fix for this. Basically, the viewController needs to be presented on the main thread to prevent the crash once the keyboard has been displayed (such as when a TextInput component has been given focus).

@stonehippo , @stonehippo.
I will try this and report you soon


product_id: a1er7lposf6ctd0b unknown error occurred when attempting to add device

Describe the bug
"Unknown error occurred" while trying to add a device. This is a wifi door sensor
Model D06
'product_id': 'a1er7lposf6ctd0b'
https://www.amazon.com/gp/product/B0CG5HB1B6
Attempting to add via cloud data pull; it finds the device id and key
To Reproduce
At first I thought it was an issue with getting the IP address. Issue occurred while manually typing the IP address.
Able to have Tuya Local find the IP address if playing with the contact in real time while its searching for the node.
Not an IP issue
Expected behavior
Turned on debugging and sorted through the logs. There seem to be some programming issues, so I figured id share.
Additional context
Here are going to be some santized'ish sections of the log that appear to be related to tuya-local
2024-09-23 14:48:42.125 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Found: {'ip': 'XX.XX.XX.226', 'version': '3.4', 'id': 'SANITIZED', 'product_id': 'a1er7lposf6ctd0b', 'data': {'ip': 'XX.XX.XX.226', 'gwId': 'SANITIZED', 'active': 2, 'encrypt': True, 'productKey': 'SANITIZED', 'version': '3.4', 'token': True, 'wf_cfg': True, 'name': '', 'key': '', 'mac': '', 'id': 'eb73a3fe1eaace162fh56w', 'ability': 0, 'dev_type': 'default', 'origin': 'broadcast'}}

Tuya Local Debug attached as text file
Tuya Cloud Device Diagnostic is attached as text file

I am able to successfully load and use Meso wall switches 2 & 3 Buttons with Tuya Local

**If the bug involves a device, then please include device diagnostics from
unable to add the contact sensor to get to this stage where it is loaded in home assistant. i can provided the Tuya (cloud) version if that helps?
Please check if there are messages from Tuya Local in the Home
Assistant log (Settings / System / Logs), and include those too.
these logs are provided in an attached text file.
If applicable, add screenshots to help explain your problem.
please let me know if there are any tests or other datapoints you would like provided.
tuya local debug mode while failure occured.txt
Device Diagnostic of Tuya Cloud that failed to add to Tuya Local.txt

Battery powered WiFi devices cannot be supported locally.

That’s a pain. But I understand. Thanks for the great app/plugin for HA
From: Jason Rumney @.>
Sent: Monday, September 23, 2024 3:45 PM
To: make-all/tuya-local @.>
Cc: Greg Raplee @.>; Author @.>
Subject: Re: [make-all/tuya-local] product_id: a1er7lposf6ctd0b unknown error occurred when attempting to add device (Issue #2330)
Battery powered WiFi devices cannot be supported locally.
—
Reply to this email directly, view it on GitHubhttps://github.com/make-all/tuya-local/issues/2330#issuecomment-2369675612, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZFQJYO72EMZDFZQ4BILPXLZYCKVLAVCNFSM6AAAAABOXATSXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRZGY3TKNRRGI.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>


Bump Steam related libraries

Something went wrong here, the bot does not detect incoming trade offer, and also does not process accepted trade offer (created via chat)


[Twig][Live] null attribute values render without value (ie autofocus)

Q
A

Bug fix?
yes

New feature?
no

Tickets
n/a

License
MIT

Ref: https://github.com/symfony/ux/pull/220#issuecomment-1027969740
A null attribute value renders without the value:
{# component template: #}
<input {{ attributes }} />

{# render: #}
{{ component('input_component', { type: 'text', value: '', autofocus: null }) }}

{# renders as: #}
<input type="text" value="" autofocus />

TODO:

[x] null vs '' (https://github.com/symfony/ux/pull/220#issuecomment-1028111184)
[x] attributes without a value like autofocus (https://github.com/symfony/ux/pull/220#issuecomment-1028002356)
[x] LiveComponent dehydration/hydration issues (null values are lost during re-render) - solved in #264

Pending a final review, I believe this ready to go.
I found a bug in the CI (build-packages.php wasn't called correctly). I fixed in this PR but can move to another if desired.

Thanks Kevin!


incorrect reporting of invalid @grant

Hi. First off, I should ask if this is the ruleset used by the Tampermonkey editor. I assume it is but I can't be sure.
If it is, it seems to be falsely reporting an invalid @grant for me:
 (screenshot)
My script uses GM.xmlhttpRequest (reported invalid) in the grant section and in the actual code, and it works just fine in TM.
I did a little test and the linting in the TM editor reports the following:

GM.xmlhttpRequest ❌
GM_xmlhttpRequest ✔
GM.xmlHttpRequest ✔
GM_xmlHttpRequest ❌

I'm trying to compare the greasemonkey and tampermonkey docs on this but they each describe either GM.x or GM_x style only so I can't compare them directly.
Maybe I should turn the question around and ask what's the accepted source of manager-agnostic truth on this?
Thanks

Having said that, I'm testing my script again just to be sure, and while it worked fine before, now it suddenly doesn't anymore. I must've made a mistaken change somewhere to the permission/function name and not even realized. Gonna close this, sorry for the noise.

Hi. First off, I should ask if this is the ruleset used by the Tampermonkey editor. I assume it is but I can't be sure.

Yes, the Tampermonkey editor does use this ruleset for validation, however the Tampermonkey implementation is sometimes a little off or might use an older version of this plugin.

I did a little test and the linting in the TM editor reports the following:

GM.xmlhttpRequest ❌
GM_xmlhttpRequest ✔
GM.xmlHttpRequest ✔
GM_xmlHttpRequest ❌

I forgot what the exact reason was, pretty sure it was related to naming in userscript manager implementations, but the GM. always has an uppercase H while the GM_ always has a lowercase h.

Having said that, I'm testing my script again just to be sure, and while it worked fine before, now it suddenly doesn't anymore. I must've made a mistaken change somewhere to the permission/function name and not even realized. Gonna close this, sorry for the noise.

No worries!

Found a source for the change earlier: https://www.greasespot.net/2017/09/greasemonkey-4-for-script-authors.html


Header not entirely on camel case

Hello. I've read that the headers param from the Respose object ignore case and return a camel case version of them. What about cases like Django that usesX-CSRF-Token. Can we bypass it for specific headers?

I've read that the headers param from the Respose object
ignore case and return a camel case version of them.

AFAICT, locust doesn't mess with the response headers... Maybe something is done by requests lib (or one of its dependencies)?  Where are you seeing this?
FWIW,  header field names are case-insensitive according to the HTTP spec: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

@cgoldberg You're right. I just read that really fast and didn't got the real meaning. Locust is not readjusting header's name case.


Mv 288 active speaker detection POC

This feature only introduces the speaking indicator in the top left corner. The implementation is the most simple usage of the api provided by the membrane webrtc js regarding the VAD feature. It does not include:

the blue highlight of the tile
mitigation  for the "roughness" of the provided API (that is delay of displaying or hiding the icon or leaving the highlight for longer) as discussed with @mickel8
changing the position of the currently speaking person on the list of displayed tiles
local user activity detection

I

While the frontend code looks OK, the backend side of VADs is not suitable for going into production. To not drop the code, I think you may comment out the VAD extension in room.ex to keep it disabled but possible to enable it in development.

I've done as suggested in this comment.
Additionally I've made an experimental branch on membrane_rtp_plugin that changes the parameters of the algorithm. In future it can be used to test whether or not the algorithm for VAD is suitable but needs change of parameters or needs to be change entirely.


NO_COLOR should be documented

https://github.com/museun/whatfeatures/blob/bf2b05886febc5b038fcf3c853ee9d19501dedeb/src/bin/main.rs#L148-L151
from no-color.org:

All command-line software which outputs text with ANSI color added should check for the presence of a NO_COLOR environment variable that, when present (regardless of its value), prevents the addition of ANSI color.

closed with v0.7.1


fix cache inference mode

Enable adapter with TP>1 would leads to failure in place copy.
@zhulinJulia24

Enable adapter with TP>1 would leads to failure in place copy.
@zhulinJulia24

so sorry adaptor args is not covered yet. Let me try it.


missing coma in example

sorry for opening 2 in a row, is just that I started using it right now haha! great job!

Its all good, working examples are important 👍
Thanks for your input, hope you find plugin useful :)


How can I change the segment programatically?

I'm trying to find out how to change the the segment programatically?

public func setSelectedIndex(selectedIndex: Int, animated: Bool)


[Sampler] Vectorized sampler

Ready for initial review.
Using the modified throughput benchmark with python benchmarks/benchmark_throughput.py --backend vllm --dataset "./ShareGPT_V3_unfiltered_cleaned_split.json" --model meta-llama/Llama-2-13b-chat-hf --tokenizer meta-llama/Llama-2-13b-chat-hf --num-prompts=1000 and one A100-80, I get the following results:
baseline: Throughput: 3.70 requests/s, 1771.58 tokens/s
this PR: Throughput: 4.77 requests/s, 2280.04 tokens/s

which would be a 1.28x improvement.
The argmax outputs between this PR and master match. Random sampling is different, but that is expected (the text still makes sense and doesn't differ much from master).

Updated benchmark to also apply top_p.
baseline: Throughput: 3.58 requests/s, 1710.60 tokens/s
PR: Throughput: 4.69 requests/s, 2243.01 tokens/s

1.31x improvement

I have also compared outputs of the benchmark on the ShareGPT dataset, and they are identical between master and this PR (meaning that there is no impact on correctness).

Using modified benchmark and llama-2-7b on A100-80:
baseline: Throughput: 4.67 requests/s, 2233.30 tokens/s
PR: Throughput: 6.84 requests/s, 3272.51 tokens/s

x1.47 improvement
As expected, the improvement is bigger the smaller the model (and thus more time is spent in sampling).

benchmark llama70-b with A100-40 * 4, 512 context length and 128 generation, 500 requests
baseline: dur_s 133.22 tokens_per_s 1807.24 qps 3.75 successful_responses 500
PR: dur_s 114.26 tokens_per_s 2108.07 qps 4.38 successful_responses 500

@WoosukKwon updated, ptal

lgtm

@Yard1 I got an error when running examples/llm_engine_example.py:
File "/home/workspace/vllm/vllm/model_executor/layers/sampler.py", line 98, in forward
    assert len(temperatures) == non_greedy_logits.shape[0]
AssertionError

@WoosukKwon Good catch! Just pushed a fix.

@WoosukKwon Thanks for the feedback, let me see if I can reduce unnecessary changes.
As for the compelxity, the current code is optimized for memory and speed. I am not sure if it's possible to reduce the complexity without impacting performance. I am happy to add more comments and change the code structure for more readability.

Closed in favor of https://github.com/vllm-project/vllm/pull/1048


Don't hardcode Go versions into the tool

Otherwise, users have to reinstall a new version of govalidate to be able to see if they are using a supported Go version.

Closed via 3506f722c96df3637a2ce0fd2b1c282c721f967c.


isRequired validator doesn't support numeric values

If we have TCFormFields.TextInput component with type="number" and we use isRequired validate rule like validations={ isRequired: true }, then on rendering such component with value which is numerical there would be error in console:
index.js?15f1:23 Uncaught TypeError: value.trim is not a function
    at Object.eval [as isRequired]

The reason for this is code in this file https://github.com/appirio-tech/react-components/blob/feature/connectv2/components/Formsy/index.js. It applies trim() method to the value without prior checking if value is a string.

Good catch.

@maxceem are you fixing it along with your other changes or should we mark it for our next bug bash?

Fixed via PR https://github.com/appirio-tech/react-components/pull/329
Tested it locally works good.


added preliminary info to website

added about and schedule. testing pull request system with Jeff

Thanks very much @jennytnichols! 👍


typos redo CONTRIBUTING.md

Description
Fixed typographical errors in the CONTRIBUTING.md file:

Corrected "its" to "it's" where appropriate.
Adjusted "it's look" to "it's looks" for grammatical accuracy.

This got superseded by https://github.com/epage/_rust/commit/b2aecee7155c151f9b443db45957bf5075d5085d which will be merged into this repo the next time I do a template update


Thalos: simple and secure approach to file storage in untrusted environments

Thanks for submitting your project to be featured in the Open Leadership Zone at MozFest 2017 :sparkles:
This is open to any project in Mozilla Open Leaders round 4 -- even if you're not coming to MozFest. This process ensures that you're following open practices and will help set you up for a sustained contributor community afterwards. If you have any questions, feel free to reach out to @acabunoc or ask questions in our chat room.
Open Project Checklist :clipboard:
Your project must complete the following to be a featured on Mozilla Pulse and the Open Leadership Zone at MozFest 2017. As you complete each exercise, check off the box and comment with a link to your completed resource. This template repository is here to help you if you get stuck!

[x] Complete Open Leadership 101
[x] Provide a GitHub repository for work and discussion on your project in a comment

new to GitHub?  Here's a step-by-step guide on using the #mozfest template

[x] Create file: README.md in your project repository. This file should help newcomers understand what your project is, why it's important, and kinds of help you're looking for.
[x] Create file: LICENSE to give your project an open license, allowing for sharing and remixing.
[x] Create file: CONTRIBUTING.md so others know how they can contribute. If you'd like, you can remix this template
[x] Create file: CODE_OF_CONDUCT.md. This can be the Mozilla Community Participation Guidelines or a code of conduct of your choice
[x] Turn on your Issue Tracker and create issues to describe each task that you need help with and how a contributor can get started on that task. If you're participating in Hacktoberfest, Create a label called hacktoberfest and apply it to your issues.

Ready to be featured :tada:

[x] Fill out this form to submit your project to Mozilla Pulse. Add the tag open leadership zone.
[x] Leave a comment on this issue with the text This is ready for the Open Leadership Zone. @acabunoc will review this issue. If accepted, your project will be approved on Mozilla Pulse and featured in the Open Leadership Zone.

If you get stuck at any point, feel free to look at the project templates or reach out to your mentor or @acabunoc. We're here to help you through this process.

This is ready for the Open Leadership Zone.
Or it should, I guess!
Please notice me if anything is missing :)

Thanks @ecleipteon! I can add it on my end :)

Thanks @acabunoc :)

Your project is featured!
https://www.mozillapulse.org/entry/457 🎉

Thank you a lot!


Add SPDX github action to all repositories

An automated check to see of the SPDX indentifiers are used.
https://spdx.dev/ids/

This is done


Give me a way to bring in the "core" bicep files

I'd love to have a way of doing something like azd init --core to lay down all the core infrastructure files when i set up a new AZD template. I typically start with my code, then i azd init, then i go pull from other places. it'd be nifty if there was either a switch on init or an additional to command to drop in all the core files.

We'd discussed adding core/ to the Bicep starter template. Might be worth doing that while we sort out the whole registry thing @ellismg.

As a workaround you can do azd init -t jongio/azd-starter-bicep-core, which is updated with latest from azure-dev/main

Pulling this into next sprint since @aaronpowell was also requesting core/default ones to be available as part of starters.


Onstream not fire

i install demo follow the instructions
Installation Guide use socket.io.
But it works unstable.
i run demo Custom+Socket+Event using RTCMultiConnection. or Video Conferencing (MANY_TO_MANY)
A open new room and B  join and B see A but A not see B,  seem even onstream not fire,
I tested 10 times and got about 3 times errors as above.
Thank you.

For me, the event doens't fire when joining with Android Phone.

I am facing same issue. I am using same library in 2 different pages. just my client.js is different. all code same still in one page onstream working in one page and in other page it is not working. I am able to get video and audio but my UI is different. means getMediaElement not working.
Any one can help me Please? Its very urgent.
Thanks in advance.


False positive for SA1010

The following code triggers SA1010 with "Opening square brackets should not be preceded by a space", even though it shouldn't trigger.
    public static bool IsExtended(ReadOnlySpan<char> path)
    {
        return path is ['\\', _, '?', '\\', ..] && (path[1] == '\\' || path[1] == '?');
    }

Duplicate of #3503


version: bump to 4.1.0

Bump the version from 4.0.55 to 4.1.0 and add the changelog entry.

Test PR / branch for version bumps.


[Tool] Migrate tests to build in hatch test.

Hatch 1.10+ supports builtin test by hatch-test env. This has several pros compared to our own implementation of tests as scripts. Details in the task.
We keep the current test scripts, so they can still be used, e.g., by docker-hatch. We may want to deprecated it some time in the future.
FIX=b/353580550
Tested

Test all python versions: hatch test --all
Test specific python versions: hatch test -i py=3.11
Integration tests: hatch test integration_tests -py 3.7

Do you mean these scripts?
https://screenshot.googleplex.com/RDAsjfEjQ8SoZq2

Do you mean these scripts? https://screenshot.googleplex.com/RDAsjfEjQ8SoZq2

Yes.

Thanks for working on this!
Can you also make sure to update our cicd pipeline to use the new commands:
https://github.com/Kaggle/kagglehub/blob/c0de979194b2e9a623644cf7021c47953ecc0ff6/tools/cicd/cloudbuild.yaml#L35-L36
And for the integration tests:
https://github.com/Kaggle/kagglehub/blob/c0de979194b2e9a623644cf7021c47953ecc0ff6/tools/cicd/integration-tests.yaml#L46

Sorry I think the same challenge here. If we still use the docker image built for python 3.7, we are forced to use an early hatch version, which doesn't support "builtin test".


Check on missing Assertion element in Response

Hello.
According to the SPID Quality Assessment Document ( https://www.spid.gov.it/assets/download/SPID_QAD.pdf ), test 3.32,
if the Assertion element is missing, the Service Provider should  give an error message.
This lib, perform tests on the assertion:
https://github.com/italia/spid-php-lib/blob/29888e0e43c15b5778d89672990d8167aa880d93/src/Spid/Saml/In/Response.php#L66
but it doesn't throw an exception if the element is not present in the response.
In fact, when performing tests with the spid-testenv2 ( https://github.com/italia/spid-testenv2 ), if i check the "Assertion assente" option. i can't login but i don't get any error message.
Looking at the spid-php-lib code, it seems to be legitimate to have no Assertion, so i don't really know which way to go, whether to add the exception or leave the code as it is.
Could you give me some suggestions? Thank you.

Hi,
there is indeed a bug, and an exception should be thrown. I've checked the technical documentation and the relevant point is:
Deve essere presente un elemento <Assertion> ad attestare l’avvenuta autenticazione, contenente almeno un elemento <AuthnStatement>; nel caso l’Identity Provider abbia riscontrato un errore nella gestione della richiesta di autenticazione l’elemento <Assertion> non deve essere presente.
So we should expect to have an Assertion when the StatusCode is Success and throw an exception if missing, but expect no Assertion if login failed.


How to integrate instructor and tensorzero

Is your feature request related to a problem? Please describe.
Setting up additional ML Ops infrastructure around structured extraction workflows can be cumbersome, e.g. recording input output pairs, tracking user feedback, building a model-improvement flywheel using this data.
Describe the solution you'd like
I'd like to use instructor's awesome structured extraction functionality while also benefitting from tensorzero's  easy to set-up infrastructure for tracking LLM inferences, episodes and user feedback .
Describe alternatives you've considered
Manually setting up custom logging, feedback collection and model re-training workflows and APIs.
Additional context
This is an open question that I'm currently thinking about and would love to receive some feedback from the wider community.

Related issue: https://github.com/tensorzero/tensorzero/issues/549


implemented _check to remove redundant error checking code

Removed redundant error checking code by adding it in a function and then invoking that function wherever error checking is required.
Included the test case for this code change by removing the skip() call on the test cases

Thanks! :)


[Bug] Incorrect graft copy percentage logging

Bug report
When doing a graft, the calculated copy percentage isn't correct. I see 100% of overall data is copied several back to back log lines but that's clearly not the case considering how much extra data there is to copy. Maybe it's an issue with rounding? This is happening on v0.34.0
Relevant log output
"Copied 62.83% of `_LiquidityPoolAmount` entities (31669552/50408382 entity versions), 100.00% of overall data, dst: sgd50978, sgd: 50978, subgraph_id: QmNnGrNgUbZrwCvxRJ9ZjdmfzaLtAaXSm9WAzxhwp3YsC6, component: SubgraphInstanceManager"
"Copied 59.85% of `_LiquidityPoolAmount` entities (30171286/50408382 entity versions), 100.00% of overall data, dst: sgd50978, sgd: 50978, subgraph_id: QmNnGrNgUbZrwCvxRJ9ZjdmfzaLtAaXSm9WAzxhwp3YsC6, component: SubgraphInstanceManager"
"Copied 56.93% of `_LiquidityPoolAmount` entities (28697880/50408382 entity versions), 100.00% of overall data, dst: sgd50978, sgd: 50978, subgraph_id: QmNnGrNgUbZrwCvxRJ9ZjdmfzaLtAaXSm9WAzxhwp3YsC6, component: SubgraphInstanceManager"
"Copied 53.86% of `_LiquidityPoolAmount` entities (27149638/50408382 entity versions), 100.00% of overall data, dst: sgd50978, sgd: 50978, subgraph_id: QmNnGrNgUbZrwCvxRJ9ZjdmfzaLtAaXSm9WAzxhwp3YsC6, component: SubgraphInstanceManager"
"Copied 50.75% of `_LiquidityPoolAmount` entities (25581513/50408382 entity versions), 100.00% of overall data, dst: sgd50978, sgd: 50978, subgraph_id: QmNnGrNgUbZrwCvxRJ9ZjdmfzaLtAaXSm9WAzxhwp3YsC6, component: SubgraphInstanceManager"
"Copied 47.63% of `_LiquidityPoolAmount` entities (24009404/50408382 entity versions), 99.84% of overall data, dst: sgd50978, sgd: 50978, subgraph_id: QmNnGrNgUbZrwCvxRJ9ZjdmfzaLtAaXSm9WAzxhwp3YsC6, component: SubgraphInstanceManager"
"Copied 44.52% of `_LiquidityPoolAmount` entities (22443819/50408382 entity versions), 99.51% of overall data, dst: sgd50978, sgd: 50978, subgraph_id: QmNnGrNgUbZrwCvxRJ9ZjdmfzaLtAaXSm9WAzxhwp3YsC6, component: SubgraphInstanceManager"
"Copied 41.44% of `_LiquidityPoolAmount` entities (20890187/50408382 entity versions), 99.19% of overall data, dst: sgd50978, sgd: 50978, subgraph_id: QmNnGrNgUbZrwCvxRJ9ZjdmfzaLtAaXSm9WAzxhwp3YsC6, component: SubgraphInstanceManager"

IPFS hash
No response
Subgraph name or link to explorer
No response
Some information to help us out

[ ] Tick this box if this bug is caused by a regression found in the latest release.
[ ] Tick this box if this bug is specific to the hosted service.
[X] I have searched the issue tracker to make sure this issue is not a duplicate.

OS information
None

thanks @paymog - can you share any information about the subgraph which was being grafted (or grafted on)? @lutter any ideas on this one?

I think this was one of the messari uniswap subgraphs but tbh I can't remember precisely

I don’t know for sure if there was a restart but there’s a very high probability that there was.
Yup, not worried about the operation being affected, just reporting the UI/UX bug here.


scheduler: add Reservation restricted options to control allocatable resources

Ⅰ. Describe what this PR does
When a Pod uses a Reservation with an allocation policy of Restricted, the maximum amount of resources that can be used by intersecting resource requests cannot exceed the amount of resources in the Reservation. But in fact, some scenarios require that even intersecting resource requests should be allowed to break this limit. This PR introduces annotation scheduling.koordinator.sh/reservation-restricted-options to solve this problem.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it

Create Reservation with the annotation scheduling.koordinator.sh/reservation-restricted-options.

apiVersion: scheduling.koordinator.sh/v1alpha1
kind: Reservation
metadata:
  annotations:
    scheduling.koordinator.sh/reservation-restricted-options: |-
      {"resources": ["cpu", "memory"]}
  name: test-reservation
spec:
  allocateOnce: false
  allocatePolicy: Restricted
  owners:
  - labelSelector:
      matchLabels:
        app: test
  template:
    metadata:
      creationTimestamp: null
    spec:
      schedulerName: koord-scheduler
      containers:
      - image: mock
        imagePullPolicy: IfNotPresent
        name: mock
        resources:
          limits:
            cpu: "4"
            memory: 8Gi
            fakeResources: "4"
          requests:
            cpu: "4"
            memory: 8Gi
            fakeResources: "4"
  ttl: 0s

Create Pods that used the Reservation.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: test
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: test
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: test
    spec:
      containers:
      - command:
        - bash
        - -c
        - sleep 360000
        image: busybox:latest
        imagePullPolicy: Always
        name: main
        resources:
          limits:
            cpu: "1"
            fakeResources: "8"
            memory: 1Gi
      schedulerName: koord-scheduler

Pod successfully scheduled.

Ⅳ. Special notes for reviews
V. Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests
[ ] All checks passed in make test

/lgtm


Retrieving current index without waiting end of slide

When I try to retrieve the current index of the carousel item, there is a one second delay. How can I retrieve the index of the current object without waiting for the end of the slide movement.
I was using momentum but now it is deprecated.
I use this
onSnapToItem={index => this.setState({ activeIndexCarousel: index })} />
Thank you for the help!

you could use onBeforeSnapToItem or write your own logic in onScroll like so:
onScroll={({ nativeEvent }) => {
  const { contentOffset } = nativeEvent;
  const index = Math.round(contentOffset.x / width);
  if (index !== activeIndex) {
    setActiveIndex(index);
  }
}}

@oliverdolgener thanks for your help but onBeforeSnapItem has been deleted on version 4. For the onScroll event script you wrote, carousel is broke when using it. The others items still blur and in small size when scrolling.

@GuillaumeA07 kindly show an example fo how you used onScrollIndexChanged

@GuillaumeA07 kindly show an example fo how you used onScrollIndexChanged


theme/powerline base: cleanup and incorporate defaults

Description
Minor cleanup and alsö apply defaults to most variables in the theme/powerline.base file. This should make no changes to any existing themes.
Motivation and Context
This should allow easier modificaiton/creation of powerline-based themes, as well as reduce duplicative code in existing themes. The idea is to reduce duplicate "base" files from powerline themes.
How Has This Been Tested?
Careful layering of includes to ensure I got the right bits.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)

Checklist:

[x] My code follows the code style of this project.
[x] If my change requires a change to the documentation, I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] If I have added a new file, I also added it to clean_files.txt and formatted it using lint_clean_files.sh.
[x] I have added tests to cover my changes, and all the new and existing tests pass.

Hey there. Want to resolve the conflicts and have me review it?


first section and last section can not trigger threshold ?

If the first section and the last section is too short Unable to trigger threshold.
Anyone met the same problem?

yes same problem
It hard to find good value for threshold for small paragraph


Add handling for edge case where type-checking block has an else

Codecov Report

Merging #27 (3d7b5e7) into master (1b35c9d) will not change coverage.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master      #27   +/-   ##
=======================================
  Coverage   100.0%   100.0%
=======================================
  Files           3        3
  Lines         284      285    +1
=======================================
+ Hits          284      285    +1

Impacted Files
Coverage Δ

flake8_type_checking/checker.py
100.0% <100.0%> (ø)


[SPARK-23231][ML][DOC] Add doc for string indexer ordering to user guide (also to RFormula guide)

What changes were proposed in this pull request?
add doc for string indexer ordering
How was this patch tested?
existing tests

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/1049/
Test PASSed.

Test build #93169 has started for PR 21792 at commit febd66f.

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/1050/
Test PASSed.

Test build #93170 has started for PR 21792 at commit 2003324.

Test build #93169 has finished for PR 21792 at commit febd66f.

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/93169/
Test PASSed.

Test build #93170 has finished for PR 21792 at commit 2003324.

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/93170/
Test PASSed.

My only question here is whether it's worth duplicating this documentation from the Python and R docs. It's more detailed info for callers of the API, and might just belong in the API doc.

@srowen I think we need to update the docs
1, Current doc in StringIndexer is somewhat misleading: "The indices are in [0, numLabels), ordered by label frequencies, so the most frequent label gets index 0." this is true only with default ordering type.
2, In RFormula, stringOrderType only affect feature columns, not label column. This need to be emphasised, which is somewhat out of expectation.
@MLnick your thoughts?


Show validation error rect on Toggle and ChoiceSet

Related Issue
Fixes https://github.com/microsoft/AdaptiveCards/issues/4362
Description
A red rectangle is now displayed around Input.Toggle and Input.ChoiceSet (in multiselect and expanded modes) when failing validation.
How Verified
Verified manually in adaptivecards-designer-app
Test card:
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.3",
    "body": [
        {
            "type": "Input.Toggle",
            "title": "New Input.Toggle",
            "id": "a",
            "isRequired": true,
            "errorMessage": "Invalid",
            "label": "Toggle input"
        },
        {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Choice 1",
                    "value": "Choice 1"
                },
                {
                    "title": "Choice 2",
                    "value": "Choice 2"
                }
            ],
            "placeholder": "Placeholder text",
            "isMultiSelect": true,
            "id": "b",
            "label": "Input.ChoiceSet w/multiselect",
            "isRequired": true,
            "errorMessage": "Invalid"
        },
        {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Choice 1",
                    "value": "Choice 1"
                },
                {
                    "title": "Choice 2",
                    "value": "Choice 2"
                }
            ],
            "placeholder": "Placeholder text",
            "style": "expanded",
            "label": "Input.ChoiceSet w/expanded style",
            "isRequired": true,
            "errorMessage": "Invalid",
            "id": "c"
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Action.Submit"
        }
    ]
}

Microsoft Reviewers: Open in CodeFlow

Cool; Verified with the card in the issue to confirm the rectangle as well as the additional warnigs around Labels + RequiredInputs missing


Vehicle manufacture samples Toolchain Deploy stage running more than 30 mins

Tried Installing the Vehicle manufacture sample via Toolchain. Initially it failed with Timeout and verified Delivery stage logs. The stage took different space than Blockchain service. Updated the correct Space and clicked on "Run" Deploy Stage.
After 15 mins I see, the msg composer plyaground installed as below.
---- Installed composer-playground -----
However after this,  the pipeline keeps running for more than 40 mins , but not yet completed.
I could see below  apps on dasboard.
"composer-playground-vehicle-manufacture-xxxxx"  - up and running. Could open and see the network.
"composer-rest-server-vehicle-manufacture-xxxx" - Stopped state.
"vehicle-manufacture-20180321123930369" - Stopped State.
The logs are struck at the last statement as "---- Installed composer-playground ----- "
Finally, Deploy job  failed with below error after 59mins :(
The job exceeded the maximum time limit for jobs, and has been terminated.

closing as this was a long time ago feel free to reopen if this is still an issue


Cant access the website/wiki for UMA

when attempting to access:  https://uma.unity3d.com/wiki/
I get the following error:

Error 503 Backend fetch failed
Backend fetch failed
Guru Meditation:
XID: 69781198
Varnish cache server

Is it possible to just start the wiki on github?
Side request: Can you change the default repo to unity53? I'm sure its the only reason any of us are coming here.  :D  If not, thats cool too.

New wiki is:
http://umawiki.secretanorak.com/Main_Page
We're working to get this ready for release. Hopefully very soon.


fix root/rmem.d to follow issue 14401 fix in druntime.

The type of typeid(SomeClass).init is changed in https://github.com/D-Programming-Language/druntime/pull/1205.
I'm not sure why the current auto-tester does not detect the error.

Auto-merge toggled on

Ah, I understand. magicport is built by using HOST_DC, and it would be 2.067 in auto-tester.

Auto-merge toggled off

So, maybe this is too early fix to build magicport with git-head druntime? I'm not sure the workflow to update magicport code...
@yebblies Do you know that?

I think this is correct, ddmd should always compile with master and with 2.067.

Auto-merge toggled on

I understand, thanks.


recognize and upload folders with content?

Here is what I am trying to do:

Use dxdashboard to pull a library from ServerA
Use dxdashboard to pull a library from ServerB
Copy a folder from ServerA to ServerB
Sync with dxdashboard so that all those components are now in ServerB

It looks like dxdashboard tries to do this but fails. When set dxdashboard to "watch" and copy the folder, it shows messages about copying the files, but those files never show up on the server.

In the window you start the dashboard could you set an environment variable   DIGEXP_DEBUG=true  and see what error tracing is output.  If you are not doing a watch but just push updated do you get the same issue?

Sorry for the delay...setting that variable opens up a separate window when I start dxdashboard, but that window stays empty.  Previous versions of dxdashboard would show output, but not now.
If I create a folder in (for example) the Components folder, it does not recognize that anything has happened, and it does not create a folder on the server.  If I copy a file into that folder, dxdashboard does not push it to the server.
I had Watch turned on, but since nothing happened I clicked the Push Updated button.  No joy.

If you have a newer version of nw it no longer contains the developer tools but if you install npm install -g<EMAIL_ADDRESS>version 0.12 it does include the tools

So I just dragged a folder from one of my libraries in components to another library and click push updated and all the files were copied to the library.  What   kind of system are you on maybe the info I use for figuring out that files have changed works differently on different systems.


[Lecture 10-2][0612] Meaning of "Weight decay removes the effect of old parameters"

I don't quite understand the idea that "weight decay removes the effect of old parameters." I know that weight decay is a regularization technique used to prevent overfitting by reducing large weights, which helps the model generalize better. Could you explain what it means by "weight decay removes the effect of old parameters"? Does it simply mean that weight decay reduces the values of large weights?

I think I can help your understanding with simple equations.
As you said, weight decay is a regularization technique that adds a term to loss function to prevent overfitting.
The typical form of a loss functionL $L(θ)$ with a weight control term added looks like this:
$$
L_{\text{total}}(\theta) = L(\theta) + \lambda \cdot \frac{1}{2} ||\theta||^2
$$
According to this modified loss function $L_{\text{total}}(\theta)$, the standard weight update equation  $\theta_{\text{new}} = \theta_{\text{old}} - \eta \nabla L(\theta_{\text{old}})$ is modified as
$$
\theta_{\text{new}} = \theta_{\text{old}} - \eta (\nabla L(\theta_{\text{old}}) + \lambda \theta_{\text{old}})
$$
$$
\Rightarrow \theta_{\text{new}} = (1 - \eta\lambda)\theta_{\text{old}} - \eta \nabla L(\theta_{\text{old}})
$$
As you can see the equation above, weight decay multiplies $\theta_{\text{old}}$ by $(1 - \eta\lambda)$ , which results removing the effect of old parameters.

Thank you for your response. The formula helped me understand it. Thanks a lot.


cranelift: Use DominatorTreePreorder in more places

Feature
We have two interfaces in Cranelift for navigating dominator trees, both defined in the cranelift_codegen::dominator_tree module: DominatorTree and DominatorTreePreorder. But we weren't using the latter outside of tests after #3434 landed in 2021, until I switched the egraph pass over to using it in #7948 today.

We should audit all uses of DominatorTree to see if they would be better served by using DominatorTreePreorder instead.
If we end up using DominatorTreePreorder in more places than just the egraph pass, then we should compute it once and share it.
If it turns out that we always need a DominatorTreePreorder when compiling any function, then we should fold the two types into one and always compute the preorder when we're computing the dominator tree.

Benefit
These two interfaces both provide a method named dominates which checks whether one basic block dominates another. However, DominatorTree does this in time proportional to the length of the path from one block to the other within the dominator tree. Thanks to a linear-time preprocessing step performed once, DominatorTreePreorder can answer this question in constant time.
So if we're using the DominatorTree::dominates method anywhere that's performance-critical, switching to DominatorTreePreorder could provide an asymptotic-complexity improvement.
On top of that, sharing a precomputed preorder across multiple uses saves time redoing the preprocessing step and also may allow us to reuse a heap allocation for the temporary storage used during that preprocessing step.
Implementation
To start with, search for all uses of DominatorTree::dominates. For each one, see if we can just replace it with DominatorTreePreorder::dominates.
This is easy if both arguments are Block IDs, but either one is currently also allowed to be an instruction ID (Inst) or a ProgramPoint. If we're relying on that feature somewhere, it's only slightly more complicated: If two instructions are in the same block then the earlier instruction dominates the later instruction; otherwise we can go back to the easy case and compare the blocks they're in to see if one block dominates the other.
If some instances of DominatorTree are only being used to call dominates, then removing that structure from those instances in favor of DominatorTreePreorder is the next step. However, some cases may also be using other methods such as cfg_postorder or idom, which are not available on DominatorTreePreorder.
Alternatives
We can always leave this alone, but I think it's a good source of small changes that may give us performance improvements during compilation.

Would like to take this one

Great, please do! If you have any questions, let us know. We're happy to help!

hi there! is this issue still on going?

i'll give this one a try if nobody's doing this


Documentation Review by Esti

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Estibaliz Gascon seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

This was merged to develop in a separate commit. closing PR


Missing .NET Core

Hi, on startup I got this error:

and after clicking on yes I installed this:

but app still shows that dialog and wont start.
Also when do you plan to upgrade to .NET 5/6?

Hi, and thank you for opening an issue with Light Switch, your feedback is valuable. I am going to ask you some questions, can you please go to Properties for C:\Program Files (x86)\Light Switch\Light Switch.exe and write here what you see in Product Version?

no it was 2.1, I updated to 2.2 and problem is gone, thanks


improve velocity dispersion estimates

One medium-term goal is to improve the velocity dispersion estimates. But first we need to fix issues like this, which suggest that velocity dispersion isn't being handled correctly at all. In detail, with the nominal vdisp=150 km/s, the Ca H+K lines in the model are clearly over-broadened. However, the implied broadening is more like 20-30 km/s, which can't be right for a relatively luminous & massive system like this. So, I need to check that I'm doing the broadening correctly in the first place.
fastspec /global/cfs/cdirs/desi/spectro/redux/fuji/tiles/cumulative/80605/20210205/redrock-3-80605-thru20210205.fits  \
  -o fastspec.fits --targetids<PHONE_NUMBER>2630998

I'm working on this ticket here by comparing my vdisp estimates against those derived by Khaled Soliman using pPXF--
https://data.desi.lbl.gov/desi/users/ioannis/fastspecfit/pv-vdisp/fujilupe/qa/

Lots of bugs (both algorithmic and in the QA code) now fixed in #69. Also, vdisp is now computed if solve_vdisp=True or if: (S/N_B>3 or S/N_R>3) and (redshift < 1), where S/N_B and S/N_R is the signal-to-noise ratio per pixel in the B and R camera, respectively.


Final text edits

Under the Sequence Search tab, replace "Neglected Diagnostics: Democratizing Genetic Testing!" with "Search and Retrieve Sequences"
Replace all instances of "Find Assay Target Area" with "Find Assay Design Area" so that the nomenclature isn't confusing.

Left Navigation Tab
Home tab, two locations - line 7 under "Sequence to Diagnostic Pipeline", and the "Find Assay Target Area" header
Find Assay Target Area Tab - Parameter section (6 changes)
Replace "Target Area Parameters" section header with "Assay Design Area Parameters"
Replace "Enter the target region size (# of base pairs)" with "Enter the assay design region size (# of base pairs)"
Replace "Enter the target region slide size (# of base pairs)" with "Enter the assay design region slide size (# of base pairs)"
Replace "Enter the maximum differences allowed between primer and target sequences" with "Enter the maximum differences allowed between assay area and target sequences"
Replace "Enter the maximum differences allowed between primer and off-target sequences" with "Enter the maximum differences allowed between assay area and off-target sequences"
Replace [Find Target Area] button with [Find Assay Design Area]
Find Assay Target Area Tab -  replace QuickGuide with the updated version below

QuickGuide

Drag and drop, or Click on the [Browse files] button to choose and upload the individual sequence files or non-aligned multiple sequence files (FASTA or FAS)  for the Assay Target(s). These are the sequences that the assay should be able to detect.
Drag and drop, or Click on the [Browse files] button to choose and upload the individual sequence files or non-aligned multiple sequence files (FASTA or FAS) for the Assay Off-Target(s). These are the sequences that the assay should not be able to detect.
Input Assay Design Area Parameters
a. From the set of sequences included in the Target sequences, choose one to be the reference sequence. Input the sequence header (not the name of the file) under [Select Reference Sequence].
b. Enter a number into the [assay design region size] box, or use the +/- symbols to adjust the default number. This should be equal to or larger than the intended fragment size for the assay. It is the total area where targets and off targets will be compared.
c. Enter a number into the [assay design region slide size] box, or use the +/- symbols to adjust the default number. This designates the shift in base pair distance between each design area along the total sequence length which is defined by the reference sequence.
d. Enter a number into the [maximum differences allowed between assay area and target sequences] box, or use the +/- symbols to adjust the default number. This controls the calculated average differences between the target sequences and the assay design area candidates.
e. Enter a number into the [maximum differences allowed between assay area and off-target sequences] box, or use the +/- symbols to adjust the default number. This controls the calculated average differences between the off-target sequences and the assay design area candidates.
Click on the [Find Assay Design Area] button to run the process. Note that large files, small target region sizes or a combination of both will require more processing time.
Select the download option from the dropdown
a. Select [Download as CSV] to retrieve the result table displayed above
b. Select [Download sequences as a fasta file] to retrieve the assay design area sequences only.
Click on the [Download] button.

Addressed with PR #86


Redis Streams PubSub subscription does not recover after server restart

Expected Behavior
If the Redis server is restarted and the consumer group (GROUP) information for the stream is therefore lost, Dapr should recreate a group on the server and restart the subscription.
Actual Behavior
Lots of errors (30GBs in 24 hours) of the form NOGROUP No such key 'example-stream' or consumer group 'example-group' in XREADGROUP with GROUP option
The subscription never recovers.
Steps to Reproduce the Problem

Subscribe to Redis Streams
Restart the server in such a way that Dapr doesn't completely lose the connection / can recover (details unclear right now)

Release Note

RELEASE NOTE:

This was fixed in Dapr 1.12.1


t-SNE visualization

Hello, very meaningful work. How to draw this t-SNE visualization? Could you please share the visualization method or reference code? My email is<EMAIL_ADDRESS>Thank you very much.

Hi, we just use scikit-learn library t-SNE method (sklearn.manifold.TSNE). You can easily find many examples using this library.

Thanks very much🤝🙏
发自我的iPhone
------------------ Original ------------------
From: Dongkeun Kim @.>
Date: Thu,Apr 13,2023 1:03 PM
To: dk-kim/DFWSGAR @.>
Cc: 习泽宇 @.>, Author @.>
Subject: Re: [dk-kim/DFWSGAR] t-SNE visualization (Issue #11)
Hi, we just use scikit-learn library t-SNE method (sklearn.manifold.TSNE). You can easily find many examples using this library.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Sorry to bother you. I still haven't drawn a visualization of TSNE. Can you share your code? Thank you 🙏
发自我的iPhone
------------------ Original ------------------
From: Dongkeun Kim @.>
Date: Thu,Apr 13,2023 1:03 PM
To: dk-kim/DFWSGAR @.>
Cc: 习泽宇 @.>, Author @.>
Subject: Re: [dk-kim/DFWSGAR] t-SNE visualization (Issue #11)
Hi, we just use scikit-learn library t-SNE method (sklearn.manifold.TSNE). You can easily find many examples using this library.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Contact page

In the Contact page of your project (FrontEnd Database) . the User can  also  submit  the Empty form .  i make sure  that  Contact form  must be filled out before submitting the form.
if the issue valid or okk for you . i  like to work on this issue under the  label of - hacktoberfest,  hacktoberfest2023 .
Also added video of the issue below .
screen-capture.webm

@Aka-suvam ,
I have assigned the issue to you

@Aka-suvam
some people may also be working on this repo, but not on this issue
so please pull before push, to avoid any merge conflits (in any files) 👍🏽
steps :

made changes
commit
pull : git pull origin dev
push

Please assign this task to me under hactoberfest label

closed by #29

Please assign this task to me under hactoberfest label

@Kedarnath-Rothe ,
this issue has been resolved.
You can

either create a new issue and work on that issue
add a new project by following the guidelines  : https://github.com/dev-AshishRanjan/Hacktoberfest-Frontend/blob/dev/CONTRIBUTING.md


chore(travis): Aggregate test coverage

Coverage remained the same at 24.398% when pulling 2c0dd9b86b00221f4abc18966ef2b76c20874140 on chore/coverage_agg into 72ef93414ce118f6b7d662927324af288f2c9697 on master.

Coverage remained the same at 24.398% when pulling 639fa87cfcbe3b2f1e2afc04ebd15b23ee015d1f on chore/coverage_agg into 72ef93414ce118f6b7d662927324af288f2c9697 on master.

Coverage increased (+51.6%) to 76.046% when pulling 6fd7b808341c48289c7efb9107892906320a4373 on chore/coverage_agg into 72ef93414ce118f6b7d662927324af288f2c9697 on master.


9 - WebEx on Fisheries survey series metadata reccomandations

WebEx to discuss and recommend fisheries survey series metadata approach, examining established practises, and what is available in ICES

no response from RCG chairs on the follow-up on the suggestion, and may be superceded by the work on standardised survey coding and associated meta information.
@davidcurrie2001 to follow-up at RCG-technical meeting at the end of May;


[Firebase Web Codelab] Step 7 > User Sign-in > missing dot

All the UI part has already been implemented
should be
All the UI part has already been implemented.

fixed


add login failed prompt

Requirement or improvement
after login failed(use wrong password), so error message show, please add it .

Contribution is welcome. This is not a high priority job. We just support simple verification.

Login has been removed permanently.


Can't add System.IdentityModel.Tokens.Jwt

I added System.IdentityModel.Tokens.Jwt from NuGet but I can't use it.
using System.IdentityModel.Tokens.Jwt => "IdentityModel does not Exists in this namespace".
I need this for JWT token authentication when creating new Claims (JwtRegisteredClaimNames.Sub...). Why would this happen?
Thank you.

https://blogs.msdn.microsoft.com/webdev/2017/04/06/jwt-validation-and-authorization-in-asp-net-core/
Perhaps that library isn't meant for dotnet core?  Try the library mentioned in that link: Microsoft.AspNetCore.Authentication.JwtBearer.

Sorry, this was a Visual Studio IntelliSens problem. It is working now with System.IdentityModel.Tokens.Jwt.
Thank you for your help :)


LockRecursionException after update

Updating via Nuget from Microsoft.AspNet.WebApi.Versioning 4.0.0 to 4.1.0 results in System.Threading.LockRecursionException
Error is thrown from
System.Web.Http.HttpRequestMessageExtensions.ApiVersionProperties( this HttpRequestMessage request )
System.Threading.LockRecursionException
  HResult=0x80131500
  Message=Recursive read lock acquisitions not allowed in this mode.
  at System.Threading.ReaderWriterLockSlim.TryEnterReadLockCore(TimeoutTracker timeout)
    at System.Threading.ReaderWriterLockSlim.TryEnterReadLock(TimeoutTracker timeout)
    at System.Web.Routing.RouteCollection.GetReadLock()
    at System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext)
    at System.Web.Http.WebHost.Routing.HostedHttpRouteCollection.GetRouteData(HttpRequestMessage request)
    at System.Web.Http.HttpRequestMessageExtensions.ApiVersionProperties(HttpRequestMessage request)
    at Microsoft.Web.Http.Routing.ApiVersionRouteConstraint.Match(HttpRequestMessage request, IHttpRoute route, String parameterName, IDictionary`2 values, HttpRouteDirection routeDirection)
    at System.Web.Http.WebHost.Routing.HttpWebRoute.ProcessConstraint(HttpContextBase httpContext, Object constraint, String parameterName, RouteValueDictionary values, RouteDirection routeDirection)
    at System.Web.Routing.Route.ProcessConstraints(HttpContextBase httpContext, RouteValueDictionary values, RouteDirection routeDirection)
    at System.Web.Routing.Route.GetRouteData(HttpContextBase httpContext)
    at System.Web.Http.WebHost.Routing.HttpWebRoute.GetRouteData(HttpContextBase httpContext)

configuration is by namespace
            DefaultInlineConstraintResolver constraintResolver = new DefaultInlineConstraintResolver()
            {
                ConstraintMap = {
                                    ["apiVersion"] = typeof( ApiVersionRouteConstraint )
                                }
            };
            config.MapHttpAttributeRoutes(constraintResolver);
            config.AddApiVersioning(options =>
            {
                options.ReportApiVersions = true;
                options.Conventions.Add(new VersionByNamespaceConvention());
            });

            //Change default route to include api version
            config.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "v{apiVersion}/{controller}/{action}/{id}",
                defaults: new { id = RouteParameter.Optional },
                constraints: new { apiVersion = new ApiVersionRouteConstraint() }
            );

And not sure its if matters but version is single number
namespace Test.API.Controllers.v1
{
    [RoutePrefix("v{version:apiVersion}/GlobalSettings")]
    public class GlobalSettingsController : ApiController
    {
        [HttpGet]
        public string GetSetting(string key)
        {
            return "TEST";
        }

    }
}

This is strange. I've never seen this. Does this happen all the time or only some of the time? I can't think of any change that would cause this and not be caught in some form of testing. How are you hosting? IIS? self-host? I've seen different hosts cause issues and I don't the resource to test on every host.
Thanks

For this specifically it's IIS express from Visual Studio 2017 or 2019 on windows 10.
It occurs for every single request.
It was discovered during creation of a new project, so the bit I pasted are about the only changes made to a .Net 4.6.2 webapi project. I can't upload this project, but if it would help I can create a new project, reproduce and attach.

A repro with all the setup and configuration you used is always best. It's not supposed to matter, but there are edge cases where the hosting model causes variations. I've had a few such edge cases with IIS and/or IIS Express. I've moved away from them for testing and samples to more closely align between Classic ASP.NET and ASP.NET Core. The self-host approach also executes much faster with far less configuration.

I also have this issue with version 4.1.1, but only if I use the constrains parameter of MapHttpRoute. If I instead use a Route attribute on the controller, it works fine. Hosted on Windows 10 IIS, VS 2019.

Any news on this one. Same issue here. 4.1.1
with .net 4.7.2 windows 10 iis-express. vs 2019

Apologies. Apparently, I missed this issue during sweeping status updates the past couple of weeks.
I thought this was perhaps related to #705, but after further analysis, I don't think it is. This issue appears to be caused by an update that adds explicit route value evaluation here. This only happens when hosted using the IIS implementation (which is infuriating 😠). This would be the 4th or 5th time there has been a runtime difference in hosts.
There isn't a clear and straight forward way to determine whether GetRouteData will result in an exception. Reverting the change will likely regress the original issue. The best course would seem to wrap this with a try...catch. If an exception is throw when hosted on IIS, it can be safely ignored.
I need to confirm that will work with the provided repro, but I suspect that it will.
TL;DR
@EdwardFinn I also noticed that you are mixing convention and attribute-based routing methods. I strongly advise against that; especially in Web API. Attribute-based routing was bolted on after the fact. Mixing the two can lead to a lot of confusion for debugging and maintenance. The example you provided just so happens to illustrate this problem.
The following appears to use attribute-routing, but insufficient attributes have been provided. Since a convention has been defined, the routing system will fall back and match a convention-based route pattern. This is a false negative as it should have failed.
    [RoutePrefix("v{version:apiVersion}/GlobalSettings")] // ← a prefix is defined, but this attribute does nothing!
    public class GlobalSettingsController : ApiController
    {
        [HttpGet]
        // TODO: for this to use attribute routing, you need the following attribute:
        // [Route("{key}")]
        public string GetSetting(string key) => "TEST";  // ← this action is actually routed by convention
                                                         // also note that 'key' will always be null because the
                                                         // expected parameter name is 'id' in your route template
    }

The repro appears to Web API and MVC together. That's fine, but remember that they each their own routing systems. You can elect to only use attribute routing in Web API, while only using convention-based routing in MVC.
You can mix styles if you really want to, but be warned - there be dragons. There are certain edge cases where API Versioning will not work properly. As long as you don't mix routing styles between controllers logically grouped together across versions, you should be fine. This issue is most pervasive when using Web API with OData.


Read Field Data

Hello! I just started playing around with ReadVTK. Thank you very much for the effort!
Reading some cases I have, I did not find any way to read Field Data from vtk files. Passing very quickly through the documentation and the source code I found that there is already an implemented type for this (VTKBase.VTKFieldData) but there is no function to read this data from a file (in the manner of get_cells_data() or get_points_data()).
Is there any chance you will be implementing this functionality soon? Thanks in advance!

Thanks for your interest! I guess none of the contributors so far have a need for this, so we will likely not implement it in the near future. But if you need it and want to give it a shot, we may be able to assist you and review your PR.

Just did that! Let me know if/when you incorporate the changes.
Just out of curiosity: you're not considering implementing multiblock or Paraview collections in the near future, right?

Just did that! Let me know if/when you incorporate the changes.

Thanks! @sloede and/or I will have a look at it (when we have time)

Just out of curiosity: you're not considering implementing multiblock or Paraview collections in the near future, right?

Same as with every other feature - this is an open source project, so we're happy to welcome contributions but we will likely not work on it unless we need it ourselves 🙂


Cannot convert ObjectAwareModel to onnx

I am trying to run code
obj_model_path='./weight/ObjectAwareModel.pt'
ObjAwareModel = ObjectAwareModel(obj_model_path)
ObjAwareModel.export(format='onnx', retina_masks=True)

Error:
ONNX: export failure ❌ 9.2s: output 1 (0
[ CPULongType{} ]) of traced region did not have observable data dependence with trace inputs; this probably indicates your program cannot be understood by the tracer.

Hi, @TheConstant3 I also encountered this problem, have you solved it?


App password to handle 2 factor authentication

I went on to https://security.google.com/settings/security/apppasswords to create an app specific password, Entered custom name "portify" and device mac, however I can not login with the provided app password

same problem here

there is no longer any need for this, the app STAMP works perfectly. https://stampapp.io/


Detect Groups by Language or Character Sets?

This guy is sending a message in English in Korean Character set. Something like that. Wonder if we can detect that.

Doesn't really matter.