Provide a way to consume locales from outside the filesystem

Is your feature request related to a problem? Please describe.
At the company I'm working for, we use next.js for the new front-end we are building, and we are considering to use this package to handle i18n strings management.
I understand that for the vast majority of applications it is fine to load i18n strings from the filesystem and have them stored in json files together with code, I think it makes a lot of sense.
However, to comply with our specific use case, we are not allowed to use this approach, since our translations are stored in a database and we are forced to consume them through an API. And of course we can create a server worker which can generate those jsons from another source and keep them in sync, but I think that it should be easier than this...
Describe the solution you'd like
I don't know exactly which would be the better way to do it, but I think it would be nice to have a sort of "localeLoader" which would be a function responsible to load the strings (from the filesystem or from another place).
So thinking about the API interface, instead of doing this:
const NextI18NextInstance = new NextI18Next({
  defaultLanguage: 'en',
  otherLanguages: ['de'],
  localePath: 'static/locales',
  localeStructure: '{{lng}}/{{ns}}',
  localeSubpaths: false
})

It could be something like this:
const NextI18NextInstance = new NextI18Next({
  defaultLanguage: 'en',
  otherLanguages: ['de'],
  localeLoader: fileSystemLoader({
    path: 'static/locales',
    structure: '{{lng}}/{{ns}}',
    subpaths: false
  })
})

This approach would allow us to write our own "loacaleLoader" which can (for example) request the data to an API,  DB, GraphQL or anything else...

This question was raised in a previous issue, but I cannot seem to find it now.
 It's poor design, in my opinion. If your locales live externally and are served by an API, you should add a build step that compiles the resources from your remote to the local filesystem. Then you can trigger a rebuild/deployment on your app whenever translations change (via a webhook, for example).
Otherwise: (1) you're going to be hitting a service over and over when the content presumably has not changed (in most cases), and (2) you have no control over when localisation changes go live, and lose the concept of versioning.
If you really want this functionality, I would be open to any sensible PRs, but this is not something I am going to spend any of my own time working on. In short, fileSystemLoader already exists in that you can just set up a build step on your own.
I am happy to discuss further if you feel it to be necessary.

Hi @isaachinman I see your point, and why you could consider this as a poor design. However, depending on the use case and the product you are building, you might be forced to do that.
To provide more context to the discussion, let's figure out that you have to build a front-end at the top of a CMS, and the users of your product are allowed to edit translations from there, and even add new languages, etc.
In this case, I would say, it is not convenient to trigger a new release of the front-end just to update those translations, even if your build process is fast, it will last a couple of minutes till the user can see that the change has been applied effectively.
It's true that with this approach you don't have control over the localization changes, but it can happen that you don't want to. In our case localization is part of the content we serve, not part of the product itself.
Also, you can avoid server stress by caching (which can expire when some translation change), so it is not necessary to hit a service over and over.
I opened the issue to raise my proposal and hear your feedback about it, but as a starting point to discuss if it is worth it or not to implement this feature and agree with you about how to do it.
Of course if we arrive to an agreement and you see this as a valuable change, we will contribute an make a PR to provide this functionality. 😉

In this case, I would say, it is not convenient to trigger a new release of the front-end just to update those translations, even if your build process is fast

Your build process would be:

Check if git head has changed
If so, perform full build
If not, refetch translations and restart Node process

This would make the build process just as long as it takes to get content from your API and rollover the server.
Translations are definitely something which should be "deployed", in my opinion. If you require some sort of live view or instantaneous feedback, you'd need to mock that via some sort of live editor (lots of products already exist).
The solution you are suggesting just gives me a general bad feeling - hard to put into words. It feels inherently flakey and prone to failure. Moreover, I'm not sure if i18next even has the concept of fetching translations at runtime.
For what it's worth, you can probably already achieve what you want here by adding some manual work into getInitialProps: call your API, then add the response into the i18n instance by calling addResourceBundle.

Okay, thanks for the quick response, I'll take my time to consider how we will solve this and comment here whatever we decide (to help with future similar issues).

Okay, no problem. Just let me know. As I said I'm happy to discuss this and review/merge any appropriate PRs, I'm just not sure if there's a whole lot to be done in the next-i18next source. There are probably already ways to achieve this on your own, either via addResourceBundle or setting your backend.loadPath to your remote URI.

Another option (though admittedly less ideal than a pure i18next solution) -- assuming that fetching locale files is strictly a server-side issue, then you can do whatever you'd like in your server code.
For example, there's nothing that precludes someone from doing this:
  server.use(nextI18NextMiddleware(nextI18next))
  server.use((req, res, next) => {
    // do what you would like here when req.url startsWith '/static/locales'
    // call next() if you would like to proceed with the next middleware
  })
  // or
  server.get('/static/locales', (req, res) => {
    // do what you would like here and send your result
    // this can include setting cache headers, reaching out to another service (and,
    //    perhaps caching those files locally), etc
  })
  server.get('*', (req, res) => handle(req, res))  // hand the rest over to Next

Less than ideal, as GET /static/locales/... and a subsequent GET to another service is two round-trips, but that could be mitigated by a custom caching strategy or cache headers.  And you have the added flexibility of providing a fallback, should the service you are using be down for some reason.
At any rate, I thought that I would offer it as an option.

Thanks @capellini this looks good, I think that we will end up with something similar 😄

assuming that fetching locale files is strictly a server-side issue

@d-asensio You'd run into problems of fetching namespaces when switching routes on the client.

@capellini That is actually a very simple and elegant solution. I imagine that would solve @d-asensio's case entirely. Nice! We can also refer future users with the same question to this solution.

One thing that occurs to me is that i18next-node-fs-backend is still going to complain about the filesystem not being the right shape. Let me know if you run into any issues there. There might also be issues with SSR and the current preload: allLanguages logic.


README: add license and COPYING file

Purpose of pull request

meta-emlinux is basically under MIT license.
This PR makes the license clear based on the license file and the statement in "warrior" branch.

Thanks!


import { i18n } from "next-i18next"; works on apis/functions, but not when built

🐛 Bug Report
With the work-around from this comment, I'm able to get i18n to work great on the server side when running a Next project with next dev, but after next build, the i18n object coming out of import { i18n } from "next-i18next"; is null.
To Reproduce
A minimal reproducible example.
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from "next";
import { i18n } from "next-i18next";

export default async function handler(
  req: NextApiRequest,
  res: NextApiResponse
) {
  const t = i18n?.isInitialized ? i18n.t : await i18n!.init();
  res.status(200).json({ message: t("api") as string });
}

Expected behavior
I expect the output of t("api") to be the text "api" in my demo code.
{ "message": "api" }

Actual behavior
i18n is null, but ONLY when the project is built, NOT when running via next dev.
Your Environment

runtime version: node 18.x
i18next version: 22.4.15
os: Mac
next-i18next version: 13.2.2

https://github.com/i18next/next-i18next/issues/2079#issuecomment-1386970151
https://github.com/i18next/next-i18next/issues/2136

Neither of these things really address the core issue.  Something is obviously different in the built version of the code.  Why would it work perfectly fine when running in Dev mode, but not when built?

because dev mode runs a webserver so i18next is probably initialized

So as many have asked before, is the an actual reliable way of using this lib on the backend?  Is it even intended to be used that way?  If not, is there an approach outside this lib that works for the backend you're aware of?

fyi: your example works also when built...
I run npm run build and then npm start and it seems to work

alternatively, do something like this:

So that seems to pull in the i18n properly, BUT it's not pulling in the resources.  The result of the t() call just returns the identifier. Again, works in dev, but not after a build.

dev

