Decorating events assumes message field is a string

When decorate_events is set to true, msg_size is set by calling bytesize on the event's message field. This assumes that this field is always a string, and fails if it is a hash instead, as in my particular use-case.

Definitely a bug.  This will require jruby-kafka to be updated to pass
along the message and metadata object instead of just the message object as
it is currently doing (
https://github.com/joekiller/jruby-kafka/blob/master/lib/jruby-kafka/consumer.rb#L32)
then we can read the kafka message size from the metadata instead of
assuming the message itself is a string.  It'll require a new major version
of jruby-kafka as the fix won't be backwards compatible.
On May 6, 2015 9:40 AM, "Ralph Meijer"<EMAIL_ADDRESS>wrote:

When decorate_events is set to true, msg_size is set by calling bytesize
https://github.com/logstash-plugins/logstash-input-kafka/blob/112692fe61c731bce19d7fd355bbc4d28c30d7dd/lib/logstash/inputs/kafka.rb#L166
on the event's message field. This assumes that this field is always a
string, and fails if it is a hash instead, as in my particular use-case.
—
Reply to this email directly or view it on GitHub
https://github.com/logstash-plugins/logstash-input-kafka/issues/33.

Isn't it already changed in jruby-kafka? I think we should change 'msg_size' => event['message'].bytesize to something like 'msg_size' => message_and_metadata.message.size here.

Your right, I was looking at the wrong line of my code so this should be a
pretty trivial fix.
On May 6, 2015 10:52 AM, "Jakub Podeszwik"<EMAIL_ADDRESS>wrote:

Isn't it already changed in jruby-kafka? I think we should change 'msg_size'
=> event['message'].bytesize to something like 'msg_size' =>
message_and_metadata.message.size here
https://github.com/logstash-plugins/logstash-input-kafka/blob/112692fe61c731bce19d7fd355bbc4d28c30d7dd/lib/logstash/inputs/kafka.rb#L166
.
—
Reply to this email directly or view it on GitHub
https://github.com/logstash-plugins/logstash-input-kafka/issues/33#issuecomment-99499805
.

From my understanding, this is in fact a bug. It is best to calculate the size of the message as it is stored in kafka via the MessageAndMetadata object. let me know what you think about the fix in #34.
Thanks for submitting the issue!

Looks good. Full message size makes sense to me.Thanks for the quick response!


x/crypto: preferredKexAlgos in golang.org/x/crypto/ssh includes SHA1

What version of Go are you using (go version)?

$ go version
go version go1.20.3 linux/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/scott/.cache/go-build"
GOENV="/home/scott/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/scott/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/scott/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.3"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="0"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1232564776=/tmp/go-build -gno-record-gcc-switches"

What did you do?
Built an SSH server using x/crypto/ssh, and ran ssh -vvv to connect to it.
What did you expect to see?
I expected the server to present KEX algorithms excluding any using SHA1.
What did you see instead?
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1

The default algorithms used by the ssh server appears to be configured here:
https://github.com/golang/crypto/blob/1faeef9713563c936e077b84e4c3a0f3cac0fbe4/ssh/common.go#L62-L68
Does it make sense to remove kexAlgoDH14SHA1 from the preferred KEX algorithm list? I note that NIST has announced SHA1's retirement, and GitHub discontinued SSH SHA1 support way back in 2018.

@golang/security


Position the calendar relative to specified element

Before this pull request, if you want to do have an input hidden and use another element to activate the datepicker. The calendar cannot determine where to go based on the passed element's display none.
Adding a positionElement option to the config allows you to get around this.
Before

After

Coverage increased (+0.01%) to 85.158% when pulling 1be6409cee9e8b4e799315f40d82f902bc90064f on tbezman:master into 7deb4f084c63cb97a7a2d66153689355de8404d1 on chmln:master.

Coverage increased (+0.01%) to 85.158% when pulling 9e5db50168516ca53ed9133e0b69906d2d0a1dfb on tbezman:master into 7deb4f084c63cb97a7a2d66153689355de8404d1 on chmln:master.

Looks good to me :+1:

cheers my man, thanks

Is there any reason why this isn't documented?


Bumped lodash dev in common-npm-packages/AzureRmDeploy-common-v3/Tests

Task name: common-npm-packages/AzureRmDeploy-common-v3/Tests
Description:
Versions of lodash before 4.17.12 are vulnerable to Prototype Pollution. The function defaultsDeep allows a malicious user to modify the prototype of Object via {constructor: {prototype: {...}}} causing the addition or modification of an existing property that will exist on all objects.
Documentation changes required: N
Added unit tests: (Y/N) N
Attached related issue: (Y/N) N
Checklist:

[x] Task version was bumped - please check instruction how to do it
[ ] Checked that applied changes work as expected

solved in https://github.com/microsoft/azure-pipelines-tasks/pull/16395


Add TODOs Badge to README

Hi there! I wanted to propose adding the following badge to the README to indicate how many TODO comments are in this codebase:

The badge links to tickgit.com which is a free service that indexes and displays TODO comments in public github repos. It can help surface latent work and be a way for contributors to find areas of code to improve, that might not be otherwise documented.
The markdown is:
[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.comgithub.com/micro/go-micro)](https://www.tickgit.com/browse?repo=github.com/micro/go-micro)

Thanks for considering, feel free to close this issue if it's not appropriate or you prefer not to!

Thanks but not right now


fix: adjust client time to server timezone when computing date ranges

This PR ensures that we are using dates that are corrected for the server time zone when needed. Please note that a large chunk of this code comes from the approval app. Probably we will need to move this into its own repo, but for now I have just copied things over. So when reviewing, please ignore these files:

src/shared/use-server-time-as-local/use-server-date-time-as-local.js
src/shared/use-server-time-as-local/use-server-date-time-as-local.test.js

Thanks @tomzemp for catching quite a few important things wrong with the current implementation. 🙇 I've now simplified it a lot and done things the right way around 🙃 .

There are also a couple of other places in the code where getCurrentDate should be swapped with useNowAtServerTimezone() [these affect the year boundary, e.g. if I log in 1 January 2023 in Addis, but server time is 31 December 2022, the year should be 2022] [I don't know if this is an issue that would in reality ever cause problems because I don't imagine people are doing much data entry on 1 January or 31 December]:

https://github.com/dhis2/data-entry-app/blob/TECH-1348/src/context-selection/period-selector-bar-item/period-selector-bar-item.js#L38
https://github.com/dhis2/data-entry-app/blob/TECH-1348/src/context-selection/period-selector-bar-item/period-selector-bar-item.js#L64
https://github.com/dhis2/data-entry-app/blob/TECH-1348/src/context-selection/period-selector-bar-item/use-periods.js#L24
https://github.com/dhis2/data-entry-app/blob/TECH-1348/src/shared/fixed-periods/fixed-periods.js#L168
https://github.com/dhis2/data-entry-app/blob/TECH-1348/src/shared/fixed-periods/fixed-periods.js#L886

Reg. the above I tacked the first three points but decided to leave the last two. The reason is that the period generator is not a hook, so we'd have to pass the current date from the outside, or compute it in the module itself, which is also problematic because that also doesn't have access to server's timezone. We should still address these things at some point though, probably when we revisit the period implementation as a whole.
I've resolved most of your comments because I have updated the code accordingly, but left one open. Please resolve it if you agree.


Add dist and other ignores to .gitignore during create

During scaffolding with extension@latest create, it would be great to:

Create a .gitignore (if one does not exist)
Add a line for each path which should be ignored (only if the lines are not already present, similar to https://github.com/microsoft/create-playwright/pull/122)

This is similar to what @jmg-duarte suggested:

https://github.com/extension-js/extension.js/issues/54#issuecomment-2107893659

But the PR closing issue #54 did not include .gitignore support:

https://github.com/extension-js/extension.js/pull/121

Some ideas for paths that could be ignored:

dist
extension.d.ts (as per the TypeScript docs

You should be able to just write the .gitignore in this line — https://github.com/extension-js/extension.js/pull/121/files#diff-c79a9d3ab27d3a96709ef6bb93d65fe51be0b7fde2d7f60d5821d2e15f2173aeR64
Something like
fs.writeFile(".gitignore", gitignoreContents, (err) => { /* TODO: error handling */ })

As for the contents, without interaction I'd just cherry pick them from https://github.com/github/gitignore/blob/main/Node.gitignore
And add other paths that might be relevant

hi folks, thanks for the feedback!
there is a PR open for this request in #158, feel free to review/suggest changes!


Link to new NixOS wiki

This commit updates the the link from the former, unofficial nixos wiki page to the new https://wiki.nixos.org
ref: NixOS/foundation#113
Repo URL:
https://github.com/...
Checklist:

[ ] The plugin is specifically built for Neovim, or if it's a colorscheme, it supports treesitter syntax.
[ ] The lines end with a .. This is to conform to awesome-list linting and requirements.
[x] The title of the pull request is Add/Update/Remove `username/repo`  (notice the backticks around `username/repo`) when adding a new plugin.
[x] The description doesn't mention that it's a Neovim plugin, it's obvious from the rest of the document. No mentions of the word plugin unless it's related to something else. No .. for Neovim.
[x] The description doesn't contain emojis.
[ ] Neovim is spelled as Neovim (not nvim, NeoVim or neovim), Vim is spelled as Vim (capitalized), Lua is spelled as Lua (capitalized), Tree-sitter is spelled as Tree-sitter.
[ ] Acronyms should be fully capitalized, for example LSP, TS, YAML, etc.

@Mic92 Would you change the PR title to Update `mrcjkb/kickstart-nix.nvim` so that it can be merged?

I thought, I already did that.  Feel free to do the change yourself.

Okay. I'm just a random person who is neither of a maintainer of this repository nor a member of NixOS foundation but want to contribute to great both. So I'll glad to help!


[windows] fix downgrade handling.

What does this PR do?
Root cause
appears to be that we were adding the subservices twice, and so
reference counting was thrown off.  This is made worse by the fact
that the omnibus processing explicitly ignores that error code.
Motivation
downgrade wasn't working
Additional Notes
Also added a subdirectory for recreating the MSI w/o an entire omnibus
build, which cuts a lot off the build/test cycle of installs.
Parallel A5 Fix: https://github.com/DataDog/dd-agent-omnibus/pull/343
Parallel Omnibus fix: https://github.com/DataDog/omnibus-ruby/pull/78

Codecov Report

Merging #2789 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #2789      +/-   ##
=========================================
+ Coverage   57.09%   57.1%   +<.01%
=========================================
  Files         383     383
  Lines       24556   24556
=========================================
+ Hits        14021   14022       +1
+ Misses       9612    9610       -2
- Partials      923     924       +1

Impacted Files
Coverage Δ

pkg/logs/input/listener/tailer.go
86% <0%> (-4%)
:arrow_down:

pkg/forwarder/transaction.go
82.9% <0%> (-2.57%)
:arrow_down:

pkg/collector/runner/runner.go
68.42% <0%> (+1.4%)
:arrow_up:

pkg/metadata/host/host_tags.go
80% <0%> (+3.33%)
:arrow_up:


Adding mysql connection uri utility function

Hi @jakeleventhal, looks like some tests are failing, are you able to have a look?

I don't understand why the test is failing? expected and received look identical to me

@jakeleventhal The test output says:
Expected: "***localhost:32870/testDB"
Received: "***localhost:32870/testDB"

Indeed they are identical. I've run the test locally on Docker (as that runtime failed) and see the following:
mysql://root:testPassword@localhost:32771/testDB
mysql://test:testPassword@localhost:32771/testDB

Looks like CI replaced the password and everything before with ***. Looks like the user is invalid.

@cristianrgreco I believe the push i just made ought to fix it. Having trouble getting tests running locally but this should be good to go I think

@jakeleventhal thanks for the contribution!


feat: register npm

remove babel-polyfill
change namespace
new support on CommonJS entry

fixes: #1

ok to test

retest this please

retest this please

retest this please


API to get work item children

This API gives direct descendant of work items
GET /api/workitems/{id}/children

The API to get work items also should be modified to get the count of children for each work item.
Story: #884

There could be 2 ways to do it :

Not have a new endpoint and use the existing endpoint and have the 'child' workitem embedded in the workitem relationship block. This will allow the UI to display the child workitem on the workitem list page without making any further server requests. But this is going to not as easy as (2). So let's go for (2) now. Discussed with @sanbornsen and @nimishamukherjee  :)

Have the new endpoint in the relationships part of the response for the UI to pickup and fire a request to the server for fetching the children , needed to render in the UI.

Let's go with approach (2).

I am planning to move count of children to a separate issue and PR.

I have added an issue to track the count of children: #984


int/float to str

there is a callable error in there.

resolved = added str and () to clarify strings should not be added to floats. It looks like the last printed lines were trying to add mathematically instead of add to the statement.


1480 | Running Sum of 1d Array.py | Python

Title - 1480. Running Sum of 1d Array.py
What will change -
Added a new file
Type of Issue -

[x] Adding New Code

Programming Language

[x] Python

Self Check

Ask for issue assignment and wait to get assigned to it before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

This problem already exists in the codebase.


Test device registration function is required.

I know that the emulator always shows test ads.
This request is not about that.
If admob support package does not have the function to register real devices for testing, you can be blocked by being considered an abusing action while testing your app on a real device.
So this feature is essential.

example : firebase_admob package
const List testDevices = ['xxxxxxx', 'aaaaaaa', ....];
_targetingInfo = MobileAdTargetingInfo(
testDevices: testDevices ?? null,
keywords: ['game', 'money',.....],
nonPersonalizedAds: false,
childDirected: false,
);

Thank you.

Quick work around for you:
Make a service:
class AdvertisingService {
  //generic test ID from https://developers.google.com/admob/android/native/start?hl=en-US
  String testAdId = 'ca-app-pub-3940256099942544/2247696110';

  String myProjectNativeAdId() {
    if (isInDebugMode) {
      return testAdId;
    }
    return 'yourAdIdHere';
  }

  bool get isInDebugMode {
    bool inDebugMode = false;
    assert(inDebugMode = true);
    return inDebugMode;
  }
}

and wherever you're calling the ad, use:
AdvertisingService advertisingService = AdvertisingService();

NativeAdmob(
                    adUnitID: advertisingService
                        .myProjectNativeAdId(),
...
)

Quick work around for you:
Make a service:
class AdvertisingService {...

Thank you very much. I will try the code.
Apart from this answer, I hope package developers can add this feature as well.


Update documentation

…to use non-class-specific language since the class-specific language resulted in problems when copying/pasting documentation between classes.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Good catch. We would prefer to use the (correct) type references in the doc comments though.

If you could change <see cref="HeaderDictionary" /> to `, that would be better.

sorry, this slipped off my radar. i'll try to get to it today

Thanks @smarts!

done @jkotalik  @muratg @Tratcher . not sure what went wrong w/ the build

The changes look good but it's on the wrong branch, it needs to go to the dev branch. Can you get that fixed? If not then @jkotalik can move it over.


Getting Error when installing . Please help

I am getting below error when installing in kaggle :
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
pip install evalml
!pip install evalml
Also restarted session still not able to import evalml

@AmitKumar0106 I can verify that I'm getting the same thing trying to install evalml within the kaggle jupyter notebook.  I'm currently trying to reproduce in a python 3.7.12 environment locally!

@AmitKumar0106 this issue is actually tracked in #2671 .  What's happening is that the kaggle docker image installs a version of another python library, numba, that is incompatible with evalml.  Numba has actually merged a fix, but we're waiting on them to release this fix.  When numba releases and the kaggle docker image updates to this version, installing evalml in a jupyter notebook cell on kaggle shouldn't be an issue.
In the meantime, however, I'm trying a few things to get you up and running with evalml immediately:
1.) !conda install evalml -y
2.) !conda install numba=0.53 -y THEN !conda install evalml -y
The conda install directive seems to work within kaggle's ipython env but I can't seem to send the "Yes" flag successfully.

Closing due to inactivity.


Emails sent from the registry only contain the second technical contacts information (or the last one added)

Describe the issue
A clear and concise description of what you want to happen.
The emails sent from the registry only contain the second technical contact when two were added during the request process.
Additional context
Add any other context, attachments or screenshots
See technical contacts for abb712 and compare to email sent to platform services team with this issue.
Definition of done
Identify what will need to happen/be delivered for this to be completely done
When emails from the registry contain both technical contacts.

CC: @mitovskaol @juhewitt


always show after select dropdown

after select gender in dropdown

still showing

what is wrong?

Closing this as it doesn't state what the problem is. Please add more details and a link to reproduce and I'll reopen this.


Remove rf232(myself) from reviewers

I have not been involved in kubernetes dashboard development for years

Thanks @rf232 .
/approve


Add whereEmpty and whereNotEmpty methods to Query Builder

This PR introduces new methods to the Query Builder to check if a column is empty (null or an empty string):

whereEmpty()
orWhereEmpty()
whereNotEmpty()
orWhereNotEmpty()

These methods provide a convenient way to check for both null and empty string values in a single condition, improving query readability and reducing the need for multiple where clauses.
Example usage:
$users = User::whereEmpty('name')
            ->get();

$users = DB::table('users')
            ->where('id', 1)
            ->orWhereNotEmpty('email')
            ->get();

Changes made:

Added new methods to the Query\Builder class
Updated the Grammar class to handle the new 'Empty' type
Added test cases to ensure proper functionality

These additions aim to simplify common query patterns and improve the overall developer experience when working with the Laravel Query Builder.

Hoping this (or something like it) can get introduced... I've got a lot of projects where I have a nullable field, and when searching need to add in separate queries for ->whereNull('column')->orWhere('column','=','') to find all values where it's either an empty string or a null value.  Then of course, since the orWhere there could screw things up, it all needs to get wrapped into a subquery so that the OR doesn't break a longer query chain.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If applicable, please consider releasing your code as a package so that the community can still take advantage of your contributions!


PhpStorm 2020.3: add custom pair tag is not saved

If I have any unknown tag like "multiplier" and want to add to custom tags via Alt+Enter or manually in Settings, it seems that it is added, but with first automatic save of PhpStorm (or with Ctrl+S) Balloon popup / Event log is shown with message "Unable to save settings: Failed to save settings. Please restart PhpStorm".
After restart application custom tag is not saved - in Settings of Latte there is empty list.
Tested with Latte 1.1.1-RC2
With PHPStorm 2020.2.4 there is not this problem, reparsing Latte files has no effect.

@Lumeriol try xml-configuration-files (documentation) instead of adding new Latte tags in settings.

@Lumeriol try xml-configuration-files (documentation) instead of adding new Latte tags in settings.

From duplicated issues:
@savalo:

Same problem with saving custom latte tags in 1.1.1-RC2:
Unable to save settings: Failed to save settings. Please restart PhpStorm
Pstorm is trying to repeat save custom tags repeatedly..

@NoxArt

Hi, since PhpStorm 2020.3 whenever I change something (e.g. register a macro) and save, I get a message "Failed to save settings. Please restart PhpStorm", but there is no callstack or more info. After restart macro will not be registered
Version is 1.1.1-RC2, but the same issue was iirc with 1.1.0 and 1.0.2 on this PHPStorm version (I've been trying to solve #138 so I tried older versions)
Let me know if I should provide more info or try something
Thank you!

From duplicated issues:
@savalo:

Same problem with saving custom latte tags in 1.1.1-RC2:
Unable to save settings: Failed to save settings. Please restart PhpStorm
Pstorm is trying to repeat save custom tags repeatedly..

@NoxArt

Hi, since PhpStorm 2020.3 whenever I change something (e.g. register a macro) and save, I get a message "Failed to save settings. Please restart PhpStorm", but there is no callstack or more info. After restart macro will not be registered
Version is 1.1.1-RC2, but the same issue was iirc with 1.1.0 and 1.0.2 on this PHPStorm version (I've been trying to solve #138 so I tried older versions)
Let me know if I should provide more info or try something
Thank you!

It is fixed in v1.1.2-RC1 will soon be available in the EAP channel from the JetBrains repository.


Vue-Partners page

Purpose
Implement Partners page.

This is merged into master but I temporarily hid the navigation link until we are ready. In the meanwhile, new partners can be added via separate PRs.
Suggestions by @grgur are landed in fc7eeac6.


doc: fix typo in default_if_none doc

Pull Request Check List
Just noticed this while reading through the docs. It's a 1 character change, so if you'd prefer to fix this in a bigger commit, feel free to close this.
If you want to pull this in, I believe the docs auto-pull from the docstrings, but let me know if I need to do anything other than this.
This is just a friendly reminder about the most common mistakes.  Please make sure that you tick all boxes.  But please read our contribution guide at least once, it will save you unnecessary review cycles!
If an item doesn't apply to your pull request, check it anyway to make it apparent that there's nothing left to do.  If your pull request is a documentation fix or a trivial typo, feel free to delete the whole thing.

[x] Added tests for changed code.
[x] New features have been added to our Hypothesis testing strategy.
[x] Changes or additions to public APIs are reflected in our type stubs (files ending in .pyi).

[x] ...and used in the stub test file tests/typing_example.py.

[x] Updated documentation for changed code.

[x] New functions/classes have to be added to docs/api.rst by hand.
[x] Changes to the signature of @attr.s() have to be added by hand too.
[x] Changed/added classes/methods/functions have appropriate versionadded, versionchanged, or deprecated directives.  Find the appropriate next version in our __init__.py file.

[x] Documentation in .rst files is written using semantic newlines.
[x] Changes (and possible deprecations) have news fragments in changelog.d.

If you have any questions to any of the points above, just submit and ask!  This checklist is here to help you, not to deter you from contributing!

Thanks!


feature: Changes related to launch, param

Modifications

Modified so that each node can be started with a Launch file.
Topic naming has been made more consistent.
Documentation has been changed to reflect the changes.

LGTM Thank YOU!!


Compile Typescript files on libdev runs

Compile typescript files on libdev runs as well as release builds. Removed pax-chassis-web-interface.js/css from source control.
New requirement to always specify PAX_WORKSPACE_ROOT environment variable when running in libdev mode.
This should be merged after ss/manifest-value-def-parsing.

LGTM!


AnnotatedScrollBar slides off screen

Which version of the app?
WinUI 3 Gallery
Description
In WinUi3 Gallery's AnnotatedScrollBar demo, when the window is not maximized, dragging the slider outside of the window allows it to continue to move
Screenshots
https://github.com/user-attachments/assets/d065d3d4-176d-4127-9eea-0a72cf4577bc
Windows version
Windows 11 23H2 (22631)
Additional context
No response

This looks like an issue with AnnotatedScrollBar. Transferring issue to microsoft-ui-xaml repo.


Text prompt

Hi, congratulations to this paper for winning ICRA awards. I have a question about Text prompt, is it generated by BLIP-2 or artificially?

like：Text prompt: "Seems like there's a microwave ahead."

The prompt is a fixed template, meaning it should always just be "Seems like there's a ___ ahead." but the blank is replaced with the target object category. It could be altered to use a different prompt template, but we have found this one to work well.

I got it, thx!


How to use different database dynamically？

My app allows different users to login, I want that each user use database named by their username. Morever, when no user login, no database used. Call flowmanager.init in Application class can't realize my demand.

its not documented yet but 4.1.0 will have support for such a feature. If you use latest develop commit (38fe8f0cd6) as your version you can try this out.
You need to add your db name dynamically as @Database(name = ) will be deprecated in favor of specifying name:
FlowManager.init(FlowConfig.Builder(RuntimeEnvironment.application)
                    .addDatabaseConfig(DatabaseConfig.builder(SomeDB::class.java)
                        .databaseName("content")
                        .build())
                    .build())

then when you need to change the DB dynamically you can use:
FlowManager.getDatabase(MyDB::class.java).reset(...) // DBConfig.builder() with new name here

this will delete the previous database and reopen with the new config. just be careful on app restarts as you will need to ensure you open the proper dbconfig, otherwise you can end up with multiple dbs on disk.

Is there a way that I can switch from one DB to another with different names, but the data is not deleted? Just close one DB and open another?
This usage case is happened when user switching account in the same app:
When user switch account from A to B (ex, Gmail), the DB-A is closed but data is not deleted, while DB-B is open and the data on it is not reset.
I have written a demo app using the logic in thread 2, both of the DBs are reset :(

@laycui  you can copy the old db to a name.tmp.db before deleting?


NSD: handle_tcp_reading: Assertion `buffer_remaining(data->query->packet) > 0' failed.

Hi,
After building a resent git version of NSD with feature branch merged (https://github.com/NLnetLabs/nsd/pull/281 and adding some query load on it, I've started to see these messages now and then in the logs:
Sep 21 11:08:59 snusmumrik nsd[282331]: nsd: server.c:4186: handle_tcp_reading: Assertion `buffer_remaining(data->query->packet) > 0' failed.
Sep 21 11:08:59 snusmumrik nsd[244653]: server 282331 died unexpectedly, restarting
Sep 21 11:08:59 snusmumrik nsd[244653]: process 282331 terminated with status 134

I'm just guessing here, it's could be then this happens below (since these messages disappeared too):
Sep 21 16:45:07 snusmumrik nsd[1023183]: failed reading from <IP_ADDRESS> tcp: Connection reset by peer

The feature branch works fine alone (we've used it from the start) but since it's basically done and will be merged soon, I thought it would be good to bring light on this now so it can be fixed before the merge.

Thanks for the test report! The issue was caused by a second query on the TCP channel, or TLS channel. The query data structure was not reset properly, and this caused the assertion failure. The commit https://github.com/NLnetLabs/nsd/commit/dfcdadb828f6484d82c7219a2990cd142d716885 fixes the issue.

That closes the issue, the fix is part of #281.

Yes! The assertion hasn't showed up in the logs since I pushed your fix into the server.
Many thanks for quick handling of this issue!


Teensy does not run when power is applied from battery

I have an issue where my program will not run when power is applied from a battery via the USB port while the Teensy is in sleep or deepSleep mode. If I plug it into a computer, it runs as expected. If I load the default blink program, plugging the Teensy into the battery runs the program as expected.
So I am not sure exactly what I am missing. I currently use the Alarm, USB, and Digital drivers. Normally I want the Teensy to wake every 30 minutes, read some sensors, and go back to sleep (for testing purposes I am using a 15s timer). This all works fine when it is plugged into a computer. I tried adding a digital driver to wake the Teensy up from a button press, to force it to wake up regardless of the timer, but this still only works when it is connected to a computer, not to a battery.
Is there something else I need to listen for to get the Teensy to wake when plugged into a battery?

Nevermind, issue was a while (!Serial); causing it to hang


TrivalentLonePair parameter places vsite at incorrect geometry

Describe the bug
In a TrivalentLonePair parameter definition, four atoms should be tagged, and the central atom should be index 1. The off-site charge should be on a line perpendicular to the plane containing of atoms indexed 2, 3, and 4, and that line should intersect the atom indexed 1.

In this bug, a virtualsite parameter with a straightforward SMIRKS [NX3:1]([H:2])([*:3])([*:4]) leads to an incorrect geometry in the outputted system.
To Reproduce
from openff.toolkit.topology import Molecule, Atom
from openff.toolkit.typing.engines.smirnoff import ForceField
from openff.units import unit
from openff.units.openmm import to_openmm
import openmm.unit as omm_unit
import numpy as np
import openmm
import nglview

def ff_and_mol_to_pdb_w_vsites(mol, ff, filename):
    omm_sys, ret_top = ff.create_openmm_system(mol.to_topology(),
                                               return_topology=True)

    integ = openmm.VerletIntegrator(1.0 * omm_unit.femtoseconds)
    omm_top = ret_top.to_openmm()

    # to_openmm doesn't handle virtualsites yet, so we add them manually to the openmm topology here
    for particle in ret_top.particles:
        if isinstance(particle, Atom):
            continue
        print(
            particle.virtual_site.name,
            openmm.app.Element.getByMass(0),
            [i for i in omm_top.residues()][0],
        )
        omm_top.addAtom(
            particle.virtual_site.name,
            openmm.app.Element.getByMass(0),
            [i for i in omm_top.residues()][0],
        )

    sim = openmm.app.Simulation(omm_top, omm_sys, integ)
    pos = sim.context.getState(getPositions=True).getPositions()

    # heuristic that vsites come at the end; applies to OpenFF
    n_vptl = ret_top.n_particles - ret_top.n_atoms
    vsite_pad = np.arange(n_vptl * 3).reshape(n_vptl, 3)
    conformer_nm = mol.conformers[0].m_as(unit.nanometer)
    conformer_w_vsite_pad_nm = np.vstack([conformer_nm, vsite_pad])

    sim.context.setPositions(conformer_w_vsite_pad_nm)

    # Once the atom positions are known, virtual sites can
    # be determined.
    sim.context.computeVirtualSites()

    state = sim.context.getState(getPositions=True)
    with open(filename, "w") as outfile:
        openmm.app.PDBFile.writeFile(omm_top,
                                     state.getPositions(),
                                     #conformer_nm*10,
                                     outfile,
                                     keepIds=True,
                                     extraParticleIdentifier='EP')

mol = Molecule.from_smiles('N(C)C')
mol.generate_conformers()
ff = ForceField('openff-2.0.0.offxml')
vsh = ff.get_parameter_handler('VirtualSites', {'version':0.3})
vsh.add_parameter({'type':'TrivalentLonePair',
              'smirks':'[NX3:1]([H:2])([*:3])([*:4])',
              'match': 'once',
              'charge_increment': [0.1, 0.2, 0.3, 0.4] * unit.elementary_charge,
              'distance': [1.5] * unit.angstrom,
              'sigma': 0.8 * unit.angstrom,
              'epsilon': 2.3  * unit.kcal / unit.mol,
              'name':'vs4'} )
ff_and_mol_to_pdb_w_vsites(mol,
                           ff,
                          'test.pdb')
nglview.show_file('test.pdb')

The geometry in the above visualization is incorrect. The site should be "above" the nitrogen, as measured by the plane formed by its three neighbors. Instead it is places nearly straight down the axis of the N-H bond.
I can switch the indexes of the first two atoms in the vsite parameter in the above code from [NX3:1]([H:2])([*:3])([*:4]) to [NX3:2]([H:1])([*:3])([*:4]), and get the following:

While this looks better, it still looks visibly off from where it should be (my picture may not do it justice, but it's fairly clear in 3D)
I'm tempted to think that the bug is due to code reuse of the ImproperDict class in the TrivalentLonePair code. While the two are very similar, the central atom in a SMIRNOFF improper is index 2 in the parameter smirks, whereas in a TrivalentLonePair virtualsite the central atom is index 1.  These two concepts are so similar that I'm sure I advocated this code reuse in the first place, but now I realize that this may mean that this mistake may be elsewhere in the code as well.
This may or may not have the same root cause as openforcefield/openff-toolkit#1222.

I can't reproduce this. I tried several different values and the visualization code path produces the results I expect. I tried to set it several positions on the range (-1, 1) nanometer, including zero (right on the nitrogen).
The code path is fairly convoluted, but ends up at a nexus that's used whenever virtual positions are needed: https://github.com/openforcefield/openff-interchange/blob/v0.3.23/openff/interchange/components/interchange.py#L682-L690


Tracing: prisma:engine spans always get sampled when using probability based samplers

Bug description
When using any probability-based sampler (like TraceIdRatioBasedSampler) no matter what sampling ratio I use, the prisma:engine spans are always sampled.
For example, I’m tracing an endpoint that has a prisma.model.findMany query inside. I’m also using a TraceIdRatioBasedSampler with a sampling ratio of 0.3. The samples are collected and visualized using Jaeger. The engine spans show up 100% of the time for every request I make to the endpoint, but the rest of the spans show up roughly 30% of the time.

Here 6 traces were generated correspoding to 6 client requests, despite using a TraceIdRatioBasedSampler with a sampling ratio of 0.3. Four of these requests consist of only prisma:engine spans. The remaining two traces consist of all the spans. (Note: The screenshot is from spans generated using prisma v4.2.0, but the issue persists in v4.3.0).
How to reproduce
This repository provides a reproduction, along with instructions: https://github.com/TasinIshmam/tracing-probability-sampling-prisma
Expected behavior
All spans generated by Prisma should respect the sampling ratio of the underlying probability sampler.
Prisma information
Provided in the reproduction repository.
Environment & setup

OS: macOS Monterey 12.5.1
Database: sqlite
Node.js version: 16.14.2

Prisma Version
prisma                  : 4.3.0
@prisma/client          : 4.3.0
Current platform        : darwin-arm64
Query Engine (Node-API) : libquery-engine c875e43600dfe042452e0b868f7a48b817b9640b (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli c875e43600dfe042452e0b868f7a48b817b9640b (at node_modules/@prisma/engines/migration-engine-darwin-arm64)
Introspection Engine    : introspection-core c875e43600dfe042452e0b868f7a48b817b9640b (at node_modules/@prisma/engines/introspection-engine-darwin-arm64)
Format Binary           : prisma-fmt c875e43600dfe042452e0b868f7a48b817b9640b (at node_modules/@prisma/engines/prisma-fmt-darwin-arm64)
Format Wasm             : @prisma/prisma-fmt-wasm 4.3.0-32.c875e43600dfe042452e0b868f7a48b817b9640b
Default Engines Hash    : c875e43600dfe042452e0b868f7a48b817b9640b
Studio                  : 0.473.0
Preview Features        : tracing

Thanks for your reproduction @TasinIshmam, following your steps I can confirm that this is reproducible and is an issue.
I can confirm this is an issue by taking your server.ts file and applying the diff(removing or commenting out the Prisma method calls):
import initializeTracing from "./tracing";
const tracer = initializeTracing("express-server")

import { post, PrismaClient, user } from "@prisma/client";
import express, { request, Request, response, Response } from "express";

const app = express();
const port = 4000;

const prisma = new PrismaClient({});

app.get("/users/random", async (_req: Request, res: Response) => {
    await tracer.startActiveSpan("GET /users/random", async (requestSpan) => {
        try {
-           let users = await prisma.user.findMany({
-                include: {
-                    posts: true
-                }
-            });

            // select 10 users randomly
-            const shuffledUsers = users.sort(() => 0.5 - Math.random());
-            const selectedUsers = shuffledUsers.slice(0, 10);

-            res.status(200).json(selectedUsers);
+            res.status(200).json([]);

            requestSpan.setAttribute("http.status", 200);
        } catch (e) {
            requestSpan.setAttribute("http.status", 500);
            res.status(500).json({ error: 500, details: e });
        } finally {
            requestSpan.end();
        }
    });
});

app.listen(port, () => {
    console.log(`Example app listening on port: ${port}`);
});

After removing the Prisma calls I then made 6 HTTP requests to the server and doing so only produced the following 3 traces in Jaeger:

This shows that when Prisma is disabled the probability is working.

Internal conversation https://prisma-company.slack.com/archives/C040E1UMBD5/p1663118347284769

Which PR closed this @millsp?

https://github.com/prisma/prisma-engines/pull/3188


PDF Generator uses IIIF to properly size page images

Once IIIF services are available, refactor GeneratesPdfs#to_pdf to use those services.  It should resize the image to fit the page and render it as either a PNG or JPEG.
Note: You must make sure that images don't exceed the page size.  Default page size is LETTER (612.00 x 792.00).  Currently I'm just telling prawn to make pages with no margins and to limit image height to 792.00.  Ideally this should be replaced by code that uses IIIF to make images that are as close to the page dimensions as possible without exceeding them.

Duplicate of #76


Page renders before layout change is done

Environment
- Operating System: Darwin
- Node Version:     v20.11.0
- Nuxt Version:     3.10.1
- CLI Version:      3.10.0
- Nitro Version:    2.8.1
- Package Manager<EMAIL_ADDRESS>- Builder:          -
- User Config:      devtools, typescript, modules, ssr, app, build, postcss, vite, nitro, supabase, primevue, headlessui, piniaPersistedstate, security, routeRules, runtimeConfig
- Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>- Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-41grgd?file=nuxt.config.ts,app.vue,layouts%2Fdefault.vue
Describe the bug

go to the second page (works fine)
go to the 1st page again
notice how the page content loads before the layout has loaded

I added a transition and you can see how the transition runs after the other page loaded. Even thought, that other page should never appear together at the same time with other Layout
in the repro I added an await timeout to introduce the bug. In my actual case, there is no timeout and i'm not 100% sure why it's happening yet. But clearly, I expect Nuxt to load the layout first and then its slot content (the page)
Additional context
No response
Logs
No response

This is because you are specifying the layout in your app.vue, but not using the routing implementation to specify the layout. That means we can't start rendering the layout at the same time as we start rendering the page.
This is an implication of how Suspense + routing works within Nuxt.
Instead, you can use definePageMeta layout to ensure that layouts load synchronously with the pages they correspond to.

Ahh I see, interesting! Maybe it's worth adding the bit about synchronous loading in the Nuxt docs. Currently the docs don't show any difference between the 2 approaches

Yes, that would be great 🙏

@danielroe hello again!
nuxt 3.11 just added a very cool way to define middleware like so:
routeRules: {
  '/admin/**': {
    appMiddleware: 'admin',
  },
},

This is really cool because up until now, i've been manually setting the middleware for all the admin routes manually which can error prone.
In reality I set 2 things in each nuxt page these days, the layout and the middleware. E.g.
definePageMeta({ middleware: 'admin', layout: 'admin' })

do you adding a layout as a route rule is a feasible feature suggestion?
currently the only 2 ways I know of to set a layout have their downsides, one is not synchronous and other is verbose and requires the dev to remember that a new page always needs the layout to be set.
This feature would resolve both problems, it will be synchronous and ensure consistency


"Configure Task Runner" should pick tasks from package.json

Refs: Vue.js test tour (https://github.com/Microsoft/vscode/issues/23385)
When selecting "Configure Task Runner" and the package.json inside the project already has scripts configured for run, test, build etc. I think we should take those scripts automatically into the launch.json.

We decided to not implement more auto detection code inside VS Code core (why npm and not make :-)). With the new task API this can now be done in extensions and @egamma started to work on this in the npm extension for VS Code.
Will close the issue since the work in better done in extensions.


⚠ Spryr has degraded performance

In 57fc8f3, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 6218 ms

Resolved: Spryr performance has improved in f3c6bb6 after 8 minutes.


[Refactor]: sink error

Current dependencies on/for this PR:

main

PR #300   👈

This stack of pull requests is managed by Graphite.


Rxc 1660 python sdk endpoints

Requirements

[x] Put respondent endpoint is available in the Python SDK
[x] Put respondent answers endpoint is available in the Python SDK.

Motivation and Context
Partners can use the SDK to call endpoints put-respondent-answers and put-respondent from the rex-respondent-gateway
Link to the task on Jira

JIra ticket
This adds the functionality requested in issue: #20
How Has This Been Tested?

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Code Review

[ ] PR requires a team code review.

@ishmora someone else should review this as well

looks like this is (failing some tests)[https://teamcity.surveysampling.com/buildConfiguration/RespondentExchange_SDKs_Python_Build/6707837?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&expandBuildChangesSection=true&showLog=6707836_513_440&logFilter=debug&logView=flowAware] mind checking them out?


Connecting OXTS driver with MATLAB ROS2 Toolbox

Hey as part of my research I use the OXTS RT3000v3 on a test vehicle.
I am able to run the driver properly without any issues but i have trouble connecting my Simulink models to accept messages from active topics the driver provides.
Unit IP : <IP_ADDRESS>
Machine IP : <IP_ADDRESS>
I run Ubuntu 20.04 LTS on a logging PC with ROS2 Foxy on the same machine.
I also run MATLAB r2022a in Linux.

I am attaching a few images for your reference.

Image 1 shows that i am able to ping the device properly
Image 2 shows the nodes and topics i can see from the MATLAB command window.
Image 3 shows the active topics in my terminal along with some example nodes created using the ROS2 toolbox.
Image 4 shows my xml config where i have used my unit's IP along with domain ID 30.

Although i can see that the toolbox and the ROS network created by the OXTS driver is in some form of communication I am still not able to connect my Simulink model which subscribes to these topics.
Please let me know how we can move forward with this. Am i doing everything correct and i am also ready to provide more information so that we can solve this issue . hoping to hear from you soon!
Best Regards
Mahesh Krishnaa Gopalakrishnan

Hi Mahesh
Thank you for your question.
I am not familiar with Simulink, but from what you describe, it sounds to me like it should be connecting to a ROS2 node and subscribe to certain topics. With this in mind, shouldn't the IP address in the XML be your machine's IP address (i.e., the machine where the ROS2 node is running) rather than the unit's IP address? Could you try this to see what happens? The next place I would look is the domain ID - and in the first instance, can you try setting the domain ID to 0 in your XML?
Some useful information about domain IDs:
https://docs.ros.org/en/foxy/Concepts/About-Domain-ID.html
Best regards,
Llyr

Let me try changing it to machine's IP and see how this goes.
Will keep you posted :)

Hey i tried changing domain ID to 0 and also specified machine IP inside xml file.
This worked! Thank you for the assistance.
One more thing i'd like to point out is to change the rmw implementation to cyclonedds with my version of matlab and ros2 foxy for this to work.
I'm closing this issue now.
Have a great day!


engine.process() does not print anything

Hi,
I am running the very same example code in jupyter and in spyder and it does not print anything, could you help me?
Thanks!

Hi,
Perhaps you've already solved this, I had the same problem.
If you look in the code, engine.py, you see that the function engine.process() returns a variable called result.
So if you use the example code from the readme you can just change the last line to:
result = engine.process()
print(result)
or just print(engine.process())


Enable Rasmus's segmented reductions

The segmented reductions done by @RasmusWL can handle our entire test suite and all benchmarks without performance regressions.  In several cases, performance improves appreciably.  So, why are they not enabled by default?

There is a single case that I want to be able to handle, and I should be able to loot at this over the weekend :)

So how come all the tests pass if there's a known defect?

(I'm handing in a report next week where your work makes the difference between x80 and x130 speedup, which is why I'm a little antsy get it in.)

I suspect the reason you don't see any problems, is that you're only looking at using my implementation for segmented reductions. If you turn on versionedCode, my implementation will also be used for segmented redomaps, and there are some cases that are not handled properly.
On example of an example that is not handled properly is tests/segredomap/ex3.fut. Currently such programs are held back by some very crude assumptions I made early on, that turns out to be wrong. example here
I ran out of time today to work on Futhark, and I'm going on vacation for the next week. I will come back and fix this, but for now "here be dragons".
If you still want your speedup, there should be no problem enabling it for only segmented reductions :)


Use of Masks Renders Blank File

Using masks in Adobe Animate CC 2015.2 and then rendering, results in an html file, which when viewed in the browser displays a white screen with no animation and no visuals. This was confirmed by creating a simple animation in Animate, with no masks, and rendering - which resulted in the correct visuals and animation being displayed when viewing the HTML file in the browser, and then applying a mask to the same file, masking the animation and then rendering - resulting in a blank screen when trying to view the HTML file in the browser.

This issue could be related to the url one in Snap.svg:
https://github.com/adobe-webplatform/Snap.svg/issues/303
It seems that certain browsers need the pathname to qualify the url marker. In short they want to have this
url('/path/name#maskID')
instead of just
url('#maskID')
Current version of Snap.svg doesn't add the pathname so there's a number of pull requests and hacks around.
https://github.com/adobe-webplatform/Snap.svg/pull/418
If this is your case, and after applying that change to your copy of snap.svg.js, test across all browsers. I've found that this change is only required by IE. Edge and the rest of your usual suspects should work fine without it.

There's a MaskTest.fla which seems to be working properly with masks.  Also I tried making a simple document with a mask and I seem to get the correct results.  Can you provide a reduced test case of this issue that I can check.

Not sure if this is related however I've noticed the following when using masks in IE/Edge:

The opacity of masked areas varies depending on the luminance of the mask. (white mask -> opaque, black mask -> transparent). Chrome and Firefox don't seem to use alpha masks.
Rendering of masked areas is erratic when animating masks by scaling movieclips. Using shape tweens instead seems to solve this.


Map Fields Between Open Connectors and HubSpot

Tutorials: https://developers.sap.com/tutorials/cp-apim-openconnectors-common-resources.html
I cannot add new common resources as mentioned in the tutorial. I get the error message: "Failed to retrieve all templates We apologize for the inconvenience".

Did I make something wrong in the previous steps?
Thanks for your help.

Dear Colleague,
Have you clicked on basic companies? You can do two things:

Try to select other template
Or try to clear cache and create again.

Regards
shilpa

Hi Shilpa,
I cleared my cache and tried again but unfortunately I cannot click on "basic-companies" tile nor select any other templates because my screen is completely empty.

What should I do to get the missing templates? Would it be an authorization issue?

Dear Colleague,
I cross-checked and looks like for a new account it doesn't work. Templates are not getting loaded.
This is a bug and will report it.
Regards
shilpa

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.

Hi Michael,
I’ve just tried again and unfortunately I’m still stuck with the same problem. My “Common Resources” screen has no tile and get the message “Failed to retrieve all templates We apologize for the inconvenience”.
Could you please reopen the issue?
Thanks.
Ph. Daucourt
From: Michael Czadankiewicz
Sent: November 11, 2021 4:13 AM
To: SAPDocuments/Tutorials
Cc: Philippe Daucourt; Author
Subject: Re: [SAPDocuments/Tutorials] Map Fields Between Open Connectors andHubSpot (Issue #7115)
Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

This is a bug with the software and teams are working on it hence closing this issue on the tutorial.


Activate 'App Deletion' from GUI

App Deletion: Added code to invoke the API method wipe on click of the delete button on app-cards
Signed-off-by: Rohit Deshmukh<EMAIL_ADDRESS>

Thanks!

Thank you! :)


Update Docker image to Python 3.5

Update the Docker image to use Python 3.5 as Baleen is now dependent solely on Python 3.5

Also should add a docs refresh due to the completely missing part regarding starting the stack with docker-compose referenced in #53

@lauralorenz so is this complete with the pull request you submitted?

Yes; closes 55 and 53
Sent from my iPhone

On Aug 6, 2016, at 3:25 PM, Benjamin Bengfort<EMAIL_ADDRESS>wrote:
@lauralorenz so is this complete with the pull request you submitted?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Smaller bundle size

Redo of #219
old:

new:

Coverage remained the same at 100.0% when pulling 4422dc6bbaf888f2f6f3300fa36d97c3045d7123 on fix/smaller-bundle-size into e2810125aba70c40d212196d0e9d08f35524e108 on master.

looks better in terms of size, but you are removing the UX using micro from terminal, right?

@timneutkens what is the reasoning behind this PR?

I'm closing this PR now, since we've began working on a huge rewrite of micro internally. However, this does not mean that this was done for nothing. Like I discussed it with @timneutkens, we'll be taking advantage of the pre-thinking he did and also credit him for that.
Please keep an eye on the releases page! 😊 🚀

@iamstarkov This might be related to #234

@styfle thanks

@leo can you create an issue for rewrite, so we can track the progress and dont bother you in the meantime

This won't take long - the new micro will have the same API.


xml2rfc Unable to resolve external request

Describe the issue
Hi,
When using xml2rfc tool to validate xml document, I always face such error.
Error: Unable to resolve external request: "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"
Error: Unable to resolve external request: "https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"
Error: XInclude processing failed: could not load https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml, and no fallback was found, line 172
Unable to complete processing xxxxx.xml
I don't have such issue couple of month ago.
And the xml ever passed the xml2rfc validation now also report such error.
Any clues?
Thanks a lot!
Code of Conduct

[x] I agree to follow the IETF's Code of Conduct

wrong place..


OneShot System with input.

Currently the event handling system has two models:
One-shot system, which runs a system in general and does not support input currently.
Mutation, which is powered by run_system_once entity specific and supports input.
I'm keeping the status quo because I want the main implementation in the future to be one-shot system, not run_system_once. This won't change until one-shot system with input gets merged.

Closed due to async system supersedes this.


Using guppy GPU basecaller server on cluster

Is it possible to modify nextflow options to accept --port and use a GPU installed on another node on cluster?
I tried local install in my directory on cluster where I installed master of pores, guppy gpu and had issues with not being able to install CUDA Drivers first so I reverted to guppy-cpu. Howvver I do have Tesla GPU card on another node and I can use the cpu version of guppy as client and --port flag.

Hi. I think the easiest way is to do the peak calling in the node with GPU card...
You can change the nextflow.global.config file and add
  withLabel: basecall_gpus {
        queue = 'NODE_NAME_WITH_GPU'
        container = 'biocorecrg/mopbasecall:0.1'
        cpus = 2
        maxForks = 1
        containerOptions = { workflow.containerEngine == "singularity" ? '--nv':
           ( workflow.containerEngine == "docker" ? '-u $(id -u):$(id -g) --gpus all': null ) }
  }

I have not managed to get this working as of yet because there is issue that the GPU not being accessible from the node where my data and master of pores is installed

I strongly recommend to use singularity. However we tested docker too and it worked. You might want to get in touch with people of docker for checking the problem (version?)

OK I will try singularity as its looking I will have to go down this option on our HPC cluster as well


Add liveness & readiness probe for zero downtime deployments

I initially went with an approach of a dedicated /health endpoint for the probes to target, however probes consider any http status code between 200 - 399 as valid. When a http request targets the home page /, the application should attempt authentication redirection with a status of 302, hence this is valid and exposes a greater level of application functionality.

defines liveness probe to check for application lock ups and restarts
defines readiness probe to check for application availability for zero downtime deployments

Nice, thanks for sorting this 👍🏻


Baremetal support in bosh-softlayer-cpi

This PR is based on PR 126, I had refined the some methods to make it clean.

@maximilien
Could you please look into the codes as soon as possible, because this PR contains lots of changes, to avoid more conflicts in future, could you please review it as high priority? Thanks!
Hi, @sykesm,  could you please help us review the codes, we are also looking forward to your comments, thanks!

Hi, @jianqiu, unfortunately you need to rebase. This is due to my merging @mattcui PR that was submitted before yours. Sorry about that.
Also, please squash your commits into one. Thanks and I will review ASAP.

Hi, @maximilien All conflicts had been resolved, but I did not find a good solution to squash commits into one, I had tried many times, unfortunately no one succeeded. Do you have a chance to squash them when merging? Thanks!

@maximilien @mattcui
Could you please review the PR as soon as possible? There is another PR pending on it. Thanks!

BTW, @jianqiu, reason it's taking so long for me to review this is that the changes are so much at once that loading the diff crashed my chrome twice, I may need to use s more powerful machine... I'll attempt again to finish this review today

@maximilien
Thanks for you great efforts. It really has changed a lot, I knew it was not good, we will submit more small er PR in future.
BTW, after the PR merged, we will consider how to merge the 'portable ip' support suggested by @sykesm

@jianqiu merging but this is the last time I will accept a PR that has so many unrelated changes. From now on, submit smaller PRs more often. Thx


Popover does not render when opened from a directive

Here's a code pen showing the issue: http://codepen.io/anon/pen/WbOyYR
I have a popover that I want to open from a directive since the popover is useful from several screens. The directive just renders a button, and tapping the button should open the popover.
I don't get an error. I see that the popover-backdrop is active (z-index 10), and the popover view is in the dom at z-index 10 as well, but the view is not visible.

Doh! If you don't pass in the event, the positionView function is never called. I've fixed the codepen in case anyone else comes along having made the same silly mistake.


upgrade to treebeard 3.0

Current treebeard 2.0 generates a bunch of noisy deprecation warnings in Django 1.7
treebeard 3.0 was recently released and should fix this:
https://tabo.pe/jenkins/job/django-treebeard/

Hey  @anentropic,
I think this was already discussed and merged in #1644

sweet!


cleanup and docker removal poc

Codecov Report

Merging #17 (ee70f46) into master (93c5f25) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #17   +/-   ##
=========================================
  Coverage     88.24%   88.24%
  Complexity      187      187
=========================================
  Files            49       49
  Lines           570      570
  Branches         24       24
=========================================
  Hits            503      503
  Misses           56       56
  Partials         11       11

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 93c5f25...ee70f46. Read the comment docs.


Limit step execution in CLI

moved from https://github.com/drone/drone/issues/1894
I recommend submitting a pull request that adds --include and --exclude flags. This would enable drone exec --include=build,unit and drone exec --exclude=selenium to limit which of the above steps are executed.

This is already available for a long time:
   --include value         Name of steps to include
   --exclude value         Name of steps to exclude


ng-sortable: add prefix to version constant

Now this constant is global and can be overridden any another angular lib.
Also, I don't see any purpose to keep this constant at all

Please, forward PR into dev-branch.

done #418.
If you mark dev branch as default in repository settings, it will be checked out right after git clone and it will help contributors to avoid this silly mistakes


Allow linking the server-side HTML render with client side HTML fetch spans

When an HTML page is loaded, it's nice to be able to see the overall page load as a span with a span for the initial HTML fetch as well. If the HTML fetch is slow, it's nice to see what on the server took a while (e.g. database calls, view render, etc.). This would be a feature request for the DocumentLoad plugin to make this work.
To get the server and client spans joined for the HTML fetch, we need the trace context to be shared between the client and server for an HTML load. Because the client in this case (the browser) does not send a trace header for the initial page load, we need an alternate mechanism.
What we can do is to have the server send back its trace ID, and make its server-side span for the initial page load have a random span ID as its parent. Then it passes back that parent ID to the browser client, which uses it as the span ID for its client-side fetch. That way we link the spans without needing to pass trace context as a header, which is not possible given the current browser spec for an initial navigation fetch.
Similarly, we will want to pass the trace sampling decision from the server to the client so that the trace sampling of both are aligned such that the user gets full end-to-end traces.
Here are two possibilities for how the server can send the trace ID back to the client:

Have the server write a global variable, maybe something called otTraceparent or similar. We used this approach in OpenCensus Web, see its Send a trace parent and sampling decision from your server docs, and this code link
We could encode the trace ID, span ID and sampling decision (basically the trace parent header) as an entry in the Server-Timing header. This could be useful in some contexts, but feels a little hackier than passing the trace header as a global variable.

I recommend we start with option 1, and then get to option 2 at some point in the future.
cc/ @jahtalab
What do you think @obecny about this feature request?

please assign this to me


When launched with tsx, process.on('message') and process.send doesn't work

Bug description
I launched tsx with my ts-file, using child_process and with ipc attached (spawn('tsx', ["<filepath>"], {stdio: ["ipc"]})).
I then listened for messages, and sent a message to the process, which the process should respond to, and then exit, but instead, nothing happened. It doesn't throw an error either. I hope this description is clear enough.
Reproduction
https://github.com/FishingHacks/tsx-error-ipc
Requirements:

Globally installed tsx
Globally installed ts-node (it will launch b.ts with ts-node as a comparison, that code-part is not neccessary)

Environment
System:
    OS: Linux 5.4 Linux Mint 20.3 (Una)
    CPU: (4) x64 Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
    Memory: 11.36 GB / 15.57 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 18.6.0 - /usr/bin/node
    npm: 9.4.0 - /usr/bin/npm

Can you work on a fix?

[ ] I’m interested in opening a pull request to address this issue.

it appears that
if (process.send) {
    let handledDep = false;
    childProcess.on('message', (message: any) => {
        if (message && message.type === 'dependency') handledDep = true;
        else if (handledDep && (!message || message.type !== 'kill'))
            process.send?.(message);
    });
    process.on('message', (msg: any) => childProcess.send(msg));
}

after the relaySignal function definition, it essentially fixes the error. Then i noticed, that process.off does not work, but process.removeListener does, so i added process.off = process.removeListener; at the end of preflight.cts.
When i tried to run npm test, it "froze" at ✔ Package type: commonjs › tsx › watch › ignore › file path & glob, but that does not appear to be caused by the changes i made, as reverting them also displayed the same behavior.

tsx is a wrapper process, and I'm not sure if I recall relaying IPC from the actual Node.js process to the parent. I think this will have to be researched & implemented.
I'm not sure if I understand the point of your last message—what are you trying to do?

Looks like an attempt was made to fix this in #206, but it's been a while and that PR seems stalled.


Implement TrickleTimer class

This change implements a separate TrickleTimer class to be used by MleRouter for advertisements and for (future) MeshForwarding for MC packets.

Current coverage is 64.45% (diff: 79.36%)

Merging #603 into master will increase coverage by 0.16%

@@             master       #603   diff @@
==========================================
  Files            94         96     +2
  Lines         14068      14104    +36
  Methods        1919       1930    +11
  Messages          0          0
  Branches       1662       1670     +8
==========================================
+ Hits           9045       9091    +46
+ Misses         4510       4489    -21
- Partials        513        524    +11

Powered by Codecov. Last update 7dbf483...938f88e

Thanks for submitting this PR.  This looks good overall.  Most my comments are minor nits.  Two things I wanted to up-level:

When sending MLE Advertisements, Thread only specifies use of Trickle when operating as a Router.  A REED uses a fixed interval with random jitter.
So far, OpenThread's implementation philosophy is to implement the necessary functionality required by Thread to minimize resources.  This PR pushes that boundary by being fully RFC 6206 compliant, in particular suppression which is not used by Thread.

@nibanks, this is ready to merge, right?

Yes, it is ready to merge.


chore: stop release of texttospeech

Related to googleapis/java-texttospeech#1

Lgtm, is this spanner thing a flake? I have seen it on a previous PR as well... If so we should create an issue and get that fixed sometime


fix: 🐛 bump dependencies

JIRA Link
DA-541
Changelog / Description
Bump dependencies to solve security alertes raised by dependabot
Checklist -

[ ] New Feature ?
[ ] Updated swagger annotation (if API structure is changed) ?
[ ] Unit Test (if possible) ?
[ ] Updated the Readme.md (if required) ?

Looks like the enum validation message is better now.
This is a nice case for "toMatchSnapshotortoMatchInlineSnapshot` for the fix to be "run with -u", but its good our tests caught that change imo.

:tada: This PR is included in version 2.7.0-alpha.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

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


SpatialCoordinateSystem and matrix4x4

I can't find anything about what "SpatialCoordinateSystem" is on the document page. Does anyone know what the 4by4 matrix returned by the method "TryGetTransformTo" is? Is the matrix following the right hand convention or left hand?  Does it support post concatenation or pre concatenation for matrix multiplications? what is the x,y,z vector of the wold space... Nothing..... Absolutely nothing. The only thing I know about this matrix is it is row majored and it's in meters.

This is documented in MSDN under Spatial Coordinate Systems.

After we create a spatial anchor, we could get its position 4x4 matrix. As we all know, the coordinate system of our machine is relating to itself. (For instance, hololens.) If we want to change the current coordinate system to the spatial anchor, we could use a method named: CreateStationaryFrameOfReferenceAtCurrentLocation() from SpatialAnchor.
However, in order to use this method, we need to have a vector3 as its parameter. How do we transform a position 4x4 matrix to a vector3? I have searched a lot, but I did not find anything about this content. Is it possible that anyone could give me a little help? Any suggestion would be appreciated!


Fuller's Dymaxion projection, how hard would be implementing?

hi!
i see that d3 supports a lot of useful world map projections, but i think i can't find Bucky Fuller's Dymaxion projection - http://en.wikipedia.org/wiki/Dymaxion_projection - http://en.wikipedia.org/wiki/File:Map-of-human-migrations.jpg
i don't know how hard is to implement it, but would be really awesome, and useful for some situations (like worldwide transportation, migration, etc.)
thanks and cheers,
p.

Can we reopen this? Still no projection :(

Yes please <3

It has been implemented, see https://github.com/d3/d3-geo-projection/issues/25
The problem is that the Fuller Institute has placed licensing restrictions on the whole concept of the "Dymaxion Projection" that are incompatible with the BSD License, so it's a social problem not a technical problem that's preventing this projection from being added to D3.

Damn... That's the least Buckminster Fuller thing ever... Copyrights
preventing his ideas from being used more widely....
On Mar 8, 2017 6:39 AM, "Curran Kelleher"<EMAIL_ADDRESS>wrote:

It has been implemented, see d3/d3-geo-projection#25
https://github.com/d3/d3-geo-projection/issues/25
The problem is that the Fuller Institute has placed licensing restrictions
on the whole concept of the "Dymaxion Projection" that are incompatible
with the BSD License, so it's a social problem not a technical problem
that's preventing this projection from being added to D3.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/d3/d3/issues/1209#issuecomment-285018927, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AD0oAM99T1ga3NNLfl1L8Nbf7VFCosooks5rjpNdgaJpZM4Al-Gq
.

@curran I'm not a lawyer but I've checked the restrictions and my understanding is that:

the patent awarded in 1946 has expired after 20 years

there should be no copyright on the projection itself

the BFI (Buckminster Fuller Institute) claims on their site to have registered some trademarks: “The word Dymaxion, Spaceship Earth and the Fuller Projection Map are trademarks of the Buckminster Fuller Institute.”

I checked on TESS the trademarks owned by the BFI, and currently they are limited to "SPACESHIP EARTH" "WORLD GAME" and "FLY'S EYE DOME" and "GLOBAL ISSUES NETWORK". Some other companies have claimed the names “DYMAXION“ and “BUCKMINSTER FULLER”, but they seem unrelated.
So where does this leave us? I'm 99.9% confident anyone is free to do this projection and use it as they want. If we want to be extra careful we can brand that projection by some other name that those claimed on the BFI site and those found in TESS (which do not match…).
“Buckminster Fuller's Dymaxion projection 1946“ is probably OK, and “Buckminster Fuller's projection 1946” is without a doubt OK. If we're totally paranoid about this we can also brand it “Constant Zenith Projection”.
But before that we need some code :)

Here here!
On Mar 8, 2017 1:14 PM, "Philippe Rivière"<EMAIL_ADDRESS>wrote:

@curran https://github.com/curran I'm not a lawyer but I've checked the
restrictions and my understanding is that:

the patent awarded in 1946 has expired after 20 years
there should be no copyright on the projection itself
the BFI (Buckminster Fuller Institute) claims on their site
https://www.bfi.org/about-fuller/big-ideas/dymaxion-world/dymaxion-map
to have registered some trademarks: “The word Dymaxion, Spaceship
Earth and the Fuller Projection Map are trademarks of the
Buckminster Fuller Institute.”
I checked on TESS https://www.uspto.gov/trademark the trademarks owned
by the BFI, and currently they are limited to "SPACESHIP EARTH" "WORLD
GAME" and "FLY'S EYE DOME" and "GLOBAL ISSUES NETWORK". Some other
companies have claimed the names “DYMAXION“ and “BUCKMINSTER FULLER”, but
they seem unrelated.
So where does this leave us? I'm 99.9% confident anyone is free to do this
projection and use it as they want. If we want to be extra careful we can
brand that projection by some other name that those claimed on the BFI
site and those found in TESS (which do not match…).
“Buckminster Fuller's Dymaxion projection 1946“ is probably OK, and
“Buckminster Fuller's projection 1946” is without a doubt OK. If we're
totally paranoid about this we can also brand it “Constant Zenith
Projection”.
But before that we need some code :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/d3/d3/issues/1209#issuecomment-285121167, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AD0oAC6Yakc_2dm-pz600ORhfI5BBMtbks5rjvARgaJpZM4Al-Gq
.

@jgladch Right?! (re: least BuckminsterFuller thing ever)
@Fil That's great information! A few months ago I had a few email exchanges that are relevant to this discussion.
I emailed the original author of the C implementation, Robert Gray, asking his permission to include the JS port of his C implementation of the projection in D3. His response:

The Dymaxion map layout, I think, is copyrighted by the Buckminster Fuller Institute or the Estate of Buckminster Fuller.  I would send an email to the Buckminster Fuller Institute and ask them.  If they grant permission, then I wouldn't have any problem with someone using my code, or a variation of it.  But I don't own the copyrights to the map layout.

So I sent an email to the Buckminster Fuller Institute asking for clarification on the copyright of the projection and asking if we could include an implementation of it in D3. Their response:

Thank you for your interest in the Fuller Projection Map™. BFI owns the rights to the projection, and yes, it requires a licensing agreement for use.
...
I would need to get permission from our Board and determine if there would be a fee for use. There will certainly be credit information that will need to be included somewhere on the site and below the projection to ensure that users understand that any use of the map projections for consumer or public use would require a licensing agreement with BFI.

So ... I'm not sure what they mean by "rights to the projection" - is it the math? is it the name? I'm not sure where that leaves us.
I really want to see the projection JS implementation packaged nicely and released, but it feels a bit unethical as the original author, Robert Gray, said it's fine as long as BFI grants permission, but the tone of the BFI response is not exactly granting permission.
I wonder if I could do anything more to follow up. Maybe I could ask the BFI folks to cite a copyright/patent registration that states that they own the "rights to the projection" (and mention that 20 years has passed since the patent was granted)?

@Fil

But before that we need some code :)

The code is here: https://github.com/mbostock/protovis/blob/gh-pages/ex/dymax.js
Here's an example that uses it: https://github.com/mbostock/protovis/blob/gh-pages/ex/dymax.html
I also made a Gist in case the above links break for some reason https://gist.github.com/curran/798f862e23d598fe52bb9749165cd939

I also have a working version up at theworldpeacegame.herokuapp.com 👍🤘
On Mar 8, 2017 11:54 PM, "Curran Kelleher"<EMAIL_ADDRESS>wrote:

@Fil https://github.com/Fil
But before that we need some code :)
The code is here: https://github.com/mbostock/protovis/blob/gh-pages/ex/
dymax.js
Here's an example that uses it: https://github.com/mbostock/
protovis/blob/gh-pages/ex/dymax.html
I also made a Gist in case the above links break for some reason
https://gist.github.com/curran/798f862e23d598fe52bb9749165cd939
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/d3/d3/issues/1209#issuecomment-285254461, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AD0oAH6Hu6ea1SsaoHwajVCfjlQbUkZjks5rj4YegaJpZM4Al-Gq
.

Robert Gray's copyright is a different story.
“Copyrights subsist for the author’s life plus 50 years after the author’s death or, in the case of works made for hire, 75 years from the year of first publication.”
Fortunately “Copyright protects against copying, but not against independent development.”
In summary the maths is free to use, but not this code. If we want to freely distribute a port of Robert Gray's code, we need his authorization at least for 150 years (wishing him well). So either ask for the BFI's yeah so that Gray can yeah it too, or write an independent implementation.

Robert Gray sounded generally OK with us using his code if it's legal with respect to BFI, and he did respond to my email way back when. Maybe I could contact him again and request that he release his C code under BSD so we can release the JS port also under BSD.


[MOB-15980] Fixed getTrackingIdentifier and getVisitorIdentifier to return nil string and not return unexpected error when aid vid values are not found.

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

I am considering an alternative solution, to modify getSharedState to include empty values when aid/vid are not available, so the shared state and response identity event shares the keys verbosely like:
Standard shared state created for com.adobe.module.analytics with version x and data:
{
  "aid" : "",
  "vid" : ""
}

This option is also in line with Android and ACP versions. @kevinlind @addb thoughts?

I am considering an alternative solution, to modify getSharedState to include empty values when aid/vid are not available, so the shared state and response identity event shares the keys verbosely like:
Standard shared state created for com.adobe.module.analytics with version x and data:
{
  "aid" : "",
  "vid" : ""
}

This option is also in line with Android and ACP versions. @kevinlind @addb thoughts?

Honestly, I prefer to filter out null/empty values from the EventData. I think the Swift implementation actually corrects the C++ implementation, so I'd like to leave the shared state as it is.

I am considering an alternative solution, to modify getSharedState to include empty values when aid/vid are not available, so the shared state and response identity event shares the keys verbosely like:
Standard shared state created for com.adobe.module.analytics with version x and data:
{
  "aid" : "",
  "vid" : ""
}

This option is also in line with Android and ACP versions. @kevinlind @addb thoughts?

Honestly, I prefer to filter out null/empty values from the EventData. I think the Swift implementation actually corrects the C++ implementation, so I'd like to leave the shared state as it is. If anything, I would suggest, in IdentityProperties, to set aid/vid to nil if the setter's are passed an empty string. It appears the current implementation could return either nil or empty string to the public API.

I am also of the opinion to not share empty values and instead have nil.

Sounds good, let's make sure the shared state/response event docs are up to date too.
Left some small comments on the logic.


Queueing music does not work

In pygame, you can do something like this:
pygame.mixer.music.load(os.path.join('res', 'music', music.intro))
pygame.mixer.music.play(loops=0)
pygame.mixer.music.queue(os.path.join('res', 'music', music.loop), loops=-1)

to play in intro, and when it's finished, the second music file is played in a loop.
That's easy and works totally fine.
But that does not seem to work with pygbag: the second music file starts playing before the first one is finished.
I also tried several other ways of getting such an intro/loop-music track combination to work, but without success. The end event (music.set_endevent) does not work, [music.set_pos](https://pyga.me/docs/ref/music.html#pygame.mixer.music.set_pos) does not work (not supported). I tried manually checking the state of the music player (pygame.mixer.music.get_busy) and then load the second music file, but that does also not work because the browser gives me AbortError: The fetching process for the media resource was aborted by the user agent at the user's request.

please make a repro case with full code and assets ( a gist.github.com  can do )
as the basic test seems to work for me https://pygame-web.github.io/showroom/pypad.html#src/test_mixerqueue.py

OK, I tried to create a minimal reproducible example. It seems to be a problem with pygame itself and not pygbag, as I was able to reproduce my problem without pygbag.


"how-to-get-the-current-browser-location-url " in my reducer

I konw how-to-get-the-current-browser-location-url  in Component or Container， but I want get the current browser location url in my Reducer. I don't want to pass it with param
What's the best way to get the current browser location url in my reducer?

window.location.herf  can get the current browser url, but it is not use "connected-react-router"

@951565664 it's not generally a good practice to have different reducers reading from the state of other reducers. This is kind of the role of side effects middleware like Redux Thunks or Redux Sagas. If you want an action to occur as a result of a specific location, you should dispatch an action to your reducer using a side effect library.

@951565664 it's not generally a good practice to have different reducers reading from the state of other reducers. This is kind of the role of side effects middleware like Redux Thunks or Redux Sagas. If you want an action to occur as a result of a specific location, you should dispatch an action to your reducer using a side effect library.

why "it's not generally a good practice to have different reducers reading from the state of other reducers"?I just want all the logic to be processed in the xxRedux.js.I think that can improve the maintainability of the code. I have used Redux Thunks,

You don't need thunks for this.
Just read from state.router.location.pathname in mapStateToProps. .router may have a different name for you, depending on your setup. Use redux devtools to see your state object.


Ubuntu Instructions fixed.

The instructions for Ubuntu is now completely updated. Two new files were created that list the dependencies required to run the project. These files were created to significantly speed up the development setup time. The commands to install the dependencies have been updated. The program now is able to take one image and identify dark patterns and output the image back with the bounding boxes around those patterns.

Resolves #1
Resolves #3
Resolves #4
Resolves #5


fix import breaking request ID references

Fix import breaking request ID references.

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

Can anyone fix this issue related to breaking link in import?

closed in favor of #7915


fatal error: 'libxml/xmlversion.h' file not found

I'm getting this error when trying to install it with pip in Mac OS X Mountain Lion.
This is the complete pip.log:
https://gist.github.com/4125461
I've all the latest XCode Command Line Tools installed.

I know this is an old issue, but I've been experiencing a very similar one recently (though it was actually the Nokogiri Ruby gem that I was trying to install), and Googling brought me here.
I got past it by symlinking the Homebrew install of libxml2 to the usual include path:
sudo ln -s /usr/local/opt/libxml2/include/libxml2/libxml /usr/local/include/libxml

This might not be ideal for all situations, but works for me for now.

@cirosantilli it works for me, thanks!

libxslt do works for freebsd v10.3, python27, here i try pip install lxml and got such error, thanks @cirosantilli

I am still having these problems.  I have tried

brew install libxml2
pip install lxml  ( Same Error : see below )
sudo ln -s /usr/local/opt/libxml2/include/libxml2/libxml /usr/local/include/libxml

I still have this error on my Macbook Pro.  Can anyone offer another suggestion?
$ brew list libxml2
/usr/local/Cellar/libxml2/2.9.4_3/bin/xml2-config
/usr/local/Cellar/libxml2/2.9.4_3/bin/xmlcatalog
/usr/local/Cellar/libxml2/2.9.4_3/bin/xmllint
/usr/local/Cellar/libxml2/2.9.4_3/include/libxml2/ (47 files)
/usr/local/Cellar/libxml2/2.9.4_3/lib/libxml2.2.dylib
/usr/local/Cellar/libxml2/2.9.4_3/lib/cmake/libxml2/libxml2-config.cmake
/usr/local/Cellar/libxml2/2.9.4_3/lib/pkgconfig/libxml-2.0.pc
/usr/local/Cellar/libxml2/2.9.4_3/lib/python2.7/ (4 files)
/usr/local/Cellar/libxml2/2.9.4_3/lib/ (3 other files)
/usr/local/Cellar/libxml2/2.9.4_3/share/aclocal/libxml.m4
/usr/local/Cellar/libxml2/2.9.4_3/share/doc/ (153 files)
/usr/local/Cellar/libxml2/2.9.4_3/share/gtk-doc/ (55 files)
/usr/local/Cellar/libxml2/2.9.4_3/share/man/ (4 files)
Error Message
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /var/folders/mf/k3gwf7795b594fkvb64vbz_r0000gn/T/xmlXPathInitmvgtwwy3.c -o var/folders/mf/k3gwf7795b594fkvb64vbz_r0000gn/T/xmlXPathInitmvgtwwy3.o
/var/folders/mf/k3gwf7795b594fkvb64vbz_r0000gn/T/xmlXPathInitmvgtwwy3.c:1:10: fatal error: 'libxml/xpath.h' file not found
#include "libxml/xpath.h"
         ^
1 error generated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command '/usr/bin/clang' failed with exit status 1

The latest mitmproxy release does not depend on lxml anymore.

If you are MacOS , rerun xcode-select --install this problem may be fixed.

Hi, update on this with macOS Mojave: I still had the problem after installing both CLI tools with xcode-select --install and libxml2 / libxslt with brew.
The only thing that fixed the problem was installing missing legacy headers as pointed out here: https://silvae86.github.io/sysadmin/mac/osx/mojave/beta/libxml2/2018/07/05/fixing-missing-headers-for-homebrew-in-mac-osx-mojave.html
Simply run
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
and there you go!

I know this is an old issue, but I've been experiencing a very similar one recently (though it was actually the Nokogiri Ruby gem that I was trying to install), and Googling brought me here.
I got past it by symlinking the Homebrew install of libxml2 to the usual include path:
sudo ln -s /usr/local/opt/libxml2/include/libxml2/libxml /usr/local/include/libxml

This might not be ideal for all situations, but works for me for now.

Solved for me libxml2 and libxlst installed with brew

Simply run
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
and there you go!

If you couldn't find /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg in your system like me, go to https://developer.apple.com/download/more/ , log in, look for "Command Line Tools (macOS 10.14) for Xcode 10.x" (where 10.x is your Xcode version), download and install it. After installing that you'll find the pkg file in the aforementioned directory. Double-click on it to install.

Simply run
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
and there you go!

If you couldn't find /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg in your system like me, go to https://developer.apple.com/download/more/ , log in, look for "Command Line Tools (macOS 10.14) for Xcode 10.x" (where 10.x is your Xcode version), download and install it. After installing that you'll find the pkg file in the aforementioned directory. Double-click on it to install.

Worked for me !
Thank you very much for that comment !!!


[FEATURE] enable codecov and add unit tests

Is your feature request related to a problem? Please describe.
We need to enable codecov and improve unit tests for the runtime，as we did in eunomia-bpf project.

Does it means we need write a unit test for rust version? or just write a ci test workflow for cpp version?

maybe a set of tests compiled to wasm, and test both rust and cpp
Version?

Ok, I'll finish it later.

You may also need to add tests for rust runtime in runtime/wasm-bpf-rs.


Screenshot Submitted

Hello @Molza01 , @DevROHIT11  these are my teammates for hack web3 conf they are also part of gssoc'24 extd and we are working as a team !! so please accept their request also

I have updated it  in the new PR
On Thu, Nov 7, 2024 at 9:13 PM Sayyad Aslam @.***>
wrote:

@.**** requested changes on this pull request.
PLease add the screenshot only in the submit folder. you have added
outside too.
—
Reply to this email directly, view it on GitHub
https://github.com/GSSoC24/Hack-Web3Conf/pull/438#pullrequestreview-2421367822,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BHRT3VVUNVEYW6HDUM4HYS3Z7ODCZAVCNFSM6AAAAABRLOQF46VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMRRGM3DOOBSGI
.
You are receiving this because you authored the thread.Message ID:
@.***>


Introduce IO rate limiter and rate limited file abstraction

Signed-off-by: tabokie<EMAIL_ADDRESS>
What problem does this PR solve?
Unable to prioritized IO requests produced from different workflows. Unable to explicitly limit IO usage.
What is changed and how it works?
What's Changed:
Rate limiter works as a central control to manage IO flow. IO requests issued to InstrumentedFile will be regulated by a global IO limiter. This PR introduces the related module interfaces.
Followup works include implementing rate limit algorithm, tagging IO issuer, and changing all existing uses of std::fs::File to rate limited file. They are expected to complete within the next month.
Related changes

PR to update pingcap/docs/pingcap/docs-cn:
PR to update pingcap/tidb-ansible:
Need to cherry-pick to the release branch

Check List
Tests

Unit test

Side effects
Release note

No release note

/merge

/merge


How to disable SSLv3, TLS1.0 and TLS1.1 for a service group and vserver

Similar to #64 I'm searching for a way to disable noted protocols for a service group,
has the implementation already been updated or am I just search for the wrong modules?
Best would be if it would be possible to define the list similar to servicemembers or monitor_bindings in citrix_adc_servicegroup, citrix_adc_cs_vserver and citrix_adc_lb_vserver.
The same would also be nice to have for the eccCurve 👌🏻
Thank you for the already quite useful modules!
Cheers, Lukas

@lumarel , can you please help us in understanding what exactly you are trying to achieve and what you are not able to achieve with relevant CLI and ansible playbook examples?

@sumanth-lingappa Thank you for the reply!
So it's basically this here:
    - name: Server config
      citrix.adc.citrix_adc_server:
        nitro_user: "{{ netscaler_user }}"
        nitro_pass: "{{ netscaler_pass }}"
        nsip: "{{ netscaler_fqdn }}"
        name: "{{ item.name }}"
        ipaddress: "{{ item.ip }}"
      with_items:
        - name: server01.example.com
          ip: <IP_ADDRESS>

    - name: Servicegroup config SSL
      citrix.adc.citrix_adc_servicegroup:
        nitro_user: "{{ netscaler_user }}"
        nitro_pass: "{{ netscaler_pass }}"
        nsip: "{{ netscaler_fqdn }}"
        servicegroupname: SG_example.com
        servicetype: SSL
        cip: enabled
        cipheader: X-Forwarded-For
        cka: false
        clttimeout: 180
        cmp: true
        maxclient: 0
        maxreq: 0
        svrtimeout: 360
        tcpb: false
        tcpprofilename: nstcp_default_tcp_lan
        useproxyport: true
        usip: false
        servicemembers:
          mode: exact
          attributes:
            - servername: server01.example.com
              port: 443
        monitor_bindings:
          mode: exact
          attributes:
            - mon_1

    - name: Disable SSL and TLS for Servicegroup
      citrix.adc.citrix_adc_nitro_request:
        nitro_user: "{{ netscaler_user }}"
        nitro_pass: "{{ netscaler_pass }}"
        nsip: "{{ netscaler_fqdn }}"
        operation: update
        resource: sslservicegroup
        name: SG_example.com
        attributes:
          servicegroupname: SG_example.com
          ssl3: "DISABLED"
          tls1: "DISABLED"
          tls11: "DISABLED"

    - name: vServer config SSL
      citrix.adc.citrix_adc_cs_vserver:
        nitro_user: "{{ netscaler_user }}"
        nitro_pass: "{{ netscaler_pass }}"
        nsip: "{{ netscaler_fqdn }}"
        name: example.com
        servicetype: SSL
        ipv46: <IP_ADDRESS>
        port: 443
        clttimeout: 180
        servicegroupbindings:
          - servicegroupname: SG_example.com
        ssl_certkey: Cert_example.com

    - name: Update eccCurve for vServer
      citrix.adc.citrix_adc_nitro_request:
        nitro_user: "{{ netscaler_user }}"
        nitro_pass: "{{ netscaler_pass }}"
        nsip: "{{ netscaler_fqdn }}"
        operation: add
        resource: sslvserver_ecccurve_binding
        name: example.com
        attributes:
          vservername: example.com
          ecccurvename: "{{ item }}"
      with_items:
        - P_384
        - P_521

As you can see we want to create a vserver (in this case now a content switching vserver, as this was the first example that came across my way, but also needed for the lb vserver), which has only enabled the more modern SSL protocols and only has enabled specific ciphers.
As far as I could see this is only possible with the nitro request module right now, but as far as I understood it, that's comparable to the command module, so just executes something, but is not state-based. So, makes sure that only the listed protocols or ciphers are enabled.
It could be that I overlooked this somewhere, so if also a link to the docs or the code would be great 🙂
Thanks!

I know it's a very late reply :-)
Hello @lumarel,
We have migrated to a new netscaler.adc ansible collection.
Your question can be handled using the below module.
https://netscaler.github.io/ansible-collection-netscaleradc/collections/netscaler/adc/sslvserver_ecccurve_binding_module.html#ansible-collections-netscaler-adc-sslvserver-ecccurve-binding-module
Please let me know if you need further assistance.

closing this for now. Please re-open/create a new issue if you need any help

@sumanth-lingappa Sorry for the late reply as well,
only had time to update our deployments now.
But yeah easily said, the new netscaler.adc modules are a blessing, everything I needed so far is available (except a way to detect the cluster primary, aka _info modules, but the workaround in #296 made that no issue)
Some of the modules might need an example (i.e. how to correctly use servicegroupbindings for lbvserver), but the variable docs were mostly enough to find the correct way in the end.
Thank you so much, it's amazing how well this collection is able to used now! 😃


adding /__admin/stop endpoint for httpserver

#1571
Adding endpoint to shutdown the server.

Relevant Issues : #1571 Adding endpoint to shutdown the server.
Relevant PRs :
Type of change :

[ ] Bug fix for existing feature

@ptrthomas - let me know if this looks ok. I added the functionality to com.intuit.karate.http.HttpServer. also we are not checking for METHOD, we can enforce POST only. Http Response is 202 ACCEPTED vs 200. Thank you.