1.3 - A and B

1.3 sentiment analysis (10 points)
Sentiment analysis section of this script: https://github.com/rebeccajohnson88/PPOL564_slides_activities/blob/main/activities/fall_22/solutions/08_textasdata_partI_textmining_solutions.ipynb
A. Subset the press releases to those labeled with one of three topics via topics_clean: Civil Rights, Hate Crimes, and Project Safe Childhood. We'll call this doj_subset going forward and it should have 717 rows.
B. Write a function that takes one press release string as an input and:

Removes named entities from each press release string (Hint: you may want to use re.sub with an or condition)
Scores the sentiment of the entire press release using the SentimentIntensityAnalyzer and polarity_scores
Returns the length-four (negative, positive, neutral, compound) sentiment dictionary (any order is fine)
Apply that function to each of the press releases in doj_subset.

Hints:
I used a function + list comprehension to execute and it takes about 30 seconds on my local machine; if it's taking a very long time, you may want to check your code for inefficiencies. If you can't fix those, for partial credit on this part/full credit on remainder, you can take a small random sample of the 717

Hi Professor @rebeccajohnson88, so I ran the following code:
# storing the list of topics to be matched
topics_match = ['Civil Rights', 'Hate Crimes', 'Project Safe Childhood']
pattern = "|".join(topics_match)

# filtering based on the pattern
doj[doj.topics_clean.str.contains(pattern, regex=True)].shape

and got (856, 6) as my output, instead of having 717 rows.
Am I misunderstanding the instructions? Are we to include rows with more than one matched topics (e.g. Hate Crimes; Project Safe Childhood) or only including rows with only one matched topic (e.g. either one of the three topics)?

Hi Professor @rebeccajohnson88, so I ran the following code:
# storing the list of topics to be matched
topics_match = ['Civil Rights', 'Hate Crimes', 'Project Safe Childhood']
pattern = "|".join(topics_match)

# filtering based on the pattern
doj[doj.topics_clean.str.contains(pattern, regex=True)].shape

and got (856, 6) as my output, instead of having 717 rows.
Am I misunderstanding the instructions? Are we to include rows with more than one matched topics (e.g. Hate Crimes; Project Safe Childhood) or only including rows with only one matched topic (e.g. either one of the three topics)?

either is fine but the 717 rows corresponds to this approach: only including rows with only one matched topic (e.g. either one of the three topics)? so the isin rather than str.contains or method
we filter to press releases with a single topical category for easier interpretation but are fine w/ that or you keeping the multiple topic ones in

Hi Professor!
When you ask;
"Apply that function to each of the press releases in doj_subset."
What kind of input are we expecting?
Would it be 717 lines of content and their corresponding dictionaries?

Hi Professor! When you ask; "Apply that function to each of the press releases in doj_subset."
What kind of input are we expecting? Would it be 717 lines of content and their corresponding dictionaries?

Input should be the contents column and yep all 717 strings
this step just asks you to execute the function --- next question discusses format of output (add the 4 scores as new cols in the dataframe)

Hello! To run the re.sub function, I merged all the entities into a string with the or operator.
spacy_press= nlp(press)     spacy_list = [str(entity) for entity in spacy_press.ents]
 pattern = "r"+'"'+ "|".join(spacy_list)+'"'
Then, I realized that the re.sub remvoves only "Lousiana", not other long proper nouns, such as Louisiana State Penitentiary or "Louisiana Corey Amundson".
How did you solve this issue?

I'm also stuck on the re.sub part of the function. This is what I tried, but it returns an empty string. Any tips?

tagging for @sonali-sr and @YfLiu-61F - the quick advice is:

spacy_test.ents is a special type of tagged objects; calling str(spacy_test.ents) does not produce what you want it to-- it does produce a string but it's a weird string that puts together the entire list of entities
instead, and relating to slack discussion b/t ethan and keya, for each entity in spacy_test.ents, you'll likely want to use list comprehension or something like that to iterate over the distinct entities and then, for each entity, we want to use the ent.text attribute to extract the string form of that entity

tagging for @sonali-sr and @YfLiu-61F - the quick advice is:

spacy_test.ents is a special type of tagged object; calling str(spacy_test.ents) does not produce what you want it to-- it does produce a string but it's a weird string that puts together the entire list of entities
instead, and relating to slack discussion b/t ethan and keya, for each entity in spacy_test.ents, you'll likely want to use list comprehension or something like that to iterate over the distinct entities and then, for each entity, we want to use the ent.text attribute to extract the string form of that entity

This is helpful thank you! I was able to get my function to run but it's not returning what I'd hoped and results in an error. Any  idea where I might be going wrong?

Hi, my code for defining and executing the function looks like this. The results are very unexpected. I was wondering if there is anything wrong with my code. Thank you in advance!

@xinruizhao i think the issue is that you're feeding the function the entire doj_subset data frame rather than doj_subset.contents in your list comprehension- so you probably want to edit it so that you're iterating over doj_subset.contents rather than the whole df (and maybe add print statement to double check)

@xinruizhao i think the issue is that you're feeding the function the entire doj_subset data frame rather than doj_subset.contents in your list comprehension- so you probably want to edit it so that you're iterating over doj_subset.contents rather than the whole df (and maybe add print statement to double check)

Hi Professor, when I changed from doj_subset to doj_subset.contents, the error becomes this. I was wondering if there is anything wrong with the definition of the function.


Fix: .gitignore for .DS_Store file

Hello, everyone in the community 🙂
In the process of analyzing the source code,
I confirmed that the .DS_Store file was included in our Repository.
In the process of removing it,
I also confirmed that .gitignore is not clearly defined.

Thank you. Hadn't noticed.


Obfuscate the password in the connectionstring

Summary of new feature
Saving connection object in variable displays password when using SQL authentication (only when displaying the variable right after connecting)
$sqlLogin = Get-Credential
$connection = Connect-DbaInstance -SqlCredential $sqlLogin -SqlInstance .... -SqlConnectionOnly
$connection
==> includes password in clear-text
Proposed technical details (if applicable)
Would it be possible to obfuscate the password?
Latest version of dbatools as of writing
1.0.137

@lancasteradam Windows authentication is not an option in my specific case. But thanks for the reply and references!


Closes #12278 - added filtering

Description

Issue number and link

https://github.com/CesiumGS/cesium/issues/12278
issue #12278

Testing plan

Author checklist

[x] I have submitted a Contributor License Agreement
[x] I have added my name to CONTRIBUTORS.md
[x] I have updated CHANGES.md with a short summary of my change
[x] I have added or updated unit tests to ensure consistent code coverage
[x] I have updated the inline documentation, and included code examples where relevant
[x] I have performed a self-review of my code

Thanks for the PR @MNPCMW6444!
I can confirm we have a CLA on file for you.

@ggetz Thanks for your CR!
For the purpose of determing what characters are problematic (turns out not all control chars) and TESTING after the patch  I added a full test to sandcastle. but I didn't commit it to PR because I don't think we want it in the sandcastle.
you can see it here - https://github.com/MNPCMW6444/cesium/tree/control-characters-in-labels-causes-the-render-to-stop-%2312278-with-full-test
tell me if you still think I need a unit test or any other comment.

Could you please add a unit test to verify this fix?

@ggetz Thanks for your CR!
For the purpose of determing what characters are problematic (turns out not all control chars) and TESTING after the patch I added a full test to sandcastle. but I didn't commit it to PR because I don't think we want it in the sandcastle.
you can see it here - https://github.com/MNPCMW6444/cesium/tree/control-characters-in-labels-causes-the-render-to-stop-%2312278-with-full-test
tell me if you still think I need a unit test or any other comment.

Hi @MNPCMW6444,

For the purpose of determing what characters are problematic (turns out not all control chars) and TESTING after the patch I added a full test to sandcastle. but I didn't commit it to PR because I don't think we want it in the sandcastle.

We want to make sure there is some kind of repeatable test in place so we can 1) ensure the code is correct, and 2) keep this bug from happening again if the code ever changes. Most of the time, we use unit tests to validate functionality like this (rather than Sandcastle, as you mentioned) as we can run it as part of our CI process.
See the Testing Guide for more information, but for this particular case, I think we want to:

Architect the code so it can be easily tested: In this case I would move filterUnsupportedCharacters to a static function that can be accessed outside of the LabelCollection.js file. If we move it to Label.js like I suggested above, then this would look like:

/**
 * Removes control characters, which will cause an error when rendering a glyph.
 * @private
 * @param {string} text The original label text
 * @returns {string} The renderable filtered text
 */
Label.filterUnsupportedCharacters = function (text) {
  ...
}

Create unit tests for filterUnsupportedCharacters: Add a new set of unit tests to LabelCollectionSpec.js. The sandcastle code you linked to included some great test cases you should be able to re-use! For example:

it("filterUnsupportedCharacters removes emoji characters from text", function () {
  const text = "a😀b";
  const expectedText = "ab";
  expect(Label.filterUnsupportedCharacters(text)).toEqual(expectedText);
});

Add a label unit test: Finally, we should add one test to LabelCollectionSpec.js to ensure the filtering is happening. Since the tests from step 2 should validate the details of the filterUnsupportedCharacters function, this test can be relatively simple, i.e.:

it("filters unsupported characters from label text", function () {
  const text = "my\u200btest\u001Dstring😀";
  const expectedText = "myteststring";
  const label = labels.add({
    text: text,
  });

  expect(label.text).toEqual(text);
  expect(label._renderedText).toEqual(expectedText);
});

What do you think? Could you give it a try?