the same for me ((
it works locally, but not after deploying to Vercel


Remove hardcoded cookbook versions

This reverts the change from chef-bcpc issue 266 which seems to be resolved in the current apt cookbook.
This reverts the change from our initial Chef 11 commit which hard coded chef-client to version 3.0.6
This also updates the list of cookbooks in setup_chef_cookbooks.sh to have each cookbook on its own line to aide in git blame being useful for seeing when things changed per cookbook

Are we going to keep this code after PR #104 ?

No; this code should go away for #104

I'm impatient can we merge this while we wait for PR #104 ?

This will have to be rebased to be merged.


fix: force encoding utf8 on windows systems

On Windows OS default encoding isn't UTF-8 and another encoding is used.
In case of 2 bytes characters (Chinese for example) the open file failed.

Thanks for the contribution, Please do a flake8 linting before sending PR to us 😃


GUI - long device names are not displayed nicely

In the device details page, the name of a device is not displayed in an adequate way for long names.

It looks like this problem has already been solved.

Issue has been fixed.


Fixed StreamURLFetcher

Before no video couldn't be fetched for some reason. Now I used some PyTube functions to bypass age restriction. It might not be that efficient (that's why I didn't push directly to your repo), so I am adding you as reviewer.
Thanks

If it works you're free to merge. 👌


[AutoRelease] t2-containerservice-2024-09-24-06365(can only be merged by SDK owner)

https://github.com/Azure/sdk-release-request/issues/5523
Recording test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=982
BuildTargetingString
azure-mgmt-containerservice
Skip.CreateApiReview

issue link:https://github.com/Azure/sdk-release-request/issues/5523


Unused header cleanup

This PR just removes unused headers, replacing them with different ones where necessary. It also standardizes using  #include <gmock/gmock.h> as opposed to #include "gmock/gmock.h" (both were being used). Each commit is one package for convenience. The code still builds and the same tests seem to be failing as before. I don't notice any improvement in build speed, so this is just a style change.
I used the clangd extension in vscode for this, though had to ignore a select few of its suggestions which caused build failures (particularly with *_impl.hpp files and similar.

Sorry about the force pushes, was rebasing to use the correct signing key.


Search by js size / etc

marginalia gives icons for sites with js and cookies and etc. This would be a cool thing to be able to filter by.

97bd51671350b3cff24e75fc8cf4f79e3f6cd9cd


Add chain deployments and suggestions

Add deployments and links:

Base Goerli
Fantom
Celo

Added to suggestions:

Boba
Aurora

Removed Skale from suggested chains, as I dont think seaport would be compatible there without major changes, mainly due to the inability to use msg.value in contracts.

Codecov Report
Patch and project coverage have no change.

Comparison is base (43d06a1) 100.00% compared to head (1127007) 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #1251     +/-   ##
===========================================
  Coverage   100.00%   100.00%
===========================================
  Files           22         1     -21
  Lines         1307         2   -1305
  Branches       220         0    -220
===========================================
- Hits          1307         2   -1305

Flag
Coverage Δ

foundry
?

production
100.00% <ø> (ø)

reference
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 21 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Added lightningUpdate condition to post install

I missed adding the lightningUpdate condition to the post-install-site-install.yaml file, while I was adding it to post-upgrade-reconfigure.yaml

This makes sense to me :D thanks so much!


[backport/1.25] repo: Dev 1.25.1-dev

Signed-off-by: Ryan Northey<EMAIL_ADDRESS>
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

/retest

requires fix for build image key/s

/retest

/retest

working on this branch is pretty painful - some of the mobile tests have a higher chance of failing than not

@jpsim any ideas what is going on with the swift_test here - i think it cant pass (after 5 attempts) - its not required but would rather not land this if its actually breaking something (which i doubt)

any ideas what is going on with the swift_test here - i think it cant pass (after 5 attempts) - its not required but would rather not land this if its actually breaking something (which i doubt)

We think there are some issues with running these tests on EngFlow RBE, so we made these tests run locally on the GitHub Actions runners in https://github.com/envoyproxy/envoy/pull/25193
So you could pull that in, or you could ignore the failure.


Create function to retrieve Google Fit data and store it in a dataframe for participants 2 to 9

On it :)


Spinel: Test Vectors

The Spinel protocol document needs test vectors for the following scenarios outlined below. This is a subtask of #492. More scenarios will be added as needed.

Packed Unsigned Integer encodings for the following numbers:

0
1
127
128
129
16,383
16,384
16,385
2,000,000
2,097,151

CMD_RESET
CMD_VALUE_IS(PROP_LAST_STATUS) (Software Reset)
CMD_VALUE_INSERT(PROP_MAC_SCAN_BEACON)
CMD_VALUE_IS(PROP_STREAM_NET)
CMD_VALUE_SET(PROP_STREAM_NET)
CMD_VALUE_GET(PROP_THREAD_ON_MESH_NETS)
CMD_VALUE_IS(PROP_THREAD_ON_MESH_NETS)
CMD_VALUE_INSERT(PROP_THREAD_ON_MESH_NETS)
CMD_VALUE_INSERTED(PROP_THREAD_ON_MESH_NETS)
CMD_VALUE_REMOVE(PROP_THREAD_ON_MESH_NETS)
CMD_VALUE_REMOVED(PROP_THREAD_ON_MESH_NETS)

I've already fleshed out most of these in my local copy. The work in progress so far can be seen  here.

Closing. See https://github.com/openthread/spinel-spec


add  the manual step in the  auth documentation

Overview

What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests / types / typos

Description
the documetation was missing the manual involved  with  qwik add auth

Checklist:

[ x] My code follows the developer guidelines of this project
[ x] I have performed a self-review of my own code
[ x] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

Hi thanks @Kampouse  for your help
We need to update the CLI because with the new Auth integration there is no need to change the vite configuration anymore.

@gioboa  Is only to remove the log from the cli? i can do try that  in another pr 👍 !


Discussions: link in email notification about reply has no link to the discussion

The issue was already fixed in Ticket #461


Retake @nx/deno plugin

Do you have plans to update the plugin?
https://www.npmjs.com/package/@nx/deno

This is unfortunate.  Any updates on why?

Deno 2 is out and it's very compatible with node. Is there a plan to re-add Deno as the default support?

I'd love to see Deno support as well, mainly in terms of multiple TypeScript projects and how Deno handles them. Right now, managing TSC with all config files can become complicated really quickly without proper referencing, etc.

@hemedani, Nx strength is in testing & building dozens of packages. It caches the untouched code.
As you said, Deno, also Yarn, pnpm... perfectly work well with monorepos/workspaces. Another thing is to work well at scale.

@guillempuche
Yah, Nx is very good at testing & building and CI/CD process, but Deno natively add lots of thing like:

deno fmt can now format HTML, CSS, and YAML
deno lint now has Node specific rules and quick fixes
deno test now supports running tests written using node:test
deno task can now run package.json scripts
deno doc’s HTML output has improved design and better search
deno compile now supports code signing and icons on Windows
deno serve can run HTTP servers across multiple cores, in parallel
deno init can scaffold now scaffold libraries or servers
deno jupyter now supports outputting images, graphs, and HTML
deno bench supports critical sections for more precise measurements
deno coverage can now output reports in HTML

Also, it's add standard library for many things like:
@std/testing  ==>	                 jest
@std/expect   ==>	                 chai
@std/cli   ==>             	                 minimist
@std/collections      ==>     lodash
@std/fmt 	                   ==>               chalk
@std/net 	             ==>                     get-port
@std/encoding 	   ==>       rfc4648
I think we can do everything nx do with native deno features, especially at scale, because deno is very performant and stable in V2


Android - Chat - In mweb, cursor is visible on @user but not visible in Android

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

Version Number: 9.0.22
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:

Launch app in Android and mweb
Tap on a chat
Enter eg<EMAIL_ADDRESS>Note the message is filled with blue background
Just keep on different characters in email id and note cursor is visible

Expected Result:
Cursor must be visible on @user in both mweb and Android
Actual Result:
In mweb, cursor is visible on @user but not visible in Android
Workaround:
Unknown
Platforms:

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

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

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/user-attachments/assets/34103c18-de1f-4de4-9750-5352ce5877c9
View all open jobs on GitHub

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

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

Looking into this now

Can't reproduce - maybe because i'm using browserstack? I'm OoO tomorrow - but will try again Monday AM

Going to test on physical android device

Okay I was able to reproduce - but I imagine this is pretty low priority since an indicator of where the cursor is (the little green bubble arrow thing 😅) is still visible - and it's only limited to the highlight.
This would also fall under VIP VSB which is on hold so going to close this for now


Device passthrough

Is there any plan to support device passthrough through VFIO?

Supporting VFIO would also require implementing support for PCI and, possibly, ACPI. While I don't have plans to work on it on the short term, I'd be in favor of adding that as an optional feature.

Right, looks like Cloud hypervisor and Firecracker have implemented some of it and I was hoping it could simply be reused through rust-vmm, but it looks like none of it is really there at the moment.

I think there are plans to have virtio-pci support in rust-vmm crates, but in any case, porting that support from CH or Firecracker to libkrun is a relatively easy task, though a bit costly in time.

We don't have plans to support device passthrough in the short term. Closing this one.


[berkeley] Update CI to match master/develop + Rust 1.71.1 + Rust 1.70

Targeting berkeley
Review #1137 first to get rid of sourcegraph. Sourcegraph is removed on master and develop.
On top of #1140

Closing. We will update to 1.72


Add mutex for threadsafe operation

@nahiluhmot @bfulton
Would take care of #248.  Seems there is no thread safe cd in ruby, so a mutex will have to do.  This method should be quick anyway.

Let's not prevent concurrent builds in different dirs; maybe change create_dir_tar_mutex to take directory and return the mutex from a hash keyed by directory?

@bfulton the concern is actually concurrent builds in different dirs.  When we run this command in two threads, for two separate directories, the current working directory of the whole process shifts, and the first thread is now operating on a different directory from intended.

Ah. Maybe we should fork then?

Or, even better, let's create the tar without changing our directory?

@bfulton The problem with not changing our directory is the resulting tar has all the paths relative to our current directory.  If the directory appears below the currently directory, like ../some-other-place, Archive::Tar::Minitar will just fail.

@tlunter but something like this could work:
https://github.com/atoulme/minitar/compare/atoulme:cc7a41e...bfulton:cb3b2a1


feat: add chart drowing via signalr & add ability to cancel running execution

moved the opening SignalR connection, so the connection will be opened only after clicking to "Execute" button and receiving executionId value #45
added Cancel button and localization
added 2 Charts: Total Request Count and Average request performance

P.S. I'm not a big React expert, so improvements and suggestions are welcome.

Thank you very much for your PR.
I like the frontend part of it, but I don't like some parts of your backend implementation.
For example: the solution with background service is not the best. It can be executed using hooks.
I'll merge your PR in a temp branch, refactor a bit and then merge to the main


Tensorflow TensorRT: Could not load dynamic library 'libnvinfer.so.5'

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04.3 LTS
TensorFlow installed from (source or binary): Binary
TensorFlow version (use command below): Tensorflow 2.0
Python version: 3.7.4
CUDA/cuDNN version: 10.0
GPU model and memory: V100

Describe the current behavior
(Note - also posted to NVIDIA developer forums)
I'm following the Tensorflow 2.0 instructions for optimizing a SavedModel file with TensorRT. I have my Tensorflow model saved to models/mymodel. When I run the following:
from tensorflow.python.compiler.tensorrt import trt_convert as trt
converter = trt.TrtGraphConverterV2(input_saved_model_dir='models/mymodel')
converter.convert()
converter.save('models/mymodel_tensorrt')

I get the error (from second line):

2019-11-14 17:29:07.427738: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.5'; dlerror: libnvinfer.so.5: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64/openmpi/lib/:/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/mpi/lib:/lib/:/home/ubuntu/src/cntk/bindings/python/cntk/libs:/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/mpi/lib:/usr/lib64/openmpi/lib/:/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/mpi/lib:/lib/:
2019-11-14 17:29:07.427783: F tensorflow/compiler/tf2tensorrt/stub/nvinfer_stub.cc:49] getInferLibVersion symbol not found.
Aborted (core dumped)

Looking at the thread here, it seems like it may be an issue with needing to set LD_LIBRARY_PATH.
However, when I google setting the LD_LIBRARY_PATH, it seems only necessary when manually installing TensorRT from tar. I have not built/installed TensorRT separately and am just using what's bundled in with Tensorflow 2.0.
Describe the expected behavior
The converter should run and save optimized model to 'models/mymodel_tensorrt'

I solved the problem. While it seems like some portion of tensorrt is bundled in with tensorflow-gpu, there are still installation steps required (see installation under Ubuntu 18.04 (CUDA 10)
I already had CUDA drivers installed (10.1). I ran the following code, without modifying version numbers, and this allowed me to successfully convert the model. I'm not sure if I needed to the "install NVIDIA driver", as I'm assuming that was already installed, as I had already been running tensorflow-gpu without issue.
# Add NVIDIA package repositories
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt-get update

# Install NVIDIA driver
sudo apt-get install --no-install-recommends nvidia-driver-418
# Reboot. Check that GPUs are visible using the command: nvidia-smi

# Install TensorRT. Requires that libcudnn7 is installed above.
sudo apt-get install -y --no-install-recommends libnvinfer5=5.1.5-1+cuda10.0 \
    libnvinfer-dev=5.1.5-1+cuda10.0

It seems tensorrt library import was failing. Install tensorrt
https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html
-> Dowload and install tensorrt compatible with your cuda version.
https://developer.nvidia.com/nvidia-tensorrt-6x-download

sudo apt-get update
sudo apt-get install tensorrt
sudo apt-get install python3-libnvinfer-dev (for python3)
sudo apt-get install uff-converter-tf
dpkg -l | grep TensorRT

If you are getting this error while running in jetson nano,
Hi,
The error indicates that TensorFlow want to link TensorRT 5.0 library but your device already upgrades to 6.0.
Suppose you are using JetPack 4.3, so you need to update the TensorFlow link into v43.
We provide two TensorFlow version for JetPack 4.3 user now.
TensorFlow 2.0
$ sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v43 tensorflow-gpu
TensorFlow 1.15
pip install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v43 tensorflow-gpu==1.15.0+nv19.12

installing tensorflow-cpu solved the issue for me

For my case, I believe it means that you have the wrong version of library. libnvinfer.so.6 is located at 'TensorRT-*/lib' and the number 6 means tensorFlow is looking for the libvinfer of TensorRT6. So if it's "could not load dynamic library libnvinfer.so.5", it means that you need TensorRT 5 to run the code.
Same as above, if it is showing Could not load dynamic library 'libcudart.so.10.0', you need the library in cuda 10.0 to run the code.
So updating your tensorrt/Cuda/Cudnn to match your tensorflow version would help. Note that your tensorrt/cuda/cudnn version should also match each other.

Tensorflow has handled this in their installation guide


Composer

Hi,
could you make this repository usable by Composer / Packagist.
See: http://blog.jgrossi.com/2013/creating-your-first-composer-packagist-package/
Thanks in advance
Falko

I dont think I am going to do this. Feel free to create your own package though & I can link in the README


Treat 'visibility' like 'display'

It would be great if we could have a "visibility" option that behaves the same way as Velocity's "display" option - i.e. when set to "visible" it is applied up front, and when set to "hidden" it is applied at the conclusion of the animations.
Also, Velocity is great.

@julianshapiro To confirm adding visibility: visible to a fadeIn animation should change the visibility css attribute to visible before any animation starts allowing me to measure the height of the element? I'm currently seeing the opacity:0 and display:none.

yup, please post a fiddle if you're having issues. would like to see it. ty!


Refine responsive CSS for small window sizes

I have a habit of keeping a chat client up in a separate browser window and keeping a pretty small browser window size.  As an enhancement request--that I'd be glad to work on--I propose altering some of the CSS for these kinds of use cases.  The landing page / room list seems fine, but I think the in-room page might need some tweaking.

Fix: at ~992px width and smaller, messages are cut off horizontally in
 when the
 panel is open.
Change: at 767px width (appears to be the bootstrap number value), the left-hand room menu disappears and goes into :hamburger: menu mode.  I like it, but I propose making this occur earlier, maybe at 850px width.  The header also appears and is 43px high; this could be shorter when the browser window size has a small height, say 350px.

Any and all, please chime in with your opinions.  High-5.

@jwasil Is this something that could/should be addressed upstream?

@thollingsheadesri maybe the fix item, yeah. I'll review the contrib guidelines and maybe put something in there.  Good point!


204 response causes wrong data to be undefined

Description
Having a 204 response in combination with a 200 response in the generated type causes the returned data to become undefined

Generated openapi.ts file by openapi-typescript:
export interface operations {
    get_getOrdersByCustomerId: {
        parameters: {
            query?: {
                /** @description Limit the amount of orders returned */
                limit?: number;
                /** @description Offset results */
                offset?: number;
            };
            header?: never;
            path: {
                customerId: string;
            };
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description Returns all orders for a customer */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": components["schemas"]["OrderDTO"][];
                };
            };
            /** @description No orders found for customer */
            204: {
                headers: {
                    [name: string]: unknown;
                };
                content?: never;
            };
        };
    };
}

