Discrepancy between how NER Annotator and spaCy are handling certain Unicode characters

I wanted to display a json file labeled with spacy displacy. But the problem persists.
I carefully label in the tool:

When I view it with spacy displacy, irrelevant places are labeled, but the places that should be are not:

The code that I used to view labeled text with spacy displacy:
import json
import spacy
from spacy import displacy

# Spacy modelini yükle
nlp = spacy.load("en_core_web_sm")

# JSON dosyasının yolunu belirtin
file_path = "/content/annotations.json"

# JSON dosyasını açıp verileri yükleyin
with open(file_path, 'r', encoding='utf-8') as file:
    data = json.load(file)

    if 'annotations' in data:
        for annotation in data['annotations']:
            if annotation is not None:
                text = annotation[0]  # Metin
                entities = [(ent[0], ent[1], ent[2]) for ent in annotation[1]['entities']]  # Varlıklar

                # Displacy için gereken formatta veriyi hazırlayın
                spacy_displacy_data = {
                    "text": text,
                    "ents": [{"start": start, "end": end, "label": label} for start, end, label in entities],
                    "title": None
                }

                # Displacy ile görselleştirme yapın
                displacy.render(spacy_displacy_data, style="ent", manual=True, jupyter=True)

Hello @elifbeyzatok00. Your code seems fine to me. I also tried using it with a small annotation file and it worked as expected.
Could you please provide a sample annotation file for which you're facing the issue so that I can investigate further?

Thank you for your feedback. @alvi-khan
I've attached the sample file where I encountered the problem so you can investigate further.
sample.zip

Thanks @elifbeyzatok00. I've managed to replicate the issue now.
It seems there's some discrepancy between how NER Annotator and spaCy are handling certain unicode characters, specifically '🔗' in this case.
If it is acceptable for your use case, an easy workaround is to just replace all instances of '🔗' with two spaces. I've attached a copy of the annotation file you provided in which I have made this replacement.
sample_with_emoji_replaced.zip
As you can see in the attached screenshot, it works correctly after this change.

For a slightly more technical analysis of why this is happening, it seems that our tokenizer interprets the emoji '🔗' as two characters whereas spaCy interprets it as a single character. This results in the starting position for each entity after the emoji having an 'off by one' error. If we use multiple emojis, the effect becomes cumulative.
I've attached a minimal reproducible example which clearly shows this issue.
From NER Annotator:

From spaCy:

For this piece of text, the exported annotation is:
{"classes":["TEST"],"annotations":[["This part is fine - 🔗 - but this part is not.",{"entities":[[5,9,"TEST"],[34,38,"TEST"]]}]]}

Here, the second entity starts from index 34, which means there should be 34 characters in front of it. But if we count the characters (counting '🔗' as a single character), we will see that there are actually 33 characters in front of it. The first entity does not have this issue, correctly starting from index 5.
We can also see that '🔗' is being interpreted as two characters if we switch the annotation precision to 'Character Level'.

I'll need some time to properly understand why this discrepancy exists and how to resolve it. @tecoholic, since this is related to the tokenization process, I would appreciate any hints you might be able to provide.

@alvi-khan Thank for the thorough investigation of the issue. Can you kindly see if the NLTK Tokenizer in Python also produces the same effect? As in, does it also count the Unicode as 2 characters? Since the JS tokenizer we use is a port of the NLTK tokenizer, I suspect that would be the case.
If it turns out the NLTK tokenizer also has the same issue, then we will need to update our tokenizer to follow the Spacy Tokenizer as this is after all NER Annotator for Spacy.
Sidenote: This might be a good update to the software, we might end up non-english annotations properly as well.

@alvi-khan @tecoholic Thank you very much for all your help. I will clean the emojis before exporting the txt files to the NER Annotation Tool. In this way, I will prevent character shifts caused by emojis.
I'm impressed that you responded so quickly and investigated the issue thoroughly. You have a great team. Thank you very much again.🤩

I had a feeling this was an encoding issue.
In the JS port:
const TreebankTokenizer = require('treebank-tokenizer');

tokenizer = new TreebankTokenizer();

console.log(tokenizer.span_tokenize("🔗"))

Output: [ [ 0, 2 ] ]
In Python:
from nltk.tokenize import TreebankWordTokenizer

list(TreebankWordTokenizer().span_tokenize("🔗"))

Output: [(0, 1)]
@tecoholic, you probably already know this, but for reference, the span_tokenize method in both the JS port and the original Python version call a align_tokens method, which can be found in the utils package for both. This in turn uses the length of each token to determine the start and end of the span. This is where our problems start.
In JS "🔗".length == 2 but in Python len("🔗") == 1.
A detailed discussion on why this occurs is available here.
We can of course modify the the align_tokens method in the JS port to force it to always give the same results as the Python variant by counting the code points instead (which is how Python determines string lengths). In JS, the Array.from method does this for us, so Array.from("🔗").length == 1. A better example may be the '🤦🏼♂' emoji, for which Array.from("🤦🏼♂").length == 5. This is the same in Python, where len("🤦🏼♂") == 5.
We need to decide whether we want to make this change or leave it as a known issue that we won't (or rather can't) fix. Since the issue, fundamentally, occurs due to a difference in how the two languages handle strings, changing the behavior may break things in unexpected and confusing ways.
There might also be an alternative approach that allows us to handle the issue in the Python script, but I can't think of one at the moment.


Replace assert! macros with macros from approx crate

Currently most assertions in the tests use the assert! macro, which is somewhat inconvenient for comparing floats. It would be great if those were replaced with the assert macros of the approx crate.

So for the sake of clarity we're looking for this sort of change for all tests hit by cargo test -p argmin-math right?
// Old
// assert!(((a as $t - res.re) as f64).abs() < std::f64::EPSILON);
// assert!(((-b as $t - res.im) as f64).abs() < std::f64::EPSILON);

// New
assert_relative_eq!(a as f64, res.re as f64, epsilon = std::f64::EPSILON);
assert_relative_eq!(-b as f64, res.im as f64, epsilon = std::f64::EPSILON);

Yes, this is correct! :)


metadata module enhancement

#112
1.It provides more information about hive ，such as table size，number of files，lifecycle and so on
2.does not affect the original foreground interface
3.Later, it can be integrated with msyql，hbase...

@peacewong @wushengyeyouya  I have already communicated to the author,it's ok to merge into the master, thank you very much for your contribution. @patinousward


Update Software.md

Add links to several projects I've created in the style of mqtt-smarthome.
(I hope it's OK to just open a pull request without prior discussion. Apologies if not.)

Great, I'm happy to see that you like mqtt-smarthome! I add your Software also to my "awesome mqtt" list here: https://github.com/hobbyquaker/awesome-mqtt


[Contrib] Support fp16 input in cpu sort

A solution for the issue discussed in https://github.com/apache/tvm/issues/8296#issuecomment-892378745
With this change, PT Faster RCNN can be converted to fp16. Converting MaskRCNN requires support for ADT (tensor array) in the mixed precision pass.
@comaniac @AndrewZhaoLuo

Thanks @masahi


mem: Atomic ops to same address

Augmenting the DataBlock class with a change log structure to record the effects of atomic operations on a data block and service these changes if the atomic operations require return values.
Although the operations are atomic, the coalescer need not send unique memory requests for each operation. Atomic operations within a wavefront to the same address are now coalesced into a single memory request. The response of this request carries all the necessary information to provide the requesting lanes unique values as a result of their individual atomic operations. This helps reduce contention for request and response queues in simulation.
Previously, only the final value of the datablock after all atomic ops to the same address was visible to the requesting waves. This change corrects this behavior by allowing each wave to see the effect of this individual atomic op is a return value is necessary.

I know it's different, but I think that #177 is quite related. Let's make sure there are no conflicts between these changes.

Forgot to retain the changeId in the commit message. Added it back.

I know it's different, but I think that #177 is quite related. Let's make sure there are no conflicts between these changes.

Looking through the files changed, I don't think the there should be any merge-conflict issues. I haven't tested this change with the CHI protocol, but I suspect CHI has the same issue as the VIPER protocol (where waves that request atomic updates to the same address get the same response instead of a unique responses after each atomic update). Will test this out after #177 gets merged into develop (to prevent conflicts now).

@BujSet I am away for the next few days, and while I reviewed it at AMD previously, I will review here again after Monday.

@abmerop Tagging you here as well.

@mattsinc : Is this ok with you? You had some suggestions which I believe have been incorporated. If so I'll merge this.

I was waiting for Giacomo to chime in since Giacomo was the one requesting
the changes.
On Mon, Aug 28, 2023 at 5:02 PM Bobby R. Bruce @.***>
wrote:

@mattsinc https://github.com/mattsinc : Is this ok with you? You had
some suggestions which I believe have been incorporated. If so I'll merge
this.
—
Reply to this email directly, view it on GitHub
https://github.com/gem5/gem5/pull/200#issuecomment-1696487477, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AEZVZAYHSKUN7E5I3HVZZPDXXUINZANCNFSM6AAAAAA3V2TWHU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks @giactra ! @BujSet you will need to rebase before you can merge this in, FYI.

Do they? It's clean merge from what I can see.

Thanks @giactra ! @BujSet you will need to rebase before you can merge this in, FYI.

Do they? It's clean merge from what I can see.

Interesting, it is clean now but when I sent that, I saw that rebasing to the head of develop was required ...

Thanks @giactra ! @BujSet you will need to rebase before you can merge this in, FYI.

Do they? It's clean merge from what I can see.

Interesting, it is clean now but when I sent that, I saw that rebasing to the head of develop was required ...

Huh, I'll look out for that. No worries, I just thought there was some reason it needed rebasing.
Since this now has 2 approvals, and I don't see any outstanding comments to address, I'll merge it,
Thank you for all great work guys!


add support for Arch Linux builds

we have support for quite a few platforms:

but not for arch linux
there seems to be support for electron forge arch, but this issue isnt clear on how to do it. please help!

FYI someone created an AUR package for Arch Linux: https://aur.archlinux.org/packages/godmode
It's partially working for me :)

oh wonderful thank you! please let me know if there is a way to support this build locally!


Would someone explain the usage of concat_axis, dot_axis and output_shape in merge layer?

For example: Text1 [A,B,C]              Text2 [V,D,Y]

In merge layer, if concat_axis = -1, it means [A,B,C]  and [V,D,Y] transform to [A,B,C,V,D,Y] or [V,D,Y,A,B,C]  ? What about dot_axis?
How to set the output_shape in merge layer when using lambda or function?
merged_vector2 = merge([encoded_a, encoded_b], mode=lambda x: 1 / (1 + l2_norm(x[0], x[1])),output_shape=lambda x: x[0])means that the output shape of merged_vector2 is as same as encoded_a?
The output of mode = 'cos' merge layer is (1,1) matrix?

Any opinions would be appreciated!

@nouiz @joelthchao @braingineer Would you give me an actual example to the usage above?

The best way to learn how Keras works is diving into code and write some codes to convince yourself.
from keras.layers import Input, merge
from keras.models import Model
import numpy as np

input_a = np.reshape([1, 2, 3], (1, 1, 3))
input_b = np.reshape([4, 5, 6], (1, 1, 3))

a = Input(shape=(1, 3))
b = Input(shape=(1, 3))

concat = merge([a, b], mode='concat', concat_axis=-1)
dot = merge([a, b], mode='dot', dot_axes=2)
cos = merge([a, b], mode='cos', dot_axes=2)

model_concat = Model(input=[a, b], output=concat)
model_dot = Model(input=[a, b], output=dot)
model_cos = Model(input=[a, b], output=cos)

print(model_concat.predict([input_a, input_b]))
print(model_dot.predict([input_a, input_b]))
print(model_cos.predict([input_a, input_b]))

Then you will get the output
[[[ 1.  2.  3.  4.  5.  6.]]]
[[[ 32.]]]
[[[[ 0.97463191]]]]

For question 2: yes.
For question 3: In the code, cos mode actually uses dot_axes. So, it depends on how you specify your argument.

Thanks very much for your reply!

@joelthchao I also feel little confused.
a is (none ,64,64,64) and b is (none,64,64,64)
the format is (none,nb_filter,weight,hight) in the image.

concat = merge([a, b], mode='concat', concat_axis=-1)

if  concat_axis = -1 , a'hight plus b'hight.
we can get the output_shape which is (none ,64,64,64+64).
Does it right?
Thanks.

@joelthchao

a = Input(shape=(1, 3))
b = Input(shape=(1, 3))
a is (1,3),b is (1,3) , ndim is 2
dot = merge([a, b], mode='dot', dot_axes=2)
when the mode is dot and dot_axes =  2, i don't know why dot_axes is set 2 because a and b totally have the 2 ndim. [0,1]

Note that this example does not work with 2D arrays with shape: (batch_size, n_features). See: #5131.

https://stackoverflow.com/questions/45108826/only-layers-of-same-output-shape-can-be-merged-using-sum-mode-layer-shapes?noredirect=1#comment77190517_45108826
I am trying to implement U-Net CNN with keras.


Updated HealthcareApis SDK

Looking to release a new version of the HealthcareApis .NET SDK from updated spec
PR Changes:

Generated new version of .NET HealthcareApis SDK with packageTag=2021-11-01 using generate.ps1 script
Updated the following information in the .csproj

Version - bumped to 4
PackageTags
PackageReleaseNotes

Updated AzSdk.RP.props

AzureApiTag

Updated AssemblyInfo.cs

AssemblyFileVersion - bumped to 4
AssemblyVersion - bumped to 4

/check-enforcer reset

Hi @Yao725, can you re-review this PR? All the checks have passed


Syntax Errors in Docz site breaks documentation

Bug Report
The main Docz site is failing to load properly with SyntaxErrors
10:55:30.221 SyntaxError: expected expression, got '<'[Learn More] 2 docs-introduction-pages-getting-started-index.21bf75fe.js:1

To Reproduce

Open Docz site
Open developer console
See SyntaxError

This is on Firefox for Mac

Sorry dude, I couldn't reproduce this bug?


Transform stream from file before sending

See my pull request #69. It would be nice to be able to modify the data from the file stream using transforms. This is helpful when the stored data in the file is a template, encrypted, compressed, etc

Hi! I saw it existed yesterday, but a security issue came to light as well, so I just need to get that wrapped up first.

Hi Dough! Any chance you can have look at my PR?

This will be accepted, I'm just making the rounds through various projects getting them 0.12 supported; sorry for the delay. In the end, the final version of this will have a slightly different API, but will be able to do exactly what you need and more.

Cool! I'm looking forward to it.

@dougwilson Do you know when this (or equivalent functionality) will be merged?

Hi, I also waiting for this.
I shall use it for render jade and markdown files. I consider than jade, markdown and other similar file types are also "static" files.

I haven't forgotten about this at all, everyone, just feature bumps on these Express dependencies are still tied to the Express release cycle, I'm sorry. Slowly but surely this dependence will be lifted, especially after Express 3.x (and thus Connect 2.x) is dropped in July.

Bump on this. I'd like to transform jsx on request.


smbios 2.8 Formatted section length of structure MemoryDevice with handle 78 should be 40 bytes

Similarly to issue #17 this time the length enforcement in 017_memory_device leads to InvalidFormattedSectionLength errors on systems running smbios 2.8
The aforementioned enforcement requires a length of 0x28 (40 bytes), whereas the system reports a length of 0x22 (34 bytes), as shown in [1].
smbios 2.8 spec (ie: page 86) states that:

"Length of the structure, 15h for version 2.1, 1Bh for version 2.3, 1Ch for version 2.6, 22h for version 2.7, 28h for version 2.8 and later"

Not a conforming spec vs reality =\
@jcreekmore I can put out a fix to use < 0x22 instead of != 0x28 -- let me know your thoughts.
[1] Excerpt from dmidecode in smbios 2.8
# dmidecode -H 78 -u
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
54 structures occupying 2217 bytes.
Table at 0x7F4EC000.

Handle 0x004E, DMI type 17, 34 bytes
        Header and Data:
                11 22 4E 00 4C 00 FE FF 40 00 40 00 00 20 09 00
                01 02 18 80 40 40 06 03 04 05 06 02 00 00 00 00
                40 06

Closed by #22


Add web workers without ejecting & extra packages

Summary of changes
Introduce web workers and compute accordion data in a worker (async, not in the main process). Since Webpack 5 web workers are supported by default, not requiring any external package or change in the Webpack configuration. Further changes:

Web worker can run out of memory with big files, such error is caught and the computation is then performed as fallback on main,
jest does not support web workers yet, therefore they need to be mocked in the test. The mock just throws an error in the worker and triggers the fallback computation on main.

Context and reason for change
The app gets stuck for a while when clicking on a folder with a lot of signals inside. Web workers allow to calculate the accordion faster, meanwhile leaving the main process free to process user input.
How can the changes be tested
Open keycloak input and navigate away from the root folder (somewhere where there is an attribution). Then click on the root folder. On the right and above the accordion the UI will change instantly, meanwhile the old accordion will be shown until the new one is ready.
The fallback path can be tested using the ORT input file.

Just did a quick performance test with the build version. Opening the root folder of a huge app:
Before: 800ms (total) = approx 1s
Now: 260ms (to display the root folders attributions) + 1100ms (load package panels) + approx 700ms (idle) = approx 2s


Fix the bugs in documentation for 0.2.0

Fixes #284 #289

Merging!

This PR could have fixed #285 also.


Add google analytics to everything.

Done...might need to change how I structured the categories, labels, and action event. I think I will wait till I get some data collected, and see how the current structure works for generating stats.


UX Improvement. List admins after create/update/delete admin

I was facing this issue while testing PR #101.
After creating/editing/deleting an admin, the app returns me to users view listing students instead of admins. It's really frustrating to delete/edit multiple admins and It's difficult to keep track of your last action.
Current behavior:

Expected behavior:

(When user creates/updates/deletes admin, he gets the list of admins)

Okay, I'll modify the popup.


Request Template Formatting

How do you specify some of the API Gateway nuances in the requestTemplates property?
I currently am trying this:
              "requestTemplates": {
                    "application/json": {
                        "access_token": "$input.params('access_token')",
                        "body": "$input.json('$')"
                    }
                }

Which results in this error:
ERROR - Error importing API from Swagger
com.amazonaws.services.apigateway.model.BadRequestException: Start of structure or map found where not expected. (Service: null; Status Code: 400; Error Code: null; Request ID: 16cc9814-2ff8-11e5-8525-3dcdef97b04b)

Further, I'm worried the $input.json('$') property won't work with quotes around it, since this has been the case when manually inputting $input.json('$') in the API Gateway Web Console

You would need to string escape the template like so:
...
 "requestTemplates" : {
                        "application/json" : "{\"access_token\":\"$input.params('access_token')\",\"body\":\"$input.json('$')\"}",
...

We're open to suggestions for ways to improve this.


Added typescript typings

Closes https://github.com/zsajjad/react-native-text-detector/issues/16

Thanks 👍

Could this get released please? :)

Just checking in if anything changed.


Upgrade to Prometheus v1.6.3.

Reason
This version includes:

github.com/prometheus/prometheus/issues/2656
github.com/prometheus/prometheus/pull/2731

which may contribute to the issue we are observing.
Steps followed
Command run:
dep ensure<EMAIL_ADDRESS>
However, dep upgraded transitive dependencies to a different version than the one 1.6.3 is using, so then:

manually edited Gopkg.lock
set revision = "75b8dd260ef0469d96d578705a87cffd0e09dab8" for name = "k8s.io/apimachinery"
set revision = "3627aeb7d4f6ade38f995d2c923e459146493c7e" for name = "k8s.io/client-go"
then, ran dep ensure
finally, ran dep prune

There may be a better way to do this, but I am unfamiliar with dep, so please let me know the best way to proceed if you know it.

Compiles fine on my machine, breaks in CircleCI, despite "util/flowcontrol" definitely being in k8s.io/client-go's packages. However, #492 seems to have resolved the issue, so closing this PR for now.


nixos-version: Add missing options

nixos-version was missing the --configuration-revision and --json options. I'm not a zsh user; I have not tested this. I thought it made sense to update this here while I was already doing the same on nix-bash-completions#27

Thanks for your submission/bringing this issue up, sadly it was not working as expected so I did my best to fix it - completion looks now like this:

I would appreciate one review/tester before I go ahead and merge ✌🏻

// cc @theesm @Mic92

// cc @theesm (can't add you as reviewer) @Mic92

What do you want me to do? A review?

If you like to, but mainly I was marking you also because of the issue with @theesm as he wanted to join as well/had contact with you in #44


Split core/support into separate modules.

Some people (although I don't know why) might not use the support libraries for various reasons, so modularise this to remove the need for dependencies if I.e. someone only wants it for the core Android ListView.

Closing, ListView and GridView are deprecated, and it's not worth the effort of splitting modules up just for ScrollView/HorizontalScrollView.


is there a way to access all the spine items without loading each of them to iframe?

I am trying to build a pagination system.
theoretically, I can iterate all the spine item and compute the width of the body inside the iframe and then calculate how many pages one spine item has. But in reality, the fresh state of the browser tab is really annoying. Whenever a iframe is loaded to the page, the browser will refresh the favicon in the browser tab.
Now, I am dong it like this:
in side the window.ReadiumSDK.Events.CONTENT_DOCUMENT_LOADED event
 if (!spineItem.spine.isLastItem()) {  var nextSpineItem = spineItem.spine.nextItem(spineItem); this.readium.reader.openSpineItemPage(nextSpineItem.idref, 0);
I wonder whether I can access to all the spine items without rendering them to the iframe one after another. Or, whether I can render them to cerntain DIVs all at once, and then iterate the iframes that already rendered. Either way it can aviods loading the iframe again and again, trigering the refresh state of the browser again and again.
I even tried to  render the book to a detached element node, but failed. I guess it is impossible due to the way readium works.
Please help, thanks.

I suppose the answer to this issue: https://github.com/readium/readium-js/issues/174
...applies here too.
But, this in itself doesn't solve the problem of calculating / estimating the total number of pages in a reflowable publication (which of course varies depending on user-selected font size, etc.).
I am afraid there is no off-the-shelf support for this in ReadiumJS (or ReadiumSDK).


Augury not recognizing apps with custom elements

-- please install the Augury Canary Build Chrome extension, as this will be used to test any new features or bug fixes.
Augury version (required): 1.23.0
Angular version (required): 7.2.13
Date: 2019-04-26
OS: MacOS Mojave 10.14.4 (18E226)
-- Please make sure you're using the latest version of Augury before reporting an issue.
Demo test application:
-- Git repository for demo app showing the issue (optional but very helpful for difficult issues).
-- If a code snippet will completely show the issue, please include it.
Description of issue:
-- Include (clipped) screenshot images if possible.
Sometime I'm getting the "This application is not an Angular application. This application cannot be inspected using Augury." message, other times I get the normal view just without any components, etc. listed.
We recently switched to using ng cli for builds, we had previously been using webpack to build our app which was a hybrid Angular/React app. It used React in some places, and Angular in others. We switched to just Angular/vanilla JS, and so started using ng cli to build. However, after doing this, we've noticed that Augury no longer works on our local environments with ng build --watch and upgrading to Angular 7+.
Our app isn't an SPA, but just has partial takeovers in varying areas of the app. This is why we've gone with using @angular/elements to allow us to use custom elements and not have to switch to a full-page takeover.
I'm not 100% if the issue is that we're using custom elements and Augury can't hook into this, or if it's because we upgraded from Angular 6 to 7. I do know that, before both switches (custom elements & Angular 7) that Augury worked for most elements. The exception being modals from ngbootstrap/material, which I'm assuming it didn't recognize because it's outside the main scope.
I'm assuming the issue with modals might be the same issue we're seeing, as I believe custom elements are handled differently similarly to how modals are. i.e. outside the main component root tree.
Our app does load with a singular root module, the same way any Angular app does, so I'm kinda confused as to why we're seeing the "This application is not an Angular application." message.
Apologies for the lengthly description vs. providing an example. I will try to provide an actual example in the near future.

@trickeyone - Thanks for the detailed description. This is most likely related to #1380 and entryComponents not working correctly. Will need to do a bigger pass on entry components & elements in general.

Closing it as it's being tracked in https://github.com/rangle/augury/issues/1380


No right-to-left

There is no support for right to left layouts like Arabic Language

You can easily implement right to left by forcing it.
This is the way i do it.
if Localize.currentLanguage() == "ar" {

            UIView.appearance().semanticContentAttribute = .forceRightToLeft
 }

@keegho Your approach is not recommended by Apple

also  it wont work on UITextFiled  alignment  :(

@keegho 's approach is correct and I use the same every time if RTL UI is required for my app. @embassem for UITextField we have to set the textAlignment.


manifest: Update openthread.

This commit updates openthread to b21e99b.
Secondly this commit aligns history of openthread to Vanilla version 1:1.

@canisLupus1313 could you add the new OT commit has to the commit name?


Scroll to top of page when going forward with page navigation

If on mobile, one has to scroll back up to the top after every page turn.

The animation for scrolling to top of page after clicking "next page" is odd. It is loading the new page after scrolling up. It would be nicer to immediately delete/fade away the current page and insert the new page without any scroll change.
Originally posted by @bhajneet in https://github.com/ShabadOS/database-viewer/pull/57#issuecomment-502707430

Would like to see previous text fade out linearly in 125ms before new page is loaded.

I put in 200ms, feel free to adjust down to 125 if it's too long


[otbn] Make Python model discoverable for out-of-tree simulation runs

In CI, we use the Verilator simulation from a build artifact (distribution) directory which isn't inside the source tree. This breaks an assumption in OTBN's ISSModel class:
DEBUG    root:utils.py:362 Error when constructing ISS wrapper: Cannot find a git top-level directory containing /home/vsts/work/1/a/build-bin/hw/top_earlgrey/Vtop_earlgrey_verilator.
DEBUG    root:utils.py:362
DEBUG    root:utils.py:362 Vtop_earlgrey_verilator: ../src/lowrisc_ip_otbn_0.1/dv/model/otbn_model.cc:518: unsigned int otbn_model_step(ISSWrapper*, const char*, unsigned int, const char*, unsigned int, const char*, svLogic, unsigned int, unsigned int): Assertion `model && imem_scope && dmem_scope && design_scope' failed.

The same problem will apply to anyone trying to use binary releases of OpenTitan.
Multiple solutions exist, such as packaging the simulator as proper Python package (see #3036) and ideally also including it in the distribution (which will then use $PATH for discovery), or implementing more logic into ISSModel to honor $REPO_TOP (which is set to the repository toplevel in CI runs through util/build_consts.sh, and continuing to use the ISS Python code directly from the source tree.
@rswarbrick

Are there any paths that our generated binaries know how to find? (Like an "install prefix", which might point into the build-bin directory). If so, I propose we use such a path and add a symlink somewhere that we can resolve through it. I really don't like the idea of hacking on the user's environment (as we discussed before), so would much prefer something less fragile.

I'm also ok with including otbnsim in the distribution, but would like the code to find it explicitly in that case, rather than relying on $PATH.

At Google, there is a limitation on how simulations are run (all files required to run a simulation are required to be copied over to a separate storage area on the network visible to the compute machines that invoke VCS / Xcelium). I presume the OTBN ISS, which needs to run inline with the simulation also needs to be a part of this data set (which I guess is what you mean by 'distribution'?). If otbnsim has other dependencies on things in-tree, then those would have to be moved too relative to it (not sure if there is, just making sure). Unfortunately, symlinks are not suitable either. With DVSim, we specify a scratch_root path which is where all build and run artifacts are created, so that becomes the anchor for finding things. Perhaps the same can be done for Verilator based sims as well? My apologies if I've misunderstood something.

That makes sense. Looks like we'll have to do "proper distribution" for otbnsim.
Just out of interest, why don't you copy the entire OT tree onto the compute workers? It's only ~100MiB (if you skip .git), which is probably peanuts compared to the NFS traffic you'll get from running VCS / Xcelium.

That makes sense. Looks like we'll have to do "proper distribution" for otbnsim.
Just out of interest, why don't you copy the entire OT tree onto the compute workers? It's only ~100MiB (if you skip .git), which is probably peanuts compared to the NFS traffic you'll get from running VCS / Xcelium.

Yes, that's true. I'd been hesitant to do that thus far (we'd be copying a whole bunch of things that are irrelevant to the simulation), but I guess that would be the most robust solution. I suppose the size is small enough even for people running sims on their laptops / local workstations that the copy (with update) operation does not make a huge dent on the run time.

Oof, this is going to be difficult if we really don't want to execute from the source tree. At the moment, otbnsim has a dependency on the shared utility code in hw/ip/otbn/util, which is not a problem. But it also runs reggen. Do we really want to try to package all of this stuff up?


update rebar.lock

This was missed when pbkdf2 was added and esockd was updated.
mochiweb silently got an update, which I wouldn't have realised
if not for this.
/cc @emqplus

Also I should have checked, accidentally pushed the branch to this repo instead of my fork. Hope you don'tmind.
I also noticed that the travis builds are allfailing since pbkdf2 was added. Why is that?

FYI, I just did a rebar3 upgrade in the repo. This will make sure that rebar.lock matches what will be fetched by following dependencies listed in rebar.config. rebar.config itself is updated by erlang.mk.


--file-margins styling is breaking banners plugin

Is the bug present when using the default Obsidian theme?
Yes
Is the bug present when snippets and plugins are disabled?
No
Minimal theme version
7.6.4
Describe the bug
Basically
--file-margins: var(--size-4-2) var(--size-4-12)

Breaks any use of css styling for banners that use calc() alongside the var(--file-margins)
Where by default --file-margins is a single value, styling that expects a single ultimate value will break if there are css calculations involving --file-margins from the minimal theme.
I've made a quick css snippet workaround in the link below:
https://github.com/noatpad/obsidian-banners/issues/146#issuecomment-1874767994
Note: System debug info says 12 snippets are enabled, this not the case, all are disabled but I have 12 snippets in the folder.
Debug info
SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.4.16
Operating system: Windows 10 Home 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Minimal v7.4.6
Snippets enabled: 12
Restricted mode: off
Plugins installed: 33
Plugins enabled: 1
1: Banners v2.0.5-beta
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

File margins is a theming variable so this should be reported on the banners plugin, since other themes may also choose to override it.


Issue with API version

We've just tried installing the extension and setting it up on Firebase and RevenueCat, unfortunately the Cloud Function is throwing the following error:
InvalidApiVersionError: The version of this extension is not the same. Extension version 0.1.1, Api version: 0.1.0. Please retry the request with the correct version

We have contacted RevenueCat support but this might be faster, thanks.

Hi @diego-paired,
Thanks for bringing up this issue. The backend should be able to update the version automatically. While we look into it, I have upgraded the version for you.
Could you let me know if it's now working?

@alfondotnet all working now, thanks


Memory leak to be solved in the future

I'm unable to solve a memory leak on Windows trying to take photos. I guess it's a bug from the Firemonkey libary, but I couldn't find any way to fix it.

Issue solved when I compiled the app on Delphi 10.4.2


Windows Unicode Fail?

Implementing yasl testing for Windows and found that the following test script is failing to display correctly:
PS C:\Users\ryco1\Desktop\New folder> .\yasl.exe test\inputs\list\tostr.yasl
[{accountName: root, nickname: Cumulus, peerId: QmWV77RTC7cwMPbPBfCbP68JGPt5ta8qPyiCWsUNZsXvpo, groups: [πâæπâ│:0]},
{accountName: root, nickname: Myself, peerId: QmemJHsMDuBjUCAyiWeVdct2LGHqtZhu8QQCt8ZQVbY1qz, groups: [πâæπâ│:0]}]

Note that the text in the groups shows as [πâæπâ│:0] but should be [パン:0]

Extending on this issue, inputting UTF-8 into the yasl.exe REPL seems to be a related but different underlying cause. But the first issue described in this thread will be resolved by #463

Any idea on what to do for the yasl.exe REPL?


🆕 Software Suggestion | custom android ROM crdroid

Basic Information
crDroid is a customized fork of Android based on LineageOS.
crDroid:
** Android-based Operating Systems:**
https://crdroid.net/:
Description
They claim increase privacy of our users with top-notch security options
Why I am making the suggestion
because of i think it's better than LineageOS and have support More mobile in list devices
My connection with the software
Just for the sake of  mobile support and further security claims

List the main advantages of crdroid over Lineage OS. If this firmware is based on Lineage OS, why does it suddenly support more devices?

https://stats.crdroid.net/ so they do collect data on their users. There is a mention of a privacy policy but I cannot find it. Stats are not opt-in. Also wonder why they didn't contribute to Lineage-OS instead of creating yet another unofficial build.

I tried out crDroid on an old phone I had lying around in order to compare it to LineageOS (which I've used for about a year now). Here's my two cents on the pros and cons of crDroid, for what it's worth:
PROS:

Appears to support more devices than LineageOS, according to their website.
The look and feel is very similar to LineageOS, but crDroid has more customization options.

NEUTRAL:

Is up-to-date with the latest security patches, just like LineageOS.
Analytics are opt-in via an option in Settings, unlike what some other comments in this thread seem to suggest (see image below).
Both LineageOS and crDroid break Verified Boot, an important security feature implemented in some phones (most notably Pixel devices). If I had a choice, I wouldn't use either.

CONS:

Signature spoofing is enabled as a permission for all apps. While as experienced users we know to NEVER grant any app that permission (except maybe MicroG after you've verified the signatures some other way), less experienced users might accidentally grant that very dangerous permission to a malicious app, which would compromise the integrity of the Android security model. LineageOS does not implement signature spoofing and therefore does not have this problem.
Debug mode is enabled, on by default, and allows connections from any computer without a confirmation dialog! This allows anyone with adb and a USB cable to install arbitrary apps, run arbitrary shell commands on your phone, steal photos and other data from internal storage, and maybe even get root access without the need to unlock your phone. Worst of all, there's no way to turn it off unless you do some really hacky things with adb, which the average user would not know how to do. Needless to say, this is a large con in the security and privacy of the software. Unlike crDroid, LineageOS has debug mode off by default to keep your phone secure.
Unlike LineageOS, where the privacy policy is under a clearly labelled "Legal" page on the website, the privacy policy on crDroid's website is either nonexistent or extremely difficult to find, which does not bode well for them. Those interested could always email the developers, however.
Not sure if it's just my device getting older, but crDroid seems a bit slower than LineageOS when freshly flashed onto my phone.

Not to mean any offense (as I'm sure you have your reasons for submitting this software), but I fail to see the advantages that crDroid offers over LineageOS in regards to privacy and security. To be honest, most of the cons revolve around privacy and security, and the pros aren't particularly important for experienced users. For example, power users could just compile LineageOS from source if their device wasn't officially supported and apply customizations to their device through Xposed or Masigk.

Glad to see stats are opt-in unlike described in the legal section. I have high doubts about the trustworthiness of this ROM. The security problems described by @EIAWsWRm are huge. A ROM like that should not be used by an average user.

Policy FYI
https://crdroid.net/legal.php

I don't remember if USB Debugging comes enabled out of the box or not but there's always a confirmation dialog. Also once the permission been granted it still asks for confirmation after a while.


Ability to remove Safe/Presentation mode from Jump List

I don't personally have any need to ever launch VS in presentation mode or safe mode. For me, these new options in the jump list are adding too much clutter.
Could we have an option to prevent these new items from being in the list?

In light of #18, I would like an option to completely disable messing around with the jump list.


Azure archive recovery for read-only Oak process

https://issues.apache.org/jira/browse/OAK-9914

@jsedding, thanks. Let's further discuss this in JIRA.


library not found for -lRNSpeechToTextIos

Issue of @Arafath-misree

Guys does this support latest version of react-native i am getting an error ld: library not found for -lRNSpeechToTextIos
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@Arafath-misree
Do you have further information? Which react-native version do you use?

I just scaffolded up a new project (create-react-native-app > eject) and am having this issue as well. React Native 0.48.4.
I'm new to this who ecosystem, but let me know if I can do anything to help track down / reproduce the issue.

Update: I manually linked in the RNSpeechToTextIos library (following the directions from https://facebook.github.io/react-native/docs/linking-libraries-ios.html) and it's working fine now.

Tnanks for your update. I added the linking step for react-native-speech-to-text-ios in the redme.


add a LangGraph example via FastAPI 20240715

To use LangGraph or LangChain, we build a FastAPI web service.Then we can call this service in openwebui-pipelines

I appreciate your work, pipelines truly give us the ability to customize any LLM application.
And I hope that in the future I can contribute ideas and code to create better communities and applications.

This is EXACTLY what I was working to build!!!  This is so powerful!
Bless you!!

Wait - why closed and not merged?
I am currently working towards exactly this use-case.

Pipelines are to be self-contained in a single file.

Got it - I was going to fork the pipeline repo and bring in all my agent code, but I think I won't now after doing more digging.  I'll continue to keep my pipeline module very simple and run my LangGraph agent as a FastAPI endpoint that the pipeline will call.


Potential AppVeyor CI issue?

i'm getting AppVeyor build failures in a PR for my language grammar: jugglingnutcase/language-powershell#33. You can see the full build log for one of the failing commits in this link, but here's a relevant snippet:
cd %APPVEYOR_BUILD_FOLDER%
apm install
'apm' is not recognized as an internal or external command,
operable program or batch file.
Command exited with code 1

i have experienced a number of these failures and have yet to find one that has failed within the past few days for any other reason. i would expect that apm would be found after a chocolately install, especially because the appveyor file is up-to-date with what atom/ci suggests.
It was working until recently, and the only other package in the atom org that i could find atom/fuzzaldrin using an Appveyor.yml file doesn't have any recent builds.
i'm not sure if this is the right place to report this, i checked atom/ci, but i think that this issue may be more relevant here.
If i can be more helpful, please let me know. i've made a couple attempts to track down why this is happening, but they've been fruitless.

Would you mind trying something for me?
Can you try using this appveyor.yml and see if it works?
I was testing out a fix on that package but for some reason my build is just showing as infinitely queued, https://ci.appveyor.com/project/kevinsawicki/wrap-guide/build/3

Yeah, I don't mind doing that. I'll let you know how it goes.
I noticed you had infinite builds too, queued up for months IIRC! Weird.

On Jan 27, 2015, at 5:27 PM, Kevin Sawicki<EMAIL_ADDRESS>wrote:
Would you mind trying something for me?
Can you try using this appveyor.yml and see if it works?
I was testing out a fix on that package but for some reason my build is just showing as infinitely queued, https://ci.appveyor.com/project/kevinsawicki/wrap-guide/build/3
—
Reply to this email directly or view it on GitHub.

Looks much better, here's a successful build with your suggested appveyor.yml file.

Okay, 0.177 came out today with some apm test fixes and so if you use the new template from https://github.com/atom/ci/blob/master/appveyor.yml things should properly build/test now.

Thanks! :+1:


#333 convert favourites to kotlin

Using MVI architecture here.
Pls test this as I was not able to do it due to lack of sample data although I have added some unit tests.

:x: thanks for your contribution, we really appreciate the effort you put in this, but unfortunately we cannot introduce an unrelated architecture into the project.
While MVI might have its merits, nobody on the fire team is confident in using it and this change would be more a problem than an improvement over the current situation.  My bad for not making this clear in contribution guidance, I apologise. I will write guidelines as soon as possible to avoid this unfortunate circumstance in the future.
Thanks again for the PR, I hope we'll be able to salvage some of your code!

@rock3r No problem buddy. I really feel the app can benefit from having some architecture and unit tests in the long run. Which architecture are you guys planning on going forward with in the app?

I feel like we'll likely be using MVP, mostly because it's simple enough and almost everyone is familiar with it. I absolutely agree that we need architecture and tests — we don't have many simply because most of the app was hacked together on a very short timeframe. We will have to rewrite a significative amount of business logic code when migrating to Firestore and I believe that'll be a good point to start writing with testability in mind. If you want to convert this to MVP I'd be very happy to help you get it through!

Well I could convert to MVP with some modifications. Do u want me to continue it in this PR?

Sure, feel free to reopen when you are done! Thanks a lot for the understanding and your contributions :)
PS: we've also considered Redux as a paradigm but @fourlastor is the only one that is familiar with it in the core team and since we don't really have much bandwidth to add yet another (partly) unfamiliar tool to the dev workflow, MVP is a safer bet right now. The Flutter app will be an interesting challenge tho, given Flutter is a reactive framework that might lend itself well to this sort of situations...


GULAppDelegateSwizzler - proxy APNS methods separately

Fixes #2807

separate proxying of the APNs related methods (see method + [GULAppDelegateSwizzler proxyOriginalDelegateRemoteNotificationMethods])
don't swizzle APNs related methods until explicitly requested
use NSSelectorFromString and NSInvocation to avoid the Apple review warning
Messaging updated
Auth updated
Documentation comments and README updated

Looks like the build failure is caused by #2851 and is not related to the PR


Groups: Added the index parameter to the end of the parameter list for group forEach

Important: Pull Requests should only be issued against the dev branch. PRs against the master branch will always be closed.
This PR changes (delete as applicable)

Documentation
The public-facing API

Describe the changes below:
This fulfills the request at the following issue: https://github.com/photonstorm/phaser/issues/2815
Sorry about the whitespace -- looks like your editorconfig asks for it to be trimmed so my editor decided to do as it's told. ;)

Thank you for your PR! Today I released Phaser CE (Community Edition). This is my way of opening up Phaser 2 to the community, allowing you to control features and updates directly. Please see the README in the v2-community folder of the repo for more details about this change.
If you could please re-submit your PR against the new Phaser CE version then I will merge it immediately :) Note that PRs now go against the master branch, and don't forget to add your change to the README too!


Move prepare db to migration from MigrationBuilder to MigrationService

Q
A

Is bugfix?
✔/❌

New feature?
❌

Breaks BC?
❌

Fixed issues
-

waiting https://github.com/yiisoft/db/pull/212

waiting https://github.com/yiisoft/db/pull/212

@vjik remove comment //, and adjust the PR to merge it.

@vjik remove comment //, and adjust the PR to merge it.

👍

👍


@invertase/bq release patch

Codecov Report

Merging #894 (0068bc7) into next (a34ea63) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 0068bc7 differs from pull request most recent head 5dc8053. Consider uploading reports for the commit 5dc8053 to get more accurate results

@@           Coverage Diff           @@
##             next     #894   +/-   ##
=======================================
  Coverage   46.34%   46.34%
=======================================
  Files          34       34
  Lines        1472     1472
  Branches      217      217
=======================================
  Hits          682      682
  Misses        789      789
  Partials        1        1


Fix for tapping on a push notification on android

Description
This is a fix for tapping on a push notification. Currently it is not handled properly if the app was backgrounded via the back button on android or swiped away (killed state).
We were setting up firebase too early in the app lifecycle. The firebase messaging setup needs to happen in sync with the App component because intents on android travel through Activities. This is mentioned briefly in the documentation here: https://rnfirebase.io/messaging/notifications
The call to getInitialNotification should happen within a React lifecycle method after mounting (e.g. componentDidMount or useEffect). If it's called too soon (e.g. within a class constructor or global scope), the notification data may not be available.
Tested
On an android emulator using the push script then tapping on the notification to see if the webview shows up.
Here are the different scenarios tested.

Start app, send push notice blue notification bar shows up at the top with the notification message.
Kill app (swipe away), send push, tap on it from the android status bar, make sure the app opens and navigates to the webview.
Open app, press android home button (app goes to background but main activity is paused not destroyed), send push, tap on it, make sure webview opens.
Open app, press android back button (app goes to background with main activity destroyed), send push, tap on it, make sure webview opens.

I also made sure there aren't any obvious leaks in either the channel use to listen for notifications or the callbacks by printing and pressing back and reopening the app to make sure there aren't multiple. But I am not entirely sure if the cleanup is properly done, so hopefully someone can confirm.
Added a new e2e test that simulates opening the app from a notification. It is currently disabled because circle ci does not support firebase yet. It runs successfully locally and hopefully soon @non-binary and @MuckT will help support firebase on CI.
Related issues

Fixes #161

Backwards compatibility
Yes.

Hey @etuleu I have verified this issue using Android internal build V1.13.0<PHONE_NUMBER>) & observed following:
Observations:

User able to receive Blue push notification & user able to redirect to celo.org web view page after tapping on it when app is foregrounded. Also it is observed that, continuous loading indicator not displayed after tapping on received blue notification. Attachment
User able to receive push notification & user redirect to celo.org web view page after tapping on it without loading indicator when app is running in background using home button on android emulator.
User able to receive push notification & user redirect to celo.org web view page after tapping on it without loading indicator when app is running in background using Back button on android emulator. Also we have observed that app takes some time (~5sec) on logo page & then redirect to web view. Attachment
User able to receive push notification & user redirect to celo.org web view page after tapping on it without loading indicator when app was swiped away(kill). Also it is observed that app takes same as 5 sec on logo page & now user gets first redirect to Home screen and after 20 second user redirect to web view. Attachment

Verified On Devices: Samsung Galaxy A5(7.0)
Thanks..!!


A function is not in the original model

https://github.com/mileyan/pseudo-LiDAR_e2e/blob/739263581ca8d59f2b269c9004c493aacae117e0/PointRCNN/depth_network/models/stackhourglass.py#L108
what is the purpose of warp function in the Pseudo Lidar code, this function wasn't in the original psmnet
@rui1996 @mileyan

@mileyan @YurongYou Can you help with this issue?


Add type aliases

Problem
Noir has no way to abbreviate types which can be problematic especially for generic or function types which tend to be larger.
Solution
Add type aliases using the same syntax as rust - noir has no need to innovate here.
type Point = (Field, Field);
type Eq<T> = fn(T, T) -> bool;
type Index = comptime Field;

// Aliases can then be used anywhere a type is expected
fn array_eq<Elem>(array1: [Elem], array2: [Elem], elem_eq: Eq<Elem>) -> bool {
    let len = std::array::len(array1);
    if len != std::array::len(array2) {
        false
    } else {
        let mut eq = true;
        for i in 0 .. len {
            eq &= elem_eq(array1[i], array2[i]);
        }
        eq
    }
}

Alternatives considered

Additional context

@Ethan-000 good catch. Not sure why I didn't catch that when searching beforehand. I've closed the older issue since this one has slightly more detail.

@jfecher and @Ethan-000 what was the status of PR 817?


Added FileHandler.h

Added FileHandler.h

You also need to add the actual methods to FileHandler.cpp, otherwise the program will not compile. Remember to always test the solution before submitting PR.

I noticed you actually created a new PR for the other file, these would need to be combined, since they are the same task.

Just as a reminder, bot will close this PR in two days if you don't respond to the review. Reason being to get rid of any unnecessary pull requests hanging in the repo for a long time.

Closed due no response to the review.


Taiko Sceencast plugin:

[x] Plugin load
[x] Todos

Did a sanity check after code changes. Its working as excepted.


wasm: pass keys in as parameters to ConnectServer

In this commit, the way in which the local and remote keys are specified
is changed. Instead of passing them in as command line arguments to the
binary, they are instead passed in as parameters to the ConnectServer
function.

cc @jamaljsr

Related lnc-web PR https://github.com/lightninglabs/lnc-web/pull/20

Hey @ellemouton, absolutely impressive turnaround time on this update. This is a big deal for lnc-web, so thank you for the update.
I just have one request/question that I'd like to run by you and @kaloudis. Do y'all this it would be better to have two separate connect functions? One to connectWithPhrase for the first handshake and one to connectWithKeys for the subsequent handshakes. This isn't a huge deal but I think it improves the design of the API. It feels a bit strange passing in empty strings for the phrase or keys depending on which data the caller has. Any thoughts on this?

Do y'all this it would be better to have two separate connect functions? One to connectWithPhrase for the first handshake and one to connectWithKeys for the subsequent handshakes.

I can definitely change the API to have these 2 separate functions rather but all that does is move the decision making point of which handshake we are going to do from the go binary to the thing calling it. The current API is designed such that the caller does not need to worry about which handshake we are going to do, as long as they provide a remote key if one is stored, then all will work. Like in the example client, i initialise remoteKey as an empty string and then if one is stored in local storage, the variable gets populated. But the same variable gets passed to the ConnectServer function either way.
But maybe there is some context I am missing? Let me know, I can definitely change things around if needed. But yeah, ideally dont want the user to really need to worry about which handshake we are doing

I can definitely change the API to have these 2 separate functions rather but all that does is move the decision making point of which handshake we are going to do from the go binary to the thing calling it. The current API is designed such that the caller does not need to worry about which handshake we are going to do, as long as they provide a remote key if one is stored, then all will work. Like in the example client, i initialise remoteKey as an empty string and then if one is stored in local storage, the variable gets populated. But the same variable gets passed to the ConnectServer function either way.
But maybe there is some context I am missing? Let me know, I can definitely change things around if needed. But yeah, ideally dont want the user to really need to worry about which handshake we are doing

Ah ok, thanks for the rationale. Now I understand why it is designed this way.
I guess maybe this is more of a discussion for the API of lnc-web because that library has the capability of managing the keys for the app. It seems to me that the app will always have to determine whether we are using the first handshake or the second because it needs to prompt the user to enter a pairing phrase if the keys are not available. So the code path has to diverge depending on the current situation. To use an analogy, it feels like the difference between Register versus Login. This is indeed an app-level concern it's fair to keep LNC ConnectServer as is.

ah! ok yeah makes sense. Cool but let me know, am happy to add the option if it will make lives easier :)


How to use more than one connector (connectorId:2)

Hello Matthias,
Thank you very much for this library,
I want to use two connectors.  Is it possible to use more than one connector using this library?

Hi @dipankarkhartad
Here's an explanation how to use multiple conntectors: https://github.com/matth-x/ArduinoOcpp/issues/114#issuecomment-1415820156

Thank you very much for your response.
On Tue, 14 Mar, 2023, 4:56 pm Matthias Akstaller, @.***>
wrote:

Closed #123 https://github.com/matth-x/ArduinoOcpp/issues/123 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/matth-x/ArduinoOcpp/issues/123#event-8742401292, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AUUKPU5I7NRMAJURFKYXNSTW4BIXDANCNFSM6AAAAAAVX6B4YE
.
You are receiving this because you were mentioned.Message ID:
@.***>


wio-terminal-ei-1.4.0.uf2 timeout issue

Hi, I used wio-terminal-ei-1.4.0.uf2 for uploading my accelerometer data on edge impulse. The first few samples uploaded successfully, but it showed timeout error afterwards. I'm not sure what is the problem is.
https://github.com/Seeed-Studio/Seeed_Arduino_edgeimpulse/releases/tag/1.4.0

@0hotpotman0  any idea ?


Connection problem

Hi, i made docker run -d -p 2222:22 -p 8728:8728 -p 8729:8729 -p 5900:5900 -ti ros and can connect via ssh to localhost but i can not connect by winbox.

Hello! For enabling winbox you need first to go to ROS via ssh of via web and turn on winbox service via ROS system settings.

/ip service enable winbox

Enabled  winbox service  8291 <IP_ADDRESS>/32 but still can not connect via winbox. Should i firstly create new login\pass for connection?

Of course, without it ssh and winbox won't work

Hmm, i changed default login\pass but still can not connect using winbox. May be could you write the steps, what should i do to connect via winbox after docker run?

Btw, did you specified this port in settings of docker compose?
version: "3"

services:

  routeros:
    image: evilfreelancer/docker-routeros:latest
    restart: unless-stopped
    ports:
      - "2222:22"
      - "2223:23"
      - "7777:80"
      - "8291:8291"
      - "8728:8728"
      - "8729:8729"

And btw, in your command

docker run -d -p 2222:22 -p 8728:8728 -p 8729:8729 -p 5900:5900 -ti ros
i don't see the winbox port 8291

No, i'm not. That's my fault. Only run docker with ports like in example.

I've not added this port to readme just in case, because people who not know docker in details may run it on production environment and be hacked, and how to open a port always can ask in google or from experienced people )) so, you've got solution? Issue may be closed, right?

Hello! Repo was updated, i've added couple features, now possible to use internet from routeros in docker and map any port, please use at least evilfreelancer/docker-routeros:6.46.5

Hello! I immediately began to test as soon as i got to the pc. Now i can easily connect and use winbox. Thank you very much.

Hello! I am glad that everything worked for you :)


Bluetooth: smp: Added Legacy only pairing and Legacy OOB pairing support

This PR aims to close issue #2585

Added public API in conn.h as bt_le_oob_set_legacy_tk(u8_t *tk)
Added new Kconfig options:

CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY to force usage of legacy OOB pairing and free up memory

CONFIG_BT_SMP_DISABLE_LEGACY_JW_PASSKEY to forbid the usage of the insecure legacy pairing methods

I'm fine with adding legacy OOB pairing as a new feature, but making it possible to disable Secure Connections support is something that requires some really good justification. We might as well call that option BT_MAKE_MY_PRODUCT_INSECURE. Is it even possible to qualify such a product?

To follow up on my previous comment: the only scenario that I could consider eliminating SC code is if that would only permit legacy OOB pairing (which I assume can be made secure), and no other legacy method. However, I'd still urge you to check the SM ICS to verify if such a configuration is even qualifiable - I have a feeling it might not be.

The option to disable Secure Connections would allow to "force" the use of legacy OOB which is the only way of providing a 128bit long LL encryption key, which gives a lot more freedom to an advanced user/developer to use different/faster key agreement methods than DHKE which can also be properly authenticated. This can be made "secure" think of ephemeral QR codes as an example.
I will check the document.

@ivan98ams I can fix it. A couple of missing pieces.

@ivan98ams I can fix it. A couple of missing pieces.

But my debug prints show that the used Key is the one i am passing to bt_le_oob_set_legacy_tk from inside the oob_data_request callback

@jhedberg suggested changes were applied

Changes addressed, and waiting on shippable success, any other changes @jhedberg ?


keyboard shortcut for "show more"/"show all sensitive content"/content-warning expansion

Is your feature request related to a problem? Please describe.
I move through posts using keyboard shortcuts, and often come across posts that have a content warning/summary where the details are hidden behind a "Show more" link. But I can't figure out how to expand/show more/unblur the contents while using the keyboard.
Describe the solution you'd like
A separate keyboard shortcut to expand show more/show sensitive content links, or re-use of the 'x'/show-thread command to also show more/sensitive content.
Describe alternatives you've considered
I can use tab and space within a post to highlight and then activate the show more button, but I find that more confusing and harder to remember. And if you hit the spacebar when it's not highlighted, the typical behavior will scroll down away from the content that you're trying to expand.

hey i would like to take up this issue..can u pls tell me where can i see this feature on the website...there are multiple show more instances like timeline, notifications, search etc.
i would solve this issue by using a unqiue keyboard shortcut


Display of the English displayName (if available) instead of idShort

Before:

After:

@aaronzi Please have a look.
I would have expected that the build work after commit ac978f4, but throws:
Error: src/components/AppNavigation/AASList.vue(47,81): error TS2339: Property 'find' does not exist on type 'never'.
Error: src/components/AppNavigation/AASList.vue(48,55): error TS2339: Property 'find' does not exist on type 'never'.

@aaronzi Please have a look.
I would have expected that the build work after commit ac978f4, but throws:
Error: src/components/AppNavigation/AASList.vue(47,81): error TS2339: Property 'find' does not exist on type 'never'. Error: src/components/AppNavigation/AASList.vue(48,55): error TS2339: Property 'find' does not exist on type 'never'.

The displayName inside of the "find" is not the problem but the one the "find" is applied to. I would suggest using a computed property to make the HTML part cleaner and the logic more readable. Just out of curiosity, are you starting a local dev server to work on the code? This way you have a typescript type evaluation and can fix those issues very easily. If not, please take a look at the README on how to do this.
Regarding the feature you implemented @seicke, I can take this from here and include it in my next commit on Monday if you want.

@aaronzi  Thanks for your quick response and sorry for my first clumsy steps here.
You're right. Up till now I did not have ts type eval. I just started a container of your released image (v2-240227), mounted aas-gui/Frontend/aas-web-gui/src to /app/src of the container, made my adaption and everything was working well (without any errors).
Let me try another attempt.
You are welcome to take (and improve) it.

Thanks a lot for your contribution!


Cant run code on GPU -- Windows 10

i have installed CUDA v8.0 and have put the cudnn-8.0 files in my cuda program files directory and have set the bin folder of the cuda directory in my environment variables PATH.
i have installed tensorflow-gpu as per the instructions given in the tensorflow website and installed it on my anaconda which has python 3.5.2  after running the matmul example I cant get it to be run on the gpu.
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodes
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTree
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"') for unknown op: ScatterAddNdim
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') for unknown op: TopNRemove
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"') for unknown op: TreePredictions
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots
Device mapping: no known devices.
I c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\common_runtime\direct_session.cc:257] Device mapping:

I c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\common_runtime\simple_placer.cc:841] MatMul: (MatMul)/job:localhost/replica:0/task:0/cpu:0
I c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\common_runtime\simple_placer.cc:841] b: (Const)/job:localhost/replica:0/task:0/cpu:0
I c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\common_runtime\simple_placer.cc:841] a: (Const)/job:localhost/replica:0/task:0/cpu:0
MatMul: (MatMul): /job:localhost/replica:0/task:0/cpu:0
b: (Const): /job:localhost/replica:0/task:0/cpu:0
a: (Const): /job:localhost/replica:0/task:0/cpu:0
[[ 22.  28.]
 [ 49.  64.]]```

I ran the code below to get the following result:

# Creates a graph.
with tf.device('/gpu:0'):
  a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
  b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
  c = tf.matmul(a, b)
# Creates a session with log_device_placement set to True.
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
# Runs the op.
print(sess.run(c))

E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodes
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTree
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"') for unknown op: ScatterAddNdim
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') for unknown op: TopNRemove
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"') for unknown op: TreePredictions
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots
Device mapping: no known devices.
I c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\common_runtime\direct_session.cc:257] Device mapping:

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1022, in _do_call
    return fn(*args)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1000, in _run_fn
    self._extend_graph()
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1049, in _extend_graph
    self._session, graph_def.SerializeToString(), status)
  File "C:\ProgramData\Anaconda3\lib\contextlib.py", line 66, in __exit__
    next(self.gen)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status
    pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device to node 'MatMul': Could not satisfy explicit device specification '/device:GPU:0' because no devices matching that specification are registered in this process; available devices: /job:localhost/replica:0/task:0/cpu:0
	 [[Node: MatMul = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/device:GPU:0"](a, b)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/Ali J/PycharmProjects/GPU_TEST/main.py", line 11, in <module>
    print(sess.run(c))
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 767, in run
    run_metadata_ptr)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 965, in _run
    feed_dict_string, options, run_metadata)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1015, in _do_run
    target_list, options, run_metadata)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1035, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device to node 'MatMul': Could not satisfy explicit device specification '/device:GPU:0' because no devices matching that specification are registered in this process; available devices: /job:localhost/replica:0/task:0/cpu:0
	 [[Node: MatMul = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/device:GPU:0"](a, b)]]

Caused by op 'MatMul', defined at:
  File "C:/Users/Ali J/PycharmProjects/GPU_TEST/main.py", line 7, in <module>
    c = tf.matmul(a, b)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\math_ops.py", line 1765, in matmul
    a, b, transpose_a=transpose_a, transpose_b=transpose_b, name=name)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_math_ops.py", line 1454, in _mat_mul
    transpose_b=transpose_b, name=name)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 763, in apply_op
    op_def=op_def)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 2327, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1226, in __init__
    self._traceback = _extract_stack()

