react-native android device

I try to use mimic with react-native and android device:

install mimic-remote and mimic
add this strings to project:

const connect = require('mimic/react-native').default
connect({ host: 'localhost', port: 5000 })

start mimic-remote with command:
mimic-remote
add port to listen by device:
adb reverse tcp:5000 tcp:5000

Result is: mimic is available from web interface with route localhost:5000 but when I try to use it I catch the error:
Can you help me?

Hi @Razzwan
Sorry for the late response, saw this just before a 24 hours flight and then forgot to reply as it took me some time to recover from jet lag :)
The issue is missing the error, is it unable to connect to mimic remote error?
I've had some issues before with android react-native apps where I needed to enable a few permissions in the app manifest before it could work (probably related to networking as we use web sockets).
I'll try to give it a shot in the next few days and see if I can see an issue and how to resolve it.
Thanks!

@morsdyce
Any idea can i fix this issue manually？


Moving off of insertAt & removeAt prototype ext

[x] insertAt
[x] removeAt

@stefanpenner r?

thanks :)


Revert change to treat Canonical URLs as Locals

Revert change added in MR: #3050 to add support for treating Canonical Urls as locals. This is no longer needed as the issue reported in #2843 (_include not working for Canonicals) has been addressed in MR: #3440
Test case to verify this is in: ResourceProviderQuestionnaireResponseR4Test

This looks good to me!


Notebook "multi_optimiser_identification" - class Parameter

Hi,
while using the notebook named above I notice following issues/errors. Some of which I can fix by adjusting arguments as described in documentation and some I cannot.

module 'pybop.models.lithium_ion' has no attribute 'DFN' : According to documentation, pybop.models.lithium_ion now only supports SPM/SPMe/echem_base

module 'pybop' has no attribute 'Parameters': It's just Parameter, with no 's'

pybop does not take AdamW and NelderMead as Optimisers: I just remove them from the list of Optimsers

Here's the  biggest issue when I try to define the FittingProblem with problem = pybop.FittingProblem(model, parameters, dataset, init_soc=init_soc). I get this error message
object of type 'Parameter' has no len()
I have read the source code of class Parameter and found no sign of len() Function. Another try in Colab returns the same error with a little bit more detailed message

Has anyone encountered this too and can help me with some insights?
Thanks in advance!

Hi @L0tusC00kie,
We are currently in between releases, and have had a larger amount of API changes than previous releases. For the time being, the examples will work if you install from develop as described below.
pip install git+https://github.com/pybop-team/PyBOP.git@develop

Do let me know if you have any further issues.


Updated version in description

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


no thumbnails showing on sideloaded app, but videos play fine

i successfully used rdp-to-scenegraph-channel-template to convert from direct publisher to scenegraph, currently awaiting publishing, in reviewing how to get my videos back in categories, not just one row i found this program - i used your  json feed manager in the past - a big help!
i used the conversion program, and sideloaded the zip - i see my categories, and videos play, but the thumbnails of videos do not show, if i scroll around it does change and i can play all. Is there a step i'm missing or do i need to update using VScode? i've opened the brs files in vscode, but fumbling through them now.
Secondly when i use the direct publisher json feed on your version or rdp-to-scenegraph-channel-template, the feed never loads, but using a mrss feed works fine. I see the thumbnails on the basic template, not this one though. Attached is my mrss feed, if i copy a thumb into a browser i see the picture so i know the pictures are viewable
8.xml.txt
thank you for any help

Are the thumbnails not showing on the JSON or XML feed?  If JSON, can you post your feed file?

@mdenhardt
Try to change the header

Change to:

looking at your feed I found first you list the categories for all videos two times
Example:
media:categoryAll Videos</media:category>
media:categoryAll Videos</media:category>
You need to remove the double categories and list it once!
Next Your links are missing the trailing slash
"https://player.vimeo.com/external/493867443.hd.mp4?s=bfd77dbbfc6c92954e5f6c63e56ddf23d9538a64&profile_id=175" duration="5469">
should look like this:
"https://player.vimeo.com/external/493867443.hd.mp4?s=bfd77dbbfc6c92954e5f6c63e56ddf23d9538a64&profile_id=175" duration="5469"/>
and the image links have a space at the end by trailing slash
<media:thumbnail url="https://storage.googleapis.com/mariancdn/thumbnails/exp_Angels.jpg" />
should look like this:
<media:thumbnail url="https://storage.googleapis.com/mariancdn/thumbnails/exp_Angels.jpg"/>
Next Change the Title of your channe

FireTv Export From Roku Json
change to channel name

My Channel Name
See if that helps you!
Joe Ferdinando

Header change to version 2.0

sorry, i gave you a copy of a fresh "Channel host manager" xml, that one
didn't have the title changed.
this version, which is the actual one running on my sideloaded app does the
same thing
https://storage.googleapis.com/mariancdn/6.xml
the live version of the json - direct publisher file is:
https://storage.googleapis.com/mariancdn/rokufeed6.json
the thumbnails show fine there, and the xml file is derived from that json,
using the utility
at your suggestion i added the slash to the file name, but i did not see
the space in the thumbnail image line, so i made no changes to those lines
thank you!
On Tue, Nov 7, 2023 at 4:50 PM ferdiworks @.***> wrote:

@mdenhardt https://github.com/mdenhardt
Try to change the header
Change to:
looking at your feed I found first you list the categories for all videos
two times
Example:
media:categoryAll Videos</media:category>
media:categoryAll Videos</media:category>
You need to remove the double categories and list it once!
Next Your links are missing the trailing slash
"
https://player.vimeo.com/external/493867443.hd.mp4?s=bfd77dbbfc6c92954e5f6c63e56ddf23d9538a64&profile_id=175"
duration="5469">
should look like this:
"
https://player.vimeo.com/external/493867443.hd.mp4?s=bfd77dbbfc6c92954e5f6c63e56ddf23d9538a64&profile_id=175"
duration="5469"/>
and the image links have a space at the end by trailing slash
<media:thumbnail url="
https://storage.googleapis.com/mariancdn/thumbnails/exp_Angels.jpg" />
should look like this:
<media:thumbnail url="
https://storage.googleapis.com/mariancdn/thumbnails/exp_Angels.jpg"/>
Next Change the Title of your channe
FireTv Export From Roku Json
change to channel name
My Channel Name
See if that helps you!
Joe Ferdinando
—
Reply to this email directly, view it on GitHub
https://github.com/rrirower/DP2SceneGraphWizard/issues/50#issuecomment-1800236501,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANUAYBITF3ZY3LYNFWW7C2TYDKUJDAVCNFSM6AAAAAA7BZVTD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQGIZTMNJQGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

@mdenhardt
I don't understand why you didn't use that same JSON feed file link in your SDK Package. It looks good to me!

when i use json feed, nothing at all loads, just the background image. the json works fine in the directpublisher live app
i was half wrong, my sideloaded app was running https://storage.googleapis.com/mariancdn/8.xml
which has the wrong app title
https://storage.googleapis.com/mariancdn/6.xml does the same thing as the json, no feed - just splash screen and bg image

are you suggesting this?
Channel Details
Auto-generated by DPtoSceneGraph wizard version <IP_ADDRESS>-alpha-8.1
(c) Copyright 2023, Michael Harnad, All rights reserved.
Support at https://github.com/rrirower
NOTE: Uppercase attributes are CUSTOM.
bs_libs_required=roku_ads_lib
title=The Divine Mercy
major_version=2
minor_version=0
build_version=0
FEED_URL=https://storage.googleapis.com/mariancdn/rokufeed6.json
#splash_color=#9B0000
BACKGROUND_COLOR=#000000
ui_resolutions=sd,hd,fhd
USE_RAF=0
OFFER_SUBSCRIPTIONS=0
supports_input_launch=1
mm_icon_focus_hd=pkg:/images/channel.png
splash_screen_hd=pkg:/images/splash.png
BACKGROUND_IMAGE=pkg:/images/background_image.png
Optional settings.  To use, uncomment.
#USE_THUMBNAIL_BACKGROUND=true
#TEXT_COLOR=#000000

are you suggesting this for manifest?
`# Channel Details
Auto-generated by DPtoSceneGraph wizard version <IP_ADDRESS>-alpha-8.1
(c) Copyright 2023, Michael Harnad, All rights reserved.
Support at https://github.com/rrirower
NOTE: Uppercase attributes are CUSTOM.
bs_libs_required=roku_ads_lib
title=The Divine Mercy
major_version=2
minor_version=0
build_version=0
FEED_URL=https://storage.googleapis.com/mariancdn/rokufeed6.json
#splash_color=#9B0000
BACKGROUND_COLOR=#000000
ui_resolutions=sd,hd,fhd
USE_RAF=0
OFFER_SUBSCRIPTIONS=0
supports_input_launch=1
mm_icon_focus_hd=pkg:/images/channel.png
splash_screen_hd=pkg:/images/splash.png
BACKGROUND_IMAGE=pkg:/images/background_image.png
Optional settings.  To use, uncomment.
#USE_THUMBNAIL_BACKGROUND=true
#TEXT_COLOR=#000000`

@mdenhardt Yes take that zip file and sideload it and test it again

using json nothing loads, other than the bg image and splash screen, no content for me to move around.
that is the same behavior when i used rdp-to-scenegraph-channel-template
i simplified an mrss feed
https://storage.googleapis.com/mariancdn/7.xml - it loads the one video, shows the 2 categories, but the thumbnail is just a transparent box, and no description is shown

@mdenhardt I am going to take another look at your JSON Feed

You've got some errors in your JSON feed file.

Language is required for content types.  Especially if you plan on using captioning.

You've got a mismatch with your Categories and Playlists.

A category is based on either a query or a playlist.  Your feed file defines only one category that's derived from a playlist, yet, you have 5 playlist objects defined.  The code is stopping because it doesn't know what to do with the "All" playlist.  There is no associated category.  You should take a deep dive into your Categories and Playlists.

You've got some errors in your JSON feed file.

Language is required for content types.  Especially if you plan on using captioning.
You've got a mismatch with your Categories and Playlists.

A category is based on either a query or a playlist. Your feed file defines only one category that's derived from a playlist, yet, you have 5 playlist objects defined. The code is stopping because it doesn't know what to do with the "All" playlist. There is no associated category. You should take a deep dive into your Categories and Playlists.

i understand, but i'm certain thats not whats wrong with the thumbnails not showing, i created a simple mrss feed, and tried the thumbnail with 3 different urls, and i still dont see any thumbnails
https://storage.googleapis.com/mariancdn/7.xml

Your XML feed file does not conform with the Roku MRSS feed spec. It looks like it's from an RSS feed.
As stated on the first page of this project, the feed file must conform to the Roku spec(s) in order for the wizard-generated code to process it.

