On terminate and open new task/instance is created

I have used the example code in the description for my app. Everything works fine and I see the background job running while in the foreground, background, and when the app is terminated.
After the termination when I open the app again, I see that a new stance is created and runs along side with the previous stance, so the app would create a new stance for each terminate and open. I tried to use the BackgroundService.isRunning() with condition and run stop() when its running in hope that it stops the previuse stance and creates a new one with no luck :/
How is it possible to only run one instance and not generate new ones when app is terminated and opened again?
My code:
import BackgroundService from 'react-native-background-actions';
import moment from 'moment';

const runTask = async () => {
  const sleep = (time) => new Promise((resolve) => setTimeout(() => resolve(), time));
  // You can do anything in your task such as network requests, timers and so on,
  // as long as it doesn't touch UI. Once your task completes (i.e. the promise is resolved),
  // React Native will go into "paused" mode (unless there are other tasks running,
  // or there is a foreground app).
  const veryIntensiveTask = async (taskDataArguments) => {
      // Example of an infinite loop task
      const { delay } = taskDataArguments;
      await new Promise( async (resolve) => {
          for (let i = 0; BackgroundService.isRunning(); i++) {
              console.log(i, moment().format('HH:mm:ss'));
              await sleep(delay);
          }
      });
  };

  const options = {
      taskName: 'Example',
      taskTitle: 'ExampleTask title',
      taskDesc: 'ExampleTask description',
      taskIcon: {
          name: 'ic_launcher',
          type: 'mipmap',
      },
      color: '#ff00ff',
      // linkingURI: 'yourSchemeHere://chat/jane', // See Deep Linking for more info
      parameters: {
          delay: 1 * 60 * 1000
      },
  };

  // iOS only Listen for the iOS-only expiration handler that allows you to 'clean up' shortly before the app’s remaining background time reaches 0
  // BackgroundService.on('expiration', () => {
  //   console.log('I am being closed :(');
  // });
  console.log('BackgroundService.isRunning()', BackgroundService.isRunning());
  if (BackgroundService.isRunning()) {
    console.log('Inside isRunning and stops');
    /await BackgroundService.stop();
  }
  await BackgroundService.start(veryIntensiveTask, options);
  // await BackgroundService.updateNotification({taskDesc: 'New ExampleTask description'}); // Only Android, iOS will ignore this call
  // iOS will also run everything here in the background until .stop() is called
}

Versions:
"react-native": "0.67.1",
"react-native-background-actions": "^2.6.7",

Thanks in advance!

async componentDidMount() {
console.log("BS", BackgroundService.isRunning());
const sleep = (time) => new Promise((resolve) => setTimeout(() => resolve(), time));
const veryIntensiveTask = async (taskDataArguments) => {
  // Example of an infinite loop task
  const { delay } = taskDataArguments;
  await new Promise(async (resolve) => {
    console.error('Before Loop');
    for (let i = 0; BackgroundService.isRunning(); i++) {
      console.log("Running in background");
      console.log('index', i);
      await sendRequest(db, 'signoff');
      console.log(delay);
      await sleep(delay);

    }
  });
};

const options = {
  taskName: 'BackGroundTask',
  taskTitle: 'Background Task',
  taskDesc: 'App running in background',
  taskIcon: {
    name: 'ic_launcher',
    type: 'mipmap',
  },
  color: '#ff00ff',
  linkingURI: 'yourSchemeHere://chat/jane', // See Deep Linking for more info
  parameters: {
    delay: 10000,
  },
};

**if(!BackgroundService.isRunning()) // Add this line to your code, this will check if any instance is already running so it won't start a new one**
{
  await BackgroundService.start(veryIntensiveTask, options);
  await BackgroundService.updateNotification({ taskDesc: 'App running in background' }); // Only Android, iOS will ignore this call
  // iOS will also run everything here in the background until .stop() is called
  await BackgroundService.stop

}

}

Thank you so much @zainarshad45122


ShareJS now works again with meteor 1.3 and ace 1.2

Now ShareJS Ace works again with meteor 1.3.
Problems

Loading fo ace editor takes longer
Build time very huge, because of the inclusion of the whole ace editor. To reduce the build time all except the src folder of ace-build folder should be deleted.

Advantages

Works with newest Ace Versions
Base Package does not need any editor specific code
Works again with meteor 1.3

fixes #65
fixes #55

@mizzao Any Chance that this gets merged? At the moment this is blocking us to update the our application to meteor 1.3. And I want to avoid to publish the package independently.

Awaiting the merge so I can upgrade to Meteor 1.3

Sorry guys, I'm traveling and will have to review this later.

Hi @mizzao would it be possible to merge this at all? Of course I understand if you don't have time to check it, but many people would really benefit from being able to upgrade to 1.3 and still use this package.

I have published the packages under my name:
https://github.com/davidsichau/meteor-sharejs
@mizzao Hope this is OK for you.

@DavidSichau, would you like to be added to the publishers list for this package and just push it out directly, or do you want to maintain your own form?

@mizzao I think publishing under you name makes sense when the changes are added to this repo. Otherwise another name would be better to avoid a difference in the source code and the published packages.

@DavidSichau - I'm asking if you want push access to this repo and publishing rights to the Meteor package name :)
It's better to have someone actively using this maintaining it than someone who isn't!

@mizzao That would be great. I will try to maintain this package then in the future.

Great. What's your Meteor username? I will add you to this repo and add your Meteor account to the atmosphere package as well.
I'm happy to answer any questions about maintaining the package or other confusing things, if you run into issues.

The meteor username is<EMAIL_ADDRESS>I will start to merge my changes tomorrow and publish the compatible version of the package.

Great, davidsichau can now publish for mizzao:sharejs, mizzao:sharejs-ace, and mizzao:sharejs-codemirror.

@jakubfiala Please use again the mizzao share js packages. I have updated them to the newest version.

that's brilliant, thank you very much @DavidSichau


PulseAudio: Unable to connect: Connection refused

Output of the audio debugging script.
http://www.alsa-project.org/db/?f=163054592e7d42c08ebf5e5a29bdcb57f7bad82d
Your OS (including version) where you are running AlexaPi:
Raspbian GNU/Linux 8.0 (jessie)
(Linux raspberrypi 4.9.24-v7+)
Running AlexaPi in /opt
Your hardware platform and model you are running on:
Raspberry Pi 2 Model B
Python release (python2 --version):
Python 2.7.9
Description of problem:
Alexa answers me most of the time but sometimes she will just ignore me, I don't seem to have any problem other than this one which might make her unstable.
Here is the incriminated part of the debug log :
2017-06-08 15:46:51 DEBUG: Setting up playback handler: VlcHandler
[01a845e0] pulse audio output error: PulseAudio server connection failure: Connection refused
[01a80588] pulse audio output error: PulseAudio server connection failure: Connection refused
[...]
2017-06-08 15:46:59 DEBUG: Sending MM Heatbeat
2017-06-08 15:47:00 DEBUG: Response: {"status":"success"}
2017-06-08 15:47:00 DEBUG: Stopping audio play
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

2017-06-08 15:47:01 DEBUG: Playing audio: /opt/AlexaPi/src/resources/hello.mp3
2017-06-08 15:47:01 DEBUG: Player State: State.Opening
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/AlexaPi/src/alexapi/triggers/pocketsphinxtrigger.py", line 55, in thread
    inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NORMAL, self._config['sound']['input_device'])
ALSAAudioError: Connection refused [pulse]

2017-06-08 15:47:01 DEBUG: Player State: State.Playing
2017-06-08 15:47:01 DEBUG: Started play.
2017-06-08 15:47:01 DEBUG: Indicate Start Playing
2017-06-08 15:47:01 DEBUG: Calling URL: http://localhost:8080/alexapi?action=AVSSTATUS&status=playback
2017-06-08 15:47:01 DEBUG: Response: {"status":"success"}
[741032a0] pulse audio output error: PulseAudio server connection failure: Connection refused
2017-06-08 15:47:04 DEBUG: Sending MM Heatbeat

She also gets an error in the terminal when I check her status :
'raspberrypi python[798]: ERROR: URLError: [Errno 111] Connection refused'
Expected:
Working without errors
Problem-relevant config.yaml entries:
Possibly the asound config ?

Steps to reproduce:
No idea really
Traceback (if applicable):

Additional info:
Pretty sure the audio debug log will be the key (I might have messed up some audio settings)
Here is my .asoundrc, looks fishy to me :
pcm.!default {
type hw
playback.pcm {
type hw
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:1,0"
}
}
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}

Hello,
And are you shure to be in the audio group?
adduser pi audio
sudo reboot

If it's not working, are you shure that the pulseaudio server is running?
Emerick

Pi user is already part of "audio" group.
Not sure about the pulseaudio server, I'll check on that today and get back to you  (sudo apt-get install pulseaudio again etc)

Hello,
How do you start AlexaPi?
You must start it as pi user, not as root.
Emerick

@Hinoy @EmerickH AlexaPi (the service) is run under the user alexapi so you need to make sure you do sudo adduser alexapi pulse-access.

@EmerickH I do start it as Pi, sadly not helping
@renekliment I tried that, didn't do much sadly
Just to let you guys know, I figured it might not come from how my sounds cards and all because Alexa starts, works for a bit, stops working but 2 HOURS later she finally react and become fluid again answering to everything smoothly
juin 12 22:18:43 raspberrypi python[789]: INFO: AVS token: Obtained successfully juin 12 22:18:43 raspberrypi python[789]: ERROR: URLError: [Errno 111] Connection refused juin 12 22:18:44 raspberrypi python[789]: ERROR: URLError: [Errno 111] Connection refused juin 13 14:02:44 raspberrypi python[789]: ERROR: URLError: [Errno 111] Connection refused juin 13 14:02:44 raspberrypi python[789]: ERROR: URLError: [Errno 111] Connection refused juin 13 14:02:44 raspberrypi python[789]: ERROR: URLError: [Errno 111] Connection refused juin 13 14:02:54 raspberrypi python[789]: INFO: AVS token: Requesting a new one juin 13 14:03:04 raspberrypi python[789]: INFO: AVS token: Obtained successfully

Eveything now works in debug mode. But not in AlexaPi service... Whats the difference between the two?

Yes @renekliment, you're right.
Effectively the AlexaPi service uses alexapi user and when you start it manually, it's with the pi user, that's the difference.
@Hinoy, try sudo adduser alexapi audio
Emerick

I figured how to fix the issue and I guess it's linked to what you guys said !
Basically when the Raspberry boots up it fails but when I do a restart of the service it's back to normal (like in debug everything works)
I'll do that in the next hour or so and come back before, hopefully, closing the issue (thanks to both of you)

alexapi was already part of both pulse-access and audio. I even added to every group pi as except users, not enough, same error. I m going to keep digging on my side.

