Schema harmonization

This PR aims to enhance the existing repository primitives in Queenbee so they can be used by queenbee-luigi, queenbee-argo, pollination-server and other client libraries to manage, find and use Queenbee packages (ie: recipes and operators).

I have copy/pasted an excerpt from the documentation I have added to explain repository management and package fetching using the CLI. This should help @MingboPeng and @chriswmackey get a better idea of what's going on without reading through the PEP8 hell hole that is my code 😄
Manage Repositories
In order to make use of Queenbee packages on you local machine you must manage
a local index of repositories that you can reference.
The Queenbee CLI can be used to add, list and remove repositories from your local
index. Once a repository has been added to your local index you can search through the available
Queenbee packages (both operators and recipes) and fetch specific package versions for
use in a workflow.
Local Index Management
This sections walks through the basic management commands.

Add a remote repository

> queenbee repo add ladybug https://api.pollination.cloud/registries/ladybug-tools

Add a local repository. We will use the local-queenbee-repo from the previous section

> queenbee repo add local path/to/local-queenbee-repo

View the repositories that are listed in your local index

    > queenbee repo list

    [
      {
        "name": "local-queenbee-repo",
        "description": "A Queenbee package repository",
        "source": "file:C:\path\to\local-queenbee-repo",
        "operator_count": 1,
        "recipe_count": 0
      },
      {
        "name": "ladybug",
        "description": "The official Ladybug-Tools Queenbee repository",
        "source": "https://api.pollination.cloud/registries/ladybug-tools",
        "operator_count": 3,
        "recipe_count": 8
      }
    ]

Search for packages

    > queenbee repo search -s energy-plus

    [
        {
            "name": "honeybee-energy",
            "tag": "0.1.0",
            "app_version": "1.57.1",
            "keywords": [
              "ladybug-tools",
              "honeybee",
              "energy-plus",
              "openstudio",
              "energy"
            ],
            "maintainers": null,
            "home": "https://app.pollination.cloud/operators/ladybug-tools/honeybee-energy",
            "sources": [
              "https://github.com/ladybug-tools/honeybee-energy"
            ],
            "icon": "https://www.ladybug.tools/assets/img/logo.png",
            "deprecated": null,
            "description": "An operator to run energyplus using Honeybee and OpenStudio",
            "url": "operator/honeybee-energy/36dec1c7b2c169f62ae08d64f6cac6de4b3c192320ed10a0f8283a3be03aa4af",
            "created": "2020-06-30T11:07:15.744710",
            "digest": "36dec1c7b2c169f62ae08d64f6cac6de4b3c192320ed10a0f8283a3be03aa4af",
            "slug": "antoine/honeybee-energy",
            "type": "operator"
        },
        {
            "name": "annual-energy-use",
            "tag": "0.2.3",
            "app_version": null,
            "keywords": [
              "ladybug-tools",
              "energy-plus",
              "openstudio",
              "energy",
              "default"
            ],
            "maintainers": [
              {
                "name": "chris",
                "email"<EMAIL_ADDRESS>              }
            ],
            "home": null,
            "sources": null,
            "icon": "https://raw.githubusercontent.com/ladybug-tools/artwork/master/icons_components/honeybee/png/toidf.png",
            "deprecated": null,
            "description": "Run an annual energy simulation with default simulation parameters for reporting energy use",
            "url": "recipe/annual-energy-use/845b304acc1e1c45df6f6122e4b4955b97d610f3dc51b9e677fab664c6e91679",
            "created": "2020-09-02T04:43:10.034394",
            "digest": "845b304acc1e1c45df6f6122e4b4955b97d610f3dc51b9e677fab664c6e91679",
            "slug": "ladybug/annual-energy-use",
            "type": "recipe"
        },
        {
            "name": "energy-plus",
            "tag": "0.1.0",
            "app_version": "9.0.1",
            "keywords": [
                "energyplus"
            ],
            "maintainers": null,
            "home": "https://energyplus.net",
            "sources": [
                "https://github.com/nrel/energyplus"
            ],
            "icon": "https://energyplus.net/sites/default/files/eplus_logo.png",
            "deprecated": null,
            "description": "An operator to run EnergyPlus functions",
            "url": "operators/energy-plus-0.1.0.tgz",
            "created": "2020-05-19T07:42:20.496003",
            "digest": "bff20aae42e62aa084f0f08bf3833674e2bfccd0c6309f65848f089f402716f5",
            "slug": "local-queenbee-repo/energy-plus",
            "type": "operator"
        }
    ]

Get a specific package by its repository, name and tag

Note
Using the "latest" tag automatically fetches the most recent version of a given package.
    > queenbee repo get recipe ladybug daylight-factor latest

    {
      "name": "daylight-factor",
      "tag": "0.3.4",
      "app_version": null,
      "keywords": [
        "ladybug-tools",
        "radiance"
      ],
      "maintainers": [
        {
          "name": "mostapha",
          "email"<EMAIL_ADDRESS>        }
      ],
      "home": null,
      "sources": null,
      "icon": "https://raw.githubusercontent.com/ladybug-tools/artwork/master/icons_components/honeybee/png/dfrecipe.png",
      "deprecated": null,
      "description": "Run daylight factor for a single model.",
      "license": "",
      "url": "daylight-factor-latest.tgz",
      "created": "2020-09-16T20:56:00.628852",
      "digest": "daa96cfcc530e12615af362fafe135c8f2af8b45906bfb1d9f223d5764d269a4",
      "slug": "ladybug/daylight-factor",
      "type": "recipe",
      "readme": "",
      "manifest": {
          "metatada": {},
          "dependencies": [],
          "flow": [{
              "name": "main",
              "inputs": [],
              "tasks": [],
              "outputs": []
          }]
      }
    }

@cdriesler I'm tagging you here as I can't add you as a reviewer on this PR yet.

@cdriesler still has to accept his invitation to the ladybug-tools/pollination team. Then, we should be able to add him as a reviewer.

done! ty both


HARP-4888: Remove path label priority tweaking w.r.t path length.

Tweaked priority was not being used anyway since the label group priority
is floored.
Furthermore, there's better options to ensure longer path labels get displayed:

Give higher priority to higher category street labels in the style.
Use OMV street label layer (ticket in backlog) to improve placement of
path labels so that they don't collide with intersecting streets.

Signed-off-by: Andres Mandado<EMAIL_ADDRESS>Thank you for contributing to harp.gl!
Before requesting a pull request, please remember to check the following documents:

contribution guidelines
coding style

If you are adding new functionality we would highly appreciate if you can describe what is the capability you are adding and even better if you can add some examples. Please also remember to add tests for it.
CI Check
Our bots will check whether your PR can be directly integrated into the mainline. We have some internal integration tests running on the background, our bots will inform you of the next steps and someone from our team will take a look and help if needed!
And please do not forget to sign-off your commit! You can read more about DCO here. But, in short, you just need to use git commit -s or append --signoff when you are committing to the repo.
Happy contributing!

Codecov Report

Merging #1199 into master will decrease coverage by 0.04%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #1199      +/-   ##
==========================================
- Coverage   47.69%   47.64%   -0.05%
==========================================
  Files         258      246      -12
  Lines       22956    22711     -245
  Branches     5101     5056      -45
==========================================
- Hits        10948    10821     -127
+ Misses      12008    11890     -118

Impacted Files
Coverage Δ

...e/harp-mapview/lib/geometry/TileGeometryCreator.ts
11.11% <0%> (+0.01%)
:arrow_up:

...ere/harp-mapview/lib/text/TextElementGroupState.ts
8.1% <0%> (ø)
:arrow_up:

...re/harp-text-canvas/lib/rendering/TextMaterials.ts
50% <0%> (-26.93%)
:arrow_down:

@here/harp-mapview/lib/ThemeHelpers.ts
6.55% <0%> (-0.68%)
:arrow_down:

@here/harp-mapview/lib/MapView.ts
58.93% <0%> (-0.08%)
:arrow_down:

...rp-mapview/lib/text/TextElementsRendererOptions.ts
100% <0%> (ø)
:arrow_up:

@here/harp-datasource-protocol/lib/Outliner.ts
100% <0%> (ø)
:arrow_up:

...ere/harp-materials/lib/LuminosityHighPassShader.ts
100% <0%> (ø)
:arrow_up:

@here/harp-test-utils/lib/WebGLStub.ts
100% <0%> (ø)
:arrow_up:

...p-geoutils/lib/tiling/QuadTreeSubdivisionScheme.ts
100% <0%> (ø)
:arrow_up:

... and 33 more

Continue to review full report at Codecov.

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


