HTTPError

First time user - after uploading .txt and .wav I get the following error. Any guidance?
Type: HTTPError
Text: HTTP Error 503: Service Temporarily Unavailable
Full: Traceback (most recent call last): File "flask\app.py", line 1950, in full_dispatch_request File "flask\app.py", line 1936, in dispatch_request File "application\views.py", line 99, in create_dataset_post File "dataset\transcribe.py", line 85, in create_transcription_model File "dataset\transcribe.py", line 58, in init File "torch\hub.py", line 364, in load model = _load_local(repo_or_dir, model, *args, **kwargs) File "torch\hub.py", line 393, in _load_local model = entry(*args, **kwargs) File "C:\Users\Sam London/.cache\torch\hub\snakers4_silero-models_master\hubconf.py", line 28, in silero_stt **kwargs) File "C:\Users\Sam London/.cache\torch\hub\snakers4_silero-models_master\utils.py", line 128, in init_jit_model progress=True) File "torch\hub.py", line 419, in download_url_to_file u = urlopen(req) File "urllib\request.py", line 223, in urlopen File "urllib\request.py", line 532, in open File "urllib\request.py", line 642, in http_response File "urllib\request.py", line 570, in error File "urllib\request.py", line 504, in _call_chain File "urllib\request.py", line 650, in http_error_default urllib.error.HTTPError: HTTP Error 503: Service Temporarily Unavailable

Sounds like you've lost internet connection or the server for silero is down. Can you reach this link: https://models.silero.ai/models/en/en_v3_jit.model ?

Yes, the link works, strange... I wonder if a firewall could be causing this issue

Also thank you for the quick response!

No problem. Does sound like a possible network issue on your side. The first time you use the app it needs to download data for the transcription tool which is why this is generating a network error.

I'll dig in - does any of this seem relevant? From the executable script
[16408] WARNING: file already exists but should not:
C:\Users\SAMLON~1\AppData\Local\Temp_MEI164082\torch_C.cp36-win_amd64.pyd
Server initialized for threading.
Server initialized for threading.
INFO:matplotlib.font_manager:generated new fontManager
[nltk_data] Downloading package wordnet to C:\Users\SAMLON~1\AppData\L
[nltk_data]     ocal\Temp_MEI164082\nltk_data...
[nltk_data]   Package wordnet is already up-to-date!
WARNING:werkzeug:WebSocket transport not available. Install eventlet or
gevent and gevent-websocket for improved performance.

Serving Flask app "main" (lazy loading)
Environment: production
WARNING: This is a development server. Do not use it in a production
deployment.
Use a production WSGI server instead.
Debug mode: off
INFO:werkzeug: * Running on http://<IP_ADDRESS>:5000/ (Press CTRL+C to quit)
INFO:werkzeug:<IP_ADDRESS> - - [27/Jul/2021 18:41:45] "GET / HTTP/1.1" 200 -
Using cache found in C:\Users\Sam
London/.cache\torch\hub\snakers4_silero-models_master
INFO:werkzeug:<IP_ADDRESS> - - [27/Jul/2021 18:42:30] "POST / HTTP/1.1" 200 -
INFO:werkzeug:<IP_ADDRESS> - - [27/Jul/2021 18:42:30] "GET /favicon.ico
HTTP/1.1" 200 -

On Tue, Jul 27, 2021 at 4:01 PM BenAAndrew @.***> wrote:

No problem. Does sound like a possible network issue on your side. The
first time you use the app it needs to download data for the transcription
tool which is why this is generating a network error.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/BenAAndrew/Voice-Cloning-App/issues/48#issuecomment-887795647,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AU7Y3KD2LJRJN3SN7PRUFWDTZ4GA3ANCNFSM5BCUSC3Q
.

So I tried a few things including copying the source code to root and now I'm getting the following - could this be a folder permissions issue? Sorry to be a pest, just really interested in demoing this software if I can get it to work :/
Type: OSError
Text: [Errno 22] Invalid argument: 'tmpmm96uy_m'
Full: Traceback (most recent call last): File "flask\app.py", line 1950, in full_dispatch_request File "flask\app.py", line 1936, in dispatch_request File "application\views.py", line 98, in create_dataset_post File "dataset\transcribe.py", line 85, in create_transcription_model File "dataset\transcribe.py", line 58, in init File "torch\hub.py", line 364, in load model = _load_local(repo_or_dir, model, *args, **kwargs) File "torch\hub.py", line 393, in _load_local model = entry(*args, **kwargs) File "C:\Users\Sam London/.cache\torch\hub\snakers4_silero-models_master\hubconf.py", line 22, in silero_stt progress=False) File "torch\hub.py", line 433, in download_url_to_file f = tempfile.NamedTemporaryFile(delete=False, dir=dst_dir) File "tempfile.py", line 551, in NamedTemporaryFile File "tempfile.py", line 262, in _mkstemp_inner OSError: [Errno 22] Invalid argument: 'tmpmm96uy_m'

That's a weird one. Sounds like it's struggling to delete a temporary file but doesn't seem to be due to permissions.
If you are familiar with python could you try adding this to a script and executing it. Might make the issue clearer to solve
`
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model, decoder, _ = torch.hub.load(repo_or_dir="snakers4/silero-models", model="silero_stt", language="en", device=device)
`

Unfortunately, not coding savvy but maybe I will spend some time with it. I did try to clear the files myself and start fresh and am still getting this error. Appreciate the efforts!

Sorry to hear this. If you want you could join the discord where others may be able to propose solutions. Unfortunately, this issue is with https://github.com/snakers4/silero-models and I'm not familiar with their system. It may be worth sharing this issue on their repo to see if they have any suggestions.

Any news on this?

I've tried a few different approaches including removing all files manually
and reinstalling python, still no luck unfortunately! If I have time in the
future I may partition Linux and go that route
On Fri, Aug 6, 2021, 12:01 PM BenAAndrew @.***> wrote:

Any news on this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/BenAAndrew/Voice-Cloning-App/issues/48#issuecomment-894357818,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AU7Y3KCUWFCJCCEKKNCL2D3T3QBMJANCNFSM5BCUSC3Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Sounds like you've had some really bad luck with this. I haven't heard of anyone having this problem. Did you raise an issue on the silero github?

Closing as the issue is not directly due to the app. Please reopen if you find a fix


IE11 - editable field -> paste function

I'm having a troubles with IE11 which sometimes on some editable fields does not paste data (text) from clipboard to the field. From what I have experienced, clicking out of the field, clicking back and then pasting the data works. I'm using keyboard combo with "ctrl + v".
I'm initating the editor and then calling the editor on fields with data attribute. Everything seems to be working properly except the Paste event.
`
SomeValue
`
Some data-attributes are used for save callback and shouldnt be related.
Everything works in browsers, but not in application Internet Explorer 11 (havent checked other versions/Edge)
Edit: i'm using version 1.30,0., updated from 1.27.0. where I have experienced the same.

Note: it is probably IE11 related since it may lose focus when focusing contenteditable area

Note: every even clicked editable element works with pasting the data via ctrl + v in IE11. Every odd does not work, unless you click twice:
http://getcontenttools.com/demo

Hi @kure- thanks for reporting this - I don't have access to IE directly but will take a look through the code to see if I can see anything obvious that might cause this and try to try it out on IE Edge tomorrow to see if the problem exists in other versions.

any update in here?:)
thanks

Hi @kure- I have confirmed I'm also seeing this issue - I haven't yet identified if it's an issue with CT or IE yet though, will let you know when I've figured that out.

Is there eventually any quick fix? I have a users who can use just IE/Edge and they're using the editor on daily basis with certain amount of data being transfered from other sources via the editor, which makes the editor not usable right now :)

@kure- this is an issue in the latest version of IE as far as I can tell also, I have no idea what causes it as of yet, but it seems that on some editable content divisions the browser doesn't set the selection/carat when you click it (which prevents the paste).
Rather than being specific to odd elements (vs. even), I have found that the behaviour is specific to odd focus events, so for example the first editable element you click on will not let you select it, but the next one will, if you then select a different element (which wont work) then select the first element you clicked on that will now work.
I want to try resending the click event to the element once it has been set to contenteditable to see if that helps so I'll look at that next. As I say I don't have access to run IE on my machine (only over browserstack) so it's a pain to test things against but I will look at this further over the next couple of days.
If someone with IE and the time can look at this and provide any additional insights I'd be grateful.

@kure- just following up on this, if I just have a number contenteditable elements on the page then IE does have an issue with single click selection on all of them so it must be the way the ContentTools/Edit is converting an element to editable.
Looking into solutions currently.

@kure- OK I have a solution I believe so intend to post in the next release (hopefully in the next couple of hours).

Fixed in release 1.3.1.

Hi there, there seem to be still an issue with this, once element is nested. E.g. ul > li and pasting to it.  E.g. http://getcontenttools.com/demo  > About content tools

@kure - Might be that for nested elements there's a further issue, I'll take a look confirm and re-open the issue.


Improve alignment of start-voice button

Pull Request Checklist
fix : #831

[x] I have added screenshots and videos to show before and after the working of my code.
[x] I have ensured that the screen size is set to 100% while making the video.
[x] I have synced the latest fork with my local repository and resolved any conflicts.
[x] I have mentioned the issue number which I created before making this PR .(format to mention issue number is : fixes #(issue number) )
[x] I understand that if any the above conditions are not met , my PR will not be MERGED .

@shreyabajaj12 kindly refrain from raising such small issues which only require you to change border size and stuff , these arent important and your issue may be flagged by hacktoberfest , they treat some issues as spam , so kindly be careful


Arch Linux + KDE + zsh + prezto = black screen

On a fresh install of Arch Linux, I more or less just had KDE, zsh, prezto, and git/Firefox etc. After rebooting, I was greeted with a blank screen. I tried for two hours to diagnose the problem, but everything ended up working once I commented out the path variables in prezto's config.
I came to this conclusion because /usr/bin/startkde couldn't find sed, systemctl, mkdir, etc.

What version of Zsh do you have? What does print -l $path say?

5.0.8 (64 bit)
/usr/local/sbin
/usr/local/bin
/usr/bin
/usr/bin/site_perl
/usr/bin/vendor_perl
/usr/bin/core_perl

(This is without using prezto at all.)

What's the path after using Prezto?

If anyone still has problems with this, it's SDDM's fault and I have come across it a few times. See:
https://github.com/sddm/sddm/issues/352

I'm not sure, but maybe has to do something related to #500


ENH: improve readability of app_help display

[NEW] identify provenance of callable default values
[CHANGED] split across multiple lines (as per black) for
readability

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.002%) to 91.423%

Files with Coverage Reduction
New Missed Lines
%