so i will make the regex simpler with a unicode range and apply it in Label.js, anc create a unit test
one thing im not sure, @ggetz if its a private static method Label.filterUnsupportedCharacters = function (text) { can the set of text access it? how?

if its a private static method Label.filterUnsupportedCharacters = function (text) { can the set of text access it? how?

@MNPCMW6444 Good question! The private tag here affects the generated documentation and generated typescript definitions for the function. It will exclude Label.filterUnsupportedCharacters from the API reference doc and the library typescript definitions, with the intention that Label.filterUnsupportedCharacters will bot be used directly by end users of the library.
It can, however, still be used within the codebase itself, such as inside of the text set function. It can also be used in the unit tests to verify the functionality.

ok, i pushed the new solution @ggetz
thanks

Thanks for the updates @MNPCMW6444! This is looking good!
I pushed two small tweaks:

Incorporate a previously existing filtering rule into filterUnsupportedCharacters
Ensure \t, \n, and \r characters were being honored.

whats the next step @ggetz

whats the next step @ggetz


Building an image get error

LocalAI version:

master I clone yesterday
Environment, CPU architecture, OS, and Version:

Host server ubuntu 22.04, Linux office 6.5.0-17-generic #17~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 16 14:32:32 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
go , golang 1.21.7, python 3.11.5, Docker version 24.0.7, video card nvidia 3080 10gb vram, system memory 64gb ddr4. cuda 12.2
Describe the bug

#26 1.459 go<EMAIL_ADDRESS>(replaced by /home/user/apps/Localai/sources/go-llama-ggml): reading /home/user/apps/Localai/sources/go-llama-ggml/go.mod: open /home/user/apps/Localai/sources/go-llama-ggml/go.mod: no such file or directory
#26 1.461 make: *** [Makefile:269: prepare-sources] Error 1
#26 ERROR: process "/bin/sh -c make prepare" did not complete successfully: exit code: 2

#22 [stage-3  1/23] RUN if [ "true" = "true" ]; then     apt-get install -y ffmpeg && apt-get clean     ; fi
#22 25.78 Preparing to unpack .../21-libiec61883-0_1.2.0-4build3_amd64.deb ...
#22 25.82 Unpacking libiec61883-0:amd64 (1.2.0-4build3) ...
#22 CANCELED
------
 > [builder 4/8] RUN make prepare:
0.422 go mod edit -replace github.com/donomii/go-rwkv.cpp=/build/sources/go-rwkv
0.430 go mod edit -replace github.com/ggerganov/whisper.cpp=/build/sources/whisper.cpp
0.432 go mod edit -replace github.com/ggerganov/whisper.cpp/bindings/go=/build/sources/whisper.cpp/bindings/go
0.434 go mod edit -replace github.com/go-skynet/go-bert.cpp=/build/sources/go-bert
0.437 go mod edit -replace github.com/mudler/go-stable-diffusion=/build/sources/go-stable-diffusion
0.439 go mod edit -replace github.com/M0Rf30/go-tiny-dream=/build/sources/go-tiny-dream
0.441 go mod edit -replace github.com/mudler/go-piper=/build/sources/go-piper
0.443 go mod download
1.459 go<EMAIL_ADDRESS>(replaced by /home/user/apps/Localai/sources/go-llama-ggml): reading /home/user/apps/Localai/sources/go-llama-ggml/go.mod: open /home/user/apps/Localai/sources/go-llama-ggml/go.mod: no such file or directory
1.461 make: *** [Makefile:269: prepare-sources] Error 1
------
Dockerfile:102
--------------------
 100 |     COPY . .
 101 |     COPY .git .
 102 | >>> RUN make prepare
 103 |
 104 |     # stablediffusion does not tolerate a newer version of abseil, build it first
--------------------
ERROR: failed to solve: process "/bin/sh -c make prepare" did not complete successfully: exit code: 2

the file exist :
cat /home/user/apps/Localai/sources/go-llama-ggml/go.mod
module github.com/go-skynet/go-llama.cpp

go 1.19

require (
	github.com/onsi/ginkgo/v2 v2.11.0
	github.com/onsi/gomega v1.27.10
)

require (
	github.com/go-logr/logr v1.2.4 // indirect
	github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
	github.com/google/go-cmp v0.5.9 // indirect
	github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
	golang.org/x/net v0.12.0 // indirect
	golang.org/x/sys v0.10.0 // indirect
	golang.org/x/text v0.11.0 // indirect
	golang.org/x/tools v0.9.3 // indirect
	gopkg.in/yaml.v3 v3.0.1 // indirect
)

To Reproduce

make GO_TAGS=stablediffusion,tts BUILD_TYPE=cuBLAS BUILD_GRPC_FOR_BACKEND_LLAMA=true build
docker buildx build \
  --build-arg BUILD_TYPE=cublas \
  --build-arg TARGETARCH=amd64 \
  --build-arg IMAGE_TYPE=extras \
  --build-arg GO_TAGS="stablediffusion tts" \
  --build-arg BUILD_GRPC=true \
  --build-arg FFMPEG=true \
  -t localai:v2.8.2-cublas-cuda12-ffmpeg \
  .

Expected behavior

create an image
Logs

already provided
Additional context

The inference without a video card works decently, I would like to see how nvidia acceleration works. For build a new image it is necessary to delete replace directive from go.mod who has this error.

UPDATE After manually deleting the replace directive from Localai/go.mod I managed to build the image successfully, so there is an error somewhere. The image build should work without hardcode. I hope this information is useful for anyone who needs to build an image.

the build can sometimes fail randomly if you hit the github rate limiter. it does not throw an error until much later. I would say try again and watch the pulling of the github files and check for anything that fails while pulling.  i have all of these settings the same altho i do not "make" i rebuild the image for my cpu arch. altho one thing i notice is your image is out of date. the 2.9.0 image is available. i would honestly say if you use the latest image from "quay" it will verify that it does indeed build (even master-cublas-cuda12-ffmpeg) and then you can rebuild if needed but if your cpu supports avx2 i do not think you need to rebuild.
GO_TAGS=stablediffusion,tts BUILD_TYPE=cuBLAS BUILD_GRPC_FOR_BACKEND_LLAMA=true

the build can sometimes fail randomly if you hit the github rate limiter. it does not throw an error until much later. I would say try again and watch the pulling of the github files and check for anything that fails while pulling. i have all of these settings the same altho i do not "make" i rebuild the image for my cpu arch. altho one thing i notice is your image is out of date. the 2.9.0 image is available. i would honestly say if you use the latest image from "quay" it will verify that it does indeed build (even master-cublas-cuda12-ffmpeg) and then you can rebuild if needed but if your cpu supports avx2 i do not think you need to rebuild.
GO_TAGS=stablediffusion,tts BUILD_TYPE=cuBLAS BUILD_GRPC_FOR_BACKEND_LLAMA=true

tts: enables text-to-speech with go-piper requires REBUILD=true

Have exactly the same issue on a macos. Don't think this has to do anything with github rate limiting as the file already exists locally.

the build can sometimes fail randomly if you hit the github rate limiter. it does not throw an error until much later. I would say try again and watch the pulling of the github files and check for anything that fails while pulling. i have all of these settings the same altho i do not "make" i rebuild the image for my cpu arch. altho one thing i notice is your image is out of date. the 2.9.0 image is available. i would honestly say if you use the latest image from "quay" it will verify that it does indeed build (even master-cublas-cuda12-ffmpeg) and then you can rebuild if needed but if your cpu supports avx2 i do not think you need to rebuild.
GO_TAGS=stablediffusion,tts BUILD_TYPE=cuBLAS BUILD_GRPC_FOR_BACKEND_LLAMA=true
"your image is out of date" when you build a local image, it really doesn't matter what name you give to the image.


[Bug] Horqrux GPSR for 2nd order derivatives

cc @atiyo

Random question/thought. In GPSR we compute the coefficients that scale the eigenvalue spectrum differences using a set of random shifts. It seems like these are the same coefficients used for higher order derivatives, with higher powers of shifts. Does it mean that we get all the higher order derivatives for free once we compute these coefficients.  Am I missing out something

This should come relatively easily with the correct jacobinan-vector product implementation, which I think is already in qadence. We can bring it over.

Random question/thought. In GPSR we compute the coefficients that scale the eigenvalue spectrum differences using a set of random shifts. It seems like these are the same coefficients used for higher order derivatives, with higher powers of shifts. Does it mean that we get all the higher order derivatives for free once we compute these coefficients. Am I missing out something

We should chat about this internally!

Hiya @atiyo would you be able to take that on ? (Also tagging @gvelikova)

Happy to take this on. Not sure what the bug is, though 🤷.
The plan is to take the GPSR implementation out of qadence and put it directly in horqrux---qadence doesn't feel like the right place to implement horqrux functionality. AFAICT, moving it horqrux will also be seamless from the perspective of an end user since it hooks directly into jax's AD either way.
Are we happy to close this ticket and raise a corresponding one in horqrux?

Happy to take this on. Not sure what the bug is, though 🤷.
The plan is to take the GPSR implementation out of qadence and put it directly in horqrux---qadence doesn't feel like the right place to implement horqrux functionality. AFAICT, moving it horqrux will also be seamless from the perspective of an end user since it hooks directly into jax's AD either way.
Are we happy to close this issue and raise a corresponding one in horqrux?

Indeed. I don't think this is a bug rather than a feature (but aren't they the same ? 😬 ) and agreed it can move to Horqrux board. Thanks @atiyo.

Nice. In that case I'm closing this issue since it's covered by this one: https://github.com/pasqal-io/horqrux/issues/22


Logobar results in a warning on every slide

I'm getting the following for every slide. If you have any quick ideas for fixes, they would be very welcome
 (./slides.vrb) <use USYDLogo-eps-converted-to.pdf>
Overfull \vbox (20.49776pt too high) has occurred while \output is active

I think that might be because the logo is taller than the box it is in. Logo is 3em, box is 2.7 em. This is a size I didn't change in the modifications during #6. Should be able to change the height of the logo in the innertheme.

I can't see where to change it. It's no big deal; rendering fine.

(Changing the logo height to 2.7em doesn't remove the warning, either.)

#9 Should fix the warnings, at least it does for the example slides.

thank you. sorry for my silence

No worries


expose mafft's --parttree option for large data sets

forum x-ref
When aligning >=1,000,000 sequences, MAFFT requires the --parttree option. This sounds like a low-priority feature because we typically don't see more than a million representative sequences (at least in current microbiome data sets), and it's unclear how much memory would be required to align this many sequences.
As a workaround, users can run the mafft command directly with --parttree and import the alignment into QIIME 2.

Closed in #52


Outdated jar version in image_impressionism/README.md

Version in the following command should be updated:
aerosolve/demo/image_impressionism/README.md
91: spark-shell --master local --jars build/libs/image_impressionism-0.1.7-all.jar

Thanks will fix the readme


Kalman filter and example rotation procedure

-Added tightly-coupled Kalman filter for low-rate location data.
-Added example script to compute the location of the transducer relative to the antenna using a rotation matrix in ENU coordinates.

Thanks for this PR @SquirrelKnight! Apologies for the delay. I will take a look at this later this week.

Integrated by #238 and #217


[Agent] fix the servicecomb-1.x-plugin build failure in local workdir

Please answer these questions before submitting pull request

Why submit this pull request?
[x] Bug fix
[ ] New feature provided
[ ] Improve performance

Coverage remained the same at 19.513% when pulling 2c493bcd66882d89e3b261ebca34b92c2f9cc989 on ascrutae:fix/servicecomb-1.x-plugin-compile-failure into 00f7900c6b85eb076dc9ef3924e6ff03bd6c37e4 on apache:master.


New version: hrzlgnm.mdns-browser version 0.7.0

Pull request has been created with WinGet Releaser :rocket:
Microsoft Reviewers: Open in CodeFlow

Superseded by https://github.com/microsoft/winget-pkgs/pull/165179


[operator+CLI] HSM Support

Q
A

Bug fix?
no

New feature?
yes

API breaks?
no

Deprecations?
no

Related tickets
Docs: https://github.com/banzaicloud/bank-vaults-docs/pull/10

License
Apache 2.0

What's in this PR?
PKCS11 (HSM) support for encrypting unseal-keys and root-token in the Bank-Vaults CLI and the Operator.
Why?
To support on-prem environments where a KMS is not available, or HSM is a requirement.
Additional context

Tested with NitroKey HSM and SoftHSM.
Checklist

[x] Error handling code meets the guideline
[x] Logging code meets the guideline (TODO)
[x] User guide and development docs updated (if needed)
[x] Related Helm chart(s) updated (if needed)

If someone would like to merge it, please use Squash and merge.


bullet: Sync with upstream 3.17

Includes https://github.com/bulletphysics/bullet3/pull/3799.
Fixes #43868.
The duplicated comments in bullet code are a partial revert of #48187 since I synced with the unchanged 3.17 upstream code. They should be removed upstream if they matter.

Marking as draft for now as the 3.x backport leads to a crash: https://github.com/godotengine/godot/pull/48300#issuecomment-829344974
And I just remembered that bullet is disabled on master so it doesn't make sense to merge this before #47508 is merged (then I'll rebase and we can confirm that the 3.08 -> 3.09 update is fine).

Synced with 3.17 which was released recently: https://github.com/bulletphysics/bullet3/releases/tag/3.17
(Don't trust the release date on GitHub, the actual tag is from 7 May 2021.)

Now that #48300 is merged, it would be great to update this PR with the same changes in order to keep master in sync, even if Bullet is disabled for now.

Synced with #48300, and includes a cherry-pick of #53183.


utils/github: paginate pull request commits API

This is needed to run brew pr-pull on jumbo pull requests like https://github.com/Homebrew/homebrew-core/pull/62560.

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?
[ ] Have you successfully run brew man locally and committed any changes?

Ok, this is updated.


Clean up documentation (README.md)

Add code samples for each fluent API as well, as well as links to validate.js and the source to show how things work under the covers.
This should make it easier for anyone else to be able to contribute as well as create their own validation library.

If anyone wants to pitch in on this one it's just adding references from each of the examples to the validatejs.org docs ;)


Memory-leak in the typeahead-directive

There exists a memory-leak in the typeahead-directive when used in conjuction with angular 1.2 and jQuery (2.1.0). This bug is related to #2485 that was closed without any action and #2658 that was closed with a patch.
JSFiddle that reproduce the leak: http://jsfiddle.net/wq74xo2t/4/
JSFiddle with patched typeahead: http://jsfiddle.net/wq74xo2t/6/

Please reproduce with UI Bootstrap 0.13.0 and Angular 1.3 to confirm this is still an issue and re-open if it is.

Hi, I have this issue with UI Bootstrap 0.13.4 and Angular 1.4.9.
While the bootstrap version is old I think the reason is the same:
the two lines starting at
https://github.com/angular-ui/bootstrap/blob/master/src%2Ftypeahead%2Ftypeahead.js#L280
My problem seemed to be fixed by unbinding the two listeners on originalScope.$on('$destroy', ...).

@jimmytheneutrino, this looks like a good catch.  Would you mind please opening a new issue for this and referencing this issue?  Also, if you're feeling up to it, submitting a well-written PR would be accepted.  Thanks.

The handlers are being removed in the originalScope destroy: https://github.com/angular-ui/bootstrap/blob/master/src%2Ftypeahead%2Ftypeahead.js#L472

Whoops, I missed that.  Thanks @RobJacobs - @jimmytheneutrino the listeners are only added and removed when append-to-body is true.

Good! Note that there was no removal of listeners in version 0.13.4: https://github.com/angular-ui/bootstrap/blob/0.13.4/src/typeahead/typeahead.js
This means that an upgrade will fix my issue. Thanks!


Expand test case for lines with interpolations

Another bug report dressed as a pull request :zany_face:
Details are in the commit message.
Don't know if the fix is as straight-forward as the last one - still haven't had a chance to dive into your code much yet.
Let me know if there's anything you want to discuss re. the logic.

This fix ended up being easy, but it took me a while to figure out where the problem was. The logic for what fits on a line was just ignoring the ForceFlat doc type so all interpolated strings were considered size 0 when the DocPrinter was deciding where to line break. It'll now throw an exception if a doc type isn't explicitly handled to avoid any issues like this going forward.


update docs link

https://issues.redhat.com/browse/RHOAIENG-15510
Description

update pipelines ensure compatibility screen docs link to a non versioned link: https://docs.redhat.com/en/documentation/red_hat_openshift_ai_self-managed/2-latest/html/release_notes/support-removals_relnotes
How Has This Been Tested?

make sure the link changed goes to a place
Test Impact

nada
Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

lgtm


Arg inconsistancy

Bug description
I retrieve a code from chatgpt which is :
import torch
from torch import nn
from torch.nn import functional as F
from torch.utils.data import DataLoader, random_split
from torchvision.datasets import MNIST
from torchvision import transforms
import pytorch_lightning as pl

class MyModel(pl.LightningModule):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(28 * 28, 128)
        self.layer2 = nn.Linear(128, 10)

    def forward(self, x):
        x = x.view(x.size(0), -1)
        x = F.relu(self.layer1(x))
        x = F.log_softmax(self.layer2(x), dim=1)
        return x

    def training_step(self, batch, batch_idx):
        x, y = batch
        y_hat = self(x)
        loss = F.nll_loss(y_hat, y)
        return loss

    def configure_optimizers(self):
        return torch.optim.Adam(self.parameters(), lr=0.001)

# Initialize model
model = MyModel()

# Setup data
mnist_train = MNIST(root='.', train=True, download=True, transform=transforms.ToTensor())
train_loader = DataLoader(mnist_train, batch_size=64)

# Initialize a trainer
trainer = pl.Trainer(gpus=2, accelerator='ddp')

# Train the model
trainer.fit(model, train_loader)

apparnetly Traner api arguments has been changed
What version are you seeing the problem on?
v2.2
How to reproduce the bug
No response
Error messages and logs
# Error messages and logs here please

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info
No response

@moghadas76 This is not a bug. Starting with Lightning 2.0, these arguments were changed. In the above example, change
gpus=2, accelerator='ddp'

to
devices=2, strategy="ddp"

ChatGPT isn't great for this, because it will just pull whatever example code from the past. If you need to use it, try to explicitly request version 2.0 in your prompt.


Updates to check for both old and new metadata

Critical Changes
Changes
Updated code in setup() method of ADV_PackageInfo_SVC class to check for both legacy Advancement_Setting custom metadata (with Use_Advancement__c field) and GEM API Settings metadata with (Use_GEM__c field)
Issues Closed
New Metadata
Deleted Metadata
Testing Notes

Can do.  I basically modified what was there, but happy to make the change.
--
John Brandolini
Senior Member of Technical Staff, Engineering | Salesforce.org
Phone:<PHONE_NUMBER>
On Thu, Feb 7, 2019 at 10:48 AM lifewithryan<EMAIL_ADDRESS>wrote:

@lifewithryan commented on this pull request.
In src/classes/Advancement_Info.cls
https://github.com/SalesforceFoundation/HEDAP/pull/708#discussion_r254740319
:

   }

   String advSettingQuery = 'select ' + useAdvStr + ', ' + apiHedaClassStr + ' from ' + nsPrefixOrBlank + gemAPISettingsObj;

nit pick: capitalize the SELECT and FROM stuff.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/SalesforceFoundation/HEDAP/pull/708#pullrequestreview-201161102,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AqUVw90C_E2Oxj5JsulrbgUWZpViZzIPks5vLErpgaJpZM4amRAR
.

@jbrandolinisf I checked that the logic is working in a GEM org, but I think @lifewithryan should provide the review since he has more opinions on the code itself ;)

Sounds good.  I will wait to see if he has anything else then.
John Brandolini
Senior Member of Technical Staff, Engineering | Salesforce.org
Phone:<PHONE_NUMBER>
On Fri, Feb 8, 2019 at 11:01 AM Luke Parrott<EMAIL_ADDRESS>wrote:

@jbrandolinisf https://github.com/jbrandolinisf I checked that the
logic is working in a GEM org, but I think @lifewithryan
https://github.com/lifewithryan should provide the review since he has
more opinions on the code itself ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SalesforceFoundation/HEDAP/pull/708#issuecomment-461851260,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AqUVwxuYp2VVZWivRLECRE45_zbTmEYUks5vLZ9GgaJpZM4amRAR
.

Added Luke and Ryan to assignees since they are reviewers, so they show up in the assignee view.

Thoughts on Testing notes @lifewithryan and @jbrandolinisf- see below:
With this PR:
Do some high level spot regression testing of heda in a namespaced HEDA scratch org
Do some high level spot regression testing of heda in a non-namespaced HEDA scratch org
Anything else to pay attention to? Custom settings, any custom metadata, etc?
If all looks good, merge this PR. Then, once this PR is merged:
Do some high level spot regression testing of gem in a namespaced GEM beta dep scratch org
Do some high level spot regression testing of gem in a non-namespaced GEM beta dep scratch org
Anything else to pay attention to? Custom settings, any custom metadata etc?
@dgamboni  how would you like to collaborate on this?  I'll be PTO next week and have some things to finish up this week. @beAGoodQE will be around next week- he will be learning the GEM regressions this week. The big thing would be can we finish testing both the heda part and the GEM beta dependencies part before the next HEDA release is cut? It might be cutting it too close for the Feb 19th create release (Monday is a company holiday as well)

Advancement Namespace field on the Hierarchy Settings object had its label updated to GEM Namespace.
@lparrott - Do you have any suggestions beyond what Anne added to this pull request, in terms of testing?

@jbrandolinisf @annejackson @lifewithryan The last bit of testing we could do is running this logic via Developer Console in an org that has packaged versions of everything, which will test it with a Namespace. I tested it using a Scratch org, so the GEM code was not namespaced.

Thoughts on Testing notes @lifewithryan and @jbrandolinisf- see below:
With this PR:
Do some high level spot regression testing of heda in a namespaced HEDA scratch org
Do some high level spot regression testing of heda in a non-namespaced HEDA scratch org
Anything else to pay attention to? Custom settings, any custom metadata, etc?
If all looks good, merge this PR. Then, once this PR is merged:
Do some high level spot regression testing of gem in a namespaced GEM beta dep scratch org
Do some high level spot regression testing of gem in a non-namespaced GEM beta dep scratch org
Anything else to pay attention to? Custom settings, any custom metadata etc?
@dgamboni how would you like to collaborate on this? I'll be PTO next week and have some things to finish up this week. @beAGoodQE will be around next week- he will be learning the GEM regressions this week. The big thing would be can we finish testing both the heda part and the GEM beta dependencies part before the next HEDA release is cut? It might be cutting it too close for the Feb 19th create release (Monday is a company holiday as well)

I feel like, if we can push this to the next release (after 2/19) I'd be more comfortable and would give everyone time to review and collaborate as necessary.

@kbangsberg, @ceiroa, @pedrodalcol - I don't see an issue with this slipping to the next release.  Do you?

No issues on my side, @j-brandolini.

I've never done HEDA regression before, so I wouldn't be the best resource for verifying this at this time. I agree it makes sense to push it to the following release.


Feature Request: Windows for Imports and Exports

As discussed with @psifertex on Slack, at the moment there is no way to view imports and exports for a given binary unless you click on View->Triage Summary. Ideally there should be a window option such that you can click on Window->Imports or Window->Exports and then see the Imports and Exports for a given binary, similar to the Imports and Exports view in IDA Pro.
The real reason this is needed is that many of us coming from IDA Pro aren't even really aware of the Triage Summary view as the emphasis is placed on using Triage for analyzing many binaries at once, and the name Triage implies high level overview information. This, combined with the fact that IDA Pro and many other disassemblers have a default set of dedicated windows for viewing imports and exports, can lead to a confusing experience.
Therefore by implementing these windows, it should be possible to give users a more pleasant user experience and will allow users to more easily convert from other disassemblers.

I would rather see this as a plugin if it's included because I'm in favor of the current triage view and would be very disappointed if it were to be split up. In my opinion, it's very clean, helps to absorb basic information needed when analyzing a new file faster. Entropy, dependencies, permissions, segment and section names/sizes.... it's great for making inferences at a glance and helps to point me to a starting point much faster than IDA ever did in the past.
And the reason I would prefer it to not be built into the menu bar is because I don't want the menu bar to seem bloated as bloated as IDAs does to me.

@ccarpenter04 I appreciate that insight, just not sure how the menu as it stands is bloated? Even it it were bloated, the command palette does exist to help eliminate this problem and make things easier to find. Personally I prefer menus as I know where to look for things after a few goes but I imagine the command palette should make it easier for those who might not be as inclined to this.
Also to be clear since someone mentioned this in Slack before, I'm not intending to remove this from the Triage view. I'm merely asking for the addition of these extra windows in a manner similar to the Hex or Strings window, as this will make things easier to navigate to for those of us used to the menu system.
Again I do like the triage view and don't want this to change. Its one thing that IDA Pro doesn't have and that I wish they would implement.

Another work-around for this is that the function-list has a right-click option that allows you to show imports/show exports and do so exclusively. I realize this isn't the same as the request here so leaving this request open to track whenever we implement a dedicated window.


Highlight and right click to cut / copy / paste

Would be nice to be able to right click and get standard edit options such as copy & paste

Agreed. Unable to copy anything from my Hyper in Ubuntu MATE 16.04.1 LTS. Any news on this?

Closed in favor of #265


Epic - Typeahead: withEvents Mixin