updated to v0.25.0; removed version_tag

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Looks good to me. Waiting on feedback on a related PR ( #6 ).

@kszucs , can yo rerender, please?

I'm not familiar with conda forge - yet :)

Appveyor can't find conda, any ideas?

That is due to a bug in the latest AppVeyor update. They are working on it.
On Dec 31, 2016 8:43 AM, "Krisztián Szűcs"<EMAIL_ADDRESS>wrote:
Appveyor can't find conda, any ideas?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/conda-forge/libgit2-feedstock/pull/7#issuecomment-269861420,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6BL848Pc2_I67eFPQW1SwYtSko0YuMks5rNj_AgaJpZM4LYXyn
.

Meanwhile I'm creating https://github.com/kszucs/staged-recipes/blob/master/recipes/pygit2/meta.yaml
Would You check it please?
Can I add You as a maintainer?

You can add me as maintainer.

Thanks, @kszucs !


Error in ionic cordova build android --prod

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Error when running command: ionic cordova build android --prod
####Note: that ionic build android, ionic run android and ionic serve all works fine.
I've read many topics that says once the project gets bigger, it stops working.
It was working the day before issue arrive. It stopped working as we added more files and JSON for translation of app in multi-language.
Is it a known issue? Is there any solution?
Attached Image:
Errror:

Ionic Info:

same issue here
<--- Last few GCs --->

[16568:0x102801c00]   535124 ms: Mark-sweep 1403.7 (1870.8) -> 1403.7 (1870.8) MB, 912.9 / 0.0 ms  allocation failure GC in old space requested
[16568:0x102801c00]   535952 ms: Mark-sweep 1403.7 (1870.8) -> 1403.5 (1812.8) MB, 826.9 / 0.0 ms  last resort
[16568:0x102801c00]   536772 ms: Mark-sweep 1403.5 (1812.8) -> 1403.5 (1797.3) MB, 818.9 / 0.0 ms  last resort

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x36e293da9891 <JS Object>
    1: push(this=0x101ed1b20c01 <JS Array[50855]>)
    2: add(aka MappingList_add) [/Users/fan2net/Documents/truemerger/xincaidong/node_modules/source-map/lib/mapping-list.js:55] [pc=0x28a07b59313](this=0x101ed1b20bd1 <a Mappi
ngList with map 0x1e2b5e202621>,aMapping=0x2ee15c833e49 <an Object with map 0x10fc4835aa99>)
    3: addMapping(aka SourceMapGenerator_addMapping) [/Users/fan2net/Documents...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

+1

It's been more than a month, does anyone have an answer to at least those 2 questions?

Is it a known issue?
Is there any solution?

Happens for me too

ionic info

Your system information:
ordova CLI: 6.5.0
Ionic Framework Version: 3.5.2
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 2.0.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.4
Xcode version: Not installed

A guy posted this in another issue and it works for now, but it should probably be documented because as a limitation.

add this to the package.json scripts
"ionic:build": "node --max-old-space-size=8192<EMAIL_ADDRESS>build",

run the command:
npm run ionic:build --prod

run the commands:

cordova build android --release
cordova build ios --release

@epetre thx your solution, it's working but for me the cleanest way to still build my app is to downgrade, at least for the moment, @ionic/app-scripts to previous version 2.1.4

There seems to be a memory leak in webpack when using the module concatination plugin and source maps.  I got rid of the memory issues by setting ionic_source_map_type to cheap-source-map
in package.json worked for me:
  "config": {
    "ionic_source_map_type": "cheap-source-map"
  }

Please keep in mind that this will skip source maps for dev builds as well. We can make a custom webpack config file as workaround.
For more information, check out https://github.com/ionic-team/ionic-app-scripts#overriding-config-files

I still need a solution for this. I'm able to run it locally following the steps provided, but on my CI I can´t change from ionic cordova build ... --prod to npm run ionic:build

Update the dependency @ionic/app-scripts to 3.1.9 and build correctly.

https://forum.ionicframework.com/t/memory-leak-when-generate-a-production-version-of-small-app/129077/5?u=michaele

@nandyx it is not building even if i give him 8 Gb of ram it consume it and no build is released.... why we we separate everywhere
ionic cordova build --release

and
ionic cordova build --release --prod --aot

I think this is the command we are looking for my build was becoming 1.4 from 9 before something crashes and i cannot rebuild...
I try to install 8.9.0 8.9.4 10.0.0 node and reinstall all ionic and cordova packages nothing works....

You can try:
"node --max-old-space-size=8192 /usr/local/bin/ionic cordova build ios --prod"

@raghav-khunger this solution is not working everywhere.And the bundler isn't suppose to use 8 + GB of ram :)

@Stradivario Well, for me adding that 8GB indicator worked and I was able to build it.


spell out what iKey is

iKey is an abbreviation that is not justified in the document.
Instrumentation Key is the term used everywhere.

@SeanFeldman : Thanks for your contribution! The author, @mrbullwinkle, has been notified to review your proposed change.

#sign-off


Clarifying ownership of SDK in readme

Due to there being several third-party SDKs in different languages of varying quality / age, adding "official" to the phrasing of the title should help people understand that this is owned and maintained by Optimizely. Also removed "product" to better align with the other SDKs readme's.

Coverage remained the same at 100.0% when pulling 7adedd88064f2f963e2ae45225bf9083230d8943 on zleach-readme-update into c948863e5b7d0a2b0affedc8767105dd596c3c9f on master.


folder permission error

when i run gitea_act_runner , i have this error.
gitea_act_runner  | /opt/run_runner.sh: line 12: cd: /data: Permission denied
gitea_act_runner  | 19:12:26 Error - exited with status 1 in [/opt/run_runner.sh] at line 12:
gitea_act_runner  |      9
gitea_act_runner  |     10	log INFO "Effective user: $(id)"
gitea_act_runner  |     11
gitea_act_runner  |     12	cd /data

I have The Same Issue, How could you solve it ?


Tensor types and backends

If we would like to have the same main network tests (like tensornetwork_test.py) for different backends, all based on np.testing.assert_allclose, then it might be useful to have a backend method for get_tensor. This should return a numpy array for all backends, something like the inverse of convert_to_tensor that we already have. It might be tricky to do for TF graph mode where it is a bit harder to go from tensor to numpy, so we will probably need different tests for this case (as we have now). A get_shape method would also be handy for the same reason, as @Thenerdstation already mentioned.

Agreed, I think to_numpy would useful.
I've tested assert_allclose for both Pytorch and eager TF and they work without any conversion, so I think we will be ok.

I think we will implement a node.shape property. I also think we should deprecate get_tensor and just implement a node.tensor property.

https://github.com/google/TensorNetwork/pull/68 does this. All test are run against numpy, tensorflow, and jax.


Spark dist includes both logback-classic and slf4j on classpath

The spark dist is shipping both log4j-1.2.17 and logback-classic-1.1.7, which throws a multiple bindings error. This is in 2.2.0-palantir11. Think you guys only need to ship log4j, right?

@dev-kpyc for SA

@pearsonhenri I'm not seeing the logback-classic jar in the dist:
aash@aash01-mac ~/Downloads$ tar tf spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2.tgz | egrep -i '(slf|log4j|logback)'
spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2/jars/apache-log4j-extras-1.2.17.jar
spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2/jars/jcl-over-slf4j-1.7.16.jar
spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2/jars/jul-to-slf4j-1.7.16.jar
spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2/jars/log4j-1.2.17.jar
spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2/jars/slf4j-api-1.7.16.jar
spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2/jars/slf4j-log4j12-1.7.16.jar
spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2/licenses/LICENSE-slf4j.txt
spark-dist-2.2.0-palantir11-hadoop-2.8.0-palantir2/conf/log4j.properties.template
aash@aash01-mac ~/Downloads$

Perhaps you're looking at a modified dist?  (Our internal products SMM does this)


Update tapir-iron, tapir-json-circe, ... to 1.11.2

About this PR
📦 Updates

com.softwaremill.sttp.tapir:tapir-iron
com.softwaremill.sttp.tapir:tapir-json-circe
com.softwaremill.sttp.tapir:tapir-openapi-docs
com.softwaremill.sttp.tapir:tapir-redoc-bundle

from 1.11.1 to 1.11.2
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.softwaremill.sttp.tapir" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.softwaremill.sttp.tapir" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #68.


zli: refactor existing commands into the 'search' subcommand

See https://github.com/project-zot/zot/pull/1497#issuecomment-1591624653

Let's standardize on zli <object-type> <verb> <options-to-verb>
We should add:
zli image base
zli image derived
zli image cve
zli image list
zli repo list
zli search for any object type

The new commands are already on the main branch. The old ones are being removed in #1756


fix: testAppendWhileShutdownSuccess race

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[ ] Ensure the tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕

Error:  Failures:
Error:    StreamWriterTest.testAppendWhileShutdownSuccess:767 Call got exception: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: The append result offset 3 does not match the expected offset 5.

Seem like additional changes are required here.


Added react-icons dependency

Fixes issue #21
This addition should fix it.

@all-contributors add @itSarthak for bug


bug/Unable to parse EML files with MSIP Labels

Describe the bug
When processing an e-mail in EML format using partition_email no content is extracted when there are MSIP (Microsoft Information Protection) Labels in the header.
To Reproduce
ExampleEmail.eml.txt
from unstructured.partition.email import partition_email
elements = partition_email(filename="ExampleEmail.eml")
print(elements)

I'm not really sure why this is occuring, but when I remove the msip_labels from the file, it get's parsed properly. Otherwise, it seems to only extract multipart/mixed, multipart/related, multipart/alternative into the content_map in email.py which is not in VALID_CONTENT_SOURCES

Some debugging I have done, I added the below to line 361 in email.py
    for part in msg.walk():
        print(f"Content Disposition Type: {part.get_content_disposition()}")
        print(f"Content Type: {part.get_content_type()}")
        print(f"Content Main Type: {part.get_content_maintype()}")
        print(part.get_payload())

Which produces the following output:
Content Disposition Type: None
Content Type: multipart/mixed
Content Main Type: multipart
[<email.message.Message object at 0x000001FC5317F5D0>]
Content Disposition Type: None
Content Type: multipart/related
Content Main Type: multipart
[<email.message.Message object at 0x000001FC5317D5D0>]
Content Disposition Type: None
Content Type: multipart/alternative
Content Main Type: multipart
[<email.message.Message object at 0x000001FC5317F8D0>]
Content Disposition Type: inline
Content Type: text/plain
Content Main Type: text
Hi

=20

Please find attached a project proposal.

Please let us know if you have any questions or would like to discuss=
 anything at this stage.

=20

Kind regards

User

=20

But it doesn't add the text/plain part to the content_map here content_map[content_type] = part.get_payload().

@TaylorN15 I expect this is a limitation in the Python email parser.
You can see the partitioning code starts off with parsing the email using the Python stdlib email module:
https://github.com/Unstructured-IO/unstructured/blob/main/unstructured/partition/email.py#L370
I suppose I would start by trying the various partition_email() options for specifying the email file, like file-path, file open binary ("rb"), file open text ("r"), and text/str modes just to rule out that being a factor.
Then I'd open it directly with Python to see what I could learn by poking around and inspecting the EmailMessage object produced by parsing directly.
Then I'd search Google for known problems with Python's email module parsing these particular headers.
Then I suppose I'd be looking for a way to strip those particular headers out automatically as a pre-step before partitioning.
Let me know how you go and maybe I'll think of something else :)

I will have a crack if/when I find some time :)
I did already try the various options for loading the file and the result was the same.

So I think it's just an issue with the assumption here. I don't think we should be ignoring the part if the Content Disposition isn't None. In this case, Content Disposition is inline and Content Description is Message text which I believe is valid for an EML file, no?
After looking at this again, it might not have anything to do with the MSIP labels, I am thinking because I removed those headers, it began reading from "Received: " then the entire file is processed as text/plain.
Example code:
for part in msg.walk():
    content_disposition = part.get_content_disposition()
    content_description = part.get('Content-Description')

    # Include parts with None disposition or inline disposition with Message text description
    if not (content_disposition is None or (content_disposition == 'inline' and content_description == 'Message text')):
        continue

Hmm, that sounds right to me. "inline" means "show this text on the screen" as I read the spec, as opposed to others like "attachment" that mean "show it as available for download" or whatever.
I'm guessing that None or "omitted" essentially means "inline" by default, at least that's the way that code seems to be treating it.
If you just change that test to if part.get_content_disposition() not in (None, "inline):, does that produce the behavior you would expect?

Yes that seems to work well. My proposed solution only includes the latest message/email, yours includes all the text within the e-mail chain (my actual e-mail I am testing with is different than the sample I provided, I just cut it down for testing/debugging).
I shall create a PR :)

This SO question seems to confirm this theory: https://stackoverflow.com/questions/48975613/content-disposition-for-email-body
Only question in my mind is whether it could also be used for other things, like maybe an image, and if that would screw anything up if we added that to the content-map. A quick review seems to indicate it wouldn't be a problem though, just a dict entry we would never go looking for.
It sounds like a fix to me :)