@mdenhardt Ok I done some edits to your categories and playlist in the JSON feed, replace with this code:
`"categories": [
    {
      "name": "All Videos",
     "playlistName":"All",
      "order": "most_popular"
    },
    {
      "name": "Divine Mercy Matters",
      "playlistName":"Divine Mercy Matters",
      "order": "chronological"
    },
    {
      "name": "Discovering the Diary",
      "playlistName":"Discovering the Diary",
      "order": "most_recent"
    },
    {
      "name": "Featured Free for a Limited Time",
      "playlistName": "Featured Free",
      "order": "manual"
    },
    {
      "name": "Explaining the Faith with Fr. Chris Alar",
      "playlistName":"Explaining the Faith",
      "order": "chronological"
    }
  ],
  "playlists": [
    {
      "name": "All",
      "itemIds": [
        "archives-srfaustina1",
        "c8168fc591444f1a8dd57f6066c26c88",
        "01915b3a171a461ebe6e0a098d53e705",
        "2c27a33b4eee4705971b1904490c72be",
        "91d627fdd4dc4dc0a79737cfc5a89428",
        "c9cdab6e098c403a86f776cf13cd68d2",
        "55c605228e584bc6ad3788b754808943",
        "d0f01326bd764b6991b4e8ad165f2c59",
        "39946711a4b5461d9519797a95e09de4",
        "4471a6ab89c444a6ac624fc6ebb69341",
        "0236fd9efc0a4be090b1130526b86880",
        "8cb5b158c6ae403f9ced68af25aabe73",
        "e13adc59658e483fa519f0dca3bcd30a",
        "b2672956cd6044158b2a9187291f6afa",
        "3f5aab9529084f32bd02e901d9ff53b9",
        "235b85bd90844a05865190a0fca659ff"
      ]
    },
    {
      "name": "Divine Mercy Matters",
      "itemIds": [
        "c8c1e4b00b144a649887cccf124522c5"
      ]
    },
    {
      "name": "Discovering the Diary",
      "itemIds": [
        "01915b3a171a461ebe6e0a098d53e705",
        "4471a6ab89c444a6ac624fc6ebb69341",
        "c8168fc591444f1a8dd57f6066c26c88"
      ]
    },
    {
      "name": "Featured Free",
      "itemIds": [
        "f1377ac9543c4b9795239516ef0caa64",
        "38f3697469b4418b82fbb59945ed4aaa"
      ]
    },
    {
      "name": "Explaining the Faith",
      "itemIds": [
        "8cb5b158c6ae403f9ced68af25aabe73",
        "d708716987934c26add6574788ea4117",
        "06e25536ff004058a6453fd86ab1930e",
        "22af8f6370434cf887072b1c7a27a4f8",
        "39946711a4b5461d9519797a95e09de4",
        "e13adc59658e483fa519f0dca3bcd30a",
        "d0f01326bd764b6991b4e8ad165f2c59",
        "2c27a33b4eee4705971b1904490c72be",
        "1c606116194c4f73a32b5d4e6f696fb0",
        "91d627fdd4dc4dc0a79737cfc5a89428",
        "c9cdab6e098c403a86f776cf13cd68d2",
        "55c605228e584bc6ad3788b754808943",
        "0236fd9efc0a4be090b1130526b86880",
        "b2672956cd6044158b2a9187291f6afa",
        "3f5aab9529084f32bd02e901d9ff53b9",
        "84633bc134db49fdbd1075d827581810",
        "e82af69af78a464d8acf8ff0fa6ac775",
        "a0ab3f8ce2854a7a8680ebadfd289452",
        "f3a0024758b148a081df0e2513b270c8",
        "3c2bf497896b4f3eab22d3bf6e239bee",
        "b46997f173374cf2910e0a2b56d68f1c",
        "8322cd8277164eb981f4be57f1438df0"
      ]
    }
  ]
}

one interesting thing i've finally figured out, using the 1 video test xml -  if i use the header suggested by @ferdiworks
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">

nothing shows at all on the home screen
if i use header
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dcterms="http://purl.org/dc/terms/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" version="0">

i at least see the outline and can play the video

@mdenhardt Ok I done some edits to your categories and playlist in the JSON feed, replace with this code:
`"categories": [
    {
      "name": "All Videos",
     "playlistName":"All",
      "order": "most_popular"
    },
    {
      "name": "Divine Mercy Matters",
      "playlistName":"Divine Mercy Matters",
      "order": "chronological"
    },
    {
      "name": "Discovering the Diary",
      "playlistName":"Discovering the Diary",
      "order": "most_recent"
    },
    {
      "name": "Featured Free for a Limited Time",
      "playlistName": "Featured Free",
      "order": "manual"
    },
    {
      "name": "Explaining the Faith with Fr. Chris Alar",
      "playlistName":"Explaining the Faith",
      "order": "chronological"
    }
  ],
  "playlists": [
    {
      "name": "All",
      "itemIds": [
        "archives-srfaustina1",
        "c8168fc591444f1a8dd57f6066c26c88",
        "01915b3a171a461ebe6e0a098d53e705",
        "2c27a33b4eee4705971b1904490c72be",
        "91d627fdd4dc4dc0a79737cfc5a89428",
        "c9cdab6e098c403a86f776cf13cd68d2",
        "55c605228e584bc6ad3788b754808943",
        "d0f01326bd764b6991b4e8ad165f2c59",
        "39946711a4b5461d9519797a95e09de4",
        "4471a6ab89c444a6ac624fc6ebb69341",
        "0236fd9efc0a4be090b1130526b86880",
        "8cb5b158c6ae403f9ced68af25aabe73",
        "e13adc59658e483fa519f0dca3bcd30a",
        "b2672956cd6044158b2a9187291f6afa",
        "3f5aab9529084f32bd02e901d9ff53b9",
        "235b85bd90844a05865190a0fca659ff"
      ]
    },
    {
      "name": "Divine Mercy Matters",
      "itemIds": [
        "c8c1e4b00b144a649887cccf124522c5"
      ]
    },
    {
      "name": "Discovering the Diary",
      "itemIds": [
        "01915b3a171a461ebe6e0a098d53e705",
        "4471a6ab89c444a6ac624fc6ebb69341",
        "c8168fc591444f1a8dd57f6066c26c88"
      ]
    },
    {
      "name": "Featured Free",
      "itemIds": [
        "f1377ac9543c4b9795239516ef0caa64",
        "38f3697469b4418b82fbb59945ed4aaa"
      ]
    },
    {
      "name": "Explaining the Faith",
      "itemIds": [
        "8cb5b158c6ae403f9ced68af25aabe73",
        "d708716987934c26add6574788ea4117",
        "06e25536ff004058a6453fd86ab1930e",
        "22af8f6370434cf887072b1c7a27a4f8",
        "39946711a4b5461d9519797a95e09de4",
        "e13adc59658e483fa519f0dca3bcd30a",
        "d0f01326bd764b6991b4e8ad165f2c59",
        "2c27a33b4eee4705971b1904490c72be",
        "1c606116194c4f73a32b5d4e6f696fb0",
        "91d627fdd4dc4dc0a79737cfc5a89428",
        "c9cdab6e098c403a86f776cf13cd68d2",
        "55c605228e584bc6ad3788b754808943",
        "0236fd9efc0a4be090b1130526b86880",
        "b2672956cd6044158b2a9187291f6afa",
        "3f5aab9529084f32bd02e901d9ff53b9",
        "84633bc134db49fdbd1075d827581810",
        "e82af69af78a464d8acf8ff0fa6ac775",
        "a0ab3f8ce2854a7a8680ebadfd289452",
        "f3a0024758b148a081df0e2513b270c8",
        "3c2bf497896b4f3eab22d3bf6e239bee",
        "b46997f173374cf2910e0a2b56d68f1c",
        "8322cd8277164eb981f4be57f1438df0"
      ]
    }
  ]
}

That made a big difference!, now the json loads and i see most thumbnails and all descriptions, there are a few missing so that points me in the right direction

Thank you for the help so far - if its not too much to ask, can you point me in the right direction on why 3 and a 10% of another thumbnail show, where 5 or 6 would fit across the screen? i tested on 720 and 1080 and they look about the same

@mdenhardt Video thumbs should be Video thumbnails: 800x450 JPEG or PNG file

@mdenhardt You wrote: why 3 and a 10% of another thumbnail show, where 5 or 6 would fit across the screen?
The category row displays whether you have 3 or more across the screen in the row!
The correct size of the thumbnails 800X450 matters for resolution and loading times and they type of image format used such as a high resolution jpeg graphic or a PNG file!
Note if 10% show it can be an internet or wifi problem with your device or the location your video images are hosted and how fast they are accessed and the bandwidth!

@ferdiworks i didnt want to hijack my own thread since the original issue is fixed, My thumbnails are most likely 1080, - i've yet to resize, but its not a bandwidth thing, it really looks like the real estate allowed for videos is smaller than the TV. When i scroll, 3 more show, and the cut off one moves left, and i see it fully

@mdenhardt If that is the TV screen you are showing, then that may be that your device needs to be 1) Updated = in settings on Device Update software.  2) Reset the settings for your TV and Screen size.
Next, it's normal for a set of videos to show on the row and line and to have to scroll across to left or right!
The only other thing to affect the videos, are the size of videos used such as 1920 X 1080 and image size of thumbs 800 X 450


Move messages and intents strings to constant files

From @ejadib on May 20, 2016 12:30
Copied from original issue: dtzar/AzureBot#31

This would be good if we want to prioritize localization in the future.


KeyShared fails to partition correctly when SequenceId is not set

Is it expected behavior, that KeyShared fails to partition correctly when SequenceId is not set?

Hi, no this is not expected. Here are the key-related integration tests, feel free to add a PR with a failing test.

Is it ok if I just give a C# Example?

C# example won't run integration test after you submit it :(

nvm, It was bad data in a test.


[Program]: Write a PHP program to find the eigenvectors of a matrix

Description
Write a PHP program to find the eigenvectors of a matrix
The eigenvalues and eigenvectors of a linear transformation are the values and vectors that determine the transformation. The eigenvectors of a matrix A are the vectors v for which the matrix equation Av = λv has a non-trivial solution.
Input  :
1 2 3
4 5 6
7 8 9

Output :
[[-0.23197068724628608, -0.7858302387246789, 0.4082482904638631],
 [-0.5253220933012334, -0.08675134095039447, -0.8164965809277261],
 [-0.8186734993561807, 0.6123275568238899, 0.4082482904638631]]

How to contribute

Save the solution in program/program/find-the-eigenvectors-of-a-matrix/program/find_the_eigenvectors_of_a_matrix.php file

!assign


Headless hardware controller accesable over the network

This could be "pigglet" binary, that is compiled without any UI.
It will need a network method to interact with the UI (piggui).
Piggui, will need to have a selector to interact with the local hardware, or connect to a pigglet on remote hardware, with the network connections and security in place.
Pigglet will need to be able to be started with some credentials or similar, that piggui uses to authenticate to it.
Maybe piggui can detect Pis on the local network (using nmap, or mDNS?) and then detect if it has a pigglet service running on it to connect to.

