Stop fixture, test or file on first fail or conditional execution of tests based on result of previous test

What is your Test Scenario?

I need to stop tests or fixtures conditionally or on first fail to stop just fixture or test which failed.
What are you suggesting?

--stop-on-first-fail closes whole test run which is not ideal in the case of using "glob patterns". One failure should not stop whole test run, but stopping one fixture would be ideal.
What alternatives have you considered?

I considered using pure javascript and chaining these tests but i am challenged by race conditions. This resource is the closest, but it doesn't work.
https://github.com/DevExpress/testcafe/issues/1626#issuecomment-417424558

Sorry for bothering, I found out, that this solution is impossible and these conditions needs to be programmed inside of the test(). The purpose of the test is not to separate particular steps of the test suites, but rather it is whole test suite.


docs: change readme structure

Fix #365
The idea of this new structure is to have the repo's README route the reader to the right section for a given purpose. A reader should only need to go to one file linked from the README at a given time, e.g. when someone wants to set up their local environment, they don't care (yet) about deploying so these two are in two different files.
Also using emojis to make it less dry and easier to scan quickly.
I did only minor doc changes such as section levels and switching references to other files from code format to actual links. The rest of the text is unchanged, just moved.

@rochecompaan Merging to make sure we have this documentation for our newest project.


[useToggle] Rewrite as a wrapper hook

Motivation
While the current implementation of useToggle handles a given state variable specially, wrapper syntax would allow it to control custom states (e.g. the one returned by useLocalStorage).
Basic example
function Example() {
  const [isPressed, togglePressed] = useToggle(useLocalStorage('isPressed', false));
}

Based on the proposed interface of useCounter, an alternative API would be as follows:
function Example() {
  const [isPressed, setPressed, togglePressed] = useToggle(
    useLocalStorage('isPressed', false)
  );
}

Hi, I would like to try this

@Jfelix61 Thanks for your contribution! If you need any kind of assistance, I'm glad to help.

@kripod, just saw react-use repo and they had a hook called useBoolean which basically the same as useToggle. However, we can name our wrapper syntax useToggle as useBoolean and give useToggle its old interface, so the users can have options.

@Jfelix61 Personally, I don't think it's a good idea to have those two implemented with different functionality, as it may cause inevitable confusion among developers.

@Jfelix61 Personally, I don't think it's a good idea to have those two implemented with different functionality, as it may cause inevitable confusion among developers.

Yea you are right, then I'll leave it as it is.

This has been resolved by #78.
@Jfelix61 If you ever decide to contribute again, please refer the corresponding issue (e.g. this one) in your pull request using keywords if possible. Thank you for your efforts!


make installable hook

http://sailsjs.org/#!/documentation/concepts/extending-sails/Hooks/installablehooks.html

That would be great!


Return of the string mixup between password & dark mode

Regression on https://github.com/openfoodfacts/smooth-app/issues/751

Could it be that this is only due to the translation process

Indeed @M123-dev
closing


Questions/clarification on training

I'm trying to understand when an xml file should be deleted vs corrected when training grobid. In my instance, I'm trying to train grobid on some unique pdf's for fulltext extraction.
I generated the training xml's from the pdf's, and annotated the segmentation structure. When I went to annotate the fulltext training xml's, I found that they contain headnote lines that don't relate to the document text (its just a disclaimer on all pages). I don't see anything in the fulltext annotation documentation about how I should handle that kind of text which makes me think that the fulltext xml's should be deleted as it states in the training section of the documentation. If that's the case, I don't see how I could train fulltext at all in my instance since those headnotes are in every one of my fulltext training xml's.
Is there a specific annotation I should use for a headnote in the fulltext training xml? If I do need to delete the fulltext training xml's, should I train with the segmentation training xml's and regenerate the training data?

Hello @mneis1 !

should I train with the segmentation training xml's and regenerate the training data?

Yes this is the expected process. First fix segmentation issues in the segmentation training xml and model, then retrain the segmentation model and regenerate the training files for the fulltext model. It should produce fulltext training data following the segmentation-level example, so without headnotes and so one.
This is cumbersome to have to retrain the segmentation model, but this modularity avoids annotating too much stuff for each model.
I need to describe the process in the documentation, sorry for not being clear in the current state.
Normally, no text content should be deleted in the training fulltext files. It should be fixed at the level of the segmentation model. If some text still not relevant appears in the fulltext training data, we just ignore it and leave it without any fulltext markup - it will be considered/learnt as "noise" by the fulltext model.

Ahhh that makes sense! Thank you so much!


New version release, please!

I need to write rake task for creating new versions.list file. #16 changed things which affect it. Can we please have a version release here so that we can update rubygems.org with recent changes?

It is out as v0.11.0


Revamp config overriding via flags

As of now, in optimus, all keys that defined in yaml file can automatically be overriden via flags. We should avoid that, because of this following issues:
When we use the flag's name that same as what we define in yaml file. But the flag itself is not intended to be an overriding-flag config. For example, we have following yaml file:
namespaces:
  - name:
    ...
  - name:
    ...

At the same time, we have flag (--namespaces) that receive array of string. Since the --namespaces is already binding to the key namespaces from yaml file, this flag can't be used.
Another issue is when we want to replace config project.name from yaml file, but we want to use flag --project. As of now, we can't. Because we provide automatic binding by names, whenever we want to replace project.name we can only use flag --project-name. Probably in the future, it might happen again.
It's better if we can provide such a flexibility for developer to choose, which flags that will replace to which keys from yaml file.

@sravankorumilli the closest solutions I've got so far is we can create wrapper for the flags to define which config field belongs to which flag
Here's the high level design, let's say on deploy.go
...
cmd.Flags().StringSliceVarP(&namespaces, "namespaces", "N", nil, "...")

configFlags := config.NewConfigFlags(cmd.Flags()) // flags wrapper
configFlags.String("project.name", "project", "...") // mapping which config field that belongs to which flag name

...
c, _ = config.LoadClientConfig(configFilePath, configFlags)
...

by this approach, we only map project.name to flag project. And flag namespaces won't be binded

As per our discussion, we conclude that we don't need config overriding via flags. Here is several things we concerned:

Config file is used as default value
Pass the values to command execution only when it's needed

After analysis, here are several commands which config yaml is required:

backup create*
project register -> optimus init if config not exist
namespace register -> optimus init if config not exist
namespace list*
resource create
job create
job addhook
job render* -> TODO: fetch jobSpec from server instead
job run -> deprecated
job validate
deploy
serve

should always use config yaml
every time filesystem is require -> config yaml is requires

Other commands use config yaml as a reference for a default value
Flags for each commands which don't require config yaml:

command
flags
comment

admin build instance
--project-name

--host

backup list
--project-name

--host
currently not exist

--storername
currently using interactive survey

backup status
--project-name

--host
currently not exist

--storername
currently using interactive survey

job run-list <job_name>
--project-name

--host

Currently commands that require config need to be executed inside project directory. Further suggestion, these commands can be executed from anywhere by providing project directory via flag --dir. (not in this scope)


class_name won't work on built-in scripts

Godot version:
Godot 3.1 build 8698876
OS/device including version:
Arch Linux
Issue description:
When a Script.gd has a class_name, it will be reckognized by the engine and can be used later. However, if a script built-in on a Scene has a class_name, other scripts won't reckognize it.
Steps to reproduce:

Create a new scene.
Attach a script to it, and mark the option "Built-in" to be "On"
On the content of the script, name it with class_name. Example:

extends Node
class_name Item

func _ready():
    pass

Create a new script.
Extends it with the newly created built-in script.

extends Item

An error will be thrown: error(1, 20): Unknown class: 'Item'

Minimal reproduction project:
Built-In class_name.zip
In this project, there's both a Built-in (class_name BuiltinItem) and a not built-in (class_name NotBuiltinItem) scripts. Open the Script.gd file, you will see the error described above. If you change the extension to NotBuiltinItem, the error will disappear.

This is expected. I don't think class_name makes sense for built-in scripts.

This is expected. I don't think class_name makes sense for built-in scripts.

I think it does. Sometimes I have a scene, that will be extended by other scenes and I want to check in code if this other scene extends the first one. I do this using class_name, but I have to separate the script from the scene in a new .gd file before. I do this all the time, as I use built-in scripts for my scenes by default, and only separate it when need to use class_name.

I think that built in scripts should not be used much. I use them only if I need to quickly test something. There have been some issues reported about their different behaviour and I am beginning to question how worth it is to keep them.

There have been some issues reported about their different behaviour and I am beginning to question how worth it is to keep them.