I just tested with an e-mail that had an image in it. I see an image added to the content_map but it didn't seem to cause any issues.


how to get the JSON payload from a POST?

Question

I can send GET and POST request to the telegram bot, and they are responded and have a 200.
Is it possible for telebot to read this requests and just do a console.log with the contents? Something like:
const TelegramBot = require(''node-telegram-bot-api'');
const bot = new TelegramBot ('xxxxxxxxxXXXXXXXXXXxxxxxxxxxxXXXXXXXXXX');

bot.on(['GET'], (bodyJson) => console.log(bodyJson));

bot.start();

['GET'] is not a valid even to listen for. Hence no.


[Feature Request] - reproject layers into the working projection

💻

[ ] Would you like to work on this feature?

Feature Description
When loading a shapefile, if the shapefile has an associated projection system that is not the same as the working projection it would be useful to reproject it into the working system.
This should also be logged in the logfile and show a warning to the user
Current Situation
Currently, layers are loaded and if the coordinate system is wrong there is no warning and m2l proceeds without any data. A related check would be to make sure that the resulting clipped files are not empty.
Version
No response
Proposed Solution
in map2loop.map_data.load_map_data add a check for the coordinate system and a check for the number of features resulting from the clip.
Additional Context
No response
Affected Areas

[ ] input data
[ ] project creation
[ ] samplers
[ ] sorters
[ ] stratigraphic column
[ ] data types
[ ] Other

@RoyThomsonMonash pointed out this is already implemented in map_data set_working_projection_on_map_data. It seems qgis doesn't always save the crs onto the shapefile. I'll close this for now but we could consider adding the ability to specify the crs for a layer if its not provided and doing a sanity check on the clipping could help users debug the error.


ATSS applied to RetinaNet causes Bug

Thanks for your error report and we appreciate it a lot.
Checklist

I have searched related issues but cannot get the expected help.
I have read the FAQ documentation but cannot get the expected help.
The bug has not been fixed in the latest version.

Describe the bug
I want to improve the retinanet model performance by applying ATSS method as positive sample definition method, then causes this issue.
Reproduction

What command or script did you run?

CUDA_VISIBLE_DEVICES=0,1,2,3 ./tools/dist_train.sh configs/retinanet/retinanet_r50_fpn_1x_coco_atss.py  4

Did you make any modifications on the code or config? Did you understand what you have modified?
Yes,  I modify the positive sample definition from IoU threshold rule to ATSS.
train_cfg=dict(
#assigner=dict(
#    type='MaxIoUAssigner',
#    pos_iou_thr=0.5,
#    neg_iou_thr=0.4,
#    min_pos_iou=0,
#    ignore_iof_thr=-1),
assigner=dict(type='ATSSAssigner', topk=9),
allowed_border=-1,
pos_weight=-1,
debug=False),

What dataset did you use?
COCO2017

Environment

Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
fatal: Not a git repository (or any parent up to mount point /var/lib/docker)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
sys.platform: linux
Python: 3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 16:07:37) [GCC 9.3.0]
CUDA available: True
GPU 0,1,2,3: Tesla P100-PCIE-16GB
CUDA_HOME: /usr/local/cuda-11
NVCC: Build cuda_11.2.r11.2/compiler.29373293_0
GCC: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
PyTorch: 1.7.0
PyTorch compiling details: PyTorch built with:

GCC 7.3
C++ Version: 201402
Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.6.0 (Git Hash 5ef631a030a6f73131c77892041042805a06064f)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 10.2
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75
CuDNN 7.6.5
Magma 2.5.2
Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,

TorchVision: 0.8.0
OpenCV: 4.5.3
MMCV: 1.3.9
MMCV Compiler: GCC 7.3
MMCV CUDA Compiler: 11.0
MMDetection: 2.16.0+

You may add addition that may be helpful for locating the problem, such as

How you installed PyTorch [e.g., pip, conda, source]
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback
If applicable, paste the error trackback here.
    losses = self.loss(*loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore)
  File "/scratch/workspace/xxx/anaconda3/envs/mm2_mlperf/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 186, in new_func
    return old_func(*args, **kwargs)
  File "/var/lib/docker/scratch/workspace/xxx/mlperf_retinanet/mmdetection-master/mmdet/models/dense_heads/anchor_head.py", line 464, in loss
    label_channels=label_channels)
  File "/var/lib/docker/scratch/workspace/xxx/mlperf_retinanet/mmdetection-master/mmdet/models/dense_heads/anchor_head.py", line 346, in get_targets
    unmap_outputs=unmap_outputs)
  File "/var/lib/docker/scratch/workspace/xxx/mlperf_retinanet/mmdetection-master/mmdet/core/utils/misc.py", line 30, in multi_apply
    return tuple(map(list, zip(*map_results)))
  File "/var/lib/docker/scratch/workspace/xxx/mlperf_retinanet/mmdetection-master/mmdet/models/dense_heads/anchor_head.py", line 220, in _get_targets_single
    None if self.sampling else gt_labels)
  File "/var/lib/docker/scratch/workspace/xxx/mlperf_retinanet/mmdetection-master/mmdet/core/bbox/assigners/atss_assigner.py", line 69, in assign
    num_gt, num_bboxes = gt_bboxes.size(0), bboxes.size(0)
AttributeError: 'NoneType' object has no attribute 'size'
Traceback (most recent call last):
  File "/scratch/workspace/xxx/anaconda3/envs/mm2_mlperf/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/scratch/workspace/xxx/anaconda3/envs/mm2_mlperf/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/scratch/workspace/xxx/anaconda3/envs/mm2_mlperf/lib/python3.7/site-packages/torch/distributed/launch.py", line 260, in <module>
    main()
  File "/scratch/workspace/xxx/anaconda3/envs/mm2_mlperf/lib/python3.7/site-packages/torch/distributed/launch.py", line 256, in main
    cmd=cmd)
subprocess.CalledProcessError: Command '['/scratch/workspace/xxx/anaconda3/envs/mm2_mlperf/bin/python', '-u', './tools/train.py', '--local_rank=3', 'configs/retinanet/retinanet_r50_fpn_1x_coco_atss.py', '--launcher', 'pytorch']' returned non-zero exit status 1.

Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

ok，thanks, wait for your modification.


student registration added, projects made responsive

Hello @ankita132! Thanks for submitting the PR.

In the file kwoc/app.py, following are the PEP8 issues :

Line 5:1: E402 module level import not at top of file
Line 6:1: E402 module level import not at top of file
Line 7:1: E402 module level import not at top of file
Line 13:1: E302 expected 2 blank lines, found 1
Line 47:1: E302 expected 2 blank lines, found 1
Line 51:1: E302 expected 2 blank lines, found 1
Line 55:1: E302 expected 2 blank lines, found 1
Line 67:1: E305 expected 2 blank lines after class or function definition, found 1


Don't use arrow function in Mocha description

Because it causes every test to fail: https://stackoverflow.com/a/46392720/245460

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

ID: 44581f4a-93df-7507-3844-eadedf9a6cc4
Version Independent ID: 33c7bcf0-1512-975f-5ef8-9f2a192a84ad
Content: Add a Build or Release Task
Content Source: docs/extend/develop/add-build-task.md
Product: devops
GitHub Login: @elbatk
Microsoft Alias: elbatk

Hm, didn't realize this, definitely seems like you're right that we should avoid this though (Mocha docs agree). I'll go ahead and fix this in the docs.

We've got a PR going for this, thanks everyone :)


Upgrade ESLint to the Latest Version

This requires redoing our configuration files to their new flat format. More details here: https://github.com/dbos-inc/dbos-transact/pull/477

Looks like this is a dupe of #442 and/or #458.
COmment from #465:

Note, I looked at moving over to the new config format as per https://github.com/dbos-inc/dbos-transact/issues/442, but couldn't figure out how to configure the linter without creating 100s of new lint errors. We can handle that in a separate PR

I think upgrading to eslint 9 will have to wait for ts-eslint 8 to ship: https://typescript-eslint.io/blog/announcing-typescript-eslint-v8-beta

Duplicate of https://github.com/dbos-inc/dbos-transact/issues/458


processes started by systemd in wsl are orphaned if wsl crashes

Windows Version
Microsoft Windows [Version 10.0.22631.2715]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
Linux version <IP_ADDRESS>-microsoft-standard-WSL2 (root@1c602f52c2e4) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 UTC 2023
Distro Version
22.04
Other Software
No response
Repro Steps