Investigate iroh as a possible way to make easy connections between GUI and Pi with GPIO Hardware
https://iroh.computer/docs/layers/networking

In order to complete this, we will need:

[ ] https://github.com/andrewdavidmackenzie/pigg/issues/221
[ ] https://github.com/andrewdavidmackenzie/pigg/issues/222

https://github.com/andrewdavidmackenzie/pigg/pull/214/ makes substantial progress on this for iroh-net connecting.
Things remaining to be done:

[ ] Finish capturing updates to input levels in network_subscription.rs
[ ] Simplify data required in GUI down to node id and optional relay.
[ ] Allow piglet to be started as a system service - https://github.com/andrewdavidmackenzie/pigg/issues/224
[ ] UI additions https://github.com/andrewdavidmackenzie/pigg/issues/222 and https://github.com/andrewdavidmackenzie/pigg/issues/221
[ ] Wire up the UI elements and create hardware_subscription or network_subscription according to features and state ot networking
[ ] discovery of Pis on local net https://github.com/andrewdavidmackenzie/pigg/issues/223

We have all the bits now, we just need the dialog, connect things up, handle some error cases, maybe tweak the display of status... That will be enough work, so I delayed discovery issue to a later release.
@sundaram123krishnan

With https://github.com/andrewdavidmackenzie/pigg/pull/260 merged this is largely complete and working
We have added a number of other polishing issues, but it's basically done - so closing this! Yeh!


feat: add github links to package

This is so sites like npmjs.com can link to the github repository directly rather than go to the docs site and then click on the github link

Thanks again!

You're welcome ;)


I think the --update flag is missing in Spin template install instructions

Page here: https://developer.fermyon.com/spin/quickstart

The command to install templates is this:
$ spin templates install --git https://github.com/fermyon/spin

That is fine for a first-time install, but if you are walking through on an upgrade, it will not update the templates. It seems harmless for new installs, and desirable for upgrades, to just have the --update flag on the command:
$ spin templates install --git https://github.com/fermyon/spin --update

Wrong tab, wrong repo. 🤦


Update to Swift 4.2

Ticket: https://github.com/jflinter/Dwifft/issues/90
I've updated all target to support Xcode 10 & Swift 4.2

@leedsalex do you mind updating osx_image to xcode10 in .travis.yml? I want to see if this successfully builds on that VM.

@jflinter made the change


[azservicebus] Update some of the areas where we mention the DefaultAzureCredential

DefaultAzureCredential is great for getting started but, ultimately, users are expected to look at other more specific credentials. I've added in some text to the spots in our examples (and migration guide) that mention it, with a pointer to the docs so they can figure out what the right credential type is.
Fixes #21504

/azp run go - azservicebus


v2.0.0 (pre-release) Error on connection

Hey,
whenever i launch Strive with the pre-release running it immediately closes the gg-struggle window, run through a elevated powershell i get this result:

Went ahead and made sure every part that was mentioned was installed correctly but could very well be just a "me doing it wrong" thing, just making sure its not something that actually a problem and sneaks into the installer release.
Tried reinstalling everything, making sure it has read/write access to everything, is unblocked, no old certs from the previous versions remain.

I am having the exact same issue right now

Thanks for bringing this up. Looks like its rejecting self signed certs for some reason

Yah this a bug

You can fix this by changing start.ps1 to:
$ScriptBlock = {
	$Env:NODE_TLS_REJECT_UNAUTHORIZED='0'
	node .
}
Invoke-Command -ScriptBlock $ScriptBlock

Fixed in #20. was due to the wrong dns cool to lookup() and not resolve4()


No Results Written to uid_smiles_sdfname.csv After Running Inference on Custom Complexes

After following the instructions provided in the README to run inference on custom complexes, I noticed that the uid_smiles_sdfname.csv file was created, but no results were written into it.
I suspect the issue may be related to an error encountered during the execution of post_optim_mol at line 371 in fabind_inference.py. To further investigate the problem, I removed the try block surrounding this part of the code. This action led to the generation of the following error message:

Traceback (most recent call last):
File "fabind_inference.py", line 382, in
post_optim_mol(args, accelerator, data, com_coord_pred, com_coord_pred_per_sample_list, com_coord_per_sample_list, compound_batch, LAS_tmp=LAS_tmp, rigid=args.rigid)
File "fabind_inference.py", line 288, in post_optim_mol
com_coord_i = data[i]['compound'].rdkit_coords
File "/home/miniconda3/envs/fabind/lib/python3.8/site-packages/torch_geometric/data/batch.py", line 177, in getitem
return self.get_example(idx)  # type: ignore
File "/home/miniconda3/envs/fabind/lib/python3.8/site-packages/torch_geometric/data/batch.py", line 124, in get_example
data = separate(
File "/home/miniconda3/envs/fabind/lib/python3.8/site-packages/torch_geometric/data/separate.py", line 35, in separate
attrs = slice_dict[key].keys()
KeyError: 'complex'

It seems the error might be preventing the successful writing of results to the uid_smiles_sdfname.csv file. Any assistance in resolving this issue and enabling the proper output to the file would be greatly appreciated.

Hi, I suspect there is something wrong before this line of code. Have you checked the log for preprocessing molecules and proteins? Maybe you could retry the preprocessing steps and save the pt files in a new folder.

I met the same problem. Try pip install torch_geometric==2.4.0. It works for me. Good luck!

@EBGU Thank you for your valuable suggestion!
The issue was resolved by downgrading the version of torch_geometric from 2.5.0.
Your input is greatly appreciated!


Maximum number of expressions in a list exceeded, expected at most 16,384

I am importing a sheet with ~50k records into snowflake and get the following error.
[2020-12-23 08:07:01,419] {bash_operator.py:128} INFO - snowflake.connector.errors.ProgrammingError: 001795 (42601): SQL compilation error: error line 3 at position 5 [2020-12-23 08:07:01,419] {bash_operator.py:128} INFO - maximum number of expressions in a list exceeded, expected at most 16,384, got 43,835
Relevant issue is discussed here

@johnmastro Please assign this issue to me.

@johnmastro Please assign this issue to me.


channel: fixed TimeSeries.from_dataset() not lazy loading data

The method TimeSeries.from_dataset() automatically loaded the data and timestamps from an HDF5 file upon creation of a TimeSeries instance. This is now avoided by creating the TimeSeries instance using the h5py.Dataset.fields() method of data and timestamps.
Just to add more information, how I realized this:
from lumicks import pylake as lk

filepath = "./data/Lakeview Showcase Data-20220616T152657Z-001/FD Curve_forw_DNA.h5"
file = lk.File(filepath)

a = file.h5["Distance"]["Distance 1"]["Value"]
b = file.h5["Distance"]["Distance 1"].fields("Value")

type(a), type(b)

The output of this is (numpy.ndarray, h5py._hl.dataset.FieldsWrapper), so a is a numpy array directly loaded into memory, whereas b is a FieldsWrapper, enabling the lazy loading.

I bumped the required h5py version to >=3.4, <4 and also changed the TimeSeries.__len__() method to use the uncached source data instead of using the cached data property.


docs(readme): enhance the quality of the Chinese translation

Description
Enhance the quality of the Chinese README.
Changes

Complete the translation of the untranslated sections.
Correct inaccuracies in existing translations.
Revise the language to sound more natural and idiomatic.
Adjust punctuation and paragraph structure to align with Chinese typography standards.

Related Issue(s)

Screenshots

Checklist

[x] I've read the CONTRIBUTING guidelines.

ty!


Missing steps for "space fact" tutorial

You need to manually create the "alexa-cookbook.js" file. At least I did. And replace the contents of "package.json" from the git repo.

that file is no longer part of the sample, so you should be good to go.  The package json contents are current.


Removing existing options in favor of the renderer

We have the opportunity to remove:

highlight
langPrefix
headerPrefix
heading IDs

In favor of the new renderer.
The downside to this (at least for 3 of them): lack of backward compatibility, and less convenience for users used to marked. While I did merge the renderer, I'm tentatively reimplementing a few of these options. I think the removal of these features should be discussed in another issue because it is a big decision.
cc @lepture

how to give blockquote regular expression like slack?


implementing GitHub actions to build and push the mentorHub-person-api image to mentor hub repo in was.

I think you have confused the workflow - please do not Fork these repo's, but rather create a branch in the repo and PR from there. Please move your code into a branch and follow the workflow outlined in the mentorHub README


Make event's title fields UpperCamelCase and distinguish /sync ones

Signed-off-by: Jonas Platte<EMAIL_ADDRESS>

ah, the other thing is signoff: can we get a comment here with something like the following please?
Signed-off-by: Your Name<EMAIL_ADDRESS>

Signoff added, squashed.


CLOUD-645 add docker autobuild job

https://jira.percona.com/browse/CLOUD-645

Test name
Status

api-tests
passed

Test name
Status

api-tests
passed

Test name
Status

api-tests
passed

Test name
Status

api-tests
passed

Test name
Status

api-tests
passed

Test name
Status

api-tests
passed

This was done under thicket https://perconadev.atlassian.net/browse/CLOUD-720 so closing.


Adds ExperimentalCertificateSigningRequestControllers to CSR e2e tests.

Currently e2e test periodics are failing because we don't have the CSR e2e tests gated on feature gates.
/assign @jahrlin
NONE

/test pull-cert-manager-master-e2e-v1-24-feature-gates-disabled

Thanks! I'll unhold when the CI builds pass
/hold
/lgtm
/approve

/hold cancel


Looks like there is a limit for infinite list

I had played with the example and found out, that Chrome does not render more than circa 1,677,708 rows for 20px row, 1,118,472 rows for 30px row and 335,541 rows for row 100px high.


Not able to administer my SGE

Environment:

AWS ParallelCluster 2.3.1
OS: ubuntu 14
Scheduler: SGE
Master instance type: C4
Compute instance type: C4

Bug description and how to reproduce:
I am trying to run this command to enable my queue
qmod -e all.q@*

And when I change to sgeadmin user, I still have permission issues
(base) ubuntu@ip-xxxxx:~$ sudo su sgeadmin
sgeadmin@ip-xxxx:/home/ubuntu$ qmod -e all.q@*
ubuntu - you have no permission to modify queue<EMAIL_ADDRESS>
I tried to add ubuntu as a manager
sgeadmin@ip-xxxx:/home/ubuntu$ qconf -am ubuntu
denied: client (ip-xxx.us-west-2.compute.internal/qconf/1) uses old GDI version 6.2u5 while qmaster uses newer version 8.1.9
denied: "ubuntu" must be manager for this operation

My all.q seems to be not enabled and I am stuck not being able to edit my SGE cluster created by ParallelCLuster

Try as root sudo su

@sean-smith  but it is still throwing : denied: ubuntu must be manager for this operation

Hi @radaniba I was able to get this working as root. I only needed to set SGE_ROOT.
ubuntu@ip-172-31-38-29:~$ sudo su
root@ip-172-31-38-29:/home/ubuntu# export SGE_ROOT=/opt/sge
root@ip-172-31-38-29:/home/ubuntu# /opt/sge/bin/lx-amd64/qmod -e all.q@*
Queue instance<EMAIL_ADDRESS>is already in the specified state: enabled
root@ip-172-31-38-29:/home/ubuntu#

Can I ask why you’re using Ubuntu1404 and not Ubuntu1604?
On Jun 27, 2019, at 12:35 PM, Sean Smith <notifications<EMAIL_ADDRESS>wrote:
Hi @radanibahttps://github.com/radaniba I was able to get this working as root. I only needed to set SGE_ROOT.
ubuntu@ip-172-31-38-29:~$ sudo su
root@ip-172-31-38-29:/home/ubuntu# export SGE_ROOT=/opt/sge
root@ip-172-31-38-29:/home/ubuntu# /opt/sge/bin/lx-amd64/qmod -e all.q@*
Queue instance "all.q<EMAIL_ADDRESS>is already in the specified state: enabled
root@ip-172-31-38-29:/home/ubuntu#
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/aws/aws-parallelcluster/issues/1159?email_source=notifications&email_token=ABKJ77CAWQLDZIAKPLZMSXLP4SJUZA5CNFSM4H3LJ7BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYWWNZQ#issuecomment-506291942, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABKJ77HST5QSJUK7BCJP7TLP4SJUZANCNFSM4H3LJ7BA.

Thank you that solved my issue after exporting SGE_ROOT, thank you so much and yes I am using ubuntu 14


E960: not an open channel

processing function 23_Gnugo[9]..gnugo#Init[21]..gnugo#runner#Redraw had error.
at 1 line:
E960: not an open channel

This might be difficult to debug. Could you give me some more information about the problem?

What is your Vim version?
Do you have the gnugo program installed on your computer?
What is the command that you used when you got the error? It seems like it happens when you start a new game with :Gnugo. Is that right?
Does this happen all the time, or only sometimes?


Fixes submit button focus

Fixes #481

Hey @metsjeesus, have you seen discussion at https://github.com/thelounge/lounge/pull/483? It's not the exact same line so I don't want to close it as a duplicate right away, but it seems to me that any consequences affecting #483 will affect this PR.


Add mechanism to execute setup steps before the first check run

Motivation
We need a way to run things after the check_id is set by the Agent, such as submitting configuration metadata

That works, but about having a check_initializations that we call once, with a flag once it's called?

@therve The thing is there could be multiple such functions

@therve The thing is there could be multiple such functions

Sure, just call them from the check_initialization method?

@therve That means users/we would have to override that method, call super, then finally add the real logic. The current way allows us to have appropriately named functions that do exactly one thing and just append it to check_initializations.


Fixing frequency penalty

Thank you so much for the work you are doing, this is my little contribution to this great thing you have built. I hope it is useful and helpful, please don't hesitate to discuss any matters that are not clear!
I am basing my implementation of frequency penalty on OpenAI's implementation: https://platform.openai.com/docs/guides/text-generation/parameter-details
The problem I see with TGI's current implementation is that is not taking into account the frequency of tokens which have already been sampled in the current generation stream. Also, the scaling is of the adjusted token logits is done differently for positive and negative logits. While in OpenAI's implementation token frequency is taking into account and the scaling is always done with a subtraction (if penalty is positive) or add operation (if penalty is negative).
This leads to corrupt generations as I mentioned in issue #1810 . Moreover, after my tests, other issues are also gone like the one about some request's with penalty_frequency = 1.0 overruling other requests (with frequency_penalty = 0.0) in the same batch and therefore corrupting all generations in the batch. Basically, padding does not affect this implementation  so I believe this score *= input_ids.ne(0) is not needed anymore.

Frequency penalty
-1.0
0.0
1.0

Before my change
https://paste.mozilla.org/JxqGJkWY
https://paste.mozilla.org/hrztJ56h
https://paste.mozilla.org/pBSEH2zw

After my change
https://paste.mozilla.org/7gXCi7zo
https://paste.mozilla.org/ZR9rJ92g
https://paste.mozilla.org/gHaD2YnC

Hey I noticed the links to the generation examples were broken, so I have updated them!

Hey @drbh I saw you created a new branch off of this one, why is that?
Btw, I have rebased and fixed the styling! Could you guys maybe take a look and give me your feedback? @drbh @Narsil @OlivierDehaene
This is the commit with my changes 949b889
Thank you!

We create branches to run the CI because our secrets will not be available on forks (and we need them to run the integration tests unfortunately).
The rebase created a lot of bogus commits, any way you could remove them ? I'm happy to help with the rebase if you want.
Thanks a lot for the fix !

I took the liberty of doing the rebase so your fix could be included in the upcoming release.

Thank you so much @Narsil ! Okay now I understand why the fork happened, keep up the great work you guys are doing with TGI!
(and sorry for the mess I created with my rebase :/ )

No worries :) Cheers


Run Corretto only on specific PR branches

hmmm..... should be running on this PR

Filtering seems broken based on regex, so easier to uncomment for specific PR builds


Fix documentation issue

When render_wizard is passed an object, it will attempt to save it.
Therefore, if one calls update_attributes on the object before render_wizard, two saves will be performed, as update_attributes also saves the object.
One should call assign_attributes to the object before passing it to render_wizard instead, as assign_attributes does not save the object.
I was led astray by the documentation and discovered the double save issue when my callback were being fired twice with deleterious effects!

I'm a bit uncomfortable with this. Even though the API has been stable for years, it's confusing that we're relying on internal behavior of wicked. This was one of the oldest issues in wicked https://github.com/schneems/wicked/pull/11
If you want to add a note to the docs mentioning that we call save and how to avoid a double save, that would be fine. I feel uncomfortable switching to assign_attributes

I see now that it has been brought up before, I'm sorry I did not look through all the closed issues earlier.
I'll update the documentation and open a new pull request.

sorry I did not look through all the closed issues earlier.

No worries. It took me a few minutes to find and I knew it existed. Thanks for your interest and for the PR even if it didn't get merged :heart:
Would love a new PR to update docs to mention this caveat

I've created the new pull request: https://github.com/schneems/wicked/pull/172
Thanks @schneems.


Ellipsis after post excerpt

More of a feature request than an issue. I noticed with themes that use post excerpts on the front page are ended abruptly without any use of punctuation. I suggest an option to place an ellipsis [...] before the closing  tag to remind readers that there is a continuance.
If there is a feasible hack for this, I'd definitely like to know. Thanks!

@nickfoerster Yes, the simple hack is {{excerpt}}[..]. Just add the [...] to your theme after the excerpt helper.

You can see this in action on the Casper theme, where there's a "read more" link rather than an ellipses. But either works! https://github.com/TryGhost/Casper/blob/master/partials/loop.hbs#L13 :)

Wouldn't it be nice if the {{excerpt}} helper added the ... only if truncation has occurred?


⚠ Bofrost.at has degraded performance

In 395c29a, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2071 ms

Resolved: Bofrost.at performance has improved in 960dbc2.


Can't run pascal example

when trying to run fcn/examples/pascal/train_fcn32s.py, the program fails at the download_vgg16_chainermodel() function, probably because the program gdown is not found. I cannot find any information about gdown, how can I get it? Thanks!

gdown is defined in requirements.txt.

Ah ofcourse.... got it, thanks!


Add missing styles for collision changed dropdown menu in RTL

Fixes issue noticed in QA with RTL dropdown menu on small screens.

looks better to me, but if screen is too small dropdown goes out left window just the same

@designerno1 updated to fix that tiny case.  @abdullahsalem can you take a look at this one too?

Great! the issue has been fixed!
Thanks a lot @kball !


Application template menubar accessibility issues

https://cenw-wscoe.github.io/sgdc-cdts/GCWeb/appTop/apptop_all-en.html
<ul class="list-inline menu" role="menubar">
JAWS screen reader issue with the menubar

JAWS screen reader is not reading the name of the parent menuitem with the submenus e.g. "Second section"
No issues with NVDA screen reader though, which does read "Second section"

AXE founds issues with the menubar

AXE is finding issues with the parent/child relationships with the list elements

Suggested Solution

Should ideally follow the WAI-ARIA Authoring Practices for Navigation Menubar Example
See: https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html

Hello, there was a new deployment done and the code is following the W3C guidelines. Can you please test again?

I tested with JAWS 2020 on Chrome and the reader correctly reads the menubar now.
I'm still getting AXE issues though
Required ARIA children role not present: group, menuitemradio, menuitem, menuitemcheckbox
Required ARIA parents role not present: menu, menubar, group
List item does not have a ,  parent element without a role, or a role="list"
Adding role="presentation" to the  in the menubar fixes these issues for me.


Add more icons

Pull current open requests from the following repos:

wyze/seti-icons
jesseweed/seti-ui

Go/golang, please

Handlebars &/ Mustache, please.

v1.0.0 shipped! :tada:


How would I load a database direct from a url pointing to a JSON file?

I'd like to load a JSON file directly from a URL into the database.
Is this possible?
thanks

@dukedougal is the JSON file a LokiJS dump or a plain JSON? If it's a plain JSON then I assume you have an array of object you want to load into LokiJS, simply load the file then iterate the array like:
jsonArray.forEach(o => myColl.insert(o));

OK thanks.


Work around for property 'Symbol(Symbol.toPrimitive)' in Proxy handler

When I am trying to migrate to higher version nodeJS, e.g. 6.9.1. I found below error coming from Proxy handler, which is caused by Symbol property. So I add another workaround to skip Symbol property during Proxy's get handler
TypeError: '[object Object]' returned for property 'Symbol(Symbol.toPrimitive)' of object '[object Object]' is not a function
    at exports.format (util.js:108:18)
    at Console.log (console.js:43:37)
    at Database.<anonymous> (C:\git\test\app2.js:33:13)
    at emitNone (events.js:86:13)
    at Database.emit (events.js:185:7)
    at C:\git\test\node_modules\mongojs\lib\database.js:35:14
    at connectCallback (C:\git\test\node_modules\mongodb\lib\mongo_client.js:426:5)
    at C:\git\test\node_modules\mongodb\lib\mongo_client.js:364:13
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Fix parsing database name from native driver to pass all test, close this one


fix: titles and narrative text need at least one english word

Summary
Adds a check that requires narrative text and titles to have at least one English words. Prevents office symbols like ASDF-JQL and similar items from being flagged as titles.
Testing
from unstructured.partition.text_type import is_possible_narrative_text, is_possible_title

is_possible_title("PARROT BEAK") # should be True
is_possible_title("ASDF-JQL") # should be False

is_possible_narrative_text("The parrot is squawking!") # should be True
is_possible_narrative_text("ASDJ JQL; QWER. TUSP AHSAD.") # should be False

Yeah that definitely makes sense. We can always adjust the logic if we see that kind of thing popping up a lot.


docs(modal): update modal add-ons

Coverage increased (+0.0009%) to 99.407% when pulling 0783abd31fe853c466792a7c3ec05c95de0afb24 on modal-docs into 4afd5ccbd87b87465b622117af7d619a1c555443 on master.

:tada: This PR is included in version 3.1.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add startDelay on each element of loop

When animating elements of an array using a loop, startDelay works only for the first element. How can it work for each element of the loop?
<Typed
                            strings={words}
                            typeSpeed={100}
                            backSpeed={60}
                            backDelay={500}
                            startDelay={300}
                            loop >
                            <span style={{ color: "red", fontSize: "3.5rem" }} />
                        </Typed>

@nosyminotaur I checked and this is the behavior of underlying lib types.js https://github.com/mattboldt/typed.js/ so need to report it there.


Android - The error message "Hmm... it's not here" appeared twice

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.62-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause - Internal Team
Issue found when executing PR https://github.com/Expensify/App/pull/39788
Action Performed:

Open Expensify app
Open that link "staging.new.expensify.com/a/asd" from other app (Whatsapp/Slack)
Press back
Verify LHN is shown instead of report screen

Expected Result:
Error should be displayed only once
Actual Result:
The error message "Hmm... it's not here" appeared twice
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/2a01060f-5043-4a55-a0ef-0e8646dc9e54
View all open jobs on GitHub

@marcaaron  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

We think that this bug might be related to #vip-vsp

Given that valid deep links work as expected, I'm demoting this from a blocker.

I'm gonna close this as it is not really a "normal" action for a user to take and not worth prioritizing right now.


Handle exceptions in Call method

Codecov Report

Merging #9 (2cc471d) into main (aeec2f8) will increase coverage by 0.11%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   78.30%   78.42%   +0.11%
==========================================
  Files          25       25
  Lines         733      723      -10
  Branches       57       57
==========================================
- Hits          574      567       -7
+ Misses        147      143       -4
- Partials       12       13       +1

Impacted Files
Coverage Δ

src/DtmCommon/Imp/DbUtils.cs
95.23% <80.00%> (+15.23%)
:arrow_up:

src/DtmCommon/Barrier/BranchBarrier.cs
82.41% <85.71%> (-2.12%)
:arrow_down:

Continue to review full report at Codecov.

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


Bug: Incorrect toISOString(true) in node.js

I am in +8 time zone.
I am using moment version 2.20.1 and node 9.4.0.
Local time is 2018-03-09 15:17:28 now.
Actual output:
moment().toISOString(true); //2018-03-09T07:17:28.678+08:00

Expected output:
moment().toISOString(true); //2018-03-09T15:17:28.678+08:00

This sounds like a duplicate of issue #4390.
Can you check that this is fixed in 2.21.0.

My fault, thanks yes it is perfectly fixed after the update, thanks.


Bump Dagster helm chart to newest version

Does what it says on the tin. Changes include minor usability improvements for the Dagit dashboard.
Generally, we want to try and bump the Helm chart version in lockstep with bumping the Python dependency version.

Should we bump the python versions as well? I see we are on 0.11.2 in the pyproject.toml

Should we bump the python versions as well? I see we are on 0.11.2 in the pyproject.toml

The version in the toml is a minimum version - we're currently on 0.11.6 in poetry.lock. I could definitely be convinced that we should pin the version directly in the toml rather than depend on the lock file, though.

Yeah, I see no reason not to pin; I think we want to keep the helm + toml in lockstep rather than let them potentially drift.

It is still a manual process to bump the dependency version, since we've checked in poetry.lock. This is mostly a matter of what we think is the most clear.

@ThePletch , right, why not change dagster = "^0.11.2"' to dagster = "0.11.6" in the pyproject.toml as part of this pr?


Can i use setInterval inside useWorklet?

Hello! I want to create a timer and I use useState and because of this the js thread frame rate drops to 55 and does not update to 60 fps. So I want to recreate this using worklets. Is it possible?
Current custom hook:
export const useCountdown = (deadline: string) => {
	const countDownDate = useMemo(() => Date.parse(deadline), [deadline]);
	const [countDown, setCountDown] = useState(countDownDate - new Date().getTime());

	useEffect(() => {
		const interval = setInterval(() => {
			setCountDown(countDownDate - new Date().getTime());
		}, 1000);

		return () => clearInterval(interval);
	}, [countDownDate]);

	return getReturnValues(countDown);
};

This would neither be working well or be the recommended solution. What you're trying to do here seems like to move scheduling over to a separate thread and then move back into the JS thread 60 times per second to update state - I don't think this would help performance unfortunately.


Clarify appropriate use cases and limitations

From Jeremy Lawson,
Many users are going to be primarily interested in the report to help them understand the impact of the scenarios for asset prices. But as we have discussed, because there is no baseline derived from a market view of the future, and the scenarios are so stylised, the applicability of the tool to portfolio management is going to be quite limited. Being clear about the appropriate use cases and limitations of the tool are going to be critical to avoid it being misused.

@benkirl can you make sure that the text going in the intro has something on appropriate use

Added limitations and appropriate use cases


Use AsyncAppender for logback

Changes Introduced
Using the AsyncAppender for logback should help in environments where TRACE logging is enabled, as the logs can be a bit noisy.
Applicable linked issues
N/A
Checklist (check all that apply)

[x] This change maintains backwards compatibility
[ ] I have introduced tests for all new features and changes
[ ] I have added documentation covering all new features and changes
[x] This pull-request is ready for review

Codecov Report

Merging #144 (4ccee6a) into main (833a507) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #144   +/-   ##
=======================================
  Coverage   89.06%   89.06%
=======================================
  Files          86       86
  Lines        2487     2487
  Branches       67       67
=======================================
  Hits         2215     2215
  Misses        272      272

Continue to review full report at Codecov.

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


Add linter rule to discourage spreading Record<T> with other properties

Implementation for this new feature https://github.com/microsoft/typespec/issues/2785
This linter rule would be inline with current bad-record which complains if you have properties and do model is Rcord<T>

est: 5

This is already covered by bad-record


SDL_INF value could be updated

Currently SDL_INF is used to deal with cases where there are infinities. It is defined as follows.
https://github.com/SegmentLinking/TrackLooper/blob/f1b203122dd537cdd4cc3ddd5b1c852d454342f9/SDL/Constants.h#L152-L153
I think it would be a little more elegant to define it like this
#include <limits>
ALPAKA_STATIC_ACC_MEM_GLOBAL const float SDL_INF = std::numeric_limits<float>::infinity();

But the tricky part is that data files have the other value hardcoded, and those files were probably generated by some other code with the same value hardcoded, so it's probably not worth it fixing it here. If someone knows if that's the case they should label this issue as wontfix.

If you want to take a stab at this, the SDL_INF constant in LSTGeometry is now stored here: https://github.com/SegmentLinking/LSTGeometry/blob/master/Constants.py
I plan to make a PR moving to a binary file format sometime in the near future though, so we have to keep that in mind.


Add Config Parameter to Configure HTML Parser for _scrap Method

The _scrap method currently uses lxml as the default parser when processing HTML content. However, it has been observed that lxml causes the body content to lose some information. In contrast, using html.parser resolves the issue and retrieves the full content.
def _scrap(self, url: str, html: str, word_count_threshold: int = MIN_WORD_THRESHOLD, css_selector: str = None, **kwargs) -> Dict[str, Any]:
    success = True
    if not html:
        return None
    soup = BeautifulSoup(html, 'lxml')
    body = soup.body

This issue becomes evident when scraping websites like [Sina Finance], where the body tag only contains partial content when parsed with lxml.
Expected Behavior:
The method should allow configuring the parser (e.g., lxml or html.parser) via a parameter to ensure flexibility and full content retrieval based on the website's structure.
Proposed Solution:

Add a parameter (e.g., parser: str = 'lxml') to the CrawlerRunConfig to let users choose the desired parser.
Pass the parser parameter to the BeautifulSoup constructor.
Update the method documentation to reflect this change.

This enhancement would allow better adaptability and prevent loss of critical content.

@pleomax0730 Thanks for the suggestion. I completely agree. One thing I like about lxml is that it is much faster than the HTML parser, especially when crawling long documents. Speed and efficiency are my top priorities for Crawl4ai. Even if something offers a 10-millisecond improvement, I choose that option. And in the case of this parser, the difference is significant. However I completely agree with you; we must have an option. Already modified the library and In the next version 0.4.24, you will have parser_type that you can set. You can pass it to html.parser, or you can pass nothing; the default will be lxml. Thank you so much for the suggestion.


The "square_distances" argument of TSNE function used in calculate_embedding is deprecated

According to this issue: https://github.com/scikit-learn/scikit-learn/issues/12401 , the square_distance argument of TSNE function used in calculate_embedding is deprecated since 0.28
For scikit-learn versions>=0.28 gets error:
File [c:\Users\user\.pyenv-win-venv\envs\psd1\lib\site-packages\litstudy\nlp.py:410](file:///C:/Users/user/.pyenv-win-venv/envs/psd1/lib/site-packages/litstudy/nlp.py:410), in calculate_embedding(corpus, rank, svd_dims, perplexity, seed)
    407 else:
    408     components = tfidf
--> 410 model = TSNE(
    411     rank, metric="cosine", square_distances=True, perplexity=perplexity, random_state=seed
    412 )
    413 return model.fit_transform(components)

TypeError: __init__() got an unexpected keyword argument 'square_distances'

How to reproduce an error:
Run the example notebook of the documentation by running the cell that contains:
litstudy.plot_embedding(corpus, topic_model);
Suggested solution: remove the square_distance=True argument
Willing to commit a change to the main branch: Yes

Thanks for using litstudy and many thanks for creating this issue!
Indeed, it seems that the TSNE function has changed.

Willing to commit a change to the main branch: Yes

This would be highly appreciated. We would be willing to accept your PR. Thanks for looking into this

Hello!
I am unable to create a new branch. How can I proceed?

Click the "fork" button on the main page. This will create a copy (a "fork") of the repository under you username. You can then make a new branch for this fork. When you're done, go back to the litstudy repository to create a pull request.
Here is some useful reading:

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork

We are looking forward to your changes!

Thank you!, I have followed the sources you pointed and I think I have successfully created a pull request.

Thanks for you contribution!


Problems with highlighting and text deletion

I have just started using  and am very grateful for the incremental reading add on (v 4.10.3) on ANKI (Version 2.1.20 [47a1bf8b]
Python 3.8.0 Qt 5.14.1 PyQt 5.14.1) for Windows 10 but find that I can't use either the highlight-"h" feature or the delete content-"z" feature once I have selected a text. I open up my IR deck, see my IR content (a Wikipedia article), then select a section of text and press "h" and ... nothing. The same when I press "z". I have checked the highlighting colors option and the highlight should turn yellow background but nothing changes. The undo-"u" and extract-"x" shortcuts do what they are supposed to do. Is there something I'm missing? Thank you :)

I also have the same problem with highlighting. The "delete content" feature seems to work fine. My system details
Version 2.1.26 (arch-linux-2.1.26-1)
Python 3.8.6 Qt 5.15.1 PyQt 5.15.1
I am a beginner to this process of coding/debugging. If anyone could guide me through this process, I would be glad to try and resolve this issue as well. Thank you in advance.


Features/jackson codec ng

Add some interns to save memory.

NetflixOSS » eureka » eureka-pull-requests #400 SUCCESS
This pull request looks good


[FLINK-8237] [BucketingSink] Better error message added

Added better error message as mentioned in issue description and comments.

Thanks for the PR @pavel-shvetsov-git!
I've left a suggestion to improve the error message.
Afterwards the PR should be good to merge.

Message has been improved as suggested.

Thanks for the update @pavel-shvetsov-git.
+1 to merge

merging


The pagination component lists explicitly all the pages

The pagination component lists explicitly all the pages this mean that you can easily get hundreds pages making the component not usable.
The current implementation should list only the previous, next and first, last page (ie when you are looking at the 4th page you should have:  << < 4 > >>) or eventually   using elapsing 1 .... 3   4  5 .... last
I prefer the first form as it is not possible for angular to know the REST url for the 2nd page looking only to the information provided in the response of the call for the 4h page. To do that the angular client needs to hardcode some pagination logic

Actually the maximum number of pages to display for the pagination component is not setted, but we could set a default value.
However both the implementation you've proposed can be obtain by changing the pagination component options.
I think It's only to decide which one should be the better solution.

reviewed today: the current behavior has been improved as only a limited number of pages are listed. The current implementation show an "architectural" issue as angular should be NOT able to create a link to a page other than for the current, previous, next, first & last using the HAL links. This mean that the angular component has hardcoded in someway the URL structure used for the pagination. That said, in terms of UX it is for sure better to give a "bit more range" around the current page than just the ones visible via HAL links.
If we accept the "architectural issue" the current implementation could be improved to use a sliding range of page so that when you are viewing the page 10 the following will be shown (current page is in the middle of the range)
1 ... 5 6 7 8 9 10 11 12 13 14 ... last


Add workaround for grub bug in Debian 10.4

Using the update-grub command in chroot causes performance problems in Debian Buster. The update takes several hours instead of the usual few seconds. Mounting "/run/udev" into the chroot can workaround this issue and speeds up the process significantly. Further details can be found here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925146

I just recognized that there is a very similar pull request (#23) from @danko - sorry for that. However, instead of mounting the entire /run directory, I highly recommend to mount only the subdirectory "udev", since many processes (16) of the rescue system depend on other /run subdirectories.

LGTM. Thanks for your contribution! :+1:


Saving file

Does this occur consistently? Yes
Repro steps:

Edit (csv) file on storage account.
Then try to save it.

Action: writeFile
Error type: 409
Error Message: The blob type is invalid for this operation.
RequestId:183c22c4-c01e-0070-544e-a9f8a0000000
Time:2020-10-23T15:10:56.4195602Z
Version: 0.10.1
OS: win32
OS Release: 10.0.19041
Product: Visual Studio Code
Product Version: 1.50.1
Language: en

Call Stack
new RestError extension.bundle.js:31:143520
extension.bundle.js:67:19841extension.bundle.js:67:19841
processTicksAndRejections task_queues.js:94:5

@FreVsAlpha That blob's type may be something other than a block blob which is the only type we support at this time. Was that csv file uploaded to your storage account from the VS Code extension?

Hi, no, it was uploaded via the storage explorer. But it's indeed of type Append Blob (it's a CSV that receives new lines from a Python script). I just wanted to remove some old lines directly via VS Code. Thanks for the feedback.

Thanks for filing. Please let us know if you run into any more problems


Users/sogangul/bicep update resource removal

Change
Feel free to remove this sample text

Thank you for your contribution !
This PR consists of the generalized Removal code

Type of Change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update (Wiki)

Checklist

[ ] I'm sure there are no other open Pull Requests for the same update/change
[ ] My corresponding pipelines / checks run clean and green without any errors or warnings
[ ] My code follows the style guidelines of this project
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (readme)
[ ] I did format my code

Merged into logic via branch users/alsehr/removalImprovement_export


[Event Request] Codeunit 12 Gen. Jnl.-Post Line - OnApplyVendLedgEntryOnBeforeUnrealizedVAT

We need a new event in Codeunit 12 "Gen. Jnl.-Post Line" named OnApplyVendLedgEntryOnBeforeUnrealizedVAT:
[IntegrationEvent(false, false)]
local procedure OnApplyVendLedgEntryOnBeforeUnrealizedVAT(VAR GenJournalLine: Record "Gen. Journal Line"; VAR CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; VAR VendorLedgerEntry: Record "Vendor Ledger Entry")
begin
end;
called from:
local procedure ApplyVendLedgEntry(var NewCVLedgEntryBuf: Record "CV Ledger Entry Buffer"; var DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; GenJnlLine: Record "Gen. Journal Line"; Vend: Record Vendor)
var
OldVendLedgEntry: Record "Vendor Ledger Entry";
OldCVLedgEntryBuf: Record "CV Ledger Entry Buffer";
NewVendLedgEntry: Record "Vendor Ledger Entry";
NewCVLedgEntryBuf2: Record "CV Ledger Entry Buffer";
TempOldVendLedgEntry: Record "Vendor Ledger Entry" temporary;
Completed: Boolean;
AppliedAmount: Decimal;
NewRemainingAmtBeforeAppln: Decimal;
ApplyingDate: Date;
PmtTolAmtToBeApplied: Decimal;
AllApplied: Boolean;
IsAmountToApplyCheckHandled: Boolean;
begin
OnBeforeApplyVendLedgEntry(NewCVLedgEntryBuf, DtldCVLedgEntryBuf, GenJnlLine, Vend, IsAmountToApplyCheckHandled);
if not IsAmountToApplyCheckHandled then
if NewCVLedgEntryBuf."Amount to Apply" = 0 then
exit;
AllApplied := true;
......
......
......
NewCVLedgEntryBuf."Applies-to ID" := '';
NewCVLedgEntryBuf."Amount to Apply" := 0;
if (NewVendLedgEntry."Document Type" = NewVendLedgEntry."Document Type"::Bill) or
(NewVendLedgEntry."Document Situation" <> 0)
then begin
FromClosedDoc :=
NewVendLedgEntry."Document Situation" in [NewVendLedgEntry."Document Situation"::"Closed Documents",
NewVendLedgEntry."Document Situation"::"Closed BG/PO"];
DocPost.UpdatePayableDoc(
NewVendLedgEntry, GenJnlLine, DocAmountLCY, AppliedAmountLCY2 + DeltaUnrealAmount + DeltaAmountLCY,
DocLock, CollDocAmountLCY);
end;
//INIT INSERT
OnApplyVendLedgEntryOnBeforeUnrealizedVAT(GenJnlLine, NewCVLedgEntryBuf, NewVendLedgEntry);
//END INSERT
if GLSetup."Unrealized VAT" or
(GLSetup."Prepayment Unrealized VAT" and NewCVLedgEntryBuf.Prepayment)
then
......
......
......

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


cannot export the onnx file

Hello Yung-Hui,
I try to use the same code to export the yolov8_pose.onnx file.
yolo export model=[yolov8s-pose.pt](http://yolov8s-pose.pt/) format=onnx device=0 \
          imgsz=640 \
          half=true \
          dynamic=true \
          simplify=true

But I have the error showing below:
Ultralytics YOLOv8.0.131 🚀 Python-3.8.12 torch-1.12.0a0+2c916ef CUDA:0 (NVIDIA GeForce RTX 3070, 8191MiB)
YOLOv8s-pose summary (fused): 187 layers, 11615724 parameters, 0 gradients, 30.2 GFLOPs
PyTorch: starting from yolov8s-pose.pt with input shape (1, 3, 640, 640) BCHW and output shape(s) (1, 56, 8400) (22.4 MB)
ONNX: starting export with onnx 1.10.1 opset 14...
ONNX: export failure ❌ 0.6s: "slow_conv2d_cpu" not implemented for 'Half'

Thank you for your help in digging out the problem, I have fixed it in README.md file.
I changed to the following commands to test first to ONNX and then to TensorRT Engine and it's fine.
  yolo export model=yolov8s-pose.pt format=onnx device=0 \
              imgsz=640 \
              dynamic=true \
              simplify=true

We can specify FP16 quantization at the "onnx > TensorRT" step.

Thanks a lot!


Rename resource attribute id

The application behind the API may be implemented using object attribute naming conventions and other considerations which may be in conflict with conventions of JSON API. Specific example can be found in #361, so I am not repeating it here.
If no solution to the general problem described in #361 can be attained for one reason or another, I would like to propose to at least change the name of the mandatory API resource attribute id to something else. The best candidate I can think of is identifier. It does not seem to compromise on anything: one word, no artificial prefixes, the meaning is exactly what is expected. I believe that 2 vs 10 characters is not a crucial argument for a format designed primarily for machines.
Less suitable options I can think of are key and handle.

response.data.identifier is a bit too verbose to me

I'm closing because this issue was opened to address possible conflicts, rather than the suitability of the key id. We can not prevent conflicts when reserving keys, and should always choose the most suitable key rather than one that is obscure in an attempt to avoid conflicts.

should always choose the most suitable key rather than one that is obscure

@dgeb I cannot agree more. However, IMHO, identifier cannot possibly be obscure or any less suitable than id because the latter is just an abbreviation of the former, i.e. they are semantically identical. The only "problem" which I see with identifier is that it is 400% longer than id.
@bintoro considered @id as a possible option. I think it is a great option becase, in addition to being visually distinctive,  @id is unlikely to clash with variable or DB column name, so it would be easy to distinguish internal id from external @id in documentation and in communication between humans. And it is mere 50% longer!
The same applies to @type, @links and @meta.


Pass TWINE_PASSWORD environ variable to tox

Codecov Report

Merging #27 (c1e3b8f) into master (0c1a0b7) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head c1e3b8f differs from pull request most recent head 6e93842. Consider uploading reports for the commit 6e93842 to get more accurate results

@@           Coverage Diff           @@
##           master      #27   +/-   ##
=======================================
  Coverage   79.81%   79.81%
=======================================
  Files           9        9
  Lines         213      213
  Branches       43       43
=======================================
  Hits          170      170
  Misses         26       26
  Partials       17       17

Flag
Coverage Δ

unittests
79.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


Windows build instructions

I've added instructions for building on Windows using MinGW / MSYS and Visual Studio.  Building with MSYS was straightforward. Compiling with VS was trickier and required adding #include to several source files. In my testing this did not break the build on Windows with MSYS or on Ubuntu.
Getting the project to link with VS required using the additional flags with CMake so that symbols are automatically exported as with gcc.
On my windows 7 system, the VS build has 22,000 warnings, but no errors.
Addresses #6

@bradleyjeck - nice and clean! thank you.

can you comment on the nature of the warnings? are they mostly repeats, or all over the place?

@samhatchett most (all?) of the warnings are
warning C4514:  unreferenced inline function has been removed

The following is from a Stack Overflow answer:
Warning C4514 is a notoriously useless one and is literally just crying out to be suppressed globally. It is a completely non-actionable item and describes an expected case when you're working with a library.
Warning C4711—a function has been selected for inline expansion—is another noisy warning you'll see. Of course, you'll only get this one when compiling with optimizations enabled, which is probably why you haven't seen it yet.
You can disable these warnings either by adding the suppressions to your project's properties in the VS IDE, or you can use pragma directives at the top of your code file (e.g., in your precompiled header):
#pragma warning(disable: 4514 4711)

I was actually working in this area today, and am in the middle of modifying the CMakeLists.txt to better deal with the volume of (mostly) useless messages.  I will likely commit and issue a PR soon.


fix(nodebuilder): fix parsing url for core.ip

Overview
Resolves https://github.com/celestiaorg/celestia-node/issues/2311

Seems to contain unrelated changes

Codecov Report

Merging #2313 (795cec9) into main (504ff93) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2313      +/-   ##
==========================================
- Coverage   50.61%   50.59%   -0.03%
==========================================
  Files         154      154
  Lines        9729     9729
==========================================
- Hits         4924     4922       -2
- Misses       4379     4381       +2
  Partials      426      426

see 4 files with indirect coverage changes


Can't access script methods of instanced scene

Operating system or device - Godot version:
Linux
latest git
Issue description:

I have a scene (a single button) with a script attached to its root:
dock.tscn:
[gd_scene load_steps=2 format=2]

[ext_resource path="res://addons/dock/dock.gd" type="Script" id=1]

[node name="Button" type="Button"]

margin_right = 12.0
margin_bottom = 20.0
rect_clip_content = false
mouse_filter = 0
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
text = "Test Button"
flat = false
script = ExtResource( 1 )

dock.gd:
extends Button

func _ready():
	pass

func test():
	print("test")

The methods of the instanced script aren't accessible.
Steps to reproduce:
Trying to access it like this
dock_plugin.gd
tool
extends EditorPlugin

var dock

func _enter_tree():
	dock = preload("res://addons/dock/dock.tscn").instance()
	dock.test()

	add_control_to_dock( DOCK_SLOT_LEFT_UL, dock)

func _exit_tree():
	remove_control_from_docks( dock )
	dock.free()

results in the following error:
SCRIPT ERROR: _enter_tree: Invalid call. Nonexistent function 'test' in base 'Button (dock.gd)'.
   At: res://addons/dock/dock_plugin.gd:8.

Link to minimal example project:

dock-test.zip

I think the "tool" keyword is being misunderstood. It looks like it means only tool scripts are being "loaded", instead of "executed". If you use the "tool" keyword in your other script it will be accessible.

Thanks a lot for the clarification! This was meant to be a minimal project, demonstrating the issue, and yes, adding the tool keyword I "forgot" to add fixed the issue ("forgot" in quotes, because what actually happened is the editor crashed when I added the tool, and apparently it didn't save the script).
However, in my actual project, I'm having the same problem despite having tool in every single script. I'll try to isolate the issue further.

After bisecting the issue, I found that the script has a syntax error! It seems editor plugin script errors don't appear in Debugger's Errors tab, so one has to pay close attention to stderr/stdout output.
I'm sorry about the invalid issue!


Can't print images and QR codes

I'm getting this result when printing images. Any ideas? Also didn't succeed to print a QR code yet. Using the Jolimark TP510 and printing text works fine.

Same Problem.

any clue? i have the same problem

same problem on intermec pr3

This thread has been closed since there has not been any recent activity. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.


untraceable log file error

Not sure where this one is:
no Db found with name 'ONDO': failed to load qualifier 'term=disease associated, Schneckenbecken dysplasia; date=20091106' from SPAC144.18

It was a typo in disease_name_to_MONDO_mapping.txt:
Schneckenbecken dysplasia       ONDO:0010013
I've just checked in a fix.

Thanks.


feat(Construct): replace custom resource with bedrock L1 constructs

Fixes #

Removed custom resource from bedrock construct.
removed custom resource policies from the construct.
Upgraded CDK version to 2.140.0
Removed knowledge based storage type Redis Enterprise since it is not supported by L1 Constructs
Added bedrock L1 construct for datasource , knowledge base, agent and agent alias.
Updated test cases for bedrock conctruct
Updated agent addAction group and addKnowledgebases method in agent.ts

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

Comments from current testing status:

tested in TS, deployment of agents with KBs using OSS and Pinecone works as expected
keep possibility to pass kbs through the construct (call addKBs)
Add KBs and add action groups should append to the list, not replace
Aurora as a vector store fails to deploy:

Received response status [FAILED] from custom resource. Message returned: Error: Unable to import module 'custom_resources': No module named 'psycopg2._psycopg
'

Logs: /aws/lambda/***

at invokeUserFunction (/var/task/framework.js:2:6)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async onEvent (/var/task/framework.js:1:369)
at async Runtime.handler (/var/task/cfn-response.js:1:1676)

Runtime.ImportModuleError: Unable to import module 'custom_resources': No module named 'psycopg2._psycopg'Traceback (most recent call last):

Tested in TS, deployment of agents with KBs using OSS and Pinecone works as expected
Remaining tasks:

[x]  keep possibility to pass kbs through the construct (call addKBs)
[x]  Add KBs and add action groups should append to the list, not replace
Aurora as a vector store fails to deploy:

Received response status [FAILED] from custom resource. Message returned: Error: Unable to import module 'custom_resources': No module named 'psycopg2._psycopg
'

Logs: /aws/lambda/***

at invokeUserFunction (/var/task/framework.js:2:6)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async onEvent (/var/task/framework.js:1:369)
at async Runtime.handler (/var/task/cfn-response.js:1:1676)

Runtime.ImportModuleError: Unable to import module 'custom_resources': No module named 'psycopg2._psycopg'�Traceback (most recent call last):

This issue is not related to the changes from this branch, and seems to happen on MacOS only. Will open a separate ticket for it

[x]  Test and validate Python deployments

@krokoko, what's the separate ticket you've opened? I'm facing this issue and can't deploy my stack with Aurora pgVector.


File transform cannot replace variable called "build"

Required Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: File transform
list here (V# not needed):
https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/FileTransform
Environment

Server - Azure Pipelines

Agent - windows-2019

Issue Description
When building an electron.NET application, I want to transform some things in a file called "electron.manifest.json".
Those values are located in the nested variable called build, here I want to change the "appId"

{
    "build": {
        "appId" : "valueHere"
    }
}

In my pipeline I define a variable called "build.appId" as recommended by the fileTransform's doc.
In the task log, it does find the file and changes some other values (not nested in "build") but it seems to ignore those that are in "build".

Some predefined variables are not replaced in this task.

Predefined or build Variables are skipped during variable substitution. Hence, variables having prefix among ['agent.', 'azure_http_user_agent', 'build.', 'common.', 'release.', 'system.', 'tf_'] are ignored during variable substitution.

https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/FileTransformV2


When i restarted the server,master was read-only and never change to write status

The first time to start the server,anything is ok.But,when i restarted the server,the master did something wrong.I can't write to the master,the master type was read-only.I just flowed the step of example.The "error.log" of mysql listed nothing.What can i do next?
Note only error log:
WARNING:root:vtclient_exception for test_keyspace.None.master: ('VitessError', u'shard, host: test_keyspace.0.master, uid:100 host:"gim-server2" port_map:<key:"grpc" value:16100 > port_map:<key:"mysql" value:33100 > port_map:<key:"vt" value:15100 > , vttablet: rpc error: code = 9 desc = "gRPCServerError: retry: The MySQL server is running with the --read-only option so it cannot execute this statement (errno 1290) during query: insert into test_table(msg) values ('V is for speed') /* _stream test_table (id ) (null ); // vtgate:: filtered_replication_unfriendly */"', 'ExecuteKeyRanges', 8, 'INSERT INTO test_table (msg) VALUES (:msg)', 'keyranges=, keyspace=test_keyspace, tablet_type=master')
Traceback (most recent call last):

If you restarted the mysqld that was the master at the time, then this would happen. We leave all servers as read-only at startup to prevent accidental writes on a partitioned master (a failure scenario called split brain). Generally if you need to restart the master, you should first issue PlannedReparentShard to failover to a different replica.
If you get into this state accidentally, you should be able to recover by doing EmergencyReparentShard and specifying whichever tablet has the highest GTID position. If you don't know which tablet that is, you should be able to list the GTID positions with ShardReplicationPositions.

I did it with your advice,but it did't work.The command i used:
zenist@gim-server2:~/go/vtdataroot$ $VTROOT/bin/vtctlclient -server localhost:15999 EmergencyReparentShard test_keyspace/0 test-0000000100
E0301 10:52:19.983439   16089 main.go:43] Remote error: rpc error: code = 2 desc = "master-elect tablet test-0000000100 is already the master"
zenist@gim-server2:~/go/vtdataroot$ $VTROOT/bin/vtctlclient -server localhost:15999 PlannedReparentShard test_keyspace/0 test-0000000100
E0301 10:53:08.094881   16094 main.go:43] Remote error: rpc error: code = 2 desc = "master-elect tablet test-0000000100 is already the master"
Note:I used the "example/local/vttablet-down.sh" to down server and used "vttablet-up.sh" to start server.

Sorry I thought that EmergencyReparentShard could handle the case of re-electing the same master, but I was wrong. I'll work on that.
In the meantime, you can recover from this kind of thing manually, for example:
# master
SetReadWrite test-100
# slave 1
ReparentTablet test-101
StartSlave test-101
# slave 2
ReparentTablet test-102
StartSlave test-102

Thank you very much. The problem was resolved.


[hotfix][connector-redis][docs] Updated required value in attribute tables for those with default values

Purpose of this pull request
Set required column value to no for those with default value (eg: host and port).
Check list

[x] Code changed are covered with tests, or it does not need tests for reason:
[ ] If any new Jar binary package adding in you PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs

Thanks @ruanwenjun  and @CalvinKirs for your time.


IDVA6-427 Variable name fixed

Link to Jira:
https://companieshouse.atlassian.net/browse/IDVA6-427
Changes:

Variable name fixed

CI: No security warnings found


Replace all instances of sudo with become

There are probably something like 400 instances of Ansible's sudo directive scattered throughout this project. This directive has been deprecated, and needs to be replaced with become. This deprecation is made more urgent by the transition to Ansible 2. This should involve a pretty simple find-and-replace.
$ grep -ri "sudo" roles | wc -l
448

This would be a great opportunity for ansible-lint, so we can avoid adding deprecated features in the future @sehqlr re: #946

Would there be new name for sudoers.d?
roles/glusterfs/tasks/server.yml:    dest: /etc/sudoers.d/consul-gluster-healthchecks
"sudo" is also present several times in the command line. Guessing that those shouldn't change:
roles/glusterfs/README.rst:    ansible -m command -a 'sudo mount -a' role=control
roles/glusterfs/templates/glusterfs-volumes.json.j2: "script": "sudo /usr/sbin/gluster volume info {{ volume.name }}",
roles/glusterfs/templates/glusterfs-volumes.json.j2:   "script": "sudo /usr/sbin/gluster volume info {{ volume.name }} | grep 'Status: Started'",
roles/glusterfs/templates/glusterfs.json.j2:   "script": "sudo /usr/sbin/gluster pool list | grep localhost | grep Connected"
playbooks/show-containers.yml:    shell: sudo docker ps | awk '$2 != "ID" {print $2}' | sort```

@TanyaCouture sudo should stay the same in the command line and /etc/sudoers.d/ should stay the same. It really is just sudo: yes should be become: yes.


Better auto completion

Right now Godot handles auto-completion using the class the script inherits from; e.g If a script inherits KinematicBody2D it will auto-complete everything that belongs to it and it's ancestors (CollisionObject2D).
In the case it's the opposite; if your script inherits CollisionObject2D but is attached to a KinematicBody2D and you call move_and_slide, for example, it will still work. Same goes for variables if you use self.desired_variable. The auto-completion in this case does not work, but the functionality do.
TL;DR
Auto-completion should work not only with the class the script inherits, but with the class the object is attached to.

Problem is, you are not supposed to access things your script doesn't inherit. It would encourage exploiting a hack which is not recommended design-wise.

Yeah, if you use the script in a KinematicBody2D, the script should inherit a KinematicBody2D (or a subclass of it but never a superclass). I wonder if this case should even be allowed.
I see no reason to support that kind of completion anyway. If you are doing this to reuse the script for multiple nodes that also inherit CollisionObject2D, then you couldn't use KB specific functions anyway.

The point of auto-completion isn't to inform the programmers of coding guidelines. It's there to show what will work and what will not.
But I'm sure that won't suffice for you, so let me give you a real use example;
You want to make destroyable objects, so you create a Destroyable.gd which inherits CollisionObject. Then you proceed to create a monster (a KinematicBody2D), which, logically, can be destroyed. So it inherits Destroyable.gd. Since your auto-completion works, you have easy access to all it's functions normally. Now you want a destroyable beach ball (a RigidBody2D), and you can easily do that too using only Destroyable.gd
If your auto-completion does not work, then for the sake of commodity you'll have to create 2 identical scripts, one DestroyableRigid.gd and one DestroyableKinematic.gd. This is not only a bad practice, it goes against SSOT.
This not only should be allowed, it should be enhanced, like removing the need for self before accessing a variable.

self is optional.
Also, if you want your script to work both on two different node types, the problem is not about breaking OOP like you seem to want. The problem is about having those common functions in a common base.

"Having those common functions in a common base" is exactly what OOP stands for. And it's exactly what I'm doing. "Breaking the OOP" would be create two different scripts for identical behavior.
And self isn't optional in this case. To access a variable from the class your script do not inherits you have to use self.

It should be possible to use members from the class you inherit and all its bases, not its subclasses. The fact it works here is a bug due to how GDScript is doing calls on objects.
Unless I'm mistaken, OOP is not what you are doing because your script inherits CollisionObject but you want to use functions that are present ONLY in KinematicBody AND RigidBody subclasses, NOT their base, which you inherited. It's backwards inheritance. What I meant is, if you need functions from these two subclasses in particular, the solution is to have the common functions in CollisionObject or another intermediary class (PhysicsBody?), not exploit the fact GDScript is doing varcall (otherwise you could just always extend Node in every case, or not extend anything lol).

Okay, other suggestion then; implement a extends self.
Which means it will by default extend the class of the node it is in. This way it is still true OOP and can be used on different grounds.

Not sure if this is equivalent of this topic, but I will mention it just in case;
When you have a script that extends another script that extends a Node type, you do not get auto completion from that Node type on the script that extends the other script.
Use Case Example:
`extends "res://some_script.gd"
func _ready():
pass`
`extends Node2D
func _ready():
pass`
If you were to attempt to auto-complete the "position", you would not get it in the script that extends some_script.gd, but you would in the script that extends Node2D. :)

As said in the related issue (#20340), this is not the intended way to work. And since now there are checks that make this usage an error, it doesn't make sense to add it to code completion.


Actionbar GUI must have rp

I use an alternative plugin for the resource pack, but I can't use the actionbar spell gui to view the selected abilities. How can i use another plugin and enable this feature?

Use /mhelp resourcepack it will give you the command you need to use.


Code running environment issues

Hello, I would like to ask about the code running environment. After downloading the library according to the requirements.txt, you will encounter the following problems when running the code. Have you encountered this problem? Or your other environments such as CUDA version What is it

It seems the issue related to the CUDA environment.
I use cuda 11.3 with pytorch 1.10.
Hope this can help.


Add support parameters with default values for DI to constructor

Q
A

Is bugfix?
❌

New feature?
✔

Breaks BC?
❌

Tests pass?
✔

Fixed issues
#18304

@vjik would you please rebase it?

@vjik would you please rebase it?

Done

@vjik seems it doesn't play well with https://github.com/yiisoft/yii2/commit/23cfb38ceaab5d378c5e9ee577fbc3b8a685fbeb. Would you please check it?

@vjik seems it doesn't play well with 23cfb38. Would you please check it?

Done

Thanks.

I have a class ProjectAccess (extending yii\base\Component) with constructor:
public function __construct(?Project $model = null, int $userId = null)     {         parent::__construct();         $this->project = $model ?? Project::findOne(Yii::$app->request->get('id'));         $this->setUser($userId);         $this->accessObjects = ProjectAccessObjects::find()->all();     }
And mention it as component in config:
'projectAccess' => [             'class' => ProjectAccess::class         ],
If i use ProjectAccess like component (Yii::$app->projectAccess), $model var in constructor aren't null, it's an empty Project object. So i can't handle parameter with null default value ?
How to get back previous behavior ?

@TyRun555 we'll handle it soon. Meanwhile, roll back to previous release.

@TyRun555, @samdark is right — that's bad way to use component. But if you still need it, try set component in config so:
'components' => [
	'projectAccess' => function(){
		return new ProjectAccess();
	},
],

@samdark , @vjik thx for your answers, It helps. I'll refactor component and write the method. Just want some automation magic)


$PORT and process.env.PORT offset by 100

I'm starting a couple processes with Foreman.  In my node.js process, I refer to process.env.PORT. In my Procfile, I use $PORT as a parameter to another process. My second process is only for debugging and basically processes some files and opens up my browser to the specified port (it's not using the port for anything else). So if I start Foreman with foreman start --port=5000, process.env.PORT is 5100 while $PORT is 5000. Shouldn't these be the same value?

I just now started to get this issue. i request port 8080 and foreman starts with 8180


fix-125-link-to-community

🍰 Pullrequest
in the footer of the app the link to the elopage community has been added

Issues
#125

This fixes https://github.com/gradido/gradido/issues/125
Discussion:

The new implementation has the Member area in the footer. Is that ok?
The new implementation defines this as "Community" and not "Member Area". Is that ok?

I think it will be problem with the current users to find it again which changed name and place.
I see many Support requests incoming.


Impose restrictions on submission

Now that the website is stable enough for submissions, we should impose restrictions on submissions:

Time - Only allow Compo to be selected until 2 hours after compo deadline, or if published before then (for all those people that click the wrong event and contact me after)
Team Size - if >1, disallow the Compo

I briefly researched this and while it isn't hard, the structure of the code makes it very impractical since getting the authors list is part of <ContentSimple />  while the logic behind what is allowed need to go in the <ContentItem />.
Which again makes me wish we used the Container pattern https://medium.com/@learnreact/container-components-c0e67432e005
And https://redux.js.org/ (which does have a selling-point that it is tiny 😉 )
Reworking the structure of the code base would be a huge undertaking, but I think it would make it more accessible to contributions if organized in a standard and very predictable way and I think we would work much faster adding features to it too.

A change I've been making to a bunch of code that greatly simplifies things is taking code that looks like this.
<ContentSimple node={node} user={user} featured={featured} path={path} />

And changing it in to this.
<ContentSimple {...props} />

Can we close this now?


Unnecessary rules in new .coop-t-headline-mega class

In the following lines of the typography.pcss file we don't need text-transform: uppercase; set on the .coop-t-headline-mega class as this headline might sometimes appear lowercase. This was down to my bad instructions. If we want uppercase we should apply the modifier class .coop-t-headline-upper.
The result can be seen on this page where the second Heading Mega is uppercase - it should be lowercase.
There are before and after screenshots included.

The lowercase variation should have a line height of 105% where as upper should always be 100%.
Current CSS:
.coop-t-headline-upper {
  font-family: var(--font-family-headline);
  text-transform: uppercase;
  line-height: 100%;
}

.coop-t-headline-mega {
  font-family: var(--font-family-headline);
  color: var(--color-brand-coop);
  text-transform: uppercase;
  line-height: 100%;
  font-size: var(--type-headline-mega-xs);

  @media (--mq-small) {
    font-size: var(--type-headline-mega-s);
  }

  @media (--mq-medium) {
    font-size: var(--type-headline-mega-m);
  }
}

Suggested amends:
.coop-t-headline-upper {
// removed font family as this is specified on .coop-t-headline
  text-transform: uppercase;
  line-height: 100%;
}

.coop-t-headline-mega {
  // removed font family as this is specified on .coop-t-headline
  color: var(--color-brand-coop);
   // removed uppercase as this is specified on .coop-t-headline-upper
   // removed line-height as this is specified on .coop-t-headline-upper and .coop-t-headline
  font-size: var(--type-headline-mega-xs);

  @media (--mq-small) {
    font-size: var(--type-headline-mega-s);
  }

  @media (--mq-medium) {
    font-size: var(--type-headline-mega-m);
  }
}

Fixed in https://github.com/coopdigital/coop-frontend/commit/cf74bf6962fe5d751de5e177f96ad5984652bfbc & https://github.com/coopdigital/coop-frontend/commit/c368c4b5785395321d6b1b254d74c5c7cf3f0d6a