Jira
http://vjira2:8080/browse/BDS-1804
Summary
Adds a new Javascript Class mixin to Core in order to provide a supported and scalable pattern for hooking into built in component methods / events -- either to override entirely or to extend with additional functionality than what's provided by default.
Part of the larger set of overarching Typeahead work.
Details
Funny enough, the link above (the example Events mixin) is incredibly similar to this same pattern I ran into in https://github.com/edenspiekermann/a11y-dialog/blob/master/a11y-dialog.js#L242 -- the main differences with our implementation being hooks into the Web Component event lifecycle methods.
Side note: unfortunately due to some last-minute issues I ran into with the Preact rendering in Typeahead (which by themselves wouldn't have affected these additions), the workaround I ended up with only partially takes advantage of this new JS pattern.
Example Before Workaround -- methods added automatically via mixin
Example After Workaround -- these new Class methods are still added automatically via the withEvents mixin on the outer <bolt-typeahead> component however the addition of this new <bolt-autosuggest> component (which has all the event hook logic) now needs to reach into the parent <bolt-typeahead> component in order to have the logic live with the actual Preact component and radio back to the parent component for any external API hooks / integrations.
☝ does this make sense?
How to test

Review changes, including the example usage in the larger Typeahead branch here and here
Confirm existing tests pass as expected

Open Questions

Moving forward into v3.0, how do we / should we be documenting this sort of "super important but kind of abstract" bit of core functionality in Core? Is JSDocs "good enough"™ or do we need something else on top of that?
Any thoughts / ideas on how we might go about writing tests for this? My gut tells me that unit tests might make the most sense for something like this.

CC @remydenton you might want to check this one out too however I'm holding off on adding you as an official reviewer since you'll probably be out of pocket relatively soon 😉

PR was released with v2.8.4-canary.bde01a443.0

PR was released with v2.9.0


Help folks out with improperly-wound inputs

To date, we've had two issues opened about unexpected results, where the problem was improperly-wound polygons:

#29
#32

We should help users out by either:

Warning them that their polygon is probably wound incorrectly
Apply some sort of flag/fix

My initial thought is to check for double-pole crossings and reverse the coordinates by default in that case, with a flag to disable the behavior. Double-poles are pretty rare, and you usually know that you want it (e.g. sentinel-3), so the 80% solution might be to not produce double-poles by default. @pjhartzell do you have any thoughts on this one?

check for double-pole crossings and reverse the coordinates by default in that case

Will this also change/correct CW polygons that do not cross the antimeridian?

Yes, because CW polygons that don't cross will create a double-pole (in the current implementation).

We should give it some thought. It would be a nice feature.

Agreed, I think it's just in scope for the repo :-).


Facades don't work with advanced connectors.

Minecraft: 1.10.2
XNet: 1.1.5
Right clicking on an advanced connector brings up the naming dialogue. Sneak right clicking sets the facade to mimic the advanced connector.

Ok.  Fixed next release


Janela de cores

Type: Bug
When inserting, for example, a background-color, and I want to change the color using the option where there are all existing cores (tone, transparency and color) such a window some after 1 click, thus having to click again for me to change something again. Until a few days ago it was working normally, I didn't change any settings if there was such a problem.
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz (4 x 1992)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
3.88GB (0.72GB free)

Process Argv
--crash-reporter-id d061fa65-c9b8-4cbb-aede-067182758f58

Screen Reader
no

VM
0%

Extensions (15)

Extension
Author (truncated)
Version

vscode-intelephense-client
bme
1.10.0

code-runner
for
0.12.1

vscode-language-pack-pt-BR
MS-
1.84.2023110809

python
ms-
2023.20.0

vscode-pylance
ms-
2023.11.10

jupyter
ms-
2023.10.1003070148

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

php-docblocker
nei
2.7.0

material-icon-theme
PKi
4.31.0

LiveServer
rit
5.7.9

firacode
Sey
2.2.1

JavaScriptSnippets
xab
1.8.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30880072
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
89544117:30613380
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30869155
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixtcf:30871695
pythonregdiag2:30871582
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc017:30880892
dsvsc018:30880894
aa_t_chat:30882232

Hi thank you for filing the issue. This issue should be closed by the following PR which was developed by a community developer https://github.com/microsoft/vscode/pull/198100. The fix should be inside the next insiders build quite soon and the next stable build in around a month.


Schedule VMs on nodes which support the requested CPU model

What this PR does / why we need it:
The goal is to set a nodeSelector on the pod that virt-controller creates for vmis, which selects only nodes for scheduling that provide the CPU model set on the VM.
The CPU model is taken from the VirtualMachine spec and should match the CPU family label on nodes.
The CPU family labels on nodes will be created using a node feature discovery plugin.
This feature is disabled by default and can be enabled using the feature-gate : "CPUNodeDiscovery"
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Handles #1247
Special notes for your reviewer:
The final format of the label is not determined yet (also depends on Plugin mechanism for customer-specific labels)
Currently its in the form of:
feature.node.kubernetes.io/nfd-cpu-family- = "true"
Release note:

NONE

 (8)[epic-node-compatibility-1.4] Ensure to schedule VMs on nodes which support the requested CPU model [initiative-vm-high-availability]

When no CPU family is selected the CPU mode is set to host-model Which doesn't require a model(family) to be specified. The virt-contorller will not set nodeselector in that case.
Same goes for host-model and host-passthrough
for more info see : Add possibility to use CPU passthrough for VM's

@MarSik @ksimon1 @ahadas  @fromanirh   please review.

/hold

/hold-off

/hold cancel

@ksimon1 @MarSik  please take a look at the format of the label and see if this will be its final form.

@fabiand

Please check how far the currently supported CPU families are documented or not.

Under CPU Model section we have link to libvirt's list of cpu models. The link to the model list was broken so I opened a PR: https://github.com/kubevirt/user-guide/pull/154 .

In general - but I need more arguments for this - does the current apprach (we have some labels on the virt side, and magically nfd supports the same lables) pretty "unformatlized". I wonder if there are ideas to make this relationship more formal.

The current approach is to have a NFD plugin that uses libvirt to create the required labels (models/flags) on nodes: NFD Libvirt [WIP].
The labels we have here should match the output of the NFD libvirt plugin.

Under CPU Model section we have link to libvirt's list of cpu models. The link to the model list was broken so I opened a PR: kubevirt/user-guide#154 .

Thank you for fixing it right away.

The labels we have here should match the output of the NFD libvirt plugin.

Agreed!
Now - I think what we want is a real validation of the permitted CPU models.
We should enforce - on the cluster level - that only CPU model values that are currently supported.
I'd suggest to validate the cpu models which can be set on a VMI spec according to the CPU map provided by libvirt.
In summary: Now that we require CPU models on the cluster level, and we cooperate with other services (nfd) we should start enforcing the (welld efined set of) values on the cluster level.

Regardless of the NFD progress, we probably want to keep the featuregate
disabled by default.
It then is up to the deploying component to either enable or disable it, as
the deploying component knows if NFD is deployed or not.

Regardless of the NFD progress, we probably want to keep the featuregate disabled by default. It then is up to the deploying component to either enable or disable it, as the deploying component knows if NFD is deployed or not.

Currently it is disabled by default.
I reckon that once we are done with NFD, we can add the appropriate enablement for the feature gate in deployment (us/deployment team) and when we get to documentation we will add the appropriate instructions.

@fabiand Anything you are still missing? Can you please merge if not?

Btw, the CPU model validation is being discussed in https://github.com/kubevirt/kubevirt/issues/1760

ci test please

Independent of NFD - What are the pros and cons of
<key>: <model>
vs
<key>-<model>: true

?

Independent of NFD - What are the pros and cons of <key>: <model> vs <key>-<model>: true ?

Depends on what structure you need. If a node can have multiple models then you will want the true form. If you exclusively allow just one of them, then the key: value form is better.  The true form is probably the most general form and allows expressing more use-cases.

@fabiand

Independent of NFD - What are the pros and cons of  <key>: <model> vs <key>-<model>: true  ?

One vs. many possible values for the same key.
@rmohr
NFD exports all supported CPU families and features, so we have to use the true form.

Independent of NFD - What are the pros and cons of <key>: <model> vs <key>-<model>: true ?

Depends on what structure you need. If a node can have multiple models then you will want the true form. If you exclusively allow just one of them, then the key: value form is better. The true form is probably the most general form and allows expressing more use-cases.

We do need to support multiple models and the next step is to support multiple features/flags

… and as a node can support many families <key>-<value>: true is the way to go.

ci test please

CI system maintenance caused some tests for this PR to be left in "Pending" state. To re-run them please add a comment saying "ci test please".

ci please test

ci test please

ci test please

ci test please

@yanirq in case you are waiting for the openshift lanes, there is a bug in openshift-ansible (a rpm package got renamed). Our clusters can't start. Work is going on here to fix it #1804. The other lanes should be green, in case they were not.

ci please test

@yanirq I think the test is failing, because you forgot to regenerate the files after the API change. At least the Travis log seems to point in that direction at couple of places
https://travis-ci.org/kubevirt/kubevirt/builds/464081250#L664

@rmohr  @fabiand  can you give a final review here ?  (patch re-based and all necessary tests were added)


Getting suspention from heroku

It have been noticed that I am getting suspention from heroku... On doing any url uploading tasks... While uploading (eg: Zee5 link etc.. )

working on that

[ ]

[ ]

[ ]

[ ]

To prevent:

Try Not To Upload Copyright media.
Avoid using temporary mails to sign up for Heroku.
Avoid regenerating of heroku api.
Avoid using new emails to sign up
Avoid using vpn or ad blocker
Avoid controlling ( like shutting down, restarting, setting/editing of Heroku config vars, etc... ) apps much more. Instead, you can use in-bot commands.

To solve:

Use old accounts if you already signed with others.
Try transfering app from the old account to the new.
Reset the password of the account.
Control Heroku actions with the commands instead of controlling from Heroku.
Try using another browser

These are the steps to prevent and solve issues.
There are no official tips/tricks but it's tested and there is a chance to work.
If that's still suspending, Then please write<EMAIL_ADDRESS>Thank You!
Copied...

My account was suspended even before I uploaded a single file.


Client side search?

I have the data source on the client side. How can I use that?

That's not supported at the moment. But that's a good idea.
May be we should allow to define the data source in the client.
On Mon Jan 12 2015 at 4:06:48 PM Fardeem Munir<EMAIL_ADDRESS>wrote:

I have the data source on the client side. How can I use that?
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/search-source/issues/3.

Yeah, make it available client side
On Mon, Jan 12, 2015 at 4:43 PM, Arunoda Susiripala <
<EMAIL_ADDRESS>wrote:

That's not supported at the moment. But that's a good idea.
May be we should allow to define the data source in the client.
On Mon Jan 12 2015 at 4:06:48 PM Fardeem Munir<EMAIL_ADDRESS>wrote:

I have the data source on the client side. How can I use that?
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/search-source/issues/3.

—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/search-source/issues/3#issuecomment-69552946
.

--
Fardeem Munir
www.erubai.com
@awesomerubai

I have add this feature.
See: https://github.com/meteorhacks/search-source#defining-data-source-in-the-client
Hope this is what you wanted

Hi, Arunoda,
thank you for the awesome package. May you, please, provide working example for client search at https://github.com/meteorhacks-samples/meteor-instant-search-demo ?
Thank you.

Check here: http://instant-search-demo.meteor.com/
On Mon Feb 16 2015 at 2:56:48 PM shkomg<EMAIL_ADDRESS>wrote:

Hi, Arunoda,
thank you for the awesome package. May you, please, provide working
example for client search at
https://github.com/meteorhacks-samples/meteor-instant-search-demo ?
Thank you.
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/search-source/issues/3#issuecomment-74479989
.

Well, I can't find there anything defining data source in the client like .fetchData
May, you, pls, point me?
Thank you.

Ah nope. It's not there. I don't think I've a working example now.
On Mon Feb 16 2015 at 3:32:59 PM shkomg<EMAIL_ADDRESS>wrote:

Well, I can't find there anything defining data source in the client like
.fetchData
May, you, pls, point me?
Thank you.
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/search-source/issues/3#issuecomment-74484434
.

:( may you, pls, point me quick on how I may use .fetchData? should it go before .getData?
As I do have reactive data source on client changing over some filters. So I need to adjust data source according to session var stage.

hey shkomg, did you manage to get .fetchData to work, any working examples?

yep, I just 've written my own solution. That was quicker & simplier for my
case.
2015-03-18 19:43 GMT+02:00 Chos89<EMAIL_ADDRESS>
hey shkomg, did you manage to get .fetchData to work, any working examples?
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/search-source/issues/3#issuecomment-83083016
.

--
Best regards
Serhiy Khvashchuk

Could you give any hints or code snippets on how did you do it?
You can email me on<EMAIL_ADDRESS>if it's outside of scope of this package...

well, that's pretty simple:
I have 1st template with
here">```

For the 1st template I have a ```keyup``` event on search box which creates
session with search text.

And for 2nd template I provide search results based on this session data.

Does it makes sense?

2015-03-18 20:24 GMT+02:00 Chos89<EMAIL_ADDRESS>
> Could you give any hints or code snippets on how did you do it?
> You can email me on<EMAIL_ADDRESS>if it's outside of scope of this
> package...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/meteorhacks/search-source/issues/3#issuecomment-83110513>
> .
>

--
Best regards

Serhiy Khvashchuk

I think I understand what you are doing, but not sure if this would work in
my case, thanks anyway.
2015-03-18 19:50 GMT+01:00 shkomg<EMAIL_ADDRESS>
well, that's pretty simple:
I have 1st template with
here">```

For the 1st template I have a ```keyup``` event on search box which creates
session with search text.

And for 2nd template I provide search results based on this session data.

Does it makes sense?

2015-03-18 20:24 GMT+02:00 Chos89<EMAIL_ADDRESS>
> Could you give any hints or code snippets on how did you do it?
> You can email me on<EMAIL_ADDRESS>if it's outside of scope of this
> package...
>
> —
> Reply to this email directly or view it on GitHub
> <
https://github.com/meteorhacks/search-source/issues/3#issuecomment-83110513
>

> .
>

--
Best regards

Serhiy Khvashchuk

—
Reply to this email directly or view it on GitHub
<https://github.com/meteorhacks/search-source/issues/3#issuecomment-83119246>
.

It would be nice if we could use this with a REST API data source on the client. The particular REST API I'm using has a rate limit per second per IP address, so it is not feasible to do the requests on the server.

Hi, I am current using the client side search too, getting my results from an external API and loading it in a subscription like this (client side):
 Meteor.call( 'getFeedContent', Session.get( 'feed' ).url, ( error, result ) ->
            if result
                instance.channel.set( result )

                handle = Meteor.subscribe( 'episodes', result.episodes )
                instance.autorun( ( c )->

                    # searchHandle = Meteor.subscribe( 'episodes', result.episodes )

                    if handle.ready()
                        console.log("eps", Episodes.find({}).count())
                        console.log("handle ready!")
                        EpisodesSearch.search( '' )
                        c.stop()
                )
            else
                console.error error
            instance.loading.set( false )

        )

On the server I have a publication named 'episodes' which get filled by the subscription count and uses .        instance.added( 'episodes', Random.id() to populate the client collection.
The finally I have a client side collection SearchSource declaration:
 if Meteor.isClient
    @Episodes = new Meteor.Collection( 'episodes' )
    options =
        keepHistory: 0
        localSearch: false

    fields = ['title']
    @EpisodesSearch = new SearchSource( 'episodes', fields, options )

    buildRegExp = ( searchText ) ->
        parts = searchText.trim().split(/[ \-\:]+/)
        return new RegExp("(" + parts.join('|') + ")", "ig")

    # set up client datasource
    EpisodesSearch.fetchData = (searchText, options, success) ->
        err         = null
        options     = {sort: { 'publishedDate': -1 }, limit: 20}
        if searchText
            # get rid of surrounding spaces
            searchText  = searchText.trim()
            selector    =
                title:  buildRegExp( searchText )
            console.log(selector)
            data = Episodes.find( selector, options ).fetch()
        else
            data = Episodes.find({}, options).fetch()
        # return result
        success(err, data)

Now I have the following weird issue, that when I do a search on a one episode and then clear my search box again the one episode of the previous search is there at the top of the result list.
I can do it all in my Chrome console. After page render, 20 episodes are loaded ordered by data desc. Then when I do EpisodesSearch.search('trash') it results one episode titled trash. Then when  I run EpisodesSearch.search('') it shows me 20 episodes, of which no 1 is Trash. Number 2 is the actual newest episode that was on top.
I am not using history and calling cleanHistory doesnt work.
Also when I do Episodes.find({}).fetch() is still shows the original master list of episodes.
From this I deduce that SearchSearch has its on cache that is not cleared.
Can anyone confirm this or tell me what I do wrong?

Check that your data doesnt have the same date
On Apr 26, 2015 12:30 PM, "mattiLeBlanc"<EMAIL_ADDRESS>wrote:

Hi, I am current using the client side search too, getting my results from
an external API and loading it in a subscription like this (client side):
Meteor.call( 'getFeedContent', Session.get( 'feed' ).url, ( error, result ) ->
if result
instance.channel.set( result )
            handle = Meteor.subscribe( 'episodes', result.episodes )
            instance.autorun( ( c )->

                # searchHandle = Meteor.subscribe( 'episodes', result.episodes )

                if handle.ready()
                    console.log("eps", Episodes.find({}).count())
                    console.log("handle ready!")
                    EpisodesSearch.search( '' )
                    c.stop()
            )
        else
            console.error error
        instance.loading.set( false )

    )

On the server I have a publication named 'episodes' which get filled by
the subscription count and uses . instance.added( 'episodes', Random.id()
to populate the client collection.
The finally I have a client side collection SearchSource declaration:
if Meteor.isClient
@Episodes = new Meteor.Collection( 'episodes' )
options =
keepHistory: 0
localSearch: false
fields = ['title']
@EpisodesSearch = new SearchSource( 'episodes', fields, options )

buildRegExp = ( searchText ) ->
    parts = searchText.trim().split(/[ \-\:]+/)
    return new RegExp("(" + parts.join('|') + ")", "ig")

# set up client datasource
EpisodesSearch.fetchData = (searchText, options, success) ->
    err         = null
    options     = {sort: { 'publishedDate': -1 }, limit: 20}
    if searchText
        # get rid of surrounding spaces
        searchText  = searchText.trim()
        selector    =
            title:  buildRegExp( searchText )
        console.log(selector)
        data = Episodes.find( selector, options ).fetch()
    else
        data = Episodes.find({}, options).fetch()
    # return result
    success(err, data)

Now I have the following weird issue, that when I do a search on a one
episode and then clear my search box again the one episode of the previous
search is there at the top of the result list.
I can do it all in my Chrome console. After page render, 20 episodes are
loaded ordered by data desc. Then when I do EpisodesSearch.search('trash')
it results one episode titled trash. Then when I run
EpisodesSearch.search('') it shows me 20 episodes, of which no 1 is Trash.
Number 2 is the actual newest episode that was on top.
I am not using history and calling cleanHistory doesnt work.
Also when I do Episodes.find({}).fetch() is still shows the original
master list of episodes.
From this I deduce that SearchSearch has its on cache that is not cleared.
Can anyone confirm this or tell me what I do wrong?
—
Reply to this email directly or view it on GitHub
https://github.com/meteorhacks/search-source/issues/3#issuecomment-96361353
.

What do you mean with "Check if data doesn't have the same date".
Where can I find this 'date'? I am looking at the EpisodeSearch object but can't find any date.
As far as I know I am doing a new search so I don't understand why the previous result is being added on top.

I debugged the FetchData function just before the Success hits (cause there the data is correct),
and this is the function where the local storage is updated
SearchSource.prototype._updateStore = function(data) {
  var self = this;
  var storeIds = _.pluck(this.store.find().fetch(), "_id");
  var currentIds = [];
  data.forEach(function(item) {
    currentIds.push(item._id);
    self.store.update(item._id, item, {upsert: true});
  });

  var removedItem = _.difference(storeIds, currentIds);
  removedItem.forEach(function(id) {
    self.store.remove(id);
  });
};

The actual problem is that the episode Trash, is normally the 9 results in the first list of 20. When I search for Trash, it becomes the only result. When I clear the searchbox, Trash is the one result out of the 20 displayed, while it has an older publish date and should be in position 9.
So I guess, it is an ordering issue.
In the update store function:
  data.forEach(function(item) {
    currentIds.push(item._id);
    self.store.update(item._id, item, {upsert: true});
  });
  var removedItem = _.difference(storeIds, currentIds);
  removedItem.forEach(function(id) {
    self.store.remove(id);
  });

the removedItem array is empty because the storeIds will hold the 'Trash' entry and the currentIds will hold the 20 items (including the Trash entry), so nothing is removed.
So a couple of lines above where the upsert was executed, the Trash entry was already added in the previous search process, so when the 20 entries are stored I think the Trash entry is not added in on the 9th position because it was already there and will be before the new entries. That is why it is on position 1 instead of it's original position 9.
So I guess I know what is happening now, however I don't know how to proceed next.
Do I need to sort the result again in the Helper to get the right order? Seems a bit like a hack.
The real issue is the that FetchDate doesn't return the dataset  according to the sort instructions that where provided.
Could this be fixed?

Adding the sort in the GetData fixes it for me:
episodes: ->
        instance = Template.instance()
        data = EpisodesSearch.getData(
            sort: {'publishedDate': -1}
            limit: 30
        )
        return data

so not sure if it was a bug or just me being silly.
One thing I found out that it is imperative that I stop the Autorun for the handle that subscribes the episode. If i don't do that it is really messing up the collection.


i18n(pt): Translate showcase.mdx

Description

Translate showcase.mdx file

Can you take a look at this as well @Yan-Thomas? If everything is as expected I'll start tackling the other two pages under the "Resources" section that are not translated yet

Changes done in the wrong file, closing this


Android toolchain - develop for Android devices (the doctor check crashed) and Visual Studio - develop for Windows

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
Android toolchain - develop for Android devices (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
about this issue at https://github.com/flutter/flutter/issues.
X Exception: Android toolchain - develop for Android devices exceeded maximum allowed duration of 0:04:30.000000
Actual results
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
Logs

Logs

<!-- Paste your logs here -->

Flutter Doctor output

Doctor output

<!-- Paste your output here -->

Closing as duplicate of https://github.com/flutter/flutter/issues/126755
For solution, check https://github.com/flutter/flutter/issues/126755#issuecomment-1546815731 and see if it helps to resolve your issue or not.

Closing as duplicate of #126755 For solution, check #126755 (comment) and see if it helps to resolve your issue or not.

have install the Andriod sdk command line tools not working at all still same thing


activated pagination for documentation

Overview
This PR activates pagination for the main documentation. Antora has this functionality as a out-of-the-box feature, until now it is just hidden behind a feature flag:
asciidoc:
  attributes:
    page-pagination: true

Screenshots

More Information
Antora 2.3 announcement: https://docs.antora.org/antora/2.3/whats-new/#smarter-pagination

👍


Deprecate Qiskit Visualizations tutorial

As part of the Qiskit Documentation content restructuring efforts, Qiskit Visualizations tutorial is moving to the content to API reference and will be deprecated. Related issue: https://github.com/Qiskit/qiskit-tutorials/issues/1436
We should

[ ] replace the current tutorial notebook with a deprecation warning notebook
[ ] in the notebook, gives user a deprecation warning, direct users to qiskit.visualization API reference page and link to this issue for any comment.
[ ] tell users that they can still access the old notebook in older version of the documentation page: https://qiskit.org/documentation/stable/0.36/tutorials/circuits/2_plotting_data_in_qiskit.html
[ ] Redirect https://qiskit.org/documentation/tutorials/circuits/2_plotting_data_in_qiskit.html link permanently to the deprecated version, probably https://qiskit.org/documentation/stable/0.37/tutorials/circuits/2_plotting_data_in_qiskit.html after the deprecated notebook is merged.

Update: see https://github.com/Qiskit/qiskit-tutorials/pull/1353#issuecomment-1681346271 for what Eric proposes doing instead.

I think we should revisit this decision, now that we have more Qiskit content on https://docs.quantum-computing.ibm.com/ I think those pages could benefit from a standalone visualisation page there, which we could probably reuse the qiskit visualization tutorial for.
cc @abbycross

Does the revamped content that appears in the Visualization section of the guides complete this issue?


Persist to desk

We want to add a persistent layer feature to Pedis to ensure that data is not lost in case of a system failure or other issue. We are considering using either the Append-Only File (AOF) or Redis Database Backup (RDB) mechanism to implement this feature.
The AOF mechanism logs every write operation to a file on disk in a compact, human-readable format. The RDB mechanism takes a point-in-time snapshot of the Redis database and writes it to disk as a binary file.
Tasks:

Choose either the AOF or RDB mechanism based on our needs and requirements.
Implement the chosen mechanism to persist data to disk.
Define a file format for storing serialized data on disk.
Define a mechanism for recovering data from disk in case of a system failure or other issue.
Optimize performance of the persistence mechanism, such as using caching, compression, or parallel I/O.

https://github.com/ahmedash95/pedis/pull/4


Changed bindable property boilerplate on IsRunningProperty

Fixes https://github.com/xamarin/Xamarin.Forms-api-docs/issues/91

Docs Build status updates of commit b45d160:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/Xamarin.Forms/ActivityIndicator.xml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Sourcemaps aren't being generated

When building or serving the site in development mode, sourcemaps aren't being generated. I see nothing in the site files that should prevent this. Using the same version of Hugo and key site files as etcd.io (in particular for head-css.html), we get different results -- no maps here, but they are generated for etcd.io.
For now I'm going to assume that it might have to do with an older version of docsy, or maybe some feature interaction with webpack.

$ find . -name "*.map" | grep -v node_modules
./public/scss/main.css.map

There is a map file for CSS now, do we need some for JS as well or can this be closed?


Add configurable storage class

fixed in 2e559b9ef504db757c09d044ba0e0fd751b54bdf

Hi,
I am trying to send the files with "STANDARD" storage class instead of STANDARD_IA. I cannot figure out how to send this input to pput vis z3. I tried to set it in /etc/z3_backup/z3.conf, but it does not seem to accept it.
Thanks.
[centos@ip-10-0-33-127 ~]$ sudo z3 --dataset pool/data --snapshot-prefix zfs-auto-snap_hourly backup --compressor=none --storage-class STANDARD --full --dry-run
usage: z3 [-h] [--s3-prefix S3_PREFIX] [--filesystem FILESYSTEM]
[--snapshot-prefix SNAPSHOT_PREFIX]
{backup,restore,status} ...
z3: error: unrecognized arguments: --storage-class STANDARD
[centos@ip-10-0-33-127 ~]$ sudo z3 --dataset pool/data --snapshot-prefix zfs-auto-snap_hourly backup --compressor=none --full --dry-run
zfs send -Lce 'pool/data@zfs-auto-snap_hourly-2019-02-01-0001' | pput --quiet --estimated<PHONE_NUMBER>576 --meta size=3891210972576 --meta isfull=true z3-backup/pool/data@zfs-auto-snap_hourly-2019-02-01-0001
Successfuly backed up pool/data@zfs-auto-snap_hourly-2019-02-01-0001: 3.54 T.

@jmohan007 the --storage-class argument is for pput (which z3 executes to do the actual uploading, once it figures out which snapshots need to be uploaded). I don't think you can pass it from the z3 command line but it should work if you export the  S3_STORAGE_CLASS env variable

Hi,
Thanks for responding. Yes, it does not work via z3 as expected. However,
it also did not work via /etc/z3backup/z3.conf as I thought it might and
shown in sample files. Setting environment variable did not work either.
Passing the option directly to pput command line works.
I will likely just hard wire the default in pput.py.
Best regards,
Jitendra
On Wed, Feb 6, 2019, 1:20 AM Radu Ciorba<EMAIL_ADDRESS>wrote:

@jmohan007 https://github.com/jmohan007 the --storage-class argument is
for pput (which z3 executes to do the actual uploading, once it figures out
which snapshots need to be uploaded). I don't think you can pass it from
the z3 command line but it should work if you export the S3_STORAGE_CLASS
env variable
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/presslabs/z3/issues/1#issuecomment-460953197, or mute
the thread
https://github.com/notifications/unsubscribe-auth/Ar9hNFeFM6139cKIdfHGaDy1ndZucqf1ks5vKp5wgaJpZM4HQisd
.

@jmohan007 FYI the config is read from:  /etc/z3_backup/z3.conf

Thanks again for answering my questions. Really appreciated.
z3backup was a typo in my email. It is indeed z3_backup on the system.
I did have an occasion to try to restore and discovered something that may
be a limitation or user error on my part.
We take a monthly full backups and daily incremental. Also, zfs maintains 7
latest daily snapshots. I needed to go back ~2 weeks. So none of the needed
snapshots were on the fileserver. All needed to be restored from S3.
First problem: when restoring a full snapshot, the default is to overwrite
the filesystem. Not what I wanted. So, I did a dry run and modified the
commands to receive the full stream to a new fs. That was ok.
Second: the incremental receive failed with "filesystem modified". It was
not. I got around that by using -F and receiving into the new fs.
While all this worked for me, I suspect this was not the intended use
model. When you get a chance, please let me know what I am doing wrong.
BTW, -Lce option used during backup worked well. No new options needed for
restore.
Best regards,
Jitendra
On Thu, Feb 7, 2019, 3:34 AM Radu Ciorba<EMAIL_ADDRESS>wrote:

@jmohan007 https://github.com/jmohan007 FYI the config is read from:
/etc/z3_backup/z3.conf
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/presslabs/z3/issues/1#issuecomment-461383954, or mute
the thread
https://github.com/notifications/unsubscribe-auth/Ar9hNPF4wXwOgcQ4GzDcTJ5J0RU1cF_iks5vLA9CgaJpZM4HQisd
.


Error on trying to select a colour for text background (Python 2.7.14)

Having selected a new window and in sizer_1 slot_1 added a Static Text, added a new slot and then I ticked background on the Properties::Common dialogue for the Static Text then selected the ellipsis to select a colour.  Testing showed the same problem with all set colour on all objects tested but only on Python 2.7.14 not on 3.6.
ERROR   : None
An unexpected error occurred!
Exception type:      <type 'exceptions.TypeError'>
Exception details:   super() takes at least 1 argument (0 given)
Application stack traceback:
File "D:\Users\212303160\wxGlade-0.8.0\new_properties.py", line 1703, in display_dialog
dialog = self._create_dialog()
File "D:\Users\212303160\wxGlade-0.8.0\new_properties.py", line 1862, in _create_dialog
self.dialog = wxGladeColorDialog(self.str_to_colors)
File "D:\Users\212303160\wxGlade-0.8.0\color_dialog.py", line 26, in init
self.color_chooser = PyColourChooser(self, -1)
File "C:\Python27\lib\site-packages\wx\lib\colourchooser\pycolourchooser.py", line 279, in init
self.UpdateColour(self.solid.GetColour())
File "C:\Python27\lib\site-packages\wx\lib\colourchooser\pycolourchooser.py", line 395, in UpdateColour
self.updateDisplayColour(colour)
File "C:\Python27\lib\site-packages\wx\lib\colourchooser\pycolourchooser.py", line 389, in updateDisplayColour
evt = ColourChangedEvent(newColour=colour)
File "C:\Python27\lib\site-packages\wx\lib\colourchooser\pycolourchooser.py", line 46, in init
super().init(newColour = newColour)
Date and time:       2018-03-27T10:41:17.957000
Python version:      2.7.14
wxPython version:    4.0.1
wxWidgets platform:  WXMSW
wxGlade version:     0.8.0

Thanks for reporting. I rarely test the combination of 2.7 plus Phoenix interactively. This seems to be a bug in wxPython.
I have opened a ticket for it (https://github.com/wxWidgets/Phoenix/issues/798)

Robin has committed a fix. So with the next wxPython revision, things should be fine again.

As 4.0.1 is still current, I have uploaded a workaround in branches master and REV_0.8.

The workaround is in 0.8.3 release candidate


Empty ground truth boxes for training 3DSSD on Pedestrian KITTI

Hi, I am trying to train 3DSSD on KITTI for Pedestrian objects by replacing class-related setting in config/3dssd/3dssd_kitti-3d-car.py. The training can proceed for some time and it stops with an error below after a couple epochs:
Traceback (most recent call last):
  File "tools/train.py", line 166, in <module>
    main()
  File "tools/train.py", line 162, in main
    meta=meta)
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection/mmdet/apis/train.py", line 150, in train_detector
    runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
  File "/home/yzy/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 125, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/home/yzy/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 50, in train
    self.run_iter(data_batch, train_mode=True)
  File "/home/yzy/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 30, in run_iter
    **kwargs)
  File "/home/yzy/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/parallel/data_parallel.py", line 67, in train_step
    return self.module.train_step(*inputs[0], **kwargs[0])
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection/mmdet/models/detectors/base.py", line 246, in train_step
    losses = self(**data)
  File "/home/yzy/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/home/yzy/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 84, in new_func
    return old_func(*args, **kwargs)
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection3d/mmdet3d/models/detectors/base.py", line 59, in forward
    return self.forward_train(**kwargs)
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection3d/mmdet3d/models/detectors/votenet.py", line 60, in forward_train
    bbox_preds, *loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore)
  File "/home/yzy/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 164, in new_func
    return old_func(*args, **kwargs)
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection3d/mmdet3d/models/dense_heads/ssd_3d_head.py", line 145, in loss
    bbox_preds)
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection3d/mmdet3d/models/dense_heads/ssd_3d_head.py", line 271, in get_targets
    seed_points)
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection/mmdet/core/utils/misc.py", line 26, in multi_apply
    return tuple(map(list, zip(*map_results)))
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection3d/mmdet3d/models/dense_heads/ssd_3d_head.py", line 340, in get_targets_single
    gt_corner3d = gt_bboxes_3d.corners
  File "/home/yzy/PycharmProjects/AutoDrive/mmdetection3d/mmdet3d/core/bbox/structures/lidar_box3d.py", line 70, in corners
    assert len(self.tensor) != 0
AssertionError

It seems it is related to dataset sampler when sampling point cloud data without ground truth boxes. I am wondering if there is any setting for the sampler that can fix the error? I already tried to modify the part for data sampler as follow:
db_sampler = dict(
    data_root=data_root,
    info_path=data_root + 'kitti_dbinfos_train.pkl',
    rate=1.0,
    prepare=dict(filter_by_difficulty=[-1], filter_by_min_points=dict(Pedestrian=1)),
    classes=class_names,
    sample_groups=dict(Pedestrian=6))

@zye1996 Hi, do you modify the class_names respectively?

@zye1996 Hi, do you modify the class_names respectively?

Yes I did, here is my config with parts I modified, and it did train for around 10+ epoch before the error kicked in
_base_ = [
    '../_base_/models/3dssd.py', '../_base_/datasets/kitti-3d-pedestrian.py',
    '../_base_/default_runtime.py'
]

# dataset settings
dataset_type = 'KittiDataset'
data_root = 'data/kitti/'
class_names = ['Pedestrian']
point_cloud_range = [0, -40, -5, 70, 40, 3]
input_modality = dict(use_lidar=True, use_camera=False)
db_sampler = dict(
    data_root=data_root,
    info_path=data_root + 'kitti_dbinfos_train.pkl',
    rate=1.0,
    prepare=dict(filter_by_difficulty=[-1], filter_by_min_points=dict(Pedestrian=1)),
    classes=class_names,
    sample_groups=dict(Pedestrian=6))

file_client_args = dict(backend='disk')
# Uncomment the following if use ceph or other file clients.
# See https://mmcv.readthedocs.io/en/latest/api.html#mmcv.fileio.FileClient
# for more details.
# file_client_args = dict(
#     backend='petrel', path_mapping=dict(data='s3://kitti_data/'))

Fix in #258

Fix in #258

@zye1996  Did you manage to train 3DSSD on KITTI for the pedestrian class?

@RolandoAvides @zye1996
Did you manage to train 3DSSD on KITTI for the pedestrian class?

Yes


Create praedinius.txt

Add Praedinius Gymnasium (nl/praedinius.txt)

Our school on Wikipedia (for easier verification): http://en.wikipedia.org/wiki/Praedinius_Gymnasium


Automated cherry pick of #4676: fix: guest network default share scope should be system if non-default-domain-projects is off

Cherry pick of #4676 on release/2.14.
#4676: fix: guest network default share scope should be system if non-default-domain-projects is off

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.14@0260578). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.14   #4681   +/-   ##
==============================================
  Coverage                ?   6.87%
==============================================
  Files                   ?     523
  Lines                   ?   88964
  Branches                ?       0
==============================================
  Hits                    ?    6116
  Misses                  ?   82341
  Partials                ?     507

Flag
Coverage Δ

#aFlag
6.87% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/networks.go
0.53% <0%> (ø)

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 0260578...8954546. Read the comment docs.


xorgserver / modesetting DDX built without Glamor support

Currently, xorgserver is built without --enable-glamor + epoxy as a dependency, which are needed to enable Glamor support in the in-built modesetting DDX. This is unfortunate, as modesetting with Glamor behaves better than the intel DDX on a decent proportion of Intel hardware.
I would submit a PR to fix this, but the Perl script used to generate pkgs/servers/x11/xorg/default.nix is pretty opaque to me.

@vcunat may know more about this (but is possibly too busy to answer right now ...)

@shados: no changes to the perl script or that generated file should be needed; the server is heavily overridden in overrides.nix already.

Hmm, could it be why with my skylake I'm getting an unrecoverable black screen after resume, ~50% time? (Well, I can switch to text mode and restart X.)

@vcunat Probably not? The modesetting DDX may support the hardware better than the intel one, but I don't think the lack of Glamor support would actively cause bugs. Glamor just provides 2D hardware acceleration.

@Shados Did you get a chance to look at this?  Otherwise I will submit a PR later today.