Well, that's for a another issue. I like them and just won't use them when not possible (the only case when it's not possible for me is the class_name case) because it keeps my project more organized. It's cleaner to have a Something.tscn than both Something.tscn and Something.gd linked to it.

I think it is easy to lose track of where is what when the project grows, but this is just my opinion.
@vnen I believe that if builtin scripts are some sort of second class citizens, then it should be clearly stated somewhere.

It's cleaner to have a Something.tscn than both Something.tscn and Something.gd linked to it.

That's quite subjective and I would argue the other way: it's cleaner to separate the concerns. When you look at the filesystem it's clear that that scene has a script. The same way it's not good to embed images in a scene. I find it also helpful when I need to edit a script without the Godot editor.

Sometimes I have a scene, that will be extended by other scenes and I want to check in code if this other scene extends the first one. I do this using class_name, but I have to separate the script from the scene in a new .gd file before.

How did you do this before class_name? I don't think you could ever extend a built-in script.

I believe that if builtin scripts are some sort of second class citizens, then it should be clearly stated somewhere.

Probably. Honestly, if it were up to me I would forbid built-in scripts, they give more headaches than it's worth.

Splitting scripts and scene files is also miles better for use with VCS. A Scene file usually is "mature" pretty quickly in regards to the components inside of it, but the scripts will evolve more often over the lifetime of a project.

How did you do this before class_name? I don't think you could ever extend a built-in script.

I didn't, I use Godot since it has class_name and it is a so basic feature I don't even know how people did without it.

This is expected. I don't think class_name makes sense for built-in scripts.

If that is the case, then implementing a warning/error when typing that should be enough to close this issue.

As I continued to use altitude, I discovered some of the disadvantages of built-in scripts and finally decided that it was advantageous to have separate scenes and GDScript files. The reasons are as follows:

The built-in script cannot find a type in another script when using the keyword class_name.

If you use the keyword class_name with the embedded script in the scene, no other scripts can find the class name.

The version control system is a little bit more cumbersome to resolve the conflict.

It's built-in the scene. If there is a conflict on the versioning system, you must open and modify the thin file. Of course, the altitude is so designed to be very good for versioning that the internal structure of the thin file is not complicated. But it's a little bit more cumbersome compared to just modifying the GDScript separately. For example, if you want to modify a conflict in an external editor, such as VSCode , the embedded script portion does not apply to Synctax.

The built-in script is difficult to recycle.

Because you depend on the scene, you eventually have to save the script as an external file if you want to import it from another It's not as rare as I thought it would be.


tetragon: run in host pid namespace

Try to run e2e tests in host pid namespaces https://kubernetes.io/docs/concepts/security/pod-security-standards/ hostPID=true , and also think about side effects if having that in helm charts, about security, admission, scanners etc.

Let's avoid this if possible.


local running

Any plan to support local LLMs?
Have you tried it with open models?

Hi, we didn't try LATS with local models to compare more closely with previous work. This would certainly be something worth trying, but I don't have any plans to add this to the codebase.


Fixes the front end routing problem

Signed-off-by: AkhilHector<EMAIL_ADDRESS>

@Ethcelon Travis finally showed some mercy on me


Format PUT request body as urlencoded.

When I use Postman to PUT a request to laravel, the body variables are not accessible in PHP. As far as I can tell, simply setting the mode of the Postman object to "urlencoded" will import the required parameters properly so that they can be PUT as x-www-form-urlencoded Body data.

Codecov Report

Merging #418 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #418      +/-   ##
============================================
+ Coverage     91.66%   91.68%   +0.01%
- Complexity      222      225       +3
============================================
  Files            11       11
  Lines           540      541       +1
============================================
+ Hits            495      496       +1
  Misses           45       45

Impacted Files
Coverage Δ
Complexity Δ

src/Postman/CollectionWriter.php
88.88% <100%> (+0.42%)
15 <2> (+3)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks.


Measurement service starts successfully when discovery service can't be contacted

Bug Report
When developing a measurement service and testing it, it's typical to use the development environment to start the service manually. However, for the service to be used by the rest of the system, the discovery service must already be started and the service must be able to register itself with it successfully. Currently, if the discovery service isn't started when the service starts, the service still appears to start and run successfully. However, later attempts to access the service from a client will always fail. When you manually stop the service, only then do you see an error reported about not being able to contact the discovery service.
Repro or Code Sample

If the discovery service is already started, kill it from task manager.
Manually start a measurement service using the Run Service.vi in the LV IDE. Notice no error is generated, and the service continues to run.
Try to access the measurement from TestStand or InstrumentStudio. Notice the measurement isn't found unless you happen to have already registered a .serviceconfig file for the service.
Manually stop the measurement service in the LV IDE. You will now get a popup error about not being able to contact the discovery service.

Expected Behavior
I would expect trying to run the service in this scenario would automatically fail and popup an error message without requiring manual intervention to stop it.
Current Behavior
User must manually stop the measurement service before receiving any indication that the service isn't usable.
Context
The current behavior wastes time during development if you forget to start the discovery service. It's not uncommon to need to kill the discovery service during development as you're working out the bugs or abort code execution so that cleanup functions don't run.
AB#2358429

@jasonmreding which versions of the .vip packages are you using? We corrected this behavior with a recent PR.
#181

Dang, I browsed through recent commits but didn't spot anything that looked like it was this issue. I'll go ahead an close out the issue then since it looks like it will be addressed if I upgrade to the latest release.

Closing as duplicate.


Fix minor typos in the benchmark docs.

Original, at https://docs.ffcv.io/benchmarks.html

thanks vincent!


Using the plugin throws an error

I'm experimenting with your module in browser and I would like to use transform-runtime plugin. However for now it's impossible 'cause an error is thrown - Uncaught ReferenceError: require is not defined. It points to this line - var _regenerator = require('babel-runtime/regenerator'); which is the code of plugin itself. Does this mean that your module needs deeply include/require all dependencies in order to be available in browser?
My code looks like:
var options = { presets: ['es2015', 'react', 'stage-0'], plugins: ['transform-runtime'] };
var output = Babel.transform('let a = 2', options).code;

Thanks!

Couple of things you can try here:

use a direct require of the module into your options object as demonstrated in throw-in-the-towel

try including the transform-regenerator plugin as well

Hmm, seems like I need to do some more testing of transform-runtime. Thanks for the report, I'll try to look at this over the weekend.

So I looked into this, and by definition I don't think there's any useful way to use transform-runtime with babel-standalone. transform-runtime requires a module system of some sort (eg. CommonJS). I think you'd need to load a module plugin other than transform-es2015-modules-commonjs if you wanted to use it.
It looks like transform-runtime loads polyfills and external helpers, rather than requiring you to polyfill globally. I'm not sure that's useful with babel-standalone, you should just be polyfilling :). For externalising helpers to save bytes, you could use external-helpers-2.
Closing this out, but let me know if you disagree :)


Added Superstore Dataset

Added a dataset named SampleSuperstore Dataset.

Good one @shubham230600
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow these steps.

Star this repository. ⭐
Follow Clueless on GitHub
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/) .
Go to the profile section from the top right-hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard!
And don’t forget to share your achievement with your friends.


Change names to shorter

Right now have
Kent.Boogaart.KBCsv
Kent.Boogaart.KBCsv.Extensions

Try out .NET BCL approach when Extension extend root namespace and do not have their own. Drop Extensions namespace, only in dll name. Put DataTable extensions into its namespace.

Kent.Boogaart.KBCsv has KB 2 times. Drop KB. Get like Kent.Boogaart.Csv

You have long name hard to remember. With 2 o and 2 a. Rename to kentcb and get

Kentcb.Csv

Value: ease of discovery and typing. You may try renaming when creating backward incompatible changes.

Considering type forwarding as a solution to this problem. My intention would be to change the namespace to KBCsv. However, NuGet packages may be more difficult to update without disruption.

The next version of KBCsv (4.0.0) has removed "Kent.Boogaart." from all packages and namespaces.
Unfortunately, type forwarding was not an option. Instead, I need to break clients. I will be releasing the new NuGets first, then an update to the old packages that intentionally breaks consumers. It will include a readme with instructions on upgrading.
Once upgraded, it's a simple search/replace to switch namespaces.


Update OmniSharp.Extensions.LanguageServer to "0.14.2" to fix synchronisation

See https://github.com/OmniSharp/csharp-language-server-protocol/pull/199
This is a more conservative version of my previous PR to fix LSP synchronisation issues:

https://github.com/OmniSharp/omnisharp-roslyn/pull/1754

I'd consider this one for merge, as it does not require introducing ProgressManager as the PR for upgrade to 0.16.0 does.

thank you!


ADA Compliance

Need to consider if SEA is ADA compliant.

Back in
Front end

Is there a way to do an automated test of this?
PSU information
https://accessibility.psu.edu/accommodations/policy/
https://www.w3.org/TR/WCAG20/

Are Web office just flagged the calendar for ADA compliance as well.  And, they actually sent me to this issue ..
Question for @rdblake21 am I also understanding after today's Ask Me Anything -- that Mason can use the code Thad provides here - and, create our own compliant page.

@KathyZimmerman I think @tcdahlberg captures some of what you're asking in a recent response in the community. The link you have it more centered on embedding the existing calendar onto an external website. Depending on what's not meeting ADA Compliance, you may need to just create your own calendar leveraging the feed, which I'm realizing isn't documented welll...
Here's some of it captured in the release notes.. across two releases

https://sfdo-community-sprints.github.io/summit-events-app-documentation/docs/release-notes/30-0-1/#rest-api-update
https://sfdo-community-sprints.github.io/summit-events-app-documentation/docs/release-notes/33-0-1/#calender-can-be-filtered-with-various-url-parameters-resolves-554

We likely need to update the instructions (please correct me @tcdahlberg).

Thank you -- sharing with the developer!
On Mon, Dec 9, 2024 at 9:47 PM Ryan Blake @.***> wrote:

@KathyZimmerman https://github.com/KathyZimmerman I think @tcdahlberg
https://github.com/tcdahlberg captures some of what you're asking in a
recent response in the community. The link you have it more centered on
embedding the existing calendar onto an external website. Depending on
what's not meeting ADA Compliance, you may need to just create your own
calendar leveraging the feed, which I'm realizing isn't documented welll...
Here's some of it captured in the release notes.. across two releases

https://sfdo-community-sprints.github.io/summit-events-app-documentation/docs/release-notes/30-0-1/#rest-api-update
https://sfdo-community-sprints.github.io/summit-events-app-documentation/docs/release-notes/33-0-1/#calender-can-be-filtered-with-various-url-parameters-resolves-554
We likely need to update the instructions (please correct me @tcdahlberg
https://github.com/tcdahlberg).
—
Reply to this email directly, view it on GitHub
https://github.com/SFDO-Community/Summit-Events-App/issues/567#issuecomment-2530115362,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMTSXHKFBJ7BK6XBMIJGHYD2EZI5VAVCNFSM6AAAAABKTTC7LWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZQGEYTKMZWGI
.

Strength does not come from the physical capacity. It comes from an
indomitable will. – Gandhi


Fix regular expression for noqa comment

The current regular expression matches a string that looks like a noqa comment:
x = "# noqa: E401"

The fixed regular expression doesn't.

lol
> echo 'a = lambda: 0' | flake8 -
stdin:1:1: E731 do not assign a lambda expression, use a def

> echo 'a = lambda: 0, "# noqa: E731"' | flake8 -

I think this is gonna be hard to get right as long as we’re not using the lexer tokens. For example, I think this will now reject: “# noqa: E501 # other comment” — does Flake8 respect that?

I think what we could do is collect all the comments from the lexer… then we can map from line number to comment in here.


Add SNV Binomial Filter

Old internal issue:
https://jira.gsc.wustl.edu/browse/CI-27

binomial filter

as a score in the VCF
based on gmt validation identify-outliers

This is in the latest somatic-exome workflow


Async write support

After looking through the client code and finding the writes as synchronous, I can't help but feel there should be options for writing asynchronously. Correct me if i'm wrong, but it was instead chosen to batch up data points to make up for this?
I only see two closed issues [ #181, #348 ] regarding async behavior, so I'm curious as to the maintainers reasons for choosing the purely sync direction.

Cannot speak for maintainers but from what I can see, use of requests library precludes async requests as async is not supported by requests.
That said, requests could be monkey patched by gevent in code using this library which would make all requests made by this project asynchronous.
However, not sure there is a use case for this for writes specifically, given that requests, async or no, will still need to be handled by influxdb which is already asynchronous.
Hundreds/thousands async writes thrown at influxdb will not make it very happy. Better write performance  can be had by using one long lived connection (an InfluxDBClient object) and batching writes to it instead.
That connection can be run in background by running it on a separate process, or greenlet/future, directly, to make it async.
Finally, async does not preclude batching or vice versa. Batching writes improves write performance regardless of async/sync behaviour.

@pkittenis A similar question, which you've almost answered :) So I'm reading from a raspberry pi pins and sending the data over the network to influx db. Yes, batching is something I'm using, but the batch blocks the main python program when its sending the data / POST to the db for which I'm using some async lib for python 2.. The Series helper class does provide this batch writing, but how am i suppose to wrap this up in a try catch block? Since the wifi is very unstable and very occasionally the device loses internet connection. Any recommendations?

| That connection can be run in background by running it on a separate process, or greenlet/future, directly, to make it async.
In other words, if blocking the main program while writing is not wanted then the writing function will need to be run in background. Whether that is done via threading, multi processing, or in a gevent patched client is not important as in that case as there will only be one connection, where async benefits do not apply as much.
Retrying requests library does by itself, if you want it to retry forever you'll need to try/except the error and resend the request in your own code.

@pkittenis Thanks for that.. Using threading module for now. I understand requests library does it byself, since I'm want to write locally if there's connection error, I want to use try except; is it possible you can give a simple example? That's be really helpful..
Another possible idea was to tun auto commit option to False and have a separate counter when SeriesHelper is called let's say 100 times. Does that make sense?

This is not an appropriate place for general programming questions - might want to take this to stackoverflow or similar.

@dskoda1 Although it is quite basic and not very well tested yet, I have just made a simple async InfluxDB client and made it public: https://github.com/plugaai/aioinflux

closing this ticket to track in #452


lessEngine.render(...).then is not a function

While performing a build, ran into the following error:
lessEngine.render(...).then is not a function
    at file:/Users/mark/Projects/Lowes/i2web/node_modules/steal-less/less.js:99:57

It works wonderfully in dev mode.

Hey @mjstahl, if you look in node_modules/less/package.json what version is shown there?

I created a gist that's working: https://gist.github.com/matthewp/c7c182eba1d1023e35e7e0427128bd93


Left align center item doesn't work correctly

Is it possible to achieve something like this with swiper?
https://stackoverflow.com/questions/55699500/dont-center-a-pageview-flutter
Basically left align the current item and have the next item (to the right) peeking onto the screen.
I tried doing something like this:
Swiper(
  layout: SwiperLayout.CUSTOM,
  itemWidth: 250.0,
  itemHeight: 200.0,
  customLayoutOption: CustomLayoutOption(
    startIndex: -1,
    stateCount: 3,
  ).addTranslate([
    Offset(-330.0, 0.0),
    Offset(-80.0, 0.0),
    Offset(170.0, 0.0),
  ])
...

Basically offset the left item off the screen, the center item to the left and right item next to that. Which seems to render OK, but then the scrolling behaviour is not correct (when swiping the right item into view it appears "on top" of the center item).
Thanks!

@jzoom any idea if this is possible with the current version?


chore(deps): update terraform github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc to v5.2.0

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc
module
minor
v5.0.1 -> v5.2.0

Release Notes

terraform-ibm-modules/terraform-ibm-landing-zone-vpc
v5.2.0
Compare Source
Features

Create submodules with defaults aligned with landing-zone workload and management VPCs (#442) (fc10af2)

v5.1.0
Compare Source
Features

This version narrows down the network acls for intra vpc connectivity, limiting the source/destinations to vpc address space CIDRs. (#471) (42e782f)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Doesn't work at all

to reproduce:
 expo init --template https://github.com/kathawala/expo-hamburger-menu-template
 - cd menu
- npm start # you can open iOS, Android, or web from here, or run them directly with the commands below.
- npm run android
- npm run ios
- npm run web

npm start

npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:

It doesn't look like you ran "cd menu" to go into your projects folder before running npm start.

It's line 2


Import Github actions and contributions configuration from co2-tracker-utils

This PR contains a copy of the Github actions used for https://github.com/comet-ml/co2-tracker-utils.
It contains:

Packaging actions + Conda meta.yaml package definition. The upload part is currently missing from the Github action.
Release drafter github actions to prepare a draft of a release note for each PR merged, very helpful.
Pre-commit Github action + pre-commit configuration (https://pre-commit.com/). This helps enforcing style-guide and running linting. We should probably update the Readme to ask people to use it.
Run the tests with tox.

Should we merge @Lothiraldan ?

Sure I can remove the flake-8 copyright and flake8-coding plugins so the build will pass.

Ok that should be ready for review now, it seems that the tests are failing, in part because the test machine doesn't have a GPU.

@Lothiraldan Any idea why the fails?

No idea, the tests are green locally.

@kngoyal  any idea why tests would fail on 3.8 but not 3.6 or 3.7?

This might be a flaky test caused by some timing issues, we can change the flaky test from:
          self.assertEqual(
              3, mocked_get_gpu_details.call_count
          )

to:
          self.assertGreaterEqual(
              3, mocked_get_gpu_details.call_count
          )

@kngoyal thoughts?

Thanks @kngoyal


Access API in (Angular) SPA on same domain outside of routing interception.

Hello folks
I'm really impressed with the quality of this project. I plan on serving Angular and PocketBase on same domain, where PocketBase's API will be accessible on /api however Angular's routing mechanism seem to intercept any calls to this path as navigation and not as calls to my backend server.
I'm initializing PocketBase in an Angular service that I inject throughout my application. So far this works fine as long as PocketBase is served on another domain/port. I suspect I somehow should be able to inject a or wrap the SDK in a HttpClient that Angular will use to make backend calls https://angular.io/guide/http. But how could this be done?
export class PocketBaseService {

  readonly pb: PocketBase;

  constructor() {
    this.pb = new PocketBase(environment.apiHost);
  }
}

I'm not sure that I understand the issue and I don't see how it is related to the SDK.
Could you elaborate a little more on your setup? How are you deploying the Angular app? Is there a reverse proxy or you are using the static pb_public files serve that comes with PocketBase?

I suspect I somehow should be able to inject a or wrap the SDK in a HttpClient that Angular will use to make backend calls

I don't see why this will be needed. The SDK uses the native fetch for sending requests.

I'm not very up-to-date with the recent Angular development and I'm not sure what to recommend, but you may want to check https://angular.io/guide/build#proxying-to-a-backend-server in case it is relevant to your use case.
I'm closing the issue because I don't think is related to the SDK but feel free to provide more details about your setup (or a minimal reproducible repo if possible) and I'll try to investigate it in more details.

I know this isn't necessarily an issue with this SDK, but I've been traversing through Angular documentation and Angular forums to find the solution and there seemingly isn't one. I'm not alone about this and I would imagine that existing PB user might have solved it so this is my last bullet in the chamber.
Angular intercepts all requests (for same domain) on the client and nothing is sent to the backend, unless you explicitly use the provided HttpClient. My eager hope was that you could inject your own http client. As long as it implements the needed interface. Very similar to the AuthStorage.
It might as well just be my setup that prevents Angular to forward request from the SDK to the backend instead of the routing mechanism. This is a typical (and minimal) routing configuration with wildcard routing to a 404 page.
const routes: Routes = [
  { path: '', component: HomePageComponent },
  ...
  { path: '**', component: PageNotFoundComponent },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
  providers: []
})

The 'proxy to a backend server' unfortunate only works with the node runtime (primarly during development) and not if you do a production build with a static webserver like nginx, so this option is not available in production. Both PocketBase and Angular are running behind a reverse proxy (traefik) and Angular is being hosted from a nginx instance.

Both PocketBase and Angular are running behind a reverse proxy (traefik) and Angular is being hosted from a nginx instance.

My guess is that you are using nginx to rewrite all routes to the static index.html, right?
If that's the case, instead of passing down every route to the angular app, you can make an exception and configure the reverse proxy to proxy_pass all /api/* routes to the backend server.
But without an actial traefik/nginx config sample how you are deploying your app, I'm not sure how to help.
If you need an example nginx config for PocketBase you can check https://pocketbase.io/docs/going-to-production/#using-reverse-proxy.

Additionally, please note for static client-side apps you don't really need nginx and you can put your files inside pb_public directory next to the executable (you can change the default public dir location with the --publicDir flag).

I'm only using nginx as a static webserver. The issue is however that Angular does not send anything to the backend. So I can't even rewrite the routes on my reverse proxy. Requests from the PocketBase SDK gets intercepted by the Angular router, because they aren't performed by the Angular HttpClient.
I'm aware of the pb_public option but this sadly won't change how Angular and the SDK behaves on the client level. I can only imagine that if the SDK used Angulars HttpClient it would work, but I know that this isn't feasble for the SDK to adopt this. My workaround as of now is to simply server PB's API on a subdomain, but I feel it kind of inflicts with the email linking

Apologies for the many edits.

Requests from the PocketBase SDK gets intercepted by the Angular router, because they aren't performed by the Angular HttpClient.

But how? I can't find any reference in the Angular documentation for modified/overwritten fetch.
Your setup is too complicated and I'm not sure how to properly reproduce it.
I've tried:

Installed the basic setup from https://angular.io/guide/setup-local
Added a single route with a component that call PocketBase (not as a service but directly, but I doubt that this matter).
Executed npm run build to generate the static files
Moved the static files to a pb_public directory
Started PocketBase and clicked on the button of the component in 2) to test the API call and it worked fine.

I found the culprit. It was the developer all along.. I had configured my reverse proxy to redirect on exact /api match and not as a prefix... Everything now works smoothly. Thanks again for this awesome project. And for your time trying to reproduce my issue even though it wasn't remotely related to this SDK.


better errors for empty resultsets

remove graphiteBand's own empty check, just use the existing one
provide more context in empty check
fix error from parsing being recognized in graphiteBand

the latter 2 commits were supposed to go in a separate branch/PR. oh well.


Loading a Mach-O with relocations and lots of symbols is very slow

Using the file from https://github.com/Vector35/binaryninja-api/issues/5460, load time is ~20 seconds with ~18 seconds spent in retrieving symbols when handling relocations

Fixed in 4.1.5369-dev, load time is down to ~3 seconds


[OFFICIAL/TV] — Mr. OlYmPiA 2024 LiVe 𝐒𝐭𝐫𝐞𝐚𝐦𝐬 FrEe BrOaDcAsT oN TV Guide & 𝐒𝐭𝐫𝐞𝐚𝐦𝐢𝐧𝐠 12 October 2024

The bodybuilding competition of the year is here. That's right — Mr. Olympia is back for its 60th anniversary and returning to Las Vegas.
Ms. Olympia pre-judging will take place on Friday morning with finals in the evening, and the Mr. Olympia main event is scheduled to start on Saturday night. Bodybuilders from all over the world will be competing for the coveted title this weekend.
MR. OLYMPIA RESULTS: Updated list of winners in 2024
American bodybuilder Derek Lunsford took home the title in 2023, making him the first winner of the competition in two separate divisions (2023 Mr. Olympia and 2021 212 Mr. Olympia). Lunsford swapped places with defending champion Hadi Choopan, who had beaten him out for first place in 2022.
Both Lunsford and Choopan have qualified for the 2024 competition, as well as 2019 champion Brandon Curry. Andrea Shaw will be looking for an incredible five-peat in the Ms. Olympia competition.
Here is everything you need to know about the 2024 competition, including a full schedule and list of participants.
When is Mr. Olympia in 2024?
Dates: Friday, Oct. 11-Saturday, Oct. 12
This year, Mr. Olympia will be held at Resorts World Las Vegas. The finals for Ms. Olympia and Mr. Olympia will take place on Friday and Saturday, respectively.
Mr. Olympia schedule 2024
Date Time (ET) Event
Oct. 11 12:30 p.m. Ms. Olympia pre-judging
9 p.m. Ms. Olympia finals/Mr. Olympia pre-judging
Oct. 12 10 p.m. Mr. Olympia finals
Mr. Olympia live stream 2024
Live stream: Olympia pay-per-view
Mr. Olympia will not be available to watch on a national TV channel. Viewers can live stream the event on OlympiaTV, which provides a pay-per-view package for $74.99. asfdsf
Who is competing in Mr. and Ms. Olympia?
In order to qualify for events, competitors must meet the requirements set by the IFBB Professional League. Nineteen men qualified for Mr. Olympia, while 15 women qualified for Ms. Olympia. sdfds
Lunsford is the defending Mr. Olympia champion and will be looking for his second title this year. Choopan won in 2022 and will be hungry for a championship after placing second last year.sdgdsf
Shaw is competing for a fifth straight Ms. Olympia title.
Mr. Olympia qualifiers 2024
Name Country
Derek Lunsford USA
Hadi Choopan Iran
Samson Dauda UK
Theo Leguerrier France
Rafael Brandao Brazil
Martin Fitzwater USA
Nicholas Walker USA
Tonio Burton USA
Akim Williams USA
Brandon Curry USA
William Bonac Netherlands
Behrooz Tabani Iran
Nathan De Asha UK
John Jewett USA
Mohamed Foda Egypt
Jonathan Delarosa USA
Chinedu Andrew Obiekea UAE
Hunter Labrada USA
Bruno Santos Brazil
Ms. Olympia qualifiers 2024
Name Country
Andrea Shaw USA
Angela Yeo USA
Alcione Santos Barreto Brazil
Leyvina Rodrigues Barros Brazil
Theresa Ivancik USA
Julia Whitesel USA
Ashley Lynette Jones USA
Ava Melillo USA
Nadia Capotosto Italy
Helle Trevino USA
Anastasia Leonova Russia
Michaela Aycock USA
Sherry Priami USA
Kristina Mendoza USA
Alida Opre Hungary
What are the other events held during Mr. Olympia weekend?
There are a few other events beyond the typical Mr. and Ms. Olympia contests.
The other events for men are 212 Olympia, Men's Physique Olympia, Classic Physique Olympia and Wheelchair Olympia.
The other events for women are Figure Olympia, Fitness Olympia, Bikini Olympia, Women's Physique Olympia, Wellness Olympia and Wheelchair Olympia.
Mr. Olympia prize money 2024
The total purse has not yet been announced, but it is expected to break last year's record of $1.6 million.
The money will be split between the top finishers. In 2023, Lunsford took home $400,000, while the second- and third-place finishers earned $150,000 and $100,000, respectively.
Mr. Olympia winners list
Here is a list of the Mr. Olympia winners since 2000:
Year Name
2023 Derek Lunsford
2022 Hadi Choopan
2021 Mamdouh Elssbiay
2020 Mamdouh Elssbiay
2019 Brandon Curry
2018 Shawn Rhoden
2017 Phil Heath
2016 Phil Heath
2015 Phil Heath
2014 Phil Heath
2013 Phil Heath
2012 Phil Heath
2011 Phil Heath
2010 Jay Cutler
2009 Jay Cutler
2008 Dexter Jackson
2007 Jay Cutler
2006 Jay Cutler
2005 Ronnie Coleman
2004 Ronnie Coleman
2003 Ronnie Coleman
2002 Ronnie Coleman
2001 Ronnie Coleman
2000 Ronnie Coleman
Find out with this preview of the bodybuilding extravaganza.
If successful, the top three finishers in the Mr Olympia Men's Open will qualify for the contest again the following year, after changes to the rules in October 2023 to make it even harder to stay on top of the competition.
Previously, the top five Men's Open athletes would be given the right to enter the Mr Olympia the next year but that was changed by the contest owner to, "add some additional star power to the various regional events held worldwide."
It's easy to see why people feel so fervent about bodybuilding's greatest competition. It's a spectacle unlike any other, revolving largely around the aesthetics of muscle mass.
Ronnie Coleman, Arnold Schwarzenegger and Phil Heath make up some of the most successful performers in Mr. Olympia, each taking home a handful (or more) of titles in the famous tournament.
Who will win out this time around? The Sporting News is tracking results from each event, including the Mr. and Ms. Olympia competitions.
And other events such as the Men's 212 Bodybuilding, Classic Physique, Men's Physique, Women's Bodybuilding, Bikini, Fitness and Wheelchair will all be competed for.
With Nick Walker unexpectedly dropping out of this year's competition late, the field has become even less predictable than it already was.
Lunsford is the defending champion and Choopan had a wonderful competition two years ago. Either could win another Mr. Olympia title in Las Vegas on Saturday night.
Brandon Curry won the event in 2019 and has finished in second place twice (2020 and 2021) and fourth place on two occasions (2022 and 2023).
Obiekea, known more popularly as Andrew Jacked, lives up to the moniker and Dauda has been chasing bodybuilding's premier title for some time.
Any of those five competitors, and probably two or three others, could realistically win the event.

zxas


How map these types to TSQL?

Would appreciate some explanation on how to map DateOnly and TimeOnly from C# to TSQL Date and Time, respectively, using Entity Framework Core.

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

ID: 95850f55-ff31-1236-df2b-38e483e81655
Version Independent ID: 1fd26583-7bfa-dca2-f77d-6143c57e2169
Content: How to use DateOnly and TimeOnly
Content Source: docs/standard/datetime/how-to-use-dateonly-timeonly.md
Product: dotnet-fundamentals
GitHub Login: @adegeo
Microsoft Alias: adegeo

Thank you for your fast response. I hope that there will be an automatic conversion eventually.


Feature Request

Can skin manager have a custom CSS Builder too. Like the original Jellyfin box where one can add their own custom css and the manager can save it?

Why do you need a feature to be implemented by a plugin which is already implemented?

Hi, this is useful to save custom skins for later use. The default method, you can only have one skin at a time but this plugin could be used to save multiple custom skins.

I'd like to be able to apply custom CSS from this plugin as well. Any changes to the skin settings completely wipes out any custom CSS I've added via Server > General.


[Bug]: Cache not writing when prompt is greater than 1000 characters for SQL Scalar Cache

Current Behavior
I have a large prompt that I want to cache (it's part of a prompt template in langchain where the query itself is small but the complete template is large) and it is not saving to cache because the prompt is > 1000 characters.
The expected output result itself is small (e.g. ~256 characters) but it's large due to it being explicit instructions. The bug I get is this:
2023-05-22 11:28:08,013 -<PHONE_NUMBER>32512 - adapter.py-adapter:162 - WARNING: failed to save the data to cache, error: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]String or binary data would be truncated in table 'gambrinus-cachestore.dbo.gptcache_question', column 'question'. Truncated value: '...'. (2628) (SQLExecDirectW)")
[SQL: INSERT INTO gptcache_question (question, create_on, last_access, embedding_data, deleted) OUTPUT inserted.id VALUES (?, ?, ?, ?, ?)]
[parameters: ('... (1424 characters truncated) ...', datetime.datetime(2023, 5, 22, 11, 28, 7, 965579), datetime.datetime(2023, 5, 22, 11, 28, 7, 965586), bytearray(b'e\xe4 \xbd\xb1CA=\xed\x96\x00<\x1b\xa9\xbd\xbd\xd4\x8c7\xbd\xde\x93]\xbd4\x0c\xd2\xbb\xbfo$\xbd\x01\x89\x82=\xb1\xff\xe5<\xb7\xd25\xbd\xf0 ... (8408 characters truncated) ... xb8 \'\xbdM\xab\xb6\xbc\xd3\xc7\x84=\x93a\x15=\xe9\x03A\xbd\xde\xe2\x18\xbd)0\x1c\xbb\x86\x95\x08<Vl\x19=T\x9c\x95\xbdX\x13j\xbdEg\x11\xbdk\xafi\xbd'), 0)]
(Background on this error at: https://sqlalche.me/e/20/f405)

I see that the ultimate issue is that the question in the question table is set to varchar(1000) which would be too small for this prompt.  The test prompt I am using has 1706 characters. This is with SQL Server, but the bug doesn't seem to be specific to SQL Server but SQL in general as a scalar cache.
Expected Behavior
Allow the question column in the question table to be larger, either as a flexible variable or large enough for most LLMs (larger than 1000 characters anyway).
Steps To Reproduce
1. Create a SQL Server Scalar Cache.
2. Input a total prompt with > 1000 characters as input.
3. Attempt to run the cache.

Environment
here's the data manager. max_size and clean_size doesn't seem to do anything.

cache_base = CacheBase('sqlserver', sql_url=SQL_URL, table_name="gptcache")
vector_base = VectorBase('milvus', host=vector_database['host'], port=vector_database['port'],
                         user=vector_database['user'], password=vector_database['password'], secure=vector_database['secure'],
                         collection_name=vector_database['collection_name'], search_params=vector_database['search_params'], local_mode=vector_database['local_mode'],
                         dimension=onnx.dimension)

data_manager = get_data_manager(cache_base, vector_base, max_size=5000, clean_size=200)

### Anything else?

_No response_

@quillan86 thanks a lot your feedback. A temporary solution is that you can manually modify the table structure in sqlserver to expand the length of the string. Regarding the big prompt, I am trying to find a solution recently, and of course I am looking forward to some of your ideas.

Yes, that's what I did for now, but I'd ideally want this in production under docker so would need a way to handle that non-locally (e.g in a package).
Some ideas would be to perhaps use Text instead of String for the question and response, or for varchar make it some sort of variable a human can set with the data manager.

See that this is in the latest version now - awesome work!

@quillan86 yes, it will solve your problem. there are two ways:

config the data size for the table
use the last_content_without_template pre-process function
😆😆😆

hi, @quillan86 the latest version can solve the problem, details: https://github.com/zilliztech/GPTCache/blob/main/docs/release_note.md


1.12.2

Support/port to 1.12.2
Reason:
I need this mod as a replacement for Dungeons Content as it doesn't work with the latest forge version for 1.12.2 and is not supported (And i don't have a curseforge account for asking for updated forge support) as well as some other mods i have installed with it, require Forge version xx.xx.x.xxxx+
and that is a pain, and i need your dungeons-gear mod updated too

But i don't use discord!

I'm terribly sorry for that. Github really isn't the place to have a conversation like that. But I do really urge you to move to 1.16.5 or even 1.18 (we'll be moving there soon as well).
I assure you almost all of the mods you really want exist in some form on 1.16.5 and soon also on 1.18. Really no reason to stay on 1.12.2.

What about Buildcraft, it's not yet available in 1.16.5+ yet on curseforge, but they do have 1.16.5 alphas in dev (Probably being developed right now!)


Manage Robot Connection: 802.1x Authentication

As a robot user, I would like to be able to connect to wireless networks with enterprise (802.1x) security.
Acceptance Criteria

[ ] If user selects a network with 802.1x authentication:

[ ] They see a dialogue box with the following:

[ ] Copy explaining that their selected network requires 802.1x (enterprise) authentication, and to please select the authentication method.
[ ] Dropdown to select from supported 802.1x authentication methods (returned from api)
Note this list currently includes: EAP-TLS, PEAP/EAP-MSCHAPv2 (eduroam), TTLS/EAP-MSCHAPv2, TTLS/EAP-TLS, TTLS/MD5

[ ] After user selects authentication type, display required fields for authentication. Note fields and labels returned by /eap-options, and can be of three types:

Text (will include a field label string, e.g. 'username')
Password (label also provided by API)

[ ] Add a 'show password' box for every password field

Certificate (allow user to upload a certificate file; may include multiple certificate fields)

[ ] Display progress icon next to certificate field during upload

Fields can be required or optional (also provided by API; indicate required fields with asterisk)
Question: How many fields do we have to support?
Note we may have to display up to six fields
Note design should support fields labels as long as 30 char (e.g. 'Inner Client Certificate File')

[ ] Allow user to 'Join' to attempt network auth, or 'Cancel' and close modal.
[ ] Join button is disabled until required fields complete
[ ] If user blurs a required field while empty, display 'required field' in red below the field

Break out into stories
Story 1: Allow user to select from 802.1 x auth types modal (med)
Story 2: 802.1x auth modal (md)
Story 3: Certificates (large)

Check robot for certificates
Allow user to select from existing certificates upload certificates from local
Allow user to auth with certificates
Story 4: Field validations (tbd pending designs)

Implementation Notes

Note we already know which networks require some form of 802.1x authentication
Note GET /wifi/eap-options will return both currently supported auth types as well as fields required per auth type
Note this only includes basic certificate management (user can submit, but we will not check for existing certificates during future auth attempts)

Design
Open questions

What happens if a required field is not entered
https://zpl.io/Vkn9mG5
https://zpl.io/VDnQOWr
https://zpl.io/blPom60
https://zpl.io/2pBNdPQ
https://zpl.io/VDnQOoq
authentication failed https://zpl.io/bAEwEAO

Ping @umbhau and @pantslakz - following up on questions from above:

Does the robot know what type of authentication protocol it is dealing with?

The robot knows the difference between "no security", "standard username/password", and enterprise. Once we're in the "enterprise" bucket, there are several (5 at the time or writing) we can support, but the robot has no way of telling us which of those 5 a network uses.

What auth protocols should we allow the user to select?

We have enough information to drop the user to:

No password box (or disabled box) for networks with no security
Password box for WPA2 networks

After talking to @sfoster1, for now we can safely ignore WEP (deprecated 2004), WPA1 (deprecated 2006), and anything else

API-driven enterprise selection box

#2283 adds an endpoint that returns enterprise security types and a list of required and optional fields for each type
A field has a name, a displayName, a required flag, and a type
There are three types of field

Normal text (e.g. "Username")
Password (e.g. "Password")
Certificate file ID (e.g. "Private Key File") see below

Certificate files
Some enterprise authentication mechanisms require one or more certificate files. Selecting a certificate file for a given input is a multi-step process:

Get list of certificates already on the robot

If certificate is already loaded, populate field with the ID and you're done

If not already on robot, upload the file to the server
Server will return an ID, populate certificate field with the ID

If we wanted to, we could get away with not building a certificate management flow and just upload the files every single time. This would probably be subpar from a UX standpoint but is technically feasible.

Closing in favor of:
Manage Robot Connection: Select Type of 802.1x Authentication #2412
Manage Robot Connection: Enter Authentication Information #2413
Manage Robot Connection: Certificate Authentication #2415
Manage Robot Connection: Required Fields #2416


Send User to Sign-In Page After Signing Up

The current behavior for account creation alerts the user that the account was created and then clears out each input field.
I am proposing to either login the user with this information automatically or to send the user to the sign-in form.
I'd be happy to help - just let me know your thoughts on this!

I think sending the user to the sign in form would be great.
Feel free to add this change or let me know if you want me to add it.


Fixes and improvements for NavLink

Improved NavLink component
I want a NavLink with more control over when ActiveClass is set. In particular, I want to control what URL is used to match with currently page's URL. There should be an optional parameter, e.g. MatchUrl, that NavLink will use in its matching algorithm instead of the one provided by the href attribute.
One scenario where that is needed is with menu hierarchies, where the root menu item links to the first child, but also should be marked as active, when other children are the active link.
An example of this can be seen on Bootstraps documentations site. In the screenshot below, both the "Components" root menu item and the child menu item "Badges" has the active class, but point to different URLs.

My suggestion is a updated NavLink that supports the following syntax:
<NavLink Class="nav-link" href="/components/alerts" MatchUrl="/components">Components</NavLink>
<NavLink Class="nav-link" href="/components/alerts">Alerts</NavLink>
<NavLink Class="nav-link" href="/components/badges">Badges</NavLink>
<NavLink Class="nav-link" href="/components/breadcrumbs">Breadcrumbs</NavLink>
...

Draft implementation for an improved NavLink
I have created an the NavLink I describe above based on the Preview-6 version.
It works on my machine :) ... but is otherwise not tested.
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.RenderTree;
using Microsoft.AspNetCore.Components.Routing;
using System;
using System.Collections.Generic;

namespace Egil.RazorComponents.Bootstrap.Components.Html
{
    public class NavLink : ComponentBase, IDisposable
    {
        private const string DefaultActiveClass = "active";

        private string? MatchUrlAbsolute { get; set; }

        public bool IsActive { get; private set; }

        [Parameter(CaptureUnmatchedValues = true)]
        public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; private set; }

        [Parameter]
        public string? Href { get; set; }

        [Parameter]
        public string? Class { get; set; }

        [Parameter]
        public RenderFragment? ChildContent { get; set; }

        /// <summary>
        /// Gets or sets the CSS class name applied to the NavLink when the
        /// current route matches the NavLink href.
        /// </summary>
        [Parameter]
        public string ActiveClass { get; set; } = DefaultActiveClass;

        /// <summary>
        /// Gets or sets a value representing the URL matching behavior.
        /// </summary>
        [Parameter]
        public NavLinkMatch Match { get; set; } = NavLinkMatch.Prefix;

        /// <summary>
        /// Gets or sets a custom URL, that should be used instead of the URL
        /// in the href attribute, to match current route and determine if link
        /// is active or not.
        /// </summary>
        [Parameter]
        public string? MatchUrl { get; set; }

        [Inject] private IUriHelper? UriHelper { get; set; }

        protected override void OnInit()
        {
            // We'll consider re-rendering on each location change
            UriHelper!.OnLocationChanged += OnLocationChanged;
        }

        protected override void OnParametersSet()
        {
            MatchUrlAbsolute = CreateMatchUrlAbsolute();
            IsActive = ShouldMatch(UriHelper!.GetAbsoluteUri());
        }

        /// <inheritdoc />
        public void Dispose()
        {
            // To avoid leaking memory, it's important to detach any event handlers in Dispose()
            UriHelper!.OnLocationChanged -= OnLocationChanged;
        }

        protected override void BuildRenderTree(RenderTreeBuilder builder)
        {
            builder.OpenElement(0, "a");
            builder.AddAttribute(1, "class", CombineWithSpace(Class, IsActive ? ActiveClass : null));
            builder.AddAttribute(2, "href", Href);
            builder.AddMultipleAttributes(3, AdditionalAttributes);
            builder.AddContent(4, ChildContent);
            builder.CloseElement();
        }

        private void OnLocationChanged(object sender, LocationChangedEventArgs args)
        {
            // We could just re-render always, but for this component we know the
            // only relevant state change is to the _isActive property.
            var shouldBeActiveNow = ShouldMatch(args.Location);
            if (shouldBeActiveNow != IsActive)
            {
                IsActive = shouldBeActiveNow;
                StateHasChanged();
            }
        }

        private string? CreateMatchUrlAbsolute()
        {
            if (!string.IsNullOrWhiteSpace(MatchUrl))
                return UriHelper!.ToAbsoluteUri(MatchUrl).AbsoluteUri;
            else if (!string.IsNullOrWhiteSpace(Href))
                return UriHelper!.ToAbsoluteUri(Href).AbsoluteUri;
            else
                return null;
        }

        private bool ShouldMatch(string currentUriAbsolute)
        {
            if (MatchUrlAbsolute is null) return false;

            if (EqualsHrefExactlyOrIfTrailingSlashAdded(currentUriAbsolute, MatchUrlAbsolute))
            {
                return true;
            }

            if (Match == NavLinkMatch.Prefix
                && IsStrictlyPrefixWithSeparator(currentUriAbsolute, MatchUrlAbsolute))
            {
                return true;
            }

            return false;
        }

        private static bool EqualsHrefExactlyOrIfTrailingSlashAdded(string currentUriAbsolute, string matchUrlAbsolute)
        {
            if (string.Equals(currentUriAbsolute, matchUrlAbsolute, StringComparison.Ordinal))
            {
                return true;
            }

            if (currentUriAbsolute.Length == matchUrlAbsolute.Length - 1)
            {
                // Special case: highlight links to http://host/path/ even if you're
                // at http://host/path (with no trailing slash)
                //
                // This is because the router accepts an absolute URI value of "same
                // as base URI but without trailing slash" as equivalent to "base URI",
                // which in turn is because it's common for servers to return the same page
                // for http://host/vdir as they do for host://host/vdir/ as it's no
                // good to display a blank page in that case.
                if (matchUrlAbsolute[matchUrlAbsolute.Length - 1] == '/'
                    && matchUrlAbsolute.StartsWith(currentUriAbsolute, StringComparison.Ordinal))
                {
                    return true;
                }
            }

            return false;
        }

        private static bool IsStrictlyPrefixWithSeparator(string value, string prefix)
        {
            var prefixLength = prefix.Length;
            if (value.Length > prefixLength)
            {
                return value.StartsWith(prefix, StringComparison.Ordinal)
                    && (
                        // Only match when there's a separator character either at the end of the
                        // prefix or right after it.
                        // Example: "/abc" is treated as a prefix of "/abc/def" but not "/abcdef"
                        // Example: "/abc/" is treated as a prefix of "/abc/def" but not "/abcdef"
                        prefixLength == 0
                        || !char.IsLetterOrDigit(prefix[prefixLength - 1])
                        || !char.IsLetterOrDigit(value[prefixLength])
                    );
            }
            else
            {
                return false;
            }
        }

        private static string CombineWithSpace(string? str1, string? str2)
           => str1 == null && str2 != null ? str2
            : str1 != null && str2 == null ? str1
            : $"{str1} {str2}";
    }
}

Note: I use C# 8 with nullable enabled, thus the use of ? and ! through out the code.
Ps. The implementation below also solves https://github.com/aspnet/AspNetCore/issues/7694.
Pps. I looked at the contributor guidelines, and unfortunately I do not have time right now to set up my PC to build and compile the AspNetCore repo, so I'll settled on posting my solution here. I hope that is OK

An additional improvement would be to move the matching logic into IUriHelper, so it could be used in other contexts than NavLink easily. E.g.
bool IUriHelper.CurrentUriMatches(otherUri, MatchKind.Prefix);
bool IUriHelper.CurrentUriMatches(otherUri, MatchKind.All);

CurrentUriMatches should be able handle both relative and absolute URLs being passed to it.

Thanks for this suggestion! We don't have any plans at this point to add these features to the built-in NavLink component, but it would be great if you could build your new NavLink into a package and share it so that other folks can use it if they'd like.


Trying to get working with MVC 4

Hello....not sure if this is an issue...more of a request for assistance. Trying to use the library to use as part of a MVC Contrib portalable area.
I set your library up in the DLL for the portable area and put the JS files in the scripts directory. When I try adding the MVC Portable area DLL to the main MVC project (in an Area)...i am get a error with the following test JQuery ($ is undefinded)
@model dynamic

Click on this paragraph.

<script>
$(document).ready(function () {
    $("p").click(function () {
        alert("The paragraph was clicked.");
    });
});
</script>

Any help is appreciated

Have you set the scripts to be embedded resources?
On 11 May 2015 18:24, "allenwilson-innovativednd"<EMAIL_ADDRESS>wrote:

Hello....not sure if this is an issue...more of a request for assistance.
Trying to use the library to use as part of a MVC Contrib portalable area.
I set your library up in the DLL for the portable area and put the JS
files in the scripts directory. When I try adding the MVC Portable area DLL
to the main MVC project (in an Area)...i am get a error with the following
test JQuery ($ is undefinded)
@model https://github.com/model dynamic
Click on this paragraph.

Any help is appreciated
—
Reply to this email directly or view it on GitHub
https://github.com/mcintyre321/EmbeddedResourceVirtualPathProvider/issues/15
.

Yes....I have......trying to pull in jquery-1.8.2.js

i can zip up my sample and send it...if you want to take a look

From what i can tell by stepping through things...it has the file but it does not allow it to work correctly (i.e. making function calls, loading JQuery functions)

Please close this issue....I found out what it was.....the name assigned to the assembly

No problem, glad you figured it out. If you have the time, it would be great if you could update the rename or wiki with something to help others avoid your issue.


You must provide an implementation of onSigninCallback to oidcConfig

What does it mean?
What do I need to do?
This makes no sense
https://github.com/authts/react-oidc-context/blob/f175dcba6ab09871b027d6a2f2224a17712b67c5/src/AuthProvider.tsx#L20-L30
because the interface AuthProviderProps contains two things called onSigninCallback .
I see that after logging in all of the GET parameters are left in the address bar, and I guess that this has something to do with making them go away?

Yep, that's exactly what you can do with this callback. Another common use is to redirect the user to their original destination, before you sent them off to be authenticated.
Here's a simplified version I have in one of our projects
  <AuthProvider
    onSigninCallback={() => {
      const url = window.sessionStorage.getItem(ORIGINAL_DESTINATION)
      if (url) {
        window.sessionStorage.removeItem(ORIGINAL_DESTINATION)
        window.location.replace(url)
      } else {
        window.history.replaceState(
          {},
          document.title,
          window.location.pathname
        )
      }
    }}
  // ... rest of auth props
  >
    {children}
  </AuthProvider>


Prisma migration fails on both update and clean install

Hi!
I have recently tried both an update and a fresh install of umami (v1.39.5) on my shared server (nginx, Node 16, MariaDB 10.3).
In all cases (this example is for a fresh empty DB), they failed during the migration step with the following error (full log attached):
Migration name: 02_add_event_data

Database error code: 1172

Database error:
Result consisted of more than one row

Please check the query number 16 from the migration file.

✗ Command failed: prisma migrate deploy
Error: P3018

yarn-build.log

For MariaDB, you'll need to be on version 10.5.2 or higher.

@briancao I'm using mariadb 10.6 and still getting the same error(on clean install latest version):
Prisma schema loaded from prisma/schema.prisma
Datasource "db": MySQL database "umami" at "localhost:3306"
Migration 01_init marked as applied.

Error: P3018

A migration failed to apply. New migrations cannot be applied before the error is recovered from. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve

Migration name: 02_add_event_data

Database error code: 1172

Database error:
Result consisted of more than one row

Please check the query number 16 from the migration file.

✗ Command failed: prisma migrate deploy
Error: P3018

A migration failed to apply. New migrations cannot be applied before the error is recovered from. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve

Migration name: 02_add_event_data

Database error code: 1172

Database error:
Result consisted of more than one row

Please check the query number 16 from the migration file.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "check-db" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/app $

This was a strange error, it fails because I had two databases for umami(two different names) in the same mariadb server. Why is it influenced by this? It fails when running the query from here:
CALL UmamiRenameIndexIfExists('account', 'username', 'account_username_key');

Which calls:
SELECT
        1
    INTO @indexExists FROM
        INFORMATION_SCHEMA.STATISTICS
    WHERE
        TABLE_NAME = @tableName
            AND INDEX_NAME = @currentIndexName;

Which means that if in your db server you have another database which has a table called: account and an index called username, it will fail. I don't think this is ok..
That query should also take into consideration the db name, which means that the query should be:
SELECT
        1
    INTO @indexExists FROM
        INFORMATION_SCHEMA.STATISTICS
    WHERE
        TABLE_NAME = @tableName
            AND INDEX_NAME = @currentIndexName
           AND TABLE_SCHEMA = 'umami'; # or whatever name it is

That was because I was using a super user in mariadb, you need a dedicated user only for umami: https://github.com/umami-software/umami/issues/1753

I'm using a dedicated user for MariaDB/Umami, but stall facing this error :(
Any workaround this?

@chreniuc your comment just saved me some valuable time as I had been head scratching as to why the migration was failing for a fresh database. My setup is identical to yours i.e. two differently named umami databases except that I'm using MySQL 8.0.22 on Ubuntu.
@briancao would you be open to accepting a PR to fix the underlying issue that @chreniuc explained above once and for all?

@chreniuc Thanks for identifying the issue/fix.
@ayewo Editing and altering migration history can potentially cause a lot of issues, so we'll be fixing and testing this internally.  So no need for a PR (although appreciated).

@chreniuc Appreciate the help with this. This has been fixed in v1.40.0


BasicVSR++ Memory footprint during inference

Is there a way to reduce the memory footprint of the VSR++ model?
The model was trained on 480x270p input with 1080p as the target. Now I want to run inference on old 480p (720x480) footage but I do run into (GPU) memory bottlenecks even when running on an RTX8000 with 48Gb of VRAM. As this is the largest VRAM GPU available to consumers, choosing a GPU with more VRAM is not an option...
Config: basicvsr_plusplus_c64n7_8x1_600k_reds4.py
Run: restoration_video_demo.py

Hi @contentis, there are two approaches you can try to "resolve" this issue.

Separate the images into smaller patches.
Separate the sequence into smaller segments.

However, these two approaches could lead to performance drops.

Wouldn't this lead to tiling artefacts for the first suggestion and temporal inconstancy in the second case ?

Wouldn't this lead to tiling artefacts for the first suggestion and temporal inconstancy in the second case ?

Yes, they could. Both of them are just workarounds and may not be perfect. For the first one, you can try to use larger patches as inputs and center-crop smaller patches to avoid boundary problems. For the second one, you may try overlapping segments and see if it could alleviate the problem a bit.
The large memory footprint is one weakness of bidirectional approaches and we definitely want to improve it.

What about converting it to onnx and reducing the precision to fp16?
And are both passes needed for inference actually or could you reduce the model after training to only include the one-direction pass?

What about converting it to onnx and reducing the precision to fp16? And are both passes needed for inference actually or could you reduce the model after training by only include the one-direction pass?

Converting to fp16 could save some memory, but if you have too many frames, probably memory is also not enough.
Both passes are required. So we cannot use only one direction during inference.
Have you tried using the argument (cpu_cache_length)? It puts the features in CPU to save memory in GPU. But it slows down your inference due to the conversion between CPU and GPU.

Does this also mean that a sliding window framework is not applicable for both basicVSR and plusplus, when working with long sequences ?

Does this also mean that a sliding window framework is not applicable for both basicVSR and plusplus, when working with long sequences ?
Because with patching I am able to fit a 100 frame sequence. But a realistic video length would be far beyond 1000 frames. In theory it should already offload all further frames, as the default CPU cache length is set to 100, but the vram footprint is still increasing with the length of the sequence. Is this supposed to happen or did I just misunderstood something?

BasicVSR and BasicVSR++ are under the recurrent framework, which is different from the sliding window framework, which uses only short-term information.
Do you mean it increases indefinitely? Does that mean the required memory for 500 frames is more than that for 300 frames?
For bidirectional propagation, it is hard to disregard the intermediate features. I think you can try training a unidirectional variant of BasicVSR. In this case, you need only the current features and the features from the previous frames.


generics

From looking through some older issues and by trying i found that generics and custom traits are not supported by pyo3.
Is that something that is on the roadmap?
or is it an "impossible" issue?
I am used to using pybind11's interface which allows for py::class_ being defined in (templated) functions, making it easy to bind existing libraries. I think there is no counterpart in pyo3 and probably this is impossible too?
As one can use multiple-pymethods feature, i guess the best way to get close to generics would be to implement a macro to create several impl's at once and specialization after that. would that be possible?

I don't think it's likely that
#[pyclass]
struct GenericType<T> {
    inner: T
}

will be a first-class PyO3 feature, at least not without some very well-written design proposal on how this should be treated.
The reason is that (I assume) each instantation GenericType<i32>, GenericType<f64> would have to have a different Python type object. This is an infinite set, and code would need to be generated for each instantiation. These would presumably have to be done manually as part of the #[pymodule] code. Even then, it's very much not clear how PyO3's implementation would do all this behind the scenes.
The best alternative, which works already, is to write a macro which expands to a new #[pyclass] for each instantiation you want.
To clarify, I'm willing to hear proposed additions to PyO3's API to support this. I just think it's a very hard problem to solve cleanly, and if it makes the core PyO3 code harder to maintain, I would want us to consider the tradeoff whether it's worth it when we already can write solutions using macros.
Similarly, it would be very cool to have a pybind11-style procedural API. I think in particular at the moment we're limited to using macros due to lack of variadic generics in Rust. That doesn't mean we can't have it, just that a direct port of the pybind11 API would not work. Contributions welcome to explore this.


Upgrade to Elasticsearch 6.7.1

Note that the build fails because it requires Java 12.
I currently use the official Gradle Docker image for Java 11 (5.3.1-jdk11) and for the moment there's no new image that supports Java 12 as you can see here :
https://github.com/keeganwitt/docker-gradle/issues/91

I will retry with my own Docker image built this evening : compuscene/gradle:5.3.1-jdk12

https://github.com/keeganwitt/docker-gradle/pull/92

This is now OK with my temporary custom JDK12/Gradle 5.3 Docker image


The nginx service log should point to a non environment dependent loc…

…ation
@dannyroberts @benrudolph

But the particular production/staging access logs still end up in e.g. /home/cchq/www/production/log/ right?

@dannyroberts Yes, this is only the log for nginx the service.  Without this change if you deployed staging then production it would flip this log in between the respective folders.

:+1:
On Thu, Aug 13, 2015 at 9:53 AM TylerSheffels<EMAIL_ADDRESS>wrote:

@dannyroberts https://github.com/dannyroberts Yes, this is only the log
for nginx the service. Without this change if you deployed staging then
production it would flip this log in between the respective folders.
—
Reply to this email directly or view it on GitHub
https://github.com/dimagi/commcarehq-ansible/pull/181#issuecomment-130680948
.


RLS: update cibuildwheel, use macos-12 image

Resolve cibuildwheel on Windows, and use same macos image as testing.

Summary of changes:

Use macOS Silicone runners to build arm64 wheels (finally!)
Use<EMAIL_ADDRESS>and install wheel
Build wheel with Python 3.9
Expand tox testing to add 3.8 and 3.12


Cron script failing on AWS

https://travis-ci.org/kubenow/cron/builds/370664014

Indeed, it's again that annoying issue related to the latest version of PIP. Will roll back to 9.0.3 here as well and actually install openstack-cli instead of glance so to use more updated tools.


Tidy

Incidental tidy-ups working on surfacing software versions in Singularity UI.

Current coverage is 65.48% (diff: 83.33%)

Merging #287 into master will decrease coverage by <.01%

@@             master       #287   diff @@
==========================================
  Files           132        132
  Lines          6746       6745     -1
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           4418       4417     -1
  Misses         1971       1971
  Partials        357        357

Powered by Codecov. Last update 8e3b085...280f977


added fixes to fix orphaned listeners

@richbrowne
@jlongstaf
What issues does this address?
Fixes #730
What's this change do?
Added a fix where an AttributeError exception happens when no pool object is defined and added the orphaned object support for listeners when a loadbalancer is still ACTIVE, but the listener was deleted while a BIG-IP was disable (did handle that case previously).

Can one of the admins verify this patch?

I am submitting this in another PR.


Update README.md

Fix syntax for filter by queue_id and filter json on body

@batFormat thank you! 👍


About ActivityNet feature

Hi, thanks a lot for open resource !
I'm working on ActivityNet dataset. Do you have I3D features you used in this project, I'm appreciate it if u can share one copy to me!
My email address is<EMAIL_ADDRESS>

Hi, Michael!
Please check out this link for the I3D features used in the project.
The features are being uploaded and they should be ready in 1 hour.

Thanks for your reply and your uploaded features!
By the way, I find that there is no relevant code of ActivityNet1.3
Do you have plans to release the code of activitynet1.3 or could you please send it to me?

Hi, @coolbay
Thanks for your reply and your uploaded features!
By the way, I find that there is no relevant code of ActivityNet1.3
Do you have plans to release the code of activitynet1.3 or could you please send it to me?

I've updated the Anet code in the repo. Please just refresh.


update google-juice fork to released 4.0

merged (instead of rebase for easier pull request) final release tag of 4.0 into branch for issue 807. Also bumped gitblit fork revision to 4.0-gb2 to indicate difference.

I'm on vacation for a week. I'll try to review and merge when I return.

Hi Joel,
I ended up cherry-picking my original two commits onto a new branch based on the 4.0 tag and force-pushing the issue-807 branch.  Artifacts were built and deployed to the same Maven repo and develop has been updated to use 4.0 final.


Under drawio diagrams on the left add a name of a page holding a specific diagram

"I thought I might manage the files via Diagrams app button on the left side of the space. It shows nice thumbnail previews which are handy, but it provides no indication as to which page each diagram comes from. (refer to the attached image which shows a diagram, but no indication where it is located)"
Asked in DID-7165

Already implemented.


0.1.2 issues

Installed from KiCad PCM.
Issue 1 - Displayed version
Version installed was 0.1.2 but pluging window version shows 0.1.1

Issue 2 - Net classes not loading
I have set net classes in board settings:

And my board has no DRC errors:

But the pluging does not load tracks after clicking "Load Setting" button:

What am I missing? Thanks!

Actually, I have tried other projects and settings are loaded.
Please let me know how to debug the project that has issue, thanks!

you can debug by function:

import logging
logging.debug("mesg")

you can view long in file debug.log

If you can share your project. I will debug your project. then I improve my plugin

Nets has 1 pad connected => Error. It is bug my plugin.

you can debug by function:

import logging
logging.debug("mesg")

you can view long in file debug.log

If you can share your project. I will debug your project. then I improve my plugin

This is the trace I'm getting:
Traceback (most recent call last):
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/controller/controller.py", line 36, in OnLoadClick
    self.model.compare_data()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/model/model.py", line 95, in compare_data
    self.init_data()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/model/model.py", line 82, in init_data
    ref2 = pads[1].reference
IndexError: list index out of range

debug.log
08-05 10:27:43 root 1:mesg
08-05 10:27:43 root 1:mesg
08-05 10:27:43 root 1:mesg
08-05 10:27:43 root 1:mesg

Sorry cannot share my project :confused:

@eeintech Please update version 2022.08.06

Error meg in bottom

Thanks @thanhduongvs I do have nets that are connected to a single pad, can your plugin handle those?

@thanhduongvs I corrected some single pad nets and now I have a new error:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pcbnew.py", line 836, in <lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, wxPoint, name, value)
  File "/usr/lib/python3/dist-packages/pcbnew.py", line 71, in _swig_setattr
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  File "/usr/lib/python3/dist-packages/pcbnew.py", line 52, in _swig_setattr_nondynamic
    if (name == "thisown"):
RecursionError: maximum recursion depth exceeded in comparison

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

Traceback (most recent call last):
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/controller/controller.py", line 40, in OnLoadClick
    self.model.get_track_length()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/model/model.py", line 142, in get_track_length
    info = track_data.find_min_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/lengthtrack.py", line 68, in find_min_track
    return findtrack.get_min_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 396, in get_min_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  [Previous line repeated 27 more times]
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 308, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  [Previous line repeated 21 more times]
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 308, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  [Previous line repeated 6 more times]
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 308, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  [Previous line repeated 12 more times]
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 308, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  [Previous line repeated 12 more times]
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 308, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 301, in find_next_track
    self.find_next_track()
  [Previous line repeated 886 more times]
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 299, in find_next_track
    self.check_track()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 272, in check_track
    self.find_hole_pad()
  File "/home/francois/.local/share/kicad/6.0/3rdparty/plugins/vn_onekiwi_kicad-length-matching/onekiwi/kicad/findtrack.py", line 251, in find_hole_pad
    if pad.GetPosition() == current_point:
  File "/usr/lib/python3/dist-packages/pcbnew.py", line 13573, in GetPosition
    return _pcbnew.PAD_GetPosition(self)
SystemError: <built-in function PAD_GetPosition> returned a result with an error set

It is a bug from layout.  Maybe, It loop infinity in this function:
def find_hole_pad(self):
    self.find.temps.clear()
    current_point = self.find.current_point
    current_layer = self.find.current_layer
    for pad in self.hole_pads:
        if pad.GetPosition() == current_point:
            self.status = 'run'
            index_data = self.data.index
            self.data.items[index_data].holes.append(Hole('pad', current_layer))
            self.find.hole_index = len(self.data.items[index_data].holes) - 1
            self.find.is_hole = True
            self.find.current_layer = ANY_LAYER

It is a bug from layout

What do you mean?

Ok do you have any idea how to fix it?

If you can share your project (or minimum not working). Maybe, I find bug then fix it

Sorry I didn't respond, I don't think it is worth looking more into and unfortunately I cannot share my design. Keep up the great job!


Add Javascript book

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Hi @psungchan, thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. Reason: it does not follow our Style Guide.
We would welcome future pull requests from you. Thank you and happy coding.


[QUESTION] Timeline feed is showing likes and comment activities.

Hi guys,
Is there a way to get timeline feeds by activity?  My timeline seems to include following, likes, and comment activities.  I would like to make it work like the sample found in GetStream's homepage (the interactive demo), where homepage shows posts from followed users only and another page shows aggregated feed.  Should I filter it myself?  like:
if (activity verb == 'likes' or 'following' or 'comment') {
//do nothing
} else {
//add to display list
}
thanks.  nice project by the way.  God bless.

Hi @imonoid, apologies for the missing your question here. Let's get you an answer!
As you correctly point out, a feed may contain Activities with various verbs. Filtering on the client is always an option and it's not directly supported in our API at this stage.
To elaborate further on the use-case you describe, it would be advisable to use separate Feed Groups to achieve what you describe.
The first two Feed Groups would relate to "posts" and you'd have two groups: 'user_posts' and 'posts_timeline' (following other users' 'user_posts' feeds) which the user will read in order to see the posts of all other users they follow.
In addition, two more Feed Groups would be used to for the other actions; 'likes', 'following', 'comment'.  Following a similar naming convention you'd have 'user_actions' and 'user_actions_timeline'.
Hopefully this answers the question!
PS. For general implementation questions, it's helpful to the developer community and responses come faster if you post on Stack Overflow using the tag 'getstream'. Just follow their guidelines and all will be well.


Two Pointers Technique- find two numbers with a given sum in CPP

Description
Hi
I am a contributor at GSSOC'22, and I would like to contribute in CPP this problem statement, I will even add explanation and time comp and space comp and test cases.
Can you please assign this issue to me?
Domain
Data Structure
Type of Contribution
No response
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of LearnCPP.

I would like to contribute to this issue. I can approach the solution of this problem using two methods, 1)Hashmap 2) Two Pointer Approach with detailed explanation.
Approach using Two Pointers:

This problem requires output pair of indices instead of pair of values, so we will take arrays, a to store their value with their respective indices.
We can sort array arr by their values.
Then we can use two-pointer, left point to the first element, right point to the last element (l=0,r=n-1). where n is the size of array.

/assign


typings: command not found

While running command "npm install ionic-hockeyapp --save" I'm getting the below error:

<EMAIL_ADDRESS>postinstall /Users/nikhilKumar/Desktop/FinReg Project/FinReg_XPlatform/node_modules/ionic-hockeyapp
typings install

sh: typings: command not found
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ionic-hockeyapp" "--save"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>postinstall: typings install
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hockeyapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic-hockeyapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ionic-hockeyapp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/nikhilKumar/Desktop/FinReg Project/FinReg_XPlatform/npm-debug.log
punitp310576D:FinReg_XPlatform nikhilKumar$

You should add your ionic info output here so the maintainer knows about your environment.

please install typings npm install -g typings

Shouldn't this somehow be part of the plugin requirements then? Or at the very least be mentioned in the installation docs?

I'll add it to the README, I working on an update to remove this from the requirements

This issue has been resolved in v0.1.5. If still experience this issue on v0.1.5 or greater please create an issue.


Fix doc to test GPU kernels using docker

the documentation says to use gpu_pip.sh but there is not such a command in the tensorflow/tools/ci_build/ directory only pip.sh

Can one of the admins verify this patch?

@Mistobaan can you also squash the commits please?

@jendap updated and squashed.

Thank you!
LGTM, @vrv can you merge this please?

Merged