WSL crashes for some reason (looking into this, will try to actively cause crash to reproduce better). wsl -l --running shows no running distributions.
Process created by systemd in wsl is still visible hogging a tcp port in "resource monitor".
If I try to restart WSL to restart my program, I get port-in-use errors.
If I kill the process visible in resource monitor first (using `taskkill \pid 1234 \f), I can restart my programs in the new wsl instance correctly.

I can develop some more rigorous reproducing steps if needed, but I also just wanted to query at some level if this was known / expected behavior.
Expected Behavior
If WSL crashes, I'd expect the processes it starts to crash as well, otherwise seems impossible to interact with the related processes and you get strange errors. For a while I thought it was an issue with WSL still effectively running in the background but now It's this "orphaned process" issue.
Actual Behavior
The processes started by wsl live on and cause issues trying to restart things.
Diagnostic Logs
No response

/logs


stagehand --web-simple Target of URI doesn't exist

Learning Dart and trying out stagehand for the first time.
I've built a project for the web using: stagehand --web-simple
My project structure is:

But for some reason, import package is complaining it can't find it:
 [dart uri_does_not_exist] [E] Target of URI doesn't exist: 'package:tetris/tetris.dart' Try creating the file referenced by the URI, or Try using a URI for a file hat does exist.

This is what I have in my web/main.dart:
import 'package:tetris/tetris.dart';

void main() => Game().start();

This is in my lib/tetris.dart:
library tetris;

import 'dart:html';
import 'dart:async';
import 'dart:math';

part 'src/model/tile.dart';
part 'src/model/block.dart';
part 'src/model/blocks.dart';
part 'src/game.dart';

My pubspec.yml:
name: build_a_tetris_game
description: An absolute bare-bones web app.
# version: 1.0.0
#homepage: https://www.example.com

environment:
  sdk: '>=2.8.1 <3.0.0'

#dependencies:
#  path: ^1.7.0

dev_dependencies:
  build_runner: ^1.10.0
  build_web_compilers: ^2.11.0
  pedantic: ^1.9.0

Dart version:
Dart SDK version: 2.9.1 (stable) (Wed Aug 12 12:37:19 2020 +0200) on "macos_x64"

Any ideas?

Your build.yaml says the package name is build_a_tetris_game. Change your import statement to import 'package:build_a_tetris_game/tetris.dart' and you should be golden.


Download button for latest csv report of all data

On the front end create a button that allows the technician to download the latest version of the csv report with all the data for the computers.

Completed in the commit listed below.
https://github.com/rstrom1763/AF-NCC-Scripts/pull/19/commits/fb670c7ed942aba948194282d9a4072da3e6035e


i dont know if this is a bug or not

been trying to download this this episode and it hasn't been downloaded it's not locked and it's not busy.

anidl.exe --service funi -s 20224 -q 10 --nosubs --dubLang eng --mkv -e 656 --fileName "${showTitle} - S${season}E${episode} - ${title}

If this error happens, please follow the following steps:
Press windows key plus R on your keyboard to open the run command box and type this

resmon.exe

click OK to open resource monitor
In the monitor, navigate to CPU tab
Under Associated Handles in the search box, copy the path to the file or folder in question and paste it in there
Click on the search icon

Send me a screenshot if you find a running process.
Also, is this error reproducible (does it happen on the same episode every time?)

yes its reproducible, and it also happened on episode One Piece - S11E658 - A Big Surprise! The True Identity of the Toy Soldier

I ended the process and reloaded Explorer and that seems to work. not sure what was the problem

Good to hear


git integration tests fail in stable builds

@jrieken Assigning for dispatch. Are the built-in extensions not flagged as such in the integration tests and should that be fixed?
[2228:0317/103357.172:INFO:CONSOLE(2786)] "Activating extension 'vscode.git' failed: [vscode.git]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api vscode.git.", source: file:///D:/a/1/VSCode-win32-x64/resources/app/out/vs/workbench/workbench.desktop.main.js (2786)
    1) "before all" hook
  22 passing (2s)
  1 failing
  1) git smoke test "before all" hook:
     Error: [vscode.git]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api vscode.git
      at a (d:\a\1\VSCode-win32-x64\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:515:620)
      at Object.t.checkProposedApiEnabled (d:\a\1\VSCode-win32-x64\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:515:982)
      at Object.registerDiffInformationCommand (d:\a\1\VSCode-win32-x64\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:793:295)
      at d:\a\1\s\extensions\git\src\commands.ts:250:21
      at Array.map (<anonymous>)
      at new CommandCenter (d:\a\1\s\extensions\git\src\commands.ts:246:31)
      at createModel (d:\a\1\s\extensions\git\src\main.ts:82:3)
      at activate (d:\a\1\s\extensions\git\src\main.ts:168:17)

https://github.com/microsoft/vscode/commit/1bd8e5b76bcfbe8a9a26422006afd6e4c46348f2


Update README.md files of all modules with usage/examples.

Update README.md of modules with examples and terraform-docs portion? This is good content for anyone needing to customise the values in a recipe, or use the module directly etc.
it would be a good standard to keep terraform-docs for every module and some usage examples as needed.

For recipes, the standard has become:

README.md file describes the minimum variables to configure and the commands for deploying and destroying resources.
docs.md file to get details of all Terraform resources <-- terraform-docs markdown table . > docs.md

cc @leodotcloud

Agree @glovecchi0. Can we close this issue or are there any pending action items?


How to test the images after training complete?

I have trained successfully how to test the images in this code? @andy-yun @mickolka @carry-xz

python detect.py cfg/yolo_v3.cfg yolov3.weights data/dog.jpg data/coco.names
see README.md in the root.


bug(COMPONENT): Content Projection Child to Parent using NgContent

I'm trying to project content from a child component to a parent component in an Angular 9+ application. All of the examples that I see project content from parent to child, but I can't find any that go from child to parent. Is this even possible? In the example below, I'm trying to project the div from the child to the ng-content slot in the parent. This throws no errors on a sample app but the div from the child never renders. Is there any other way to achieve this without using content projection?

Actual Behavior
The child's content never renders in the parent's ng-content.
Environment

Angular: 9+
CDK/Material:
Browser(s): Chrome 93
Operating System (e.g. Windows, macOS, Ubuntu):  Windows 10

It isn't possible. I'm closing the issue since the bug tracker isn't the right place to ask questions like this. Better places would be StackOverflow or Discord.


Fix handling of closed partitions on INSERT .. FROM VALUES

Summary of the changes / Why this improves CrateDB
The cluster block check used equals, which didn't cover the cluster
block created in:
https://github.com/crate/crate/blob/e6bac64550317ffa6d9d1e8dd875dbf1e7ecc5a4/server/src/main/java/io/crate/execution/ddl/tables/TransportCloseTable.java#L373-L383
testInsertIntoClosedPartition was flaky because of this and failed
with:
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/4/Table or partition preparing to close. Reopen the table to allow writes again or retry closing the table to fully close it.];
	at __randomizedtesting.SeedInfo.seed([774DB56220DFE1CE:3BC95ADA0E5BE]:0)
	at app//org.elasticsearch.cluster.block.ClusterBlocks.indexBlockedException(ClusterBlocks.java:207)
	at app//org.elasticsearch.action.support.replication.TransportReplicationAction.blockExceptions(TransportReplicationAction.java:245)
	at app//org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:632)
	at app//org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
	at app//org.elasticsearch.action.support.replication.TransportReplicationAction.doExecute(TransportReplicationAction.java:173)
	at app//org.elasticsearch.action.support.replication.TransportReplicationAction.doExecute(TransportReplicationAction.java:90)
	at app//org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:51)
	at app//io.crate.planner.operators.InsertFromValues.execute(InsertFromValues.java:714)
	at app//io.crate.planner.operators.InsertFromValues.lambda$execute$0(InsertFromValues.java:285)
	at java.base@17.0.2/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
	at java.base@17.0.2/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2309)
	at app//io.crate.planner.operators.InsertFromValues.execute(InsertFromValues.java:281)
	at app//io.crate.action.sql.Session.singleExec(Session.java:679)
	at app//io.crate.action.sql.Session.exec(Session.java:542)
	at app//io.crate.action.sql.Session.triggerDeferredExecutions(Session.java:516)
	at app//io.crate.action.sql.Session.sync(Session.java:500)
	at app//io.crate.testing.SQLTransportExecutor.execute(SQLTransportExecutor.java:265)
	at app//io.crate.testing.SQLTransportExecutor.execute(SQLTransportExecutor.java:243)
	at app//io.crate.testing.SQLTransportExecutor.executeTransportOrJdbc(SQLTransportExecutor.java:189)
	at app//io.crate.testing.SQLTransportExecutor.exec(SQLTransportExecutor.java:136)
	at app//io.crate.integrationtests.SQLIntegrationTestCase.execute(SQLIntegrationTestCase.java:432)
	at app//io.crate.integrationtests.SQLIntegrationTestCase.execute(SQLIntegrationTestCase.java:589)
	at app//io.crate.integrationtests.PartitionedTableIntegrationTest.testInsertIntoClosedPartition(PartitionedTableIntegrationTest.java:197)

Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

retest this please
Flaky MetadataTrackerITest


Add examples to error of overlapping entities during evaluation

Rasa NLU version: 0.12.2
Operating system (windows, osx, ...): 17.10
Content of model configuration file:

Issue:
How can we identify which entities are overlapping because evaluation is giving me overlapping error. I have around 36 Entities.

upload it to something like https://rasahq.github.io/rasa-nlu-trainer/ this will show you your labeled entities

@AbdurRub did you find out if you had a problem with your training data?

Its very hard to find out overlapping between 36 entities. rasa should point out which entity is overlapping with which sentence like they did in miss aligned entities warning.

Yes that is a very good point :+1:

i belive this has been fixed


Advise, but don't yet require, use of the GOT for medany weak undef

Closes: #126

Cc @MaskRay (can't request a review from you as you're not a member of the repo... might be worth granting you explicit read access, I think that lets you be added as a reviewer?)

This is only OK to me if the change remains optional until someone writes the gnu ld relaxation support to optimize the result back to what it was before the ABI change.

I think we all agree that would be better way for non-embedded world part like Linux, but I am in the same line with Jim for the embedded world part - few bytes is matter in the embedded world, I am OK with this only for optional and no deprecated in the ABI.

Still LGTM.

LLVM patch: https://reviews.llvm.org/D107280

@jim-wilson Are you happy with the current wording?


Blank page on Japan

https://commits.top/japan.html

I can see the lists of other countries.

@craftzdog this seems to have been fixed, I think you can close this issue.

Cool, thanks.


where do i get the code

https://github.com/lreiner/Whatsapp-Message-Spammer/blob/master/Tampermonkey-Executable/wmb_tampermonkey.js

https://github.com/lreiner/Whatsapp-Message-Spammer/blob/master/Tampermonkey-Executable/wmb_tampermonkey.js


random is not defined

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/tymeventure", line 11, in <module>
    load_entry_point('tymeventure==0.1.2', 'console_scripts', 'tymeventure')()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tymeventure-0.1.2-py3.6.egg/tymeventure/__init__.py", line 432, in main
    gameLoop(stdscr)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tymeventure-0.1.2-py3.6.egg/tymeventure/__init__.py", line 386, in gameLoop
    itemInQuestion.useWith(stdscr, itemToUseWith, currentLocation, inventory)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tymeventure-0.1.2-py3.6.egg/tymeventure/__init__.py", line 170, in pennyUse
    stdscr.addstr(0, 0, "You flip the penny. It comes up " + random.choice(["heads", "tails"]) + ".", unicurses.color_pair(0) | unicurses.A_BOLD)
NameError: name 'random' is not defined

Thanks for the report.
Adding "prio-high" as this would also break any other uses of random in the game.

This has just been fixed in the latest development commit (as shown above).


Simplify a way to obtain rate limits headers

Currently there is no simple way to get rate limits as they are returned by sdk in form of response headers (as described here: https://docs.sentry.io/api/ratelimits/#headers).
When I tried to send a request, I have got a normalized, simplified response:
iex(node@node)4> Sentry.capture_message("test", result: :sync)

12:45:56.559 [warning] Failed to send Sentry event. Error in HTTP Request to Sentry - "Received 429 from Sentry server: "
{:error, {:request_failure, "Received 429 from Sentry server: "}}

There should be some programmatic way to either get rate limits or return full response with headers.

That's a good callout. We can introduce a new Sentry-specific exception for when reporting errors fails.
defmodule Sentry.SendError do
  defexception [...]
end

Sentry.capture_message/2 and friends are already documented to return {:error, term()}, so this doesn't break any contract.

After thinking about this some more, I think we can introduce a Sentry.ClientError exception instead. It would be returned by Sentry.Client if the HTTP request fails.
defmodule Sentry.ClientError do
  @moduledoc """
  ...
  """

  @moduledoc since: "10.7.0"

  @type t() :: %__MODULE__{...}

  defexception [:reason]
end

The possible errors that we have now (and that would go into `:reason` above), as far as I could quickly tell, are:

  * `{:invalid_json, reason}`
  * `:too_many_retries`
  * `{Exception.kind(), data, stacktrace}`
  * `{:server_error, http_status, error_header_value}`

We should also document these in the `t()` type above and the moduledoc.

PR out that matches on errors returned from sending the result in Client.send_event/2

@savhappy now that we have the new error, I think we can add a new error reason: :server_error. Then, we can add two more fields to the exception, so that it becomes this:
@type t() :: %__MODULE__{
  reason: reason(),
  http_response: nil | {status :: 100..199, headers :: [{String.t, String.t}], body :: binary()},
}

Basically, the new http_response field would be nil for errors that are not from the server (like timeouts, or invalid request JSON) but it would be {status, headers, body} when the Sentry server returns a response. This would solve this particular issue, where @up2jj is asking for a way to programmatically access the rate limit headers that Sentry returns.
Thoughts?

Yep yep @whatyouhide , this is perfect, I'll add it in!


iOS: recieved invalid notification content When clicking on notification

I am sending push notification from fcm to device. Using 0.0.5+7 version of package and when i click on notification actionStream is not fired and i see this message printed "recieved invalid notification content".
If i use version 0.0.5+5 and i click on notification i get NOTIFICATION RECEIVED printed but my app is getting freezed in loading state in native splash screen.

I cant discovery whats goin on with your application with this log. At least you need to tell me what line are this error occurring. Otherwise only you with your project can discovery it.

That is all i have it doesn't show a line. What should i do in order to see error line?

You need to debug natively, using XCode or try to debug using Android Studio to capture dart errors. One or another are capable to capture the error. Unfortunely, there is no way to debug both things on iOS (thanks Apple!)

Well i can tell one thing for sure, even createdStream is not fired when notification is created, if that info will help of course. I will try to debug it later.

I think it's related to https://github.com/FirebaseExtended/flutterfire/issues/5417
Firebase getInitialMessage is not fired on iOS currently.

Please, try to use the 0.0.6+1 version to see if the problem persists.

this issue stil exsist on 0.0.6+7. Any ideas to fix it? It will fire recieved invalid notification content even if ypu dont use this package. to reproduce it u enough to add package in pubspec and build app. is there any solutions?

Guys, this plugin is entirely open source. Any one can open it, debug, change and send back your improvements.
Im the only person projecting and building this plugin today, and obviously im limited of what i can do each time.
If you know there is a issue and you are urgent to fix it, fork this project, put your hands in the dirt, debug, fix it and send it back to us. I never refused a third party improvement.

I did a test branch to check if the problem could be solved with a little change. Try to put the declaration bellow inside your pubspec.yaml file:
  awesome_notifications: #^0.0.6+7
    git:
      url: https://github.com/rafaelsetragni/awesome_notifications.git
      ref: c968836

Also, put the code bellow inside your pubspec.yaml, to allow to use direrctely GitHub repositories in your project, bellow the tag description:
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

And finally run pub get to check if the problem is solved with this fix.

@rafaelsetragni Hello! First of all, thank you for creating and maintaining this wonderful package.
I am currently on 0.0.6+10 and have started to encounter this issue on iOS. I would be investigating our backend which is sending the FCM for invalid formatting, but the notifications are working just fine on Android. So, are there any logs or tests I can run to help you figure out this issue? I have tried to debug in xcode but I can't seem to get it to actually hit a breakpoint (I am an xcode noobie).

I understand that could be some different behaviors while converting the json content values in iOS and Android platforms, this is possible.
Unfortunaly, i havent had wrote any unit test to cover the FCM values conversion, but im writing a new plugin to be complementary to this one called awesome_notifications_fcm. So, if you wanna help me some way, you can write the unit tests there.

I attempted to use awesome_notifications_fcm in order to get an understanding of it but unfortunately I cannot get past calling initialize before getting a "String is not a subtype of bool" error from the method channel.
I shifted my attention to trying to debug where Received an invalid notification content message is occurring. After some tests notifications I can see that on line 132 of SwiftAwesomeNotificationsPlugin.swift the receiver is trying to parse the userInfo dictionary with key "notificationJson", but the dictionary does not contain that key. The conditional cast to String then fails and the function exits without updating the action stream. Interestingly, the userInfo dict does contain many other values related to FCM and has values from the payload sent by FCM.
Also, I've realized that on iOS, FirebaseMessaging.onBackgroundMessage is not being called when awesome_notifications is also running. I'm not sure if those are related but they are definitely both very functionality-breaking bugs for iOS users.
I tried to find where the function userNotificationCenter is being used but I'm not experienced enough in Xcode to find out why these things are happening. Please let me know if there's anything else that would help you.

I attempted to use awesome_notifications_fcm in order to get an understanding of it but unfortunately I cannot get past calling initialize before getting a "String is not a subtype of bool" error from the method channel.

Im developing it yet. Is not ready to use. It will gonna be ready to use soon with 0.0.7 release.

I shifted my attention to trying to debug where Received an invalid notification content message is occurring. After some tests notifications I can see that on line 132 of SwiftAwesomeNotificationsPlugin.swift the receiver is trying to parse the userInfo dictionary with key "notificationJson", but the dictionary does not contain that key. The conditional cast to String then fails and the function exits without updating the action stream. Interestingly, the userInfo dict does contain many other values related to FCM and has values from the payload sent by FCM.

Interesting! I gonna inspectorate it later on.

Also, I've realized that on iOS, FirebaseMessaging.onBackgroundMessage is not being called when awesome_notifications is also running. I'm not sure if those are related but they are definitely both very functionality-breaking bugs for iOS users.

Integrate firebase_messaging with awesome_notifications is not fully possible. Thats why i had to created the new awesome_notifications_fcm plugin.

I tried to find where the function userNotificationCenter is being used but I'm not experienced enough in Xcode to find out why these things are happening. Please let me know if there's anything else that would help you.

I'll keep you informed by posting the news here as I release them.

I fixed it, you should try this: https://github.com/rafaelsetragni/awesome_notifications/issues/175#issuecomment-901440949

Be careful! onBackgroundMessage and data-only push notifications don't always work on iOS, because of their background processing policies. If their algorithm (which no one knows the rules) decides that your app is consuming too many resources, your app will be temporarily suspended in the background until the next time the user manually brings the app to the foreground.

I also receive "Received an invalid notification content"
I have tried updating the libraries and sending different message formats - all show this text inside the app.
But! the notification is displayed! It's just that on the flutter dart code I receive that text - and no code is ran, of course.
No logs, sorry.

I have the same error as @adrianvintu  said

I fixed it, you should try this: #175 (comment) @wiktoriasobczyk  @adrianvintu

Hi, i ended up with creating Native Channel in didFinisihLaunch function on AppDelegate.swift.
In my case, i already had log when fcm payload came, but when i tried to click the push notification, it prints "received an invalid notification content".
With a little approach, i implemented firebase guidance in iOS app (https://firebase.google.com/docs/cloud-messaging/ios/client).
Here's the code :

Put following code in a state that you want to listen when push notification will be clicked.
Lets say "HomePage"

class _HomeState extends State<Home> with SingleTickerProviderStateMixin {

  MethodChannel _channel =
  const MethodChannel('com.arby.app/backgroundNotifications');

  @override
  void initState() {
    super.initState();
    .
    .
    .
    _channel.setMethodCallHandler(setupNotification);
  }

  Future<dynamic> setupNotification(MethodCall call) async {
    print("init state setMethodCallHandler ${call.method}"); // Never comes here
    switch (call.method) {
      case 'manuallyInterceptNotification':

        // variable contains data model obtained from native iOS
        // call.arguments would be like {id:1,title:...,body:...,screen:...}

        var payload = Map<String,dynamic>.from(call.arguments as Map)

        // your navigation code or something goes here...
        // Navigate.of(context).pushNamed(payload['screen']);

      default:
        throw MissingPluginException('notImplemented');
    }
  }

Add FlutterMethodChannel inside didFinisihLaunch in AppDelegate.swift

...
var manualNotificationChannel : FlutterMethodChannel!

override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {

  ....

  let controller : FlutterViewController = window?.rootViewController as! FlutterViewController

  manualNotificationChannel = FlutterMethodChannel.init(name: "com.arby.app/backgroundNotifications", binaryMessenger: controller.binaryMessenger)

  ....

  }

Add function sendMessageToFlutter below didFinishLaunch in AppDelegate.swift, it will fires state in home.dart when this function get invoked

private func sendMessageToFlutter(result : Dictionary <String, String>){
        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()) {
            self.manualNotificationChannel.invokeMethod("manuallyInterceptNotification", arguments: result)
        }
    }

Add overriding function based on FCM documentation (https://firebase.google.com/docs/cloud-messaging/ios/client), inside the override function, we'll put the following codes :

@available(iOS 10, *)
  override func userNotificationCenter(_ center: UNUserNotificationCenter,
                              didReceive response: UNNotificationResponse,
                              withCompletionHandler completionHandler: @escaping () -> Void) {
    let userInfo = response.notification.request.content.userInfo
    Messaging.messaging().appDidReceiveMessage(userInfo)
    var payload: [String: String] = [:]

     // this is the example of key:value data inside your payload

    if let id = userInfo["id"] {
      payload["id"] = "\(id)"
    }
    if let body = userInfo["body"] {
      payload["body"] = "\(body)"
    }
    if let title = userInfo["title"] {
      payload["title"] = "\(title)"
    }
    if let screen= userInfo["screen"] {
      payload["screen"] = "\(screen)"
    }

    sendMessageToFlutter(result:payload);
    completionHandler()

  }

i didnt know whats the best practice to convert AnyHashable to Dictionary (we are using Dictionary due to dart received data-type rules https://docs.flutter.dev/development/platform-integration/platform-channels?tab=type-mappings-swift-tab#codec)
yet, we still waiting for the firebase (i thought) to solve the problem, idk how long ive been strolling to solve it, i tried with various way but had not trying for this one, and its worked for me now, at least.

Hi! Sorry for taking so long to respond to your issue on GitHub. I was focused on releasing the new 0.7.0 version of awesome_notifications and awesome_notifications_fcm and i didn't had time enough to do both. But now I can answer all your questions.
So now i'm asking you to recreate this topic using the new issue template. There's a lot of missing informations that i need to understand your problem, and all the instructions are already in the new issue template. Also, remember to check beforehand if your issue was posted by another user.
So I will automatically close all previous issues so far.
Sorry for the inconvenience and i will be waiting for your new issue request.
Thank you so much for your support!


Feature/parameter autocompletion

Adds the ability to dynamically generate completion suggestions via a callback.  Documentation and example code has been added. :)

Thanks @bb4242, that looks very good.


Adding logback file in pravega-sensor-collector.tgz

pravega-sensor-collector.tgz was not having logback.xml in it in linux. This will add that.

I think we should add a logback.xml with sensible defaults.


initModel with fasttext

Hi,
First of all, thank you making this great project open to the public. I could already achieve some good results for my experiments in information retrieval.
Now, I am trying to fine-tune and improve the model, by reusing pretrained embeddings from fasttext. In #94 , it was mentioned that one could just take the fasttext vectors by changing the extension to .tsv and specifying the dimensions with the -dim argument to 300. So, I did ,but the dimension gets overridden by StarSpace to 301 and of course after that an error for excess fields. I had to additionally remove the first line which specifies the line count and dimension size, otherwise the dimension gets override to 1. Am I doing something wrong? Here is the output I get:
./starspace train -trainFile ../../PycharmProjects/paragraph-selection/train_data -model my_model -fileFormat 'labelDoc' -thread 10 -epoch 3 -initModel ../../Downloads/wiki-fix.en.tsv -dim 300
Arguments:
lr: 0.01
dim: 300
epoch: 3
maxTrainTime: 8640000
saveEveryEpoch: 0
loss: hinge
margin: 0.05
similarity: cosine
maxNegSamples: 10
negSearchLimit: 50
thread: 10
minCount: 1
minCountLabel: 1
label: __label__
ngrams: 1
bucket: 2000000
adagrad: 1
trainMode: 0
fileFormat: labelDoc
normalizeText: 0
dropoutLHS: 0
dropoutRHS: 0
Start to load a trained embedding model in tsv format.
Setting dim from Tsv file to: 301
Loading dict from model file : ../../Downloads/wiki-fix.en.tsv
Number of words in dictionary:  2519371
Number of labels in dictionary: 0

EDIT1: I looked a bit closer into the code of StarSpace::initFromTsv and saw there is a call to  boost::split that splits the string along spaces or tabs. And it returns a vector where the last element is empty.  The vec.count - 1 is used as dim. Due to the fact that there is one "additional" element in the list, it code thinks there are not 300 elements but 301. I assume this is due to the newline character at the end of each line. I could later send a PR fixing this.
Cheers

@roskoN thanks for reporting. Yes please send a PR if that's the case.

@roskoN Hi, do you still observe the off-by-one issue from importing fastText model? If so, would you mind sending a PR to fix? Thanks.

Closing issue as no recent update.

It still does that with models I train myself on fasttext, there is an extra space at the end of each line.
This is easily fixed:
Remove the first line:
sed -i '1d' model.tsv' Remove extra space at end of line: sed -i 's/.$//' model.tsv`

Side note: One must make sure that the labels are the last lines of the embedding file, otherwise, somehow, pretty much any word is used for prediction.


Events in Cluster view is limited to 10

What would you like to be added:
The ability to see more than 10 events in the cluster view
Why is this needed:
To see all the events in the last hour, not just the 10 most recent.  I know k8s events are limited to 1hr, but right now the UI appears to still only display the most recent 10 events.  We have a cluster which is apparently having some issues and we're not able to see all the events for the past hour, but the most recent 10.
Environment you are Lens application on:

Kubernetes distribution: k8s 1.18 on ec2 via kops
Desktop OS: windows

If you're talking about Workloads -> Overview then this page has limited events to 10.
To see all events you should go to separate Events page:

Sorry for delay.  I was actually talking about the Cluster view.  It doesnt appear to be limited to 10, but there is some limit on it.  The Events tab though it shows the information, also shows more than warnings and errors which is all that is seen on the Cluster view and there doesnt appear to be a way to filter out the informational messages from the events view.


HBASE-22615 Make TestChoreService more robust to timing

phrase fudge factor "deltas" in terms of the original period
increase the delta allowed for chore timing from 5% to 20%
improve some assertions

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
118
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 1 new or modified test files.

_ master Compile Tests _

+1
mvninstall
303
master passed

+1
compile
24
master passed

+1
checkstyle
25
master passed

+1
shadedjars
301
branch has no errors when building our shaded downstream artifacts.

+1
findbugs
42
master passed

+1
javadoc
21
master passed

_ Patch Compile Tests _

+1
mvninstall
269
the patch passed

+1
compile
23
the patch passed

+1
javac
23
the patch passed

+1
checkstyle
24
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedjars
279
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
867
Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.

+1
findbugs
49
the patch passed

+1
javadoc
19
the patch passed

_ Other Tests _

+1
unit
159
hbase-common in the patch passed.

+1
asflicense
11
The patch does not generate ASF License warnings.

2857

Subsystem
Report/Notes

Docker
Client=18.09.5 Server=18.09.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-328/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/328

Optional Tests
dupname  asflicense  javac  javadoc  unit  findbugs  shadedjars  hadoopcheck  hbaseanti  checkstyle  compile

uname
Linux 3c3c7984dc11 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
master / 6d08ffcfc6

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-328/1/testReport/

Max. process+thread count
252 (vs. ulimit of 10000)

modules
C: hbase-common U: hbase-common

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-328/1/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

before this change it takes me ~10 runs to get a failure. after it so far I've gotten through 25.

have now gotten through 100 additional runs with this patch in place.

+1 from my side as well, Sean!

thanks folks!


No example of solution

@feiandytan commented on Fri Jun 28 2019
This page doesn't have example of how to fix the violation.

文档详细信息
⚠ 请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。

ID: 7193fffc-ff49-d551-417e-6f004dd1e216
Version Independent ID: 8370a61d-8d8a-bec4-b49d-e5cae67a0d86
Content: CA2213:应释放可释放的字段 - Visual Studio
Content Source: docs/code-quality/ca2213-disposable-fields-should-be-disposed.md
Product: visual-studio-windows
Technology: vs-ide-code-analysis
GitHub Login: @gewarren
Microsoft Alias: gewarren

Hi team,
I'm moving this here since the contributor is asking for aditional examples
best regards

See See also above:
https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose

@mattmunich Thank you. @feiandytan Does the topic linked from the See Also section give you the examples you need?

Hi @gewarren, the See Also section does not contain example for the ca2213.


Rich error messages

We should to revise all parser error messages and make them more concise and rich. E.g. add info about index of symbol where error was occured.

Agreed. A consistent writing style would be nice too. If you would like my input here, I'd be happy to provide it, although I've seen enough to know both of your English is very good, of course!


fix dump table name error and add some test for dump database

Will fix #6310 and replace #6385

Codecov Report

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

@@            Coverage Diff             @@
##           master    #6394      +/-   ##
==========================================
+ Coverage   38.85%   38.86%   +0.01%
==========================================
  Files         365      365
  Lines       51360    51363       +3
==========================================
+ Hits        19957    19964       +7
+ Misses      28530    28527       -3
+ Partials     2873     2872       -1

Impacted Files
Coverage Δ

models/models.go
56.41% <100%> (+3.82%)
:arrow_up:

models/models_sqlite.go
100% <100%> (ø)
:arrow_up:

models/unit.go
0% <0%> (-14.29%)
:arrow_down:

routers/repo/view.go
41.08% <0%> (-1%)
:arrow_down:

models/repo_list.go
67.89% <0%> (+1.05%)
:arrow_up:

Continue to review full report at Codecov.

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

Will add some dump integration tests after this merged.

need fmt

@lunny merged. Please backport 😄


Get-AzureAdDirectoryRole does NOT return all roles

The cmdlet Get-AzureAdDirectoryRole does NOT return all available roles. This is inconsistent with other Azure PowerShell cmdlets and should either be fixed or documented accordingly. It may be that Get-AzureAdDirectoryRole only returns those role names which have been assigned to users. Unintuitively, to get a full list of Azure AD roles, use the cmdlet Get-AzureAdDirectoryroletemplate.
The following PowerShell illustrates the issue by listing those roles which Get-AzureAdDirectoryRole failed to return:
Compare-Object (Get-AzureADDirectoryroleTemplate).DisplayName (Get-AzureADDirectoryRole).DisplayName

You have to enable an Azure AD directory role to make it appear in the list returned by Get-AzureADDirectoryRole. For instance, to enable the "Power BI Service Administrator" role:
$RoleTemplate = Get-AzureADDirectoryRoleTemplate | Where-Object {$_.DisplayName -eq "Power BI Service Administrator"}
Enable-AzureADDirectoryRole -RoleTemplateId $RoleTemplate.ObjectId

What am I missing here, conceptually? Why doesn't Get-AzureADDirectoryRoleTemplate return Global Administrator?

@timothywarner You aren't kidding. The help for Get-AzureADDirectoryRole makes no mention that it only returns enabled roles. If that is the intended behavior, then a -ListAvailable switch should be added to the cmdlet. This aligns with how standard PowerShell commands like Get-Module work. Providing that switch should make Get-AzureADDirectoryRole return all roles, regardles if they are enable or not. There should also be a boolean Enabled property added to the object Microsoft.Open.AzureAD.Model.DirectoryRole that is returned so you can tell which ones are enabled and which ones aren't. That would make the whole UX better.

This is still an issue as of 25-11-2020

Hi @lesterw1
Sorry for the delay in response.  I have opened a work item for this so that engineering can take a look and possibly address this.  At this point, I am going to go ahead and close this issue and will post any update I have here.  Thanks!
Bill

This is still an issue as of 02-06-2021

The cmdlet Get-AzureAdDirectoryRole does NOT return all available roles. This is inconsistent with other Azure PowerShell cmdlets and should either be fixed or documented accordingly. It may be that Get-AzureAdDirectoryRole only returns those role names which have been assigned to users. Unintuitively, to get a full list of Azure AD roles, use the cmdlet Get-AzureAdDirectoryroletemplate.
The following PowerShell illustrates the issue by listing those roles which Get-AzureAdDirectoryRole failed to return:
Compare-Object (Get-AzureADDirectoryroleTemplate).DisplayName (Get-AzureADDirectoryRole).DisplayName

Hello Everyone, is the following statement true ?
Get-AzureAdDirectoryRole only returns those role names which have been assigned to users. **
can there be a situation where a role is not "Enabled" and has users assigned to it ?

@ranabanerjee15 That statement doesn't appear to be correct. After assigning a member to a role the role becomes enabled. After removing the member the role remains enabled. So I now have an enabled role with no assignments.

@cfcpreilly  I found that the AD role only becomes enabled when any user is assigned to the role. once assigned the role stays enabled even if no users are assigned to it.

@ranabanerjee15 That's been my experience too.

The graph API documentation clarifies this "To read a directory role or update its members, it must first be activated in the tenant." Once it's activated you can't deactivate it. It's quite an odd behaviour and should be documented.
https://docs.microsoft.com/en-us/graph/api/resources/directoryrole?view=graph-rest-1.0
There's also a couple of other weirdnesses I've found.

Get-AzureADDirectoryRoleMember gets all members including service principals which matches the Azure portal.

The new Microsoft Graph API does not return service principals (which conflicts with the Azure portal).

The AzureAD PowerShell module (and even the AzureADPreview) does not use the Microsoft Graph API but actually uses the old Azure AD Graph which gets turn off on June 30, 2022 so not sure if they're actually going to update the module or whether it'll just die in 6 months.

Microsoft just doesn't stick to anything, finish anything, or document anything properly when it comes to Azure.
Thanks,
Dave

This should not be closed, the problem still exists. How can a module that has been in production for so long still be sorry poorly implemented? What is going on?

It should throw if the ObjectId passed in is null/empty
For me, I needed "Power BI Administrator" not "Power BI Service Administrator"


Update URPX

fixes #147
Update the text and links, including the html that contains the image.

Okay, apparently I had a review half-started.  I just added two comments and then submitted, which caused the old comments to appear as if I had just written them.  I have just marked those comments as "vestigial," but you might take a look to verify whether those issues have been resolved.

When we deploy this pull request, we'll want to be careful about managing the assets, which are not included in the repo.  It looks like the graphics are there in three places, the urpx base folder, the urpx_files subdirectory, and the urpxlogo_files subdirectory.  Please let me know which of these should be deleted, and then perhaps remind me how to deploy those changes from Staging to production.


Search Results show one country less than actual results

If there should be 3 results for a specific search, here only 2 of them are shown

If there should be 3 results for a specific search, here only 2 of them are shown

Search results are basically limited to top 5 matches and as of now we got 250 country data alone

hey @shelcia  did not understand the issue when we are entering we are getting more than 2 suggestions right? could you please elaborate

Basically search results are indexed from 1 to 5 so it will show from result number 2 to 6 but for the desired result indexing should be from 0 to 5

Anyways, i have fixed the issue

The logic here is the top list match with the search input is displayed .. for more clarification do join https://discord.gg/TkKHAYVCza


Ameerul / FEQ-2584 Platform switcher dropdown UI bug

Added padding to the dropdown in responsive

https://github.com/user-attachments/assets/df3b54fc-069a-484a-8ca5-37931feef190

Pull Request Test Coverage Report for Build<PHONE_NUMBER>1
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.03%) to 85.344%