Reproduction
Have an operation as defined above (with a 200 and a 204 with no content). Then attempt to use the openapi-fetch client for the operation.
Expected result
I expected the type a union of components["schemas"]["OrderDTO"][] | undefined and for me to not have to do a manual type assertion.
export type UseOpenApiFetchHookOptions<
    T extends keyof paths,
    TMethod extends keyof paths[T],
    TOperation extends paths[T][TMethod] = paths[T][TMethod],
> = ParamsOption<TOperation> & RequestBodyOption<TOperation> & {
    // add your custom options here
    reactQuery?: {
        enabled: boolean; // Note: React Query type’s inference is difficult to apply automatically, hence manual option passing here
        // add other React Query options as needed
    };
};

const getCustomerOrders: keyof paths = '/api/v1/customers/{customerId}/orders';
export const customerOrdersOptions = ({ params }: UseOpenApiFetchHookOptions<typeof getCustomerOrders, 'get'>) => queryOptions({
    placeholderData: keepPreviousData,
    queryFn: async ({ signal }) => {
        const { data, response } = await client.GET('/api/v1/customers/{customerId}/orders', {
            params,
            parseAs: 'json',
            signal,
        });

        if (!response.ok) {
            throw 'error';
        }

        if (response.status === 204) { // Unrelated, Fix for 204's returning an empty object {}
            return null;
        }

        return data as unknown as Array<components['schemas']['OrderDTO']>; // Assertion should not be needed here
    },
    queryKey: [
        getCustomerOrders,
        params,
    ],
});

Checklist

[ ] I’m willing to open a PR (see CONTRIBUTING.md)

Came here to report similar issue. I noticed this started showing when upgrading openapi-fetch to 0.10.0 or higher (latest 0.12.x also affected).

Hi, I have a similar problem
generated schema.d.ts:
export interface operations {
    ...
    deleteLoadBalancer: {
        parameters: { ... };
        requestBody?: never;
        responses: {
            /** @description OK */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content?: never;
            };
        };
    };
    ...
}

calling api:
const { data } = await client.DELETE('/load-balancers/{name}', {
    params: {
        header: { correlationId: generateCorrelationId() },
        path: { name: loadBalancerName },
        query: { projectId },
    },
    // parseAs: 'text',
});

throws error:
SyntaxError: Unexpected end of JSON input
    at u (index.js:164:44)

which is in this part of library:
// parse response (falling back to .text() when necessary)
if (response.ok) {
  // if "stream", skip parsing entirely
  if (parseAs === "stream") {
    return { data: response.body, response };
  }
  return { data: await response[parseAs](), response };      // line 164
}

Calling the API with parseAs: 'text', solves the error but I don't know whether it is the correct solution
I feel like this should have been caught by this:
// handle empty content
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
  return response.ok ? { data: undefined, response } : { error: undefined, response };
}

but this API doesn't return Content-Length header nor have 204 status


Switch submariner channel to stable-0.18

Switch submariner channel to stable-0.18

/cherry-pick release-2.11

@MaxBab main is synced with release-2.11, a cherry-pick isn’t necessary.
/lgtm
/cc @tpantelis

/approve

/lgtm


Add Biodiversity Heritage Library Flickr collection

Sorry - only supposed to submit one at a time - my bad!

Link to Biodiversity Heritage Library Flickr collection.
Link to Pathlove icons.

Also stripped some trailing whitespaces.

Any more I need to do on this one?


Screenshot for your readme?

Hi!
You've got something so many Python programs don't have .... a graphical user interface!  Nothing grabs a repo's visitor's attention like a picture.  Posting a screenshot of your GUI would be GREAT to see!  I wanna know what it looks like and I'm sure others would enjoy it too.
They're super-easy to add.  I've got a video posted about how to do it using GitHub Issues if you're stumped.
Thank you very much for the kind mention in your readme.  Really appreciated!

added! thanks for the feedback


Track replication state for blob store

Description
Mobile devices only synchronize preview and thumbnail images, not the originals. A user needs to know when this synchronization has completed:

When has "my" device downloaded all the blobs I want
When has the "other" device downloaded from me all the blobs that they want

For https://github.com/digidem/mapeo-core-next/pull/60 we consider "complete" when everything that a peer has is downloaded, but this is not the case with these blobs which we are sparse syncing.
Tasks

[ ] Implement a progress state for the blob store

adding some additional context based on Gregor's ramblings:

With hypercore, we know the bitfield state for each connected peer (e.g. which blocks they have downloaded). For the other hypercores in Mapeo Core, we know that the eventual state that each connected peer is aiming for is "having the same blocks as you". However, with the blob store cores, because we only sync a subset of images (e.g. only previews and thumbnails), we don't know what the eventual bitfield state that each connected peer is "aiming for" (e.g. which blocks they want in order to get the thumbnails). One solution will be to read our own hyperdrive indexes to read the blocks corresponding to, e.g. all the preview images. Then we can use this as the baseline for "completed" sync, and for progress do a diff between the blocks a peer has, and the blocks that a peer needs in order to get e.g. preview images.
How to know what a connected peer wants? Could base on device type, e.g. assume that mobile devices want only previews, but then what if we change our minds? There is no guarantee that will stay the same, especially if multiple versions syncing together. So maybe share in an extension message at start of sync: "Hey, I'm after ____ images"

Postponing this until after we have a sync implementation integrated with the client. We can initially implement full sync of the blob store, which does not require extra work to track replication state.


(feat) make available artifacts path in test request

so they can easily be accessed to create custom test reports

hey @mxschmitt is this plugin open for contributions?

Yes, but we usually start with an issue/feature-request, explain the use-case, elaborate on workarounds etc. Do you mind filing a feature request?

yep, totally ok with it.
how can I open it? creating a new issue?

Yes

Yes

Yes

here it is https://github.com/microsoft/playwright-pytest/issues/247


image_picker 0.8.4+4 PlatformException(already_active, Image picker is already active, null, null)

Hi,
I'm getting PlatformException(already_active, Image picker is already active, null, null) on initiating the open camera functionality for the second time.
XFile? image = await _picker.pickImage(source: ImageSource.camera);
FYI, I'm using image_picker 0.8.4+4
I have noticed this is happening on my One Plus 5T mobile running Android 9 and on other few device, this problem is not happening.
This is my SDK flutter doctor -v