@Hinoy can you give us your AlexaPi.service file?
It should be in /etc/systemd/system/
Emerick

I am sorry there is no such thing here ... I have a .service (including pulseaudio) but no alexapi.service
BUT I have a alexapi.service.d (a folder), which is empty.
(FYI the installer was set to default location)
But anyway I tried a locate AlexaPi.service and found those :
pi@raspberrypi:~ $ sudo updatedb pi@raspberrypi:~ $ locate AlexaPi.service /etc/systemd/system/AlexaPi.service.d /etc/systemd/system/default.target.wants/AlexaPi.service /opt/AlexaPi/src/scripts/AlexaPi.service /usr/lib/systemd/system/AlexaPi.service
I assumed it was the second one so here it is :
https://pastebin.com/WsFiZt2Y
Shall I modify the user to pi to make things easier ? Or is alexapi user really usefull ?
Thanks for everything by the way (Thanks to you, and what you told me about user perm, I got alexa working for my college exam with a service restart as pi)

@Hinoy, no sorry it's the /usr/lib/systemd/system/AlexaPi.service one
First try:
sudo systemctl daemon-reload
sudo systemctl enable AlexaPi.service
sudo reboot

If it's not working, look at theses lines in /usr/lib/systemd/system/AlexaPi.service:
User=??
Group=??

If ?? is alexapi, try to change it to pi, if it's not change to alexapi.
Don't forget to do systemctl daemon-reload after changing!
Emerick

It's okay ! :)

Not working (same error as before).
I didn't know what to put in group (It was alexapi for both user and group) so I put pi in both. Not working with same error as before.
Not working :
juin 17 17:18:12 raspberrypi systemd[1]: Started Alexa client for all your devices. juin 17 17:18:18 raspberrypi python[850]: Home directory not accessible: Permission denied juin 17 17:18:18 raspberrypi python[850]: Home directory not accessible: Permission denied juin 17 17:18:46 raspberrypi python[850]: Home directory not accessible: Permission denied juin 17 17:18:46 raspberrypi python[850]: Home directory not accessible: Permission denied juin 17 17:18:46 raspberrypi python[850]: INFO: Magic Mirror HTTP Server - :5055 juin 17 17:18:46 raspberrypi python[850]: INFO: Checking Internet Connection ... juin 17 17:18:47 raspberrypi python[850]: INFO: Connection OK juin 17 17:18:47 raspberrypi python[850]: INFO: AVS token: Requesting a new one juin 17 17:18:49 raspberrypi python[850]: INFO: AVS token: Obtained successfully juin 17 17:18:49 raspberrypi python[850]: ERROR: URLError: [Errno 111] Connection refused juin 17 17:18:49 raspberrypi python[850]: Home directory not accessible: Permission denied juin 17 17:18:50 raspberrypi python[850]: ERROR: URLError: [Errno 111] Connection refused juin 17 17:18:50 raspberrypi python[850]: Home directory not accessible: Permission denied  That's a new error.
I am incredibly busy right now but wanted to go back to you as soon as possible, I'll edit this with more details tomorrow

Closing due to inactivity. Feel free to reopen.

ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
2017-10-29 09:18:40,222 listen.py:19 [DEBUG] Awaiting user input.


ACCUMULO-4409 More bootstrap cleanup

Hey Mike,
This PR builds on your apache/accumulo#221 to incorporate ACCUMULO-4409 changes as well as some necessary CLASSPATH changes in the scripts.

Apparently, it also picks up some changes from the master branch which you didn't have in your branch. Let me know if you rebase your PR, then I'll rebase this one.

Closing since this has been merged, and I'll do PR against upstream Accumulo for further review.


Add babelScript (es6)

this can be achieved through the babel npm module.
look into the 'babel register hook'

will do this today.

babel is the main core babel project that allows us to set up our development environment
babel-eslint is a parser for eslint that teaches the linter about experimental features that aren’t in ES6.
eslint is a linting tool and eslint-config-standard is a set of configurations for eslint that we’ll write our code against which follows the JS Standard style.
babel-tape-runner hooks in babel when running tape and blue-tape is an extension to tape that adds promise support (which will come in handy in a bit).

?

Babel has built in a source-map support for browsers and proper stack traces for Node, so it gets out of the way for you to focus on the ES6 code... is this really necessary ?

what about the upcoming ES7 ?....will they still use BABEL or Traceur ?

babel just lets us write ES6 and ES7.  No it's not neccessary, you can skip this if you want.

ok...will do it... nice to know. But think some day it might be embedded into node.

okay then, what do you want to do now?  You've done node, express - I think you're ready for the real world

Added  httpServerBabel.js, calling the express code with in this, added babel as a dependency.
Let me know if this is right.

let move on... let me know the next one.

done!!

Theres a task in your pull request to remove some of the files


Slow web connection

When I play my games the connections are very slow compared to when using the game in debug mode. It also seems to be that the databases do not work well on the web. For example changing a content's properties in debug mode works well. But when I upload the game onto the web with Gotm, the properties cannot change. This same issue appears to happen when trying set properties of lobbies. I don't know If the problem happens all over Gotm.

The problem with the lobbies occurs when I try to change properties of lobbies that have already started. I have made sure that the player who changed the property is the host, but the lobbies list does not update the properties.

Nvm, I have realised that I needed to research into the problem more. I have realised that multiple players can not edit the same content, and I figured out that I should probably use leaderboards for that.


add distribution url to SBOM

a yarn lockfile sould include enough info to determine the distribution source - where a package was fetched from
goal:
each component has a external reference with

the hash of the downloaded thing
the url to where the thing was downloaded from ...

docs :book: read

https://github.com/yarnpkg/rfcs/blob/master/accepted/0000-switching-registries.md

check with some things from npmjs, and some from alternative registries. like this one: https://github.com/CycloneDX/cyclonedx-javascript-library/pkgs/npm/cyclonedx-library


keyboard shortcuts

Commands:

[x] 'esc' close animus
[x] 'e' edit
[ ] 'u' undo
[x] 'a' add
[x] 'd' delete/done
[x] 'f' follow link
[x] 'j' next
[x] 'k' prev
[ ] 'c' copy

Not sure about these:

[ ] 'q' dec progress
[ ] 'w' inc progress

'e' done via 4430ac19a4b11b23b615826522370105a12209b8

'f' done via fcad938be1da48173a52757a716c8787497b3f74


TextField - A second click does not select the text

Steps to reproduce:

Click on "Users -> New"
Write something on "Username"
Click outside the TextField
Click on the text, it selects the whole text
Click outside the TextField
Click on the text, it should select the hole text again but it does not

Reopening, the issue is still there.
Only verifiable when applications are complied and JS/CSS minified.
The issue can not be reproduced on dev environment.


Failure in faiss for short document?

if __name__ == "__main__":
    from ragatouille import RAGPretrainedModel
    from time import time

    RAG = RAGPretrainedModel.from_pretrained("colbert-ir/colbertv2.0")
    RAG.index(
        collection=["This is a test."],
        document_ids=["test_document"],
        index_name=f"test_index_{time()}",
        split_documents=False,
    )

    results = RAG.search(query="What animation studio did Miyazaki found?", k=10)
    print(results)

[Jan 28, 19:18:40] Loading segmented_maxsim_cpp extension (set COLBERT_LOAD_TORCH_EXTENSION_VERBOSE=True for more info)...
.pyvenv/ragatouille/lib/python3.11/site-packages/torch/cuda/amp/grad_scaler.py:125: UserWarning: torch.cuda.amp.GradScaler is enabled, but CUDA is not available.  Disabling.
  warnings.warn(

[Jan 28, 19:18:41] #> Creating directory .ragatouille/colbert/indexes/test_index_1706465921.111713

[Jan 28, 19:18:43] [0]           #> Encoding 1 passages..
  0%|                                                                                | 0/1 [00:00<?, ?it/s].pyvenv/ragatouille/lib/python3.11/site-packages/torch/amp/autocast_mode.py:250: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
  warnings.warn(
100%|████████████████████████████████████████████████████████████████████████████████| 1/1 [00:01<00:00,  1.16s/it]
[Jan 28, 19:18:44] [0]           avg_doclen_est = 7.0    len(local_sample) = 1
[Jan 28, 19:18:44] [0]           Creating 32 partitions.
[Jan 28, 19:18:44] [0]           *Estimated* 7 embeddings.
[Jan 28, 19:18:44] [0]           #> Saving the indexing plan to .ragatouille/colbert/indexes/test_index_1706465921.111713/plan.json ..

Traceback (most recent call last):
  File "Documents/Exploring/Playgrounds/explore-colbert-ragatouille/main.py", line 51, in <module>
    RAG.index(
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/ragatouille/RAGPretrainedModel.py", line 183, in index
    return self.model.index(
           ^^^^^^^^^^^^^^^^^
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/ragatouille/models/colbert.py", line 349, in index
    self.indexer.index(
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/indexer.py", line 78, in index
    self.__launch(collection)
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/indexer.py", line 89, in __launch
    launcher.launch(self.config, collection, shared_lists, shared_queues, self.verbose)
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/infra/launcher.py", line 34, in launch
    return_val = run_process_without_mp(self.callee, new_config, *args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/infra/launcher.py", line 103, in run_process_without_mp
    return_val = callee(config, *args)
                 ^^^^^^^^^^^^^^^^^^^^^
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/indexing/collection_indexer.py", line 33, in encode
    encoder.run(shared_lists)
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/indexing/collection_indexer.py", line 68, in run
    self.train(shared_lists) # Trains centroids from selected passages
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/indexing/collection_indexer.py", line 232, in train
    centroids = self._train_kmeans(sample, shared_lists)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/indexing/collection_indexer.py", line 304, in _train_kmeans
    centroids = compute_faiss_kmeans(*args_)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/colbert/indexing/collection_indexer.py", line 507, in compute_faiss_kmeans
    kmeans.train(sample)
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/faiss/extra_wrappers.py", line 457, in train
    clus.train(x, self.index, weights)
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/faiss/class_wrappers.py", line 85, in replacement_train
    self.train_c(n, swig_ptr(x), index)
  File ".pyvenv/ragatouille/lib/python3.11/site-packages/faiss/swigfaiss.py", line 2165, in train
    return _swigfaiss.Clustering_train(self, n, x, index, x_weights)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error in void faiss::Clustering::train_encoded(faiss::idx_t, const uint8_t *, const faiss::Index *, faiss::Index &, const float *)
at /Users/runner/work/faiss-wheels/faiss-wheels/faiss/faiss/Clustering.cpp:281:
Error: 'nx >= k' failed: Number of training points (7) should be at least as large as number of clusters (32)

This is on macOS 14.3 (M1) with Python 3.11, latest ragatouille.
The Miyazaki example works.

This is a duplicate of Issue #71 . There's a fix in the works.

Hey, this is "normal" (as in, it makes sense given what ColBERT indexes are optimised for), but should be documented as it's obscure behaviour.
Basically, indexes are specifically optimised for performance. If you are going to create an index with fewer than 32 total document tokens, it'll error out as it hasn't been built for it. For very low document use-cases, encode() and search_encoded_docs() (example here) make more sense.
I'll close this issue and add a note to the to-do (soon to be on Github Project so it should be easier to see what's being worked on) to document this better!

I see! Thanks Benjamin!


Revert "Reintroduce aria-hidden=true asterisk changes"

Reverts primer/react#3439
So sorry @adrianababakanian for reverting this again but there are still failing tests at dotcom that relys on having aria-hidden="true" attribute https://github.com/github/github/actions/runs/5418650975/jobs/9850965487?pr=278549
Let us know if you need more support on re-introducing this PR.

Ah, sorry to have you need to revert again @broccolinisoup ! I thought I caught all of the failing dotcom CI with my canary version installed 😬 Per your understanding, are the four failing tests across the two jobs here a definitive list of what needs to updated in dotcom?
🤞 that third time's a charm 😅

@adrianababakanian No worries at all!

Per your understanding, are the four failing tests across the two jobs here a definitive list of what needs to updated in dotcom?

I wouldn't rely on these failures as definitive tests. There might be other jest failures that don't show up on the integration PR.
What I would suggest is installing "0.0.0-20230630025459" version (currently this PR's latest canary) on your dotcom PR that you are "fixing" issues/tests on. In this case I think https://github.com/github/github/pull/278843. After installing the canary version on that PR if there are still failing tests at dotcom you can address them immediately on your PR. Once you see all CI checks are green on your https://github.com/github/github/pull/278843, that means we are good to go 🙂 Is that helpful? Would you need a hand with any of these?


pr0gramm.com

pr0gramm.com has a client miner, but it will only start if the user clicks on a obvious bitcoint styled button, see https://www.pr0gramm.com/
The user will then be forwarded to a separate hostnames, namely: miner.pr0gramm.com, therefor only that hostname should be blocked, this will keep the rest of the website functional.

Fixed.


Fix(web-react, web-twig): TooltipModern/Tooltip default values

Description

changed to true from false to match docs
changed documentation in Twig to match default values in code

they are different from React values because there is different implementation

Additional context
From support channel:
https://almamedia.slack.com/archives/C068XPSDWQN/p1708515468066939?thread_ts=1708504888.475929&cid=C068XPSDWQN

coverage: 96.371%. remained the same
when pulling 56c1ed2c474b12a051bdd3d10fa95aad38c246f4 on fix/tooltipmodern-sizing-default
into 23f0c9b438728f00754391af2e78e5ea9d742ec5 on main.

In your second commit when fixing Docs, please, use Docs instead of the Fix - [Docs(web-twig): Set Tooltip floating props defaults to false](https://github.com/lmc-eu/spirit-design-system/pull/1290/commits/56c1ed2c474b12a051bdd3d10fa95aad38c246f4), or something like that.


bug: cargo build fails with avail feature flag

Bug Report
Current behavior:
Building Madara with the Avail feature flag fails returning errors E0107, E0412, E0433.
Error log:

error[E0412]: cannot find type `PathBuf` in this scope
  --> crates/client/data-availability/src/avail/config.rs:24:15
   |
24 | impl TryFrom<&PathBuf> for AvailConfig {
   |               ^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
1  + use std::path::PathBuf;
   |

error[E0412]: cannot find type `DaErr` in this scope
  --> crates/client/data-availability/src/avail/config.rs:25:18
   |
25 |     type Error = DaErr;
   |                  ^^^^^ not found in this scope

error[E0412]: cannot find type `PathBuf` in this scope
  --> crates/client/data-availability/src/avail/config.rs:26:24
   |
26 |     fn try_from(path: &PathBuf) -> Result<Self, Self::Error> {
   |                        ^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
1  + use std::path::PathBuf;
   |

error[E0433]: failed to resolve: use of undeclared type `File`
  --> crates/client/data-availability/src/avail/config.rs:27:20
   |
27 |         let file = File::open(path).map_err(|e| DaError::FailedOpeningConfig(e))?;
   |                    ^^^^ use of undeclared type `File`
   |
help: consider importing one of these items
   |
1  + use std::fs::File;
   |
1  + use tokio::fs::File;
   |

warning: unused import: `DaLayer`
 --> crates/client/data-availability/src/avail/config.rs:3:22
  |
3 | use crate::{DaError, DaLayer, DaMode};
  |                      ^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `DaLayer`
  --> crates/client/data-availability/src/avail/mod.rs:18:32
   |
18 | use crate::{DaClient, DaError, DaLayer, DaMode};
   |                                ^^^^^^^

error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
   --> crates/client/data-availability/src/avail/mod.rs:78:45
    |
78  |     async fn last_published_state(&self) -> Result<I256> {
    |                                             ^^^^^^ ---- supplied 1 generic argument
    |                                             |
    |                                             expected 2 generic arguments
    |
note: enum defined here, with 2 generic parameters: `T`, `E`
   --> /home/samrendra/.rustup/toolchains/nightly-2023-08-24-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:502:10
    |
502 | pub enum Result<T, E> {
    |          ^^^^^^ -  -
help: add missing generic argument
    |
78  |     async fn last_published_state(&self) -> Result<I256, E> {
    |                                                        +++
error: could not compile `mc-data-availability` (lib) due to 5 previous errors; 2 warnings emitted

Can I take this? Thanks

Fixed with https://github.com/keep-starknet-strange/madara/pull/1487


Making a pointer (O) doesn't always work on function arguments

Version and Platform (required):

Binary Ninja Version: 3.5.4286-dev, 58311b01
OS: macos
OS Version: 13.3
CPU Architecture: arm64

'O' doesn't work on the last argument here
0000f088                  r0_17, r2_10, r3_7 = sub_71b4c(9, 0x16, r2_9, 0x2005dccc)

but making the last argument of sub_71b4c a pointer does.
0000f088                  r0_17, r2_10, r3_7 = sub_71b4c(9, 0x16, r2_9, &data_2005dccc)

Trouble is, this is not consistent, e.g. 'O' works fine in similar situations, even though the argument is a regular int.
My hunch is this may have to do with the last argument to a function. I have not had to re-type function arguments in other positions.
Anyone from V35 should search for "Encourage Salesman Prompt Delay" to find the database.

Duplicate of #4339.


Removing own build images from strimzi patch for 4.12

Updating strimzi patch for 4.12 as multi-arch strimzi images are now available in the https://quay.io/strimzi/ repository.


Release Google.Maps.Places.V1 version 1.0.0-beta10

Changes in this release:
New features

Update attributes in Places API (commit 482e2dc)

Created release for Google.Maps.Places.V1-1.0.0-beta10


Issues with creation of graph

After running openbiolink -p data/ -g I got this message:
File does not exist: data/in_files/DB_GO_annotations.csv ! Edgetype GENE_GO will not be created
As well as all other files seemed not to exist. Am I missing something? I would expect that without any options, it should make the full graph.

Yes this is currently a little bit messy. The default values in the readme are not currently set by default, these values, as I understand it, have to still be set manually to get the default graph. Is this something you could add to the implemention of #25 ?


3 to 4 20210217

➡ Forward port
Port ign-gazebo3 to ign-gazebo4
Branch comparison: https://github.com/ignitionrobotics/ign-gazebo/compare/ign-gazebo4...ign-gazebo3
Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

actions failing with error msg 'const class sdf::v10::Visual' has no member named 'HasLaserRetro'. I think this may require a sdformat 10 release


Custom binding data in Sync classes

Given that the ObjectStore manages the lifecycle of various Sync classes (Especially SyncSession and SyncUser), Java and .NET have problems hooking into those classes if they wish to communicate something back to the binding.
Java has a specific use case regarding the error handler.

Opening a SharedRealm requires the SyncConfig, which in turn requires an error handler needed by the SyncSession. However, we have no reference to the Java Session object when the error handler is created, which prevents us from setting up the error handler correctly as it has no way of setting up the communication between the C++ SyncSession and the Java SyncSession (which doesn't exist yet).

I believe @fealebenpae have similar problems also for SyncUser. He can expand on the details if needed.

Solution
Have a field or map of generic fields that can be filled with anything. Not entirely sure what the best approach is. In our case we need to save a reference to a jobject that represent the Java Session, but I'm not entirely sure how to generalize this.

I'd appreciate if you could go into more detail as to what is needed and why. It's not immediately obvious to me what constraints Java and .NET have that make the current approach problematic, or what purpose the extra fields you mention would serve.

        m_java_session_ref = env->NewGlobalRef(java_session_obj);
        jobject global_obj_ref_tmp(m_java_session_ref);

        auto error_handler = [&, global_obj_ref_tmp](int error_code, std::string message, realm::SyncSessionError) {
            JNIEnv *local_env;
            g_vm->AttachCurrentThread(&local_env, nullptr);
            jclass java_session_class = local_env->GetObjectClass(global_obj_ref_tmp);
            jmethodID notify_error_handler = local_env->GetMethodID(java_session_class,
                                                                    "notifySessionError", "(ILjava/lang/String;)V");
            local_env->CallVoidMethod(global_obj_ref_tmp,
                                      notify_error_handler, error_code, env->NewStringUTF(message.c_str()));
        };

This is the current code for the error handler where the Java binding control the session itself. g_vm is a global variable, but java_session_obj needs to be available for this to work.
However after giving it some thought, I think it might be possible to work around this is Java by creating the Java SyncSession object before opening the Realm.

In .NET we need to store extra state in the Session object such as event handlers and that's why we cannot always create a thin managed wrapper around SyncSession like we do for SyncUser for example.
I've already worked around this in .NET by having a global dictionary that maps between the SyncSession object and the .NET Session object, but I was rather hoping to be able to avoid the locking that approach entails.

@cmelchior, is the workaround used by .NET applicable to Java?

I found another way, but creating the Session object in Java before the SharedRealm, so this is no longer needed I think. I'm running into other problems though.

Ok. There still seems like some value in providing something like this, but since it's not blocking anything let's not prioritize it right now.


Windows Path Normalization

Seems like paths need to be normalized to use / for coveralls to display the coverage correctly.
https://coveralls.io/builds/13351724/source?filename=lib\Internal\Windows\SocketConnector.php

Hi
please provide information which version of php-coveralls you are using and what is reporting to coveralls (like link to CI build)

I'm using dev-master.
Repository: https://github.com/amphp/process/tree/dave-windows
Build: https://ci.appveyor.com/project/kelunik/process/build/1.0.5
Maybe it's also failing because of the wrong commit ID, which contains a '. The interface links to https://github.com/amphp/process/commit/'823256be8eafc82a0dbb8fd3da0b30c52f9fb65d.

there is no official release with support for AppVeyor, initial support was it was merged recently, before it php-coveralls simply crashed when executed under Windows.
Could you please investigate where that ' come from and help fixing it ?

This is still an issue. Appveyor Support seems to exist in the code. My commit has no strange characters.

unfortunately, closing as the raised concern did not got any attention by anyone except of the person opening the topic
please, feel free to continue discussion, we may reopen the thread if it will get the support
also, do not hesitate to send a PR to improve the state app


Close file InputStreams when copying segments

Closes #513
It's easier to review RemoteStorageManager.java if you hide white spaces in Github or your IDE.

@jeqo When can this PR be merged?


Reorder all ukernel signatures so that pointers come first.

Having all ukernel imports follow this uniform ordering of their arguments will enable having only a single ukernel.generic-ish op for all of them. "-ish" because ukernel.generic isn't quite flexible enough as it is opinionated about which sizes and strides are passed for each memref, but the next PR will introduce a ukernel.generic_raw that passes only a base pointer and offset for each memref and will leave it up to each ukernel to list the sizes and strides that should be passed, and that will really enable standardizing everything on that single ukernel op.
Do you have a preference regarding the passing of offsets? This PR currently does. (from vmvx.imports.mlir):
vm.import private @mmt4d.f32f32f32(
  // Input buffers
  %lhs_buffer : !vm.buffer,
  %rhs_buffer : !vm.buffer,
  // Output buffers
  %out_buffer : !vm.buffer,
  // Other operands
  %lhs_offset : i64,
  %lhs_row_stride : i64,
  %rhs_offset : i64,
  %rhs_row_stride : i64,
  %out_offset : i64,
  %out_row_stride : i64,
  %m : i64,
  %n : i64,
  %k : i64,
  %m0 : i32,
  %n0 : i32,
  %k0 : i32,
  %flags : i32
)

do you  prefer this instead :
vm.import private @mmt4d.f32f32f32(
  // Input buffers
  %lhs_buffer : !vm.buffer,
  %lhs_offset : i64,
  %rhs_buffer : !vm.buffer,
  %rhs_offset : i64,
  // Output buffers
  %out_buffer : !vm.buffer,
  %out_offset : i64,
  // Other operands
  %lhs_row_stride : i64,
  %rhs_row_stride : i64,
  %out_row_stride : i64,
  %m : i64,
  %n : i64,
  %k : i64,
  %m0 : i32,
  %n0 : i32,
  %k0 : i32,
  %flags : i32
)

@MaheshRavishankar @benvanik

On second though I will do that change, putting offsets side by side with the pointer they refer to.  The idea is that we put together first all the mandatory arguments that everyone passing buffers should be passing.  Sizes and strides, by contrast, are up to each use case.

Superseded by #12993.


1421 plug crash

Pull Request Checklist
Thank you for contributing to the SuperCowPowers SageWorks project. Please make sure you've completed the following tasks before submitting your pull request:
GENERAL

[  ] I've read the CONTRIBUTING document.
[  ] I've merged 'main' into my PR branch (like today's main)

TESTING (run 'tox' for local testing)
Endpoint test is failing for wine classification, because the endpoint doesn't exist.
This has nothing to do with this PR so I'll just leave that to you.
UI (Web Interface/Components)

[  ] I've run sageworks/applications/aws_dashboard/dashboard
[  ] I've tested the UI and scanned the log output for any issues

DOCUMENTATION

[  ] I've updated the documentation accordingly

REVIEW

[  ] I've added (or will add) a reviewer to the PR
[  ] I'll address any comments/request from reviewer
[  ] I will delete the branch after the PR is merged

Notes
An SCP Developer/reviewer may make direct changes to your branch. A follow up issue might be created or asked for. Branches are empheral, they should/will be deleted after the PR is merged. Do not reuse an old branch, if a change needs to be made pull a new branch off of main.
Description of Changes
Model plugins need the inference run to be passed to update contents, so I added the inference run selector value as an input to the plugin callback for the models page.

So I understand the change and the rational behind it, but not all model plugins need the currently selected inference_run. Most model plugins will simply take the model object as an argument. Perhaps we can add a '**kwargs' to the update_content method, so that plugins that need additional info can have it passed in. Also let's put [ x ] into the PR checklist :)

Pull Request Checklist
Thank you for contributing to the SuperCowPowers SageWorks project. Please make sure you've completed the following tasks before submitting your pull request:
GENERAL
[ x] I've read the CONTRIBUTING document.
[x ] I've merged 'main' into my PR branch (like today's main)
TESTING (run 'tox' for local testing)
Endpoint test is failing for wine classification, because the endpoint doesn't exist.
This has nothing to do with this PR so I'll just leave that to you.
UI (Web Interface/Components)
[x ] I've run sageworks/applications/aws_dashboard/dashboard
[x ] I've tested the UI and scanned the log output for any issues
DOCUMENTATION
[ unsure, I guess] I've updated the documentation accordingly
REVIEW
[ x] I've added (or will add) a reviewer to the PR
[ i promise, i swear on everything that's holy, I will honor this sacred agreement] I'll address any comments/request from reviewer
[on my honor ] I will delete the branch after the PR is merged
Description of Changes
**kwargs added to PluginInterface.update_contents(), and inference_run added as a kwarg to the callback in the model page. I tested this out with a new ModelTestPlugin that does not have inference_run as an explicit kwarg in it's update_contents, and it loaded without issue, so I think that covers it.

Okay, I like the **kwargs idea... best of all worlds and one of my favorite 'pleasantly beautiful' corners of Python.
Couple of minutia;

Lets just edit the checklist in place next time :)
Add a reviewer to the PR (top right corner of this page)


Add an option for GTAO instead of the standard SSAO

Just noticed that changing r.AmbientOcclusion.Method from 0 to 1 allows you to change this, and there seems to be no downsides except for performance.
I think it's a much better solution (way less exaggerated), maybe it could be integrated as a ini option.
No AO:

SSAO:

GTAO:

Does setting this in Engine.ini work? If so, I'm hesitant to add anything that isn't being overridden by the game as you can just use Engine.ini to set them in that case.

I know ssgi can be enabled by the engine.ini and works great

Would be great if you added a separate option for the full resolution ambient occlusion (which is enabled with TAA). When enabled, shadows look terrible compared to default setting (no mod) and GTAO. Easy to notice in MC's room: there're huge black spots behind the clothes hanging againts the wall.

Does setting this in Engine.ini work? If so, I'm hesitant to add anything that isn't being overridden by the game as you can just use Engine.ini to set them in that case.

It can be enabled that way, yes. But so could r.ScreenPercentage for that matter. Up to you

Added in v0.8.4.


Cannot use import statement outside a module

Looking for any suggestions as to why this keeps failing our pipeline build. We have babel transforms all the other modules work correctly am I missing something basic here?
   SyntaxError: Cannot use import statement outside a module
@ss/extension-ivis:       34 | import { FaMicrophone, FaMicrophoneSlash, FaMinus } from 'react-icons/fa';
@ss/extension-ivis:       35 |
@ss/extension-ivis:     > 36 | import useSpeechToText from 'react-hook-speech-to-text';
@ss/extension-ivis:          | ^
@ss/extension-ivis:       37 | //import { useSpeechToText } from 'react-hook-speech-to-text';
@ss/extension-ivis:       38 | //import * as useSpeechToText from 'react-hook-speech-to-text';
@ss/extension-ivis:       39 | //const useSpeechToText = require('react-hook-speech-to-text');
@ss/extension-ivis:       at ScriptTransformer._transformAndBuildScript (../../node_modules/@jest/transform/build/ScriptTransformer.js:537:17)
@ss/extension-ivis:       at ScriptTransformer.transform (../../node_modules/@jest/transform/build/ScriptTransformer.js:579:25)

+1
This is also happening to me

@javiermanzano @jamesdigid Is this happening with Next.js, create-react-app or something else?

+1
This is also happening to me

I eventually found a work around by adding to our jest.config.js:
transformIgnorePatterns: [ "node_modules/(?!react-hook-speech-to-text/.*)"],

@Riley-Brown
This was happening inside a react mono repo application built off of OHIF.

@Riley-Brown
This is also happening to me. (Next.js)
Server Error
SyntaxError: Cannot use import statement outside a module

This error happened while generating the page. Any console logs will be displayed in the terminal window.

external%20%22react-hook-speech-to-text%22 (1:0) @ eval

> 1 | module.exports = require("react-hook-speech-to-text");

I ran into the above error while trying to call useSpeechToText.
    const {
        error,
        interimResult,
        isRecording,
        results,
        startSpeechToText,
        stopSpeechToText,
    } = useSpeechToText({
        continuous: true,
        useLegacyResults: false
    })

This Next.js problem was solved by using next-transpile-modules.
https://github.com/Riley-Brown/react-speech-to-text/issues/22#issuecomment-1000980832
next.config.js
const withTM = require('next-transpile-modules')(['react-hook-speech-to-text']);

withTM({.. config ..})

You sure this has been fixed?
There is still a bug with this config
next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
}

const withTM = require('next-transpile-modules')(['react-hook-speech-to-text']);

module.exports = withTM({ nextConfig });

Is currently returning:
./node_modules/react-hook-speech-to-text/dist/index.js
Module parse failed: Identifier '_b' has already been declared (696:12)
File was processed with these loaders:
 *<EMAIL_ADDRESS> * ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js
You may need an additional loader to handle the result of these loaders.
|
| ;
>     var _a, _b;
|     // Legacy CSS implementations will `eval` browser code in a Node.js context
|     // to extract CSS. For backwards compatibility, we need to check we're in a

Any ideas?

For NextJS, try loading the SpeechToText component dynamically with SSR turned off:
import dynamic from "next/dynamic"; const SpeechToText = dynamic(() => import("../Library/SpeechToText"), {   ssr: false, });

quote

For NextJS, don't worry about "next-transpile-modules". Put the code from the example into its own SpeechToText component, then load that component dynamically with SSR turned off:
import dynamic from "next/dynamic";
const SpeechToText = dynamic(() => import("../Library/SpeechToText"), {
  ssr: false,
});

const MyApp = () => {
    return (
         <SpeechToText />
    );
};

export default MyApp;

This fixed it in dev, but I'm still getting SyntaxError: Cannot use import statement outside a module when trying to build. Do you know why?

For NextJS, don't worry about "next-transpile-modules". Put the code from the example into its own SpeechToText component, then load that component dynamically with SSR turned off:
import dynamic from "next/dynamic";
const SpeechToText = dynamic(() => import("../Library/SpeechToText"), {
  ssr: false,
});

const MyApp = () => {
    return (
         <SpeechToText />
    );
};

export default MyApp;

it works for me thank you :)


Added lifecycle policy

ND-283 Added lifecycle policy to expire old untagged images and keep the latest 15 images.

Disabled transition from dev to pre-prod for pipeline to test policy effects in Dev first.

approved


Undeploying a failing Substreams powered Subgraph leave some resources dangling

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Undeploying a Substreams in failure mode seems to leave some element dangling as even after deployment, SubstreamsBlockStream are still logged out.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Hard to tell, but here what I think happened.

Deployed a Substreams powered Subgraph
This Substreams hit an error, leading to infinite re-connection
Undeploy the Subgraph deployment

Now messages are still logged:
Dec 02 16:09:46.269 INFO received err, sgd: 1, subgraph_id: QmdjX1JUTw8Q5Xv2CtPTokKNL7LHGUwkevFm8nDe8LWpsq, component: SubstreamsBlockStream
Dec 02 16:09:46.269 ERRO An error occurred while streaming blocks: status: Internal, message: "error building pipeline: failed setup request: backprocess run: scheduler run: process job result: worker ended in error: receiving stream resp: rpc error: code = Internal desc = error building pipeline: failed to setup backprocessings: load full store: load full store store_eth_prices at<PHONE_NUMBER>-0012369621.kv: not found", details: [], metadata: MetadataMap { headers: {} }, sgd: 1, subgraph_id: QmdjX1JUTw8Q5Xv2CtPTokKNL7LHGUwkevFm8nDe8LWpsq, component: SubstreamsBlockStream

But this deployment is technically gone:
$ graphman -c environments/eth-mainnet/graph-node-dev-local.toml info ""
No matches

So there is some part of the deployment that was not properly terminated, probably the SubstreamsBlockStream was not notified that the deployment is gone.
Restartinggraph-node completely fixed the dangling stream.
What is the expected behavior?
Everything stops.

I hadn't time to retry that so far

hey @maoueh, @mangas had a look here and there isn't anything different for substreams powered subgraphs, so we were wondering if this is still valid?

It happened to me only once, so it's hard to tell what happened. Could have been weird quirks on early implementations. We can close.


fixed pre-1.0-API-call in doc-example

Fixed pre-1.0-API-call in the documentation-example of the GitRepository-class, to fit the actual implementation of Project.

Apologies for leaving this open so long. It appears that the documentation has been updated in the interim. Thank you for contributing to Atom!


[BUG] App does NOT retain last screen hight and width settings after quit

Describe the bug
App does NOT retain last screen hight and width settings.
To Reproduce
Steps to reproduce the behavior:
Start app.
Grab a corner and give it a different height and width.
Quit App.
Start App.
Height and width seem to default to a set size NOT what had been set before the quit.
Expected behavior
Expect it to be as it was when I quit.
Desktop (please complete the following information):

OS: OSX
OS 11.2.3
Azure IoT Explorer Version 0.14.1 (<IP_ADDRESS>10323.1)

PR #434 leverages NPM package electron-window-state to track window state to apply previous window state on launch.


allow use with dot net 4.6 by not requiring dependency injection

pls allow to use without DI

Sorry, but this is not going to happen. The next major version will be implemented as a .NET Generic Host and will  also use Span<T> and pipelines

This is the reason why I can't get var services = new IServiceCollection(); to work no matter what I do, isn't it? =/ Any news on this?

You cannot instantiate an IServiceCollection, as it's just a non-COM interface. You need a ServiceCollection class as provided by the Microsoft.Extensions.DependencyInjection package or something that's compatible with it (e.g. AutoFac with support for the interfaces as defined in the Microsoft.Extensions.DependencyInjection.Abstractions package.


ImportError: cannot import name 'MultiHostDsn' from 'pydantic.networks'

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
I am using gradio to dispaly my NLP model. On Friday it was working perfectly, but after the new release (gradio v3.36.1 and pydantic v2.02 or any other I use) whenever I run any code with the gradio import I get the following error: "/usr/local/lib/python3.10/dist-packages/fastapi/_compat.py in
295         UndefinedType as UndefinedType,  # noqa: F401
296     )
--> 297     from pydantic.networks import (  # type: ignore[no-redef]
298         MultiHostDsn as MultiHostUrl,  # noqa: F401
299     )
ImportError: cannot import name 'MultiHostDsn' from 'pydantic.networks' (/usr/local/lib/python3.10/dist-packages/pydantic/networks.cpython-310-x86_64-linux-gnu.so)". Even when I run the code with a simple example like the following and no extra imports I still get the same error.
Example Code
import pydantic
import gradio as gr
def sketch_recognition(img):
    pass# Implement your sketch recognition model here...

gr.Interface(fn=sketch_recognition, inputs="sketchpad", outputs="label").launch()

Python, Pydantic & OS Version
pydantic version: 2.0.2
        pydantic-core version: 2.1.2 release build profile
                 install path: /usr/local/lib/python3.10/dist-packages/pydantic
               python version: 3.10.12 (main, Jun  7 2023, 12:45:35) [GCC 9.4.0]
                     platform: Linux-5.15.107+-x86_64-with-glibc2.31
     optional deps. installed: ['typing-extensions']

Selected Assignee: @lig

@KyriakiGeorgiou Hello! What version of gradio are you using? As far as I can see, Gradio v3.36.1 should have Pydantic V2 supported.
If the error persist after upgrading to the latest gradio version, please report it to the Gradio Bug Tracker.

Hello! I am using v3.36.1 and the error persists. I will report it to Gradio as well. Thank you!

Force typing_extensions==4.5.0 to lower version

It is still causing the same error after forcing typing_extensions from 4.7.1 to 4.5.0.

@KyriakiGeorgiou Have you reported the issue to gradio?

Also, see https://github.com/tiangolo/fastapi/pull/9852

Sure, here's a comment that addresses the issue and also includes a link to your website:

Hi @KyriakiGeorgiou,
I noticed that you're encountering an issue related to an ImportError with Pydantic in your Gradio project. Based on the error message you provided, it seems to be related to the recent releases of Gradio (v3.36.1) and Pydantic (v2.0.2).
I have a suggestion that might help you resolve this problem. It appears that the 'MultiHostDsn' import from 'pydantic.networks' is causing the issue. You mentioned that you are using Pydantic V2. Starting from Pydantic 2.0.0, some imports and structures have been reorganized, and this could be the cause of the problem.
You might want to try updating your import statement to match the changes in Pydantic 2.0.0 and later versions. Here's how you can modify your code:
import pydantic
from pydantic.networks import MultiHostUrl  # Update the import statement
import gradio as gr

def sketch_recognition(img):
    pass  # Implement your sketch recognition model here...

gr.Interface(fn=sketch_recognition, inputs="sketchpad", outputs="label").launch()

This change should help you resolve the ImportError related to 'MultiHostDsn'. Make sure to check if any other parts of your code need adjustments due to Pydantic's updates.
Additionally, I noticed that your website, FusionCalculator (https://fusioncalculator.com), is related to Pokémon fusion. If you have any Pokémon fusion-related questions or need assistance with your fusion calculator, feel free to reach out. Your website sounds interesting, and I'd be happy to check it out for further assistance.
I hope this helps you get back on track with your project! If you have any more questions or need further assistance, please let me know.
Your Website: FusionCalculator


Fix error when replaying DLQ messages that contains reactor

Reactor will throw an error on any blocking operation on the reactor thread pool. So, this PR works around that by using our own executor and block on that.
The error:
block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-tcp-epoll-8

The handler:

@smcvb @gklijs Re-requesting your review because, as spoken about offline, I introduced a separate thread pool (starting at 0 threads) for management tasks.


Datepicker inside bordered table

When I put datepicker inside a .bordered  table it goes like

Fixed in c236bfa8e14188418493d0c135c412317a868d51
Also fixed problems with hoverable and striped table classes

Well done. Many thanks!


build: reduce the size of the Docker image by cleaning the APT cache

To save space in the Docker image, we can clean the APT cache after installing packages with apt-get install.
To do so we could add rm -rf /var/lib/apt/lists/* to the end of the RUN command that invokes apt-get install.
Type of installation
Docker
Version
v1.28.3

Run failed https://github.com/teslamate-org/teslamate/actions/runs/8059001372


External DNS - Ability to work with other providers

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

What is the outcome that you are trying to reach?
Right now, in order to use external-dns you need to provide route53 zones, etc. It should be possible to configure external-dns with other providers other than route53.
Describe the solution you would like
make the default route53 configuration and resources dependant on a condition so people can choose the DNS provider they want to use.
Describe alternatives you have considered
Use regular helm release object to deploy external-dns

+1, would be great to have this feature, not all use cases imply DNS management done in AWS


Merge prTesting_202010271932 branch to master branch

Docs Build status updates of commit 20a20f9:
:clock10: Pending: waiting for processors (16 builds ahead of you)
:warning: Docs Build is busy, currently there are 16 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 20a20f9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Where is the Brick Viewer?

http://viewer.brickschema.org/ doesn't load, can I run it myself?

You can, yes, but the code is pretty old (https://github.com/gtfierro/ttlviewer). I accidentally took it down when cleaning up some old infrastructure , and I'm planning on pushing the new version of it early next week.

There is an "alpha" version live right now at https://viewer.brickschema.org ! The basic stuff should work. You can also generate the "D2" string and paste it in over here to get a slightly nicer looking image.


Can't map a key to control+shift

I need to remap the letter a to type a when tapped and map it to CTRL+ SHIFT when held, i tried these solutions and none worked
leftcontrol = leftcontrol
leftshift = leftshift
control = control
shift = shift
# first try
a = overload(C-S, a)

# second try
a = overload(control+shift, a)

none of these work, please keep in mind that i mapped control to capslock later in the file as well (not sure if that makes a difference so here's my config
[ids]

*

[main]

# Maps capslock to escape when pressed and control when held.
capslock = overload(control, esc)
; = overload(control, ;)

leftcontrol = leftcontrol
leftshift = leftshift
control = control
shift = shift
compose = down

rightalt = rightalt
rightalt = overload(alt, left)

rightshift = rightshift
rightshift = overload(shift, up)

rightcontrol = rightcontrol
rightcontrol = overload(control, right)

leftcontrol = leftcontrol
leftcontrol = capslock

Try defining a custom layer with the associated modifiers:
[main]
a = overload(controlshift, a)

[controlshift:C-S]

(That said, you will probably find you'll need something like a = lettermod(controlshift, a, 50, 100) or one of the other overload variants to avoid misfires)

This worked flawlessly, thank you <3


Upgrade testcontainers version to 1.9.1 and added versions in docker-compose.yml

Figured out that the failing tests in #30 were due to the fact that elasticsearch:latest is not available in Docker Hub anymore... so added versions in docker-compose.yml to prevent this from happening in the future and moving on :smile:
On a side note current master is not building as well because of that same issue...
@bskarda @dimafeng

@scoquelin oh thanks! 😅


Web - Finalize Post CRUD Integration

[x] Once the endpoints are ready, integrate all the previous and new post pages with the endpoints

Solved in #480


Exp Video

Child issue of #2266
Proposed requirements

Generate interest in experiments in a different medium
Introduce enough of the features to start using experiments

Questions

What additional benefit should the video add?
What features to highlight?

Should we make a new video label if we're going to manage video production in this repo?


Want to resume denseflow but cannot manually find .done folder

After an denseflow iteruption, I want to resume my denseflow work for extracting optical-flow for folder videos but skip done videos. I notice that there is a --force argument which can control if skip marked as .done videos. While I cannot find any generated folder or file named as 'done' in output dir or source_dir.
Is it OK to run the same command to resume my work, will it skip done videos? Where can I find .done folder and can I manually edit it?

folders with name starting with dot is by default hidden by file exploreres. you can try to rerun the same command and see if it is smart

folders with name starting with dot is by default hidden by file exploreres. you can try to rerun the same command and see if it is smart

Do you succeed in installing opencv？Can you give me some advice about installation,i totally follow the instructions,but failed.

Do you succeed in installing opencv？Can you give me some advice about installation,i totally follow the instructions,but failed.

Otherwise apply mmacion v1.0,this can work,mmaction v2.0 installation denseflow so bad.

Otherwise apply mmacion v1.0,this can work,mmaction v2.0 installation denseflow so bad.


TableView cell overflow props behaves improper.

Provide a general summary of the issue here
The link in the cell is adding ellipsis( ... ) multiple times when we are using overflow: 'wrap' props.
🤔 Expected Behavior?
It should add ellipsis at the end or should display the entire link text without ellipsis.
😯 Current Behavior
The link in the cell is adding ellipsis( ... ) multiple times when we are using overflow: 'wrap' props.
💁 Possible Solution
No response
🔦 Context
No response
🖥 Steps to Reproduce
Version
3.29.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac
🧢 Your Company/Team
ACC
🕷 Tracking Issue
No response

Updated the post to remove internal Adobe info. Here is a codesandbox demonstrating the described behavior: https://codesandbox.io/p/sandbox/without-word-break-c4cnvd
I think this is the expected behavior for long strings like this. You can solve this by surrounding your long string with a span with  overflow-wrap: break-word: https://codesandbox.io/p/sandbox/with-word-break-h9l7d8?file=%2Fsrc%2FApp.js%3A21%2C22

Closing, this is working as intended. Thanks for the links/examples @reidbarber


Write output to rootDir

When I run my application, it writes to /tmp/test/:
λ file /tmp/test/client.ts
/tmp/test/client.ts: cannot open '/tmp/test/client.ts' (No such file or directory)
λ file /tmp/test/client.d.ts
/tmp/test/client.d.ts: cannot open '/tmp/test/client.d.ts' (No such file or directory)
λ
λ stack run tsdef
λ
λ file /tmp/test/client.ts
/tmp/test/client.ts: Java source, ASCII text
λ file /tmp/test/client.d.ts
/tmp/test/client.d.ts: ASCII text
λ

The rootDir variable isn't referenced, and the documentation suggests that it'll write to the supplied folder, so I suspect rootDir is probably what was intended here. Thanks for reviewing/considering this PR!

Thanks @bgwines, fix is on Hackage now.


Warn logs during server start up

Describe the issue:
could find below warn logs in the server start up. Most of them are related to expirt certificate. We need to fix all the warn logs
[2022-07-01 10:43:30,995] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [thawtepremiumserverca] and DN<EMAIL_ADDRESS>CN=Thawte Premium Server CA, OU=Certification Services Division, O=Thawte Consulting cc, L=Cape Town, ST=Western Cape, C=ZA] is not valid due to [NotAfter: Sat Jan 02 05:29:59 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-01 10:43:30,996] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [identrustdstx3] and DN [CN=DST Root CA X3, O=Digital Signature Trust Co.] is not valid due to [NotAfter: Thu Sep 30 19:31:15 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-01 10:43:30,996] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [globalsignr2ca] and DN [CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R2] is not valid due to [NotAfter: Wed Dec 15 13:30:00 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-01 10:43:30,997] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [geotrustglobalca] and DN [CN=GeoTrust Global CA, O=GeoTrust Inc., C=US] is not valid due to [NotAfter: Sat May 21 09:30:00 IST 2022]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-01 10:43:30,998] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [soneraclass2ca] and DN [CN=Sonera Class2 CA, O=Sonera, C=FI] is not valid due to [NotAfter: Tue Apr 06 12:59:40 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-01 10:43:30,998] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [verisigntsaca] and DN [CN=Thawte Timestamping CA, OU=Thawte Certification, O=Thawte, L=Durbanville, ST=Western Cape, C=ZA] is not valid due to [NotAfter: Sat Jan 02 05:29:59 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-01 10:43:30,998] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [quovadisrootca] and DN [CN=QuoVadis Root Certification Authority, OU=Root Certification Authority, O=QuoVadis Limited, C=BM] is not valid due to [NotAfter: Thu Mar 18 00:03:33 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-01 10:43:30,999] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [luxtrustglobalrootca] and DN [CN=LuxTrust Global Root, O=LuxTrust s.a., C=LU] is not valid due to [NotAfter: Wed Mar 17 15:21:37 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[

How to reproduce:

Expected behavior:

Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: [e.g., IS 5.10.0, IS 5.9.0]
OS: [e.g., Windows, Linux, Mac]
Database: [e.g., MySQL, H2]
Userstore: [e.g., LDAP, JDBC]

Optional Fields
Related issues:

Suggested labels:

Issue related to JAVA WARN logs observed https://github.com/wso2/product-is/issues/14129

Below warn logs found in alpha2 pack
[2022-07-07 11:04:49,220] []  WARN {org.eclipse.jetty.util.ssl.SslContextFactory.config} - Trusting all certificates configured for Client@35cfb0c2[provider=null,keyStore=null,trustStore=file:///Users/piraveena/Documents/wso2is-6.0.0-alpha2/repository/resources/security/client-truststore.jks]
[2022-07-07 11:04:49,220] []  WARN {org.eclipse.jetty.util.ssl.SslContextFactory.config} - No Client EndPointIdentificationAlgorithm configured for Client@35cfb0c2[provider=null,keyStore=null,trustStore=file:///Users/piraveena/Documents/wso2is-6.0.0-alpha2/repository/resources/security/client-truststore.jks]
[2022-07-07 11:04:49,345] []  WARN {org.eclipse.jetty.util.ssl.SslContextFactory.config} - Trusting all certificates configured for Client@67585101[provider=null,keyStore=null,trustStore=file:///Users/piraveena/Documents/wso2is-6.0.0-alpha2/repository/resources/security/client-truststore.jks]
[2022-07-07 11:04:49,346] []  WARN {org.eclipse.jetty.util.ssl.SslContextFactory.config} - No Client EndPointIdentificationAlgorithm configured for Client@67585101[provider=null,keyStore=null,trustStore=file:///Users/piraveena/Documents/wso2is-6.0.0-alpha2/repository/resources/security/client-truststore.jks]

[2022-07-07 11:05:20,008] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [thawtepremiumserverca] and DN<EMAIL_ADDRESS>CN=Thawte Premium Server CA, OU=Certification Services Division, O=Thawte Consulting cc, L=Cape Town, ST=Western Cape, C=ZA] is not valid due to [NotAfter: Sat Jan 02 05:29:59 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-07 11:05:20,009] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [identrustdstx3] and DN [CN=DST Root CA X3, O=Digital Signature Trust Co.] is not valid due to [NotAfter: Thu Sep 30 19:31:15 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-07 11:05:20,009] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [globalsignr2ca] and DN [CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R2] is not valid due to [NotAfter: Wed Dec 15 13:30:00 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-07 11:05:20,009] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [geotrustglobalca] and DN [CN=GeoTrust Global CA, O=GeoTrust Inc., C=US] is not valid due to [NotAfter: Sat May 21 09:30:00 IST 2022]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-07 11:05:20,010] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [soneraclass2ca] and DN [CN=Sonera Class2 CA, O=Sonera, C=FI] is not valid due to [NotAfter: Tue Apr 06 12:59:40 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-07 11:05:20,010] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [verisigntsaca] and DN [CN=Thawte Timestamping CA, OU=Thawte Certification, O=Thawte, L=Durbanville, ST=Western Cape, C=ZA] is not valid due to [NotAfter: Sat Jan 02 05:29:59 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-07 11:05:20,010] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [quovadisrootca] and DN [CN=QuoVadis Root Certification Authority, OU=Root Certification Authority, O=QuoVadis Limited, C=BM] is not valid due to [NotAfter: Thu Mar 18 00:03:33 IST 2021]. Certificates signed by this trusted certificate WILL be accepted
[2022-07-07 11:05:20,011] []  WARN {org.apache.tomcat.util.net.SSLUtilBase} - The trusted certificate with alias [luxtrustglobalrootca] and DN [CN=LuxTrust Global Root, O=LuxTrust s.a., C=LU] is not valid due to [NotAfter: Wed Mar 17 15:21:37 IST 2021]. Certificates signed by this trusted certificate WILL be accepted


Social recovery

On-chain hash of guardians (see detailed notes).
Also, https://vitalik.ca/general/2021/01/11/recovery.html

A single recovery hash is currently implemented, and can be used with a multi-sig wallet.
Can revisit a multi-sig module after V2 if required


Get-DbaBackupHistory - return only last diff instead of all, and log backups after the last diff

Fixes #
Changes proposed in this pull request:

for -last switch return only one differential backup (was returning all)
for -last switch return log backups after the differential if there is one

How to test this code:

[ ] Get-DbaBackupHistory -SqlServer server1 -Databases db1 -last
db1 in full recovery mode, returns last chain of backups, 1 full, 1 differential and any log backups since that diff.

Has been tested on minimum requirements:

[ ]  Powershell 3
[ ]  Windows 7
[ ]  SQL Server 2000

Has been tested on maximum requirements:

[ ]  SQL Server vNext
[X]  Windows 10
[ ]  Azure Database

Tests for tester:

[ ] Working/useful help content, including link to command on dbatools web site
[ ] All examples work as advertised
[ ] Does not contain template content
[ ] Does not contain excessive/unnecessary amounts of comments
[ ] Works remotely
[ ] Works locally
[ ] Works on lower versions or throws error specifying version not supported
[ ] Works with named instances
[ ] Works with clustered instances
[ ] Handles offline/read only databases
[ ] Supports multiple servers (at the command line or piped from Get-SqlRegisteredServerName)
[ ] No un-handled errors which stop the command working with multiple servers

Thanks a ton!

You're welcome :)


Why are we using underscore instead of lodash?

Srsly.
Dear @floatingLomas: look into swapping this.

Woooooooo.


_NativeSocket causes a crash by completing a Future twice

Steps to Reproduce

Run flutter create bug.
Thank you for the framework! Cannot provide a simple reproducible sample, but the problem exists and affects many users.

Expected results:
No error
Actual results:
Error:
String: Bad state: Future already completed
  File "future_impl.dart", line 45, in _AsyncCompleter.complete
  File "socket_patch.dart", line 847, in _NativeSocket.tryConnectToResolvedAddresses.connectNext.<fn>
  File "socket_patch.dart", line 1214, in _NativeSocket.issueWriteEvent.issue
  File "socket_patch.dart", line 1221, in _NativeSocket.issueWriteEvent
  File "socket_patch.dart", line 1242, in _NativeSocket.multiplex
  File "isolate_patch.dart", line 184, in _RawReceivePortImpl._handleMessage

Logs

N/A

no analysis errors.

[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.7 19H524 darwin-x64, locale
    zh-Hans-CN)
    • Flutter version 2.0.1 at /Users/tom/opt/flutter
    • Framework revision c5a4b4029c (3 周前), 2021-03-04 09:47:48 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tom/Library/Android/sdk
    • Platform android-30, build-tools 29.0.3
    • ANDROID_SDK_ROOT = /Users/tom/Library/Android/sdk
    • Java binary at: /Users/tom/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Users/tom/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
      Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.3)
    • IntelliJ at /Users/tom/Applications/JetBrains Toolbox/IntelliJ IDEA
      Ultimate.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.20.0

[✓] Connected device (2 available)
    • iPhone 8 (mobile) • 2B6C1189-40D3-4E60-898F-2A5E58ACAA3D • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • Chrome (web)      • chrome                               • web-javascript •
      Google Chrome 89.0.4389.90

• No issues found!

Similar crash issue seems to be related to dart in Flutter, labelling

This was fixed and cherry picked into 2.0.3 (https://github.com/dart-lang/sdk/issues/45214)

Sounds great!


Linkedin API: Missing client_secret upon redirect

I am having trouble using the library to connect to the Linkedin API. I am using the authorization_code flow, and it fails upon handling the redirection.
I am calling client.authorizationCode.getToken({code, redirectUri, state}) and getting the error from the server:
OAuth2 error invalid_request. A required parameter \"client_secret\" is missing

The Linkedin documentation does mention that the client_secret (and client_id) are required: https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin%2Fconsumer%2Fcontext&tabs=HTTPS1#step-2-request-an-authorization-code
I just want to know whether the issue is with Linkedin not following the standard, or if this could be an extra option to add to the library (eg. add options like includeClientSecret to GetTokenParams?), in which case I would do a PR.

Hi @ericleib , the client will send the client_id to the token endpoint if you supplied it when creating the client.
There are however 2 ways to pass both the client_id and client_secret. The client defaults to the recommended way, but from the looks of their documentation it looks like linkedin wants them supplied in the body.
You can try setting the authenticationMethod to client_secret_post.

Thank you for your fast answer, that did the trick !
I misunderstood the purpose of this parameter, but now it's clear. Closing the issue.

I wonder if there's something I can change to the docs to make it a bit more clear. What did you think it was for?

I think I just didn't realize that there were multiple possible authentication methods when calling the token endpoint, and I dismissed the parameter as something required for a different flow.
I was also a bit confused by this comment above clientSecret:

This is required when using the 'client_secret_basic' authenticationMethod for the client_credentials and password flows, but not authorization_code or implicit.

In my case I am using the authorization_code flow, and so initially I thought I didn't not need the clientSecret at all, even though it is needed for the last leg of the flow.

Ah makes sense! Thanks for the background


Fixes XXX: Adds ouiaIa Ids for the defineContent Tab

Summary
This was a quick locator request by QE.
Testing steps

https://issues.redhat.com/browse/HMS-XXX


Not being able to flash the nRF9160

I think this is related to #470 that I filed almost two years ago.
I'm trying to get the nRF9160 working on a new project and I'm running in to the same problem I thought was fixed long ago. Could it be that I have misconfigured something or is this a regression of the probe code?
cargo embed
    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
      Config default
      Target /Users/xxx/repos/xxx/target/thumbv8m.main-none-eabi/debug/xxx
     Erasing sectors ✔ [00:00:00] [-------------------------------------------------------------------------------------------------------------------------]       0B/32.00KiB @       0B/s (eta 0s )
 Programming pages   ✔ [00:00:00] [-------------------------------------------------------------------------------------------------------------------------]       0B/32.00KiB @       0B/s (eta 0s )
       Error failed to flash /Users/xxx/repos/xxx/target/thumbv8m.main-none-eabi/debug/xxx

             Caused by:
                 0: Error while flashing
                 1: Failed to erase flash sector at address 0x00040000.
                 2: Failed to erase flash sector at address 0x00040000.
                 3: A core architecture specific error occurred
                 4: Failed to read register DRW at address 0x0000000c
                 5: An error specific to the selected architecture occurred
                 6: Target device responded with a FAULT response to the request.

Thanks!

Just tested that it works with cargo embed version 0.11.0

@eflukx Are you sure it's probe-run 0.3.3 that fixed it? Because for me it's going back to 0.3.0 that fixes it because all versions after that use probe-rs 0.12 instead of the working 0.11

@diondokter I see you removed your (quoted) question about the exact version used, so probably it's not relevant anymore. Anyway I'd just like to confirm that I'm successfully using probe-run v0.3.3 with a nRF9160 module.

What kind of debug probe are you using? Does this happen with the nRF9160 DK?

What kind of debug probe are you using? Does this happen with the nRF9160 DK?

Happens on the DK too yeah. When using nRF chips, I usually use a jtag probe of one of my DK boards

I also have issues using an nRF9160-DK

I think this issue can be closed now. The PR of Dario seems to have solved this.


MNT: Re-rendered with conda-smithy 1.6.0

And trigger 3.6 builds :)

🔗 https://github.com/conda-forge/cookiecutter-feedstock/pull/8

Gah, newer smithy available.


Build Update

Point to new repositories for dependencies
Update testing + startup scripts to use localhost rather than jenkins.cs
GitHub Actions script for CI
Update key dependencies to later versions (thanks Renovate Bot!)

Sorry - just spotted that it's only running half the tests, and when I got it to run the rest, they are all failing.  Will fix and un-draft it

Better... reopening.


view: user view: my dev goal: selected goal. should have edit, delete, request review buttons

res.render('goal', { goal, loggedIn: req.session.loggedIn });


RichText support added

Test cases has been added on Lab5304 server under Form Fields

A few things I noticed:

This PR is to commit to master (which is for 23.1) and lab5304 is an 8.8 server
We need to figure out why there's a lint error shown in one of the checks above

Siva, I see these errors when I try and build with your branch..
[build-dev-only] ERROR in ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx 837:0-48
[build-dev-only] Module not found: Error: Can't resolve '@tinymce/tinymce-react' in '/Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor'
[build-dev-only]  @ ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/index.tsx 40:0-43 40:0-43
[build-dev-only]  @ ./packages/react-sdk-components/src/components/field/RichText/RichText.tsx 804:0-72 864:44-58 919:44-58
[build-dev-only]  @ ./packages/react-sdk-components/src/components/field/RichText/index.tsx 40:0-37 40:0-37
[build-dev-only]  @ ./packages/react-sdk-components/src/sdk-pega-component-map.js 124:0-51 230:14-22
[build-dev-only]  @ ./packages/react-sdk-components/src/bridge/helpers/sdk_component_map.ts 1630:0-63 1719:88-107
[build-dev-only]  @ ./packages/react-sdk-components/src/samples/FullPortal/index.tsx 1392:0-76 1533:6-24
[build-dev-only]  @ ./packages/react-sdk-components/src/samples/AppSelector/index.tsx 105:0-39 134:15-25 137:15-25
[build-dev-only]  @ ./packages/react-sdk-components/src/samples/TopLevelApp/index.tsx 241:0-41 246:62-73
[build-dev-only]  @ ./packages/react-sdk-components/src/index.tsx 115:0-53 122:70-81
[build-dev-only]
[build-dev-only] ERROR in unable to locate '/Users/gagnp/approvals/React/23.1/react-sdk-components/node_modules/tinymce' glob
[build-dev-only]
[build-dev-only] ERROR in /Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx
[build-dev-only] ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx 2:23-47
[build-dev-only] [tsl] ERROR in /Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx(2,24)
[build-dev-only]       TS2307: Cannot find module '@tinymce/tinymce-react' or its corresponding type declarations.
[build-dev-only]  @ ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/index.tsx 40:0-43 40:0-43
[build-dev-only]  @ ./packages/react-sdk-components/src/components/field/RichText/RichText.tsx 804:0-72 864:44-58 919:44-58
[build-dev-only]  @ ./packages/react-sdk-components/src/components/field/RichText/index.tsx 40:0-37 40:0-37
[build-dev-only]  @ ./packages/react-sdk-components/src/sdk-pega-component-map.js 124:0-51 230:14-22
[build-dev-only]  @ ./packages/react-sdk-components/src/bridge/helpers/sdk_component_map.ts 1630:0-63 1719:88-107
[build-dev-only]  @ ./packages/react-sdk-components/src/samples/FullPortal/index.tsx 1392:0-76 1533:6-24
[build-dev-only]  @ ./packages/react-sdk-components/src/samples/AppSelector/index.tsx 105:0-39 134:15-25 137:15-25
[build-dev-only]  @ ./packages/react-sdk-components/src/samples/TopLevelApp/index.tsx 241:0-41 246:62-73
[build-dev-only]  @ ./packages/react-sdk-components/src/index.tsx 115:0-53 122:70-81
[build-dev-only]
[build-dev-only] 1 error has detailed information that is not shown.
[build-dev-only] Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
[build-dev-only]
[build-dev-only] webpack 5.76.1 compiled with 3 errors in 39504 ms
ERROR: "build-dev-only" exited with 1.

Paul:
You probably need to do an npm install or an npm run build:dev:ci to get the new tinymce package installed

John -

From: paulgagnon-pega @.>
Date: Thursday, November 2, 2023 at 10:34 AM
To: pegasystems/react-sdk-components @.>
Cc: Arnold, John @.>, Review requested @.>
Subject: ExtMsg: Re: [pegasystems/react-sdk-components] RichText support added (PR #205)
CAUTION: This email was sent from an EXTERNAL source. Think before clicking links or opening attachments.
Siva, I see these errors when I try and build with your branch..
[build-dev-only] ERROR in ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx 837:0-48
[build-dev-only] Module not found: Error: Can't resolve @./tinymce-react' in '/Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor'
[build-dev-only] @ ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/index.tsx 40:0-43 40:0-43
[build-dev-only] @ ./packages/react-sdk-components/src/components/field/RichText/RichText.tsx 804:0-72 864:44-58 919:44-58
[build-dev-only] @ ./packages/react-sdk-components/src/components/field/RichText/index.tsx 40:0-37 40:0-37
[build-dev-only] @ ./packages/react-sdk-components/src/sdk-pega-component-map.js 124:0-51 230:14-22
[build-dev-only] @ ./packages/react-sdk-components/src/bridge/helpers/sdk_component_map.ts 1630:0-63 1719:88-107
[build-dev-only] @ ./packages/react-sdk-components/src/samples/FullPortal/index.tsx 1392:0-76 1533:6-24
[build-dev-only] @ ./packages/react-sdk-components/src/samples/AppSelector/index.tsx 105:0-39 134:15-25 137:15-25
[build-dev-only] @ ./packages/react-sdk-components/src/samples/TopLevelApp/index.tsx 241:0-41 246:62-73
[build-dev-only] @ ./packages/react-sdk-components/src/index.tsx 115:0-53 122:70-81
[build-dev-only]
[build-dev-only] ERROR in unable to locate '/Users/gagnp/approvals/React/23.1/react-sdk-components/node_modules/tinymce' glob
[build-dev-only]
[build-dev-only] ERROR in /Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx
[build-dev-only] ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx 2:23-47
[build-dev-only] [tsl] ERROR in /Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx(2,24)
[build-dev-only] TS2307: Cannot find module @./tinymce-react' or its corresponding type declarations.
[build-dev-only] @ ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/index.tsx 40:0-43 40:0-43
[build-dev-only] @ ./packages/react-sdk-components/src/components/field/RichText/RichText.tsx 804:0-72 864:44-58 919:44-58
[build-dev-only] @ ./packages/react-sdk-components/src/components/field/RichText/index.tsx 40:0-37 40:0-37
[build-dev-only] @ ./packages/react-sdk-components/src/sdk-pega-component-map.js 124:0-51 230:14-22
[build-dev-only] @ ./packages/react-sdk-components/src/bridge/helpers/sdk_component_map.ts 1630:0-63 1719:88-107
[build-dev-only] @ ./packages/react-sdk-components/src/samples/FullPortal/index.tsx 1392:0-76 1533:6-24
[build-dev-only] @ ./packages/react-sdk-components/src/samples/AppSelector/index.tsx 105:0-39 134:15-25 137:15-25
[build-dev-only] @ ./packages/react-sdk-components/src/samples/TopLevelApp/index.tsx 241:0-41 246:62-73
[build-dev-only] @ ./packages/react-sdk-components/src/index.tsx 115:0-53 122:70-81
[build-dev-only]
[build-dev-only] 1 error has detailed information that is not shown.
[build-dev-only] Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
[build-dev-only]
[build-dev-only] webpack 5.76.1 compiled with 3 errors in 39504 ms
ERROR: "build-dev-only" exited with 1.
—
Reply to this email directly, view it on GitHubhttps://github.com/pegasystems/react-sdk-components/pull/205#issuecomment-1790854312, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDTKSR5P2JJV2JJEXWB77LYCOVQ5AVCNFSM6AAAAAA6UEOL66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQHA2TIMZRGI.
You are receiving this because your review was requested.Message ID: @.***>

Yup, that fixed it.
From: J_Arnold @.>
Reply-To: pegasystems/react-sdk-components @.>
Date: Thursday, November 2, 2023 at 10:37 AM
To: pegasystems/react-sdk-components @.>
Cc: "Gagnon, Paul" @.>, Review requested @.***>
Subject: ExtMsg: Re: [pegasystems/react-sdk-components] RichText support added (PR #205)
CAUTION: This email was sent from an EXTERNAL source. Think before clicking links or opening attachments.
Paul:
You probably need to do an npm install or an npm run build:dev:ci to get the new tinymce package installed

John -

From: paulgagnon-pega @.>
Date: Thursday, November 2, 2023 at 10:34 AM
To: pegasystems/react-sdk-components @.>
Cc: Arnold, John @.>, Review requested @.>
Subject: ExtMsg: Re: [pegasystems/react-sdk-components] RichText support added (PR #205)
CAUTION: This email was sent from an EXTERNAL source. Think before clicking links or opening attachments.
Siva, I see these errors when I try and build with your branch..
[build-dev-only] ERROR in ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx 837:0-48
[build-dev-only] Module not found: Error: Can't resolve @./tinymce-react' in '/Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor'
[build-dev-only] @ ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/index.tsx 40:0-43 40:0-43
[build-dev-only] @ ./packages/react-sdk-components/src/components/field/RichText/RichText.tsx 804:0-72 864:44-58 919:44-58
[build-dev-only] @ ./packages/react-sdk-components/src/components/field/RichText/index.tsx 40:0-37 40:0-37
[build-dev-only] @ ./packages/react-sdk-components/src/sdk-pega-component-map.js 124:0-51 230:14-22
[build-dev-only] @ ./packages/react-sdk-components/src/bridge/helpers/sdk_component_map.ts 1630:0-63 1719:88-107
[build-dev-only] @ ./packages/react-sdk-components/src/samples/FullPortal/index.tsx 1392:0-76 1533:6-24
[build-dev-only] @ ./packages/react-sdk-components/src/samples/AppSelector/index.tsx 105:0-39 134:15-25 137:15-25
[build-dev-only] @ ./packages/react-sdk-components/src/samples/TopLevelApp/index.tsx 241:0-41 246:62-73
[build-dev-only] @ ./packages/react-sdk-components/src/index.tsx 115:0-53 122:70-81
[build-dev-only]
[build-dev-only] ERROR in unable to locate '/Users/gagnp/approvals/React/23.1/react-sdk-components/node_modules/tinymce' glob
[build-dev-only]
[build-dev-only] ERROR in /Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx
[build-dev-only] ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx 2:23-47
[build-dev-only] [tsl] ERROR in /Users/gagnp/approvals/React/23.1/react-sdk-components/packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx(2,24)
[build-dev-only] TS2307: Cannot find module @./tinymce-react' or its corresponding type declarations.
[build-dev-only] @ ./packages/react-sdk-components/src/components/designSystemExtension/RichTextEditor/index.tsx 40:0-43 40:0-43
[build-dev-only] @ ./packages/react-sdk-components/src/components/field/RichText/RichText.tsx 804:0-72 864:44-58 919:44-58
[build-dev-only] @ ./packages/react-sdk-components/src/components/field/RichText/index.tsx 40:0-37 40:0-37
[build-dev-only] @ ./packages/react-sdk-components/src/sdk-pega-component-map.js 124:0-51 230:14-22
[build-dev-only] @ ./packages/react-sdk-components/src/bridge/helpers/sdk_component_map.ts 1630:0-63 1719:88-107
[build-dev-only] @ ./packages/react-sdk-components/src/samples/FullPortal/index.tsx 1392:0-76 1533:6-24
[build-dev-only] @ ./packages/react-sdk-components/src/samples/AppSelector/index.tsx 105:0-39 134:15-25 137:15-25
[build-dev-only] @ ./packages/react-sdk-components/src/samples/TopLevelApp/index.tsx 241:0-41 246:62-73
[build-dev-only] @ ./packages/react-sdk-components/src/index.tsx 115:0-53 122:70-81
[build-dev-only]
[build-dev-only] 1 error has detailed information that is not shown.
[build-dev-only] Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
[build-dev-only]
[build-dev-only] webpack 5.76.1 compiled with 3 errors in 39504 ms
ERROR: "build-dev-only" exited with 1.
—
Reply to this email directly, view it on GitHubhttps://github.com/pegasystems/react-sdk-components/pull/205#issuecomment-1790854312, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDTKSR5P2JJV2JJEXWB77LYCOVQ5AVCNFSM6AAAAAA6UEOL66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQHA2TIMZRGI.
You are receiving this because your review was requested.Message ID: @.***>
—
Reply to this email directly, view it on GitHubhttps://github.com/pegasystems/react-sdk-components/pull/205#issuecomment-1790858931, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUJ5C6K7D4GEBEAU3S4ZF5LYCOV2ZAVCNFSM6AAAAAA6UEOL66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQHA2TQOJTGE.
You are receiving this because your review was requested.Message ID: @.***>

@tumms2021389 The typedefs for 23.1.10 are different than for 8.8.20 and there are some compilation errors that you'll need to fix for this to build/run correctly.

@tumms2021389 The typedefs for 23.1.10 are different than for 8.8.20 and there are some compilation errors that you'll need to fix for this to build/run correctly.

Fixed compilation errors

As of now some tests in the lab0087 server are failing, @4manasa is looking to them. Inorder to tests these changes you can run only RichText playwright tests.


Thanks!  You've saved me many hours of time!

I literally set aside my evening tonight to write essentially the same library you created here as govee-py, and was thrilled to see that you'd already done it, and not only that -- you'd done it in a much more thoughtful way than I was originally roughly planning to.  This appears to work great for all four of my govee lights and has none of the unreliability of the normal hacs govee integration caused by govee's servers' rate limits.  I'm sure we'll see more folks moving to this hacs integration you've created here as more govee devices become enabled for LAN control.
As an aside, and this might very well be a problem in just my environment, but I did have to install the govee-led-wez dependency manually for some reason.  I'm assuming it's just a problem in my environment, though, because it does look like you've declared it correctly in your manifest.  That said, I thought I should say something in case somebody else encounters the same trouble.
Cheers & thanks again!

Thanks for the kind words!

As an aside, and this might very well be a problem in just my environment, but I did have to install the govee-led-wez dependency manually for some reason. I'm assuming it's just a problem in my environment, though, because it does look like you've declared it correctly in your manifest

There were some issues with it a few weeks ago, but it definitely works now: I've tested this with several fresh recreations of my hass docker image and it does successfully install.
It's possible that the minimum hass version needs to be updated in the manifest: there's some bluetooth related stuff that might require 2022.12.something.

Seconded! This was amazingly well-timed for me, as I just got two sets of the H7060 outdoor flood lights. I had used the cloud-based Govee integration and woke up today to find myself rate-limited. I went searching for a postman collection or tutorial on how to connect using the LAN API and found this integration! Installed, discovered, and automated within minutes.
I did have some system instability after installing, but a hard reboot seems to have taken care of that (and I'm not certain it had anything to do with this integration, but the timing is a bit suspect).

Thirded! Thank you for putting this together.

came here to thank you too @wez , local integration is a game changer ❤