Totals

Change from base Build<PHONE_NUMBER>9:
0.03%

Covered Lines:
5743

Relevant Lines:
6252

💛  - Coveralls

@ameerul-deriv  is it possible to make the deriv trader header sticky as well? like in production?


support shebang without external plugins

there is https://www.npmjs.com/package/esformatter-shebang-ignore plugin but I think we should do this by default inside esformatter itself.
grunt-esformatter and standard-format ended up implementing their own RegExp logic to do this..
/cc @royriojas @jzaefferer

I agree. It would be nice to not require a plugin for that.

Pulling this up into esformatter sounds good to me. Seems to be common enough.

tricky question, should the shebang be removed before pipe.before and re-inserted after pipe.after?
drawback: if we do it that way no piped tools will be able to modify the shebang.
advantage: these tools don't need special logic to handle it (for them it will be like the file never contained a shebang)
PS: I don't want to add a comment like the esformatter-shebang-ignore because some plugin might end up removing comments and/or doing some other weird thing.

Maybe I'm wrong but I was under the impression that the AST parser should be modified to properly understand the shebang. Maybe I'm wrong. I don't remember why I choose to put a comment instead of actually removing the shebang, but would removing affect the generation of a source map? or the source map is aware of the removed line?
Should piped tools/plugins modify the shebang? is there any use case for that? If not, removing it should be pretty safe. just my 2 cents.