HI @nandhakumargdr, Thanks for filing the issue.
There is a similar issue describing this case https://github.com/flutter/flutter/issues/87896, Please follow up there for further updates, Closing this issue as a duplicate. If you disagree feel free to write in the comments and I will reopen it.
Thank you.


ModLunky 2 won't open at all

Ever since update 9.2v for Spelunky 2, Modlunky hasn't been working when I try to open Spelunky 2 with my mods. all that happens is a tab with code(I believe) pops up a Black screen appears, then back to the Modlunky tab.
pls help

Modding is currently broken due to the 1.23.x release. We're working on it but it'll take some time.

Thank you for notifying me quickly. I'm excited for when Modlunky is ready again and thank you for making mod Spelunky 2 easy.


Can you add an option to change the time zone?

You should modify the function 'updateTime ()' and add a new variable in the json.
this.zone = jsonData["timeZone"] /*"Europe/Madrid"*/
var timeZone = new Date().toLocaleString("en-US", {timeZone: zone});
currentDate = new Date(timeZone);

@Walkator I'll take that into consideration. I'm also currently thinking of adding an option to set the preferred language so this will surely go along with that.

Ok, this would be great.

Yeah this ties in with issue #13

@deepjyoti30 dd this get added to manually override the time zone?

@reesericci  Did you check ffe3e6da5c0e78ea7857126d1c9f1ca5ca505d3a
The time zone can be changed from the config.

Added in the last release


Send Unsuccessful:TypeError.

Level 2 was completed, but when selecting the wallet name at the time of restore, only Level 1 was showing up as completed. Still I restored the app on level 1 and the savings account was showing as enabled.I selected personal device to send from savings account and after that I selected checking account (multiple send) and got this error.
But when I tried this flow again then sats went smoothly to particular receipients without any error.

Uable to recreate this issue on dev app v2.0.69(428)


CI and more tests

We can replicate what was done in https://github.com/pygfx/wgpu-py/pull/188 to enable vulkan software rendering on our CI as well. We don't have any tests that use it yet, but that means we can start adding them!

Closing this as we just merged #239

More unit tests would not hurt, but with the example testing we should touch a pretty large part of the codebase indeed :)


Fastnlight: Watch Mamapinto2010(?:@gmail.com)?

Fastnlight requests the watch of the watch_keyword Mamapinto2010(?:@gmail\.com)?. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Mamapinto2010(?:@gmail\.com)? has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


feat(snapshot): testing examples

add testing bash scripts for examples
add src/test.rs which takes snapshots for:

calc & mechanic: succeeded
mlua & api: failed #54

And

fix the mechanic example
add mlua vendored feature  in the absence of Lua

You can use these cmds in examples dir:

cargo test
cargo insta test --review to update all the snapshots (except tagged with #[ignored] ones).
cargo insta test --review -- test_fn_name to update test_fn_name only

Will you consider merging this PR?

Sorry I have yet to review it, will try to look at it this weekend.

I'm gonna close this and put up a new PR to test examples.


Adding GET endpoint for UserEntity

Adresses this JIRA card.

So dismissed updating the last_login with the Get endpoint for this PR since I wasn't sure if by simply hitting the Get endpoint we know that the user login.
I can append another endpoint that specifically addresses this by doing something like getUserForLogin or whatever, and just add the correct timestamp there. Not sure though what the best approach is there though 😅


Update post.html

Add image tags alt + title to the post images
Description

e.g. Fixes #(issue)
Type of change

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

How has this been tested

[x] I have run bash ./tools/test.sh --build (at the root of the project) locally and passed
[x] I have tested this feature in the browser

Test Configuration

Browerser type & version: Safari v14.0.1
Operating system: MacOS Catalina v10.15.7
Bundler version: 2.2.7
Ruby version: 2.5.5p15
Jekyll version: 4.2.0

Checklist

[x] My code follows the Google style guidelines
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] Any dependent changes have been merged and published in downstream modules

You can delete this one, I've made a new pull request containing the both changes as you suggested!

You can delete this one, I've made a new pull request containing the both changes as you suggested!

In fact, you can modify this PR without opening a new one. But, thank you for your PR anyway.

In fact, you can modify this PR without opening a new one. But, thank you for your PR anyway.


Wrong kernels Id for received max privacy transactions on linux

Description
Wrong kernels Id for received max privacy transactions on latest testnet build for linux
Pre-conditions:
There are Wallet A and Wallet B with enough funds.
Steps to reproduce:

From Wallet A sent Max privacy transaction through online address
Wait until transaction will be received in the wallet B
Open transaction details in wallet B

Expected: There is an appropriate kernel Id
Actual:

Attachments

Environment
OS Name: Ubuntu 20.04.1 LTS
OS Type: 64-bit
Gnome version: 3.36.3
Wallet version: 5.1.9763.3213

It doesn't show Kernel_Id at all. Please, fix it

Wallet version: 5.1.9580.3194
EE_RC 5.1

it's ok, incoming max privacy transaction doesn't have the kernel ID


Error extracting data.zip

I am trying to extract the data.zip archive to run the model and it says that the zip is damaged. I tried downloading it multiple times and I always get the same error. Am I the only one with this error?

I uploaded a new data.zip file that I created using a different pogram. Could you try to download the file again and see if it is working now? Here is the new download link: https://doi.org/10.5281/zenodo.8046233

It's working now, thank you =)


Dom example doesn't work : cannot load html-content from http://httpbin.org/html