The modesetting driver now has glamor support on the master branch.  The only issue I had was that scrolling became unbearably slow in chromium, but this was fixed by setting the "Override software rendering list" flag.


fix https://github.com/vitmalina/w2ui/issues/2279

problem is "."(dot) cause group is not regexp. Replacing dot replace all chars.


Add Linux support

https://github.com/equilaterus-gamestudios/utility-ai-configurator/tree/linux-support

https://github.com/equilaterus-gamestudios/utility-ai-configurator/pull/42

Pending QA


Question on tracking hxestorage progress

I am trying to diagnose a problem that occurs at a specific point in HTX mdt.io. It always appears at the same point relative to starting HTX mdt.io, approximately 11 hours into the test. It seems to be about when "cycle count" goes from "0" to "1". The problem persists for about 2 hours, then subsides until the start of the next cycle (cycle count goes to "2" - approximately 9 hours after going to "1"). This pattern then repeats indefinitely throughout the testing (i.e. a couple hours of problems every ~9 hours).
What I am trying to determine is just what sorts of I/O are being performed during that time. How do I get HTX to tell me what tests are being run, or how do I get it to log more information on what tests are being run?

hxestorage exerciser dumps the info of  last apprx. 1500 IOs that happened on any disk device at below location on test system:
/tmp/htx/hxestorage/<device_name>/IO_details_dump.log.
Info is as below:
thread_id: rule_5_1 - time: 0x3c63254e211c7, oper: wrc, cur_oper: read, blkno: 0x1afbddb8, num_blks: 227, rbuf addr: 0x110382df0
Time: when the IO started.
oper of be performed: WRC (i.e. write/read/compare)
cure_oper: current operation going on
blkno: blkno where IO started.
num_blks: transfer size in terms of blocks
rbuf_addr: address of buffer where to do read.
Hope, this will be helpful to you.
To explain a bit about the exerciser, hxestorage  uses default.hdd or default.ssd rulefile in mdt.io. These rulefiles have multiple stanzas which act as input to the exerciser. Each stanza defined here is one testcase.  During each stanza run, multiple threads will be doing IO simultaneously on the disk. In 1 cycle count, hxestorage exerciser runs all these stanzas i.e. completes one pass of the rulefile, increments the cycle count and start from beginning again. Each testcase will have its own inputs to be given to the exerciser. Since problem is seen everytime around when cycle count changes. mostly it will be in stanza 3 or 4. You can see on screen "Curr Stanza" around the time you see the problem,
If you can let me know what kind of issue are you seeing and provide me system login details. I can provide may b more details related to it.

What I need is to be able to relate behavior of the system, bounded by some timestamp values, to what HTX was doing during that time. I guess I could dig through the rules and get an idea of what is going on, but I do not have any log that shows what rules were being run at a given time. Is there any sort of file that contains this information, for example a timestamp (human readable) and indication of the beginning/ending of a step?
Am I correct in assuming that these rule files will help explain what each step does?
Also, the "time:" field in the IO_details_dump.log file seems to be the value of the PPC timebase register, and is difficult (impossible) to relate back to wall-clock time. Also, since that file only shows the last 1500 I/Os it doesn't help for a long running test. I typically see around 1 million I/Os per hour, per disk.


Blank back trajectories are generated, with only column names of along trajectory meteorology, no data in the rows

I am still learning python, and I am trying to get back trajectories as follows:
pysplit.generate_bulktraj('kor', r'C:/hysplit/working',
r'E:/trajectories/kor', r'E:/gdas',
[2019], [10], [21],
[100, 500], (38.419, -5.083), -168,
meteo_bookends=([1,2]),monthslice= slice(8,-22,1),
get_clipped= True, get_reverse= True,
hysplit='C:\hysplit\exec\hyts_std')
The gdas files I used are in this format gdas1.oct19.w1 and gdas1.oct19.w2.
I have tried to figure out where is the mistake but did not succeed. Please help where i am making a mistake. Thank you.

The trajectory looks like this:
2     1
GDAS    19    10     1     0     0
GDAS    19    10     8     0     0
1 BACKWARD OMEGA
19    10     9    21   38.419   -5.083   500.0
10 PRESSURE THETA    AIR_TEMP RAINFALL MIXDEPTH RELHUMID SPCHUMID H2OMIXRA TERR_MSL SUN_FLUX

meteo_bookends in your case should be ([], []), indicating no files from the previous month and none from the next month, though I don't think that will fix the problem.
Some things to try/ investigate: Does the same thing happen if you choose a different day, say the 10th? What if you generate the original trajectory directly in the HYSPLIT program?  Is there actual data in your GDAS files (size greater than 0)?  Has your altitude setting in HYSPLIT been changed from the default meters above ground level to meters above sea level?

Dear Mellissa,
Thank you for the quick response, let me investigate suggestions you have given then I will give feedback here.
Pasvolo.

Hi,
After changing the meteo_bookends to ([1], [2]) and the altitude set to meters AGL, the results were still blank trajectories. And after changing to either 10th, 8th, 7th, the output still was blank trajectories.  I decided to test what will happen if I set the monthslice to whole month, i.e (0,32,1), the output was 62 blank trajectories, 31 for the 100 m AGL and 31 for the 500 m AGL. I thought it will throw an error that there is not enough data to run the whole month.  Any suggestion will be appreciated.  The data files are attached here for your reference.
gdas1.oct19.zip
Thank you.

In addition, the warning text file in the working directory says:
WARNING metset: Only one time period of meteo data. When I tried to run in HYSPLIT it gave this error:
Model started ...
HYSPLIT - Initialization
HYSPLIT version: hysplit.v5.0.0
Last Changed Date: 2020-05-13
NOTICE: using namelist file
SETUP.CFG
WARNING metset: Only one time period of meteo data
WARNING metset: Only one time period of meteo data
Calculation Started ... please be patient
ERROR metpos: start point not within (x,y,t) any data file

start time before start of meteorology data
Thank you

Your GDAS files are messed up.  The normal size of a w1, w2, w3, w4 data file is 584853 KB; the normal size of a w5 is 83551 to 250651 KB; your files are 1036 and 592 KB.

Thank you Mellissa for this observation. I redownload the data again.

It looks like you're extracting a square rather than a global meteorology file.  Try downloading from here: ftp://arlftp.arlhq.noaa.gov/archives/gdas1/

Hi, thank you for the address, i have tried but it does not work.  Then I tried downloading the era5 data and converted to HYSPLIT format and renamed to era5.oct19.w1 and era5.oct19.w2, after running this code:import os
os.environ['PROJ_LIB'] = r'C:\Users\User\anaconda3\pkgs\proj4-5.1.0-hfa6e2cd_1\Library\share'
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import pysplit
pysplit.generate_bulktraj('kor', r'C:/hysplit/working',
r'E:\trajectories\kor', r'E:\gdas',
[2019], [10], [21],
[100, 500], (38.419, -5.083), -168,
meteo_bookends=([1],[2]),monthslice= slice(8,-22,1),
get_clipped= False, get_reverse= False,
hysplit='C:\hysplit\exec\hyts_std')
The following error was raised:
Traceback (most recent call last):
File "C:\Users\User\anaconda3\envs\pysplitenv\lib\shutil.py", line 791, in move
os.rename(src, real_dst)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'koroct0100autumn2019100721' -> 'E:\trajectories\kor\koroct0100autumn2019100721'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\EcMwF\PysPLiT_Umn.py", line 9, in
pysplit.generate_bulktraj('kor', r'C:/hysplit/working',
File "C:\Users\User\anaconda3\envs\pysplitenv\lib\site-packages\pysplit\trajectory_generator.py", line 176, in generate_bulktraj
shutil.move(trajname, final_trajpath)
File "C:\Users\User\anaconda3\envs\pysplitenv\lib\shutil.py", line 805, in move
copy_function(src, real_dst)
File "C:\Users\User\anaconda3\envs\pysplitenv\lib\shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Users\User\anaconda3\envs\pysplitenv\lib\shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'koroct0100autumn2019100721'
I have tried to solve this error without success, please any one with a suggestion on how to solving this error.
Thank  you,


Enhancement: Add DB of sample prompts that may be useful for people

AAU,ISHBAT have a collection of various prompts, that I may wish to ask of my collected material.
Short term: Implement a local viewing of the prompts made availabe via the 'Fabric' project - https://github.com/danielmiessler/fabric
Long term: Implement a lot more prompts. Make it easily exportable/updatable.
Success: A browsable collection of prompts that I may wish to use. (Short term: copy/paste, not necessarily being fed back into a prompt immediatley upon selection)

Done. Will close when I've added a collection of prompts.

Done. Added entirety of https://github.com/danielmiessler/fabric project's prompt collection as an initial, well-rounded set. (Hat tip to that project)


Advanced Block fill options

Would be nice to have some advanced methods to shape templates to various geometries and levels of compactness.

Some initial ideas:

Hollow, hollow out the interior of a template if there's enough 3d space for it.
Fill interior, fill the interior with a certain block type or set of blocks. Could be useful for making components that have useful systems inside of them.