InvalidArgumentError (see above for traceback): Cannot assign a device to node 'MatMul': Could not satisfy explicit device specification '/device:GPU:0' because no devices matching that specification are registered in this process; available devices: /job:localhost/replica:0/task:0/cpu:0
	 [[Node: MatMul = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/device:GPU:0"](a, b)]]

Process finished with exit code 1```

pycuda works perfectly fine though

Could you please try installing Visual C++ Redistributable 2015 x64, uninstall TensorFlow then reinstall it again and follow up if it worked for you?

I have Visual C++ Redistributable 2015 x64 already installed.
Yes, I have both CPU and GPU TF installations on my machine.

Please try downloading a nightly build, uninstalling TF and installing with it.
If you want to run the with GPU support uninstall the CPU version and to toggle between CPU/GPU use:
with tf.Session() as sess:
     with tf.device("/cpu:0"):

In my second comment on this issue, i toggle onto GPU device and it crashes

Did you try with the nightly build?

i dont know how to use it to be honest

No problem. You need to click on the DEVICE=GPU then it will download a wheel that you will use to install TensorFlow with.
For instance, you downloaded the file to your home directory, you cd in the terminal to where the file is and do pip install <the-name-of-the-wheel-file>

ok but, isnt running with an official release better?

Those builds are official, the point is maybe there was a bug on the build provided by the website and the nightly build has the fix, as they update the code base and make the builds daily but didn't yet replace the url wheel.
I honestly don't have other suggestion by now and this one has solved the same problem before but feel free to wait other folks as they might have other suggestions or solutions.

omg...it worked!! thanks so much man

You're welcome. This issue can be closed now.

Thanks @Carmezim for the great support and @ajanaliz for confirming the fix!

@ajanaliz Can you tell me briefly, how could you solve the problem? I am also facing the same problem. My operating system is windows 10 and I have not installed visual studio on my this computer. Thanks in advance.


Change async waterfall to use error callback

Fixes #20. Error was getting discarded in the callback to getContextData() call.

Sorry that I didn't respond to this for so long. There was already a branch (and a published beta version) with improved error messages, so this PR is no longer necessary.
Sorry, again, for taking so long for this and then not even having good news.

Sorry that I didn't respond to this for so long. There was already a branch (and a published beta version) with improved error messages, so this PR is no longer necessary.
Sorry, again, for taking so long for this and then not even having good news.


Reflection and refraction of plane waves

This is a missing piece, and some materials are scattered (e.g. MT layered solution)
Structure will follow WH Section 3. Reflection and refraction of plane waves, but summarize gist of the context.

[x] Snell's law
[x] Fresnel equations
[ ] Wave impedance and impedance at plane interface
[x] Total reflection and Brewster angle

Note:

Should merge response of layered earth to a plane wave (Layered earth impedance)
Thought process: Bukpronong (AEM) -> Fields from inductive source (layered earth) -> Reflection and refraction

See Pull request of #351 for three items done, but third item needs to be done.
@thast is already done some work about this, but can you move current wave impedance stuff in MT to fundamentals? and make it more solid?


CON_Preferred_TDTM needs to ensure Preferred Phone works the same as Preferred Email

CON_Preferred_TDTM needs to be updated to work the same on Preferred Email AND Preferred Phone.
Right now the Email portion work perfect but the Phone piece does not.
IF you chose lets say 'Work Phone' as the preferred value but have no value in it, the trigger rolls it up to 'Phone' as blank. This is no good.
With the Email version of this, if I said 'Work Email' is preferred but the value was blank, I would atleast get a pop up that says 'Error: The email selected for Preferred Email can't be blank.'.
You need to update the trigger to do the same for Preffered Phone when vlaues blank.
Please do this asap and push the new code :)
Meghan

Thank you for reporting this @mshalley.

**lurch: add

Tracking W-028089

Steps to reproduce issue:

Create a Contact with the following fields: First Name, Last Name, Preferred Email = to any value other than 'None'. DO NOT set a value for the email selected.
Click Save

Note that you did not receive an error similar to what you would receive if you set Preferred Email to any value other than 'None' and did not set a corresponding value for the email selected for Preferred Email (i.e. "The email selected for Preferred Email can't be blank.")
What needs to happen:
When a value is set for Preferred Phone and no value has been set for that phone ensure that an error ("The phone selected for Preferred Phone can't be blank.") is displayed and will not allow the record to be created until a value is entered.
Also include similar functionality in HEDA Settings (Accounts and Contacts) that would allow a customer to "Disable Preferred Phone enforcement (Do not require Contacts to have a Preferred Phone)."

@aligeez - there is a similar request in the Power of Us Hub: https://powerofus.force.com/hub-ideas/1456

I see that this is marked as closed and was able to test this in our sandbox but still do not see this in our prod instance.  Was the prod release delayed or staggered by org or do I need to manually deploy?

I see that this is marked as closed and was able to test this in our sandbox but still do not see this in our prod instance. Was the prod release delayed or staggered by org or do I need to manually deploy?

@AndiMcLaughlin there should be a setting in EDA Settings to turn this on. Is that setting not in your org?

@AndiMcLaughlin @lifewithryan There is a little bit more needed for setup referenced in the PR https://github.com/SalesforceFoundation/EDA/pull/869:

Note: Unchecking the "Do not require Contacts to have a Preferred Phone" checkbox in an existing installation, alone, doesn't enforce the requirement to provide a value for Preferred Phone. You must also access the “Trigger Handlers” tab and make sure "CON_PreferredPhone_TDTM" is set to Active."

Side note: CCE is investigating this issue to determine why the push was not received. Per the Hub thread located here (https://powerofus.force.com/s/feed/0D51E00004c2hnASAQ) the 1.82 code was not delivered to @AndiMcLaughlin's org. Andi has since used the EDA installer to populate her org with 1.82 code.


support code block don't wrap

If one-line code is too long, it will be wrapped, how to disable it?

.md-typeset pre > code {
    word-break: keep-all;
}

I have solved this.


uhhh how can i fix this?

Describe your bug here.
uhhh idk what to say here since idk what the bug is saying
maybe a image of it can help

Command Prompt/Terminal logs (if existing)
source/Song.hx:65: characters 27-41 : Array access is not allowed on {+ length : Int }

Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
i changed the scoretxt position and disabled the function of you being able to change the rating and numscore position, i alredy did this in 0.5 pre release and it worked fine

duplicate of #2053 #2049 #2038 #2028 #2027 #2026 #2024 #2067 #2127 update your haxe.


Feature request: support for dynamically determining responders in opsgenie configuration

Alertmanager v0.18.0 moved from team field to responders for alert routing in opsgenie.
Having team field was useful for an use case where teams were determined dynamically after the alert fired, but before the alert was sent to opsgenie. If the list of teams responsible for the alert is not know before the alert is created, responders approach is not useful.
Something along the lines of the following solution would be much appreciated:

#names contain comma separated list of teams

responders:
 - names: <tmpl_string>
   type: teams

any updates?

@simonpasquier This seems like a very fair usecase/request and it was possible to do it before the migration. We've been using the previous alertmanager for the same reason, it'd be nice if we could get the same featureset in the newer version as well.

I agree but I'm not sure yet how it should translate in the configuration file. Splitting unconditionally on commas seems a bit rough.

Any updates?

We needs this feature too.
It will be good to determine responders list when alert is created.

Can we expect this to be implemented?

Is there anything missing from #2685 that prevents this issue from being closed?


Misleading image

In the below image, "classical bits" are being represented by a Bloch sphere with a non-classical statevector, i.e a statevector not at the poles.

@nonhermitian would something similar to this suffice?

Bear in mind the image will be redrawn professionally.

Yes, better.  Thanks

Updated with new illustration style


Disabling ADR

I'm trying to disable the adaptive data rate to asses the performance of the network with a fixed spreading factor.
To do this I added a line in the json file: '"lora.adr-on": false,' in  "target_overrides".
In the main i added 'lorawan.disable_adaptive_datarate()'
Then i set the new data rate using 'lorawan.set_datarate(DR_#)'
each return 'LORAWAN_STATUS_OK'
I have experimented setting different DRs.
On The Things Network I get 5 activations, each of these has a different data_rate, starting with a data_rate of SF7BW125, with the final having a data_rate = SF11BW125.
After activation all packets are sent with the final data_rate.
From this I assume the ADR has not successfully been disabled, any advice would be much appreciated!

ARM Internal Ref: IOTCELL-1569

ADR is a network feature, so this has nothing to do with joining the network. In OTAA mode the spreading factor is set by the network stack after a successful join. If you want to override it you can set the spreading factor manually after the CONNECTED event happens (just tested this on Mbed OS 5.10.2).
As far as I know it's not possible to set the join data rate, and it will always start at SF7 and go up (in Europe). But maybe @hasnainvirk knows a way.
Typically for range tests I use ABP, and just fix the data rate to SF12. Saves time re-joining the network if you ever accidentally reset the device.

@DavidNickalls It is not possible to set data rate for Join Messages because the specification binds us to follow a specific progression. Join Requests always go our starting with lowest SF, i.e., SF7 and increase if the Join Accept message is not received (i.e., increase range). The algorithm we follow is given in chapter 7 of the specification.
After joining, you can set the data rate for the device if the ADR is disabled. I am trying to understand what you mean by 5 activations. Can you please elaborate ? The stack can have only one session (only one activation).

Typically for range tests I use ABP, and just fix the data rate to SF12. Saves time re-joining the network if you ever accidentally reset the device.

How do I pin the SF (and BW) ? I was hoping to find a parameter in the .json config file.

@ivoknutsel By default the stack uses ADR. So if you wish to pin down SF:
i) Disable ADR https://github.com/ARMmbed/mbed-os/blob/master/features/lorawan/LoRaWANInterface.h#L62
ii) Set your desired DR/SF https://github.com/ARMmbed/mbed-os/blob/master/features/lorawan/LoRaWANInterface.h#L60
Bandwidth is automatically selected based on your DR according to the spec.

@ivoknutsel For ABP just set the data rate and disable ADR, and that's it.
For OTAA set the data rate in the CONNECTED event handler.

Closing because of inactivity. Answer was provided to the reporter. Please reopen if there is still something unanswered.


Add Singularity by Camellia

Song Name
Singularity
Artist Name
Camellia
Source
Youtube
Youtube Link
mDtm4DdwPuslshSt
Direct File Link
No response
Song ID
614535
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 79598199

reject
invalid YouTube link


Python script to validate the transifex translation assets

Description
LEARNER-7401
Please refer to Jira story for the details of the script.
Read the following readme file to know the procedure:
https://github.com/edx/edx-app-android/blob/526bee3d712b187c594162bf91b5ea6f19b1989f/transifex_utils/README.md

Script development is finished.
Pending:
I want to review the script myself before pushing it to code review.
Followup story should be created to fix the detected issues using validator.

@farhan-arshad-dev It's ready for code review

@farhan-arshad-dev PR is ready for second pass

@farhan You can squash the commits.


add more about git diff, git show

git show is hardly mentioned. More features of git diff should be demonstrated and exercised

minimally addressed in 6042039, but more details on exploring git history should be added


sitl_gazebo: update submodule

This increases the Gazebo update rate for VTOL and camera models to 500 Hz.
Fixes #12240.

@julianoes Funny the SITL CI still fails with tiltrotor

@julianoes Funny the SITL tests CI still fails with tiltrotor

They suddenly started failing. I don't understand why!

Replaced by #14219.


ModuleNotFoundError: No module named 'huggingface_hub.hf_api'

Nuitka version, full Python version, flavor, OS, etc. as output by this
command.

$ python -m nuitka --version
1.3.5
Commercial: None
Python: 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Flavor: Unknown
Executable: E:\PythonProjects\GPT3_Assistant\.env\Scripts\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 7
Version C compiler: D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\cl.exe (cl 14.2).

How did you install Nuitka and Python
Nuitka installed via pip in venv. ordered-sets and dependency walker installed.

The specific PyPI names and versions

$ python -m pip freeze
altgraph==0.17.3
certifi==2022.12.7
charset-normalizer==2.1.1
colorama==0.4.6
et-xmlfile==1.1.0
filelock==3.9.0
future==0.18.2
huggingface-hub==0.11.1
idna==3.4
Nuitka==1.4rc6
numpy==1.24.1
openai==0.25.0
openpyxl==3.0.10
ordered-set==4.1.0
packaging==22.0
pandas==1.5.2
pandas-stubs==<IP_ADDRESS>213
pefile==2022.5.30
pygubu==0.28
pyinstaller==5.7.0
pyinstaller-hooks-contrib==2022.14
python-dateutil==2.8.2
pytz==2022.7
pywin32-ctypes==0.2.0
PyYAML==6.0
regex==2022.10.31
requests==2.28.1
six==1.16.0
tokenizers==0.13.2
tqdm==4.64.1
transformers==4.25.1
types-pytz==2<IP_ADDRESS>
typing_extensions==4.4.0
urllib3==1.26.13

Many times when you get an error from Nuitka, your setup may be special
Project compiles and starts successfully without huggingface transformers.

Also supply a Short, Self Contained, Correct, Example

#!/usr/bin/python3
# nuitka-project: --include-package=tqdm
# nuitka-project: --include-package=regex
# nuitka-project: --include-package=requests
# nuitka-project: --include-package=packaging
# nuitka-project: --include-package=filelock
# nuitka-project: --include-package=numpy
# nuitka-project: --include-package=tokenizers

from transformers import GPT2TokenizerFast

if __name__ == "__main__":
    print('hello')

Provide in your issue the Nuitka options used

Project settings:
# nuitka-project: --include-data-files={MAIN_DIRECTORY}/editor.ui=editor.ui
# nuitka-project: --enable-plugin=tk-inter
# nuitka-project: --include-package=pygubu
# nuitka-project: --include-package=tqdm
# nuitka-project: --include-package=regex
# nuitka-project: --include-package=requests
# nuitka-project: --include-package=packaging
# nuitka-project: --include-package=filelock
# nuitka-project: --include-package=numpy
# nuitka-project: --include-package=tokenizers

In my venv terminal:

python -m nuitka --follow-imports --show-progress --show-modules --standalone init.py

At first, before adding all --include-package but pygubu I ended up with an error:

importlib.metadata.PackageNotFoundError: No package metadata was found for tqdm

I got the same error in pyinstaller, so ended up adding one more package after each failed compilation (or freezing? whatever the correct name is).
pyinstaller works 10x faster so it was more feasible to test it step by step than in Nuitka. At this moment I don't know better way to find hidden imports.
The point is, pyinstaller works with this configuration but the program made with Nuitka returned:
Traceback (most recent call last):
Traceback (most recent call last):
  File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\__init__.py", line 31, in <module>
  File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\transformers\__init__.py", line 30, in <module transformers>
  File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\transformers\dependency_versions_check.py", line 17, in <module transformers.dependency_versions_check>
  File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\transformers\utils\__init__.py", line 59, in <module transformers.utils>
  File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\transformers\utils\hub.py", line 32, in <module transformers.utils.hub>
  File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\huggingface_hub\__init__.py", line 254, in __getattr__
  File "importlib.py", line 126, in import_module
ModuleNotFoundError: No module named 'huggingface_hub.hf_api'

This good report has escaped my attention so far.
One quick note about your usage of --include-package=numpy and others. These should have to be unnecessary, and I am not sure why you would want to include e.g. numpy.random._examples.cython.setup or numpy.typing.tests.test_typing which makes no sense to me. Actually it's beyond reason.
With other tools that may be what you do, but I invite you to join the Yaml improvement club: https://nuitka.net/posts/nuitka-package-config-kickoff.html
Not sure now if you just felt like that would be a migration, or if you actually encountered issues that lead to your set of options.
Right now I am doing a bit of anti-bloat work for tokenizer, but of course that will hit a wall. Howeve, huggingface I actually care about. I wonder why that one didn't get an include though. :)

I managed to reproduce it without the package includes you have.

Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html
Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.

This is part of the hotfix release 1.5.4 that I just made.

I see Traceback (most recent call last):   File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\__init__.py", line 31, in <module>   File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\transformers\__init__.py", line 30, in <module transformers>   File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\transformers\dependency_versions_check.py", line 17, in <module transformers.dependency_versions_check>   File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\transformers\utils\__init__.py", line 59, in <module transformers.utils>   File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\transformers\utils\hub.py", line 32, in <module transformers.utils.hub>   File "E:\PYTHON~1\GPT3_A~1\__INIT~1.DIS\huggingface_hub\__init__.py", line 254, in __getattr__   File "importlib.py", line 126, in import_module ModuleNotFoundError: No module named 'huggingface_hub.hf_api'
on 1.5.4. Any tips?

@ryango Posting below closed issues is a surefire way to get ignored. I am not going to guess without a fresh issue template, what kinds of mistakes and setup you have made.