Hello !
I've just build DOM example (https://github.com/sciter-sdk/rust-sciter/blob/master/examples/dom.rs) and run it, but all i see is blank white window.
I also tried to change from load_file to load_html to load site from memory( i've coppied html-code of site to minimal.htm)  :
let html = include_bytes!("minimal.htm");
frame.load_html(html, Some("example://minimal.htm"));

And it worked fine. So it seems like rust-sciter cannot load internet web page.
Site is available, PC has internet connection. OS : ArchLinux
I also tried to run as root but no success.

So it seems like rust-sciter cannot load internet web page.

Interesting. I'll check on other OS.

So it seems like rust-sciter cannot load internet web page.

Interesting. I'll check on other OS.

I've just found out that rust-sciter doesn't support sciter::request  that used for resource downloading. Maybe this is the reason ?

No, it's for custom requests made by an application.


This is a security research, please do not approve, thank you.  remymz

This is a security research, please do not approve, thank you.  remymz

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


⚠ Adacta-fintech.com has degraded performance

In ea255b1, Adacta-fintech.com (https://www.adacta-fintech.com) experienced degraded performance:

HTTP code: 200
Response time: 1942 ms

Resolved: Adacta-fintech.com performance has improved in 6f2e900 after 10 minutes.


feat(pallet): addition of staking pallet

It is a draft of staking pallet, I am open for any comments and/or hints including "this PR completely sucks" but I would appreciate why and how to move it better forward.
I am aware of the fact that it is not completely but after reading a lot of documentation which even I see that is also not up to date just would be appreciate for a talk about the PR (not finished, yet).
BitCountry uses FRAME2, right?

@justinphamnz Seems that I do not have rights to assign you in Reviewers section (strange) could  you look at the PR and give back with even one sentence?
Thanks!


Review all OpenSAFELY documentation relating to Codespaces

Currently, these are:

the Getting Started guide
the ehrQL tutorial (owned by the RAP team)
the general Codespaces guidance

Tasks
This will require :

Establish standards by which the documentation will be judged

Is all the codespaces related documentation in these three places necessary?
Is all the codespaces related documentation up to date and accurate?
Is all the codespaces related documentation complete?

Assessing the documentation in these three places
Recording where the documentation is not up to standard
Improving the documentation such that it is up to standard

We've run through the Getting Started guide in #4, which has given several suggestions for improving and refining that guide, if we want others to run through it with Codespaces.


mat-checkbox ripple wrong at column break in multicolumn css div

Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-m8iz3f
Steps to reproduce:

Style a div to use columns.
Create enough mat-checkbox to appear in multiple columns.
Click on mat-checkbox before and after column break and see ripple in wrong place.

Expected Behavior
I expected the ripples to be under the checkbox on the mat-checkbox before and after the column break.
Actual Behavior
The ripples are no where near the checkboxes.

Environment

Angular: 8.0.2

CDK/Material: 8.0.1

Browser(s): Google Chrome 74.0.3729.169 (Official Build) (64-bit) for Windows,
Google Chrome | 75.0.3770.90 (Official Build) (64-bit) for Mac OS X

Operating System (e.g. Windows, macOS, Ubuntu): Windows 10, MacOS

@devversion any ideas what's going on?

I tried looking into this, but it looks like column-width behaves odd when absolute positions are used.
This demo shows a similar issue without the ripples: https://stackblitz.com/edit/comp-16339?file=app/checkbox-configurable-example.html.
I don't think there is much we can do. Happy to chat about it more though if you have any trick in mind to make this work reasonably.

Thank you for looking at the issue. I don't have any trick to make it work, so I disabled the ripples.


1560545 Content Update: Update MD5/SHA1 text in .NET docs to recommend SHA256

Addresses several topics in this list: https://github.com/dotnet/docs/issues/12669.
Adding information about SHA256 being recommended over SHA1/MD5.
@thraka for review.

 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.:x: TimShererWithAquent sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Issue 49216: Set JDBC preparedThreshold=0 for PostgreSQL

Rationale
This seeks to address Issue 49216 by setting JDBC parameter preparedThreshold=0 for all PostgreSQL primary database connections. Setting the parameter in this way disables prepared statement caching which is known to cause problems when schema changes occur.
Changes

Attempt to consolidate handling of setting connection properties for DbScope.
Update PostgreSQL dialect to use DbScope to set connection property.
Mimic pattern of retrieving "application name" parameter from a generic dialect for new dialect.getDisablePreparedStatementCachingEntry()

@labkey-nicka I've approved, but you should review my changes. I hope they (along with my comment in the issue) are self-explanatory. Note that since disablePreparedStatementCaching() was super specific to PostgreSQL, I opted to remove the SqlDialect method, loosen some visibility on LabKeyDataSource, and let PG prepare() set the property directly. I also got rid of a sneaky, but unnecessary, connection getting made before the no-other-connections check; not sure why this wasn't causing problems with the check, but it's gone now so I'm not going to worry about it.
If you and TeamCity are satisfied, feel free to merge. Thanks for your help!


Fix bug when using with browserify

I merged it, thanks a lot!

@sebpiq Can you explain why this works? It seems if document is undefined it passes null into the closure so writing to / reading from document.cookie shouldn't work.

yes ... I sent this a while ago.
I assume that I did it because when browserify runs it sees throws an error and exits because document is not defined. The library is obvioulsy to use in the browser so in practice document is always defined, except when browserify runs.
However, I quickly tested to browserify a file with an undefined variable and it works fine without error ... so I am not sure, maybe this is a bug that doesn't exist anymore in current versions ...


Handle basic.cancel frames on the connection

Previously it was not possible to cancel a consumer with basic_cancel,
and attempting to do so would hang the mock server.
Now basic.cancel messages are handled and responded to with
basic.cancelok.  The AmqpConnection._consumers attribute is now a dict
mapping (channel_id, consumer_tag) to each consumer task so they can
be looked up and cancelled.
I tried my best to follow your coding/test styles, but I'm happy to change
whatever.  I have several other incoming fixes for some relatively non-trivial use
cases I've found using amqp-mock on one of my projects; I hope you'll find them
useful.

👍

Thank you!


[Event Request] Codeunit 7301 "Whse. Jnl.-Register Line" - OnInsertWhseEntry

Hi, would it be possible to get an event OnInsertWhseEntry in codeunit 7301 (Whse. Jnl.-Register Line), like this:
local procedure InsertWhseEntry(var WhseEntry: Record "Warehouse Entry")
    var
        ItemTrackingCode: Record "Item Tracking Code";
        ExistingExpDate: Date;
        IsHandled: Boolean;
    begin
        OnInsertWhseEntry(WhseEntry,WhseJnlLine);
        with WhseEntry do begin
            GetItem("Item No.");
            if ItemTrackingCode.Get(Item."Item Tracking Code") then
                if ("Serial No." <> '') and
                   ("Bin Code" <> Location."Adjustment Bin Code") and
                   (Quantity > 0) and
                   ItemTrackingCode."SN Specific Tracking"
                then begin
                    IsHandled := false;
                    OnInsertWhseEntryOnBeforeCheckSerialNo(WhseEntry, IsHandled);
                    if not IsHandled then
                        if WMSMgt.SerialNoOnInventory("Location Code", "Item No.", "Variant Code", "Serial No.") then
                            Error(Text001, "Serial No.");
                end;

            if ItemTrackingCode."Man. Expir. Date Entry Reqd." and ("Entry Type" = "Entry Type"::"Positive Adjmt.")
               and (ItemTrackingCode."Lot Warehouse Tracking" or ItemTrackingCode."SN Warehouse Tracking")
            then begin
                TestField("Expiration Date");
                ItemTrackingMgt.GetWhseExpirationDate("Item No.", "Variant Code", Location, "Lot No.", "Serial No.", ExistingExpDate);
                if (ExistingExpDate <> 0D) and ("Expiration Date" <> ExistingExpDate) then
                    TestField("Expiration Date", ExistingExpDate)
            end;

            OnBeforeInsertWhseEntry(WhseEntry);
            Insert;
            InsertWhseReg("Entry No.");
            UpdateBinEmpty(WhseEntry);
        end;

        OnAfterInsertWhseEntry(WhseEntry);
    end;

[IntegrationEvent(false, false)]
local procedure OnInsertWhseEntry(WarehouseEntry: Record "Warehouse Entry"; WarehouseJournalLine: Record "Warehouse Journal Line")
)
begin
end;

Thanks

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


vext always creates a StreamHandler on interpreter creation

While https://github.com/stuaxo/vext/issues/43 fixed something, I was still getting a StreamHandler simply by starting my interpreter. A long-ish time later I narrowed it down to having the vext library installed.
The behavior appears simply by installing vext:
(logging_3.5.6) Matts-Macbook-Pro:~ mrunchey$ pip list
Package          Version
---------------- -------
pip              19.3.1
ruamel.yaml      0.16.5
ruamel.yaml.clib 0.2.0
setuptools       44.0.0
vext             0.7.3
wheel            0.33.6
(logging_3.5.6) Matts-Macbook-Pro:~ mrunchey$ python
Python 3.5.6 (default, Dec 19 2019, 14:59:39)
[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger().handlers
[<logging.StreamHandler object at 0x10d2f1ef0>]
>>> quit()
(logging_3.5.6) Matts-Macbook-Pro:~ mrunchey$ pip uninstall vext
Uninstalling vext-0.7.3:
  Would remove:
    /Users/mrunchey/logging_3.5.6/bin/vext
    /Users/mrunchey/logging_3.5.6/lib/python3.5/site-packages/vext-0.7.3.dist-info/*
    /Users/mrunchey/logging_3.5.6/lib/python3.5/site-packages/vext/*
    /Users/mrunchey/logging_3.5.6/lib/python3.5/site-packages/vext_importer.pth
Proceed (y/n)? y
  Successfully uninstalled vext-0.7.3
(logging_3.5.6) Matts-Macbook-Pro:~ mrunchey$ python
Python 3.5.6 (default, Dec 19 2019, 14:59:39)
[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger().handlers
[]
>>>

In this particular issue, in gatekeeper/__init.py__, install_importer is calling the root logging library . Since no handlers exist at this time, one must be created, and the default is StreamHandler.
I believe the "proper" fix for this is to instantiate the logger and switch the lines to use the module logger in gatekeeper/__init__.py:
import logging
...<skip a bunch of imports>

logger = logging.getLogger(__name__)

...

def install_importer():
    """
    If in a virtualenv then load spec files to decide which
    modules can be imported from system site-packages and
    install path hook.
    """
    logger.debug('install_importer')
    ...
...

I tested this change locally and it appears to work. There are a few places to change in vext/gatekeeper/__init__.py, but that is the only logging.debug that normally gets called when the interpreter is being started.
Demonstration:
Python 3.5.6 (default, Dec 19 2019, 14:59:39)
[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger().handlers
[]
>>> logging.debug("watch this")
>>> logging.getLogger().handlers
[<logging.StreamHandler object at 0x105979ef0>]

That sounds right to me, if you can verify that locally and submit a patch I'll try and add the fix.
(I'm pretty time starved these days, so that's the quickest way to get this integrated) - then I look into making a release.

Hi @mattrunchey
I've uploaded a new build to the test pypi repo,
Can you verify if it still has the issue, by installing it + retesting ?
$ pip install --index-url https://test.pypi.org/simple/ vext

Seems to be fixed in 0.7.4.

Sorry, I had meant to test this earlier. There is still a strange StreamHandler on initialization when the package is installed on 0.7.4, but it's different than it was before:
(broker3.7) sanctum:~ mrunchey$ pip install --upgrade vext
Collecting vext
  Downloading vext-0.7.4.tar.gz (16 kB)
Collecting ruamel.yaml>=0.11.10
  Downloading ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB)
     |████████████████████████████████| 111 kB 1.7 MB/s
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9"
  Downloading ruamel.yaml.clib-0.2.0-cp37-cp37m-macosx_10_9_x86_64.whl (147 kB)
     |████████████████████████████████| 147 kB 7.2 MB/s
Building wheels for collected packages: vext
  Building wheel for vext (setup.py) ... done
  Created wheel for vext: filename=vext-0.7.4-py3-none-any.whl size=13909 sha256=4a8223e64e389ec1401068e83db2579aadfd39e0fd8affe3b065e81911d97fb9
  Stored in directory: /Users/mrunchey/Library/Caches/pip/wheels/87/59/d2/7388b1dd2ff3dfce88401b3b0f0f80295abc572f452aaf6066
Successfully built vext
Installing collected packages: ruamel.yaml.clib, ruamel.yaml, vext
Successfully installed ruamel.yaml-0.16.10 ruamel.yaml.clib-0.2.0 vext-0.7.4
WARNING: You are using pip version 20.1; however, version 20.2.1 is available.
You should consider upgrading via the '/Users/mrunchey/broker3.7/bin/python3.7 -m pip install --upgrade pip' command.
(broker3.7) sanctum:~ mrunchey$ python
Python 3.7.6 (default, Dec 30 2019, 19:38:26)
[Clang 11.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger().handlers
[<StreamHandler <stderr> (NOTSET)>]
>>> quit()
(broker3.7) sanctum:~ mrunchey$ pip uninstall vext
Found existing installation: vext 0.7.4
Uninstalling vext-0.7.4:
  Would remove:
    /Users/mrunchey/broker3.7/bin/vext
    /Users/mrunchey/broker3.7/lib/python3.7/site-packages/vext-0.7.4.dist-info/*
    /Users/mrunchey/broker3.7/lib/python3.7/site-packages/vext/*
Proceed (y/n)? y
  Successfully uninstalled vext-0.7.4
(broker3.7) sanctum:~ mrunchey$ python
Python 3.7.6 (default, Dec 30 2019, 19:38:26)
[Clang 11.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger().handlers
[]

I ran a second test on my Ubuntu image, and the logger isn't created, so this could be an OSX-specific implementation detail:
mattrunchey@DESKTOP-H7KQMU8:/c/Users/Matt$ python3 -m pip install vext
Collecting vext
  Downloading https://files.pythonhosted.org/packages/17/34/219f5ec0b621a5ff12c4530c2db6668911e35b9b7077a4c44e2e7a57ff9a/vext-0.7.4.tar.gz
Collecting ruamel.yaml>=0.11.10 (from vext)
  Downloading https://files.pythonhosted.org/packages/a6/92/59af3e38227b9cc14520bf1e59516d99ceca53e3b8448094248171e9432b/ruamel.yaml-0.16.10-py2.py3-none-any.whl (111kB)
    100% |████████████████████████████████| 112kB 3.4MB/s
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9" (from ruamel.yaml>=0.11.10->vext)
  Downloading https://files.pythonhosted.org/packages/53/77/4bcd63f362bcb6c8f4f06253c11f9772f64189bf08cf3f40c5ccbda9e561/ruamel.yaml.clib-0.2.0-cp36-cp36m-manylinux1_x86_64.whl (548kB)
    100% |████████████████████████████████| 552kB 3.6MB/s
Building wheels for collected packages: vext
  Running setup.py bdist_wheel for vext ... done
  Stored in directory: /home/mattrunchey/.cache/pip/wheels/22/fc/0a/41615feb6f20ac21c243d9f2613b80524c5830b84c05fedac7
Successfully built vext
Installing collected packages: ruamel.yaml.clib, ruamel.yaml, vext
Successfully installed ruamel.yaml-0.16.10 ruamel.yaml.clib-0.2.0 vext-0.7.4
mattrunchey@DESKTOP-H7KQMU8:/c/Users/Matt$ python3
Python 3.6.9 (default, Nov  7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger().handlers
[]

Ok, I do think that you fixed this and the logger is a weird interaction with vext, or I had some residual installed. I went to a fresh virtual environment on the mac, installed only vext, and there are no loggers:
(broker3.7) sanctum:~ mrunchey$ source ~/test_vext/bin/activate
(test_vext) sanctum:~ mrunchey$ pip install vext
Processing ./Library/Caches/pip/wheels/87/59/d2/7388b1dd2ff3dfce88401b3b0f0f80295abc572f452aaf6066/vext-0.7.4-py3-none-any.whl
Collecting ruamel.yaml>=0.11.10
  Using cached ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB)
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9"
  Using cached ruamel.yaml.clib-0.2.0-cp37-cp37m-macosx_10_9_x86_64.whl (147 kB)
Installing collected packages: ruamel.yaml.clib, ruamel.yaml, vext
Successfully installed ruamel.yaml-0.16.10 ruamel.yaml.clib-0.2.0 vext-0.7.4
(test_vext) sanctum:~ mrunchey$ importpy
(test_vext) sanctum:~ mrunchey$ python
Python 3.7.6 (default, Dec 30 2019, 19:38:26)
[Clang 11.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger().handlers
[]
>>>

Sorry about that!

No problem, I should have written a test for this but was feeling lazy.


Add a config to disable selinux

Resolves: https://github.com/Islandora-CLAW/CLAW/issues/759
If there is a cleaner way to do this, please let me know. I'm sure we could add some selinux config to allow this port but for now it seems easier to just skip it all together.

Sorry this is for Centos only, so you want to pull this PR and run
ISLANDORA_DISTRO="centos/7" vagrant up

You'll still fail but at PHP which is a separate issue 😉


operator project-quay (3.9.0-nightly.20230507)

Add 3.9.0-nightly.20230507 to community operators

/merge possible

/merge possible


toastr[type] is not a function

Hi, I'm trying to call toastr like this:
var showToastr = function (msg, type) {
return toastr[type](msg);
};
var type = 'info';
var message = 'Test';
showToastr(message, type);
and it works but console prints error:
Uncaught TypeError: toastr[type] is not a function
Can you give me an advice how to deal with that? I'd like to avoid any errors in console.

In what order are you loading toastr, and executing this call?

First I'm loading jquery, foundation, toastr and then my app.js. In app.js I have 3 functions:
var showToastr = function (msg, type) {
    return toastr[type](msg);
};
var toastrConfig = function () {
    toastr.options = appOptions.toastr;
};
var showNotifications = function () {
   $('.notification').each(function () {
       var type = $(this).data('type');
       var message = $(this).html();
      showToastr(message, type);
    });
};
Belom I call functions in order:
toastrConfig();
showNotifications();
.notification are returned by backend
and console point error to:
    return toastr[type](msg);

@Rst0000 if you want to avoid errors in console, just use try-catch :D

as a web-developer, you can use developer-mode for any browser (e.g.: dev-tools for chrome)
and better follow next steps to identify your problem: mark line with an error as line for debug (breakpoints) and check value of toastr variable, also you can use console/panels to check соntent of that variable

In my case it happened due to jQuery slim.

@rodrigogs Thank you so much, I had the same problem! You saved me from a minor mental breakdown my friend.

@rodrigogs  Thank you,you the best

Hello guys. So the same happens to me even with jQuery 3.3.1 / toastr 2.1.4
let type = 'info'
let msg = 'message';
toastr[type](msg);

TypeError: toastr[type] is not a function...

Anybody also experiencing this?


Web Config not working anymore

Hello Sir,,
the last update of the code source is not working, i think google made an update? i'm not sure.I did everything correctly but the link doesn't work.
Also before this happened when the link was working, if the website used on the app show ads, those ads of the website do not show, and the sound plays in the background, sometimes with a black screen. But admob ads for the app still work.
But now the app is frozen, no link is working. Can you check, thanks.
Error

Screenshot attached.

thank for your report sir, i will fix this bug as soon as possible, thank you 🙏

sir, can u help me? how to reproduce this issue? is happend on what? release? debug? something else?
@vzmo777

it's on debug mode, i'm not sure if it's also on release cause i didn't
test the release. on Mumu player it's saying the app is not licensed and
does not open.
for the moment the things that i mentioned are the things i detected,
otherwise, is it possible to use chrome engine on it? cause there are a lot
of bugs especially with website ads and it's too slow.
I can share with you a code source I bought from codecanyon that has so
many features, you can merge the code and create something powerful. But to
reskin it it's a bit complicated and takes so much time.
Also the res folder is not well organized. Tell me if you need the code.
Features
APP FEATURE: 1. Splash Screen (Animation). 2. Permission. 3. AdMob,
AdsManager FAN, UnityAds, Start.io, IronSource (Allow you to earn from your
App). 4. Firebase Analytics. 5. Push notifications. 6. High Performance. 7.
Chrome engine. 8. Download manager, and File upload. 9. Blind view on
screen loader. 10.Loading Bar. 11.Pull-to-Refresh. 12.Deep linking.
13.Responsive Design. 14.Geolocation, intents. 15.Image zoom. 16.Local
pages. 17.Offline Mode & Error handling. 18.No coding skills required. 19.
Clean and well documented code.
Le ven. 7 juil. 2023 à 22:53, Faisal Amir @.***> a
écrit :

sir, can u help me? how to reproduce this issue? is happend on what?
release? debug? something else?
@vzmo777 https://github.com/vzmo777
—
Reply to this email directly, view it on GitHub
https://github.com/frogobox/kick-start-android-webview/issues/18#issuecomment-1626219724,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAT5YENBWGUY7NSUW2TIVRLXPCAOBANCNFSM6AAAAAA2CJTIJQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Also, when the external links are open in the app, they remain on the app
and there is no way to return, there is no button.
The ads on the websites as external links must open on an external browser.
and if you can add button back and forward to simplify the navigation.
because the app is stuck in one page, and when we click back button it
exists the app.
I don't know if i'm clear with this, but the navigation is hard without
back button. and external links  and ads on website open in the main screen
on the app, they have to be open externally.
Le ven. 7 juil. 2023 à 23:28, azmo life @.***> a écrit :

it's on debug mode, i'm not sure if it's also on release cause i didn't
test the release. on Mumu player it's saying the app is not licensed and
does not open.
for the moment the things that i mentioned are the things i detected,
otherwise, is it possible to use chrome engine on it? cause there are a lot
of bugs especially with website ads and it's too slow.
I can share with you a code source I bought from codecanyon that has so
many features, you can merge the code and create something powerful. But to
reskin it it's a bit complicated and takes so much time.
Also the res folder is not well organized. Tell me if you need the code.
Features
APP FEATURE: 1. Splash Screen (Animation). 2. Permission. 3. AdMob,
AdsManager FAN, UnityAds, Start.io, IronSource (Allow you to earn from your
App). 4. Firebase Analytics. 5. Push notifications. 6. High Performance. 7.
Chrome engine. 8. Download manager, and File upload. 9. Blind view on
screen loader. 10.Loading Bar. 11.Pull-to-Refresh. 12.Deep linking.
13.Responsive Design. 14.Geolocation, intents. 15.Image zoom. 16.Local
pages. 17.Offline Mode & Error handling. 18.No coding skills required. 19.
Clean and well documented code.
Le ven. 7 juil. 2023 à 22:53, Faisal Amir @.***> a
écrit :

sir, can u help me? how to reproduce this issue? is happend on what?
release? debug? something else?
@vzmo777 https://github.com/vzmo777
—
Reply to this email directly, view it on GitHub
https://github.com/frogobox/kick-start-android-webview/issues/18#issuecomment-1626219724,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAT5YENBWGUY7NSUW2TIVRLXPCAOBANCNFSM6AAAAAA2CJTIJQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

this is a screenshot when a link is open in a website, its an AD, or
external link.
Le sam. 8 juil. 2023 à 02:41, azmo life @.***> a écrit :

Also, when the external links are open in the app, they remain on the app
and there is no way to return, there is no button.
The ads on the websites as external links must open on an external
browser. and if you can add button back and forward to simplify the
navigation. because the app is stuck in one page, and when we click back
button it exists the app.
I don't know if i'm clear with this, but the navigation is hard without
back button. and external links  and ads on website open in the main screen
on the app, they have to be open externally.
Le ven. 7 juil. 2023 à 23:28, azmo life @.***> a écrit :

it's on debug mode, i'm not sure if it's also on release cause i didn't
test the release. on Mumu player it's saying the app is not licensed and
does not open.
for the moment the things that i mentioned are the things i detected,
otherwise, is it possible to use chrome engine on it? cause there are a lot
of bugs especially with website ads and it's too slow.
I can share with you a code source I bought from codecanyon that has so
many features, you can merge the code and create something powerful. But to
reskin it it's a bit complicated and takes so much time.
Also the res folder is not well organized. Tell me if you need the code.
Features
APP FEATURE: 1. Splash Screen (Animation). 2. Permission. 3. AdMob,
AdsManager FAN, UnityAds, Start.io, IronSource (Allow you to earn from your
App). 4. Firebase Analytics. 5. Push notifications. 6. High Performance. 7.
Chrome engine. 8. Download manager, and File upload. 9. Blind view on
screen loader. 10.Loading Bar. 11.Pull-to-Refresh. 12.Deep linking.
13.Responsive Design. 14.Geolocation, intents. 15.Image zoom. 16.Local
pages. 17.Offline Mode & Error handling. 18.No coding skills required. 19.
Clean and well documented code.
Le ven. 7 juil. 2023 à 22:53, Faisal Amir @.***> a
écrit :

sir, can u help me? how to reproduce this issue? is happend on what?
release? debug? something else?
@vzmo777 https://github.com/vzmo777
—
Reply to this email directly, view it on GitHub
https://github.com/frogobox/kick-start-android-webview/issues/18#issuecomment-1626219724,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAT5YENBWGUY7NSUW2TIVRLXPCAOBANCNFSM6AAAAAA2CJTIJQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Remove unnecessary contracts dir when generating wrappers

The contracts dir seems to be necessary to be passed to the gen script:
https://github.com/celestiaorg/quantum-gravity-bridge/blob/ddcb943075c30dfff42380739c00d605488b4dde/Makefile#L18
We could investigate that and remove it if that's the case.

I want to work on this issue

Sure :+1: I'll assign you

I want to work on this issue


Dockerfile: add a dockerfile that install docurium with its dependencies

You can supposedly make this repo into an action like this so let's see how that goes.
Right now you run things like
docker build . -t docurium
docker run -v $SRC:/workspace -it docurium
# cd /workspace && cm doc api.docurium

It currently fails to create the actual commit because it really wants you to have configured your identity in git but this should work as a first step to play around with it.

I've updated the Dockerfile to try to avoid it blowing up in size by using a multistage build and copying over the relevant files into a leaner image.
This still blows up if you don't take extra care to mount your git configuration. I'm not sure what the right thing to do here is to make it easier to user the container. We could mount the different places your user-level configuration might be, or maybe we should accept an environment variable that docurium should use if they exist?

Can you clarify what are you planning to use that Docker build for ? I thought it was about having a demo sandbox, then I wanted some developer one, and now that Dockerfile looks like it should "just work™", but with Linux-specific paths…

I don't know what you mean with Linux-specific paths. This Dockerfile builds a Debian image so any paths are what works there.
My idea for this image is that you can use it to generate documentation either locally or as a CI step or an Action or whatever, without having to figure out what the dependencies are for it or which version of llvm happens to work now.

I missed that builder is an alias for the debian-stretch image, thus got confused by /var/lib. Sorry about that.
I'll have to investigate Actions then, that sounds crazy good. Thus I'm fine to :shipit: if you are, because I've used it already to check how non-macOS reacts.

I still need to figure out what to do about the signature for the commit it crates, but otherwise I'm pretty happy with it. The multi-stage build can be a bit confusing (it's taken me two days to get to this comparatively simple set of rules) but it does mean that we have a ~475MB image instead of the ~1.5GB monstrosity that comes out if you leave everything installed.


Insights API returning error and not returning results

Prerequisites:
Published Store App with acquisitions and crashes.
Query:
https://manage.devcenter.microsoft.com/v1.0/my/analytics/insights
Returns error:
{
"error": "Object reference not set to an instance of an object."
}
Expected output:
Insights data
Workaround: Specify at least one dataType. For example: https://manage.devcenter.microsoft.com/v1.0/my/analytics/insights?applicationID=9MZJNFFBGM33&filter=dataType eq 'usage' or dataType eq 'health' or dataType eq 'acquisition'
The above request does not return the error.
If 'dataType' is required, it should be indicated as such in the documentation. (Doc indicate all parameters are not required.)
Also, Shouldn't the app id be required since 'Insights' are app and not account specific?

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

ID: 40a03102-3ed7-453d-883d-6a7214f1db1d
Version Independent ID: b2629404-ca53-3bb9-85aa-85694c430068
Content: Get insights data - UWP applications
Content Source: windows-apps-src/monetize/get-insights-data-for-your-app.md
Product: uwp
Technology: publish
GitHub Login: @hickeys
Microsoft Alias: hickeys

We are changing the way we track issues filed from our documentation pages: please see this blog post for more details. The Microsoft Store documentation has been updated several times since your issue was reported, and there's a good chance your problem has been addressed. Right now, this issue is being closed but if you feel it is still valid and has not been addressed, please re-open it with any more available information. Please note that if you question is more general and not related to documentation, Microsoft Q&A is a great way to get questions answered.


Carry #15975 - Add extra fields based on label and env for gelf/fluentd/json-file/journald log drivers

Carry and Closes #15975, adding docs.
Fix #15816.
🐙

This adds container env and labels to log context, and use the data in gelf and fluentd log driver to expose more logging data.
Usage:

gelf: --log-opt gelf-labels=label1,label2 --log-opt gelf-env=env1,env2
fluentd: --log-opt fluentd-labels=label1,label2 --log-opt fluentd-env=env1,env2

The above instructions add label1, label2, env1, env2 key-value pair to log.

🐸
Putting this in docs-review and milestone 1.9.0 as the previous one :wink:.
/ping @thaJeztah @moxiegirl

Maybe we can also squash then @vdemeester :innocent:

@moxiegirl @vdemeester is there agreement here or still debate?

@moxiegirl Updated :

Updated the content with yours and removed the duplication of text.
Kept the --log-opt on the other one that supports it to be consistent
Add a smal sentence/example on the gelf one (because the way it's represented is different from json-file.
Update journald.md and fluentd.md as those are specific documentation for these 2 logging drivers and are detailled there (I missed that at first).

@tiborvass not really far from agreement, pretty sure we can make it for 1.9.0 (and it would be so cool :). :innocent: :baby_chick:

Thanks @vdemeester LGTM.

LGTM, thanks Europe! :D

Thanks all for carrying this :heart: :fireworks: !

Imho it not safe to expose env as usually it contains passwords. imho env is the same thing as configuration file mounted into container, so exposing it to log redundant.
for Labels :+1:

/ping @albers @sdurrheimer I did not update the completion :sweat:.
In summary, new options are label and env for --log-opt and it's available for the following logging-driver : json-file, journald, fluentd and gelf.

@KostyaSha It will only expose envs and labels that are specified in log-opt labels=…, not all of them :wink:.

Bash completion is added in #17306.

I will do the same for Zsh in the same time I will add completion for log options.

It's my understanding that log-opt labels should be available in the container json-file log, and that this was merged in 1.9.0?
I'm not seeing my container labels in the log file it self, but perhaps I'm doing this wrong?
$ (docker version && docker-machine ssh default "sudo -i /bin/sh -c 'cat /var/lib/docker/containers/$(docker run -d --log-opt labels=foobar busybox echo testing)/*.log'" 2>&1) | perl -anE 's/^/    /;print'
Client:
 Version:      1.8.2
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   0a8c2e3
 Built:        Thu Sep 10 19:10:10 UTC 2015
 OS/Arch:      darwin/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 17:56:04 UTC 2015
 OS/Arch:      linux/amd64
Boot2Docker version 1.9.1, build master : cef800b - Fri Nov 20 19:33:59 UTC 2015
Docker version 1.9.1, build a34a1d5
{"log":"testing\n","stream":"stdout","time":"2015-12-17T21:30:47.982731443Z"}

I was expecting a label field of some sort in the JSON log file, is this not a correct assumption?

@jmmills your container needs to have a foobar label for --log-opt labels=foobar to work

Sorry, but is this working as advertised?
https://docs.docker.com/engine/admin/logging/overview/
Reading this from the very top:

The labels and env options add additional attributes for use with logging drivers that accept them. Each option takes a comma-separated list of keys. If there is collision between label and env keys, the value of the env takes precedence.
To use attributes, specify them when you start the Docker daemon.
docker daemon --log-driver=json-file --log-opt labels=foo --log-opt env=foo,fizz
Then, run a container and specify values for the labels or env. For example, you might use this:
docker run --label foo=bar -e fizz=buzz -d -P training/webapp python app.py
This adds additional fields to the log depending on the driver, e.g. for json-file that looks like:
"attrs":{"fizz":"buzz","foo":"bar"}

And this further down in the GELF section:

The labels and env options are supported by the gelf logging driver. It adds additional key on the extra fields, prefixed by an underscore (_).
// […]
"_foo": "bar",
"_fizz": "buzz",
// […]

I was quite certain, this should be working:
docker daemon --log-driver=gelf --log-opt labels=testing,moretesting
version: '2'

services:

  logging-test:
    image: hello-world
    labels:
      testing: yesplease
      moretesting: givemelabels
    logging:
      driver: gelf
      options:
        gelf-address: udp://localhost:12201

Logstash is receiving the output just fine, but those labels are not appended to the logs as extra fields. What am I missing here?

@uschtwill Late but maybe it helps someone else:
services.logging-test.logging.options.labels: 'testing,moretesting'

You have to tell which labels are exposed to this feature. Imagine it exposing all available labels automatically.

Thanks @timo-klarshift, better late than never. ;)


Application resources

All files (resources) from folder applicationName/resources/ will be loaded into memory and will be reloaded on changes on disk

All file types will be loaded as:

string: expensions: txt, htm, html
parsed JSTP data structure: *.jstp
Buffer: any other extension

Resources will be accessible by: application.resources[fileName]
Subfilders will be loaded recursive but accessible in plain hash application.resources

ping @tshemsedinov.


fix issue 11703, Typedef properties should not be of the original type

This PR changes the type of the built-in properties (.min, .max, etc) of the basic types when they are used to make a TypeDef instance or alias.
In the current state, the type definition can be broken in any expression that would extract the type using a property, eg:
typeof(T.max) a;

even if very unlikely to ever happen.

oooh ahhh, codecov seems to be very smart with CTFE functions !

Also, why use a mixin when you could manually define all of the functions? This would make compiling this code way faster.

Ok, done. About the enhancement request itself, isn't it a bit excessive ?

About the enhancement request itself, isn't it a bit excessive

Maybe.
But because it's a bug it needs fixing.

Auto-merge toggled on

About the enhancement request itself, isn't it a bit excessive

Maybe.


Highlights when doing search and replace are not working

Search and replace features are not highlighting as they are suppose to.
For example, in the below screenshot I am searching for plugins_lazy, and replacing it with Something, but you'll notice that the highlights are not showing up.

I am using the gruvbox-material colorsheme and have termguicolors set.

This is help wanted. I sent a PR to fix ocassional crashes on the hl function. Seems like that function need some attention.

It's more like my commit problem. If u load highlight after plugin. It won't highlight. Will try something.


Pin markupsafe version

https://github.com/pallets/markupsafe/issues/286
>>> import jinja2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/jinja2/__init__.py", line 12, in <module>
    from .environment import Environment
  File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 25, in <module>
    from .defaults import BLOCK_END_STRING
  File "/usr/local/lib/python3.9/site-packages/jinja2/defaults.py", line 3, in <module>
    from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File "/usr/local/lib/python3.9/site-packages/jinja2/filters.py", line 13, in <module>
    from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.9/site-packages/markupsafe/__init__.py)

@drnextgis Thanks for the PR, I hope you didn't lose too much time on this issue (it took us couple hours early this week 😓 )
I think a better fix will be to pin jinja2>=3.0,<4.0 which should be allowed by other package. In TiTiler as in fastapi we require "jinja2 >=2.11.2,<4.0.0" which will usually mean user will get the latest 3.0.
https://github.com/tiangolo/fastapi/blob/master/pyproject.toml#L89
https://github.com/developmentseed/titiler/pull/436/files#diff-ef5efd645d0059aab13ef237a56af70342972339573c2411199637a1b9a30354R11


Magma - server console floods with errors after a player joins

Info
Please provide the following information:

BkCommonLib Version (/train version): - BKCommonLib-1.16.2-v1-SNAPSHOT.jar - Build #877 (Wed Aug 19 21:10:21 UTC 2020);
TrainCarts Version (/train version): TrainCarts-1.16.1-v2-SNAPSHOT.jar - Build #698 (Sun Jul 26 22:55:12 UTC 2020);
Server Type and Version (/version): Magma Dev HEAD-e458366 (Forge/Paper hybrid for 1.12);

Bug
Description
After testing my modpack with Magma 1.12 and it didnt give me any errors or unintended behavior, i tried to test BKCommonLib and TrainCarts with the stack.
On placing BKCommonLib on plugins and running the server (without changing any Bukkit/Spigot-specific setting - aka leaving all .ymls on server root as default) i got some warnings for BKCL at start. But bergerkiller just said it could be safely ignored, and after the warnings BkCommonLib seems to be loaded correctly.

First log

After the server finished loading, i tried to join the world and when i did it the console began to flood exponentially with errors, and although i was able to play seemingly normally, when i tried to make a basic train nothing happened. The plugin seems to not work correctly.

Partial log right after joining (and not messing with minecarts)
Log when trying to make a train

I'm posting bits of the log file because it got an whooping 118mb of size, and i can share the whole only if i upload via some cloud or WeTransfer.
Expected behaviour
Abeit some small errors in the console like bergerkiller was expecting, the plugin should work fine
Actual behaviour
Not only it doesnt work, the log size scalated in size to ~100mb in circa 5 minutes of gameplay, with a single player connected.
Steps to reproduce

Install the Magma release "Dev HEAD-e458366" (available on its github);
Install some mods, possibly GalacticCraft, CC:Tweaked, FutureMC or Quark (the three most complex on my modpack);
After a run only with mods install both BKCommonLib and TrainCarts, run again the server (leaving Magma's settings for Paper side as default) and try to join it.

Additional Information
If the devs have interest i can send privately my profile (aka modpack) for further testing.
Client-side i'm currently using Forge 2854 (which i believe is the same version Magma uses).

Sorry for late reply, know that I acknowledge these issues and will look at them after I've finished working out some problems in MyWorlds' portal/teleportation system.

I failed to get Magma to boot with some of the mods in your suggestion. I tried galacticraft, since its a pretty large modpack, but it errors out on NoSuchField REGISTRY. Im probably using the wrong version/download?
Are mods required to run into these errors?

I can send my whole profile folder privately (~150 MB) if you wish; my discord user is vico#9414.

I've run your modpack and now after several fixes all errors appear to be resolved. Have a try.
https://ci.mg-dev.eu/job/BKCommonLib/890/

Thank you so much!


Filter cannot find symbol: variable filter

Sorry maybe this issue must be reported here: https://github.com/jhipster/generator-jhipster/issues/1854

We had a issue like this, see #40. Now it should work.
On what JHipster-UML and JHipster version are you on? Try to update to the latest.
I am closing it for now, tell us if everything works ok.

This is a bug in jhipster generator that will be fixed next release. It occurs when you have an Entity with two one to one relationships where one is owner and the another one is not. See generator-jhipster #1854 how to fix this problem in the code.

@alfredorueda Thanks for reporting it in JHipster-UML! This can be quite helpful for people having the same issue and thinking of getting help here.


⚠ Bofrost.es has degraded performance

In 1f8da3a, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1453 ms

Resolved: Bofrost.es performance has improved in 9c33c52 after 6 minutes.


Wrong link in wiki

The link
https://www.trustwave.com/2008/07/three-modsecurity-rule-language-annoyances.html/
on the wiki page
https://www.trustwave.com/2008/07/three-modsecurity-rule-language-annoyances.html/
is not correct anymore and returns a 404. This should be the updated version
https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/three-modsecurity-rule-language-annoyances/

Changed.


Will this work with Flint #18?

As I see it, it should work with any PoD patches, including future ones. It's just stupidly simple. It won't hide any new added item types, ever.


:pencil: Applied isort and black on code

This pull request is associated to issue https://github.com/sebo-b/warp/issues/20
Modifications were automatically applied with the following commands.
Cleanup on import is not over, it still requires manual cleanup, but @sebo-b you can have a look.
The line length chosen as 100 characters can be updated
% isort --version
             _                 _
            (_) ___  ___  _ __| |_
            | |/ _/ / _ \/ '__  _/
            | |\__ \/\_\/| |  | |_
            |_|\___/\___/\_/   \_/

  isort your imports, so you don't have to.

                 I have also:

used relative import for warp, with . and ..
removed * imports to give better hints of what we use in code.

Here are the commands used:
isort --profile black -l 100 warp
black -l 100 warp

@sebo-b, can you have a look at it?

I will apply isort by myself, but for now I will skip black (even if 90% of lines look better)

can you please create a new pull request with fixes for CI - I have never had time to fix it :)


[FEATURE] Multi Cluster: allow to use multiple static inventories

This feature allow you to have multiple inventories (only static for now) by defining the env var INVENTORY_TO_USE.

Ok, makes sense, thanks! :)
I might remove some of the example from the doc as the INSTALL_ starts to become too big but I do like this improvement!


[BACKLOG-4208] marketplace install/uninstall exceptions (osx classloader)

@rfellows @e-cuellar Similar fix as Rob had to make for OSX awhile back for classloader issues.


#2 - API slices moved

Part of #2
I've copied API slices and interfaces from Artipie, set up maven project and added github actions.

@olegmoz could you please check rights for this repository? Now I can merge PRs without approval.

@olenagerasimova I think I've fixed permissions, but actions are not running here for some reason

@olenagerasimova it seems that the reason was missing master branch, nowdays GitHub creates main branch by default instead. I've created master branch and deleted main, please try to re-create the PR


[connectivity]Update main.dart

Update main.dart and removed unwanted type mentioned  for  StreamSubscription due to which example wasnot working.

@googlebot I signed it!

@googlebot I signed it!

@mrinaljain this is the null-safe version of the plugin, so late is correct here. Please file a bug describing the issue you are attempting to solve, and we will get back to it when we have the bandwidth.

@mrinaljain this is the null-safe version of the plugin, so late is correct here. Please file a bug describing the issue you are attempting to solve, and we will get back to it when we have the bandwidth.


Add fastpath support for RLEv2

Submit a draft PR first, to see the CI results.

benchmark has 7% improvement with int32 column type

will this be merged


Implement RPC call for getting ActionInfo

/**

Get action info about certain action denoted by actionID.
@param actionID
@return
@throws IOException
*/
ActionInfo getActionInfo(long actionID) throws IOException;

/**

List info of newly generated actions.
@param maxNumActions max number of action info to return
@return
@throws IOException
*/
List listActionInfoOfLastActions(int maxNumActions)
throws IOException;

This was already done.


Unable to negotiate TLS connection

I'm running osquery and doorman on Ubuntu Trusty and I can't seem to get them to negotiate TLS for enrollment. I have a cert configured and shared across both and the web ui is working fine (and shows a valid, secure connection).
On the client all I see is this:
W0505 17:40:35.113124  2928 tls.cpp:75] Failed enrollment request to https://inventory:5000/enroll (Request error: sslv3 alert handshake failure) retrying...
W0505 17:40:39.123730  2928 tls.cpp:75] Failed enrollment request to https://inventory:5000/enroll (Request error: sslv3 alert handshake failure) retrying...

