Human-readable errors

I think this might be solved at module level based on the fact that local errors aren't huge like they are on uni.
Nevertheless, worth digging into.

Currently look like this

Worth waiting until after upgrade this Fri before spending any real time on this imo

First pass is just to truncate


Route snapper behaviour around footpaths and elevated footpaths

Observed a user doing this during testing session. It wasn't super clear to the user why this happened but on actually looking at the map it makes sense (two footpaths cross one over the other).
Steps to reproduce

Navigate to https://acteng.github.io/atip/scheme.html?authority=York#17.76/53.95755/-1.09187
Try and draw a footpath route from the footpath crossing station road walk up the city wall footpath in a northerly direction

Behaviour
You get the behaviour shown because the footpath on the walls is elevated and not directly reachable on the route sketched. What we've got here is the correct behaviour I believe but it wasn't clear to a user.
Uploading atip-york-footpath.mov…

The video didn't upload (sometimes GH flakes on this); could you retry please? I got something like this, but not sure if that's the problem you mean:

Yeah i'm retrying to little avail but what you've got there is exactly what i'm describing.

Google Maps for reference: https://www.google.com/maps/dir/53.958492,-1.0905469/Cycle+Heaven,+Station+Rd,+York+YO24+1AY/@53.9572584,-1.0921919,17.17z/data=!4m10!4m9!1m0!1m5!1m1!1s0x487930550d04e92b:0x99cd6d1701efff0a!2m2!1d-1.0925836!2d53.9576762!3e2!5i1

But what should we do to explain?

I am not entirely sure at this stage, something to have a think on


now support negative random numbers like PHP

avoided using arguments, not throwing errors anymore and not force parsing.
support random negative numbers (like PHP):
lower limit and upper limits - using JavaScript's native variables (not hard-coded 0).
no access variables.

Hi, as seen above, the tests don't pass. Here's the output
ERROR: --> mt_rand#1 failed.
ERROR: expected:
1
returned:
2147483647
ERROR: --> mt_rand#2 failed.
ERROR: expected:
-37
returned:
2147483647

Hey @eladkarako, thank you so much for this PR. I am very sorry for the long wait after you put in this work. This project and my motivation were in a bad spot. I recently did a lot of work to breathe new life into it (http://locutus.io/2016/05/announcing-locutus/). As part of this I'm going over all issues and PRs now. Looking at this one, it seems to me that @kukawski had some objections. Closing this for now but feel free to re-open.


remove /api subdirectory

following #57
This PR does:

remove /api subdirectory

cc @geospatial-jeff

Codecov Report

Merging #58 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #58      +/-   ##
==========================================
- Coverage   95.43%   95.43%   -0.01%
==========================================
  Files          21       21
  Lines         942      941       -1
==========================================
- Hits          899      898       -1
  Misses         43       43

Impacted Files
Coverage Δ

titiler/utils.py
94.64% <ø> (ø)

titiler/dependencies.py
99.04% <100.00%> (ø)

titiler/endpoints/cog.py
95.05% <100.00%> (ø)

titiler/endpoints/mosaic.py
94.15% <100.00%> (ø)

titiler/endpoints/stac.py
95.59% <100.00%> (ø)

titiler/endpoints/tms.py
100.00% <100.00%> (ø)

titiler/main.py
89.13% <100.00%> (ø)

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 b3ed1d2...7a67bba. Read the comment docs.


updating master

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

merge with master


Using the library in runtime

Hi!
First of all great job with the library.
I tried the library as described and it works like a charm. It generates the pallet on build time in the file tailwind.config.js.
Now, I want to use it for a dynamic casa. I am importing the library in an AstroJS project (uses node) and want to generate the pallet from a colour from the DB. When I try to import the library I get this error:
16:35:01 [ERROR] Failed to resolve entry for package "@bobthered/tailwindcss-palette-generator". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@bobthered/tailwindcss-palette-generator" package
  Stack trace:
    at packageEntryFailure (file:///Users/lpuig/Development/turisapps_templates/template-leon/node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:46575:15)

I've never used Astro.  Do you have a repo available for me to look at?

I do not have a public project, but it is related to any node project. I did this for you to check it: https://stackblitz.com/edit/node-qzw1yd?file=index.ts
This code is working:

But, when trying to import the library, you need to reload the page for the script to run again:

Thanks.  My initial thoughts are you're importing it as a common JS import in the second image, but the rest of the file is ES6 imports ( "require" vs. "import" ).
Have you tried using the "import"?

I also tried const {   tailwindcssPaletteGenerator, } = require("@bobthered/tailwindcss-palette-generator");
I think it something related with CommonJS / ES modules thing, but I do not have much experience with the differences and the build system for libs.

I updated the build step to have both csj & esm exports.  New version is 3.3.2.  See stackblitz example below.  Let me know if that works.
https://stackblitz.com/edit/node-z6g7hv?file=package.json

Thanks a lot. I can see it works in the stack blitz with node and express. Unfortunately, it is not working completely on my project. AstroJS runs on top of Vite, probably my fault thinking it would work as in the node.
From my side, I copied your code to my project and it works great. It is not too much code. I am not stacked.
Only in case you would like to provide more flexibility to the library, I created a repo with an empty AstroJS to help: https://github.com/luispuig/test-tailwindcss-palette-generator/blob/main/src/pages/palette.ts
The error is:
Named export 'tailwindcssPaletteGenerator' not found. The requested module '@bobthered/tailwindcss-palette-generator' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@bobthered/tailwindcss-palette-generator';
const {tailwindcssPaletteGenerator} = pkg;

By the way, the proposal on the error message works.
Let me know if I can provide some extra help. Thanks!

Thanks for the feedback.  I changed the build process again.  Pushed a new version 4.0.0.  Should be all set now.


Registering service provider twice

Hi, I've checked the source code and I see that your service provider extends Illuminate\Database\DatabaseServiceProvider and calls parent::regitser
As a result Illuminate\Database\DatabaseServiceProvider; is registered twice
Are you sure this approach has no logic and performace drawbacks?

The extension of the DatabaseServiceProvider is from an old attempt and is really not required anymore. It doesn't cause any performance penalty since it just overwrites the bindings already registered by the DatabaseServiceProvider with the same ones again, but I'll fix it anyway. Thanks for the hint.

I still have a long way to go for (almost) full PostgreSQL support. Anything you are currently missing?

Anything you are currently missing?
Nothing yet. Keep up the great work!

Really loved your package, gonna try it next well.


Failed to start standalone pulsar service with tiered storage due to class not found problem

Describe the bug
Failed to start standalone pulsar service with tiered storage due to class not found problem :
ERROR org.apache.pulsar.broker.PulsarService - Failed to start Pulsar service: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.hdfs.DistributedFileSystem not found
To Reproduce
Steps to reproduce the behavior:

config hdfs tiered storage by following the steps described in https://pulsar.apache.org/docs/cookbooks-tiered-storage/, and ensure that offloader nar files in the offloader directory
2 log shows that 2 offloader nar files are loaded as :

start standalone pulsar service: ./bin/pulsar standalone
an exception is thrown

Expected behavior
service starts and runs normally at least
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS:  linux

Additional context
Add any other context about the problem here.

the same as me, i'am just follow the installed guide one by one, but it can't be work
https://pulsar.apache.org/docs/2.11.x/tiered-storage-filesystem/

I have also encountered this bug, and I will try to fix the issue.


Use constant for sampler algorithms

This fixes a bug where the sampler could not be configured.

Thank you 👍

I've pushed this fixes as 0.2.8
https://rubygems.org/gems/stability_sdk/versions/0.2.8


CSV files are not moving to desired resource directory when using before_suite or before_scenario

Related to
getgauge/gauge#586

sriv commented on Mar 7, 2017
@aredz - you need to have a dummy csv_path file present, else gauge is unable to parse the spec file.
Just to summarize:

keep a .csv file in the location you desire, (this need not have the actual data you need)
In BeforeSutie hook move the csv from the location you desire to this path.
Specs can continue to refer to table:csv_path
This should work, please post back if you have issues.

Ok, so i have multiple environments with multiple resource files and I need to run the scenarios based on the given environment
EX:
resources/dev/data.csv
resources/dev/other.csv
resources/local/data.csv
resources/local/other.csv
.........................................
Steps to reproduce

Add different parameters from <table:resources/current_env/data.csv> - i'm using the csv files as a step parameter
Create a directory to store environment resources (dev, local, production ...)
Create a current_env directory with some dummy data
in @before_suite (tried also @before_scenario) i'm copying the files from the env (dev, local,...) to current_env

Actual behavior
So the problem is that, instead of having the data from the selected environment, i have the dummy data. After the second run of the tests, the correct files are loaded (the copy operation is made after the files are read)
The same test fails also if changing between envs
If first i run the tests for Dev env and after that i'm running the tests for Local env, the content is taken from Dev env not from the Local Env
It seems that the files are loaded before @before_suite
Expected behavior
The resource files should be read after they are copied to resource directory
Gauge version

Name:
getgauge
Version: 0.3.2
Summary: Enables Python support for Gauge
Home-page: https://github.com/getgauge/gauge-python
Author: Gauge Team
Author-email<EMAIL_ADDRESS>License: MIT
Location: /home/usera/automation/venv_api_tests/lib/python3.5/site-packages
Requires: protobuf, ptvsd, redBaron, grpcio
Required-by:

Gauge version: 0.9.9
Commit Hash: 8db625f

Plugins
flash (0.0.1)
html-report (4.0.3)
python (0.3.2)
screenshot (0.0.1)
spectacle (0.1.2)

Hi Team,
Any workaround for the time being to refresh loaded csv data  ??

Please refer issues linked to this on reasons why Gauge won't support this feature.


rethinkstore, elasticsearchstore: add evidence types import

This change is

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks pending.

Comments from Reviewable


Add files via upload

Adding file for school required for the educational license.

@Uros-Katanic file/lib/domains/me/edu/ets-pg.txt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@Uros-Katanic Please provide us with:

the school official website URL
the school street address, including city and country
an URL of a page on the official website where the school offers an IT-related long-term (>1 year) course
a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.

School website: https://elektropg.online/ets/
School Street: Vasa Raičkovića br 26,city Podgorica 81000
All the users in my class on the excel table with school e mails made by
our ICT coordinator
On our school website there is all years classes courses and everything
that can only be processed with username and password
Hope that's all you need,
Sincerely,
Uroš Katanić
On Wed, Oct 9, 2024, 2:32 PM Philip Torchinsky @.***>
wrote:

@Uros-Katanic https://github.com/Uros-Katanic Please provide us with:

the school official website URL
the school street address, including city and country
an URL of a page on the official website where the school offers an
IT-related long-term (>1 year) course
a proof, which shows that the school recognizes the domain you are
submitting as an official email domain for the students.

—
Reply to this email directly, view it on GitHub
https://github.com/JetBrains/swot/pull/24192#issuecomment-2402194824,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3YQSUMGMZ66SU3DHNDP4K3Z2UO6HAVCNFSM6AAAAABPNQPOF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBSGE4TIOBSGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@Uros-Katanic Thank you! This domain is already in the trusted list. I close the request as a duplicate.


Segmentation fault on node.js 0.10.30

I'm getting the following:
$ node
> var charsetDetector = require("node-icu-charset-detector");
undefined
> var charset = charsetDetector.detectCharset(new Buffer('6d79f668e4', 'hex'));
Segmentation fault (core dumped)

node-icu-charset-detector version is 0.2.0 and system is Ubuntu.

Still happens on Node.js 6
Another test case:
charsetDetector.detectCharset(Buffer.from("ceb6de4f330820d3ffb18f704b8a42783eb6aa82", "hex"));

Valgrind stack trace:
==20478== Process terminating with default action of signal 11 (SIGSEGV)
==20478==  Access not within mapped region at address 0x10
==20478==    at 0x9BA7290: icu_50::CharsetMatch::getName() const (in /usr/lib64/libicui18n.so.50.1.2)
==20478==    by 0x9848252: CharsetMatch::GetName(Nan::FunctionCallbackInfo<v8::Value> const&) (in /path/to/node_modules/node-icu-charset-detector/build/Release/node-icu-charset-detector.node)
==20478==    by 0x98478B5: Nan::imp::FunctionCallbackWrapper(v8::FunctionCallbackInfo<v8::Value> const&) (in /path/to/node_modules/node-icu-charset-detector/build/Release/node-icu-charset-detector.node)
==20478==    by 0x8A40E1: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) (in /usr/bin/node)
==20478==    by 0x90310D: v8::internal::(anonymous namespace)::HandleApiCallHelper(v8::internal::Isolate*, v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)3>) (in /usr/bin/node)
==20478==    by 0x9039AD: v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) (in /usr/bin/node)

After some experimentation, I found that this appears to be a bug in ICU4C, not a bug in this wrapper module.  The segfault appears to have been fixed in ICU 53.  Upgrading your ICU4C installation to ICU 53 or later should fix the issue.


fix(trace.py): fix null metadata

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


Apply #[allow(dead_code)] to generated types

This prevents users from seing pointless, unsuppressible warnings in
their build

bors r+


Import: Negative shape key values clamped to 0.0.

Describe the bug
GLTF files with shape keys that are set to negative values are not respected.
When the files are imported, the values below 0.0 are clamped.
Likely as a result of the min/max values present in Blender's UI automatically performing that clamping.
To Reproduce
Here is a sample GLTF file to import which has negative shape keys for the size of the dividing screen on the desk:
Strata 360 Model 2 - Screen.zip
Expected behavior
The sample model should look like this:

That screenshot is from the 3D viewer included with Windows 10.
In Blender it looks like this:

The file when imported should show a dividing screen on the desk that's very short, but instead it is very tall in Blender.
The screen should be short because it's size is being controlled by a shape key value, which should have a value of -0.7.
But instead of this value, there is a value of 0.0, with the min/max values for the shape key likely preventing the -0.7 value:

Ideally the importer should automatically set min/max values that allow for at values as negative or positive as required to import the model correctly. In this case, setting the minimum value to -0.7.
Version

OS: Windows 10
Blender Version 2.92

This should fix it
diff --git a/addons/io_scene_gltf2/blender/imp/gltf2_blender_animation_weight.py b/addons/io_scene_gltf2/blender/imp/gltf2_blender_animation_weight.py
index ab324853..19723ed9 100644
--- a/addons/io_scene_gltf2/blender/imp/gltf2_blender_animation_weight.py
+++ b/addons/io_scene_gltf2/blender/imp/gltf2_blender_animation_weight.py
@@ -83,3 +83,10 @@ class BlenderWeightAnim():
                     group_name="ShapeKeys",
                     interpolation=animation.samplers[channel.sampler].interpolation,
                 )
+
+                # Expand weight range if needed
+                kb = obj.data.shape_keys.key_blocks[kb_name]
+                min_weight = min(coords[1:2])
+                max_weight = max(coords[1:2])
+                if min_weight < kb.slider_min: kb.slider_min = min_weight
+                if max_weight > kb.slider_max: kb.slider_max = max_weight
diff --git a/addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py b/addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py
index df59cd06..639cf491 100644
--- a/addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py
+++ b/addons/io_scene_gltf2/blender/imp/gltf2_blender_node.py
@@ -225,7 +225,10 @@ class BlenderNode():
         weights = pynode.weights or pymesh.weights or []
         for i, weight in enumerate(weights):
             if pymesh.shapekey_names[i] is not None:
-                obj.data.shape_keys.key_blocks[pymesh.shapekey_names[i]].value = weight
+                kb = obj.data.shape_keys.key_blocks[pymesh.shapekey_names[i]]
+                if weight < kb.slider_min: kb.slider_min = weight
+                if weight > kb.slider_max: kb.slider_max = weight
+                kb.value = weight

     @staticmethod
     def setup_skinning(gltf, pynode, obj):

Note that Blender only allows the range to be extended to [-10,10] at maximum though.


Error Setting

ErrorException
Attempt to read property "path_logo" on null (View: .............\resources\views\auth\login.blade.php)
muncul error seperti itu

You can try reinstall by git clone from your terminal


LFS-463: ICD-O-3-M Vocabulary does not install properly

Fixed the identifier parsing and multi-value property setting.

To get term.getLocalName() here  apache Jena utilises helper class. The algorithm tries to find the longest NCName at the end of the uri, not immediately preceeded by the first colon in the string. This operation follows XML QName rules. The ICD-O-3-M vocabulary uri does not follow the QName convention, so the identifier always ended up being an empty string and got overwritten.


iOS: Share sheet closes after tapping an app icon

When I tap the share icon on an article, and then tap on, say, Tweetbot, I’ll get the tweet preview pane. When I tap the preview pane to edit it, the whole share sheet closes — as if it were never opened.

Is this problem only happening for you when using Tweetbot?  I just tested the share sheet with Mail and Messages and it is working as intended.

Good question! It seems to happen only with Tweetbot, and only when I’ve tapped to read a web article in the app. So it only happens in the web view. Sorry; I didn’t realize that in my initial report.

On Dec 29, 2019, at 1:21 PM, Maurice Parker<EMAIL_ADDRESS>wrote:

Is this problem only happening for you when using Tweetbot? I just tested the share sheet with Mail and Messages and it is working as intended.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

It looks like this is a bug in the Tweetbot share extension.  I’m closing this issue since there isn’t anything we can do to resolve it.


Should we add components instead of scoped slots?

Currently we're using scoped slots for content and menus.
<editor>

some text

      <button @click="nodes.heading.command({ level: 1 })">
        H1
      </button>

      <button @click="marks.bold.command()">
        Bold
      </button>

</editor>

There are two limitations for doing so:

In the menububble slot we have to add a check for marks and nodes like this
. For one tick these values are null. It would be nice to render these slots only when these values are available but then we do not have access to the DOM element of this slot which is required for the menububble plugin.
Nested markup is not supported.

Maybe it would be nice to use components like this:
<editor>

  <editor-content>

some text

  </editor-content>

  <editor-menubar>
    <template slot-scope="{ nodes }">
      <button @click="nodes.heading.command({ level: 1 })">
        H1
      </button>
    </template>
  </editor-menubar>

  <editor-menububble>
    <template slot-scope="{ marks }">
      <button @click="marks.bold.command()">
        Bold
      </button>
    </template>
  </editor-menububble>
</editor>

But I'm not sure how these components will work together and sync its editor state. With provide and inject or an event bus or passing props? 🤷♂

Yeah, I was mulling this over too.  scoped slots make for big templates!!
Presumably, you could manage the state via vuex (the aforementioned event bus, effectively) on the module side.  for the clients actually developing their editors, you could expose events like @init and @update.

Well, maybe the architecture like in quasar framework WYSIWYG editor - it's quire thoughtful and adjusted to many use cases:
https://quasar-framework.org/components/editor---wysiwyg.html
BTW - I would LOVE if quasar editor would be replaced with tiptap editor...

@qyloxe Thanks for your input! I do not like to configure everything as long arrays via props. That‘s the way most of all editors are configurable and that‘s why I started creating tiptap 🙌 For me it‘s very important to have full control over markup because you can use text editors for so many different use cases today, that it differs to much.

I'm sort of putting something together that's more in keeping with injected components using prose mirror. I'll give you a shout @qyloxe if I make something public. Failing that, it's not too bad getting something up and running just using prose mirror as is in vue. Likewise @philippkuehn, if you're interested. Not a dig at your hard work, i think tiptap is decent but I couldn't figure out how to get it to do quite what I wanted it to do and my use case needs something pretty complex!

@philippkuehn OK. Those editors work this way because they want you to respond to specific events in very specific, preconfigured context. If you want to allow different architectures then assuming that user should only respond to events this is obviously wrong. I understand that you do not want only events (as a block for describing dynamic behaviour) but you want the whole architectural flexibility. And I do like it :-) I like it, because you are using ProseMirror which is designed with similar flexibility in mind and you also want to "be free". So, lets imagine the most difficult scenario and try to design the correct architecture to model it in the desired environment. I propose to design an interface for three-way merge editor with custom nodes, marks, extensions, synchronized with other collaborators, preserving versions and themable, mobile and accesible. Oh, and also print friendly and possible to configure without much programming knowledge (UI is separated from behaviour).
Let's start with something simple:
option 1 for three-way merge:

option 2 for three-way merge:

In option1 the hidden "manager" is deducted from components hierarchy. In option 2, there could be many components and every one needs to specify his own "manager" explicitly. What is "manager"? Well, in every case you will need something for event processing, context preserving, communication bus, serialization, default configuration etc. In your present architecture, you have tightly coupled presentation hierarchy and behaviour (everything is in "editor" component). What I propose is separation of "manager" and "presentation" and what is needed from you, is to decide - on the architectural level: do you prefer hierarchical coupling (option 1) or "loose" coupling (option 2)? Every next decision could be derived from that one.

@qyloxe Thanks for this write-up! Basically I'm thinking of these two solutions. I'm a fan of simplicity so I tend to option 1 even if option 2 is more "powerful". I will soon create a roadmap for v1 of tiptap and collect some features to implement and this one is definitely on the list.

@philippkuehn just $0.02 more :-) with option 1 you end up with rather closed design. Why? Because your component will be definitely used in any framework: quasar, nuxt, bulma and whatnot. When used in framework, with option 1 it is extremely hard decompose your component into said framowork architecture. With option 2 you could easily write something like this:
<pk-tiptap name="merge1" />

<q-tab>
 <q-card>
    <pk-editor role="base" manager="merge1" />
 </q-card>
</q-tab>
<q-tab>
 <q-card>
    <pk-editor role="version-1" manager="merge1" />
 </q-card>
</q-tab>
...

so, option 2 is framework agnostic. In VUE it is rather easy to write with option 2 because you could use refs or priavate (in manager context) vue event bus or even vuex BUT using vuex is not architecturally clean, because there are people who use something else for state management.
in option 2 it is easier to extend your components because one does not have to worry where he should put his component in your component hierarchy but only concentrate on following your easy and simple interface. In option 2 you need to think about structure in option 2 you can only think about interaction. In effect you will have more contributions and greater library of subcomponents, plugins, mixins and directives from community, where in option 1 you will have to "approve" or "check" every single contribution. More work IMO.
OK, it was rather $.06 ha ha

@qyloxe Good points! I think option 2 is way harder to implement but we'll see. Have to fiddle around with it.

@philippkuehn thanks! surely I plan to contribute something, because your work is remarkable and... enlightening ;)

@jaysaurus would love to hear what you trying to do! What wasn‘t possible with tiptap?

Hiya, the issue is kind of 2 fold

the slot-scope injections do not seem to allow me to update the editor with classes properly (as per my pull to you where I try and set alignment.  I have tried so many different things to update classes, all to no avail).  I'm not wholly sure that I can get the desired outcome without a fairly sizable refactor of the core of the build because I think the EditorView and State are being copied rather than referenced (since they are not updating the UI as expected).

Just a personal thing (and I must stress that I mean no disrespect - your code is excellent), I'm not a fan of "classical" formats in JS.  You may wish to investigate the compositionally-minded framework stampit as it greatly improves upon JS' difficult inheritance model should you wish to proceed in that direction.
For my sins, I much prefer using object factories; in this fashion, I believe you can reconcile ProseMirror and Vue with less complexity and play to JS' real strengths.  So it may be my own stubborn nature getting in the way as well :P

Either way, I'm midway through putting something together that only requires one simple mount and that should just work with templates etc without the need for creating lots of stuff in DOM. I'll be happy to share once I've got enough to present to you! :)  I've already got a working bubble menu (with bold and italic marks) that is written with single page templates alone.  Ideally, I just want to be able to expose the prosemirror's actual modules when and wherever they're needed rather than having the client have to dig for them.

@jaysaurus Hey, thanks for your thoughts!
To 1: I'm still not sure what you wanted to do with implementing text alignment and why it wasn't possible to add some classes. So I created a basic example for text-align on the demo page. I'm using inline styles there but you can achieve the same with adding classes. Basically I only needed to change two lines in the ParagraphNode extension to get this working.
To 2: I didn't know stampit but it really looks like Vue :) Do you mean that the extensions should be written in that format instead of JS classes?

Hiya, wow thank you for such a quick response!!
to 1. I was aiming for something node independent.  The idea being that - whatever types of block node - you could select any amount of text (be it h1, B, ul etc.) and align it accordingly.
to 2. it sort of depends on how you want to build it really! You like using inheritance models so one option is to go down the stampit route (because it gives you true composition in JS rather than JS' long-suffering attempt to pretend it's classical, which of course it isn't!)
Personally, I think we can use the Vue.js architecture as it is without introducing further complexity! I've thrown together the thing I'm working on as a generic example (apologies for the shonky css and the use of an id for a query selector, I'm really just prototyping at this stage but - hopefully - it gives you an idea of what I mean)
https://gitlab.com/jaysaurus/vue-with-prose-mirror

addendum, ahhhhhh, vis a vis my first point;
I think I see now having looked at your example.
So in theory, you'd actually have to have each node type have it's own command for handling attribute changes... I see.  I've been coming at it from the wrong angle (Prose Mirror likes to make things fiddly doesn't it haha!)

fixed in v1.0


Pennsylvania - UP Migration - Validate Test Data

User Story:
As a developer, I want thePennsylvania to validate test messages in staging, so that they can receive data in the format they expect.
Description/Use Case
[STLT] is already receiving data from the covid pipeline they will be onboarded to the UP where they will be receiving data from SimpleReport including Covid, Flu and RSV. We need to make sure the message we generate from the UP passes the STLTs validation. We can use SimpleReport to submit test messages to the STLT.
Risks/Impacts/Considerations
Dev Notes:

[x] Upload the newly created receiver settings to Staging
[x] Copy the receiver's secret key with the new receiver name in Azure's staging environment
[ ] Verify we can connect to the newly created receiver
[ ] Send a test message through Simple Report and make sure it gets routed to the STLT
[ ] Send test messages according to the STLT needs

Acceptance Criteria

[ ] Created and sent data using Simple Report
[ ] Confirmed with STLT that data passes validation

Requirement:
https://cdc.sharepoint.com/:w:/r/teams/ReportStream/_layouts/15/Doc.aspx?sourcedoc={A78F3B32-D78E-437B-A2EB-977C89B13713}&file=Pennsylvania - Onboarding Running Notes.docx&action=default&mobileredirect=true

Email from Glenn.
https://outlook.office365.com/mail/id/AAQkADY2ODFiNTg0LWYyZTItNDc0Ny1hNTg4LTdhYzAzOWVmYTczMgAQAMcBujbb6KhEgBM%2Bqaq91Do%3D

There are two documents to fill out and submit to PA for validation.
Test list.xlsx - fill out the Performance LOINC codes that we will send to them. Note, column C is Test Performance LOINC codes
MU_Message_Validation_Tracking.xlsx - this file is for test messages tracking.  Note,  column 'B' is Message ID (MSH-10) of every sample messages that we are going to submit to them.

Here TestList.xlsx fillled and MU_message_Validataion_Tracking.xlsx
MU_Message_Validation_Tracking.xlsx

Victor sent all the messages for validation to them 10/1/2024

Pennsylvania we need to suppress AOEs from being sent to them

Spillover Reason: PA is requesting more messages and changes.


--package-root has disappeared from dart exe

I've just upgraded to dart 2.9 and found that the --package-root switch seems to have been removed from the dart command
I use the --package-root with my project dshell:
https://pub.dev/packages/dshell
I'm hoping this was a mistake or else there is an alternate method of doing this?
Dart 2.8 shows:
dart --help
Usage: dart [<vm-flags>] <dart-script-file> [<script-arguments>]

Executes the Dart script <dart-script-file> with the given list of <script-arguments>.

Common VM flags:
--enable-asserts
  Enable assert statements.
--help or -h
  Display this message (add -v or --verbose for information about
  all VM options).
**--package-root=<path> or -p<path>**
  Where to find packages, that is, "package:..." imports.
--packages=<path>
  Where to find a package spec file.

Dart 2.9 shows
dart --help
Usage: dart [<vm-flags>] <dart-script-file> [<script-arguments>]

Executes the Dart script <dart-script-file> with the given list of <script-arguments>.

Common VM flags:
--enable-asserts
  Enable assert statements.
--help or -h
  Display this message (add -v or --verbose for information about
  all VM options).
--packages=<path>
  Where to find a package spec file.
--observe[=<port>[/<bind-address>]]

The --package-root has effectively been deprecated since .packages was introduced, and was not supported by most of the Dart tools.
We have now introduced another format for the package resolution file (the .dart_tool/package_config.json file, which is, as the name suggests, a JSON file). You will need to use that file in the future, it's the only way to get language versioning to work, which is needed to migrate to null safety. Because of that, we have now removed the last vestiges of package-root support.
The alternative is to create a package_config.json file. You can read and write it using the package:package_config package.

Thanks for the response.
So I'm a little confused by the statement:

The Pub tool automatically generates this file (just like it previously generated the .packages file, and actually still does for migration purposes, even though that file will stop working correctly when we release Dart 2.10).

Which file are you referring to?
If you are referring to the 'package_config.json' file then I'm doubly confused as you seem to be saying to use it but that it will be deprecated in 2.10.
Or do you mean that the .packages file will stop working in 2.10. That probably makes more sense.
I've been using the --package-root flag to tell dart to find the packages in a directory other than the standard locations.
A core concept behind dshell is to allow a user to create a 'single file' dart script.  Dshell does this by generating the pubspec.yaml and associated tooling in a different directory to the dart script and uses -package-root to tell dart where to find these files.

OK, panic averted.
I though this changed had completely broken dshell :<
But i've just change to --package and all works as before.
Thanks for the prompt response.


Incomplete code

the nft and some code are missing

The codebase has been updated to v2, where the NFT.sol and NFTMarketplace.sol has been merged into one single file, along with tweaks here and there to the rest of the files as in this commit.


NntpClient.Compression

I started messing around with the calls in NntpClient.Compression.  What were your thoughts on handling the responses and decompression?

I have a sort of working solution somewhere in the form of an NntpDecompressingConnection which implements INntpConnection but I was not satisfied with it because it had to read the entire response in memory using a blocking read with timeout. I didn't fit my desire to be able to process all response streaming. Also there is no single standard for compression. yEnc is used (astraweb) but also zlib deflate is used by others. I intend to look into it later. First I want to add yenc encoding en nzb upload.

I added the file as a gist if you are interested. You will need the SharpZipLib.NETStandard nuget package for this to work.

Thanks, I'll check it out.  I was decompressing astraweb yenc with decompress in System.Compression but I upgraded the projects to NetCore 2.0.


Feat/add new insert point function

Description
Add different arguments for inset point function

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

issue: https://github.com/autowarefoundation/autoware.universe/issues/596


Create new items

Viking Helm of Word War Domination
The Ring of the ML
Charm: Earmuffs of Ignoring Timmy
Weapon: Traveling Shovel of Death

Set B
amulet:
boots: Boots of Plot Treading
charm: Lucky Plot Bunny's Foot
gloves: Gloves of Continued Writing
helm: Halo of Grand Giving
leggings: Pants of Pantsing
ring: Ring of Fast Typing
shield:
tunic: Tunic of a Wrimo Winner
weapon: Word Sprint, Slayer of Words

Set C
amulet: Blessing of Timmy the Dinosaur Wrangler
boots:
charm:
gloves:
helm:
leggings:
ring:
shield:
tunic:
weapon:

Set D
amulet:
boots:
charm: Blessing of the ML
gloves:
helm: Viking Helm of Wordwar Domination
leggings:
ring:
shield:
tunic:
weapon: Traveling Shovel of Death


Fixed the bug in social media icons + Added instructions to customize the template in readme.md

For issue#27, we have also done the following things -

Fixed responsiveness in mobile view
Centered pod title
Centered submit button in the contact form
Added dark mode for pod member cards
Removed some commented code


🐛 Bug Report: BackendPluginManager watching too many files

📜 Description
The backend-plugin-manager watches for file changes in the dynamic plugins root folder.
However when watching for changes, it doesn't limit the depth, so that with many dynamic plugins having private dependencies, watching can produce the following errors:
2023-10-13T14:48:21.609Z backstage error error while watching '/opt/app-root/src/dynamic-plugins-root' ENOSPC: System limit for number of file watchers reached, watch '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js' errno=-28 syscall=watch code=ENOSPC path=/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js filename=/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js stack=Error: ENOSPC: System limit for number of file watchers reached, watch '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js'
    at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
    at Object.watch (node:fs:2418:34)
    at createFsWatchInstance (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:119:15)
    at setFsWatchListener (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:166:15)
    at NodeFsHandler._watchWithNodeFs (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:331:14)
    at NodeFsHandler._handleFile (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:395:23)
    at NodeFsHandler._addToNodeFs (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:637:21)
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js'
    at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
    at Object.watch (node:fs:2418:34)
    at createFsWatchInstance (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:119:15)
    at setFsWatchListener (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:166:15)
    at NodeFsHandler._watchWithNodeFs (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:331:14)
    at NodeFsHandler._handleFile (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:395:23)
    at NodeFsHandler._addToNodeFs (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:637:21) {
  errno: -28,
  syscall: 'watch',
  code: 'ENOSPC',
  path: '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js',
  filename: '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js'
}

We should limit the folder depth where the backend-plugin-manager is watching for file changes.
👍 Expected behavior
It should watch the changes without producing any error.
👎 Actual Behavior with Screenshots
2023-10-13T14:48:21.609Z backstage error error while watching '/opt/app-root/src/dynamic-plugins-root' ENOSPC: System limit for number of file watchers reached, watch '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js' errno=-28 syscall=watch code=ENOSPC path=/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js filename=/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js stack=Error: ENOSPC: System limit for number of file watchers reached, watch '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js'
    at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
    at Object.watch (node:fs:2418:34)
    at createFsWatchInstance (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:119:15)
    at setFsWatchListener (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:166:15)
    at NodeFsHandler._watchWithNodeFs (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:331:14)
    at NodeFsHandler._handleFile (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:395:23)
    at NodeFsHandler._addToNodeFs (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:637:21)
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js'
    at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
    at Object.watch (node:fs:2418:34)
    at createFsWatchInstance (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:119:15)
    at setFsWatchListener (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:166:15)
    at NodeFsHandler._watchWithNodeFs (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:331:14)
    at NodeFsHandler._handleFile (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:395:23)
    at NodeFsHandler._addToNodeFs (/opt/app-root/src/node_modules/chokidar/lib/nodefs-handler.js:637:21) {
  errno: -28,
  syscall: 'watch',
  code: 'ENOSPC',
  path: '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js',
  filename: '/opt/app-root/src/dynamic-plugins-root/plugin-techdocs-backend-wrapped-dynamic-1.7.1-dynamic.0/node_modules/lodash/zip.js'
}

👟 Reproduction steps

setup the backend-plugin-manager to support dynamic backend plugins (see readme)
Add quite a number of dynamic plugins in the dynamic plugins root with a great number of private dependencies
See the error happening from times to times in the logs, according to the value of the fs.inotify.max_user_watches on a the system.

📃 Provide the context for the Bug.
No response
🖥 Your Environment
Error happens on Linux.
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
Yes I am willing to submit a PR!

Thanks for reporting this @davidfestal! Assigning this to you - feel free to go ahead with a PR :)

Thanks for reporting this @davidfestal! Assigning this to you - feel free to go ahead with a PR :)

That's planned already. Just have to find the time :-)

Thanks for reporting this @davidfestal! Assigning this to you - feel free to go ahead with a PR :)

That's planned already. Just have to find the time :-)

Done in PR #20755

Fixed in PR #20755


Throttle jenkins load

When submitting a large number of benchmark jobs, the tool pushes all jobs to jenkins immediately.
Implement limits for the number of jobs (scala builds, benchmark runs) passed to jenkins.

Fixed in https://github.com/scala/compiler-benchq/commit/1a4e6fc5b6b0e1f4673f70e173fb4eaac4888410


Added best-practice for Version Control branching

The text looks good. Awaiting confirmation that images are correct before merging.

Added 'tips and tricks' section after customer feedback. Feel free to adjust phrasing.
Ready to merge from my perspective.


to_csv should just simply be using multiple cores especially if I export it to  multipel CSV

Describe the issue:
to_csv should just simply be using multiple cores especially if I export it to  multipel CSV
ddf.to_csv('mydata/myfile-*.csv', index=False) it exports with the same speed as single file export.
ddf.to_csv('myfile.csv', index=False)  it tis super slow as well.
DASK exist to give an easy big data alternative to spark.
I dont ever wat to see code like this
import dask.bag as bag
import json
b = bag.from_filenames('input.json.gz').map(json.loads).map(manipulate).concat()
b.map(lambda t: ','.join(map(str, t)).to_textfiles('out.*.csv').compute()

I have read about https://docs.dask.org/en/latest/dataframe-parquet.html this does not answers the question that for exporting multiple to CSV files via to_csv  DASK should use all the avilable cores 100% percent like modin.

Hi @stromal, the speed that Dask executes a computation is dependent on many things. The first thing that comes to mind is the size of the dataset. If the dataset is not very large then it's unlikely you'll see speed ups from parallelized computation. This topic is more of a discussion (as opposed to an issue with dask itself), perhaps it should be moved to a post on Dask's discourse: https://dask.discourse.group

Closing due to lack of response. Feel free to reopen if you'd like to reengage


Eagerly deploy proxyAdmin upon publish

The proxyAdmin instance is being deployed lazily when the first proxy is created. This makes it difficult to create a Solidity "proxy factory" that creates upgradeable instances and assigns them to the proxyAdmin, since a random proxy must be created first in order to set it up.
Instead, when the project is published, let's eagerly create the proxyAdmin.

The flag --deploy-proxy-admin for push handles this


Vertically align reset?

I find myself using this a lot:
vertically-align-reset()
  position relative
  top auto
  transform translateY(0)

Is there someway that vertically-align() could be edited so that passing vertically-align(reset) would do the above?

Yeah maybe we could have passing false to vertically-align make it reset?

That'd be great. I'm not sure how to write it but I can research it, unless you know off the top of your head.

Just pull down the source code, do a search for vertically-align, bam there it is :grinning:

Haha. No, i got that I meant writing the mixin itself passing the conditional. But i'll figure it out.

Oh just run an if-else check right at the beginning for that parameter. If false, run the reset, else do it normally.

Think I got it:
http://codepen.io/dbox/pen/jPPrKW

Looks good to me! PR that in : )
On Thu, Apr 30, 2015 at 6:29 AM Daniel Box<EMAIL_ADDRESS>wrote:

Think I got it:
http://codepen.io/dbox/pen/jPPrKW
—
Reply to this email directly or view it on GitHub
https://github.com/jenius/axis/issues/177#issuecomment-97665779.


Create articulation_expression_swap

Replaces the selected articulation with the selected expression (or vice versa) for the full document if a region is not selected.

This repo uses snake-case for function names as well as variable names.
You should check for 0 on return from DisplayArticulationDialog and DisplayExpressionDialog. 0 means the user canceled out of the dialog.
I'm guessing you only want to allow text expressions. That means you need to check the 2nd return value of DisplayExpressionDialog and reject the result if it is true. Otherwise, you need to track the 2nd return value through your code so that you actually retrieve the appropriate shape expression. (Remember that text and shape expressions are numbered separately starting from 1.)
Be aware that both DisplayArticulationDialog and DisplayExpressionDialog allow the user to modify the articulation and expressions lists, respectively. Consider placing those calls in their own Undo block separate from the run function.
Since you are using the string-valued initializer for FCString there should be an appropriate MinJWLuaVersion.

Hi @MuseCraft-Studio. Hope you don't mind but I needed some coding recreation and have implemented some of @rpatters1 's suggestions to your script. (But not isolated Display[X]Dialog in a separate Undo block). And done a bit of streamlining.  Will there be updates?

I got the script updated with all of the feedback, but after I couldn't find comparable examples of the undo block for the articulation/expression dialog, I got a bit distracted with other things. I'm happy to just push Carl's version (which also doesn't have the undo blocks)

I'd say push the changes. The separate undo block is optional.


How to utilize the created image from capture() in an  component?

I apologize if this is a dumb question, but after having captured an image with the camera API, I am trying to figure out a simple way to display it. My first thought is to use an <Image/> tag, but due to the base-64 nature of the image and the filename used (which does not end with an extension), the <Image/> component does not know how to read the data produced.
Is there a way to get the capture() method to return a file that is properly encoded in .png or .jpeg on the filesystem so that it can easily be loaded for view? Otherwise the only approach I can think of is to btoa() the image and upload it to a server as a .png file, which seems like a lot of extra work.
Thanks for your efforts on this fine project and please excuse my lack of knowledge in this area.

Ah, sorry, I see this bug is the same as https://github.com/lwansbrough/react-native-camera/issues/26 . I think it would be very helpful to add this to the README.md
Thanks for all your work on this.


Qwen2-VL-2B 微调后推理效果不佳

您好，
我使用自己的数据集尝试微调 Qwen2-VL-2B，数据集为单轮图文对话，英文文本描述较简单，为图像类别描述的直译，且格式固定。使用 swift 微调 lora 后在验证集上的 token-acc 达到0.98，对应的 sentence-acc 为0.76左右（尝试过其他同等大小的模型，sentence-acc可以达到0.9），设置了 SIZE_FACTOR=8，MAX_PIXELS=602112。问题总结如下：

在验证集上的推理结果中出现了回复包含中英文的混合情况，但微调数据集中不包含中文描述。
推理结果并没有按照微调数据集中的给出固定格式输出，会存在语序调换、某个词语替换、自行添加标点符号的情况。

请问出现这些现象的可能原因是什么呢，以及我该如何处理来避免这些问题。

请问你是如何微调的？使用的什么代码？

Thank you for your support of Qwen2_VL. The main reason for the poor fine-tuning performance is that the 1D rope position embedding, rather than MRoPE, was used during training. We will provide a solution as soon as possible, and we apologize for the inconvenience caused.

Thank you for your support of Qwen2_VL. The main reason for the poor fine-tuning performance is that the 1D rope position embedding, rather than MRoPE, was used during training. We will provide a solution as soon as possible, and we apologize for the inconvenience caused.

Thanks for your reply, I will continue to follow Qwen2_VL.

Thank you for your support of Qwen2_VL. The main reason for the poor fine-tuning performance is that the 1D rope position embedding, rather than MRoPE, was used during training. We will provide a solution as soon as possible, and we apologize for the inconvenience caused.

请教下这里的training用1D rope指的是哪个阶段的training哈？ 原始的qwen2文本模型吗？

同问，微调qwen2vl模型感觉效果提升不是很明显，同时微调之后的模型用beam_search推理的部分结果还比较离谱，不如sample的结果，有点奇怪


ES Content Update should trigger Notable Events when enabled (and possibly Risk Analysis as well)

Only 6 out of the 345+ correlation rules in ESCU are currently configured to trigger a Notable adaptive action.

For risk it's:

Hello,
we have the same problem. In our instance, we have 61 ESCU rules that not trigger a Notable Event on ES and 305 rules that not trigger the Risk Analysis.

Could you please indicate us what it depends and how to get all the notable events enabled?
Thank you

Adding a bit. Some ESCU does not enabled are related to the recent O365 Correklations Searches

Hi Tyrell20,
They are Adaptive Response Actions and you can set those up in the Splunk Web GUI (Enterprise Security -> Configure -> Content -> Content Management) or in the savedsearches.conf configuration file of the relevant correlation search section in DA-ESS-ContentUpdate application for those that are enabled (or that you want to enable).

Here's an example using "ESCU - Any Powershell DownloadFile - Rule":
By default
[ESCU - Any Powershell DownloadFile - Rule]
disabled = 0

After adding the "Trigger Notable" Adaptive Response action
[ESCU - Any Powershell DownloadFile - Rule]
action.correlationsearch.annotations = {"analytic_story":["Malicious PowerShell"],"kill_chain_phases":["Exploitation"],"mitre_attack":["T1059.001"]}
action.customsearchbuilder.spec = {}
action.notable = 1
action.notable.param.rule_description = The following analytic identifies the use of PowerShell downloading a file using `DownloadFile` method. This particular method is utilized in many different PowerShell frameworks to download files and output to disk. Identify the source (IP/domain) and destination file and triage appropriately. If AMSI logging or PowerShell transaction logs are available, review for further details of the implant.
action.notable.param.rule_title = ESCU - Any Powershell DownloadFile
action.notable.param.security_domain = threat
action.notable.param.severity = high
action.risk.param._risk = [{"risk_object_field":"","risk_object_type":"","risk_score":1}]
action.risk.param._risk_score = 0
alert.suppress = 0
disabled = 0

The process is roughly the same for Risk Analysis.
Of course that can also be scripted by manipulating the configuration file in question or using the Splunk REST API/SDK if you don't want to add that manually to all of them one by one.
I also expect the team managing this project will fix this issue before long.

@Tyrell20 I believe this was a bug in how we were generating the package, but now it should be solved, every detection in savedsearches.conf is now configured to generate a notable:
https://raw.githubusercontent.com/splunk/security_content/develop/dist/escu/default/savedsearches.conf
action.notable = 1
action.notable.param.nes_fields = ['user']
action.notable.param.rule_description = This search will detect users creating spikes of API activity in your AWS environment.  It will also update the cache file that factors in the latest data. This search is deprecated and have been translated to use the latest Change Datamodel.
action.notable.param.rule_title = Detect Spike in AWS API Activity
action.notable.param.security_domain = network
action.notable.param.severity = high

Feel free to reopen if you are still hitting this bug on the latest ESCU app.


Ig nextpage fix

Category
This change is exactly one of the following (please change [ ] to [x]) to indicate which:

[X] a bug fix (Fix #500)

Description
The ripper can now generate the x-instagram-gis header and send it when ever we fetch a new page
Testing
Required verification:

[ ] I've verified that there are no regressions in mvn test (there are no new failures or errors).
[ ] I've verified that this change works as intended.

[ ] Downloads all relevant content.
[ ] Downloads content from multiple pages (as necessary or appropriate).
[ ] Saves content at reasonable file names (e.g. page titles or content IDs) to help easily browse downloaded content.

[ ] I've verified that this change did not break existing functionality (especially in the Ripper I modified).

Optional but recommended:

[ ] I've added a unit test to cover my change.

Coverage increased (+0.02%) to 32.34% when pulling 73478344d8d5c6f43b55d134e727b6d8dc48452e on cyian-1756:ig-nextpage-fix into 23fee2779200020b876b93395b73e804d6a69f3f on RipMeApp:master.


Adding mention of quirky behavior to the ReoderableListView API docs

Fixes https://github.com/flutter/flutter/issues/127901
Pre-launch Checklist

[X] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[X] I read the Tree Hygiene wiki page, which explains my responsibilities.
[X] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[X] I signed the CLA.
[X] I listed at least one issue that this PR fixes in the description above.
[X] I updated/added relevant documentation (doc comments with ///).
[X] I added new tests to check the change I am making, or this PR is test-exempt.
[X] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Here's an updated version of the example with some simplifications, some gratuitous changes, and a fix for the strange background color behavior of the list item that appears in the "gap".
https://dartpad.dev/?id=7e0a38380d059058b71d6e7b03b9cd6d

Wow nice, looks so much better!! I will add it to the PR

This just came up during a triage meeting. I looked at the original issue, I think we can fix this instead.

Closing this one as per the previous comment.


Socketpair test

Socket Pair seems to deadlock (or more explicitly a close of a socket with a simultaneous read) on develop. I believe dashmap should resolve this.
I added a testcase to the branch socketpairtest. Let's test this out post dashmap merge and see if it works correctly. If so, lets add it to the test suite.

I tried to run this test but it is deadlocking.

The issue we found with socketpair is a concurrency issue where the sending sockobj needs to be closed to send the message but the read syscall on the receiving sockobj gets reached first. The sockobj read is a lock read so only other read syscalls can be done on the sockobj so when the parent tries to close and write to the sockobj, it cant due to the deadlocking caused by the read lock.  So the message was not sent and the read is left waiting for nothing.
Here: https://github.com/Lind-Project/safeposix-rust/blob/main/src/safeposix/syscalls/net_calls.rs at line 566 you'll see the read lock
Here: https://github.com/Lind-Project/safeposix-rust/blob/6d1e0d6e7963d2b7894c1a1f35e177f11c2ca7d7/src/safeposix/syscalls/fs_calls.rs at line 1272, you'll see the write to the sockobj

Rustposix shutdown issue
Each socket file descriptor contains a reference to an underlying sockobj, which contains all of our non-fd-specific lind metadata about the socket as well as the actual native socket descriptor within it.
These sockobjs, in order to be safe, need to be rwlocked in rust, and there are other reasons why we might want this to be true (we do some checks for i.e. sockopt options, socket type. etc. on entry into the recv syscall, and don’t want those to be modified before or during the actual blocking syscall).
However, this causes an issue with shutdown, which is that while a sockobj is locked within a blocking recv call, we are unable to acquire rwlock around the sockobj for writing. This leads us to be entirely unable to shutdown these sockets, which is obviously not ok.
Closing is not a problem if we change sockobj cleanup to happen on the drop of an Arc rather than on the actual last close, which cleans some things up anyway.
The question then is how to solve this.
Do we unsafely access the socket’s inner contents in shutdown, opening us up to race conditions?
Do we actually recv with a timeout in a loop?
Do we figure out how to interrupt threads doing those blocking reads?
Do we try to lock the underlying native fd differently to the rest of the sockobj? This is also very fraught and would require unsafeness.

We're going to need to make blocking recv's timeout in a loop for cancellation to work properly. So if that also serves as a solution to this, that's great. If we do that can the rest of this be solved?

Finally fixed with the recent merge. @jesings can you also PR the socketpair test to lind_project? Then ill close this.


Updating version to .NET Core 3.1

Since clean developer machines no longer contain .NET Core 2. I've upgraded all the bits to .NET Core 3.
Please let me know what I can do to get this change in.

Thanks for the PR. We are going to make this change because the .NET Core version we're using is now out of support. However, we need to do some testing and investigation because this will be a breaking change. This work has been added to the team backlog and will be going through triage. Thanks again!

Let me in the meanwhile resolve the dependencies and add what testing I've done myself

This is certainly the right direction, but we need to be a bit careful here because we have instructed folks to run wget -qO- https://aka.ms/install-artifacts-credprovider.sh | bash which will automatically pull the latest.  If they have dotnet 2 installed, then this is working fine.  But, if we bump our build to build against dotnet 3 and they don't have it installed, then those (CI?) builds will start failing all of a sudden.

Any movement here? This has been a big problem for our team.

This is certainly the right direction, but we need to be a bit careful here because we have instructed folks to run wget -qO- https://aka.ms/install-artifacts-credprovider.sh | bash which will automatically pull the latest. If they have dotnet 2 installed, then this is working fine. But, if we bump our build to build against dotnet 3 and they don't have it installed, then those (CI?) builds will start failing all of a sudden.

@johnterickson yes, builds will fail, but it should be easy to add a check in https://github.com/microsoft/artifacts-credprovider/blob/master/helpers/installcredprovider.sh to make sure the SDK is available in /usr/local/share/dotnet (or $DOTNET_ROOT on Azure DevOps). Then the build output can give easy-to-follow guidance to fix the situation.
You'll also want to bump to .NET 6, since that is the only fully supported SDK version on M1 right now, and is your best bet for proper support for users on newer Macs.

@satbai I see you are working on this in https://github.com/microsoft/artifacts-credprovider/commits/users/satbai/netcoreversion. Please increase the TargetFramework from .NET Core 3.1 to .NET 6 to better support M1 users. Thanks!


İsmet yanık

Description
Environment

Browser: Chrome
Wallet: MetaMask
Chain: Rinkeby

Steps to reproduce

Go to

Expected result
Obtained result
Screenshots

Please stop spamming, otherwise we'll have to block you.


Add git branch -M main

In the Github basics lesson,  there is a step missing between steps 10 and 11. This is because the default branch name for new repositories is now main.
We need to include an additional step instructing the users to run git branch -M main
Close #508

Thank you for this! Todo: I will test the flow and then we will want to edit translations

hi, I don't think this is necessary; the instructions walk the user through creating a branch named 'main' all along.

Hi. Sorry, I must be doing something wrong then.
I've tried this again, and the default branch that gets created locally for me really is master:

Only when I do what is descried in GitHub's documentation does this work:

Hi. Sorry, I must be doing something wrong then.
I've tried this again, and the default branch that gets created locally for me really is master:
Only when I do what is descried in GitHub's documentation does this work:

hi, I think I see what's happening - we have all set our initial branch creation to be 'main' - this was a change that happened a while ago. Now we assume that folks are creating all new branches beginning with 'main' - probably not a good assumption but it's slowly becoming more mainstream I think


[fix] [test] flaky test AdminApi2Test.resetClusters

Fixes #18029

#18029

Motivation
When the AdminApi2Test is executed, there have many test methods. When the next method is run, there may be an ongoing but unfinished NamespaceService.onNamespaceBundleOwned(), which will create system topic __change_event, if the instruction namespace.delete() is executed at the same time, the problem occurs.
Modifications
Create a new class CanPausedNamespaceService.java witch can stop the subsequent execution of NamespaceService.onNamespaceBundleOwned(). Then, if we want to do namespace.delete(), we will do pause first.
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

https://github.com/poorbarcode/pulsar/pull/25

Codecov Report

Merging #18043 (e55da67) into master (6c65ca0) will increase coverage by 35.83%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #18043       +/-   ##
=============================================
+ Coverage     34.91%   70.74%   +35.83%
+ Complexity     5707      437     -5270
=============================================
  Files           607       26      -581
  Lines         53396     2246    -51150
  Branches       5712      245     -5467
=============================================
- Hits          18644     1589    -17055
+ Misses        32119      484    -31635
+ Partials       2633      173     -2460

Flag
Coverage Δ

unittests
70.74% <ø> (+35.83%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...broker/delayed/InMemoryDelayedDeliveryTracker.java

...rg/apache/pulsar/broker/service/BrokerService.java

.../service/SystemTopicBasedTopicPoliciesService.java

...g/apache/pulsar/compaction/CompactedTopicImpl.java

.../main/java/org/apache/pulsar/io/kinesis/Utils.java

.../apache/pulsar/broker/service/EntryBatchSizes.java

...o/hdfs3/sink/seq/HdfsAbstractSequenceFileSink.java

...rg/apache/pulsar/io/hdfs2/sink/HdfsSyncThread.java

...ava/org/apache/pulsar/io/kafka/KafkaBytesSink.java

...pendingack/TransactionPendingAckStoreProvider.java

... and 571 more

/pulsarbot rerun-failure-checks


Add challenges

Got as far as I can without knowing how the data will be structured.

I am gonna update it slightly to simplify it and put begin and end date.  I don't want to allow selection of metric to track nor which sports included yet as that opens up a whole other can of worms that impedes with he current model.  For now, I just want to be able to add challenges, list challenges and select a challenge to be the active one.  First thing a user must do is select a challenge, then they can join a team or post a workout.

We should also put the challenge a user is in highlighted in the header bar somewhere so they always know what challenge they are in.


0.77.2: ECOVACS Deebot Ozmo 930 - Invalid Config

Hi guys, hi @OverloadUT,
thanks for your hard work!
I would like to use the new ecovacs component to control my Deboot Ozmo 930 with HA.
I added the component in configuration.yaml, but it didn't work:
#Ecovacs Deebot
ecovacs:
  username: !secret ecovacs_email
  password: !secret ecovacs_pwd
  country: it
  continent: eu

From UI log:
call to GetDeviceList failed with {'todo': 'result', 'error': 'auth error', 'result': 'fail', 'errno': 1004}
Debug and Traceback:
2018-08-31 08:02:13 DEBUG (Thread-19) [sucks] calling main api user/login with (('account', 'xx/KO//xx='), ('password', 'xx/xx='))
2018-08-31 08:02:22 DEBUG (Thread-19) [sucks] got {'data': {'accessToken': 'xx', 'uid': 'xx', 'username': 'xx', 'country': 'it', 'email': 'xx'}, 'msg': '操作成功', 'time':<PHONE_NUMBER>974, 'code': '0000'}
2018-08-31 08:02:22 DEBUG (Thread-19) [sucks] calling main api user/getAuthCode with (('uid', 'xx'), ('accessToken', 'xx'))
2018-08-31 08:02:23 DEBUG (Thread-19) [sucks] got {'data': {'authCode': 'it_xx', 'ecovacsUid': 'xx'}, 'msg': '操作成功', 'time':<PHONE_NUMBER>249, 'code': '0000'}
2018-08-31 08:02:23 DEBUG (Thread-19) [sucks] calling user api loginByItToken with {'userId': 'xx', 'token': 'it_xx', 'resource': 'MH39QC5P', 'realm': 'ecouser.net', 'country': 'IT'}
2018-08-31 08:02:24 DEBUG (Thread-19) [sucks] got {'todo': 'result', 'result': 'ok', 'resource': 'MH39QC5P', 'token': 'xx', 'userId': 'xx'}
2018-08-31 08:02:24 DEBUG (Thread-19) [sucks] EcoVacsAPI connection complete
2018-08-31 08:02:24 DEBUG (Thread-19) [sucks] calling user api GetDeviceList with {'userid': 'xx', 'auth': {'userid': 'xx_xx', 'resource': 'MH39QC5P', 'with': 'users', 'token': 'xx', 'realm': 'ecouser.net'}}
2018-08-31 08:02:25 DEBUG (Thread-19) [sucks] got {'todo': 'result', 'error': 'auth error', 'result': 'fail', 'errno': 1004}
2018-08-31 08:02:25 ERROR (Thread-19) [sucks] call to GetDeviceList failed with {'todo': 'result', 'error': 'auth error', 'result': 'fail', 'errno': 1004}
2018-08-31 08:02:25 ERROR (MainThread) [homeassistant.setup] Error during setup of component ecovacs
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/ecovacs.py", line 58, in setup
    devices = ecovacs_api.devices()
  File "/srv/homeassistant/lib/python3.5/site-packages/sucks/__init__.py", line 192, in devices
    'resource': self.resource
  File "/srv/homeassistant/lib/python3.5/site-packages/sucks/__init__.py", line 173, in __call_user_api
    "failure {} ({}) for call {} and parameters {}".format(json['error'], json['errno'], function, params))
RuntimeError: failure auth error (1004) for call GetDeviceList and parameters {'userid': 'xx', 'todo': 'GetDeviceList', 'auth': {'userid': 'xx', 'resource': 'MH39QC5P', 'with': 'users', 'token': 'xx', 'realm': 'ecouser.net'}}

 - [ecovacs](https://home-assistant.io/components/ecovacs/)

Please check your config., notification_id=invalid_config, title=Invalid config>
2018-08-31 08:02:25 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state persistent_notification.invalid_config=notifying; message=The following components and platforms could not be set up:

 - [ecovacs](https://home-assistant.io/components/ecovacs/)

Thanks for any help

I am receiving the same error when using the Ecovacs Component
I have a Deebot N95S
Config:
ecovacs:
  username: xx
  password: xx
  country: us
  continent: na

2018-09-02 15:52:22 DEBUG (SyncWorker_0) [sucks] got {'code': '0000', 'msg': '操作成功', 'time':<PHONE_NUMBER>925, 'data': {'authCode': 'us_xx', 'ecovacsUid': 'xx'}}
2018-09-02 15:52:22 DEBUG (SyncWorker_0) [sucks] calling user api loginByItToken with {'country': 'US', 'resource': 'VTQMRDX1', 'realm': 'ecouser.net', 'userId': 'xx', 'token': 'xx'}
2018-09-02 15:52:23 INFO (MainThread) [homeassistant.setup] Setting up tts
2018-09-02 15:52:23 DEBUG (SyncWorker_0) [sucks] got {'todo': 'result', 'result': 'ok', 'userId': 'xx', 'resource': 'VTQMRDX1', 'token': 'xx'}
2018-09-02 15:52:23 DEBUG (SyncWorker_0) [sucks] EcoVacsAPI connection complete
2018-09-02 15:52:23 DEBUG (SyncWorker_0) [sucks] calling user api GetDeviceList with {'userid': 'xx', 'auth': {'with': 'users', 'userid': 'xx', 'realm': 'ecouser.net', 'token': 'xx', 'resource': 'VTQMRDX1'}}
2018-09-02 15:52:24 DEBUG (SyncWorker_0) [sucks] got {'todo': 'result', 'result': 'fail', 'errno': 1004, 'error': 'auth error'}
2018-09-02 15:52:24 ERROR (SyncWorker_0) [sucks] call to GetDeviceList failed with {'todo': 'result', 'result': 'fail', 'errno': 1004, 'error': 'auth error'}
2018-09-02 15:52:24 ERROR (MainThread) [homeassistant.setup] Error during setup of component ecovacs
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/ecovacs.py", line 58, in setup
    devices = ecovacs_api.devices()
  File "/usr/local/lib/python3.6/site-packages/sucks/__init__.py", line 192, in devices
    'resource': self.resource
  File "/usr/local/lib/python3.6/site-packages/sucks/__init__.py", line 173, in __call_user_api
    "failure {} ({}) for call {} and parameters {}".format(json['error'], json['errno'], function, params))
RuntimeError: failure auth error (1004) for call GetDeviceList and parameters {'todo': 'GetDeviceList', 'userid': 'xx', 'auth': {'with': 'users', 'userid': 'xx', 'realm': 'ecouser.net', 'token': 'xx', 'resource': 'VTQMRDX1'}}
2018-09-02 15:52:24 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

The eracknaphobia patch solve the " GetDeviceList Auth 1004 Error". But now my log is full of
resource property deprecated. Use boundjid.resource
and the only working button in HA to control my Deebot is Locate.
  I would like to test the fix with the DeeBot N95S

I'm also having this issue:
2018-09-07 23:40:38 ERROR (SyncWorker_43) [sucks] call to GetDeviceList failed with {'todo': 'result', 'result': 'fail', 'errno': 1004, 'error': 'auth error'}
2018-09-07 23:40:38 ERROR (MainThread) [homeassistant.setup] Error during setup of component ecovacs
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/ecovacs.py", line 58, in setup
    devices = ecovacs_api.devices()
  File "/usr/local/lib/python3.6/site-packages/sucks/__init__.py", line 192, in devices
    'resource': self.resource
  File "/usr/local/lib/python3.6/site-packages/sucks/__init__.py", line 173, in __call_user_api
    "failure {} ({}) for call {} and parameters {}".format(json['error'], json['errno'], function, params))
RuntimeError: failure auth error (1004) for call GetDeviceList and parameters {'todo': 'GetDeviceList', 'userid': '***************', 'auth': {'with': 'users', 'userid': '***************', 'realm': 'ecouser.net', 'token': '***************', 'resource': '***************'}}

Same goes to DEEBOT M81 Pro with HA 0.77.3.
Error during setup of component ecovacs

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/ecovacs.py", line 58, in setup
    devices = ecovacs_api.devices()
  File "/usr/local/lib/python3.6/site-packages/sucks/__init__.py", line 192, in devices
    'resource': self.resource
  File "/usr/local/lib/python3.6/site-packages/sucks/__init__.py", line 173, in __call_user_api
    "failure {} ({}) for call {} and parameters {}".format(json['error'], json['errno'], function, params))
RuntimeError: failure auth error (1004) for call GetDeviceList and parameters {'todo': 'GetDeviceList', 'userid': 'xx', 'auth': {'with': 'users', 'userid': 'xx', 'realm': 'ecouser.net', 'token': 'xx', 'resource': 'GRTTX4S1'}}

ecovacs:
  username: !secret ecovacs_username
  password: !secret ecovacs_password
  country: de
  continent: eu

Please let me know if you need some help on testing it. :) Thanks for the work with this component!

Hey everyone,
Finally getting some time to dig in to the various Ecovacs issues. For the sake of tracking, the 1004 error that nearly everyone here is experiencing appears to be fixed by this PR in the sucks project https://github.com/wpietri/sucks/pull/34
I will be working with the sucks maintainer to validate this PR and get it merged and released.

@zsarnett: For the accessory issue, would you mind posting over in this issue? https://github.com/home-assistant/home-assistant/issues/16642
I listed out some things I need to get it figured out.
I'm trying to keep my sanity by opening issues for each specific problem we're facing :)


Fix generic methods AOT (IL2CPP) code exception

Close #9
When building with IL2CPP, it uses an AOT compiler, but there is some limitation with the compiler. For instance, it cannot use generic methods with value types that are created during runtime as the compiler didn't generate the corresponding code for it.
As the source code has used MakeGenericType and MakeGenericMethod with value types that are not compatible with AOT compile, it will throw an ExecutionEngineException.
The current solution is to hint the compiler to generate the corresponding code by explicitly calling the generic methods or creating an instance of it. Though it's not the best solution but rather a workaround.
Unity has planned to implement the support of MakeGenericType with value types, but we don't know when it will be ready. They say they are working on it at the moment. (See Reference Below)
Reference:
Unity - Manual:  Scripting restrictions
IL2CPP Type.MakeGenericType work around - Unity Forum
Invoke generic method via reflection in C# IL2CPP on iOS - Stack Overflow

When creating commands (including custom commands), we need to override the UsedOnlyForAOTCodeGeneration method and create the instance of generic methods with any types that have used in custom commands.


Gradientcolor only working with white?

using black or any color dont show pls help

@prexjhonverdeflor
Are you sure you're passing the gradient color correctly?
Here's an example with yellow gradient that works fine for me:
<Marquee
  gradient={true}
  gradientColor='#ccff00'
>
  {/* your child marquee component goes here */}
</Marquee>


get_user_basic_details() not working when using multiple accounts

When trying to execute get_user_basic_details() form logged_in instance of InstaGPy - function works.
But when instance initialised with sessions from multiple accounts - doesn't.
I did a little investigation, function get_user_info returns in this case html instead of object.
Submitting isolated test screenshot, obviously nothing could be changed between cases - they were performed sequentially.

Yes, its quite normal. They block the guest users quite often. If you try to check a Instagram user's profile in an incognito window (guest session) It will not work. If it works, then it will work with the script as well.
But if you are logged in, you shouldn't be facing any problems.
let me know if you have any other questions, otherwise feel free to close the issue.
Thanks.


Idea: Allow array of paths for -addFontsFromPath

Describe the idea
I have two barcode fonts in my repo that I want to add to the container on New-BcContainer, but I also have to add the default fonts of windows (else my reports are barcode only). I could only add my windows fonts, but it could happen, that a developer does not have the barcode fonts installed on their host.
Example usage
New-BcContainer `
    ...
    -addFontsFromPath @("C:\windows\fonts\", ".\myfonts\") `
    ...

PS: I know I could just call "Add-FontsToBcContainer" after my New-BcContainer call.
Would you accept a PR for this?

The fix should include Add-FontsToBcContainer, then I am open for that.

Thanks

I learned something new today...
I learned that Get-ChildItem takes an array of paths.
Thanks


What is the motivation for this task?
I'm going to train custom dataset using EfficientAd model.
How do I train or test using Multi-GPU?
Please, tell me which command is used.
Describe the solution you'd like
Currently, I'm training using only single devices.
$ python3 tools/train.py --model efficient_ad
Additional context
No response

@samet-akcay Is there any code implementation for using multiple GPUs?

@lemonbuilder, this has now been added to the roadmap.
This task would close the following issues: #1110 #930 #1398

@samet-akcay , sorry, I got the error when training with multi-GPU. How can I use only 1 GPU for example id 3 for training?

@nguyenanhtuan1008, you could refer to this link.
https://lightning.ai/docs/pytorch/stable/accelerators/gpu_basic.html#choosing-gpu-devices
In this case, you could initialize the Engine class as ;
engine = Engine(accelerator="gpu", devices="3")

@samet-akcay
Thank you so much.
I got the training work but still got bug after 1 epochs so I gave up and using the single GPU right now.

Hello, I wish to take this issue.
Thank you @samet-akcay, and the good work.

Hi @samet-akcay I would like to work on this issue. Can I take this issue?

@RitikaxShakya, thanks for your interest. I've totally missed this one, but looks like @Bepitic already shown interest in this. If he doesn't want to work on it, it could be all yours. How does that sound?

@Bepitic, are you still interested in this issue? If not @RitikaxShakya can take it?

Yes for sure, since no one confirmed me I also forgot about the one of multi-gpu 😅

.take

@samet-akcay Hello! I need help regarding for the parts of the code that deal with GPU initialization, data parallelization, and GPU-specific operations as these are the areas i think I'll need to modify to add Multi-GPU support.

I am not that familiar with these topics within the Anomalib. @ashwinvaidya17 could you provide some insight here?

@ashwinvaidya17 Hello! Please help me regarding the parts of the code that deal with GPU initialization, data parallelization, and GPU-specific operations as these are the areas i think I'll need to modify to add Multi-GPU support.

@RitikaxShakya currently we override the number of devices to 1 in Engine and the CLI.
To start with, we should remove these lines.
https://github.com/openvinotoolkit/anomalib/blob/debdae70bc6e089958eaefa066b4bcd79711bb23/src/anomalib/engine/engine.py#L305
https://github.com/openvinotoolkit/anomalib/blob/debdae70bc6e089958eaefa066b4bcd79711bb23/src/anomalib/utils/config.py#L130
Doing this will break a bunch of stuff across the repo.

For example, all the trainer.model calls will break. https://github.com/openvinotoolkit/anomalib/blob/debdae70bc6e089958eaefa066b4bcd79711bb23/src/anomalib/callbacks/checkpoint.py#L38
These should be replaced with trainer.lightning_module
You will also need to test each model to replace all .cpu() operations as we move large tensors out of CUDA memory to mitigate OOM issues. In case of Padim, the following line will break https://github.com/openvinotoolkit/anomalib/blob/debdae70bc6e089958eaefa066b4bcd79711bb23/src/anomalib/models/image/padim/lightning_model.py#L86 as the embeddings are on cpu. These should be moved to cuda before calling model.fit. Something as simple as to(self.device) should fix it. From my initial experiments this isn't sufficient to make the model work but it's a good start.
I am not sure if this is affected by distributed training but you might also need to look at thresholding and metrics computation https://github.com/openvinotoolkit/anomalib/blob/debdae70bc6e089958eaefa066b4bcd79711bb23/src/anomalib/callbacks/thresholding.py#L182

I might have missed something so feel free to report any difficulties you run into.

Using latest anomalib 1.1.0 from pip I create the Engine like so:
    engine = Engine(
        max_epochs=100,
        task=task_type,
        accelerator="gpu",
        devices=-1,
    )

By passing devices=-1 I thought training would utilize all my available GPUs.
PyTorch can see them, I get this output from training:

LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0,1,2,3]

However, when looking at the output from nvidia-smi I can see that only one GPU is used.
I also tried to pass strategy="ddp" when creating the engine, however, then I get this error:
Traceback (most recent call last):
  File "/data/scratch/mkw-anomalib/anomalib-test.py", line 41, in <module>
    train()
  File "/data/scratch/mkw-anomalib/anomalib-test.py", line 36, in train
    engine.fit(datamodule=datamodule, model=model)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/anomalib/engine/engine.py", line 540, in fit
    self.trainer.fit(model, train_dataloaders, val_dataloaders, datamodule, ckpt_path)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/trainer/trainer.py", line 544, in fit
    call._call_and_handle_interrupt(
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/trainer/call.py", line 43, in _call_and_handle_interrupt
    return trainer.strategy.launcher.launch(trainer_fn, *args, trainer=trainer, **kwargs)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/strategies/launchers/subprocess_script.py", line 105, in launch
    return function(*args, **kwargs)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/trainer/trainer.py", line 580, in _fit_impl
    self._run(model, ckpt_path=ckpt_path)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/trainer/trainer.py", line 987, in _run
    results = self._run_stage()
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/trainer/trainer.py", line 1033, in _run_stage
    self.fit_loop.run()
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/loops/fit_loop.py", line 205, in run
    self.advance()
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/loops/fit_loop.py", line 363, in advance
    self.epoch_loop.run(self._data_fetcher)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/loops/training_epoch_loop.py", line 140, in run
    self.advance(data_fetcher)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/loops/training_epoch_loop.py", line 269, in advance
    call._call_callback_hooks(trainer, "on_train_batch_end", batch_output, batch, batch_idx)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/trainer/call.py", line 208, in _call_callback_hooks
    fn(trainer, trainer.lightning_module, *args, **kwargs)
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/lightning/pytorch/callbacks/model_checkpoint.py", line 295, in on_train_batch_end
    if self._should_skip_saving_checkpoint(trainer):
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/anomalib/callbacks/checkpoint.py", line 38, in _should_skip_saving_checkpoint
    is_zero_or_few_shot = trainer.model.learning_type in [LearningType.ZERO_SHOT, LearningType.FEW_SHOT]
  File "/home/sinntelligence/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1688, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'DistributedDataParallel' object has no attribute 'learning_type'

Is this a bug or how can I use all my GPUs for training with anomalig 1.1.0?

@haimat, we aim to enable multi-gpu support in v1.2

@samet-akcay Thanks for your quick reply.
So around end of July?

yeah, that's the plan hopefully :)

Hello guys, any news on this, do you have an ETA on 1.2 and multui-GPU training?

@samet-akcay Hello Samet, can you estimate when multi-GPU training will be available?

@haimat unfortunately we don't have an exact timeline for this. Currently, we are busy with some other high-priority tasks.

@samet-akcay
Use the following parameters to perform multi-GPU, but the result is a single GPU. How to set epoch? I am very anxious?
from anomalib.models import Patchcore
from anomalib.engine import Engine
Create the model and engine
model = Patchcore()
engine = Engine(max_epochs=30,task="classification",accelerator='gpu',devices=3)
Train a Patchcore model on the given datamodule
engine.train(datamodule=datamodule, model=model)
What is the default epoch?

@goldwater668, as mentioned above, multi-GPU is not currently supported. devices parameter is over-written here to avoid any errors caused by multi-gpu issues.
https://github.com/openvinotoolkit/anomalib/blob/2bd2842ec33c6eedb351d53cf1a1082069ff69dc/src/anomalib/engine/engine.py#L327-L328

@samet-akcay Can you specify the GPU ID?
engine = Engine(max_epochs=10,task="classification",accelerator='gpu',devices=[1,2])
I specify the GPU ID number according to the above code. Why do the following results still appear? Can’t I specify it?
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0,1,2,3,4,5,6,7]
When I am training Patchcore, I have insufficient CUDA memory. How should I adjust the parameters?

Yes, you could specify the GPU ID.
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0,1,2,3,4,5,6,7]
This is an automated log generated by Lightning. You could ignore this.
If you are experiencing out of memory issues with Patchcore, your dataset is probably to large to fit a PatchCore memory bank. You could configure Patchcore arguments to make it more memory efficient. For example, changing the backbone to a more efficient backbone, changing the layers to extract etc.
https://anomalib.readthedocs.io/en/v1.1.0/markdown/guides/reference/models/image/patchcore.html

@samet-akcay I specified GPU cards 1 and 2 for training. However, during training, I still trained on card 0. Is there anything wrong with the GPU specified in the above settings?
engine = Engine(max_epochs=10,task="classification",accelerator='gpu',devices=[1,2])

@goldwater668, you currently cannot set multiple GPUs as it will be mapped back to a single GPU.
With that being said, I noticed that Engine always configures the device to run on the default GPU even when the user explicitly chooses a specific GPU. I've created a PR to fix this
https://github.com/openvinotoolkit/anomalib/pull/2256

I have created an official feature issue here: https://github.com/openvinotoolkit/anomalib/issues/2258
I'm closing this one. Those who are interested in this feature can follow the above issue.

@samet-akcay I used EfficientAd for 10 epochs and single category training to get the following results:
Epoch 9/9  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43944/43944 0:23:59 ? 0:00:00 30.44it/s train_st_step: 0.530 train_ae_step: 0.337 train_stae_step: 0.042 train_loss_step: 0.909
image_AUROC: 0.906 image_F1Score: 0.709 train_st_epoch: 0.553 train_ae_epoch: 0.428
Epoch 9/9  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43944/43944 0:23:59 ? 0:00:00 30.44it/s train_st_step: 0.530 train_ae_step: 0.337 train_stae_step: 0.042 train_loss_step: 0.909
image_AUROC: 0.956 image_F1Score: 0.699 train_st_epoch: 0.541 train_ae_epoch: 0.425
train_stae_epoch: 0.056 train_loss_epoch: 1.022
F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0,1,2,3,4,5,6,7]
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃        Test metric        ┃       DataLoader 0        ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│        image_AUROC        │    0.6983320713043213     │
│       image_F1Score       │    0.6690346598625183     │
└───────────────────────────┴───────────────────────────┘
predictions = engine.predict(
datamodule=datamodule,
model=model,
ckpt_path="latest/weights/lightning/model.ckpt",
)
When predicting data, do I have to go through datamodule = Folder()? Is there a way to test the image directly?

@goldwater668, the post above is not related to this issue. Can you create a Q&A in Discussions section


(ಠTrending‿Nowʘ) Troy Montero Viral Leaked Video 2024 ZXVIDEOs MMS On Social Media X Twitter [NOWS49HD]

49 sec ago Troy Montero Leaked Video Viral On Social Media. (ಠTrending‿Nowʘ) Troy Montero Viral Leaked Video 2024 ZXVIDEOs MMS On Social Media X Twitter [NOWS49HD]

Troy Montero’s latest video has taken the internet by storm, sparking a wave of conversations across various social media channels. The emerging digital star, celebrated for her engaging content—particularly her recent Spiderman-themed clip—has seen a remarkable surge in her popularity, with fans eagerly searching for the full version. Viewers are flocking to platforms like Instagram, X (formerly Twitter), and Discord to interact with her latest creation.
As excitement continues to build, fans are enthusiastically sharing their reactions online, emphasizing the crucial role social media plays in elevating creators like Troy Montero. With her distinctive style and fresh approach, she has quickly made a significant impact in the digital world, leaving many eager to see what’s next for her.


Buffer overread on net48

Team

[X] I've assigned a team label to this issue

What happened?
A message in the Halibut protocol is:
<DeflateStream><DataStreams with prefix and postix of size><Control Messages>

The protocol sends no indication of when the DeflateStream ends or its length. This means we must find the length of the deflate stream by decompressing the stream. The DeflateStream implmentation in both dotnet and netframework will both read in more bytes from the underlying stream if the compressed bytes do not end at 8KB (the buffer sized used by the deflate stream).  This can be a problem since the following DataStreams and/or Control Messages may be consumed and dropped by the deflate stream.
This was fixed for dotnet here but was never fixed for netframework.
The issue of overeading bytes during normal Halibut operation in netframework could not be reproduced. It appears to be that so long as the sender makes distinct writes between the <DeflateStream> section and the following sections, when reading a stream in netframework it will always happen to read bytes such that bytes from distinct writes are never mixed. EXAMPLE:
Sender sends:
sslStream.write("hello");
sslStream.write(StringOf12Kb);
sslStream.write("cya");
sslStream.flush();

If in net48 after the flush has completed:
sslStream.read(byteArray, 0, 2); // reads "he"
sslStream.read(byteArray, 0, 99999999); // only reads "llo" despite more being available
// and requesting lots of data. (This is why it appears to work in net48)
sslStream.read(byteArray, 0, 99999999); // Reads the 12kb string
sslStream.read(byteArray, 0, 99999999); // reads "cya"

This is different to net6 where the operations would be:
sslStream.read(byteArray, 0, 2); // reads "he"
sslStream.read(byteArray, 0, 99999999); // reads "llo" and the 12kb string and "cya"

This means that communications to net48 are very delicate and depend on however we happen to be creating encrypted frames of data. If For example writing of a message is changed to writing all of the data to a MemoryStream and then that is sent over the sslStream in one go net48 WILL overread.
Reproduction
.
Error and Stacktrace
No response
More Information
No response
Workaround
No response

Fixed in https://github.com/OctopusDeploy/Halibut/pull/303

Release Note: Fix buffer overread on net48