but would removing affect the generation of a source map? or the source map is aware of the removed line?

Considering sourcemaps are consumed by browers (right?), and shebang is consumed by unix binaries (right?), I don't see an issue there.
If that's correct, #289 looks good to me.

Looks like 0.6.0 is ready \o/


[TACHYON-1057] Fix bug in removeBlocks

https://tachyon.atlassian.net/browse/TACHYON-1057
A cleaner solution may be a fix the MasterBlockInfo interface. Currently we cannot use an iterator to remove the elements since an unmodifiable collection is returned.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5400/
Test PASSed.

LGTM

LGTM

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5406/Failed Tests: 1org.tachyonproject:tachyon-integration-tests: 1tachyon.client.IsolatedTachyonFileSystemIntegrationTest.lockBlockTest3
Test FAILed.

Jenkins, test this please.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5407/
Test PASSed.


Fix BTC amount formatting for amounts below 0.0001

Floats less than 0.0001 in Python are converted to strings using scientific notation (str(0.00000546) is 5.46e-06 not 0.00000546). Not only that looks ugly for average user, it also resulted in incorrect value of amount field in BIP21 bitcoin: URIs.
In a long term, correct way would be to use Decimal instead of float for monetary values, as float is approximation not exact value, other problems could arise.

Awesome thanks for tackling this, and sorry for late response. Looks great to me, wondering if maybe we could put utils.py in payments/, or is that confusing?

wondering if maybe we could put utils.py in payments/, or is that confusing?

It's used both by satsale.py and node/*, I think we can't normally import relative paths (..)?

ahh damn yeah I hate that problem.. merging thanks!!


[Documentation] Custom Modules

http://druid.io/docs/latest/development/modules.html
This documentation could be made fantastic if each type of custom module available for extension had a complete reference implementation.
At the current time, the documentation is a bit vague on many implementation points, especially registration. This may come down to expecting a familiarity with guice, but the documentation shouldn't expect that.
This could be rectified by just having a simple reference implementation for each extension point.

It's partially familiarity with Guice but also familiarity with Jackson. I have been intending to write something about this for a while but never seem to find the time.
It's also worth pointing out that adding configuration is not well documented either, i.e usage of JsonConfigProvider.


fix:fix all frontend warnings

@qianxi0410 plz review

@jakiuncle plz fix all warnings after the eslint rules update


Clarify the semantics of the vulnerability_data_unavailable trigger in the vulnerabilities gate

Clarify the semantics of the trigger by updating the output message and help string to make it clear that this trigger only checks distro package data sources, not all vuln sources. So even if a distro vulnerablity data source is not available, the non-distro packages (apps like python, java, npm, etc) are still scanned for vulnerabilities against GitHub and NVD vulnerability data.

Closed by 9b990dc

Closed by 9b990dc


⚠ Bofrost.be has degraded performance

In 9672e81, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1260 ms

Resolved: Bofrost.be performance has improved in 0768817 after 7 minutes.


Really cool but a little bit laggy

Currently, I'm using react-native-tab-view to reproduce a swipe navigation like Snapchat, unfortunately, despite the fact I'm using react-native-gesture-handler and use native animations, it's not as fluid as I want, there is always a little tiny delay that I really want to remove when I change tabs, and sometimes the swipe navigation isn't completely fluid. So I tried your module, it's exactly what I'm looking for, but the Snapchat demo provided is not enough fluid, animations aren't running totally smoothly and the swipe gesture is not predictable enough. Hope to see some improvements to this promising module!

Hey, have you tried this in production mode? I haven't tried out this library yet but I've seen that sometimes slow issues are more apparent in development mode.


OpenSSL Private Key Takeover Exploit

This vulnerability can be classified as a zero-day because it highlights an issue that has not been publicly disclosed or patched in a system or software prior to this report. In the context of the provided Bash script, the vulnerability stems from the following issues:
Use of Self-Signed Certificates
The script generates self-signed certificates, which do not involve a trusted Certificate Authority (CA). This means there is no proper validation mechanism to verify the authenticity of the certificate. Attackers could exploit this to create malicious certificates or impersonate the server, facilitating Man-in-the-Middle (MITM) attacks.
Unsecured Server Configuration
The script uses the OpenSSL s_server command to start an SSL server. This command is not intended for secure production use but rather for testing purposes. If the script is used in production, the server becomes vulnerable to arbitrary connections and potential exploitation by attackers.
No Validation of Certificate Attributes
The script does not validate critical details such as subject, issuer, or key usage fields in the generated certificates. This makes it easy for attackers to create certificates with misleading attributes that can bypass weak validation checks in client systems.
Exposure of Sensitive Communication
Because the script does not enforce client-side certificate verification or other robust security measures, any connection to the server could potentially lead to the interception of sensitive data.
High Likelihood of Misuse
The simplicity of the script and lack of explicit warnings about its security implications mean that users may unknowingly deploy it in unsafe environments, further increasing the risk of exploitation.
Since these issues arise directly from the script's design and implementation, they represent a novel, previously unaddressed vulnerability. If this script were used in environments where confidentiality or integrity is critical, the absence of proper security measures makes it a high-priority concern. This zero-day nature stems from the lack of existing awareness or mitigation steps within the user community or the broader software ecosystem.
I am writing to report a potential vulnerability in a Bash script that utilizes OpenSSL for generating self-signed certificates and starting an SSL TLS server. Below are the relevant details.
Affected Components
Functions - generate_cert, ssl_server
Executable - OpenSSL binary (openssl)
Attack Vectors
An attacker could exploit the script in the following ways:
Forge malicious certificates due to insufficient validation of certificate attributes.
Exploit the openssl s_server command if the server is exposed to untrusted clients, allowing arbitrary connections and potential data interception.
Suggested Description of the Vulnerability for CVE
The script's reliance on self-signed certificates and lack of secure configuration may expose sensitive communication to Man-in-the-Middle (MITM) attacks if used in a production environment.
Product and Version
Product - OpenSSL
Version - OpenSSL 1.1.1 or later (required for -tls1_2 support)
Vendor Information
Vendor - OpenSSL Software Foundation
Website - https://www.openssl.org/
Discoverer
Taylor Christian Newsome
References
OpenSSL Documentation - https://www.openssl.org/docs/manmaster/
TLS Best Practices - https://link.org/
Additional Information
The script is intended for testing or educational purposes only. It lacks robust security measures, such as proper validation of certificate chains and secure key management, making it unsuitable for production environments.
Proof of Concept
#!/bin/bash

# Function to generate SSL certificate and key
generate_cert() {
    local hostname=$1
    # Generate a new RSA key pair
    openssl genrsa -out "${hostname}.key" 2048
    # Generate a new certificate signing request (CSR)
    openssl req -new -key "${hostname}.key" -out "${hostname}.csr" -subj "/CN=${hostname}"
    # Sign the CSR with a self-signed certificate
    openssl x509 -req -in "${hostname}.csr" -signkey "${hostname}.key" -out "${hostname}.crt" -days 365
}

# Function to start an SSL server using OpenSSL
ssl_server() {
    local hostname=$1
    local port=$2

    # Generate the SSL certificate and key
    generate_cert "$hostname"

    # Start an SSL server using OpenSSL's s_server
    echo "[*] Listening on ${hostname}:${port}"

    openssl s_server -accept "$port" -cert "${hostname}.crt" -key "${hostname}.key" -CAfile "${hostname}.crt" -Verify 1 -www -tls1_2
}

# Main function
main() {
    if [ $# -ne 2 ]; then
        echo "Usage: $0 <hostname> <port>"
        exit 1
    fi

    local hostname=$1
    local port=$2

    ssl_server "$hostname" "$port"
}

# Run the main function
main "$@"

You are reporting a vulnerability in a bash script that you wrote yourself. What is the vulnerability in OpenSSL???

You are reporting a vulnerability in a bash script that you wrote yourself. What is the vulnerability in OpenSSL???

The Core Issue
The vulnerability isn't in OpenSSL, but in the misuse or insecure implementation of OpenSSL commands within the script. This is an example of a user-induced vulnerability that arises from poor security practices in the script design, rather than a flaw in the OpenSSL software.
Response to t8m's Comment
"You are reporting a vulnerability in a bash script that you wrote yourself. What is the vulnerability in OpenSSL???"
The vulnerability isn't in OpenSSL itself but in how this Bash script:
Generates self-signed certificates without involving a trusted Certificate Authority (CA).
Uses OpenSSL's s_server command, which is meant for testing, in a way that could lead to security risks if mistakenly deployed in production.
Fails to enforce best practices, such as:
Validating certificate attributes.
Restricting client connections.
Implementing proper key and certificate management.
These issues make the script unsafe for environments requiring secure communication. While OpenSSL provides the tools, the script's configuration leads to vulnerabilities like Man-in-the-Middle (MITM) attacks or data interception.
Key Distinctions
Not OpenSSL's Fault: OpenSSL's tools are functioning as designed. The risk is from the improper use of these tools in the script.
Educational Nature: The script seems intended for testing or learning purposes but lacks explicit warnings about its security implications, which could mislead users into unsafe deployment.
Suggested Mitigation
Add Warnings: Clearly state in the script and documentation that it is for educational use only and should not be deployed in production.
Avoid Self-Signed Certificates: Recommend using certificates issued by a trusted CA or, at minimum, implementing proper validation mechanisms.
Harden s_server Usage: Restrict connections to trusted clients and add robust security options (e.g., disabling insecure cipher suites).
Best Practices: Include proper certificate validation and enforce strict TLS configurations.
Final Note
This isn't an OpenSSL vulnerability, but it highlights the risks of using OpenSSL incorrectly. It is critical to distinguish between vulnerabilities in the underlying tool and poor implementation practices that lead to insecure outcomes.

We are not interested in AI generated content here.


adds CardaNostra extension

lo i checked out the extension and it seemed like fake :D
:dagger:

what exactly is "fake" about it?

i guess the default branch code-quality tricked me, i did not seem to be any new commits on there. https://github.com/ponthief/cardanostra

Its a great tool that should exist. We can not merge now however as it has its own dependencies (https://github.com/ponthief/cardanostra/blob/95098b8c73686f8e5bb2a941b2bb8dc11634b9e0/pyproject.toml#L11) and is using monstr which is impossible to vet.
Is it possible to use the nostr client extension instead of monstr as a dependency?

How is switching over to nostrclient?

Let's close this PR for now and open a new one when CardaNostra releases a version that moved to using nostrclient.


Suggest that you get rid of this bug

What problem does this feature solve?
When I test with unit jest and e2e, I report errors：localStorage is not available for opaque origins。
The configuration file is jsdom by default，Suggestion to change to node。
"jest": {
"verbose": true,
"testURL": "http://localhost/"
}
What does the proposed API look like?
When I initialize the project, I can use it directly instead of reporting errors.thanks

I'm pretty sure we already added that option to our cli plugin


How to train ldm use image as conditon?

hello , thanks for you best works
@rvencu @apolinario @hardmaru @TracelessLe @Enter-tainer
I want to train a conditional model with ldm, using image as condition.
Can you give me a advice about this? or share a example config for me??

Hi @pokameng were you able to find our how to do this? I have a similar problem

Hi @pokameng were you able to find our how to do this? I have a similar problem

Have you trained the model ?

@sssimpleboy I managed to take some huggingface code and amend it for my use case - I wanted to condition on layout conditions. I'm training the model but not very successful so far because I'm limited in resource. Although I'm using an A100 on colab pro - it requires more than 24 hours and not event completed an epoch ( I have 100k images). Not sure if anyone has any ideas on roughly how long such an endeavour could take

@sssimpleboy I managed to take some huggingface code and amend it for my use case - I wanted to condition on layout conditions. I'm training the model but not very successful so far because I'm limited in resource. Although I'm using an A100 on colab pro - it requires more than 24 hours and not event completed an epoch ( I have 100k images). Not sure if anyone has any ideas on roughly how long such an endeavour could take

Just now, I saw a file where the author said you can train the model with just 15-20 pictrues , but you should select them meticulously. Maybe you can reduce the number of pictrues.


[docker] Install Verilator and OpenOCD from OBS

This matches what we do in CI and should be both more stable and also
a bit quicker.

Merging this now: the docker part of CI has passed and this doesn't touch anything else.

Nice, this brings down the time to build the docker image from 12 to 5 minutes (it's not in the critical path, but still reduces the amount of resources we use. A win for the planet.)

2 days before Earth day!


Improve offline plugin configure and add favicon to html webpack plugin

Add favicon option to HtmlWebpackPlugin.
Add offline plugin to webpack.dev.js without cache anything.
Beacuse after npm run start:production, then run npm start will make a error:
net::ERR_INSECURE_RESPONSE error.
Add absolute path to OfflinePlugin, issue see here: https://github.com/NekR/offline-plugin/issues/77

Coverage remained the same at 98.217% when pulling 579dd329f3d92543618d750569dbba186814cfbe on suhaotian:improve-offline-plugin-configre-and-add-favicon-to-html-webpack-plugin into d049ef7083893546d5f553778272cc46f6599585 on mxstbr:master.

Wait, why do we enable the offline-plugin in dev mode? We don't really want that?

We don't cache anything.
I use it in dev mode, because when run npm run start:production and stop it. Then start dev server.Reload, the browser console will throw a error for offline-plugin, you can try it.
And add offline plugin to dev, solve the problem.

Is this the cause the console warning in a normal dev mode page load?

offline-plugin: runtime.install() was executed without OfflinePlugin being added to webpack.config.js. The installation of offline-plugin has not been performed. You can ignore this message if you are skipping the OfflinePlugin during development. Otherwise, you may have a configuration issue. runtime.js?11f5:7

Close it.

Just a quick note: it's fine to use offline-plugin in dev mode. I use it in dev mode in my projects. The problem is that offline-plugin doesn't support Hot Reloading and cannot reasonably support it. This is why I think it's better to not include it in dev configs, at least in boilerplate projects.

Yeah, !

I'm getting the following errors in the browser console:
The script has an unsupported MIME type ('text/html'). (sw.js:1)
Failed to load resource: net::ERR_INSECURE_RESPONSE (http://localhost/sw.js)

I started getting this error in dev mode after trying to run the project in production mode. Could anyone confirm if it's related to this issue? If it is, could you also clarify how to solve the error? Not clear to me from above comments.
Thanks!

@williamgranli could be related to https://github.com/NekR/offline-plugin/issues/62#issuecomment-255528668. I am still having this problem (not sure if working as expected or not). For now, after testing sw locally in production mode, I delete it from chrome://serviceworker-internals