And the gunicorn debug log shows this:
[2017-05-05 17:40:39 +0000] [407] [DEBUG] Invalid request from ip=<IP_ADDRESS>: [Errno 1] _ssl.c:1429: error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher
[2017-05-05 17:40:39 +0000] [407] [DEBUG] Failed to send error message.

It almost certainly has to do with using Trusty. If I comment out https://github.com/facebook/osquery/blob/7a019d822621d4e72f6fe81c734e034cf3684673/osquery/remote/transports/tls.cpp#L93-L96 and rebuild osquery then it doesn't complain. Now it is complaining that it cannot verify the server certificate. Stuck again.. /tmp/cert.crt is a copy of the .pem cert file from the server but still no go :(

Ok, figured out the issue. Needed to add the root and intermediate certs to the server cert file. Closing now.


Set current repo as Env var

Describe the solution you'd like
Set the current repo as an environment variable that can be accessed while processing. From the logs it looks like this is available at invocation time
[git-xargs] DEBU[2023-03-03T10:38:56-08:00] Created branch                                Branch Name=refs/heads/add-self-hosted Repo=my-cool-repo
[git-xargs] DEBU[2023-03-03T10:38:56-08:00]                                               Repo=my-cool-repo

Describe alternatives you've considered
I could parse this out of the cwd, but that seems brittle since there's a lot of nonces to prevent collisions
/private/var/folders/zc/ysm6hx_n2qng1h09htfdw_8m0000gn/T/git-xargs-my-cool-repo1360847715

I could also invoke a git command and poke at the output, that involves too much shell cruft and line noise.
Additional context
It's possible this is already implemented or could be solved simpler than I envision.

I would like to expand upon @carusooo's idea (hello, fellow Andy 👋) by also exposing --dry-run flag as environment variable, too.  This is essential in order to build safe processes beyond changing content to know whether to affect change or not.
git-xargs --help usage statement

$ git-xargs.exe --help
Usage: git-xargs.exe [--loglevel] [--github-org] [--draft] [--dry-run] [--skip-pull-requests] [--skip-archived-repos]
[--repo] [--repos] [--branch-name] [--base-branch-name] [--commit-message] [--pull-request-title]
[--pull-request-description] [--reviewers] [--team-reviewers] [--seconds-between-prs] [--max-pr-retries]
[--seconds-to-wait-when-rate-limited] [--no-skip-ci] [--keep-cloned-repositories] [--help] command [options] [args]

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.

Commands:

   help, h  Shows a list of commands or help for one command

@carusooo : check out https://github.com/gruntwork-io/git-xargs/pull/127 :fishsticks: