[New game]: under the crypt

🎮 Game Request
In this dungeon crawling tower defense game you play a paranormal researcher tasked with ridding an old crypt of its supernatural inhabitants.
Point down the features
Try to survive as long as possible while defeating wave after wave of enemies.
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @S-ishita !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹


[EL] Added - improved translations (locks, media_player etc)

Many improvements and additions

need help, can't understand what's wrong with the error

Hi, I don't know if you are developing, but run the script/lint script on the files.
Lint wants to fix something in the file (an extra space or an incorrect indentation) in the sentences/el/cover_HassGetState.yaml file, and that's why the tests are not running.
If you have already done this and there is still an error, then update the repository and run the script/setup again.

Because there hasn't been any activity on this PR for quite some time now, I've decided to close it for being stale.
Feel free to re-open this PR when you are ready to pick up work on it again 👍
../Frenck


WS connection proxying to the nestjs gateway

I am trying to proxy socket-io client to the nestjs WS gateway .
Here is the config of the module
 proxy: {
    enableProxy: true,
    // fetch: true,
    proxies: {
      // with options
      '/api': {
        target: 'http://localhost:3000',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, ''),
      },
      '/socket.io': {
        target: 'ws://localhost:3010',
        changeOrigin: true,
        ws: true,
      },
    },
  },

Nuxt server is working at http://localhost:3005.
const socket = io({ transports: ['websocket'] })

Connection from vue component.
Nest js gateway running under 3010 port and also has transports: ['websocket'].
@WebSocketGateway(3010, {
  transports: ['websocket'],
})

But i could not connect to nestjs gateway and got this warning:
WebSocket connection to 'ws://localhost:3005/socket.io/?EIO=4&transport=websocket' failed: WebSocket is closed before the connection is established.

Nuxt server logs:
/socket.io/?EIO=4&transport=websocket -> ws://localhost:3010

If i switch transport from websocket to polling both server and client side, config works fine.
How to configure plugin properly in that case?

@NonOrganicCreature Did you find a way to use websocket ?
I'm using the same config, but only polling transport works..


Exception raised when saving a model with a column type of map<text, boolean>

I have a problem whereby an exception is raised when using a model which has a column which is a map<text, boolean>.
A sample model is:
from cqlengine import Model
from cqlengine import columns
class MyModel(Model):
""" test model """
key = columns.Text(primary_key=True)
map_of_text_to_text = columns.Map(key_type=columns.Text, value_type=columns.Text)
map_of_text_to_bool = columns.Map(key_type=columns.Text, value_type=columns.Boolean)
The following unittest reproduces the issue:
import django.test as unittest
from issue.models import MyModel
class TestModel(unittest.TestCase):
""" test """
def setUp(self):
    pass

def tearDown(self):
    pass

def testMapOfTextToText(self):
    """ this test passes ok """
    model = MyModel(key='testMapOfTextToText')
    model.map_of_text_to_text['splod'] = 'zap'
    model.save()

def testMapOfTextToBool(self):
    """ this test raise an error:
        InvalidRequest: code=2200 [Invalid query] message="Invalid map literal for map_of_
    """
    model = MyModel(key='testMapOfTextToBool')
    model.map_of_text_to_bool['splod'] = False
    model.save()

def testMapOfTextToBoolWorkaround(self):
    """ this test passes and provides a workaround for this issue """
    model = MyModel(key='testMapOfTextToBoolWorkaround')
    model.save()
    model.map_of_text_to_bool['splod'] = False
    model.save()

The stack trace is :

cqlengine is being merged into the DataStax native Python driver.  I'm going to hold off on any new non-emergency issues, since it'll just make the merge more complicated.

We are migrating all Github issues to the public Jira. Please find this issue in Jira: https://datastax-oss.atlassian.net/browse/PYTHON-248


fix: get a hint

Tasklist:

[x] Add the forumTopicIds to the challenge markdown frontmatter

[x] Add the forumTopicId for pre-existing challenge guides on forum
[x] Add the forumTopicId for newly created challenge guides on forum
[x] Add the forumTopicId for newly stub challenge guides on forum

[x] Query the forumTopicId and create the guide URL in the client views.
[x] Update tests for the schema validation in curriculum tests.

@raisedadead Do you want me to close #36558 and add the commit on that PR to this PR?

Don't worry about it, will cherry pick and land the pull-requests together.


Update registry gen tool

Update resourcedocsgen tool to reference the new version (presumably v3.54.0 once it is officially released) of pulumi/pulumi so we can update registry with the latest codegen changes.

done: https://github.com/pulumi/docs/pull/8552


Unable to see "General Settings" tab in Azure Function App configuration section

[Enter feedback here]
Hi Team, We are trying to enable "FTPS only" only setting for all our function apps. And unable to find "General Settings" tab in Azure Function App configuration section
We can only see "Application settings" and "function runtime settings" tabs under configuration.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: f6924846-3993-db7f-92c2-96a069bda515
Version Independent ID: b0ec25d1-8ea8-c0e4-304d-ab03692fa8e7
Content: Deploy content using FTP/S - Azure App Service
Content Source: articles/app-service/deploy-ftp.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@dilv0055
Thanks for your feedback! We will investigate and update as appropriate.

Here is the screenshot from my end. My side, i cannot view "General Settings" Tab. Does that depend on any permissions/ type of function app/ version of function app etc;

@dilc0055; it is because the Function app is linux based and General settings only available for windows based.
you need to use Config property of functionapp in powershell to list all the options that are usually in General settings.
Let me know if you need more help in setting up particular setting for function app.

Hello @dilv0055 , thanks for your patience.
I am not seeing the behavior you descibed in the Azure portal in Azure Function App configuration section. I am able to see" General Settings":

If you're trying to Enforce FTPS try using the Azure CLI command shared in the doc:
az webapp config set --name <app-name> --resource-group <group-name> --ftps-state FtpsOnly
We try to keep issues scoped to doc feedback in this repro. With that being said, if you are still facing this issue in the portal, please us an email at<EMAIL_ADDRESS>with your subscription ID and the URL of this thread? We will put you in touch with the necessary party to investigate further.
Thank you for your understanding and we look forward to hearing from you.

It is because the Function app is linux based and General settings only available for windows based.
The thread should not have been closed without proper investigation.

[Enter feedback here] Hi Team, We are trying to enable "FTPS only" only setting for all our function apps. And unable to find "General Settings" tab in Azure Function App configuration section We can only see "Application settings" and "function runtime settings" tabs under configuration.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: f6924846-3993-db7f-92c2-96a069bda515
Version Independent ID: b0ec25d1-8ea8-c0e4-304d-ab03692fa8e7
Content: Deploy content using FTP/S - Azure App Service
Content Source: articles/app-service/deploy-ftp.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

az functionapp config set --resource-group RESOURCEGROUP --name FunctionApp --ftps-state FtpsOnly


os-prober: add missing dmraid, lvm2 dependencies

Motivation for this change
Otherwise, os-prober may fail to see LVM and RAID partitions.
Note
One might want to add dmraid as well, but I don't know if this is actually necessary. This has been done.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions: Ubuntu

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)

adds 8 213 688 bytes (8 MiB) to os-prober
adds 256 bytes (0.25 kiB) to /run/current-system

[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @symphorien

Thanks!
Can you also add dmraid as you mentionned ?
Grepping "if type" in os-prober suggests we could also add lsblk.
I don't know where log-output comes from, and it looks non-essential.
For people missing context:
Fixes #76690

I've added dmraid. lsblk is already added by libuuid. The only commands that aren't in the program's PATH currently are log-output and anna-install

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/89


Prisma Client returns incompatible BigInt type for fields

Bug description

When we use JS BigInt feature from ES2020, TypeScript uses the lowercase bigint primitive type, just like number vs. Number:

However, Prisma Client returns BigInt interface, which is incompatible with that bigint type:

How to reproduce

Create a Prisma model with BigInt columns and use Prisma Client method like .findFirst() to get the data.
Then try to assign to a property/variable of bigint primitive type.
Expected behavior

Prisma Client should return primitive bigint type, just like it do with string or number.
Prisma information

model reveal {
  operation_id      BigInt          @id
  fee               BigInt
}

Environment & setup

OS:  Ubuntu 20.04
Database:  PostgreSQL
Node.js version:  15.8
Prisma version:

prisma               : 2.17.0
@prisma/client       : 2.17.0
Current platform     : debian-openssl-1.1.x
Query Engine         : query-engine 3c463ebd78b1d21d8fdacdd27899e280cf686223 (at<EMAIL_ADDRESS>Migration Engine     : migration-engine-cli 3c463ebd78b1d21d8fdacdd27899e280cf686223 (at<EMAIL_ADDRESS>Introspection Engine : introspection-core 3c463ebd78b1d21d8fdacdd27899e280cf686223 (at<EMAIL_ADDRESS>Format Binary        : prisma-fmt 3c463ebd78b1d21d8fdacdd27899e280cf686223 (at<EMAIL_ADDRESS>Studio               : 0.353.0
Preview Features     : orderByRelation

Looks like a mapping mistake, we should fix this.

Thanks a lot for reporting 🙏
This issue is fixed in the latest dev version of @prisma/client.
You can try it out with npm i @prisma/client@dev.
In case it’s not fixed for you - please let us know and we’ll reopen this issue!

This is still not working for me using "@prisma/client": "^2.23.0". Is this still dev only?

I'm using the last version of Prisma/client and I'm seeing the same issue using BitInt (MySQL)
"@prisma/client": "3.6.0",
"prisma": "3.6.0"

Result on simple Select query:
productId:<PHONE_NUMBER>233n,
variantId:<PHONE_NUMBER>5313n,

Schema
model Transfers {
	id 					Int			@id @default(autoincrement())
	productId			BigInt
	variantId			        BigInt
	qty					Int
	expectedArrival		DateTime
	purchaseOrderNumber	String
	received			        Boolean		@default(false)
	createdAt			DateTime	@default(now())
	updatedAt			DateTime	@updatedAt
}

Please open a new issue @bluedge. Thanks.
On the other hand what you posted does not actually look like the original problem here, but the normal console.log output of a BigInt: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toString

@janpio Thank you for your answer.
I'm not sure it makes much sense for PRISMA to return BIGINT following the exact Schema (MySQL) format when retuning data that have to be used as a JS object. (even if BIGINT exit in JS) It is a bit impractical to have to parse them later down the road. It might be a nice option to be able to return another format (String, Integer,..).
Prisma is Amazing, We love it!

Facing same trouble with latest version of prisma. Older version is working good

Please open a new issue and describe your problem in detail @rode093.

same issue with latest version.

Same here @giladv

https://github.com/prisma/prisma/issues/5750#issuecomment-1200285673


Display search results in the descending order of no. of times selected

Resolves #7
Uses the built-in Array.sort() method in JS to sort the result array validList in descending order of the number of years selected.
Thank you for letting me contribute.
Best,
Vivek

@vivek32ta  Good Job!


Doesn't work

Following the steps exactly fails with this error:
azure-arm: resources.DeploymentsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="InvalidTemplateDeployment" Message="The template deployment failed with error: 'The resource with id: '/subscriptions/5d055bae-785a-49d8-913d-abd9114f5a3b/resourceGroups/pkr-Resource-Group-4nagav9ssw/providers/Microsoft.Compute/virtualMachines/pkrvm4nagav9ssw' failed validation with message: 'The requested size for resource '/subscriptions/5d055bae-785a-49d8-913d-abd9114f5a3b/resourceGroups/pkr-Resource-Group-4nagav9ssw/providers/Microsoft.Compute/virtualMachines/pkrvm4nagav9ssw' is currently not available in location 'eastus' zones '' for subscription '5d055bae-785a-49d8-913d-abd9114f5a3b'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."
Doesn't seem to matter what size or region is specified, they all fail, even if they show in the list of "available" sizes using the az list command.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1f33d707-2a5b-e0f7-2649-9b778d57a1da
Version Independent ID: 3584b4b8-c5f5-2170-3f8a-7a9a33025a84
Content: Create Linux Azure VM Images with Packer - Azure Virtual Machines
Content Source: articles/virtual-machines/linux/build-image-with-packer.md
Service: virtual-machines
Sub-service: imaging
GitHub Login: @cynthn
Microsoft Alias: cynthn

@jvenema, the error you received is correct and you'll need to try a different VM size or location for that subscription:
'The requested size for resource <resource path> is currently not available in location 'eastus' zones '' for subscription <subscription ID>. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."
What is Microsoft doing to avoid capacity issues in the future?
Ensuring capacity for our customers is a top priority for Microsoft and we are working around the clock to deliver on this. The increasing demand for Azure services is evidence of the popularity of Azure, and emphasizes the need to scale up our infrastructure even more rapidly. With that in mind, we are expediting expansion and are improving our resource deployment process to respond to this strong customer demand. We have identified several improvements on how we load-balance under a high resource usage situation, and how to trigger the timely deployment of needed resources. Furthermore, we are increasing our capacity significantly – and will continue to plan for strong customer demand across all of our regions. This September 2021 blog post  covers improvements towards delivering a resilient cloud supply chain.


Ionic 2 RC0 Pre-Populated databases

In ionic beta 11 i would put the pre-populated database on /www folder and use  cordova-sqlite-ext plugin with options:
let options = { name: 'myDatabase.db', existingDatabase: true };

Now in RC0, it won't work because everytime we run (ionic run...) the www folder is overwritten.
I tried to put it on /src OR in /src/assets but with no luck in both cases.
So, where should i put pre-populated databases in ionic 2 RC0 ?

Ionic supports writing custom config files - https://github.com/driftyco/ionic-app-scripts#custom-config-files .
This will let you write your own js file where you can declare everything you would like to copy over into the www directory.
create a file along side your pacjage.json called for example, copy.config.js , inside this add the following:
module.exports = {   include: [     {       src: 'src/assets/',       dest: 'www/assets/'     },     {       src: 'src/index.html',       dest: 'www/index.html'     },     {       src: 'src/your.db',       dest: 'www/your.db'     },     {       src: 'src/service-worker.js',       dest: 'www/service-worker.js'     },     {       src: 'node_modules/ionic-angular/polyfills/polyfills.js',       dest: 'www/build/polyfills.js'     },     {       src: 'node_modules/ionicons/dist/fonts/',       dest: 'www/assets/fonts/'     },   ] };
Then in your package.json add a config option with the following.

"config": {
"ionic_copy": "./copy.config.js"
},

Put the pre-populated DB in the src folder and it will copy it over along with the rest of the files

Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum and take a look at the app-scripts docs. Thanks for using Ionic!

Hello! I am going to reopen this issue and move it to the app-scripts repo. We are reviewing the current setup where www is treated as a throw away directory and I will use this issue to post our findings. Thanks!

This issue was moved to driftyco/ionic-app-scripts#127


Update index.md

add --dev flat on yarn installation guide
PR checklist

[x] Documentation update

Thanks for your interest in palantir/tslint, @FinalDes! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.


[NFC] Strip Witness Matching of its TypeChecker

In order to do this, push last remaining TypeChecker dependency on swift::matchWitness to the call sites and downgrade the TypeChecker in the matchers to an ASTContext.  This also removes a TypeChecker cache by defining CompareDeclSpecializationRequest, which now powers isDeclAsSpecializedAs.
This is built atop #27964 so only the last 2 commits really matter.

@swift-ci please test

@swift-ci please smoke test

Old full test is occurring here

@swift-ci please smoke test

⛵


Don't assume parentheses in chaining if there were none before

This is yet another edge case for the omit_parentheses style for the
Style/MethodCallWithArgsParentheses cop.
If you have set the AllowParenthesesInChaining option, calls like
Rails.logger.error("something") will be allowed, as they are
technically chained. 😅
At least in our style guide, we want AllowParenthesesInChaining only
for symmetry.  I'm not really sure if this is general enough of a rule,
but what I have done in this change is:

Don't let parenthesized calls if none of the previous calls are
parenthesized.

Maybe I can also rename the setting to AllowParenthesesInChainingForSymmetry
or add separate one for symmetry? If you decide to omit the parentheses,
it's context sensitive and generally not well-defined.
Still, I'd like to lint cases like Rails.logger.error("something"), as
they are common enough and people will "human-lint" them and waste time,
but I'm wondering how deep the rabbit hole should I go in rubocop
upstream.

Can you explain in more detail what do you mean by "symmetry" in this context?

Okay, so we define symmetry in chaining like:

# it's ok to leave the parens in a chain for symmetry.
second_tier = users.drop(10).take(10)

# instead of...
second_tier = users.drop(10).take 10

But now defining what a chain is becomes kinda tricky as well, becasue I may not want to consider the following calls as chained:
Rails.logger.info 'Operation completed'


Make json validate optional/configurable.

Allow sysl-go adoption teams to opt out of json validation of sysl types.

What does "json validation of sysl types" mean, exactly?

@anzdaddy We have recently introduced a feature wherein we validate the presence of a value in the mandatory fields of the sysl types when used in a request body. bah-bff team still don't mark all the field types as optional even though they don't pass a value. The feature breaks their build pipeline when migrated to arrai based code generation.

Is it a lot of work to add the optional qualifier?

Not really, just a few tweaks in the transform.


parser: slight improvement of the README

Copy a sentence from a page of the website before removing it.
nitdoc will soon nicely presents components of the compiler ; so just move existing doc in a single place make sense.

+1

+1


optimise with numpy

Use numpy vector operations instead of iterating through data for better performance.

Note that I also changed the run_ransac signature to take inlier_threshold (float) instead of is_inlier (function).


Finalize Cupcake website Homepage design

User story

As an IBM.com Library adopter,

I need to go to a website to get guidelines and resources  I need for my work without confusion

so that I can find the information I need with confidence.

Tasks

[ ] Review design options (#305) with Wonil and MIke.

Acceptance criteria

[ ] Design is finalized and ready to be estimated by James

Purposed homepage design in two directions with three variations:

@jimpistilli Can you take a look at the proposal mockups in the folder (attached below) and let me know if you spot any typos? Thank you.
Homepage redesign purposed ideas.zip

@JennySanchez Sure will circle back shortly

@JennySanchez Hi - some of the screen captures are not a high enough resolution for me to read all of the text, there are portions that are too small / blurry. Is there a way to send better quality versions? Thanks
cc: @wonilsuhibm

@JennySanchez Below is a box link to a new zip file of the screens in PDF format, with some edits and questions.  Happy to discuss when you're free
https://ibm.box.com/s/0petoiwgouhifeb37brn2ounxr95ua8j
cc: @wonilsuhibm

@jimpistilli Thank you for taking a look. Great questions and the items you have upper or lower case questions with, they are proper nouns, so they start with cap case. Each Cards also take adopters to different places to view information, download asset, etc. That's why the icons are different.

@JennySanchez Got it, i will update w/a new version reflecting your comments. Thanks for looking

Purposed homepage designs updated with feedback from Jim:

New versions below, as per Jenny's comments on my questions
https://ibm.ent.box.com/file/618778770787
cc: @JennySanchez @wonilsuhibm

@jimpistilli Got it and will update the purposed designs.

@wonilsuhibm Let me know what do you think?
2x size designs are attached below.
Homepage redesign purposed ideas 02.25.zip

Closing this issue based on Jenny's notes above.


Added queryParams to the HttpRequestInformation annotation.

Also renamed requestHeaders to headers.

/azp run java - clientcore - ci


Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null on second render

I'm getting this error upon second rendering of the component.
Even when I make a simple list like:

test

test

test

My re-render is triggered by a change in my Redux store. When I disable the connection to my store everything works. Any suggestions?

My bad, I was missing a unique key in my list. For further reference: this is the error you're getting
(maybe add a warning in the console when node == null? (line 221)


parameterized_docker_build.sh fails

Issue
Executing parameterized_docker_build.sh fails to generate new docker image, throws error message.
System information

I have used a stock example script provided in TensorFlow
Windows 10 professional
TensorFlow install as docker image tensorflow/tensorflow:1.3.0-devel-py3
TensorFlow version 1.3
Python version 3
Bazel version 0.5.0
CUDA/cuDNN version not relevant (CPU install)
GPU model and memory not relevant (CPU install)

Set-up
>>> docker pull tensorflow/tensorflow:1.3.0-devel-py3
>>> docker run -it tensorflow/tensorflow:1.3.0-devel-py3
$ cd /
$ cd /tensorflow/tensorflow/tools/docker
$ chmod +x  /tensorflow/tensorflow/tools/docker/parameterized_docker_build.sh
$ export TF_DOCKER_BUILD_IS_DEVEL=NO
$ export TF_DOCKER_BUILD_TYPE=CPU
$ export TF_DOCKER_BUILD_PYTHON_VERSION=PYTHON3
$ export NIGHTLY_VERSION="1.head"
$ export TF_DOCKER_BUILD_CENTRAL_PIP=$(echo ${TF_DOCKER_BUILD_PYTHON_VERSION} | sed s^PYTHON2^http://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=${TF_DOCKER_BUILD_PYTHON_VERSION},label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-${NIGHTLY_VERSION}-cp27-cp27mu-manylinux1_x86_64.whl^ | sed s^PYTHON3^http://ci.tensorflow.org/view/Nightly/job/nightly-python35-linux-cpu/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-${NIGHTLY_VERSION}-cp35-cp35m-manylinux1_x86_64.whl^)

Command triggering issue
$ /tensorflow/tensorflow/tools/docker/parameterized_docker_build.sh
Error messages

Required build parameters:
TF_DOCKER_BUILD_TYPE=cpu
TF_DOCKER_BUILD_IS_DEVEL=no
TF_DOCKER_BUILD_DEVEL_BRANCH=NO
Optional build parameters:
TF_DOCKER_BUILD_CENTRAL_PIP=http://ci.tensorflow.org/view/Nightly/job/nightly-python35-linux-cpu/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-1.head-cp35-cp35m-manylinux1_x86_64.whl
TF_DOCKER_BUILD_IMAGE_NAME=
TF_DOCKER_BUILD_VERSION=
TF_DOCKER_BUILD_PORT=
TF_DOCKER_BUILD_PUSH_CMD=
ERROR: docker is not available on path

As the error message includes, the script can't find docker on your path. Is docker available on your system? What is your "which docker" output?

Looks like this is a problem in user environment setup.
Closing.

Sorry for reopening this but I am having the same problem (host ubuntu 16.04, running on image latest-devel) and I don't understand how it is a user environment setup issue as the procedure he is following is exactly that defined in:
tensorflow/tensorflow/tools/docker/README.md
Shouldn't the development container (latest-devel) allow usage of docker natively or is there a magic trick to run the container so that it connects to docker running on the host? Doesn't seem like docker is included in the latest-devel image and the instruction explicitly state that the parametrized_docker_build.sh script must be run with a development image container.
Am I missing something?

One needs to install docker in the container. On my system i.e. the environment was not set up properly so @gunan was right.
For example and depending on your machine:
$ apt-get update && \
    apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common && \
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
    add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \
   apt-get install docker-ce

$which docker

/usr/bin/docker

I'm still stalled, suggest you check out #13784 if there is anything you can contribute, don't forget to edit the read me everytime you validate a solution. This repo has way too many contributors and no proper documentation.


"now()" function in Access Policies

Before any requests, I would just like to thank you for the work you've done, we are in love with your solutions, it's been amazing to work with ZenStack on our stack.
This week we were wondering about the possibility of including date validation in access policies, which was something that Supabase offered us, and we didn't find it in ZenStack (but seriously, we managed to survive without it, your solution is by far the best for us even without it).
It's a function that would compare the timestamp of some date column with the current time. And that it was possible to create comparisons (<, >, <=, >=, =, ==).
How it works in Supabase RLS:
((now() >= starts_at) AND (now() <= ends_at))
How could be in ZenStack Access Policy:
@@allow('read', startsAt <= now() && endsAt >= now())

Thanks @rickserraglia . Yes, this will be a very useful addition!

Hi @rickserraglia, it's supported in the latest "beta.1" release now!

Hi @rickserraglia, it's supported in the latest "beta.1" release now!

Wowww! That's awesome! 🔥🚀


Support for BoundServiceAccountTokenVolume 1hr token refresh in k8s 1.21+

What would you like to be added:
Support for BoundServiceAccountTokenVolume 1hr service account token refresh requirements for Kubernetes 1.21+
Why is this needed:
We use splunk/splunk-connect-for-kubernetes chart which uses splunk/fluentd-hec v1.2.13 by default.
Similar to feature request raised in fluent/fluent-bit  and logzio/logzio-k8s and fabric8io/fluent-plugin-kubernetes_metadata_filter we are also receiving notifications from AWS indicating our EKS 1.21 cluster has enabled BoundServiceAccountTokenVolume feature by default and encountering numerous stale service account token notifications as a result.
There is an open PR from fabric8io/fluent-plugin-kubernetes_metadata_filter seeking to  address this issue.
Can a similar feature be included in fluentd-hec to support hourly service account token refresh?

Related to https://github.com/splunk/splunk-connect-for-kubernetes/issues/768

The PR you mentioned has been closed in favor of the workaround in this PR, which is in the 2.11.1 release. I opened #251 hoping to get a release that uses that version.

Added support in 1.3.0 release


Improve Array::is_nullable documentation

Which issue does this PR close?
None
Rationale for this change

follows https://github.com/apache/arrow-rs/pull/6608

What changes are included in this PR?

Improving Array::is_nullable documentation

Are there any user-facing changes?
No

cc @tustvold @westonpace @alamb @joroKr21

FWIW I would like to change this, but doing so without regressing performance massively requires a bit of care

What would it take to help here?

What would it take to help here?

Someone needs to sit down an implement an efficient version of is_nullable that is accurate for the array types where it is currently a best estimate.


CDM Error

Hey friends,
I have went to the Bento site and downloaded the Binaries and placed the folder into the CR DL folder but it still says I don't have the CDM.
I struggle figuring out what this means.
"To decrypt DRM content, it's essential to first acquire a CDM (Content Decryption Module). Once obtained, you will need to place the following CDM files into the ./widevine/ directory:
device_client_id_blob.bin
device_private_key.pem"

Not sure where the above locations are?

So its the main folder where I created my crunchyroll? So like F:\CR\Widevine
The folder stuff goes in here?


feat(FX-3295): Added no results state when Algolia query comes back empty

The type of this PR is: Feature
FX-3295
Description
Before

After

PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[ ] I have tested my changes on iOS and Android.
[ ] I have added tests for my changes, or my changes don't require testing, or I have included a link to a separate Jira ticket covering the tests.
[x] I have added a feature flag, or my changes don't require a feature flag. (How do I add one?)
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a changelog entry below or my changes do not require one.

Changelog updates
Changelog updates

Cross-platform user-facing changes

Added no results state for Algolia queries

iOS user-facing changes

Android user-facing changes

Dev changes

This PR contains the following changes:

Cross-platform user-facing changes (Added no results state for Algolia queries)

  Generated by :no_entry_sign: dangerJS against df09a84959ef398aa2bd472cbb0b35c48f54ae3f


request: Docker push support

I noticed that the support for docker push (image to docker hub) is missing. You may want to add this to the tasks.
gulp.task('docker-publish', ['docker-build'], done => {
  dockerManager
    .push(docker_image, this.workDir)
    .then(function() {
      // gutil.log(m);
      done();
    }, function (err) {
      gutil.log(err.message);
      done();
    });
});

:+1:


Added install for windows

Fixed the install for windows

Can a windows user just confirm these instructions are correct and then merge this?

There should absolutely be a mention of installing Docker Compose for both Windows and Linux users. As it turns out, only the Mac version of Docker Toolbox includes Compose. pip install docker-compose looks like the easiest way to get it.
The rest of the instructions should not be necessary—the Docker Quickstart Terminal is supposed to create a new default machine when you first load it. It should also run the equivalent of eval $(docker-machine env dev). I may be wrong, though. I haven't tried on Windows myself.

I just used the default machine rather than trying to create a new machine, so I didn't run into the problem that @johndeyrup had with specifying a machine. I also don't remember having to install compose separately from the toolbox.
@arvvvs Did you have any issues?


Is there way to disable or postpone client authorization?

On my project, I have an urgent need to delay authorization or even disable client but load the module. Perhaps there is a way to inherit from NestTwilioModule and somehow make delayed authorization? The matter is that from start I do not have accountSid and authToken to authorize.

What do you mean by not having the accountSid and authToken from the start, can you elaborate on why and how you pull the credentials and why that is "delayed?

In short - application is a microservice. It's starts right away, but receive some configuration when other microservice is started. No, there is no other hacky way to do it, if you want to ask that. Even worse, I have v1.2.0, so I don't think pull request for v3.0.0 from me will help much. Another way is somehow disable module (Twilio client initialization), and then restart whole aplication when credentials is received.

Not out of the box, I'd recommend taking a look at async providers here and/or, perhaps, lazy loading modules here. The whole package is a wrapper around the twilio SDK, and this sounds like it could be a more nest-related question. I'd be happy to try and debug if you were to provide a minimal reproduction.
The async providers could be the way to go in the case of wanting to delay the module registration.

I just forked version 3 and did a very neat hack for lazy client initialization with a boolean flag that client is initialized. I'm closing  issue.


Not persisting state.

I tried using this library for persisting. However, state is not persisting, and errors show but are not so descriptive.
My main file:
final persistor = Persistor<AppState>(
  storage: FlutterStorage(),
  serializer: JsonSerializer<AppState>(AppState.fromJson),
  debug: true
);

AppState initialState;

Store<AppState> store;

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  initialState = await persistor.load();

  store = Store<AppState>(
    reducer,
    initialState: initialState,
    middleware: [persistor.createMiddleware()]
  );

  final HttpLink httpLink = HttpLink(
    uri: 'http://<IP_ADDRESS>:3000/dev/graphql'
  );

  final AuthLink authLink = AuthLink(
    getToken: () => 'Bearer ${store.state.authToken}'
  );

  final Link link = authLink.concat(httpLink);

  getIt.registerSingletonAsync<ApiClient>(() async {
    final apiClient = ApiClient(
      client: GraphQLClient(
        cache: InMemoryCache(),
        link: link,
      ),
    );

    return apiClient;
  });

  BlocSupervisor.delegate = SimpleBlocDelegate();

  runApp(App(store: store));
}

AppState:
class AppState {
  List<Item> cart;
  String authToken;
  CognitoUser user;

  AppState({ this.cart, this.authToken, this.user });

  AppState.fromAppState(AppState another) {
    cart = another.cart;
    authToken = another.authToken;
    user = another.user;
  }

  double get cartTotal {
    double total = 0.00;

    if (this.cart == null) return 0.00;

    for (Item item in this.cart) {
      total += item.price;
    }

    return total;
  }

  static AppState fromJson(appState) {
    if (appState != null)
      return AppState(
        authToken: appState['authToken'],
        user: CognitoUser(
          appState['user']['username'],
          CognitoUserPool(
            'XX-XX-XXXXXXX',
            'XXXXXXXXXXXXXXX'
          )
        )
    );

    return AppState();
  }

  dynamic toJson(dynamic json) {
    return {
      "authToken": authToken,
      "user": {
        "username": user.username
      }
    };
  }
}

Logs:
flutter: Persistor debug: Starting save...
flutter: Persistor debug: Running save transformations
flutter: Persistor debug: Serializing
flutter: Persistor debug: Error while saving: Converting object to an encodable object failed: Instance of 'AppState'
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Converting object to an encodable object failed: Instance of 'AppState'
 #0      _JsonStringifier.writeObject (dart:convert/json.dart:659:7)
 #1      _JsonStringStringifier.printOn (dart:convert/json.dart:846:17)
 #2      _JsonStringStringifier.stringify (dart:convert/json.dart:831:5)
 #3      JsonEncoder.convert (dart:convert/json.dart:260:30)
 #4      JsonCodec.encode (dart:convert/json.dart:168:45)
 #5      JsonSerializer.encode (package:redux_persist/src/serialization.dart:28:35)
 #6      Persistor.save (package:redux_persist/src/persistor.dart:155:29)
 #7      Persistor.createMiddleware.<anonymous closure>.<anonymous closure>(package:redux_persist/src/persistor.dart:67:56)
 #8      _rootRun (dart:async/zone.dart:1180:38)
 #9      _CustomZone.run (dart:async/zone.dart:1077:19)
 #10     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
 #11     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
 #12     _rootRun (dart:asy<…>

I'm testing on iOS.

So I was not making the right mutation on login, so now is fixed. And the above error was due to trying to persist empty state.


Add workflow to run schematron benchmark

Add a new workflow that runs the benchmark in the SDK Analyzer.
This workflow will fail if the results show that the rules are slower that expected, and it will add a comment on the commit that triggered it.
See for example: https://github.com/OP-TED/eForms-SDK/commit/06d428a2110cb4886e90e0e8f9b0f0dd36ea9a7c
Several commits here were for testing, and various attempts to make it work, and they were reverted, so better to look at the overall diff.

Is there a ticket for this?

Is there a ticket for this?

Same as for the changes in ESA: TEDEFO-3637
Failures for "Build and analyze eForms SDK" are expected, because the content of the SDK in develop is currently inconsistent.


happy/alex won't install

If happy/alex are not already installed, installing them fails. Example: http://lpaste.net/raw/5790589760187662336
It seems to be related to specifying a custom package database, because I have the same problem with Stackage's shake branch when running runhaskell Setup.hs configure with the custom db. However, cabal install alex happy without any sandbox seems to succeed. So there's something lying there in the difference of those two.

Here is a more precise repro showing the difference: http://lpaste.net/raw/1166620959927435264
No sandbox: okay, sandbox: fail.

Opened Cabal bug: https://github.com/haskell/cabal/issues/2462

I'm thinking that @dysinger's workaround is the most pragmatic solution here. @chrisdone can you make a decision on that front?

If we're fine with just adding it to the docker image I'm fine with that.

@manny-fp already has this in the PATH when he builds so that's fine for him too.

The cabal issue is open and it's reproducible in HEAD so I'll close this and let it continue there.


求思路：SeaJS and Unit Test，基于SeaJS的项目如何做单元测试？

我的Java web前端基于SeaJS，也使用到了jQuery。现在想把单元测试加上。请问该怎么做？包括使用哪些测试工具、框架。。
Asking for help, that how I can add unit test to my Java Web project whose front end is based on seajs?
Just tell me which framework I should use. I am a fresh man in IT.
Thanks in advance.

https://www.cnblogs.com/SCOOL/p/4372090.html

https://www.cnblogs.com/SCOOL/p/4372090.html

thanks a lot


Add branch name to slack notification

          Original issue by @nvh - Imported from fastlane/scan#14

It would be nice if the notification in slack (optionally) shows the branch name that the tests were run with.

This would be incredibly useful to have, even if it just takes the form of a custom message.

@esteluk Thanks for following up. I'm going to send out your PR so we can get some eyes on it. 👍

Ta :)

I have a similar use case in my company. We want to add to Slack’s scan results message much more content (for example, a link for the build in the CI system and the list of commits that cause test failures).
The suggested solution doesn’t cover our need because attachment doesn’t support markdown formatting.
May I suggest another PR, based on setting Slack’s message text as the optional ‘slack_message’ argument (instead of inserting this argument as an attachment)?


Blacklist USB-Storage to pass CIS scan

Overall Review of Changes:
Blacklisted usb-storage in /etc/modprobe.d/blacklist.conf
Issue Fixes:
Using the CIS Benchmark we can see that this rule will fail because it was not blacklisted. Now the scan will pass
Enhancements:
How has this been tested?:
Using ansible

hi @rspataru
Thank you for taking the time to raise this PR, Great catch and happy to add unfortunately we do need to have it signed off and signed for every commit.
The requirements can be seen in CONTRIBUTING.md.
Many thanks once again
uk-bolly

hi @rspataru
Thank you once again for raising this and providing the fix.
I have added this fix into the latest updates (will be in devel and main later today) and credits are given for your work.
thank you again
uk-bolly

Hi! No worries, i saw some other fixes that need to be made. When i have
some free time I will create some PR's. Have a good day!
On Thu, Aug 10, 2023 at 10:44 AM uk-bolly @.***> wrote:

hi @rspataru https://github.com/rspataru
Thank you once again for raising this and providing the fix.
I have added this fix into the latest updates (will be in devel and main
later today) and credits are given for your work.
thank you again
uk-bolly
—
Reply to this email directly, view it on GitHub
https://github.com/ansible-lockdown/UBUNTU22-CIS/pull/50#issuecomment-1672726721,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3VRSGGKC3NHSE2H63LDP3TXUSGPBANCNFSM6AAAAAA2PS25HU
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Radu Spataru
Associate DevOps Engineer
[image: 8x8.com logo] https://www.8x8.com/
One platform. Every communications experience.
Learn more → https://www.8x8.com/


Add support for celery multi queue

I'm adding support to multi celery queue.
The goal is to have multiple worker, one for each queue.
This doc talk about worker environment but nothing about kubernetes deployment

@nniehoff any news about this PR ?

@FloLaco I'm probably not going to get to this for a while I'm actually on PTO for 1.5 more weeks... I like what you've done here, have you tested this locally?   If you've tested this and I'll try to get some testing locally I'd like to get this into the helm 1.x chart.  Have you checked the pre-commit checks, I believe they should be passing as well.

@FloLaco Thanks so much for this idea, it really led to some larger changes with the release of version 2 of the helm chart with #194 the official release is coming soon.  As this is OBE now I will close this PR, however please let me know if you have any issues with v2.


Discord Rich presence not working.

I have it enabled I re-installed bloxstrap I wounded it doesn't appear because I have a discord Client on (Vencord) Would that change if it allows it to appear?

Do you have any other programs that use rich presence which work?

with vencord you must go into the settings folder, open settings.json and set the notrack plugin to false, and it should fix it. or at least that worked for me. also disable roblox from showing up as a registered application.

how do I open vencord  settings folder

is it because I use vencord with discord it's not allowing me to use rich presence???

even without vencord it still does it

I have it enabled I re-installed bloxstrap I wounded it doesn't appear because I have a discord Client on (Vencord) Would that change if it allows it to appear?

Can you try to use the official unmodified version of Discord to confirm that official works but not modded?

Issue has been awaiting clarification for over a month, closing as stale. If you have anything further to add, just respond and I'll reopen.

Do you have any other programs that use rich presence which work?

The same issue is happing with me, i have vencord and i tried the settings.json method, i am using spotify and medal in the background, i tried reinstalling discord and bloxstrap and even tried it without vencord, but nothing worked. (also im on windows 10 if that matters)

you need to be on online status

you need to be on online status

Nope didnt work

Nope didnt work

Make sure:

You are Online/Idle/DND on Discord.
Have DiscordRPC toggled on in your Bloxstrap settings.
In your Discord settings that Activity Privacy > "Share your detected activities with others" is toggled on.
Check in your Discord settings > Registered Games that Roblox doesn't have "Toggle Detection" (the eye icon) isn't Red, if it is Red then you need to click it again to make it a Light Grey.

^
man, at this points i dont even know what could it be even if i did all said on the comment on top.
ill just maybe wait for an new bloxtrap version and pray so it can be fixed.


Front end compatibility issues

Hello, is there a browser compatibility issue with version 8.0.1? At present, I find that only Google and Firefox are compatible. And in the performance analysis, the console will report errors.

We mainly focus on Chrome and Firefox only, as they are popular. We don't have enough frontend contributors to check across all browsers.


release-2024.3.24

Draft -> just to recreate release artifacts for administration and backend, since they were cleared
Will be closed soon

since we probably gonna create a new beta release and promote that after testing, i'm gonna close this pr


Amalladi/extendedlocation update operationID field

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[x] Other, please clarify: Updating existing version's operationId field, to be able to generate REST API Docs in accurate format. Updating ListOperations example.

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of "no breaking changes"
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[ ] Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.

[ ] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

@qwordy If the PR is approved can this be merged?

@leni-msft Have created the required WI: https://msazure.visualstudio.com/One/_workitems/edit/10776915

@leni-msft This PR has gotten breaking change approval, can this PR merge?


[Suggestion] Return RxJava2 specific types in RObjectRx

Expected behavior
Actual behavior
So I recently noticed the existence of RedissonRxClient which returns RObjectRx with Flowables.
To me this is a missed opportunity. One of the biggest reasons I prefer RxJava2 over Reactor Core is that it has distinct types for 1 element, 0..1 element, and 0 element, instead of just having Mono.
IMO RObjectRx should be returning RxJava2 specific types. For example, Flowable<Void> restore(byte[] state); should be Completable restore(byte[] state);, and Flowable<Boolean> isExists(); should be Single<Boolean> isExists();. And if the user wants standard reactive streams types, they still have the option of using RedissonReactiveClient, or they can easily call methods like Single.toFlowable().
Steps to reproduce or test case
N/A
Redis version
N/A
Redisson version
3.9.1
Redisson configuration
N/A

You could simply transform Flowable with Single.fromPublisher or Completable.fromPublisher method.

Well, that's exactly my point. You can also do that with RedissonReactiveClient, so RedissonRxClient is not providing much benefit for RxJava2 users over RedissonReactiveClient.

Done. Thank you for the suggestion!


We could drop ajax to make the feed page look more solid

The idea is basically passing a date range as a query to the community_feed page and use that for filtering.
/community_feed?start=2016-04-01&end=2016-10-01
then the user could use the date picker as he is doing now, but he would have to press a button to  reload the page with different query parameters
pros:

No needs of ajax, simpler code, single endpoint
It is easy to add other parameters (eg) a search filter on the content or on the kind of post, just add them to the form
we'd obtain a bookmarkable search
would look better, because the user doesn't see a the content changing "live" on the page... in theory this shouldn't be a problem, but we don't have any loading indicator, so the user doesn't even know if the new content has been loaded or not.

cons:

ajax is already implemented

closing, as the page was moved to vue.js


ops/e2e-runner-build.cloudbuild.yaml does not exist

When running ./setup.sh the process fails, since ops/e2e-runner-build.cloudbuild.yaml does not exist when called in
configure_delivery.sh.

This was resolved by #919


Comparison method violates its general contract!

Hi,
WildFly 30 includes version 3.1.5
There on startup we can see a bug like https://github.com/smallrye/jandex/issues/289
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYSRV0156: Failed to index deployment root for annotations
at org.jboss.as.server@22.0.1.Final//org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:93)
at org.jboss.as.server@22.0.1.Final//org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:34)
at org.jboss.as.server@22.0.1.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:171)
... 8 more
Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.base/java.util.TimSort.mergeLo(TimSort.java:781)
at java.base/java.util.TimSort.mergeAt(TimSort.java:518)
at java.base/java.util.TimSort.mergeCollapse(TimSort.java:448)
at java.base/java.util.TimSort.sort(TimSort.java:245)
at java.base/java.util.Arrays.sort(Arrays.java:1307)
at java.base/java.util.ArrayList.sort(ArrayList.java:1721)
at io.smallrye.jandex//org.jboss.jandex.Indexer.propagateTypeParameterBounds(Indexer.java:2570)
at io.smallrye.jandex//org.jboss.jandex.Indexer.complete(Indexer.java:2550)
at org.jboss.as.server@22.0.1.Final//org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:89)
... 10 more
BR

That is weird, Jandex 3.1.5 should include the fix. Can you by any chance share the deployment that causes the issue?

Hi,
As far I can debugging in to the lib, it is a comparative thing but not exactly the same error.
There are some limitations so I can't include here the deployment, Sorry.
Do you have some example to compare with.
Maybe the maven ear/war plugin is adding some non expected content.
Br

Understood. I will look at the comparator implementation again, perhaps I will spot a mistake, but I'm not holding my breath.
If you have some time, it should be possible to trim down your deployment to a minimal reproducer like this:

Find the JAR that makes Jandex fail.
 Pay extra attention to nested classes, as those are most likely to cause the problem. Keep doing that until indexing succeeds. Then put the class files removed in the last iteration back, remove some other ones, and repeat.

It should be possible to trim down the JAR to a small number of files that cause the problem. Then, you should be able to recreate a small JAR with mostly empty classes that exhibit the problem.
If you could do that, I'd be grateful, but I understand you most likely don't have the time for that.

Hi,
Here are the results.
All indicates that manually there are no error on indexing.
Maybe is related to the way Wildfly is using the lib.
#:~/Downloads> java --version
openjdk 17.0.9 2023-10-17
OpenJDK Runtime Environment
OpenJDK 64-Bit Server VM (build ###-###, mixed mode, sharing)
#:~/Downloads> java -jar ~/install/wildfly-30.0.0.Final/modules/system/layers/base/io/smallrye/jandex/main/jandex-3.1.5.jar myear.ear
Wrote /home/base/myear-ear.idx in 0.0300 seconds (0 classes, 0 annotations, 0 instances, 0 class usages, 21 bytes)
#:~/Downloads> java -jar ~/install/wildfly-30.0.0.Final/modules/system/layers/base/io/smallrye/jandex/main/jandex-3.1.5.jar interface.war
Wrote /home/base/interface-war.idx in 0.0410 seconds (1 classes, 1 annotations, 2 instances, 28 class usages, 638 bytes)
#:~/Downloads> java -jar ~/install/wildfly-30.0.0.Final/modules/system/layers/base/io/smallrye/jandex/main/jandex-3.1.5.jar services.war
Wrote /home/base/services-war.idx in 0.2600 seconds (451 classes, 44 annotations, 2653 instances, 5424 class usages, 245047 bytes)
Br

I don't think that java -jar jandex.jar my.war (or my.ear) will reproduce the problem, because that will only index the .class files present in the WAR (or EAR), but will ignore nested JARs. You first need to find the JAR that exhibits the problem.

Hi, Thank's
@Ladicek
Issue found.
It was a dependency not compliant with latest java. I had to configure it to run as legacy:
-Djava.util.Arrays.useLegacyMergeSort=true
Br

Is that dependency an opensource library? I would still like to find out the cause and fix the bug (because it is a Jandex bug).

Hi,
Unfortunately it's a proprietary one.
We are opening a bug for them to review this issue.
Br

Hi,
The mentioned dependency is https://www.jxcell.net/
Br

Interesting, I tried to download the ZIP from their website and index the jxcell.jar, but it worked just fine, no error. Even Jandex 3.0.0 (which has the bug) was able to index the JAR. Maybe there's a difference between their trial version and what you actually have :shrug:

Yes we also notice that.
The version we buy (as per the jxcell team) include this bug.
The latest seams not to have this problem.
BR.

Hi @yosvanyllr, I have a Jandex branch here https://github.com/Ladicek/jandex/commits/index-postprocessing-sort/ that tries to avoid the problem altogether by sorting classes in a completely different way. I'm running tests myself, but if you could build Jandex from that branch, replace the Jandex JAR in your WildFly with that build and test, that would help. Thank you!

Hi @Ladicek
Here I'm sharing with you the problematic lib jar
jxcell.gz

Thanks!

Hi, sorry for not getting to this sooner, I was busy with a few other things. Also, it took me a while to actually understand the problem -- the suggestions in my previous comments here were rather useless in this particular case. I eventually had to resort to a brute force approach and write a checker that verifies whether given Comparator indeed establishes a total order on a given set of values, using the actual definition of a total order. This has immediately shown where the problem is.
It also turns out that the experiment with a different comparator was actually a good idea, because that implementation in fact does provide a total order.
Fix is in #352.

Hi @yosvanyllr, this should be fixed now in Jandex 3.1.7. I don't know when WildFly picks it up, but you should be able to replace any Jandex 3.1 release with 3.1.7 if you want to verify that the fix is effective.

Thank you @Ladicek  for the update.
We are updating our intallation by downloading this new version.
BR


Add bootstrap styles to nav

Purpose
Navigation has no styles and is displayed as a vertical list with the default list-styles.
Proposal
It should use the bootstrap navbar classes so it is displayed horizontally.

[x] Override the Django CMS menu to set proper classes on the elements
[x] Use @extend to set bootstrap navbar styles on them
[x] Drop some FUN-specific styles that do not belong in this project and affected the navbar look

It's so sad that not all bootstrap component styles are available as scss mixins.


Animations

Codecov Report

Merging #133 into development will increase coverage by 0.02%.
The diff coverage is 33.33%.

@@               Coverage Diff               @@
##           development     #133      +/-   ##
===============================================
+ Coverage        86.81%   86.83%   +0.02%
===============================================
  Files               20       20
  Lines              508      509       +1
===============================================
+ Hits               441      442       +1
  Misses              67       67

Impacted Files
Coverage Δ

src/multiselect/index.js
67.69% <0%> (ø)
:arrow_up:

src/select/index.js
86.04% <50%> (+0.33%)
:arrow_up:

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 f4ca6c8...1a58610. Read the comment docs.

In terms of functionality multi select has some issue. I believe the other PRs will fix it. If not we will fix with another PR.


Feature Request(?): Changing playback speed (rate) for only part of the video

Hi there. I love using this tool to make quick edits of gameplay clips to send to friends and sometimes I desire the ability to make part of the clip play in slow-motion, but from what I can tell, the Rate effect can only be applied to the entire clip, and not just a small section of it.
While I'm aware this tool is (or was) just really meant to easily make small videos for posting on various Malaysian basket weaving websites, and turning this into a full-fledged video editor might be out of scope, but this would be a handy reason to not open a whole video editing suite just for quick clip editing.
Ideally, one could simply specify a From and To field in the Rate controller, to make it apply from and to the specified part of the clip. (I could see this being an issue with clips that have been Trimmed already as maybe the program is not aware of the new clip length until after conversion?)

Feature added, check tutorial to learn how use it.

Could you remove the 200% cap on the dynamic rate?


Find a way to make using select less likely to starve a receiver

Currently if elif or break is used when handling ready receivers is used, it could starve the receivers that come after it, which is not a good thing.
Ideally we should find a way to either forbid the use of elif or break or revisit #27.
Originally posted by @leandro-lucarella-frequenz in https://github.com/frequenz-floss/frequenz-channels-python/pull/62#discussion_r1108415791

If we go for #27, we kill the feature to let users manage priorities themselves, and this was cited in the past as a nice feature of select. This was an example given:
timer = Timer(3.0)
select = Select(bounds=bounds_recv, timer=timer)
latest_bounds = {}

while await select.ready():
    if msg := select.bounds:
        latest_bounds[msg.inner.name] = msg.inner.value
        set_bounds(latest_bounds)
        timer.reset()
    elif select.timer:
        set_bounds(latest_bounds)

https://github.com/frequenz-floss/frequenz-channels-python/issues/29


[Bug]: The Contributing file (CONTRIBUTING.md) has broken links

Language
All
Version
latest
Description
The file contributing.md  has two broken links in the "Legal" section.
Consider deleting this entire section:

Alternatively, download the agreement (Microsoft Contribution License Agreement.docx or Microsoft Contribution License Agreement.pdf), sign, scan, and email it back to<EMAIL_ADDRESS>Be sure to include your github user name along with the agreement. Once we have received the signed CLA, we'll review the request.

The links point off to codeplex, which doesn't really exist anymore.

thanks @cleemullins, long time no chat :)


refactor!: remove ignore NPM configuration

I think this is a standalone change for the changelog (change the target branch)


Fix README.md to set heroku settings properly

heroku info -s returns 'web_url' instead of 'web-url'. Without this fix, following the instructions allow to deploy the app, but it's not working.

Great work, thanks @danigb!
Sorry, it's me being inaccurate while writing the README.md.
Thank you for your attentiveness. Merging it.


Restore log/.gitkeep

Partial revert of ab4fa873 and 432531f6. Now that appliances are RPM-based,
the original git-based rationale for removing this no longer applies.
Replacement PR for #21327
@bdunne @kbrock Please review.


Raspberry pi camera board

It´s posible to use your lib sarxos with raspberry pi camera module??
I try to work with this but sarxos lib don´t recognize the camera pi but if I put other camera in usb connector the lib recognize but work very slow with many jumps.
thank´s

Hi @charlie23k,
You will not achieve fantastic results with UVC (USB Video Device) due to GPIO/CPU limits of RasPi. 5 FPS with USB webcam is max what I was able to achieve in the past.
In regards to RasPi Camera Module, have you followed these instructions?
https://github.com/sarxos/webcam-capture/wiki/How-To-Configure-Raspberry-Pi

Yes but throw an exception.
import javax.swing.JFrame;
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
import com.github.sarxos.webcam.ds.v4l4j.V4l4jDriver;
public class WebcamPanelExample {
static {
     Webcam.setDriver(new V4l4jDriver());
}

public static void main(String[] args) throws InterruptedException {

    System.out.println(System.getProperty("os.name").toLowerCase());
    System.out.println(System.getProperty("os.arch").toLowerCase());
    System.out.println(System.getProperty("os.version").toLowerCase());

	Webcam webcam = null;
	webcam = Webcam.getDefault();
	System.out.println(Webcam.getDefault());
	WebcamPanel panel = new WebcamPanel(webcam);
	JFrame window = new JFrame("Test webcam panel");
	window.add(panel);
		window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		window.pack();
		window.setVisible(true);
}

}
and the result is the next:
Exception in thread "main" java.lang.NoClassDefFoundError: com/github/sarxos/v4l4j/V4L4J
at com.github.sarxos.webcam.ds.v4l4j.V4l4jDriver.(V4l4jDriver.java:33)
at id.samplecam.WebcamPanelExample.(WebcamPanelExample.java:16)
Caused by: java.lang.ClassNotFoundException: com.github.sarxos.v4l4j.V4L4J
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 2 more
thank´s

I try to work with sarxos lib with raspberry-pi camera module. its possible??

@charlie23k,
Yes, it's possible to use Webcam Capture API with RasPi Camera Module.
The NoClassDefFoundError clearly states that you are missing some classes. This is because you haven't add required JARs into your application's classpath.
On the page I linked in the previous post:
https://github.com/sarxos/webcam-capture/wiki/How-To-Configure-Raspberry-Pi
There is a statement:

The following JARs are required:

The webcam-capture-driver-v4l4j JAR can be found here, and
The V4L4J JAR itself which can be found here (the project and source code is available here).

Which means that you have to download them and add to your application's classpath. Otherwise the code will not work and will rise exception same as yours. You are missing JAR from second bullet (V4L4J). It can be found here:
http://search.maven.org/#artifactdetails|com.github.sarxos|v4l4j|0.9.1-r507|jar


Fix item 'first_seen' query

Type: generic-bugfix
Why is this change necessary?
The 'First Seen' datetime on the Items page was showing as the Last Modified
time.
Netflix bug report https://github.com/Netflix/security_monkey/issues/377
This change addresses the need by:
The view tried to reorder the item.revisions relationship to ascending, which
did not work because it was decending in the relationship declaration. Added
a seperate ascending query to get the first seen
Potential Side Effects:
Adds additional DB queries to the items list page, but the impact should be
very small because of pagination. The dashboard used a different path.

This doesn't seem to have corrected the problem for me.

oh nevermind - I'm looking at a branch that doesn't have this commit merged in.


fix: Autohook silently failing issue #36

Problem
By default, ngrok tunnels without an authtoken will be terminated within a certain time period thereby failing silently the autohook after a few hours of uptime.
Solution

Added provision to pass ngrok authtoken so that if authtoken is passed, it will make a connection using auth token giving a  stable ngrok tunnel to connect to.

Result
This will solve the issue at which autohook silently stops listening to requests after certain hours of uptime. It will potentially solve issue #36

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks @iamdaniele for the detailed review. I have made some changes. For the style issues, I think it would be great if we have a eslint config enforcing them so that we can see it right away from the code editor.


Add a feature allowing for custom filenames.

After discussion, it seems that a custom filename option is more preferable than the zoom/at/lng filename that was previously implemented. This feature provides a dropdown that allows for the user to enter a custom filename, or opt not too, then click a confirm button that will initiate the download. The default filename, if none is provided, is overture.geojson. A video demoing this is provided below.
https://github.com/OvertureMaps/io-site/assets/69924736/1e8d6f5e-e861-422f-b681-af63cd6db0e5

Here is a demo of the updated file-naming option box. The background and overall colorings should better match the rest of the site now, and it has switched from Material to Radix to decrease unneeded dependencies.
https://github.com/OvertureMaps/io-site/assets/69924736/505fecf9-bf8a-40cb-b2d7-f40998fb81d2

This work is going in a good direction- after discussing, @eti7075 and I have decided to shelve the 'download options' and move to a more general-purpose settings / preferences panel.


add input component

added input component with matching styling and included on main page.  also can find usage example at here

Hey @cdreetz I just wanted to say I appreciate you taking a shot at making a component. And while I'm going to change this in what I have upcoming, I wanted to get you into the history of this repository because it was a very cool thing you did.
Thanks for checking out the project.


VSIX: XpandModelEditor displays duplicate records in SDK format projects

They work fine though

eXpand.lab release 19.1.402.13 includes commit that relate to this task:

VSIX: Fix duplicate model records #462

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.
Thanks a lot for your contribution.

Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.


chore(sqllab): Remove schemaOptions from redux store

SUMMARY
As a followup step of the react-query migration (#21240), this commit migrates the schemaOptions state from redux to react-query to reduce the complexity of the queryEditor state.
(The schemaOptions state only used in the editor for autocomplete so useQuery is a lighter way to share the state)
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

After:

Before:

TESTING INSTRUCTIONS
Go to sqllab and select a database to get the associated schemas
Type some part of the schema name on the editor and check the autocomplete including the fetched schemas
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

cc: @ktmud

Hi @justinpark @ktmud. We have ongoing discussions to update Redux to the latest version which could potentially introduce a conflict with react-query given that Redux RTK is in the same domain space. Maybe it would be a good idea to discuss this in a SIP before moving forward?

@justinpark We have been discussing that our current Redux version precedes Redux Toolkit which makes the developer experience way more complex than it needs to be. Our plan was to upgrade Redux to the latest version as the first step to start organizing the Redux state, which would already help with new code. Can you help us migrate Redux to the new version to continue your improvements using RTK instead of React Query? If not, we can talk with @john-bodley and maybe I can help with the upgrade.

@michael-s-molina we've already decided to move on RTK already, i'm happy to change React query by RTK.
Let me create new PR for it.

@michael-s-molina If we've already decided to move on RTK, i'm happy to change React query by RTK. Let me create new PR for it.

Nice! Thank you for the improvement.

@rusackas I'm not sure if @justinpark was planning to merge this PR given that he's working on the RTK alternative. @justinpark should we revert or it's ok?

Oops, was on a roll merging mergeable things. Sorry if I got a little trigger happy.

@michael-s-molina this should be okay since I'm tracking of react-query migration by rdk-query.
I can include this updates too.


Is it possible to compile a static winpty library?

Unfortunately I am not very familiar with static compilation with mingw. Apparently, just removing -shared from the Makefile does not work....

@gaborcsardi
I know this question is old, but answer might be helpful if you or anyone else is still wondering about it: Yes it is. I have recently done it with LLVM/CLANG here, for U++. You need to slightly modify the winpty source code, but it is all trivial stuff.

@ismail-yilmaz Awesome! Thanks very much for letting me know!


Support AzureML in Gov cloud

Resolves #3410
What is being addressed
Add Support for AzureML workspace service in Gov cloud
How is this addressed

Source azureml fqdn from the resource
Use rAzureML esource output url to allow it in firewall

/test-extended

/test


can't get list of group versions

GET /v2/groups/group-id/versions
returns
"message": "Failed to wait for future within timeout"

We apparently do not limit the number of versions we keep. Therefore, if the list of versions become very long, you might run into the trouble you are seeing.
We definitely should restrict the number of versions we keep.
Nevertheless, I would really like to check if my theory about your problem is true. Would it be possible for you to create stack traces of the Marathon process shortly after issuing the request (before it finishes)? You can do that by kill -3 or using the jstack command.
Thanks!

@kolloch is there an issue to limit version history?

@bobrik now there is.

Hey @tamarrow do you have limited the number of versions in the store?
The problem you describe can be a result of too many versions.
Use the command line option --zk_max_versions to limit the number of versions stored per entity.

I limited the number to 3, but I still get the same timeout issue. This is the stacktrace I get from Marathon:
[2015-05-13 17:32:29,158] WARN error while calling class mesosphere.marathon.state.MarathonStore.names() for prefix app: (mesosphere.marathon.state.MarathonStore:131)
java.util.concurrent.TimeoutException: Failed to wait for future within timeout
	at org.apache.mesos.state.AbstractState.__names_get_timeout(Native Method)
	at org.apache.mesos.state.AbstractState.access$2200(AbstractState.java:34)
	at org.apache.mesos.state.AbstractState$4.get(AbstractState.java:209)
	at org.apache.mesos.state.AbstractState$4.get(AbstractState.java:181)
	at mesosphere.util.BackToTheFuture$$anonfun$futureToFuture$1$$anonfun$apply$2.apply(BackToTheFuture.scala:35)
	at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
	at scala.concurrent.package$.blocking(package.scala:123)
	at mesosphere.util.BackToTheFuture$$anonfun$futureToFuture$1.apply(BackToTheFuture.scala:33)
	at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
	at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)

Just to make sure: Only restarting marathon with this option does not have any effect, until you change an entity. The limit kicks in after a new version (of that entity) has been created. To see the current state in zookeeper, you can list the marathon state:
$> zkCli
[zk: localhost:2181(CONNECTED) 0] ls /marathon/state

The path /marathon/ is the configured default - please replace with your location.
Then you see all items in all versions.
Do you see a lot of items here, or only the defined number of max versions per item?
If you increase the timeout with --zk_timeout does the problem still remains?

Hey @tamarrow would be nice if you could try this out with 0.9.0-RC1. Does this problem still exists?

works for me!

I will close this ticket then.


Update readme.md

Assignment 7 ready for review by Laura. Unsure of where to add link to portfolio, as portfolio is not ready to show yet. GitHub projects will also be added in the future.

Some changes need to be made as per comments within.
Make the changes and resubmit.
You're almost there!


Updated the package for data-prepper-test-common project

Description
Updates the data-prepper-test-common project to use org.opensearch.dataprepper as the package for all classes.
Issues Resolved
Partially resolves #344
Check List

[ ] New functionality includes testing.
[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[x] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #1809 (4fd76c5) into main (27e39d2) will decrease coverage by 0.13%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #1809      +/-   ##
============================================
- Coverage     93.94%   93.80%   -0.14%
+ Complexity     1472     1470       -2
============================================
  Files           188      188
  Lines          4307     4307
  Branches        355      355
============================================
- Hits           4046     4040       -6
- Misses          177      182       +5
- Partials         84       85       +1

Impacted Files
Coverage Δ

...opensearch/dataprepper/pipeline/ProcessWorker.java
65.71% <0.00%> (-8.58%)
:arrow_down:

.../org/opensearch/dataprepper/pipeline/Pipeline.java
88.40% <0.00%> (-4.35%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Broken download link for windows Installation Guide

In the Windows section, it listed install the Docker Machine binary:
curl https://github.com/docker/machine/releases/docker-machine_windows-amd64.exe
However, the link appears is broken.  Returns: {"error":"Not Found"}
The following command works:
curl -L https://github.com/docker/machine/releases/download/v0.2.0/docker-machine_windows-amd64.exe > /bin/docker-machine

Dang, it should be this.  I will make a PR to correct it


Prettier lint results

I wasn't happy with what github annotations gives you (especially the limit of 10!), so I went ahead and implemented a new way to display the results, which creates markdown. This has a limitation as well (65k), but its much better than the annotations. This is quite a large change, so I understand if you don't want to bother. I got it done and working, so I figured I would offer it up.
Summary Example:

Lint issue Example:

Thanks for your wonderful work! Using Step Summary to display Lint results looks like a great idea.
However, I think that Annotation and Summary have different purposes. Annotation is excellent for confirming remarks in review.
Since there are different use cases, I think it is better to support to each method.

I was originally just doing this work for myself, but when I was done, figured I would offer this up to you for PR (otherwise I wouldn't have changed the main run function like I did here). Let me know if you would like me to make any changes.


Truncation in Refactor Preview panel

Version: 1.59.0 (user setup)
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:13:12.822Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.19043
This was originally reported against the C/C++ extension here: https://github.com/microsoft/vscode-cpptools/issues/7826
There appears to be some truncation that occurs in the Refactor Preview panel.  Repro is fairly simple, but involves using the C/C++ Extension.  Note that the C/C++ Extension does not return the contents of the line replicated in the Refactor Preview panel.  It only provides the range to be replaced, what to replace it with, what Icon to use, text for the group label, etc..  The remainder of the line extracted from the original file appears to be coming from VS Code.
Repro code:
int foo(void)
{
    int foo = 1; // A much longer line that is not trunacated.
}

int main(void)
{
    foo();
}

The repro is to use the Rename feature to change foo to foo2.

code pointer: https://github.com/microsoft/vscode/blob/37c4d4b0a8388543227ac71dbc75ecb257697181/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.ts#L226

code pointer:
https://github.com/microsoft/vscode/blob/37c4d4b0a8388543227ac71dbc75ecb257697181/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.ts#L226

hi, I found that the 'findTokenIndexAtOffset' is calculated from 0, but the range we pass to him is calculated from 1, so we may need to add a -1, both the ‘prefixLen’ and ‘suffixLen’ are required, but the prefixLen is fine without it, because he will continue to look forward, without it it will just be one more loop

code pointer:
https://github.com/microsoft/vscode/blob/37c4d4b0a8388543227ac71dbc75ecb257697181/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.ts#L226

hi, I found that the 'findTokenIndexAtOffset' is calculated from 0, but the range we pass to him is calculated from 1, so we may need to add a -1, both the ‘prefixLen’ and ‘suffixLen’ are required, but the prefixLen is fine without it, when there is only one character, it is only one more loop, and the calculate result of this loop is always 0


Pipelines failing with Internal Errors

Hey all, we've seen the pipelines failing with Internal Errors. We're looking to see what's causing this so we can get them back to normal operation.

The Automated Validation pipeline appears to be operational again.


Per-tenant Cluster Info Metrics

Using the new local agent identification feature, modify the opni_cluster_info metric to use tenant impersonation as described in https://github.com/rancher/opni/pull/1013

This can be started on now that https://github.com/rancher/opni/pull/1060 and https://github.com/rancher/opni/pull/1132 are completed.

In order to efficiently intercept remote write payloads, I'm going to update the metrics plugin to use native prometheus write request protobuf types. This should also be mostly reusable for otel metrics format in the future.

For easier testing of the new metrics, I am adding Grafana support to the test env. Tracked in https://github.com/rancher/opni/issues/1227


[hotfix] fix problem caused by concurrent merge

Motivation
Currently, the master branch is broken due to PR #9444 and #9302 merged concurrently.
This PR fixes this problem.

@sijie please prioritize merging this PR since the master branch is currently broken and this PR fixes it.

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

There appear to still be a test that's failing all the time: https://github.com/apache/pulsar/pull/9546/checks?check_run_id=1864571680


Bookstack Keyckloak integration problem

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
Colleagues, good afternoon! I want to integrate Bookstack with Keycloak. I have a problem: the Keycloak login page opens, I authorize, but for some reason, it does not redirect me back to Bookstack. Here are my configurations:
OIDC_CLIENT_ID: bookstack.example.com
OIDC_CLIENT_SECRET: secret_from_keycloak
OIDC_DISPLAY_NAME_CLAIMS: email
OIDC_DUMP_USER_DETAILS: 'true'
OIDC_GROUPS_CLAIM: resource_access.bookstack.roles
OIDC_ID_TOKEN_PRE_VALIDATE: 'false'
OIDC_ISSUER: https://auth.example.com/auth/realms/Example
OIDC_ISSUER_DISCOVER: 'true'
OIDC_NAME: Login with Keycloak
OIDC_REMOVE_FROM_GROUPS: 'true'
OIDC_USER_TO_GROUPS: 'true'
AUTH_AUTO_INITIATE: 'false'
AUTH_METHOD: oidc
APP_URL: https://bookstack.example.com

after login it returns like this

Exact BookStack Version
latest
Log Content
there no logs
Hosting Environment
In docker solidnerd/bookstack

Hi @umlumpa,
You have OIDC_DUMP_USER_DETAILS: 'true' set currently. This stops the login process and dumps users details on attempted login. Remove that option (or set it to false) and you should get past that debug view.

Since there's been no further follow up I'll go ahead and close this off.


support some mono repos

this also updates the tests to work with a new test-dist-folders structure
this makes it possible to run the tests without mocking the node's fs
TODO:

[x] do an actual deploy with this

This PR deployed using this new version: https://github.com/concord-consortium/foss-simulations/pull/36
More work has to be done in the that repo for top branches to work, but the deployment seems to be working as expected.

@pjanik yes it should fix that issue with the versioned / production releases.


Documentation update for output path in Stats object

Doc updates for https://github.com/webpack/webpack/pull/6405

The pr is merged however the output path does not show up in the stats output to text string, only in JSON, so Im not sure it needs to be documented here

Hmmmm, so maybe add it to the relevant location here?

The PR is merged. @franjohn21 please rebase.

Thanks!


feat: Send Ethereum claims msgs in batches instead of individual transactions

[WIP]
Before we were sending each claim in a separate TX both consuming more gas and more time, as the loop would wait for a full block before sending the next one.
Now we can also process more Ethereum blocks at once.

Codecov Report

Merging #83 (7b4b5a0) into main (0223292) will decrease coverage by 0.84%.
The diff coverage is 91.02%.

@@            Coverage Diff             @@
##             main      #83      +/-   ##
==========================================
- Coverage   48.46%   47.62%   -0.85%
==========================================
  Files          17       17
  Lines        1764     1682      -82
==========================================
- Hits          855      801      -54
+ Misses        849      828      -21
+ Partials       60       53       -7

Impacted Files
Coverage Δ

orchestrator/cosmos/broadcast.go
94.76% <91.02%> (+8.68%)
:arrow_up:


ssl.SSLError when waiting for snapshots to complete

Traceback (most recent call last):
  File "/usr/local/bin/brkt", line 9, in <module>
    load_entry_point('brkt-cli==0.9a1', 'console_scripts', 'brkt')()
  File "/usr/local/lib/python2.7/dist-packages/brkt_cli/__init__.py", line 918, in main
    encrypted_ami_name=values.encrypted_ami_name
  File "/usr/local/lib/python2.7/dist-packages/brkt_cli/__init__.py", line 603, in run
    aws_svc, snap_guest.id, snap_bsd.id, snap_grub.id, snap_log.id)
  File "/usr/local/lib/python2.7/dist-packages/brkt_cli/__init__.py", line 326, in _wait_for_snapshots
    snapshots = svc.get_snapshots(*snapshot_ids)
  File "/usr/local/lib/python2.7/dist-packages/brkt_cli/service.py", line 152, in func_wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/brkt_cli/service.py", line 255, in get_snapshots
    return self.conn.get_all_snapshots(snapshot_ids)
  File "/usr/local/lib/python2.7/dist-packages/boto/ec2/connection.py", line 2460, in get_all_snapshots
    [('item', Snapshot)], verb='POST')
  File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 1171, in get_list
    body = response.read()
  File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 410, in read
    self._cached_response = http_client.HTTPResponse.read(self)
  File "/usr/lib/python2.7/httplib.py", line 543, in read
    return self._read_chunked(amt)
  File "/usr/lib/python2.7/httplib.py", line 585, in _read_chunked
    line = self.fp.readline(_MAXLINE + 1)
  File "/usr/lib/python2.7/socket.py", line 476, in readline
    data = self._sock.recv(self._rbufsize)
  File "/usr/lib/python2.7/ssl.py", line 341, in recv
    return self.read(buflen)
  File "/usr/lib/python2.7/ssl.py", line 260, in read
    return self._sslobj.read(len)
ssl.SSLError: The read operation timed out

Couldn't we close this by now?

Closing this issue.  We're tracking it in JIRA.


[Question]: How to speed up loading&creating VectorStoreIndex?

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
@dosu-bot
As the external data gets bigger and bigger the VectorStoreIndex seems to be getting very slow to create and read, I understand that it takes time to create but why is reading so slow as well? Is there any way to speed it up?
For example, I have a total of 1.5G of text files under '../datasets', which takes about 4000 seconds to create, and about 500s to save and read the created VectorStoreIndex.
Here is my code and settings
llm = OpenAI(temperature=0,
             model="gpt-3.5-turbo"
             )
embed_model = HuggingFaceEmbedding(model_name='facebook/contriever')
Settings.llm = llm
Settings.embed_model = embed_model
Settings.node_parser = SentenceSplitter(chunk_size=2048, chunk_overlap=20)
Settings.context_window = 8192
Settings.num_output = 512
Settings.tokenizer = tiktoken.encoding_for_model("gpt-3.5-turbo").encode

documents = SimpleDirectoryReader("../datasets/").load_data()
nodes = Settings.node_parser.get_nodes_from_documents(documents)
#Creating:
index = VectorStoreIndex(nodes,include_embeddings=True)#it takes 4000s
index.storage_context.persist(persist_dir="../storage/")
#Reading:
index = load_index_from_storage(StorageContext.from_defaults(persist_dir="../storage/"))#it takes 500s

@dosu-bot
What about an acceleration method when reading VectorStoreIndex? Do you have any suggestions?

@dosu-bot
The main time consumption seems to be in the part where getting nodes from documen (see the code), do you have any suggestions about speeding up this part?
documents = SimpleDirectoryReader("../datasets/").load_data()
nodes = Settings.node_parser.get_nodes_from_documents(documents)

@TianyuFan0504 You are using a local model, so it is going to be limited by your hardaware. If you are running on CPU, it will be very slow (it should be running on GPU automatically if you have CUDA installed)
You can also try increasing the batch size for embeddings, but note you may run into memory issues if its too big
embed_model = HuggingFaceEmbedding(model_name='facebook/contriever', embed_batch_size=20)

Oh, is the main time is in loading documents?
It really depends on what kinds of documents you are loading. You can try increasing the num workers
documents = SimpleDirectoryReader("../datasets/").load_data(num_workers=4)

Oh, is the main time is in loading documents?
It really depends on what kinds of documents you are loading. You can try increasing the num workers
documents = SimpleDirectoryReader("../datasets/").load_data(num_workers=4)

hi @logan-markewich, thanks for your help, which helps me lot : )
After further testing, I found that the function get_node_from_documents consumes almost 60% of the time, similar to what is mentioned in these 2 issues: https://github.com/run-llama/llama_index/issues/11025 and https://github.com/run-llama/llama_index/issues/11844.
If I understand correctly, it seems that this function doesn't support running in parallel? I'm trying to build a parallelizable version of this function, but I'm not sure if it's a duplicate of what's already out there.
documents = SimpleDirectoryReader("../datasets").load_data()
nodes = Settings.node_parser.get_nodes_from_documents(documents,show_progress = True)#consumes almost 60% of the time
index = VectorStoreIndex(nodes,include_embeddings=True)

BTW, I found that as the number of documents gets progressively larger, the time savings from specifying or not specifying  num_workers  in the function SimpleDirectoryReader.load_data() becomes less and less.  I'm looking into the cause of this.

You are using simple SentenceSplitter and you can use pipeline(IngestionPipeline) to use the num_workers parameter and there would be significant speedup. The reason I am facing this issue is because of the way SemanticSplitterNodeParser is implemented and hence multiprocessing fails.

It works! Thank you @ksjadeja : )


Uncaught TypeError: Cannot read property 'apply' of undefined

[Enter steps to reproduce below:]

Just typing anything into a .go file causes this
I have autocomplete-gocode installed as well

Atom Version: 0.176.0
System: Mac OS X 10.10.2
Thrown From: autocomplete-plus package, v2.0.2
Stack Trace
Uncaught TypeError: Cannot read property 'apply' of undefined
At /Users/phil/.atom/packages/autocomplete-plus/lib/provider.coffee:46

TypeError: Cannot read property 'apply' of undefined
  at Object.module.exports.Provider.buildSuggestionsShim [as requestHandler] (/Users/phil/.atom/packages/autocomplete-plus/lib/provider.coffee:46:22)
  at /Users/phil/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:115:39
  at Array.map (native)
  at AutocompleteManager.module.exports.AutocompleteManager.scatterRequest (/Users/phil/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:114:27)
  at AutocompleteManager.scatterRequest (/Users/phil/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:1:1)
  at AutocompleteManager.module.exports.AutocompleteManager.runAutocompletion (/Users/phil/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:109:6)
  at /Users/phil/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:1:1

Commands
     -4:58.1 settings-view:open (atom-text-editor.editor)
     -1:10.6 core:close (div.settings-view.pane-item)
     -0:36.0 find-and-replace:show (atom-text-editor.editor.is-focused)
     -0:35.7 core:confirm (atom-text-editor.editor.mini)
     -0:25.1 find-and-replace:show (atom-text-editor.editor.is-focused)
  2x -0:24.5 core:confirm (atom-text-editor.editor.mini)
     -0:02.0 editor:newline (atom-text-editor.editor.is-focused)

Config
{
  "core": {}
}

Installed Packages
# User
autocomplete-gocode, v0.5.0
autocomplete-plus, v2.0.2
go-plus, v3.1.2

# Dev
No dev packages

/cc @atom/core

@manavo Uninstall autocomplete-gocode; it's deprecated and the functionality is in go-plus.

Ah, missed that it's been deprecated, sorry for the silly report!

No worries! Let me know what I can do to make go-plus better :)

I met the very same error with ruby.


Use OTP (One Time Password) for authentication with email

I would like to simplify the authentication process with just a valid email with a verification code.
Meaning that we will drop the basic authentication with email and password.
Checklist

[ ] Refactor the login ui to only include an email field
[ ] Add an OTP code verification  ui

Looks like it is a best practice to combine an Email OTP with other authentication methods. We will go with password.


CVE-2024-4068 - update braces to ^3.0.3

Related:
https://github.com/advisories/GHSA-grv7-fg5c-xmjg
Blocking several packages, but for my own case: mjml > mjml-cli > chokidar > braces

https://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json

Interesting. I see your point, but I assume that all our dependency vulnerabilities alerts are going off now. Would it be unacceptable to suggest changing the caret-ed version? If I understand it correctly, you are "delegating" the resolution of the vulnerability to braces.

Chokidar 4 does not depend on braces.
Chokidar 3 is not supported.