.nox/test-3-10/lib/python3.10/site-packages/cogent3/app/init.py
2
97.52%

Totals

Change from base Build<PHONE_NUMBER>:
0.002%

Covered Lines:
177860

Relevant Lines:
194546

💛  - Coveralls


Fully implement ApplicationDomain

Our current implementation of ApplicationDomain is mostly stubbed. We need a proper implementation for #341, having at least the following characteristics:

Manages a set of AS3 classes available to scripts.

Activates said set of classes on being activated, itself.

Deactivates said set of classes on being deactivated, itself.

entails changing all the global object's references to all namespaces and global AS3-visible properties to point to the domain's own versions of them. 3. entails removing them from the global object. Note that it is not enough to rely on the next active domain installing its own active classes: it might have a smaller set of them, leaving some of the previous domain's classes installed.

The described behaviour very roughly matches sibling domains as described here. To fully support ApplicationDomain, we also need to add support for sub domains, which mostly means adding support for lookup of classes through chains of domains, where a class is looked up in the current domain first, and, if it's not found, lookup traverses the list of parent domains until a definition is found or the list is exhausted. If we were to do that right from the beginning, we might get away with only instantiating one version of the System Domain. Or we might not, depending on our ability to deal with per-instance state of the system builtins.

Tracked elsewhere


Scrolling is not enabled/activated until window is resized.

For whatever reason scrolling does not activate/enable and no scrollbars show until the browser is resized.  This seems to kick off some code and then everything works fine.
The resize can be 1 pixel and the content is already flowing off the page.  So it is not like the resize causes the overflow to engage.

Changing ~line 701 from:
refresh();
to:
$timeout(refresh, 1000);
solved my problem.  Maybe there is a better way of accomplishing this like calling refresh when the dom is ready.

Hey dsandor,
I'm also experiencing the same issue. Since browsers lack the ability to watch DOM layout attributes like clientWidth my solution so far was to send a content.changed event from an outside or inside controller:
// from controllers outside ngScrollable container
$scope.$broadcast('content.changed');

// from controllers inside the ngScrollable container
$scope.$emit('content.changed');

This event has an extra attribute wait that lets you specify the number of milliseconds to wait before the DOM is queried. This allows an Angular digest to run and the browser to process a content reflow so DOM dimension attributes are updated. When transitions or animations are in place it's wise to set the delay beyond the end of an animation. This works in all my scenarios, but what's annoying is that I always have to remember to send the event.
There's another way using the relatively new MutationObserver (see the latest master branch). I'm watching for changes in the DOM tree inside ngScrollable and refresh whenever nodes are added or removed. That seems to solve the ngRepeat issue, but you would still need the event method from above to catch layout changes.
MutationObserver can watch for attribute changes too, but in my experience this does not scale at all. In my case I have DOM subtrees with thousands of nodes using ng-class, ng-style, ng-show, ng-hide inside ngScrollable and that's a performance nightmare.
Could you give the latest patch a try and let me know if that works for you.

So right now I've used ng-mouseenter and then called $scope.$broadcast('content.reload'); inside it.
But @echa is there any proper patch for this bug ?

Hey @chinnichaitanya , I it's ok to use some user interaction like ng-mouseenter when you don't design for mobile (that event does not exist there). If you need the update to happen earlier, call the event in your controller that exposes your data to the template. The default wait delay when you don't specify a number for the event is 100ms.
Remember, ngScrollable just mimics native browser scrollbars because there is no efficient way to detect layout updates. Watching things like clientWidth/clientHeight requires a slow DOM interaction so I don't do this.

closing due to inactivity, guess things work as expected

I'm also experiencing this issue. Currently looking into solutions.

Found the problem! The ng-scrollable's link function isn't firing off until all children have finished, so it's not seeing the updated size of the DOM elements and, obviously, wasn't instantiated to listen to the $scope.$broadcast from my child directives.
My solution can be found in my pull request.


Setup nginx for prod deployment using docker

Closes #56
Changes

Setup Nginx for the deployement
Setup Dockerfile for nginx and update docker-compose.yml

Type of change

[ ] Bug fix
[X] Feature update
[ ] Breaking change
[ ] Documentation update

Author Checklist

[X] Code has been commented, particularly in hard-to-understand areas
[X] Merging to main from fork:branchname

Thankyou for your contributions @Yadavanurag13 🚀 . I pushed some edits. Ready for merge.


Viewer camera frustum is not initialized with documented default values for near and far

Sandcastle example: https://sandcastle.cesium.com/#c=zVRNS8NAEP0rQy6mEDbtwUuNRRA9iFhR8JTLZjNpFze7ZT9Sq/jf3W1qm9qI9SC4h5CZ997sMPMSpqSx0HBcooZzkLiESzTc1eRpnYvziK3jSyUt5RJ1Hg3OcplL5pVKIBFqFt88Tu+IsZrLGa9WcVuOMFqjpqTSzlhXD4KsK+plkUo1xxGpWSCzD9RyFQRpClcvIYMlWAUFwigBwZ8RSsVcjTIAXAI2qFdw3RYJGMRIZiSBe9TrirzBDTpIoHAWuIEhGR3TkkSq+3s5HW7OQU/bO0bD7TlqTu1V+9STPJcnu7SFzpD8dn8c5Nmnzm/hW77HPK8X23fQ4UTjt1yCP6H8ODyTNu62Oe5GHn//l3brW7J3SbvdAiulcbdZiJdzzubh3c73DFliRZ3wHyAVDoM9PWYGu36WVMtfm63jpN5+tmb8k742xoySKDN2JXDSrhjggtcLpS04LWJCUov1QlCLJi0ce0ZLmDFBGKhZ2pVmJW+Al+c9vyJgghrjkcoJ8chfMY8mWer5B1KhaOn9MvWfv6CrQJuPJrdtkhCSpT7sV1qlREH1l8of
Browser: Chrome, Firefox
Operating System: Windows 10
In my application, we have a use case for switching between perspective and orthographic frustums. After switching back and forth, I noticed that some Cesium3DTiles were cut off differently than before. The near value changed, although we did not set that value and always relied on the default values. (We switch manually, and we initialized new Frustums for that).
When I initialize the Cesium Viewer, I expect the camera frustum's near and far values to be the default values as documented in the frustum docs.
Currently, it seems that near is 0.1 and far is<PHONE_NUMBER>0 after initalizing the Viewer, but are 1 and 500000000 respectively after initializing a new frustum. I cannot find documentation about the former values; the latter values are those I found in the docs, though. This feels like a bug; at least, this is inconsistent.

Thanks for the detailed writeup @anne-gropler! That does seem inconsistent at the least.
@lilleyse Do you know if there is a specific reason for the discrepancy?

The 0.1 and<PHONE_NUMBER>0 values come from here. If the scene supports log depth it will use those values instead of the PerspectiveFrustum defaults.


Update README.md with high-resolution screenshot

Before: https://github.com/rerun-io/rerun/blob/main/README.md

After: https://github.com/rerun-io/rerun/blob/emilk/update-readme-screenshot/README.md

Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested demo.rerun.io (if applicable)
[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

PR Build Summary
Docs preview
Examples preview
Recent benchmark results
Wasm size tracking

Yes, it changes the top bar slightly, but overall it is a huge improvement


Amplify Rewrites and Redirect

I am trying to setup a proxy for my Amplify web app so that '/demo' is redirecting to another domain which would be my server in this case.
to do this I use the following rule:

The Result is a 403 on my frontend.
I have also tried a redirect:

which results in a CORS missing in header issue.
but upon inspecting the server's headings cors is allowed on all domains:

what am i doing wrong?

Hi @coetzeetx 👋🏽 thanks for raising this issue. You have to use 200 rewrite to proxy the request to another domain which appears you have done correctly initially. Can you please provide your app ID so we can further investigate? An HAR capture after making the request can also help us identify why the request is not working.

Closing the thread due to age. Refer to our docs on how to setup reverse proxy rewrites.


general question related to AQT simulator and Qiskit.  "Attribute error"

{'qiskit-terra': '0.14.1',
'qiskit-aer': '0.5.1',
'qiskit-ignis': '0.3.0',
'qiskit-ibmq-provider': '0.7.1',
'qiskit-aqua': '0.7.1',
'qiskit': '0.19.2'}
What is the current behavior?
Trying using  var_form 'TwoLocal' with VQE . getting errors whit ./qiskit/aqua/utils/run_circuit.py
AttributeError: 'BackendConfiguration' Object has no attribute 'max_experiments'
In this case,  AQT simulator backend does not have a 'max_experiment' attribute in its configuration.
using other var_forms give different errors. Qiskit aqua code does not seem to support AQT simulator.
So my general question : Is Qiskit supposed to support AQT backend up to this point ?  or qiskit only providing access to AQT backends through the aqt_provider to run basic circuits
Thanks
Steps to reproduce the problem
backend = aqt.get_backend('aqt_qasm_simulator')
seed = 10598
quantum_instance = QuantumInstance(backend, seed_simulator=seed, seed_transpiler=seed, shots=100)
qubitOp = Z
var_form = TwoLocal(1,'ry',reps=1,insert_barriers=True, skip_final_rotation_layer=True)
vqe2 = VQE(qubitOp, var_form, optimizer)
vqe2_run = vqe2.run(quantum_instance)
What is the expected behavior?
Suggested solutions

The AQT backends have max_experiments and have since https://github.com/qiskit-community/qiskit-aqt-provider/pull/21.  As such, I am closing this issue.


[unixODBC][Driver Manager]Can't open lib 'libsqliteodbc.so'

A next code
import pyodbc
cnxn = pyodbc.connect('Driver=SQLite;DATABASE=testdb')
cursor = cnxn.cursor()

cause a following error:
Traceback (most recent call last):
  File "test1.py", line 4, in <module>
    cnxn = pyodbc.connect('Driver=SQLite;DATABASE=testdb')
pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'libsqliteodbc.so' : file not found (0) (SQLDriverConnect)")

So, I can't use pyodbc with SQLite. I'm using Ubuntu 17.10. Next packages is already installed:

unixodbc-dev
libsqliteodbc

Can you help me with this?

Python has built-in support for SQLite. Is there a particular reason why you need to use pyodbc?

@gordthompson, I need pyodbc because of aioodbc. I'm writing a Telegram bot and I need asynchronous port for SQLite for this, if you're interested. aiosqlite isn't good enough and have its own problems.

See if your /etc/odbcinst.ini file contains a driver entry like this:
[SQLite]
Description=SQLite ODBC Driver
Driver=libsqliteodbc.so
Setup=libsqliteodbc.so
UsageCount=1

If so, then try editing it to use the full path to the .so file, which will be something like this:
[SQLite]
Description=SQLite ODBC Driver
Driver=/usr/lib/x86_64-linux-gnu/odbc/libsqliteodbc.so
Setup=/usr/lib/x86_64-linux-gnu/odbc/libsqliteodbc.so
UsageCount=1

and see if that helps.

I got a cause of the problem. A very, very foolish mistake. I need SQLite3, so I installed SQLite3 drivers. But I forgot to change "Driver=SQLite;" to "Driver=SQLite3". Thanks for your time, anyway.


Is it good to add a systematic judgment here?

https://github.com/Jittor/jittor/blob/e5265505df0af7ee860818bd8bb82b112be5ebe9/python/jittor/compiler.py#L830
when using the pybind11 module, such as link, If the platform is macOS, so the "-undefined dynamic_lookup " is needed in cc_flags.

Thank you for reporting this issue, jittor can run in macOS with docker, here is the tutorial: https://cg.cs.tsinghua.edu.cn/jittor/tutorial/2020-5-15-00-00-docker/
Running jittor in macOS without docker is working in progress.


Make outgoing configuration capability registration lazy

Expected Behavior
As a plugin author I should be able to configure the capabilities of an outgoing configuration using lazy values. The current, documented, acceptable notations are String or Map<String, String>, neither of which operate in a lazy manner.
For example, potentially support Map<String, Provider<String>>:
Map<String, Provider<String>> cap = new HashMap<>();
cap.put( "group", project.getProviders().provider( () -> project.getGroup().toString() ) );
cap.put( "name", project.getProviders().provider( () -> project.getName() + "-" + myThing.getName() ) );
cap.put( "version", project.getProviders().provider( () -> project.getVersion().toString() ) );
someConfiguration.getOutgoing().capability( cap );

Current Behavior (optional)
No response
Context
Currently my plugin is using the internal org.gradle.internal.component.external.model.ProjectDerivedCapability class in a similar fashion as the JVM plugins. I am not using the registerFeature API provided by the jvm plugins because I am not writing a jvm based plugin, but am doing something similar.
someConfiguration.getOutgoing().capability( new ProjectDerivedCapability( project, myThing.getName() ) );

I should not have to use these internals.

Duplicate of #26163


global variables initializer

I can see that after loading the module, we run the
tf.global_variables_initializer(). however, doesn't this command reinitialize all the variables of the model? I have noticed that the model still works fine but i'm not sure if we don't do it, what would be the performance. For fine-tuning, it seems there are some optimization variables that need to be initialized and are usually included in the global_variables, but if we don't want to do fine-tuning, why we would need to initialize global variables?

Hello mhajiaghayi,
Answers to your questions are mentioned below.
Q: However, doesn't this command reinitialize all the variables of the model?
A: Yes, this command reinitialize all the variables of the model, especially, its weights.
Q. If we don't do it, what would be the performance?
A: If we don't initialize the variables, it results in Error.
Q: If we don't want to do fine-tuning, why we would need to initialize global variables?
A: When we load a TF Hub Module, we are actually loading its TensorFlow graph, along with its weights. So, in order to leverage the weights of the Pre-Trained Model, we have to initialize them.

thanks for your reply. it is interesting, because when we load a model with saver.restore(), then tf.global_variables_initializers() initializes all the variables with the random values, depending on their initializer random function. so, here, you are saying that for tf hub module, the variables are initialized with their trained values and not with their initial random functions. am I right?

Yes, the variables in a hub.Module() have their initializers changed to restore from the checkpoint included in the module. (They no longer initialize randomly.) This way, running tf.global_variables_initializer() does the right thing at the start of training: user-defined variables (e.g., in your own layers) are initialized randomly as usual; module-defined variables are initialized to their pre-trained values (which makes sense for using the module with or without fine-tuning).

Hi there, sorry for activating this email thread again. I have a question about the discrepancy that exists between the notebook version of this model and what is posted on the website. on TensorFlow Hub,  we can see that for
the example is # Embedding for: The quick brown fox jumps over the lazy dog.
[0.0387121252716, -0.00189059402328, -0.00533464271575, ...]
however, if we use your notebook version  https://colab.research.google.com/github/tensorflow/hub/blob/master/examples/colab/semantic_similarity_with_tf_hub_universal_encoder.ipynb#scrollTo=Q8F4LNGFqOiq to change the module_url = "https://tfhub.dev/google/universal-sentence-encoder-large/3" then for the same input, i get the following output
Message: The quick brown fox jumps over the lazy dog
Embedding size: 512
Embedding: [0.0036696437746286392, 0.06560932099819183, 0.03254513815045357, ...]
which is quite different than what is posted in the website. which one is correct then? thanks, mahdi
|
|
|  |
TensorFlow Hub
|
|
|
On Thursday, April 11, 2019, 01:13:27 a.m. PDT, arnoegw<EMAIL_ADDRESS>wrote:

Yes, the variables in a hub.Module() have their initializers changed to restore from the checkpoint included in the module. (They no longer initialize randomly.) This way, running tf.global_variables_initializer() does the right thing at the start of training: user-defined variables (e.g., in your own layers) are initialized randomly as usual; module-defined variables are initialized to their pre-trained values (which makes sense for using the module with or without fine-tuning).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Data Tailor Cleanup didn't work

Describe the bug
The Download Manager's cleanup() method failed when trying to clear the data tailor storage quickly , and giving a 500 internal server error. Admittedly, I was also trying to clear it for awhile from the web portal, so that could be it, but good to check as if it fills up totally, it will crash forecasts when the RSS stops.
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

Ran it again after clearing out the data tailor, and waiting awhile. It still fails, even with completed customizations available to delete.
Gives:
Traceback (most recent call last):
  File "/home/jacob/anaconda3/envs/xbit2/lib/python3.10/site-packages/eumdac/errors.py", line 16, in eumdac_raise_for_status
    response.raise_for_status()
  File "/home/jacob/anaconda3/envs/xbit2/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.eumetsat.int/epcs/customisations/delete

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/jacob/Development/Satip/scripts/modal_processing.py", line 229, in <module>
    download_manager.cleanup_datatailor()
  File "/home/jacob/Development/Satip/satip/eumetsat.py", line 518, in cleanup_datatailor
    customisation.delete()
  File "/home/jacob/anaconda3/envs/xbit2/lib/python3.10/site-packages/eumdac/customisation.py", line 193, in delete
    eumdac_raise_for_status("Failed to patch tailor delete", response, CustomisationError)
  File "/home/jacob/anaconda3/envs/xbit2/lib/python3.10/site-packages/eumdac/errors.py", line 25, in eumdac_raise_for_status
    raise exception from exc
eumdac.customisation.CustomisationError: Failed to patch tailor delete

I believe this is now fixed, as when running it works now.


Beckybanbury

@teixeirak , is it okay for me to merge this? I think my GitHub desktop is having some problems updating my files because of being a few steps behind.


Update the contributing docs to state that there is no testsuite yet

And what the (really) high level plan for a test suite would be.
(More documentation PRs! Yay!)

More patches incoming... I'm removing references to Python2 etc.

@freakboy3742 Please have a look at these changes -- esp. the changes to docs/philosophy.rst Thanks! :-)

:tada:


Avoid taking 'default' twice for args in both signatures

I noticed that the following fails (formatted as a unit test):
def test_when_kwargs_present_in_both():

    def src(a, b, c=1, d=2): ...

    @merge_args.merge_args(src)
    def dest(e, c=1, d=2): ...

    assert str(signature(dest)) == '(e, a, b, c=1, d=2)'

With this output:
$ python -m pytest -k 'test_when_kwargs_present_in_both'
>       assert str(signature(dest)) == '(e, a, b, c=1, d=2)'
E       AssertionError: assert '(e, a=1, b=2, c=1, d=2)' == '(e, a, b, c=1, d=2)'
E         - (e, a, b, c=1, d=2)
E         + (e, a=1, b=2, c=1, d=2)
E         ?      ++   ++

As you can see, at present, merge_args takes the default values for arguments c and d from both functions, but the signature actually only has each of them once
This PR fixes this while keeping all other tests passing.

Thank you very much for merging this!
Would you be able to release a new version for this? I am currently adding this as a dependency in one of my libraries, and would love to have this change in there!

Sure thing, I just released v0.1.4.

awesome, thank you very much.


Diagnostic for unused imports

We could have a diagnostic in pubspec.yaml for a dependency that is not imported anywhere in lib/, test/, web/ or bin/.

Actually thinking more about this, there might be non-dart-code reasons to depend on a package, mainly use of its assets.
Not sure we have a good way of enumerating all ways you can use a package.
Closing this for now.
cc @isoos


Create embedded logging provider for OpenTelemetry

A logging provider needs to be implemented/ported for OTP. Rather than make it talk over NATS, which would add congestion to the messaging network, it can be embedded in the host process, and communicate via a separate TCP or UDP channel to a logging collector or proxy.
There's an erlang/elixir OpenTelementry API that we could use to connect over UDP or TCP to an OTEL receiver. This would add a couple configuration variables to the host, for connecting to the receiver.  I don't think it's necessary to make those variables part of the actor link binding - a single OTEL receiver configuration per runtime host should be sufficient for now.
At the same time as integrating OTEL, the logging capability api should be reviewed to see if we want to expose more OTEL features into that api (at a minimum, a span id).
Additional nice-to-have feature: maintain a per-actor logging level threshold (trace...critical). If this could be changed at runtime via washboard, then you could enable debug or trace logging for one actor that you're debugging, and still leave everything else at the system default logging level. This would improve the signal/noise ratio for a better dev experience.

I think there maybe some advantage to having configurable logging working through lattice; it will just work vs. having additional per environment configuration for logging.
I could understand some integration with traditional logging systems - syslog or something along those lines and still think we may want to pull that back via NATS on a fleet of devices.

What we get with OTEL embedded logging is that the operator has the flexibility to route the logs to anything they want - a time series database, prometheus alert manager, etc.
If we log over nats, rather than embedding the log provider in the host, the logging provider would act as a proxy server to sit on the lattice and subscribe to logs, and forward those to another logging protocol(OTEL/fluent/statsd/whatever). That proxy server has to be launched and configured. That's still a configuration task, whether the config is done for the host or for the proxy.
The no-config option, where first-time user doesn't have to do anything, is for the embedded logging provider to take the log call and write it to stdout / or a standard log file location.

Hmm.. I think both cases might be true.  My initial perspective was that logging systems will be centralized across a disributed application.  If I have a wasmCloud node in a local environment, I likely would want those logs pulled back centrally.  From there, I agree we would want the flexibility you describe.  However, for local development I would likely want a default provider or local option.

This feels like we're conflating two different concerns here.
1 - emission of discrete events that will be recorded explicitly via Telmetry and then possibly emitted to a recorder like zipkin or jaeger or prometheus.
1a - having the invocation of wasmcloud:logging from an actor emit a discrete event
2 - capturing stdout logs from each wasmCloud host process
1 is something that the host code needs to explicitly do
2 is something that should be handled by whatever infrastructure on which wasmCloud is being run.


Should not include Promise shim

I think it's bad practice that a lib brings its own shim. alamid-schema should just use the Promise constructor. It's up to the user to add this shim to the environment.

I agree. But it should be documented.


Fix/delete table name

Description (개요)

table_name is no longer provided by one of the options for CONVERT, PREDICT, and SEARCH.
main merged to align develop to main.

Keep in Mind
If you are creating a new statement, your first commit should always be a copy of the statement(model, ThanoSQL, function) template. This will allow reviewers to see what has been changed from the template, making the review process much more efficient.
Type of change (작업사항)

[x] ThanoSQL statement fix

Following templates can be found from the Tech-wiki Docs.
Writing Convention
Make sure to check out the Writing Convention.
Review Process
Review should be conducted by at least two people.

이 내용도 이 pr에 같이 껴 넣어주시겠어요?
https://github.com/smartmind-team/thanosql-docs/pull/198

#198 이 내용도 이 pr에 같이 껴 넣어주시겠어요?

https://github.com/smartmind-team/thanosql-docs/pull/198 -> 이 branch로 merge 했습니다.

@inwookie 아 이런방법이..


fix: 修复分页配置无法透传

👀 PR includes

🐛 Bugfix

[x] Solve the issue and close #2648

📝 Description

const s2Options = reactive({
  pagination: {
    current: 1,
    pageSize: 6,
    size: 'default',
    showQuickJumper: true,
  }
})

🖼 Screenshot

Before
After

🔗 Related issue link

close #2648
🔍 Self-Check before the merge

[ ] Add or update relevant docs.
[ ] Add or update relevant demos.
[ ] Add or update test case.
[ ] Add or update relevant TypeScript definitions.

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

Project coverage is 79.18%. Comparing base (1adc25d) to head (c597651).
Report is 150 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2666      +/-   ##
==========================================
+ Coverage   76.48%   79.18%   +2.69%
==========================================
  Files         240      159      -81
  Lines       12312     9497    -2815
  Branches     2630     2054     -576
==========================================
- Hits         9417     7520    -1897
+ Misses       1377      665     -712
+ Partials     1518     1312     -206

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

:tada: This PR is included in version @antv/s2-vue-v1.7.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

透传配置的visible属性失效，在S2options中pagenation动态变更visible，无法触发S2Pagenation的customOptions的visible更新。


Typo in sample code in read-me file

public interface IUserInfo : IAdObject
should presumably be:
public class UserInfo : IAdObject and therefore query.Execute<UserInfo>

Actually, no... You can use interfaces, and you will become a proxied object instance back.
It was briefly removed, but I placed it back with a better solution.
Try it out with the current version 0.2.17

Got it, thanks.


chore: fix some missing php-doc

Some missing return and thorw in php doc

thanks for your contribution, IMO adding phpdoc with class name and @return don't help very much and add some noise.
Having return type in function is enough

Thanks for the suggestions.
I too am hesitant.
I like the idea that the PHPdoc is very complete, but actually, with TypeHitting, the code is self-documenting?
I am in favor of limiting the use of PHPdoc to what is strictly necessary.
What do you think ?

Hello,
Sorry i was busy these last few days.
I prefere to have the phpdoc + type hinting. But I understand your opinions.
So I will revert changes about php-doc 👍

I propose to close this PR.
Thanks for the proposal.

Hello,
Sorry I was on vacation.
This PR is now ok I think


Access to each batch's gradients while accumulating gradients?

Hello,
I have one question regarding the gradient accumulation.
Fairseq provides "gradient accumulation", which accumulates gradients for several batches.
From my understanding, the loss.backward() stores the gradients in variables' .grad which gets summed up for every 8 batches(If accumulating gradients for 8 batches). And optimizer.step() (which is called every update-frequency, e.g. 8) will use these "summed" gradients for the update of the parameters.
However, I'd like to get access to each batch's gradients(after every loss.backward()) while training with gradient accumulation. But as far as I know, the gradients stored in .grad are summed up, so gradients from other bathes are mixed up.
Is there an easy way of getting each batch's gradient information?
Thank you!

Hmm, one option is to disable fairseq's gradient accumulation, then define an optimizer that does the accumulation internally (and in the process gives you access to the intermediate gradients).

@myleott
Thank you for your reply!
Can you explain about the optimizer that does the accumulation internally? From my understanding, after calling loss.backward() for several batches, the gradients are accumulated(summed) in .grad variable. And optimizer steps with gradients information stored in .grad. If I turn off the gradient accumulation, then because the zero.grad() gets called every batch,

In the optimizer you could loop over the params, copy/accumulate the gradients into another buffer, and every k steps update the model params. Something like this (I haven't tested it though):
for group in self.param_groups:
  for p in group['params']:
    if p.grad is None:
      continue

    # accumulate grads
    if p in self.acc_grads:
      self.acc_grads[p] += p.grad
    else:
      self.acc_grads[p] = p.grad.clone()
    self.num_acc += 1

    if self.num_acc % num_to_accumulate == 0
      # do regular step, using acc_grads[p]

      # reset accumulation
      self.num_acc = 0
      self.acc_grads = {}

@myleott
Thank you for such a nice and meticulous reply.

Seems this has been resolved.  Please open a new issue if you are still having problems.


Create KerbalAtomics-NFECompatibility.netkan

Created on request of a user. Sorry if it doesn't work right away, I did most of this from memory because I'm really pressed for time. Will fix problems in the next few days if there are any.

@lOmicronl could you update the PR follwing the requested changes

Neither change is necessary. The folder structure as I have written it reflects the structure created during manual installation today. The "author" field should be auto-populated via Spacedock, as far as I remember, and older Near Future metadata has it as a left-over from times where this didn't work (Kerbalstuff went down etc.)
I mean, you're free to change it if you want, but I see no reason to.
It's quite unfortunate that Fraz had to doublepost here, when this question has already been solved in PM on the KSP forums more than a week ago.

Well you have to think for other users too. If I would see a folder called Extras I don't know which mod that is from untill I check it, Installing it into KerbalAtomics lets me know where it is from.

...I'm at a loss for words right now, to be honest.
You know, I've been doing a lot of CKAN stuff for Nertea's mods in the past. I did so voluntarily, even though Nertea didn't support CKAN installs (and still doesn't today). And I'm having trouble recalling any pull requests I made that didn't have someone come in and ask for corrections. This is all fine and dandy if I'm actually making a mistake. The spec is like an arcane tome of strange symbols that changes everytime you look away, of course I will get it wrong now and then. But what's with this completely inconsistent caviling?
Once I was told (fairly bluntly, too) to stop putting in redundant fields; then, a bit later, I was told to stop removing redundant fields, because once something is in the metadata it should stay there for some unspecified reason. Now you ask me to include a redundant field? Once I was told that the entire point of CKAN was absolute consistency in installing mods, and that I shouldn't get creative with install instructions. Now you ask me to deviate from the folder structure that the mod author ships in his download, because a user might potentially disagree with how it was chosen? Once I was told to update the metadata for a mod, only to find that, by the time I had drafted up the changes and went to upload them, the exact same person who had asked me to do it, had already gone and implemented the changes themselves (without notifying me of course). And now you keep a pull request open for weeks, unwilling to pull it in before I make some uttermost trivial change that anyone with a Github account, even completely unaware of the CKAN spec, could have done in half a minute?
I just don't get it. Sure, I'll go and change the install path so it is more pleasing to the eye, just give me a minute. But I hereby give up trying to understand what you guys want.

I greatly appreciate your help with updating Nertea's metadata. I agree, the spec does change every now and then which lets people make mistakes because of those changes. Even people who have been updating metadata for a long time can make mistakes if they are not aware of the spec changes.
I can't apologize for the person who bluntly told you to stop adding/removing reduntant fields but adding redundant fields isn't bad, they're just needed if the information where scraping from doesn't match from the forums or author.
Regarding the Extras folder: Nertea shipped this folder seperate so that people who don't want these functions don't have to worry about them. The meaning of that folder is to install it inside the mod folder (in this case KerbalAtomics) so that it doesn't stay in the GameData folder when KerbalAtomics is removed. That's why I asked you to change the install_to path.

I apologize for any inconvenience, Omicron. I actually posted here first, before it occurred to me to PM you. Being relatively unfamiliar with github, I wasn't sure what effect my post would have (if any), or if you would even see it here, thus why I decided to send the PM. I wasn't trying to be redundant.
Likewise, it was not my intent to nitpick over trivial issues, but rather to simply note differences upon comparison to patches for the other extras patches (I had no idea whether or not the differences were important).


Powershell doesn't list all installed monospace fonts

Powershell 7.0.0 and 7.0.1 don't list all installed monospace fonts. In particular, they don't list Roboto Mono, my preferred font. Screenshot and system details below.
The Powershell font settings are in the Defaults and Properties menus. Same issue in both.
The installed Roboto Mono font file is a .ttf, and it's version 2.002 of that font (the latest).

Name                           Value

PSVersion                      7.0.1
PSEdition                      Core
GitCommitId                    7.0.1
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Do you see the same for Windows PowerShell window? For cmd.exe?

Yes, I see the same problem in Windows Powershell and cmd.exe.

The problem is not in the applications.
Perhaps @DHowett could add more info.

If anything this would be an OS issue rather than a PowerShell issue. PowerShell has zero control over what the OS chooses to show in that menu. From what I recall, fonts shown in that menu may require some changes to the registry.
There's a good walkthrough of how to go about that here: https://www.maketecheasier.com/add-custom-fonts-command-prompt-windows10/

@vexx32 FYI, there are at least three applications that correctly show all the monospaced fonts, including Roboto Mono:

Windows Terminal (from Microsoft; it's a Microsoft Store / UWP app, possibly still a Preview)
Sublime Text
UltraEdit

So applications seem to have some control over it, though I'm not sure how they interface with the relevant APIs.
With Windows Terminal, I just edited their settings.json file to specify Roboto Mono. For the two editors, Roboto Mono shows up in their font selector UI.

Yep. Applications not using Windows' own conhost can handle fonts however they like... but as far as I'm aware, using conhost means you essentially have to take what you're given when it comes to fonts. Windows Terminal uses conpty (a newer implementation that IIRC is also developed by the Windows Terminal team) rather than the older conhost.
PowerShell operates within a terminal rather than being a terminal in and of itself... so it's beholden to whatever rules the terminal itself sets in terms of fonts etc.

Conhost has very specific rules for what fonts it presents, and we are not likely to change those rules. Sorry!

Note that some of the fonts that don't show up can still be used if manually set.  I use this in my profile to set the font to FuraCode NF from nerd fonts:
https://github.com/SeeminglyScience/dotfiles/blob/c4fa75ceddbdb5d9b6d16b90428969cc1c37fbe7/PowerShell/SetConsoleFont.ps1

@SeeminglyScience Thanks, how do I run that? Do I just invoke that .ps1 file on the command line?

Yeah, here's where I call it in my profile.ps1
https://github.com/SeeminglyScience/dotfiles/blob/c4fa75ceddbdb5d9b6d16b90428969cc1c37fbe7/PowerShell/profile.ps1#L84

@SeeminglyScience Oh, okay, I'm not familiar with profile.ps1 files. Are they comprehensive settings for Powershell? I'm glad there's a way to set up any font.

It's essentially just a script that gets run whenever you start PowerShell.
You can call $profile in your PowerShell console to see the path it'll be looking for, and create or edit the file at that location to add anything you need available in your typical powershell sessions 🙂

I have to agree - these fonts, as-is, are nearly useless on Windows.  Only those very few applications that have a convenient configuration file AND are willing to use variable-pitch fonts (iow: VS Code and very little else) can use Monaspace; everything else doesn't recognize it as a valid monospace font.
The PANOSE "Proportion" field in all the fonts is currently unset (or set to "Any", same net effect) whereas it needs to be set to "Monospace" to be visible in most editors/terminal emulators.
I'm unsure how to change this in the Monaspace build, but in FontForge at least, the setting can be found at Element->Font Info->OS/2->Panose->Proportion.  I'm just not willing to manually edit 100+ files...


Create separate readme for Python package

Highlight the purpose of the Python Package. This could make it easier to understand why and when to use it.
Originally posted by @VictorKuenstler in https://github.com/bakdata/streams-explorer/pull/226#issuecomment-1073674426

Since the Streams Explorer is meant to be used through the frontend, the Python package alone doesn't have much value, at least not in a way that we would want to add extensive standalone documentation for it.


Fixing typo in RELEASE-CHECKLIST.md

Also deleting couple of trailing spaces.
Signed-off-by: Nishant Totla<EMAIL_ADDRESS>

LGTM.


Offset posts

Hey, apologies if I've approached this all wrong – I don't have any experience working with Jekyll Plugins. I added an option to offset the pagination, working on a site where the first few posts aren't paginated.
Thanks!

Hi Benjamin, could you have a look at this and address the comments. Otherwise I will have to close this without merging soon. :/

Apologies for the delay, I'll address the comments soon. :)
Thanks

No problems buddy, just wanted to make sure this wasn't abandoned :) take your time.

ping.


little bug

 lua entry thread aborted: runtime error: /usr/local/lor/lor/lib/request.lua:17: bad argument #1 to 'sfind' (string expected, got table) stack traceback: coroutine 0:         [C]: in function 'sfind'         /usr/local/lor/lor/lib/request.lua:17: in function 'new'         /usr/local/lor/lor/lib/application.lua:37: in function 'run'

lord  -v 0.3.2
/usr/local/openresty/nginx/sbin/nginx  -v nginx version: openresty/<IP_ADDRESS>

You have specified multiple Content-Type headers in single request, which not legal.
Sure, patch welcome. Something about duplicate headers being concatenated back into one.


Add implementation for napi_add_finalizer

See https://github.com/BabylonJS/BabylonNative/issues/1351.

This is a stopgap implementation that needs a more comprehensive fix for all JS engines once this PR is merged.
Tested manually with macOS with the following code:
        auto obj = Napi::ArrayBuffer::New(env, 1000000);
        napi_add_finalizer(env, obj, const_cast<char*>("blah"), [](napi_env, void* finalize_data, void*) {
            const char* message = static_cast<const char*>(finalize_data);
            NSLog(@"napi_add_finalizer: callback: %s", message);
        }, nullptr, nullptr);


Tami4 Home Assistant Integration - still not working - SMS verification is still getting "Unexpected error"

Hello,
It stopped working a few weeks ago.
When I tried to re-install is, the SMS is got "Unexpected error".
Every once in a while I'm trying again, but SMS verification is still getting "Unexpected error".

Here is the log:
Logger: homeassistant.components.tami4.config_flow
Source: components/tami4/config_flow.py:46
integration: Tami4 Edge / Edge+ (documentation, issues)
First occurred: 10:14:46 AM (6 occurrences)
Last logged: 10:28:47 AM
Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/tami4/config_flow.py", line 46, in async_step_user
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/Tami4EdgeAPI/Tami4EdgeAPI.py", line 215, in request_otp
if not response["success"]:
~~~~~~~~^^^^^^^^^^^
KeyError: 'success'

Please refer to this thread: https://github.com/home-assistant/core/issues/113167#issuecomment-2178501391

Got it. Thank you!

Please refer to this thread: home-assistant/core#113167 (comment)

Still not working even after the update


stm32: dts: h7: added stm32h753

add stm32h753 dts file. sram0, dtcm, i2c1, i2c2, i2c3, i2c4 set
fix : #21770
Signed-off-by: Moonkwun Jung<EMAIL_ADDRESS>

@mkainy Please take a look at https://docs.zephyrproject.org/latest/contribute/index.html#contribution-workflow, in particular the "force pushing" portion.

Will commit occur error when committing using github desktop?

@stephanosio  Will commit occur error when committing using github desktop?

@stephanosio Will commit occur error when committing using github desktop?

You are seeing the errors even after fixing them because this PR includes the previous (incorrect) commits.
Amending the incorrect commit and force pushing should resolve the issue. I am not sure if "GitHub Desktop" supports this (I know TortoiseGit does, but I would still recommend using command line interface).


Gradle fails to pull in transitive dependency with classifier

Gradle is currently failing to resolve a transitive dependency with a classifier.
The transitive dependency declaration from the POM:
<dependency>
    <groupId>net.java.dev.jna</groupId>
    <artifactId>jna</artifactId>
    <version>5.12.1</version>
    <classifier>jpms</classifier>
    <scope>runtime</scope>
</dependency>

and Gradle's .module file:
{
  "group": "net.java.dev.jna",
  "module": "jna",
  "version": {
    "requires": "5.12.1"
  },
  "thirdPartyCompatibility": {
    "artifactSelector": {
      "name": "jna",
      "type": "jar",
      "classifier": "jpms"
    }
  }
},

Expected Behavior

Gradle should resolve transitive dependencies with classifiers just fine.
Current Behavior

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> Could not resolve all files for configuration ':testRuntimeClasspath'.
   > Could not find jna-platform-5.12.1-jpms (net.java.dev.jna:jna-platform:5.12.1).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/net/java/dev/jna/jna-platform/5.12.1/jna-platform-5.12.1-jpms
   > Could not find jna-5.12.1-jpms (net.java.dev.jna:jna:5.12.1).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.12.1/jna-5.12.1-jpms

Gradle fails with the error message included above. Instinctively, I would assume that Gradle somehow loses the file extension in this case.
Context

Steps to Reproduce

Clone https://github.com/TheMrMilchmann/MCVE/tree/gradle/21526-transitive-deps-classifier
Run gradlew check

Your Environment

Build scan URL: https://scans.gradle.com/s/yfdjegfcwc6wa

Observation (hint for the bug):
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.12.1/jna-5.12.1-jpms

is missing the extension from the URL.

I just encountered this problem as well with a module that is internal to my company.

It seems like I faced the same issue:
In my case, I changed the dependency format from group:module:version:classifier to gradle dsl - link
Which resulted in missing extension in published .module file
From:
configuration(group:module:version:classifier)

https://repo1.maven.org/maven2/com/github/usefulness/lazythreetenbp/0.17.0/lazythreetenbp-0.17.0.module
To:
configuration(libs.dependency) { artifact { classifier = 'classifier' } }

https://repo1.maven.org/maven2/com/github/usefulness/lazythreetenbp/0.18.0/lazythreetenbp-0.18.0.module
which resulted in a following diff:

which is the same behaviour as described in the initial post, and I confirm the workaround posted above also works 🤷

Can confirm also the same issue when moving to Gradle Version Catalogue approach.
In my case, this is in the declaration of a transitive dependency in "project A", which then fails to be resolved in "project B", so the workaround above could not be applied (as the dependency is not explicitely declared).
Instead, being painfully explicit in "project A" directly is what allowed me to work around the issue.
Example
In Project A, the transitive library is declared:
api 'org:foo:1.2.3' // OK
api(libs.foo) { artifact { classifier = 'custom' } } // NOK
api(libs.foo) { artifact { classifier = 'custom'; type = 'jar'; extension = 'jar' } } // OK

Need to confirm if this was fixed by https://github.com/gradle/gradle/pull/28354

I confirm my case seems to be addressed starting from latest stable Gradle 8.8 👍 (+ I confirmed it still didn't work in 8.7) Thank you 🙏

I can confirm that this issue is fixed in Gradle 8.8. Thanks! Just one final note for documentation purposes: It might be necessary to run with --refresh-dependencies for the fix to take effect.


How to preprocess mask for multiclass segmentation?

Hello.
Images and masks in PNG format.
8 Classes.
How to preprocess masks for categorical_crossentropy loss right?
I tried to use (128, 128, 1) mask, setting each pixel of the mask with a number from 0 to 7, but got error:
Error when checking target: expected softmax to have shape (128, 128, 8) but got array with shape (128, 128, 1)
Code for model creation:
`BACKBONE = 'resnet50'
preprocess_input = get_preprocessing(BACKBONE)
model = Unet(BACKBONE, input_shape=(128,128,3),
encoder_weights='imagenet',
encoder_freeze=True,
classes=8, activation='softmax')
model.compile('Adam', loss='categorical_crossentropy', metrics=[iou_score])`
Thanks. Sorry for bad English.

And how to convert NN prediction (128,128,8) to mask (128,128)? Should I apply argmax or something else?

Hello,
Thank you for sharing this project.
I have the same question in the case of multi-class segmentation.

Hello. :) Same problem here!
Error when checking target: expected sigmoid to have shape (224, 224, 4) but got array with shape (224, 224, 3).
model = Unet('vgg19', classes=4, input_shape=(224,224,3), encoder_weights='imagenet')
model.compile('Adam', loss="categorical_crossentropy", metrics=[iou_score])

from keras.preprocessing.image import ImageDataGenerator
datagen = ImageDataGenerator(
    featurewise_center=True,
    featurewise_std_normalization=True,
    rotation_range=20,
    width_shift_range=0.2,
    height_shift_range=0.2,
    horizontal_flip=True)

datagen.fit(x_train)

model.fit_generator(
    datagen.flow(x_train, y_train, batch_size=32),
    steps_per_epoch=len(x_train) / 32,
    epochs=1)

# Here is the output of model.summary() function.
input_3 (InputLayer)            (None, 224, 224, 3)  0
...
...
decoder_stage4_relu2 (Activatio (None, 224, 224, 16) 0           decoder_stage4_bn2[0][0]
__________________________________________________________________________________________________
final_conv (Conv2D)             (None, 224, 224, 4)  580         decoder_stage4_relu2[0][0]
__________________________________________________________________________________________________
sigmoid (Activation)            (None, 224, 224, 4)  0           final_conv[0][0]

I have the answer;
You need indeed to convert your RGB mask to a one-hot encoding image with shape (H,W,Channels) with Channels equals to the number of classes (containing the background).
Imagine you have an image/array (a mask) of shape (128,128,3). First you need to notice the unique elements which are corresponding to a label.
img.shape = (128,128,3)
list= []
for i in range(128):
    for j in range(128):
        list.append(img[i,j,:].tolist())

def uniq(lst):
    last = object()
    for item in lst:
        if item == last:
            continue
        yield item
        last = item

def sort_and_deduplicate(l):
    return list(uniq(sorted(l, reverse=True)))

palette = sort_and_deduplicate(list)
palette

[[128.0, 128.0, 0.0],
 [128.0, 0.0, 0.0],
 [0.0, 128.0, 0.0],
 [0.0, 0.0, 128.0],
 [0.0, 0.0, 0.0]]

palette is your current label pixels values in your RGB MASK (the unique elements)
Then, you can use a function like this to convert it to one-hot encoding:
one_hot_map = []
for colour in palette:
    class_map = tf.reduce_all(tf.equal(img2, colour), axis=-1)
    one_hot_map.append(class_map)
one_hot_map = tf.stack(one_hot_map, axis=-1)
one_hot_map = tf.cast(one_hot_map, tf.float32)

with tf.Session() as sess:
    print (sess.run(one_hot_map))

[[[0. 0. 0. 0. 1.]
  [0. 0. 0. 0. 1.]
  [0. 0. 0. 0. 1.]
  ...
  [0. 0. 0. 0. 1.]
  [0. 0. 0. 0. 1.]
  [0. 0. 0. 0. 1.]]

Here is for the processing of the masks (in this example you will have a (128,128,5) one-hot encoding mask.
And you can run
define model with output of N classes, where N > 1
model = Unet('resnet34', classes=5, activation='softmax')
for multiclass segmentation choose another loss and metric
model.compile('Adam', loss='categorical_crossentropy', metrics=['categorical_accuracy'])
Once your model is trained, the predict function will outputs a (128,128,5) mask with probability inside it.
Then you can use argmax function with numpy to convert it to (128,128,3) true image and visualize results.
Hope it will helps

Haven't completed my project, but doing the following has helped get the ball rolling:
Each mask should be an 8-bit map (single channel), from [0:N] where 0 represents the background (even if there isn't one), and N is the number of classes.
Send each mask into keras.utils.to_categorical() to get a one-hot-encoded representation of the label. Making your label the shape (batch_size, 128, 128, 5)

name
dtype
contains
shape
format
extension

image
uint8
0 to 255
224x224x3
RGB
.jpg

images
uint8
2881 training images
2881x224x224x3

images_res
float32
rescaled training images [0,1] interval
2881x224x224x3

label
uint8
0 to NUM_CLASSES each number represents a class
224x224
Gray
.png

labels
uint8
2881 training labels
2881x224x224

labels_cat
float32
Better to explain with figure.
2881x224x224xNUM_CLASSES

I thought, the whole (not just for mask preprocessing) image&label preprocessing code for semantic segmentation task will be much cleaner for everyone (especially for newbies).
# Rescale the pixel values (between 0 and 255) to the [0, 1] interval.
# "Neural networks prefer to deal with small input values."
# Deep Learning with Python by Francois Chollet page 135

images_res = images.astype('float32')
images_res /= 255

labels_cat = to_categorical(y = labels,
                            num_classes = 4,
                            dtype = 'float32')

I have a very imbalanced dataset. And I tried to use class_weight and sample_weight as Keras documentation suggested but I didn't figure out how to use both two of them like others. Finally, I applied the below code to tell the loss function that it should treat each class equally. Please, visit each link I provided above to understand better what I mean. I hope this will be useful for everyone.
# For a single pixel value, I have NUM_CLASSES (in my case, it's 3) dimension.
# [0., 0., 1.] represents CLASS_C
# [0., 0., CLASS_WEIGHT] still represents CLASS_C
# and also tells to loss function that, I care CLASS_C proportional to its CLASS_WEIGHT

CLASS_A_CHANNEL = 0
CLASS_B_CHANNEL = 1
CLASS_C_CHANNEL = 2

CLASS_A_WEIGHT = 1.02145046
CLASS_B_WEIGHT = 1000
CLASS_C_WEIGHT = 50

for label in labels_cat:
  label[ label[:,:,CLASS_A_CHANNEL] == 1 ] *= CLASS_A_WEIGHT
  label[ label[:,:,CLASS_B_CHANNEL] == 1 ] *= CLASS_B_WEIGHT
  label[ label[:,:,CLASS_C_CHANNEL] == 1 ] *= CLASS_C_WEIGHT

@safak17, here you have 4 classes in to_categorical() but in the second code block you mention you have three classes. I'm assuming the last class belongs to the background is ignored by training? How did you specify to Keras to ignore the background/void class within the masks so it's not involved in calculating the loss or made during predictions?

@JordanMakesMaps, I've made a typo and fixed it now. Sorry for the confusion. I didn't ignore the background/void class within the masks, I just try to balance the contribution of each class (including background) to the loss function.

code block
int
one hot
frequency
weight
weighted one hot

CLASS_A
0
[1, 0, 0]
0.97886586
1.0215904353
[1.0215904353, 0, 0]

CLASS_B
1
[1, 0, 0]
0.00129868
770.0126282071
[0,<PHONE_NUMBER>071, 0]

CLASS_C
2
[0, 0, 1]
0.01983546
50.414762249
[0, 0, 50.414762249]

Here is the Python code that shows how I calculated the class frequencies. I just count the number of pixels belongs to each class, then divide it to the total number of pixels. For example, in the training set, 141501967 pixels belong to CLASS_A(0) class.

# y_train contains 224x224 label images (each one of them have INTEGER numbers 0,1,2)
# unique_elements = [0,                   1,          2]
# counts_elements = [141501967,      187733,    2867356]
# class_frequency = [0.97886586, 0.00129868, 0.01983546]
unique_elements, counts_elements = np.unique(ar = y_train,
                                             return_counts = True)

class_frequency = counts_elements / np.sum(counts_elements)

# Step 1 : freq_class_a * CLASS_A_WEIGHT = 1
# Step 2 : 0.97886586 * CLASS_A_WEIGHT = 1
# Step 3 : CLASS_A_WEIGHT = 1.0215904353

To understand better np.unique() function please look at below image.

@safak17 thanks for the clarification. I realize now what I refer to as background is in fact a label I want to ignore completely. I believe that (in Keras) is denoted by a -1 or 255. Thanks!

There is an example in examples/ dir now

And how to convert NN prediction (128,128,8) to mask (128,128)? Should I apply argmax or something else?

you can simply use np.argmax(img, -1)

Thank you.. Great solution


Timeouts do not work in the main branch

(NOTE: This is used to report product bugs:
To report a security vulnerability, please visit https://istio.io/about/security-vulnerabilities
To ask questions about how to use Istio, please visit https://discuss.istio.io)
Bug description
Istio.io moved up to a new weekly istio build and two istio.io documentation tests are now failing when timeouts are being set but don't appear to be working.

https://istio.io/latest/docs/tasks/traffic-management/egress/egress-control/#manage-traffic-to-external-services
One sets a timeout in Step #2 and expects a failure (504) in step #3 but gets a 200…

https://istio.io/latest/docs/tasks/traffic-management/request-timeouts/#request-timeouts
In step #5 of that section, it says that the Reviews section should NOT be shown (as a .5 sec timeout was added). The reviews section still displays so it seems the timeout added in Step #4 is not working.

[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
The documentation test should continue to pass as we move up istio.io/istio references
Steps to reproduce the bug
One can look at https://github.com/istio/istio.io/tree/master/tests#running-the-tests to see about running the tests.
Example for a Mac with a kind cluster:
TEST_ENV=kind ADDITIONAL_CONTAINER_OPTIONS="--network host" make doc.test.profile_none TEST=tasks/traffic-management/egress/egress-control/test.sh
Version (include the output of istioctl version --remote and kubectl version --short and helm version --short if you used Helm)
1.10-alpha.ba8228cc703fa11542c3e97c1702688d072152a1
How was Istio installed?
test framework
Environment where the bug was observed (cloud vendor, OS, etc)
test pipeline
Additionally, please consider running istioctl bug-report and attach the generated cluster-state tarball to this issue.
Refer cluster state archive for more details.

History trying manually. I don't get the desired 504 after 3 secs, but get a 503 right away.
kind create cluster --name istio-testing --config $ISTIO/istio/prow/config/trustworthy-jwt.yaml
./out/darwin_amd64/istioctl install --set hub=gcr.io/istio-testing --set tag=1.10-alpha.21acbb88915b15d9a322470bb3b86cf7819aa752 --manifests=manifests --skip-confirmation --set profile=demo
kubectl apply -f <(istioctl kube-inject -f samples/sleep/sleep.yaml)\n\n
export SOURCE_POD=$(kubectl get pod -l app=sleep -o jsonpath='{.items..metadata.name}')\n\n
kubectl apply -f - <<EOF\napiVersion: networking.istio.io/v1alpha3\nkind: VirtualService\nmetadata:\n  name: httpbin-ext\nspec:\n  hosts:\n    - httpbin.org\n  http:\n  - timeout: 3s\n    route:\n      - destination:\n          host: httpbin.org\n        weight: 100\nEOF\n\n
kubectl exec "$SOURCE_POD" -c sleep -- time curl -o /dev/null -sS -w "%{http_code}\n" http://httpbin.org/delay/5\n\n

missed the service entry in the prior step. That gets me to a 200 after 5 secs..

Tried again on the latest istio: istio.io/istio v0.0.0-20210311093840-6e8d51de28a0 and still fails.

I confirmed the problem started with https://github.com/istio/istio/pull/31258 in which the proxy SHA was updated. Not sure if there is something in our code that needed some updating or not. @PiotrSikora

Some Slack discussion at https://istio.slack.com/archives/C38CF1PEC/p1615223606176500

Running the tests locally or even trying the example at https://istio.io/latest/docs/tasks/traffic-management/request-timeouts/ still fails.

I do see this when looking at the routes:
                "routes": [
                    {
                        "match": {
                            "prefix": "/"
                        },
                        "route": {
                            "cluster": "outbound|9080|v2|reviews.default.svc.cluster.local",
                            "timeout": "0.500s",
                            "retryPolicy": {
                                "retryOn": "connect-failure,refused-stream,unavailable,cancelled,retriable-status-codes",
                                "numRetries": 2,
                                "retryHostPredicate": [
                                    {
                                        "name": "envoy.retry_host_predicates.previous_hosts"
                                    }
                                ],
                                "hostSelectionRetryMaxAttempts": "5",
                                "retriableStatusCodes": [
                                    503
                                ]
                            },
                            "maxStreamDuration": {
                                "grpcTimeoutHeaderMax": "0.500s"
                            }

This was with gcr.io/istio-testing/pilot:1.10-alpha.f88f93ff2b8172b37c83d6066363d76b4477bd2d

See https://github.com/envoyproxy/envoy/issues/15530 for discussion on a change in Envoy which caused our failure and whether the fix needs to be within Envoy or Istio.


General model description

We now have a formal model description: https://deltares.github.io/Ribasim/core/equations.html#formal-model-description
We still need a better informal general description. The closest we have is on the main page: https://deltares.github.io/Ribasim/, but that needs an update.
We need to make it clear what a node is and what an edge is, and the role of the Basin node. This should go well with #207 which also describes an overview of the different node types, a bit like in https://deltares.github.io/Ribasim/python/reference/Model.html#ribasim.Model.
We need to make clear how Basin nodes represent areas, like the blue dots here, and that edges don't represent any area. Images like this, but less obviously drawn in MS Paint.

I started a script to make such images:

If anyone is interested in the script let me know where I should put it.
I think it would be helpful to add in the documentation that:

The graphs are not simply map graphs like [this];(https://ds055uzetaobb.cloudfront.net/brioche/uploads/lRC3MIbnUy-germany_map_2.png?width=1200)
The basin connections can consist of more than one node.

Yeah that image captures it well.
Here are some extra points, in Dutch, since I needed to make a slide.

Comment Fatima: Good example for reference is the Ribasim7 manual

https://deltares.github.io/Ribasim/ has been improved. I don't think we need to keep this open.


Automatically update lines when its From Node and To Nodes are changed

Hi,
I am trying for some change in displaying the data.
When i change the Node ID from Old to some other node id, can we draw the lines to that particular node.
I tried by changing the Node Id from Attribute table editor. It did not reflect.
Regards,
Amit

Please explain more clearly what you're trying to do. If possible include pictures.

In this above pic, i have a line from D7 to D8, D8 to D9
If i want a line from D7 to D9, then where i have to change. I tried using Attribute Table editor by changing node id's it did not update.

Ok so basically you have a line geometry with the points D7, D8 and D9. And you want to change this line to only have the points D7 and D9.
Changing the attributes doesn't change the geometry. Attributes are just values you can display.
To change the line you'll have to do the following things:

Get your feature layer (e.g. from Map.Layers).
Find the feature the line belongs to
Create a new line geometry from D7 to D9
Assign the new geometry to the Geometry property of your feature
Synchronize the underlying lists (#801) to make sure the drawing gets updated and you don't cause any errors

Thanks for the reply, i am trying to understand the points mentioned but finding difficult to interpret and implement. I request for more depth explanation.


[nrf fromtree] Clear srp implementation

This commit implements the host srp clear, using a cherry-picked upstream solution.
Cherry-picked commit 6350333 content:
“This PR brings https://github.com/project-chip/connectedhomeip/pull/31606 feature to The GenericThreadStackManagerImpl.
The functionality remains the same (with the addition of deleting the client key lease also).
However, this requires each platform that uses it, to provide a synchronization mechanism.
I created the Templates _WaitOnSrpClearAllComplete and _NotifySrpClearAllComplete and I provided an implementation for all platforms using the GenericThreadStackManagerImpl. (It is left unimplemented for others)
The synchronization mechanism I chose for Zephyr platforms (nordic/telink) and Infineon might not be optional so suggestions are welcome.
The functionality was only tested on the Silabs platform and is currently only used on it also. I am confident it works for all FreeRTOS-based platforms.
I suggest all other thread platform owners take some time to test and use ClearAllSrpHostAndServices during their factory-reset sequence.”

Thanks. What about manifest update?

This patch did not land in NCS 2.6.0. I will be pulled in by the next connectedhomeip upmerge. Closing.


QueriesSummary channel should have sliding time window too

The queries_summary event processor should have the logic of the time-based sliding window.

Closed with eaa6d3b


app/publisher/js: staticcheck

Closing this, see my comment here:

https://github.com/perkeep/perkeep/pull/1405#issuecomment-894727096


--cross_attn     What is the function of this parameter？

--cross_attn
What is the function of this parameter？

Please refer to the paper "Stacked Cross Attention for Image-Text Matching".


Support for React 16

Hi there,
At @thumbtack we've started adopting Styled Components in our React codebase. We're liking it a lot so far from a developer experience perspective, but wanted to reach out with some technical concerns to make sure its a viable technology for us to invest in going forwards.
We have recently added a server-side React renderer to our setup, and plan to upgrade both our client and server side React to v16 soon. This comes with lots of improvements for SSR, including an asynchronous renderToNodeStream method that can be used on the server to start sending data to the client sooner, and a hydrate method on the client to more efficiently re-render server rendered components when the client loads.
We wanted to find out if you guys had a plan or roadmap for supporting these features in React 16, to avoid getting into a situation in the future where we're unable to upgrade React due to restrictions on other libraries.
Cheers,
Giles

@lavelle we likely won't be able to support this anytime soon but we have an issue tracking it here: https://github.com/styled-components/styled-components/issues/1192
Please note that this is not a "general support for v16" issue as support for v16 is working as intended :wink:


Fix deletion of the version vector when client deactivation

What this PR does / why we need it?
This PR resolves an issue where the version vector is not properly removed when a document detach occurs due to client deactivation.
Currently, when deactivate is called, detachDocument works as expected; however, the clientInfo passed to updateVersionVector still contains information from before the detachDocument was completed. This causes inconsistencies in the version vector.
To address this, I have modified the handling of clientInfo passed to updateVersionVector, ensuring it reflects the detached state of the document accurately after the detachDocument operation is complete.
Any background context you want to provide?
What are the relevant tickets?

Fixes #1058
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Additional documentation:

Checklist:

[x] Added relevant tests or not required
[x] Didn't break anything

Because the fact that no error occurred during the detach process guarantees that the detach was completed successfully, I manually manipulated clientInfo.
Are there any other problems I might encounter with this?


Add static keyword to anonymous functions, where possible.

Description

Adds the static keyword to anonymous functions where possible.
As documented here by Microsoft : static-anonymous-functions.
How Has This Been Tested?

Ran all test + checked components visually in MudBlazor.Docs.Server project.
Types of changes

[x] Enhancement (non-breaking change which improves performance)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[x] I've added relevant tests.

Not sure if this is necessary.
If I'm not mistaken, the "unexpected additional allocations" happens only if you capture local variables (or parameters)
For example:
int y = 10;
someMethod(x => x + y); // captures 'y', causing unintended allocation.

or
someMethod(x => Compute(x));

More info: link1, link2
This is why static lambda was introduced - to avoid such mistake, but most of the changed lambdas in this PR are really simple x => x.Number and changing it to static x => x.Number doesn't make any difference and only adds verbosity. I think this was the reason why this isn't included to the Roslyn Analyzer:

I just did some benchmarks and you're right.
It seems like I misunderstood it.
I will check tomorrow the cases where it might be applicable an make a new request (if I find any).


Public production Mina Indexer lacks domain name and TLS certificate

This is a follow-up to #851.
We now need to connect a DNS entry (api.minasearch.com) to the publicly exposed Indexer. We plan to do this using Cloudflare. This will allow us to proxy behind it for CDN purposes and provide a TLS certificate.
Utilizing Cloudflare distantly relates to my plan for Granola-Team/mina-block-explorer#44

I have created a Cloudflare account.
@trevorbernard, @robinbb, and I all (currently) have this role: Super Administrator - All Privileges. Jeff has been added with the Billing role (in case we need it).

Currently, minasearch.com is registered at Namecheap with nameservers pointing to AWS Route 53.
Cloudflare does support partial CNAME setup:

A partial (CNAME) setup allows you to use Cloudflare’s reverse proxy while maintaining your primary and authoritative DNS provider.
Use this option to proxy only individual subdomains through Cloudflare’s global network when you cannot change your authoritative DNS provider.

Unfortunately, this is not available on the free plan.
Thus, my current recommendation is to either:

transfer the domain to Cloudflare (as the registrar) or
transfer nameservers to Cloudflare

Find the DNSSEC setting in Namecheap control panel. If it is on, turn DNSSEC off at least 24 hours before step next step.
Update the nameservers to use Custom DNS with these values:

isabel.ns.cloudflare.com
patryk.ns.cloudflare.com

We chose option 1, FYI.

Before we could transfer the domain, we needed to update the nameservers (which @trevorbernard did). We then proceeded to transfer the domain and the transfer has been completed.


AGDIGGER-22 - Android minimal pipeline script

Motivation
Do android build! KISS!
WIP: It works but things may change. Posting early for feedback.

How this works

Build is scheduled on android jenkins node preconfigured to use new android sdk container.
(see #6)
Job with jenkins file needs to created manually for the moment.
Job wrapper coming soon in separate PR.

we could use this in the template fork/branch from @aliok

:+1:


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/43912

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/62308

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/65507


[WFLY-15699] Upgrading JSTL from 2.0.0 to 3.0.0

https://issues.redhat.com/browse/WFLY-15699

Thanks @ropalka


Show Room avatars (in the RoomsList) for direct rooms

Currently the RoomsList does not display avatar images for "direct" rooms (direct messages / person-to-person chats).
I'm not sure of the exact cause, but I would assume that the direct rooms themselves don't have an established Room Avatar, and that most clients are just using the other person's individual user Avatar as the room avatar. Not sure how that would work with direct rooms that include more than two members... but that could also be explored as part of this issue, or left for another issue in the future.
See the following, in which every room (except "Testing" and "Testing2") should have avatar images.

Now, I am on it in #301


Guess the number

Create a simple guess the number game

Can would love to work on this issue.

Assigned it to you

actually their is an error why starting the react file

does any one have any idea about this error??

I would like to work on this project. Please assign it to me.

I would like to work on this project. Please assign it to me.

Please assign it to me I can solve this issue

Hi @Vickyaryan33 , Assigned this issue to you. Kindly contribute on this and also go through the readme and contributing.md for successful merge. All the best to your work.


Using windowSize and changing orientation causes items not to render

Describe the bug
A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
To Reproduce
Steps to reproduce the behavior:

Set windowSize to any number less than the length of your data array
Change the orientation of your device
Swipe through some slides
You'll see some of the slides are not rendered

Expected behavior
All of the slides to render
Screenshots

Versions (please complete the following information):

react: v18.2.0
react-native: v0.71.14
react-native-reanimated: v2.14.4
react-native-reanimated-carousel: v3.1.5
react-native-gesture-handler: v1.10.3

Smartphone (please complete the following information):

Device: iPhone 13 Pro but it can be reproduced on any device
OS: iOS 17.5.1 but its not specific to this iOS version

Additional context
Note in the snippet below, the width and height props are changing when the screen orientation changes. I wonder if that is having an impact?
Code snippets:
  export const FeaturedCarousel = memo(function FeaturedCarousel() {
  const [currentSlide, setCurrentSlide] = useState(0)
  const carouselRef = useRef<ICarouselInstance>(null)

  const { width: carouselWidth } = useWindowDimensions()
  const carouselQuery = useGetFeaturedCarouselQuery()

  const carouselHeight = Math.min(carouselWidth * CAROUSEL_HEIGHT_MULTIPLIER, FEATURED_CAROUSEL_MAX_HEIGHT)

  const slides = useMemo(() => carouselQuery.data?.filter((item) => !item.hideInMobile), [carouselQuery.data])

  const [isAutoSlideActive, setIsAutoSlideActive] = useBoolean(true)

  const onVideoEnd = useCallback(() => {
    isAutoSlideActive && carouselRef.current?.next()
  }, [isAutoSlideActive])

  const renderItem = useCallback(
    ({ item, index }: { item: FeaturedCarouselItem; index: number }) => (
      <FadeInOnMountView duration={400} style={{ flex: 1 }}>
        <FeaturedCarouselSlide
          slideData={item}
          currentSlide={currentSlide}
          onVideoEnd={onVideoEnd}
          slideIndex={index}
          cancelAutoSlide={setIsAutoSlideActive.setFalse}
          key={item.id}
        />
      </FadeInOnMountView>
    ),
    [currentSlide, onVideoEnd, setIsAutoSlideActive.setFalse]
  )

  return (
    <Carousel
      style={{ marginTop: CAROUSEL_MARGIN_TOP }}
      ref={carouselRef}
      loop={slides.length > 1}
      width={carouselWidth}
      height={carouselHeight}
      data={slides}
      autoPlay={false}
      scrollAnimationDuration={300}
      mode="parallax"
      modeConfig={{
        parallaxScrollingScale: 0.89,
        parallaxScrollingOffset: carouselWidth * 0.125,
        parallaxAdjacentItemScale: 0.83,
      }}
      onSnapToItem={setCurrentSlide} // Consider to use onProgressChanged instead to avoid UI change delays
      renderItem={renderItem}
      // This resolves the issue of the carousel suppressing the vertical scroll of the FlatList
      // https://github.com/dohooo/react-native-reanimated-carousel/issues/125
      panGestureHandlerProps={{
        activeOffsetX: [-10, 10],
      }}
    />
  )
})

I stumbled upon the same issue while using the latest beta version at this point (4.0.0-alpha.12). This seems to be indeed a bug.
@MetaBenji  Found a hacky way of working around the issue by slightly changing the windowSize param when the orientation changes; not pretty, but it does the job:
import { useWindowDimensions } from 'react-native';

...

const { width, height } = useWindowDimensions();

...
...

<Carousel
    ref={ref}
    windowSize={width < height ? 3 : 4}
    width={width}
    data={data}
    ....
/>

same problem


No ripples in IconMenu as ListItem's rightIconButton

I've tried to put IconMenu as ListItem's rightIconButton, but the menu items don't have hover and touch effects any more

Thanks for finding this @patrykkopycinski :+1:

:+1: Thank you @hai-cea

I have this problem on Nexus 7 with 0.14.0-rc2. When I tap on menu item there's no ripple and menu closes with a delay.

@HriBB I confirm your issue with a touch device emulator.
Could you open a separate issue?


design of models

the rule is given as morphisms between ACSets, but it is becoming clear that the method to identify and sample homomorphisms can depend on the schema more deeply, for example being generated functions for a specific model.

still nice to have some place for arbitrary code for testing complications such as time-dependent transition probabilities, or where parameters to the probability functions are coming in from a spline fit or something.


Consider upgrading to support newest version of pylzss

This project requires pylzss 0.3.4. The newest version at the time of this message is 0.3.8.

I temporarily rolled back the pylzss version to 0.3.4 with the latest release because I have gotten reports from others of compression being broken with the latest release. If/when I release a new pylzss version that fixes these issues, I'll have PyIMG4 use that version.


[Issue] All accounts recieve invite to same server when using invite link

Describe the bug
When clicking an invite link to a server in a browser, the invite is sent to all added accounts even though I'm only logged into one account. This leads to all my accounts joining a server at the same time, which is not a desired outcome.
To Reproduce
Steps to reproduce the behavior:

Add multiple accounts from the settings page.
Click and accept a discord invite link from a browser.

Expected behavior
Only the currently logged in account should recieve an invite.
Information (please complete the following information):

OS: Linux
Plugin Version: 1.3.0
Discord version: Stable
Compact Mode enabled? No
Encryption enabled? No

I have followed the steps and it produced the expected behavior.


feat: ux-layout

Closes #45
Closes #42
Objectif(s)

Codecov Report

Merging #50 (a821ef4) into dev (637810d) will decrease coverage by 0.58%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##             dev     #50      +/-   ##
========================================
- Coverage   2.05%   1.46%   -0.59%
========================================
  Files         51      72      +21
  Lines        878    1232     +354
  Branches     141     184      +43
========================================
  Hits          18      18
- Misses       821    1157     +336
- Partials      39      57      +18

Impacted Files
Coverage Δ

src/common/constant/event.ts
0.00% <0.00%> (ø)

src/common/modules/pst-extractor/type.ts
0.00% <0.00%> (ø)

src/main/index.ts
0.00% <0.00%> (ø)

src/main/modules/OpenDialogModule.ts
0.00% <0.00%> (ø)

...main/modules/pst-extractor/pst-extractor.worker.ts
0.00% <ø> (ø)

src/renderer/app.tsx
0.00% <ø> (ø)

src/renderer/components/common/card/Card.tsx
0.00% <0.00%> (ø)

src/renderer/components/common/layout/Layout.tsx
0.00% <0.00%> (ø)

src/renderer/components/common/pictos/picto.tsx
0.00% <0.00%> (ø)

src/renderer/components/dropzone/Dropzone.tsx
0.00% <0.00%> (ø)

... and 30 more

Continue to review full report at Codecov.

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


[19.03 backport] Ensure parent dir exists for mount cleanup file

backport of https://github.com/moby/moby/pull/39496
While investigating a test failure, I found this in the logs:
time="2019-07-04T15:06:32.622506760Z" level=warning msg="Error while setting daemon root propagation, this is not generally critical but may cause some functionality to not work or fallback to less desirable behavior" dir=/go/src/github.com/docker/docker/bundles/test-integration/d1285b8250308/root error="error writing file to signal mount cleanup on shutdown: open /tmp/dxr/d1285b8250308/unmount-on-shutdown: no such file or directory"

This path is generated from the daemon's exec-root, which appears to not
exist yet. This change just makes sure it exists before we try to write
a file.

all green; let's get this one in


Error after update to icinga2 2.4

After changing legacymode to false I got "No Data" message on all host/services that contain a '-' in the name.
I found that the escapeMetric function does escape '-' regardless of the legacyMode setting.
When I change "if ($legacyMode)" to "if ($legacyMode == 'true') it works properly. I don't know if this is the proper way to fix the problem but it works for me.

see #30

See #30. should be resolved soon.

Another issue with Icinga 2.4 is the new Graphite schema that doesn't seem to be supported yet.
In Macro.php we need a new macro:
    'CHECKCOMMAND' => 'check_command'

and in Grapher.php we would need different host and service macros:
    protected $serviceMacro = '$HOSTNAME$.services.$SERVICEDESC$.$CHECKCOMMAND$.perfdata';
    protected $hostMacro = '$HOSTNAME$.host.$CHECKCOMMAND$.perfdata';

However, these should be options because in Icinga you have the choice of continuing to use the old schema.

Well as far as I can see those macros are obsolete anyway. You can use the macros provided by Icingaweb2.
Look at the demo config in /application/views/scripts/config/index.phtml:
service_name_template = "$host.name$.services.$service.name$.$service.check_command$.perfdata"
host_name_template = "$host.name$.host.$host.check_command$.perfdata"

it does right that...

BTW in that file there are the templates for the old format too...

Thanks to @Alex9779 the original issue is now resolved. If there are other problems please raise a separate issue.


chore(ci): Only run CI once

Currently, each PR runs the whole CI system twice.
This change fixes that.
Signed-off-by: Ry Jones<EMAIL_ADDRESS>

@ryjones I'll fix the failing tests


Cannot add property _restore, window.history object is not extensible

Expected behavior
bugsnag-js client installed on the web page without errors
Observed behavior
There is an error occured during the bugsnag-js client init process.
It seems window.history object marked with preventExtensions() command and this avoids its changes.

Steps to reproduce
Open page https://www.patientenfragen.net/search.php?searchid=792341 and look at console for an error.
Version
4.7.0
Additional information
Can't comment on Issues?
Some users have been unable to comment on Github issues when an adblocker extension is enabled.
We recommend temporarily disabling the extension, or if that fails, contacting<EMAIL_ADDRESS>

After additional investigation, I found that some external library redefining the window.history object, and this causes an exception on bugsnag initialization:

What might help is to have an exceptions handling (try catch) during the bugsnag initialization.

Thanks for this issue @drdmitry. We certainly can look at wrapping this (or all plugins initialisation) in a try/catch. Is it possible for you to load Bugsnag before the script that modified the history object?
Arguably the script that is making the history object non-configurable should be changed, but if it's prevalent or common enough, then Bugsnag should adapt.

@bengourley thanks for your reply. For the mentioned case - code which uses bugsnag is loaded (or executed) separately from the website and the load order cannot be changed.


Still error

I think I already followed the docs.
But Why I still got error:
https://github.com/hendisantika/SpringBoot-DataTable

Any suggestion?

Closed as duplicate of https://github.com/darrachequesne/spring-data-jpa-datatables-sample/issues/13.