Query slice of entities the most efficient way

Hello,
Is there a dedicated way of querying a slice of entities for a set of components instead of iterating over all of the components or using get?
Something like this:
            let list = vec![]; // list of entities
            for (e, (a, b)) in world.query_mut_list::<(&A, &B)>(&list) {

            }

Or should I just iterate over every entity and use world.get or is that discouraged due to performance reasons? In bevy there is a separate function for this query.iter_many(list).

You can use views for efficient random access by entity ID, amortizing the setup cost of World::get, for example via QueryBorrow::view.

Like this?

let list = vec![]; // list of entities
let view = world.view_mut::<(&A, &B)>();
for x in list {
   if let Some((a, b)) = view.get(x) {

   }
}

Like this?

Yes.

Btw, what is the best way to store PreparedQuery values in your program? Why would you ever use anything else than prepared query if it is the fastest way to perform component queries. Ideally you could store these in global space like structs and use them as needed. Is this possible?

Well, I'd say you would use direct queries if you are unprepared/unwilling to store prepared queries somewhere. Especially for queries which are executed rarely, it might not make sense to pay the space overhead of prepared queries. And it is additional complexity in any case which can often be more problematic than the lost of performance.
Personally, when writing simulations, I put the prepared queries into the "systems" which use them, where usually other auxiliary data structures like indexes and buffers already exist. For example, I often also need to collect lists of entities and I also put those Vec into the systems to reuse the underlying allocation between time steps.

Sorry, I did not quite get what you mean by putting prepared queries into the systems. Since systems are just functions, the prepared queries cannot live inside the systems across frames without getting reconstructed every time the system is executed? I agree that complexity is a good point, and actually the reason why I am in the progress of switching to hecs from bevy.

Since systems are just functions, the prepared queries cannot live inside the systems across frames without getting reconstructed every time the system is executed?

As hecs itself does not mandate any system structure, this is not necessarily so. And in my case, we usually end up creating system structs with a "run" method or something like that. These structs do not store model state, but technical state, i.e. auxiliary data structures like indexes, buffers or prepared queries.

I see. That sounds a bit unergonomic to me. I was hoping for something more straight forward like throwing the prepared query into the global space as static and wrapped in OnceCell but I could not get that to work.
I guess it is not too bad if you do something like this:
pub struct Game2<'a> {
   pub world: hecs::World,
   pub ctx: GameContext,
   pub prepared_queries: HecsPreparedQueries<'a>,
}

pub struct HecsPreparedQueries<'a> {
   q: PreparedQuery<(&'a StaticCameraCullableECS)>
}

But I am not very happy about the life time pollution it forces me to do.

But I am not very happy about the life time pollution it forces me to do.

You can store the prepared queries using only 'static lifetimes. The types only define the queries and the actual short-lived lifetimes of returned references are rebound by the fetch implementation.

Oh perfect. I guess that answers all of my questions for now. Thanks for your time and the tips!


use BACKSLASH_IN_FILENAME

Codecov Report

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

@@            Coverage Diff             @@
##           master    #2153      +/-   ##
==========================================
- Coverage   73.97%   73.97%   -0.01%
==========================================
  Files          90       90
  Lines      131906   131907       +1
  Branches    30835    28964    -1871
==========================================
- Hits        97579    97572       -7
+ Misses      34323    34316       -7
- Partials        4       19      +15

Impacted Files
Coverage Δ

src/quickfix.c
92.44% <ø> (ø)
:arrow_up:

src/gui_beval.c
44.78% <0%> (-0.31%)
:arrow_down:

src/libvterm/src/screen.c
71.37% <0%> (-0.29%)
:arrow_down:

src/ex_cmds2.c
80.21% <0%> (-0.1%)
:arrow_down:

src/window.c
81.65% <0%> (+0.03%)
:arrow_up:

src/gui.c
46.34% <0%> (+0.05%)
:arrow_up:

src/ex_cmds.c
77.8% <0%> (+0.08%)
:arrow_up:

src/if_py_both.h
76.23% <0%> (+0.14%)
:arrow_up:

Continue to review full report at Codecov.

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


Fix/restore site CD

The website GitHub action has been broken for a while, so it was removed during the refactor. Right now site and schema changes are not deployed.
The reason for the breakage needs to be investigated, then the github action needs to be recreated for it.

Should be fixed by #247.


Do not fail requests with readonly middleware

Background
I'm using the middleware feature to "spy" on my node and extract useful information out of the requests/responses caused by my non-middleware software. As I'm only interested in the information provided to me as part of the requests/responses, I'm using the readonly middleware mode.
However, I notice two issues:

when I stop my middleware client, requests might fail (because the middleware disconnected)
when I do not "acknowledge" requests/responses in time, requests fail (or responses do not reach their destinations)

As my middleware client is unable to cancel or alter any request (or response), I expect that my non-middleware gRPC clients are unaffected by the middleware (connection, disconnection, not acknowledging messages, ...).
Your environment

version of lnd: v0.14.3-beta-rc1
version of btcd, bitcoind, or other backend: bitcoind v22.0.0

Steps to reproduce
Connect middleware with "readonly" registration. Ignore incoming messages. Send gRPC request with some other program.
Expected behaviour
Other program is unaffected.
Actual behaviour
Other program's request fails.

The current architecture is based on "interception" hence the blocking traits it has today. In the future, we could introduce a non-blocking mode, where it just attempts a best effort send, and never tries to wait for a response.

I think this could be related to https://github.com/lightningnetwork/lnd/issues/6839
With a specific ReadOnly RPC you'd be able to see the middleware but not affect any of the requests.


Implement Storage Master

ref #263
A service that export as another gRPCStorage server-side and it will manipulate & pull CacheStorage Node by combinate gRPCStorages
Phase 1:
Support mock or preconfigured topology
Support operations like create/delete the bucket & delete the object

[ ] Implement gRPC server to handle a new Discovery trait(handle lookup) from memory(mock)
[ ] Implement CreateBucket / DeleteBucket in “BaseStorage then all Cache Storage(via gRPCStorage) gRPC Storage  pattern”
[ ] Implement DeleteObject in "Delete all Cache Storage then BaseStorage pattern" and forbid cache refill for deleting objects

Phase 2:
Suppor dynamic discovery & reconcile storage's replica

[ ] Implement internal task to period reconcile cache replica count for each object ( running in Kernel leader)
[ ] Watch orchestrator's pod offline/online event to trigger reconcile(optional)
[ ] Implement collect task to collect object location from each Cache Storage Servers in mock Orchestrator via gRPCStorage client-side trait
[ ] Handle replicas reconcile hint request for one object

The shared storage development work has been migrated to another repo, the related issue has be replaced with https://github.com/zojw/shared-storage/issues/4, so close this first


what if i installed face_recognition on remote linux server, how can i use my pc webcam to identify people

face_recognition version:
Python version: python 3.4.9
Operating System: centos 7.5

Description
i want to provide a face recognition service, what if i installed the face_recognition on the remote linux server,how can it invoke my pc webcam to identify the face.
thanks in advance.

You would have to write a web app that runs on the remote linux server that uses something like webrtc to stream video to the server from the user's browser. It's not something that's built in to this library.

@ageitgey appreciated for your guide, nice day!


Unclear comment in blufi example (IDFGH-4872)

Environment

Development Kit: All
IDF version : HEAD
Build System:   All

Problem Description
There is a comment in the blufi_wireless.c file in the esp32-blufi example which is unclear.
https://github.com/wolfeidau/esp32-blufi/blob/6c822a6792f3997838f1e22259f53d110b11e71e/blufi_wireless.c#L249
It refers to a blufi_task entity, but it is not explained what this is or why it should be used.
Expected Behavior
The comment should explain what blufi_task is referring to, and why it should be used.
If the comment is incorrect, it should be removed.

Thanks for reporting and sorry for the inconvenience, we will look into.

Hello, @KonstantinSchubert , I think that when there is a blocking behavior or a long-term execution of the action, a new thread blufi_task should be created to execute it. Calling the above behavior in the callback may cause the watchdog timeout interruption error，blufi_task is created by the user according to the actual situation


Fix bug in if() when used in a surrounding expression

See the commit messages for more details.
This branch is from master, but the v1.x branch is also affected.  I noticed the bug while working with a Vega 2 spec.  Backporting it should just be a matter of git cherry-pick, and I'd be happy to do that if it'll get included in a subsequent Vega 2 bugfix release.

This bug is particularly annoying to encounter because the expression parser seems to elide "unnecessary" parentheses (‽), making it impossible to isolate the if() yourself in expressions.

Thank you @tsibley! Will backport to vega-expression 1.x as well.

Thanks @jheer!


Picking up dependencies

I'm trying to build OpenImageIO (https://github.com/OpenImageIO/oiio).
It has many dependencies, some of which are already included in vcpkg, such as tiff.
How can I point this dependency to the portfile.cmake for OpenImageIO.
I did search the Issues already but didn't see anything, so apologies if its' already been covered.
Thanks.

You should use find_package. And the portfile should run with the cmake prefix set correctly.

Since they use CMake, it should be as easy as building the project while following our CMake instructions here:
https://github.com/Microsoft/vcpkg/blob/master/docs/EXAMPLES.md#example-1-2-b.
Let us know if you have any issues!


Fix bugs on classes page

Codecov Report

Merging #78 into master will increase coverage by 0.00%.
The diff coverage is 82.75%.

@@           Coverage Diff           @@
##           master      #78   +/-   ##
=======================================
  Coverage   58.17%   58.18%
=======================================
  Files          76       76
  Lines        5927     5933    +6
=======================================
+ Hits         3448     3452    +4
- Misses       2479     2481    +2

Impacted Files
Coverage Δ

lib/pages/classes/view/classes_page.dart
78.84% <82.75%> (-1.36%)
:arrow_down:

lib/pages/classes/model/class.dart
77.77% <0.00%> (+11.11%)
:arrow_up:

Continue to review full report at Codecov.

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


E2E: Add platform pkg to know when run on OCP cluster type

Signed-off-by: Mohamed Mahmoud<EMAIL_ADDRESS>- What this PR does and why is it needed
add pkg to detect if running on OCP cluster or not to customize securityContext
- How to verify it
e2e was extended to check the cluster type

/assign @sabinaaledort

LGTM - curious, did you come up with the idea of looking for routes API or is that a standard pattern to check if we are using OCP?

LGTM - curious, did you come up with the idea of looking for routes API or is that a standard pattern to check if we are using OCP?

Yeah standard pattern used by many operators

/lgtm


Add initial hook-based check execution mechanism

One option rather than instantiating checks directly from the upload method would be to add a db listener:
diff --git a/warehouse/malware/__init__.py b/warehouse/malware/__init__.py
index 0d989ac0..b4b4973b 100644
--- a/warehouse/malware/__init__.py
+++ b/warehouse/malware/__init__.py
@@ -10,8 +10,32 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.

+from warehouse import db
 from warehouse.malware.interfaces import MalwareCheckService
 from warehouse.malware.services import database_malware_check_factory
+from warehouse.packaging.models import File, Project, Release
+
+
+@db.listens_for(db.Session, "after_flush")
+def determine_malware_checks(config, session, flush_context):
+
+    malware_checks = session.info.setdefault("warehouse.malware.checks", set())
+
+    for obj in session.new:
+        if obj.__class__ in (File,):
+            malware_checks.update([f"example_file_check:{obj.id}"])
+        if obj.__class__ in (Release,):
+            malware_checks.update([f"example_release_check:{obj.id}"])
+        if obj.__class__ in (Project,):
+            malware_checks.update([f"example_project_check:{obj.id}"])
+
+
+@db.listens_for(db.Session, "after_commit")
+def queue_malware_checks(config, session):
+
+    malware_checks = session.info.setdefault("warehouse.malware.checks", set())
+
+    print(malware_checks)

 def includeme(config):

This is similar to how our cache purging works. The example above is a bit rough, but implementing it in this way would allow for instantiating the checks from the event and even instantiating different checks based on what changed.

I'm not sure that any of the above concerns are blockers to merge here.


llbuild should disable Swift Objective-C compatibility headers

llbuild has no @objc APIs, so the generated header is not needed.
rdar://69185419

@swift-ci please smoke test


[WIP] Source location information

Added keeping source information during parsing, see #12.
@kylef Take a look and let me know if this works for you.

@kylef Any comments?


Stratum v2 Transport

Introduces Sv2Transport::Transport which is very similar to V2Transport.
This shoehorns Sv2NetMsg into a CSerializedNetMsg in SetMessageToSend, and into a CNetMessage in GetReceivedMessage.
See discussion in https://github.com/bitcoin/bitcoin/issues/30209.

Moved here from https://github.com/bitcoin/bitcoin/pull/30315.
Builds on https://github.com/Sjors/bitcoin/pull/66. Followed by #50 Parent PR #68.
Note that this code will most likely not be upstreamed to Bitcoin Core, but instead used to create a standalone c++ application that connects to a running node via an IPC interface. See https://github.com/bitcoin/bitcoin/issues/31098.

Rebased after a small merge conflict between 362d3d1f4134a2cb3dc32411cc3c11e0363688c1 and probably https://github.com/bitcoin/bitcoin/pull/31164.


requests.exceptions.SSLError: HTTPSConnectionPool(host='serpapi.com', port=443)

from langchain import SerpAPIWrapper
from langchain.requests import RequestsWrapper
import requests
#verfy=False
search = SerpAPIWrapper(serpapi_api_key="api")
results = search.run("how to make a cake")`
```

Can you try to connect to https://serpapi.com from your browser but same network settings?


odo push command test with a devfile

/area integration-tests
Issue Description
Add odo push command tests with devfiles to verify the command with different sets of devfiles are working in order.

Fixed by https://github.com/devfile/integration-tests/pull/60


Added active state for the side navigation

Added active state for the side navigation heading based on user scroll, as mentioned in #62.

https://github.com/user-attachments/assets/3ddd2aa1-84f0-4a02-9331-4d9bd5874d95
@brookslybrand  this is how it looks. Please let me know If i need to make any changes to the code!

Hey @brookslybrand,
Thanks for the detailed code review and all the helpful comments! I left a note asking about ways to benchmark function performance for future reference, but otherwise, I have no questions.
And yes, I’d be happy to add this to the Remix website—I’ll submit a PR today.
Thanks again for the great feedback!


feat: add more get/list commands

#2

Codecov Report

Merging #21 (d6318c6) into main (2f5cc89) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main      #21   +/-   ##
=======================================
  Coverage   34.49%   34.49%
=======================================
  Files           8        8
  Lines         429      429
=======================================
  Hits          148      148
  Misses        262      262
  Partials       19       19

@0xff-dev resolve the conversations if got fixed

/lgtm  Solve the last two conversations, I think we can merge the code.
➜  bc-cli git:(main) ✗ ./main get fed
NAME    AGE
proof   35d
test    35d
2346    31d
➜  bc-cli git:(main) ✗ ./main get fed --with-org=tenxcloud
NAME    AGE
proof   35d
test    35d
2346    31d
➜  bc-cli git:(main) ✗ ./main get fed proof
NAME    AGE
proof   35d
➜  bc-cli git:(main) ✗ ./main get fed proof --show-labels
NAME    AGE   LABELS
proof   35d   bestchains.federation.initiator=tenxcloud


Deploying project to app platform

Which app platform should I use. Thinking it might be a good idea to try with google as that's what I think the business requires. However, tutorial uses digital ocean. @yulqen does it matter what I use?

completed.


wool colour smashing gives the wrong dyes

wool:0 gives dye:0 instead of dye:15
wool:1 gives dye:1 instead of dye:14, et cetera.
why vanilla wools and dyes are in reverse order from eachother i have no clue

Oh Mojang :/
Fix released to curse.


How can I hide menu

Laravel Version: 5.5
Voyager Version: #.#.#
PHP Version:

Description:
How can I hide any menu from admin backend side or if I want to keep it in inactive state?
Steps To Reproduce:
Voyager Admin side : Menu

in videos or tutorial, everywhere given to show or create menu but no where about how to keep it in Inactive state or if I dont want to show at admin left side or at frontend, how do i do that?

thanks a lot for ur help but can u b specific cuz I tried to remove option from 'browse' in checkbox but i am getting diff. error.
so can u tell me exactly from which section "Remove browse permission for related bread and menu item will be automagically hidden."
ny help wld b highly appreciated.

Let's say you have Posts in your menu' and you want to hide it, you need to go to Edit Role and remove Browse Posts from the Role you want to hide it for.
I think you already did that.
That should hide item Posts in your menu' also users with that role won't be able to go on /admin/posts anymore since they don't have permission to do so.
Of course I am taking for granted that you have Bread set for Posts (Tools->Database->Add Bread).
Regarding your error if you are not more specific I have no idea.

Thanks a lot, I did that, and not getting error as well.
Quick help...really appreciated sir.

Hey,
I have one doubt, is this Voyager Admin Package, is this free to download and integrate in our application.
Would not be there any copyright issue or something, can somebody guide me on this.
Any help would b highly appreciated.

thank u for the information

hello,
" Illuminate \ Contracts \ Encryption \ DecryptException
The payload is invalid."
I am getting this error once user login from frontend site.

Could you please help me on this, any help would be highly appreciated.
Thanks in advance.


Integrate new coverage tool

Description
This PR adds a new tool for calculating total code coverage and making sure it's above the specific threshold (current coverage 71%)
K8S-10363
How can this be tested?
CI must be green.
Also locally, change threshold to 95% and run new command make go/check-coverage it should fail.

Total coverage threshold (95%) satisfied:       FAIL
Total test coverage: 71%
make: *** [go/check-coverage] Error 1

and success message is:
go-test-coverage --config=./.testcoverage.yml
File coverage threshold (0%) satisfied:         PASS
Package coverage threshold (0%) satisfied:      PASS
Total coverage threshold (71%) satisfied:       PASS
Total test coverage: 71%

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.24%. Comparing base (02770cb) to head (aa9803b).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3597      +/-   ##
==========================================
+ Coverage   57.32%   64.24%   +6.91%
==========================================
  Files         401      401
  Lines       21225    21225
==========================================
+ Hits        12167    13635    +1468
+ Misses       7785     6250    -1535
- Partials     1273     1340      +67

Flag
Coverage Δ

unittests
64.24% <ø> (+6.91%)
:arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fixed typescript typings

Motivation
Was unable to import interfaces from index.d.ts
Test Plan
Import picker and its interfaces in typescript:
import ImagePicker, {Response} from 'react-native-image-picker';

Would be great to have it merged

@AntonShevel : Same. Would be great. Changes looks good.

I would love these changes to be added too!

It's almost 2 years of this pr! 😀

Closing PR as this is no longer relevant.
Besides you can do the following in a TypeScript project:
import ImagePicker, { ImagePickerResponse } from 'react-native-image-picker';


Add new apps and fixed a typo in MessagesTest.swift

Salam :)
I added Sonos, Videos, OneDrive, and Outlook. I would like to add more apps for Microsoft I think it will be a great idea do you agree with me?
But the problem is app path I think it not suite with Appz, Do you agree?
This is what I found from documentation:
https://msdn.microsoft.com/en-us/library/office/dn911482.aspx
https://msdn.microsoft.com/it-it/library/office/dn906146.aspx#sectionSection9
I tried to add OneNote, Word, Excel, and PowerPoint all of them opened but they keep showing a warning message that I have to open them with a specific file.
It's easy to do it as I found in the above links, like this:
Schema format:
|u||p||c|
The following example shows a request to invoke a Word file for editing:
ms-word:ofe|u|https://contoso/Q4/budget.docx|p|clouddrive|c|folderviewQ4
But what should we do with ofe|u| we have instead of it //app, Any suggestions?
Thanks ..

Hi, thanks for adding these, I think they will be a valuable addition to Appz!
I fully understand your concern about the format of the URL, and it can easily be fixed. Appz is a very flexible and modular library, and you'll see how in a bit. This is not a trivial task, and will require some thought and design process, so be prepared for that :)
Instead of trying to make the parameters passed into the action directly, we can add a new struct to build the URL for us:
public struct MSPayload {
    public var url: String
    public var passback: String? = nil
    public var context: String? = nil

    public func buildURL() -> String {
        var sections = [("u", url)]
        if let passback = passback {
            sections.append(("p", passback))
        }
        if let context = context {
            sections.append(("c", context))
        }
        // convert tuples to "|x|string", then join them
        return sections.map { "|\($0.0)|\($0.1)" }.joinWithSeparator("")
    }
}

Then, you can make the user pass in a MSPayload to the MS apps:
enum Action {
    case Open(MSPayload)
}
...
switch action {
case .Open(let payload):
    return payload.buildURL()
}

I apologize for any mistakes, I wrote this directly on github, but I think it's enough to get the idea. I hope this helps, and you can try to write tests for the buildURL function as well.

@Mazyod Great suggestion, thanks :) I will try to add it.

@Mazyod Do you have an account on Office 365?

I don't have an account, unfortunately. Azerbaijan is a nice country, you can leave it as it is and create an account :) ?

@Mazyod When sent you my question, the web suddenly works with Kuwait that why I deleted it. Thanks for your fast reply 🚀

@Mazyod Can I tell you the problem?

@Maryom Sure, what happened?

@Mazyod Thank you so much. I was trying to get the direct URL for a document for 2 hours 🙃 all my tries failed. I understand this:
ms-word:ofe|u|https://contoso/Q4/budget.docx|p|clouddrive|c|folderviewQ4
From the document I understand that these are optional: |p|clouddrive|c|folderviewQ4
So no need for them, I removed them and this what I get in Xcode:
url Optional(ms-word://ofe%7Cu%7Chttps%3A%2F%2Fd.docs.live.net%2Ffa74248df401c361%2Ffun.docx)
It looks great but I can't figure why it still not working?

@Mazyod From this blog, I thought I have to use Office 365
http://blog.beecomedigital.com/2015/02/16/opening-a-document-with-office-mobile-from-your-own-application/
But when I used it nothing is change!
In the above post, from where they got this URL: https://tenant.sharepoint.com/Shared Documents/Document.docx

@Mazyod I tried right click share, and I tried to email it to myself and I tried embedded link all links didn't work.

@Maryom Thanks, I'll try to look into this soon

@Mazyod I think no need to look at it, because I notice that in MS apps if you try to open for example a word file in one drive app it will open perfectly but not directly it shows downloading and then open it. Do you agree with me? I wish I can record it for you but it's on my iPhone.

@Mazyod Like this pic.

@Maryom You can always push basic working implementation, then we can iterate on it to make it better :construction_worker:

@Mazyod Also, I was thinking that no need for // because in the document there is no // after ms-word:
ms-word:ofe|u|https://contoso/Q4/budget.docx|p|clouddrive|c|folderviewQ4
So I removed them but it not working at all
This is the URL without //
ms-word:ofe%7Cu%7Chttps%3A%2F%2Fd.docs.live.net%2Ffa74248df401c361%2Ffun.docx

@Mazyod Do you suggest to PR with it even it showing warning message? it's really bad PR, because I couldn't solve the problem 😔

@Maryom Yeah, the double slash is always required. It's fine, I will not make a release until we make this working. merging a PR doesn't mean we will make a new release :)

@Mazyod Ok I will try more until 12:00 am it it not working I will PR. I have a note on Mail.swift in public struct Email I think init should be public:
public init(recipient: String = "", subject: String = "", body: String = "") {
    self.recipient = recipient
    self.subject = subject
    self.body = body
}

This is the error when it not public:

But when I made public it worked fine, Do you agree with me?

@Maryom Yeah, Email init should definitely be public

@Mazyod إن شاء الله I will fix it with the next PR. Thank you for being there while I'm lost! I hope I can fix my problem by myself so that I give something useful ..

@Maryom Thanks for pushing this, I'll look into why it's not working, I'm sure it's just a small problem with a configuration somewhere

@Mazyod Your welcome. My teacher this is just pop up, what should I do?

@Maryom I don't know, maybe you should reload the browser or something?

@Mazyod Me too I don't know. I hope you delivered the PR. If not please tell me to resend it.


How to send audio to camera ip?

Hello, I want create app to livestream camera and using speaker of android to talk to camera IP. Please for example how to do it?

Sorry for the late reply, somehow, github notifications are going to my spam folder.
Here is the specification on Onvif website, you should be able to find what you are looking for!


Create 1bikeride.kml

I'm tryimg to undestand the roles of this services
Yhank You
"...Our Horizons are Your Horizons..."

Thank you so much for the pull request @giovannigabriella! I noticed this is your first pull request and I wanted to say welcome to the Cesium community!
The Pull Request Guidelines is a handy reference for making sure your PR gets accepted quickly, so make sure to skim that.

:x: Missing CONTRIBUTORS.md entry.

Please add yourself to the contributors file!

:x: Missing CLA.

Please send in a Contributor License Agreement (CLA) and comment back here to let us know to check this!

:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

Thank U, for the suggests but it's the first time for me.
Is it possible to have an help to verify this script.
Thank U Community

Ok everything is right?
is possible to verify if these rows are right?
______________________________________________________________________________________________________________________________var viewer = new Cesium.Viewer("cesiumContainer");
var options = {
camera: viewer.scene.camera,
canvas: viewer.scene.canvas,
};
Sandcastle.addToolbarMenu(
[
{
text: "gx KML extensions - Bike Ride",
onselect: function () {
viewer.dataSources
.add(
Cesium.KmlDataSource.load(
"../SampleData/kml/1bikeRide.kml",
options
)
)
.then(function (dataSource) {
viewer.clock.shouldAnimate = false;
var rider = dataSource.entities.getById("tour");
viewer.flyTo(rider).then(function () {
viewer.trackedEntity = rider;
viewer.selectedEntity = viewer.trackedEntity;
viewer.clock.multiplier = 30;
viewer.clock.shouldAnimate = true;
});
});
},
},
],
"toolbar"
);
Sandcastle.reset = function () {
viewer.dataSources.removeAll();
viewer.clock.clockRange = Cesium.ClockRange.UNBOUNDED;
viewer.clock.clockStep = Cesium.ClockStep.SYSTEM_CLOCK;
};

Like U can read i'm trying to call "1bikekml" in "sandcastle.cesium.com".
But the service by cesium gives an error 404.
Thank U community

@giovannigabriella it sounds like you're looking to learn how to visualize your KML file with CesiumJS? If so, please use the Cesium community forum (https://community.cesium.com/) to search for answers and ask your questions.
You can drag and drop a KML file into your Cesium ion account (https://cesium.com/ion/) to host and visualize it. You may find this tutorial on creating your first app useful: https://cesium.com/docs/tutorials/interactive-building-proposal/


Problem: no SNARK proof handling

What does this mean?

We ignore the proofs field in the completed works because the mina-rs (de)serializers don't handle it


Fix dedent issue in process_response.py

Hello,
I noticed that the prompts being generated have weird indentations. This is due to the dedent function being applied with f-string interpolation, which causes it to effectively do nothing since the JSON schema being dumped doesn't have indentations in new lines.
I have created this draft PR using Copilot Workspace, but happy to polish it and make any necessary changes if this if of interest to the maintainers.

Update handle_response_model function to fix dedent issue

Apply dedent function only on the literal string and concatenate it with the json.dumps result in the handle_response_model function.

For more details, open the Copilot Workspace session.

@jxnl i took a look at this and the fix does work. I'm just wondering if (1) We should merge this in or if (2) We should look towards standardizing prompts with just a Jinja environment that applies an dendent automatically


Upgrading from 0.11.2 to 0.12.3 breaks anonaddy

I know this issue was reported when 0.12.2 was released, but even with 0.12.3, anonaddy seems broken. Reverting back to 0.11.2 fixes.
I see errors in the logs:
warning: connect to Milter service inet:<IP_ADDRESS>:11332: Connection refused
lost connection after STARTTLS from unknown[<IP_ADDRESS>]
Jul 21 12:57:01 anonaddy postfix/smtpd[1042]: disconnect from unknown[<IP_ADDRESS>] ehlo=1 starttls=0/1 commands=1/2
Jul 21 12:57:01 anonaddy postfix/smtpd[1042]: connect from unknown[<IP_ADDRESS>]
Jul 21 12:57:01 anonaddy postfix/smtpd[1042]: warning: connect to Milter service inet:<IP_ADDRESS>:11332: Connection refused
Jul 21 12:57:01 anonaddy postfix/smtpd[1042]: lost connection after STARTTLS from unknown[<IP_ADDRESS>]
Jul 21 12:57:01 anonaddy postfix/smtpd[1042]: disconnect from unknown[<IP_ADDRESS>] ehlo=1 starttls=0/1 commands=1/2

PS: <IP_ADDRESS> is my router's LAN address.
My docker-compose file is based on the example one in this repo, and my anonaddy.env file too.

@yurividal Hum not sure if Alpine 3.16 bump https://github.com/anonaddy/docker/pull/131 is responsible for this. Alpine 3.16 install Postfix 3.7.2 and previously we had Postfix 3.6.6. I will push 0.12.3 against Alpine 3.15 ant let you know when the image is available.

@yurividal No PHP 8.1 pks available in Alpine Linux 3.15 unfortunately and AnonAddy 0.12 requires PHP 8.1. Will see if building postfix from source would be a better idea.

Has this been fixed on the latest release?

Looking at how packaging for postfix is currently handled in Alpine and patches being applied, it doesn't seem we have a straight forward way to build postfix from source without taking into account aports changes.
As postfix seems to be the culprit here, I will take a look to create a postfix docker image (non-runnable with only bins) to be able to tackle this issue.
@willbrowningme Are you aware of issues with postfix > 3.6?

Those errors look to me like the issue is an error connecting to Rspamd, as that is the port that Rspamd runs on.
e.g. in /etc/postfix/main.cf:
smtpd_milters = inet:localhost:11332
non_smtpd_milters = $smtpd_milters

@willbrowningme Yes that looks like it but can't repro on my side.
@yurividal Can you post full logs and also your compose file as well as env file if applicable? Thanks.

here are the logs of the working forward:
Aug 01 14:35:31 anonaddy postfix/smtpd[1035]: connect from mx-relay02-hz5.antispameurope.com[<IP_ADDRESS>]
Aug 01 14:35:32 anonaddy postfix/smtpd[1035]: 289984E0CE3: client=mx-relay02-hz5.antispameurope.com[<IP_ADDRESS>]
Aug 01 14:35:32 anonaddy postfix/cleanup[1038]: 289984E0CE3<EMAIL_ADDRESS>Aug 01 14:35:35 anonaddy postfix/qmgr[1021]: 289984E0CE3: from=<prvs=020525b4a1={removed}>, size=150102, nrcpt=1 (queue active)
Aug 01 14:35:35 anonaddy postfix/smtpd[1035]: disconnect from mx-relay02-hz5.antispameurope.com[<IP_ADDRESS>] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 01 14:35:36 anonaddy postfix/smtpd[1035]: connect from localhost[<IP_ADDRESS>]
Aug 01 14:35:36 anonaddy postfix/smtpd[1035]: 25ADE4E0CF3: client=localhost[<IP_ADDRESS>]
Aug 01 14:35:36 anonaddy postfix/cleanup[1038]: 25ADE4E0CF3<EMAIL_ADDRESS>Aug 01 14:35:36 anonaddy postfix/qmgr[1021]: 25ADE4E0CF3<EMAIL_ADDRESS>size=147274, nrcpt=1 (queue active)
Aug 01 14:35:36 anonaddy postfix/smtpd[1035]: disconnect from localhost[<IP_ADDRESS>] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 01 14:35:36 anonaddy postfix/pipe[1039]: 289984E0CE3<EMAIL_ADDRESS>relay=anonaddy, delay=4.6, delays=3.9/0.01/0/0.68, dsn=2.0.0, status=sent (delivered via anonaddy service)
Aug 01 14:35:36 anonaddy postfix/qmgr[1021]: 289984E0CE3: removed

feel free to close this issue if you want.
Only issue i see with this version is the version string not being picked up, but i think a fix for that is on the works

@crazy-max , sorry. I just realized that after upgrading to 0.13.3, i can no longer execute any actions on the web ui.

I know i had to generate a new api token for my app. The app works fine. But, on the web ui, i can't execute any actions. I tells me I am not authenticated.
I have tried different browser and anonymous browser sessions.

@yurividal thanks for bringing that to my attention, I believe the issue is something to do with this -https://laravel.com/docs/9.x/sanctum#configuring-your-first-party-domains
What is the IP that Docker makes request from, would it be <IP_ADDRESS>:8000?

What is the IP that Docker makes request from, would it be <IP_ADDRESS>:8000?
I'm not sure I understand your question. Do you mean what is the IP that anonaddy container sees as the source of the request?

Yes, I believe the issue is that the domain is not being considered stateful by Sanctum which is why it is saying unauthenticated.

@willbrowningme Looking at the code: https://github.com/anonaddy/anonaddy/blob/443d646af6d45e8d0bfa3fa8c984b95cf790292d/config/sanctum.php#L18-L22 I made changes in https://github.com/anonaddy/docker/pull/158 to take into account SANCTUM_STATEFUL_DOMAINS env var so all anonaddy domains are also part of the stateful api: https://github.com/anonaddy/docker/blob/c1c829c7f39ea5d7f8ff56ce1a637b9c9efb6b1c/rootfs/etc/cont-init.d/13-config-anonaddy.sh#L64

@crazy-max I'm not sure it needs all domains, I think it only needs the domain that the web application is being run on e.g. on the hosted version this would be app.anonaddy.com.
So it just needs to be whatever domain they are using to access the web application.

@crazy-max I'm not sure it needs all domains, I think it only needs the domain that the web application is being run on e.g. on the hosted version this would be app.anonaddy.com.
So it just needs to be whatever domain they are using to access the web application.

Ok so ANONADDY_DOMAIN would be enough

The default domains considered stateful by Laravel Sanctum are:
[
  "localhost",
  "localhost:3000",
  "<IP_ADDRESS>",
  "<IP_ADDRESS>:8000",
  "::1",
  "example.com"
]

As can be seen here, where example.com is the current app URL with port.

Otherwise yes web server listening to <IP_ADDRESS>:8000

@crazy-max , sorry. I just realized that after upgrading to 0.13.3, i can no longer execute any actions on the web ui.
I know i had to generate a new api token for my app. The app works fine. But, on the web ui, i can't execute any actions. I tells me I am not authenticated.
I have tried different browser and anonymous browser sessions.

Can you show your logs? There might be smth useful there.

Can you show your logs? There might be smth useful there.

Browser console logs:
app.js?id=490802ebaa…4a97a58f8f79ec2b0:2
 DELETE https://anonaddy.mydomain.com/api/v1/active-aliases/aa074f17-2c54-4b03-a079-fcf777412de2 401 (Unauthorized)

Anonaddy Container Logs:
<IP_ADDRESS> - - [01/Aug/2022:16:09:33 +0200] "DELETE /api/v1/active-aliases/3e441479-7394-41d4-9704-7b018817ed70 HTTP/1.0" 401 30 "https://anonaddy.mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"

As you can see, nothing very useful

Perhaps <IP_ADDRESS> needs adding to SANCTUM_STATEFUL_DOMAINS then.

Perhaps <IP_ADDRESS> needs adding to SANCTUM_STATEFUL_DOMAINS then.

I have created an env "SANCTUM_STATEFUL_DOMAINS" and assigned it the IP of my nginx. I verified that anonaddy can echo this variable, but issue still persists.

@yurividal https://github.com/anonaddy/docker#define-additional-env-vars

@yurividal https://github.com/anonaddy/docker#define-additional-env-vars

Thanks, but, even after adding the .env file with the variable into the /data folder, the error still persists. Unauthorized.
bash-5.1# cat /data/.env
SANCTUM_STATEFUL_DOMAINS=<IP_ADDRESS>

What if you set it as:
SANCTUM_STATEFUL_DOMAINS=localhost,localhost:3000,<IP_ADDRESS>,<IP_ADDRESS>:8000,::1,<IP_ADDRESS>,anonaddy.mydomain.com,anonaddy.mydomain.com:8000

Where anonaddy.mydomain.com is the location where you access the web application.

What if you set it as:
SANCTUM_STATEFUL_DOMAINS=localhost,localhost:3000,<IP_ADDRESS>,<IP_ADDRESS>:8000,::1,<IP_ADDRESS>,anonaddy.mydomain.com,anonaddy.mydomain.com:8000

Where anonaddy.mydomain.com is the location where you access the web application.

It worked! I added <IP_ADDRESS> to the end of this string, just to make sure.
Maybe this solution can be added to the documentation? or is this just a workarround for a future release?

I suspect the one that worked is either anonaddy.mydomain.com:8000 or anonaddy.mydomain.com.
I could update the app/config/sanctum.php file to look like this by default:
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
    '%s%s%s',
    'localhost,localhost:3000,<IP_ADDRESS>,<IP_ADDRESS>:8000,::1',
    Sanctum::currentApplicationUrlWithPort(),
    ','.config('app.url').':8000'
))),

Then we shouldn't need to set anything for the environment variable SANCTUM_STATEFUL_DOMAINS.
Is your APP_URL environment variable set correctly to anonaddy.mydomain.com?

Is your APP_URL environment variable set correctly to anonaddy.mydomain.com?

Yes, it is.

Okay, are you able to open up laravel tinker in the command line by running php artisan tinker and then see what the following command returns:
Laravel\Sanctum\Sanctum::currentApplicationUrlWithPort();

I think it will be ,anonaddy.mydomain.com so that means it is adding anonaddy.mydomain.com:8000 that got it working.

I think it will be ,anonaddy.mydomain.com so that means it is adding anonaddy.mydomain.com:8000 that got it working.

Exactly:
bash-5.1# php artisan tinker
Psy Shell v0.11.8 (PHP 8.1.8 — cli) by Justin Hileman
>>> Laravel\Sanctum\Sanctum::currentApplicationUrlWithPort();
=> ",anonaddy.mydomain.com"

>>>

I suspect the one that worked is either anonaddy.mydomain.com:8000 or anonaddy.mydomain.com.
I could update the app/config/sanctum.php file to look like this by default:
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
    '%s%s%s',
    'localhost,localhost:3000,<IP_ADDRESS>,<IP_ADDRESS>:8000,::1',
    Sanctum::currentApplicationUrlWithPort(),
    ','.config('app.url').':8000'
))),

Then we shouldn't need to set anything for the environment variable SANCTUM_STATEFUL_DOMAINS.
Is your APP_URL environment variable set correctly to anonaddy.mydomain.com?

@willbrowningme Looking at this, if SANCTUM_STATEFUL_DOMAINS=anonaddy.mydomain.com it will produce:
anonaddy.mydomain.comlocalhost,localhost:3000,<IP_ADDRESS>,<IP_ADDRESS>:8000,::1

So add a comma :SANCTUM_STATEFUL_DOMAINS=anonaddy.mydomain.com, or maybe I miss smth?

@crazy-max in Laravel the env() helper method accepts an environment variable as the first argument and then a default value if none is set as the second one, it doesn't append the second argument.
So if you set SANCTUM_STATEFUL_DOMAINS=anonaddy.mydomain.com it would just produce anonaddy.mydomain.com.
The change I just made should mean we don't need to set SANCTUM_STATEFUL_DOMAINS at all.

Looks good thanks, will make the modifications and publish new docker image.

The latest image (0.13.5) didn't fix the issue for me. From the things you wrote above I thought that you didn't have to add anything to the .env file.
My Anonaddy instance is behind a nginx reverse proxy. I set SANCTUM_STATEFUL_DOMAINS=anonaddy.mydomain.com and it worked.


master branch AsyncTcpConnection bug

in https://github.com/walkor/tcp-proxy-demo, if you replace the the Workerman direcotry with master branch then async tcp can not established.
I don't have a linux xdebug environment so I can't debug what is wrong.

It is not workerman's bug.
The workerman in https://github.com/walkor/tcp-proxy-demo is too old.
AsyncTcpConnection must call connect method to establish connection now.
I have fixed in https://github.com/walkor/tcp-proxy-demo/commit/611872455eedcec5d4c06d9c0c6745e6ffa12e95#diff-09912625b277e8728d35f29c441c74c3 just now.


[KYUUBI #2540] Kyuubi Spark TPC-DS Connector - SupportsNamespaces

Why are the changes needed?

fix #2540
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Please add a test

Please add a test

ok

Codecov Report

Merging #2649 (f64150d) into master (e4e8835) will decrease coverage by 0.01%.
The diff coverage is 26.66%.

@@             Coverage Diff              @@
##             master    #2649      +/-   ##
============================================
- Coverage     64.28%   64.27%   -0.02%
- Complexity       80       82       +2
============================================
  Files           384      385       +1
  Lines         18605    18642      +37
  Branches       2520     2526       +6
============================================
+ Hits          11961    11982      +21
- Misses         5505     5518      +13
- Partials       1139     1142       +3

Impacted Files
Coverage Δ

...he/kyuubi/spark/connector/tpcds/TPCDSCatalog.scala
33.33% <26.66%> (-8.78%)
:arrow_down:

...che/kyuubi/ha/client/DiscoveryClientProvider.scala
64.70% <0.00%> (-35.30%)
:arrow_down:

...ache/kyuubi/operation/KyuubiOperationManager.scala
83.60% <0.00%> (-1.64%)
:arrow_down:

.../org/apache/kyuubi/operation/KyuubiOperation.scala
68.00% <0.00%> (-1.34%)
:arrow_down:

...org/apache/kyuubi/ha/client/ServiceDiscovery.scala
91.66% <0.00%> (ø)

...apache/kyuubi/engine/JpsApplicationOperation.scala
83.87% <0.00%> (ø)

...main/scala/org/apache/kyuubi/util/ClassUtils.scala
87.50% <0.00%> (ø)

...la/org/apache/kyuubi/session/AbstractSession.scala
97.16% <0.00%> (+0.02%)
:arrow_up:

...la/org/apache/kyuubi/ha/HighAvailabilityConf.scala
98.97% <0.00%> (+0.06%)
:arrow_up:

...e/kyuubi/engine/spark/operation/ExecuteScala.scala
84.84% <0.00%> (+0.97%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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

Thanks, merging to master


Support centralized tracking

This will allow users to pass in a tracking function to the component, which gets triggered only when the component is displayed. It could potentially be used for other purposes beyond tracking component display.

@mlabieniec I'll move it over - thanks.

@mlabieniec in case you missed it, I updated this PR.


doesn't allow an ajax call to api gateway

I updated the content security policy in index.js to allow an api gateway invoke url as a connect-src but it blocks it. I changed the default-src to * and tried again but it still blocks it. Here's an example of the csp:
headers['content-security-policy'] = [
{
key: 'Content-Security-Policy',
value: "frame-ancestors 'self'; block-all-mixed-content; default-src *; script-src 'self'; style-src 'self'; object-src 'self'; frame-src 'self'; child-src 'self'; img-src 'self'; font-src 'self'; connect-src 'self'; manifest-src 'self'; base-uri 'self'; form-action 'self'; media-src 'self'; prefetch-src 'self'; worker-src 'self';",
},

Hi Jonny,
Can you give an example of the Content Security Policy that wasn't working for you?
Here's an example of a policy that allows connection to API Gateway and Cognito
"content-security-policy": [
            {
                key: "Content-Security-Policy",
                value: "default-src 'none'; connect-src https://*.execute-api.eu-central-1.amazonaws.com https://*.auth.eu-central-1.amazoncognito.com; font-src data:; img-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self'",
            },
        ],

Hi Connor.  Here’s the last iteration of the CSP I tried before giving up:
{
key: 'Content-Security-Policy',
value: "frame-ancestors 'self'; block-all-mixed-content; default-src *; script-src 'self'; style-src 'self'; object-src 'self'; frame-src 'self'; child-src 'self'; img-src 'self'; font-src 'self'; connect-src 'self' https://ovvpbdmxqd.execute-api.us-east-1.amazonaws.com/prod/contactus; manifest-src 'self'; base-uri 'self'; form-action 'self'; media-src 'self'; prefetch-src 'self'; worker-src 'self';",
}

On Sep 13, 2021, at 4:30 AM, Connor Kirkpatrick @.***> wrote:
Hi Jonny,
Can you give an example of the Content Security Policy that wasn't working for you?
Here's an example of a policy that allows connection to API Gateway and Cognito
"content-security-policy": [
{
key: "Content-Security-Policy",
value: "default-src 'none'; connect-src https://.execute-api.eu-central-1.amazonaws.com https://.auth.eu-central-1.amazoncognito.com; font-src data:; img-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self'",
},
],
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/aws-samples/amazon-cloudfront-secure-static-site/issues/38#issuecomment-917962936, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ5B566GBLQNZDO6IINOSMTUBWZEHANCNFSM5DXWV7EA.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Thanks for the example Jonny.
I can't spot an obvious problem with the CSP. One suggestion is to try removing the path in the connect-src. The CSP standard expects a domain, rather than a full URL.
i.e.
Domain: https://ovvpbdmxqd.execute-api.us-east-1.amazonaws.com/
URL:  https://ovvpbdmxqd.execute-api.us-east-1.amazonaws.com/prod/contactus
Updated CSP
{
            key: 'Content-Security-Policy',
            value: "frame-ancestors 'self'; block-all-mixed-content; default-src *; script-src 'self'; style-src 'self'; object-src 'self'; frame-src 'self'; child-src 'self'; img-src 'self'; font-src 'self'; connect-src 'self' https://ovvpbdmxqd.execute-api.us-east-1.amazonaws.com/; manifest-src 'self'; base-uri 'self'; form-action 'self'; media-src 'self'; prefetch-src 'self'; worker-src 'self';",
}


feat: sharded queue

Description
Changes the Queue to a queueRecord<string, Queue> so that we enqueue items of the same name. This creates multiple queues but cuts down on reconciliation time. This is based on issue #1019.
e2e test is here - https://github.com/defenseunicorns/pepr-excellent-examples/pull/52 which includes the original tests
Think about adding a new metrics for queue, maybe items per queue
Related Issue
Fixes #1019

Relates to #
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Other (security config, docs update, etc)

Checklist before merging

[x] Test, docs, adr added or updated as needed
[x] Contributor Guide Steps followed

Nice job on the feature flagging!

Since I wrote the feature and you reviewed it, and you wrote the feature flags and I reviewed it and ran the e2e tests and we don't have another person I will merge this.


When building a tarball, avoid trying to copy submodules

submodules are directories that we don't want in our tarballs, so
avoid them.

This is an alternative to #4114

This looks proper, but there was another problem in #4114, namely Solaris doesn't know --owner flag...

That's a different problem, which I'm not addressing here.

Solaris doesn't know --owner flag

As a matter of fact presumably it's GNU thing, so Solaris is probably not the only one that doesn't...

Merged.  5b7b0115256c4d0be0f92468df14bdf1c57634a5


Add a config to merge keys into scene InjectionMap

This PR changes

The public-facing API

Describe the changes below:
This adds a new config option namely mapAdd for a scene which merges the given key value pairs with the default scene injection values.

Nice, I've wanted something like this. :)

Thanks for this, let's get it merged in.


[TASK] Move PHPStan from PHIVE to Composer

This allows us to have PHPStan extensions, e.g., for PHPUnit.

Personally, on Windows, I've found PHIVE to be a PHAFF, though perhaps not fully understood the point of using it. It seems simpler to me if we just use Composer.

The point was to avoid (or get out of) dependency hell, i.e., being able to run PHPUnit (which requires a composer install) on newer PHP versions even if e.g., PHP-CS-Fixer does not install on that version yet. (And, in the past, the tools did not support the PHP version range that PHP-CSS-Parser support, i.e., from 5.x to 8.3.)
We can also go full-Composer now and switch back to PHIVE when we gave problems like described with a newer PHP version we want to support.

We can also go full-Composer now and switch back to PHIVE when we gave problems like described with a newer PHP version we want to support.

No, let's stick with PHIVE for the reasons you've given.  Thanks for jogging my memory re the reasons for using it.  All I could remember were problems with updates and caches.  IIRC this was mostly solved by removing the binaries from version control, then it was just an issue of getting the local config right.


[Feat] Create an infographic to present amount of injured by age group

The age categories should be:
0-4
5-14
15-19
20-24
25-44
45-64
65+

Hey guys! Good morning.
Is there a reason why we communicate in english?
Regardless, here's the design we made for this slide, however I believe some of the data is missing: the amount of injured in each age group. Otherwise the lengths  of the bars seem a bit arbitrary. Plus I think it's important to know the quantities of the people injured.
What do you think?

@Mr-DannyDin yes you are right about the quantities and it's great how you did it.
While it's good, I would suggest if possible to include some icons of different age groups as we really want the info graphics to be different from one another and emphasize when young and elderly are being injured. So I'm not saying each age group should get an icon but maybe 2 or 3 of them can have an icon of baby and old man etc...
About the English use - Ideally one day we will be an international platform and this is the standard of communication here. Also- I believe to developers don't like switching languages when they code and look on GitHub. You can use whatever is comfortable for you. I got used to it :0

design is finished
still need to know what happens when we have more/less bars (responsive / keep bar width?)

Seems like when there are less bars - they take more space. Question remains

what is the minimum number of bars? will the server enforce it?
here the value is part of the bar, on the image above - it is in the gray box. which is correct?

Waiting for product response for this proposal
Also - what should we do when the value is very low (like 1)? should we put the numbers above the bars?

HI here are the designs for killed_and_injured_count_per_age_group.
One widget that counts injured all severities together (including light injured) - Simple Bar Chart API structure.
I have created 1 wireframe for urban zone and 1 for interurban zone.
Relevant API from BE is comming soon.

API structure(widget date provided by BE team)
"name": "killed_and_injured_count_per_age_group",
"data": {
"items": [
{
"label_key": "00-04",
"value": 18
},
{
"label_key": "05-14",
"value": 29
},
{
"label_key": "15-19",
"value": 15
},
{
"label_key": "20-24",
"value": 52
},
{
"label_key": "25-44",
"value": 241
},
{
"label_key": "45-64",
"value": 107
},
{
"label_key": "unknown",
"value": 3
},
{
"label_key": "65+",
"value": 31
}
],
"text": {
"title": "נפגעים לפי קבוצת גיל",
"subtitle": "במקטע מחלף רמלה דרום - צומת גינתון"
}
},
"meta": {
"rank": 14,
"information": "Project-Id-Version: PROJECT VERSION\nReport-Msgid-Bugs-To: EMAIL@ADDRESS\nPOT-Creation-Date: 2022-01-08 14:56+0200\nPO-Revision-Date: 2020-10-16 15:42+0000\nLast-Translator: FULL NAME EMAIL@ADDRESS\nLanguage: he\nLanguage-Team: he<EMAIL_ADDRESS>nplurals=2; plural=(n != 1)\nMIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\nGenerated-By: Babel 2.9.1\n"
}

Full API example with news flash ID
https://www.anyway.co.il/api/infographics-data?lang=he&news_flash_id=100919&years_ago=5

},
"meta": {
"rank": 14,
"information": "כמות הנפגעים : הרוגים, פצועים קשה וקל - במקטע בפרק הזמן הנבחר"
}


feat: MetaNetX IDs from yeast 7.6

Description of the issue:
Now that both model.metMetaNetXID and model.rxnMetaNetXID are valid fields in our model, we should add all available met and rxn IDs from yeast 7.6, which is present in the MetaNetX repository under model id yeastnet_v7_6.
I hereby confirm that I have:

[x] Checked that a similar issue does not exist already

Is that possible if I upload a MetaNetX reference database as .mat file?

@feiranl .mat files cannot be added in devel or any feature branch as you can see in the .gitignore setup: https://github.com/SysBioChalmers/yeast-GEM/blob/devel/.gitignore This to prevent conflicts arising between branches if the file gets modified.


Add COVID-19 clause to unenrolled page

oops, this should actually be on the prescreenEnrolledInVirtualSchool page.


Pointcloud matching fail when vehicle rotates

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I'm convinced that this is not my fault but a bug.

Description
While running Autoware, the pointcloud seems to be acting weird on rotating situation.
https://github.com/user-attachments/assets/28ecc22e-eac2-4fb0-84bd-5ee5988a4bbf
I have no clue what information I have to provide for resolving this issue.
I'm aware that my pointcloud map has very few feature since it's a racing track and this might be the cause of this issue.
If this is the case, is there any possible method to enforce localization?
Expected behavior
pointcloud keeps aligned with map by NDT scan matcher.
Actual behavior
mis-matches with map when rotating.
Steps to reproduce
Rosbag or map will be provided when request is made.
Versions
Ubuntu 22.04 + ROS2(humble)
Autoware release/v1.0
Possible causes
No response
Additional context
No response

It would be a good idea to check ros2 run rqt_runtime_monitor rqt_runtime_monitor and look at the ndt_scan_matcher_status.
The displayed items may be slightly different from the following picture (due to the Autoware version), but the information should still be helpful.
First, confirm that skipping_publish_num is 0 which means that ndt_scan_matcher publish pose normally.

Wow thanks for your quick reply.
https://github.com/user-attachments/assets/060036bf-d01a-4e50-b17b-e3b30b7e9837
I noticed that that execution_time and iteration_num increases while rotation.
[NDT-matching fail -> iteration_num increase -> execution_time increase] is this the case?

I agree that the execution_time and iteration_num are high.
On the other hand, skipping_publish_num remains at 0, so I think the NDT itself is publishing poses successfully.
If the configuration is as per the recommended architecture, the NDT poses are processed by the ekf_localizer. My guess is that the ekf_localizer is rejecting the NDT poses for some reason. (timestamp delay or mahalanobis gate, etc.)
Is it possible to see the ekf_localizer status as well?

Here's the ekf_localizer status.
Also, the architecture of Autoware has no significant change to cause this issue.
https://github.com/user-attachments/assets/3e27225e-9a99-4fcb-99b8-57a1542b2534

It seems that the ekf_localizer is working well, so there may be another issue.
To investigate the cause, you can try two approaches.
(1) Run the logging_simulator with only odometry (without the ndt_scan_matcher)
This way, you can verify whether the odometry is functioning correctly. (i.e., IMU bias and velocity scaling are properly calibrated).
To acheive this, it's easy to change the output topic name in the ndt_scan_matcher config from /localization/pose_estimator/pose_with_covariance to /localization/pose_estimator/pose_with_covariance_tmp, or something similar.
https://github.com/autowarefoundation/autoware.universe/blob/main/launch/tier4_localization_launch/launch/pose_twist_estimator/ndt_scan_matcher.launch.xml#L3
(May be another file in your version)
(2) Check the trajectories of the ekf_localizer and ndt_scan_matcher
This method allows you to verify the lidar extrinsic calibration is accurate.
By enabling the pose history checkbox in Rviz(as shown in the next picture), you can visualize each trajectory.

If the trajectories of the ndt_scan_matcher and ekf_localizer differ, it could indicate a problem with the lidar-to-base_link calibcation.

Thanks for your help.
I just checked the trajectories of both of them and seems like there's a problem here.
I'll try something I can do and open this issue again if help is needed :)


"Bad Input to API call" error dialog showing up

I've started seeing an error saying "Bad input to API call" and "{"error": "v1_retired"}" randomly on my Mac. It's a 2015 15 inch MBP running the latest version of Monterey and v1.6.2 of Maestral.
Also about the same time, the sync system pauses itself and shows the circle with two lines in it icon. I then have to select "Resume Syncing" to get it back to normal.
Thanks!

@danberlyoung Duplicate of #683. Perhaps consider closing this one and adding to that issue?


variables -my variable block label cannot change when change language

Expected Behavior
block "my variable" should be translate to japanese
Actual Behavior
still english word "my variable"
Steps to Reproduce

Open https://scratch.mit.edu/ under Chrome,
Default language is English. check the Variables-my variable label,
Change language to Janpanese, check the previous block's label (still using English) again.

ps but if you refresh the browser then everthing is fine.
Operating System and Browser
Window 10/Chorme 84.0.4147.105

I think this is working as intended. Once the project is generated, changing the language should not change the project.

This is by design.


simplify config

Keep config file minimal:

Make from_smtp_port optional, using 587 by default
Allow host:port notation
Remove from_smtp_port and from_user from config example
Update readme

Done


Bump min java support to 1.8

Fixes #1218

This was manually merged after rebasing the branch and adding more changes to switch to Java 8. Unfortunately Github did not pick up on this so I have to close it now and it doesn't show as merged.


artisan websockets:restart ?

Is there a way to restart the websockets server?
I am running supervisor, but the laravel app user doesn't have permission to access it.
Maybe the same kind of solution that queue:restart does? (that works fine regarding permissions in my case)

Any updates to this?

What about mimicing how Horizon does it? php artisan horizon:terminate

Just a question, what happens to the existing connections if the server is restarted or goes down for a certain amount of time? Do they resume id the server comes back online within a time limit (if yes, what's this time limit) ?


Reset Custom Meta Data

It would be helpful to have a reset option for every property inside the custom meta data form.
It should revert back to the original PropType Component definitions.

Good idea!


chore(npm): sync package.json from npm-package-template

engines, version, release scripts for semantic-release, mocha, jsdoc and istanbul

Current coverage is 90.00%

Merging #3 into master will not affect coverage as of 4693256

@@            master     #3   diff @@
=====================================
  Files            1      1
  Stmts           10     10
  Branches         0      0
  Methods          0      0
=====================================
  Hit              9      9
  Partial          0      0
  Missed           1      1

Review entire Coverage Diff as of 4693256

Powered by Codecov. Updated on successful CI builds.


Setting displayOrigin on Video that uses loadURL makes it disappear

Version

Phaser Version: 3.52.0

Operating system: macOS

Browser: Chrome

Description
When setting displayOrigin on a Video that is loaded with its loadURL function, it does not show up. It works if the video is loaded via key, or if setOrigin is used instead.
Example Test Code
Go to https://labs.phaser.io/edit.html?src=src/game objects/video/play video.js&v=3.52.0 and copy/paste the code below
var config = {
    type: Phaser.AUTO,
    width: 800,
    height: 600,
    backgroundColor: '#2d2d2d',
    parent: 'phaser-example',
    scene: {
        preload: preload,
        create: create
    }
};

var game = new Phaser.Game(config);

function preload ()
{
    this.load.video('wormhole', 'assets/video/wormhole.mp4', 'loadeddata', false, true);
}

function create ()
{
    var vid = this.add.video(400, 300, /* 'wormhole' */) // if key is specified and loadURL is taken out, it works
    vid.loadURL('assets/video/wormhole.mp4')
    vid.setDisplayOrigin(0, 0) // breaks video when loaded with loadURL

    vid.play(true);
}

Additional Information

I think if you add a video with no source you must give it a size:
var vid = this.add.video(400, 300).setSize(800, 600);

Or else wait for VIDEO_CREATED as the video has no texture frame before then.
I think the problem you saw was because setting the display origin on a size 0 game object spoils the origin values (NaN, NaN). Maybe Phaser could handle that better.

Ah yes, that makes a lot of sense. I ended up waiting for the video to be created like you said.
I think even if Phaser threw a helpful warning when the result is NaN, or when it's being set before it has a size, that would be enough.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.


Rails/RedundantActiveRecordAllMethod false positive

Any time you call a method named all in a chain (e.g. document.marc_links.all.first.href), it assumes it to be the ActiveRecord::Base#all
This doesn't seem like a rule that is well suited for static analysis.  There is no convention that state that only AR may define all.  This makes it hard to use this cop as you have to sort though all of the occurrences and determine which are real (none in my case).

This is the rspec-rails repository, did you mean to open this on the rubocop-rails repository?


(wip) Additional window groups splitting strategies.

This is a pretty rough implementation of alternative ways to split DIA frames into raw spectra.
If this is within the scope of what you want to support I would be happy to finish it as a full feature (+ add testing, + add documentation/comments, + remove debug prints)
LMK what you think! @sander-willems-bruker

This would also be a good time to expose the smoothing-centroiding parameters to the public API ... which would be something that gets passed to timsrust::io::readers::SpectrumReader::new ... which could be something like ...
struct SpectrumReaderParameters {
    spectrum_processing_params: <... smoothing and centroiding stuff ...>,
    frame_splitting_params: Option<FrameSplittingStrategy>
}

An additional thing that could go into the strategy would be whether it should be done at the quad+window level or only at the window level (which would enable diagonal pasef methods to be split as well).

Thanks for the PR, looks very nice! Tested it out locally and can confirm your findings with regards to speed and identification performance.  If you haven't started yet though, I can also take it from here and work on it locallu before merging into dev.

Right on! I will propagate some of the changes and implement the strategy pattern for the config! (I first wanted to know that this was something you would be interested in before going ahead and "back-propagating" the configuration)

@sander-willems-bruker Just FYI your last push to develop introduced A LOT of merge conflicts. I would have appreciated a heads up.
reference: https://github.com/MannLabs/timsrust/compare/cc83557b5dd6ed567abd2d72780726edd2c55b1a..21efdf9e5279a200195c4bdb61fdd7738e219b66

Yes, my apologies. I should have made a separate branch before merging to develop. Will try to make that my new routine for future work. We'll continue on the other PR;)


Fix logging

Logging is a bit stuffed right now. We should support logging to a file + stdout, debug/notice/critical are the only ones needed, etc. Keep it simple.

New logging infra being written in devel+logging

I'm marking this as fixed -- will be extended as we go.


DatasyncDocumentFilter does not work with ReadOnlyTableController

Describe the bug
Similar issue than #770 but when using a ReadOnlyTableController as the base class like this one:
[NonAction]
public override Task<IActionResult> CreateAsync([FromBody] TData item, CancellationToken token = default)
{
  return base.CreateAsync(item, token);
}

[NonAction]
public override Task<IActionResult> DeleteAsync([FromRoute] string id, CancellationToken token = default)
{
  return base.DeleteAsync(id, token);
}

[NonAction]
public override Task<IActionResult> PatchAsync([FromRoute] string id, CancellationToken token = default)
{
  return base.PatchAsync(id, token);
}

[NonAction]
public override Task<IActionResult> ReplaceAsync([FromRoute] string id, [FromBody] TData item, CancellationToken token = default)
{
  return base.ReplaceAsync(id, item, token);
}

To Reproduce
Steps to reproduce the behavior:

Create a ReadOnlyTableController class that derives from TableController and override the write methods to make them unavailable.
Modify TodoItemController to use ReadOnlyTableController as its base class.
Configure the backend to use Swashbuckle and run it.
The OpenApi schema is not generated and there is no way to test the controller.

Expected behavior
The OpenApi parameter definitions should be generated.
Additional context
I have overcome this issue modifying the DatasyncDocumentFilter and changing these methods, but it would be great if it was handled by design.
internal static bool IsApiDescriptionForController(ApiDescription description, Type controllerType)
{
  if (description.TryGetMethodInfo(out MethodInfo methodInfo))
  {
    return methodInfo.ReflectedType == controllerType && (methodInfo.Name.Equals("GetAsync") || methodInfo.Name.Equals("QueryAsync"));
  }
  return false;
}

Apply method:
    // Get the various operations
    var operations = new Dictionary<OpType, OpenApiOperation>();
    if (document.Paths[allEntitiesPath].Operations.TryGetValue(OperationType.Post, out OpenApiOperation createOperation))
      operations.Add(OpType.Create, createOperation);
    if (document.Paths[singleEntityPath].Operations.TryGetValue(OperationType.Delete, out OpenApiOperation deleteOperation))
      operations.Add(OpType.Delete, deleteOperation);
    if (document.Paths[singleEntityPath].Operations.TryGetValue(OperationType.Get, out OpenApiOperation getByIdOperation))
      operations.Add(OpType.GetById, getByIdOperation);
    if (document.Paths[allEntitiesPath].Operations.TryGetValue(OperationType.Get, out OpenApiOperation listOperation))
      operations.Add(OpType.List, listOperation);
    if (document.Paths[singleEntityPath].Operations.TryGetValue(OperationType.Patch, out OpenApiOperation patchOperation))
      operations.Add(OpType.Patch, patchOperation);

    // Make the system properties in the entity read-only
    if (!processedEntityNames.Contains(entityType.Name) && context.SchemaRepository.Schemas.TryGetValue(entityType.Name, out var openApiSchema))
    {
      openApiSchema.MakeSystemPropertiesReadonly();
      openApiSchema.UnresolvedReference = false;
      openApiSchema.Reference = new OpenApiReference
      {
        Id = entityType.Name,
        Type = ReferenceType.Schema
      };
    }

Turns out this one was fixed by the fix for #770.  I also fixed NSwag at the same time (which was a little more complicated).

Fixed in #778


Will there be any support for django 2.2 and above?

Do you plan on any updates so that current versions of django will be supported? I have been trying and hoping to get this to work with 2.2 and just re-read the documentation to find this...
Currently, django-recurrence supports Python 2.7, Python 3.3, Python 3.4 and Python 3.5.

django-recurrence works with Django from versions 1.7 to 1.11.

It appears that {{form.media}} is loading enough to create the textarea but that is it.

I think Django up to at least 2.1 is supported, and I suspect 2.2 works too - that documentation is just out of date. If you install an older version of Django locally, does that page work? The error you're seeing doesn't look Django version related to me - I suspect you've just got some set up issues.

I followed the instructions  here and added the following to my project urls.py (not my applications urls.py)
`import django
from django.conf.urls import url
from django.views.i18n import JavaScriptCatalog
Your normal URLs here...
If you already have a js_info_dict dictionary, just add
'recurrence' to the existing 'packages' tuple.
js_info_dict = {
'packages': ('recurrence', ),
}
jsi18n can be anything you like here
urlpatterns += [
url(r'^jsi18n/$', JavaScriptCatalog.as_view(), js_info_dict),
]`
Everything else in my version is working fine. I could try installing an older version later, but I am hoping there is something that I am missing.

The link helped me get past the pgettext error in the console now I just have
Uncaught ReferenceError: django is not defined
    at <anonymous>:1:1
    at p (jquery.min.js:2)
    at Function.globalEval (jquery.min.js:2)
    at text script (jquery.min.js:4)
    at Nb (jquery.min.js:4)
    at A (jquery.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery.min.js:4)
    at Object.send (jquery.min.js:4)
    at Function.ajax (jquery.min.js:4)
    at Function.r._evalUrl (jquery.min.js:4)

Looking through the js files I am unable to tell what jquery dependency is needed. It feels that maybe more or less the problem. I am currently using jQuery 3.4.1 .

Ok, so I removed all occurrences of django.jQuery and added scripts/CSS to my static/lib folders and things are displaying. I will just have to work with the CSS which is not playing nice with the modal. I am guessing there needs to be a check if the form is in the admin or not for the widget to load properly.

@dominicrodger I have been able to get everything working except for the calendar button ( I am not a javascript guy) any ideas or help to get this piece working?

I'm using Python 3.6 and Django 2.2. I hit the same issue. Pull request #143 fixes it.

Awesome - thanks @aaugustin. Once I've merged #143 I'll update the documentation to make it clearer which versions of Django are supported.

Merged #143, docs updated in 07add25c01058206d3e273598c8716d8d31c47e8.

So the package should be able to be executed as designed without my
"hackery"?
AP
On Mon, Jul 1, 2019, 4:09 PM Dominic Rodger<EMAIL_ADDRESS>wrote:

Closed #142
https://github.com/django-recurrence/django-recurrence/issues/142.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/django-recurrence/django-recurrence/issues/142?email_source=notifications&email_token=AAPA2234GDWV5W65I2MZWNLP5JQA7A5CNFSM4HY3IDRKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSIVVOHQ#event-2452313886,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPA225RB7I76O26OGR3333P5JQA7ANCNFSM4HY3IDRA
.


Respect Windows directory locations.

https://github.com/mitchellh/go-homedir/blob/af06845cf3004701891bf4fdb884bfe4920b3727/homedir.go#L148-L167
TL;DR, change code to
func dirWindows() (string, error) {
	home := os.Getenv("LOCALAPPDATA")
 	if home == "" {
		return "", errors.New("LOCALAPPDATA environment variable is missing or empty")
	}
	return home, nil
}

$HOME is non-standard on Windows, and likely references $USERPROFILE.  $USERPROFILE is not meant to be a location that applications store files other than via a save dialog box or similar situation where the user is explicitly putting files there.  The proper location to store data that should be automatically synced to a network or uploaded to the cloud is $APPDATA.  For data that should be machine-local (e.g., caches, application data, etc.) it should be stored in $LOCALAPPDATA.
In this library, it doesn't appear that you distinguish between data types so $LOCALAPPDATA is the best location.  If someone throws a cache in there you don't break the user's profile.
Note: $LOCALAPPDATA has been around since Windows XP/2003 while the fallback you were using of $HOMEDRIVE I think has been deprecated and $HOMEPATH is fairly new (and I think also deprecated), so this is not only more correct, but also more backward compatible than the code currently present.

Since Go 1.13 it is better to use os.UserConfigDir() or os.UserCacheDir() (and probably avoid os.UserHomeDir() to store application data).


Design doc

Produce a short doc to describe the broad design of the game and MVP.

First draft completed [doc/design.md[(https://github.com/DouglasOrr/UnnamedGame/blob/master/doc/design.md).


Created a Function For Counting The Length of a String

Description
Create a Function For Counting The Length of a String

Merged

This is an automated message from Fork, Commit, Merge [BOT].

Thank you for your contribution! Your pull request has been merged. The files have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out my other projects. Just click here to find more. These projects contain real issues that you can help resolve. You can also check out the Influences section in the README to find more projects similar to this one.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


SCA Java Script module  Component- utils-merge

Component name : utils-merge
Component Path :
file7594629209_1618840106812_html/automate-ui/node_modules:utils-merge
CVE ID : SRCCLR-SID-30533
https://sca.analysiscenter.veracode.com/vulnerability-database/security/sca/vulnerability/sid-30533/summary
Vulnerability description :
Prototype Pollution: utils-merge is vulnerable to prototype pollution. An attacker is able to inject properties into existing construct prototypes and modify attributes such as __proto__, constructor and prototype.
Reference Link : https://analysiscenter.veracode.com/auth/index.jsp#ReviewResultsSCA:11695:1065071:11719780:11694240:11709903:::::3090080:

Already fixed


Azure SDK Review - [Cognitive Services Text Analytics API]

New SDK Review meeting has been requested.
Service Name: Cognitive Services Text Analytics API
Review Created By: Bidisha Chakraborty
Review Date: 06/04/2024 02:05 PM PT
Release Plan:1269
Hero Scenarios Link: Not Provided
Architecture Diagram Link: Not Provided
Core Concepts Doc Link: Not Provided
APIView Links: .NET,
Description: SDK review for Text Analytics
Detailed meeting information and documents provided can be accessed here

Meeting updated by Bidisha Chakraborty
Service Name: Cognitive Services Text Analytics API
Review Created By: Bidisha Chakraborty
Review Date: 06/06/2024 02:05 PM PT
Hero Scenarios Link: Not Provided
Architecture Diagram Link: Not Provided
Core Concepts Doc Link: Not Provided
APIView Links: .NET,
Description: SDK review for Text Analytics
Detailed meeting information and documents provided can be accessed here

Meeting updated by Ronnie Geraghty
Service Name: Cognitive Services Text Analytics API
Review Created By: Bidisha Chakraborty
Review Date: 06/06/2024 02:05 PM PT
Hero Scenarios Link: Not Provided
Architecture Diagram Link: Not Provided
Core Concepts Doc Link: Not Provided
APIView Links: .NET,
Description: SDK review for preview release of Text Analytics
Detailed meeting information and documents provided can be accessed here


Add GEO token

.json and .png document checklists

[X] logo dimensions: 120*120 px
[X] logo background: Transparent
[X] At least one transaction on the token contract
[X] For ERC-20 project teams: Upper and lower capitalized alphabets in token address (For checksum purposes)
[X] Same document name for both .json and .png (Including capitalization)

Project team background
GeoDB is formed by world-class talent entrepreneurs, developers and designers from all over the world. It was created in 2018 by four serial entrepreneurs with 10+ years experience in the tech space and with previous successful ventures (www.wavelt.com). 7+ years experience in the Blockchain industry.
In the following link you could find the general Deck of the company with all needed information.
https://geodb.com/en/company/whoweare
Project basic information
GeoDB (https://www.geodb.com) is a decentralized peer-to-peer data sharing ecosystem powered by blockchain technologies.
GeoDB’s mission is to democratize the 260bn Big Data industry, building an open ecosystem in which to establish better and trusted relationships between market participants while giving back control and value to data generators, the users.
Media publications

https://medium.com/@GeoDataBlock

Supported Exchanges

https://www.longbit.com/

Suggested Gas limit settings
70,000
Official announcement
https://twitter.com/GeoDataBlock/status/1191770455914483718

Welcome to recommend imToken 2.0 to your token holders to manage their token.


How to formatting SQL?

Good work!
How to start formatter ?
Thanks,
Charlie

that would be great to have!

It would be great to support SQL formatting, but I think that is outside of the scope of a syntax highlighter. I've used a few of the online SQL formatters in the past, with varying results.


how to count specific column in entity framework core

StackOverflow issue here.
When I use left join to perform a grouped query of two tables, the generated count statement is always count(*), I want to generate the count of the specified column. For example: count(InstrumentCode).
Framework: EF Core 3.0-preview9
var resultQuery = from t1 in query
    join t2 in orgCrmQuery on t1.CUSTOMER equals t2._ID
    join t3 in orgQuery on t2.NAME equals t3.ORGANIZATION_NAME into t4
    from t5 in t4.DefaultIfEmpty()
    join t6 in instrumentQuery on t5.ORGANIZATION_ID equals t6.ORGANIZATION_ID into t7
    from t8 in t7.DefaultIfEmpty()
    where t2.RECORD_TYPE == dto.RecordType && t1.MEETING_NO == dto.MeetingNo
    group t8.INSTRUMENT_CODE by new {
        t1.PERSON_NAME,
        t1.SEX,
        t1.POSTION,
        t1.PHONE,
        t1.IS_CIZHU_KEHU,
        t2.NAME,
        t2.ORG_LEVEL,
    } into g
    orderby g.Key.NAME
    select new {
        g.Key.PERSON_NAME,
        g.Key.SEX,
        g.Key.POSTION,
        g.Key.PHONE,
        g.Key.IS_CIZHU_KEHU,
        g.Key.NAME,
        g.Key.ORG_LEVEL,
        INSTRUMENT_COUNT = g.Count()
    };

Sql statement generated now：
SELECT
	[t].[PERSON_NAME],
	[t].[SEX],
	[t].[POSTION],
	[t].[PHONE],
	[t].[IS_CIZHU_KEHU],
	[t0].[NAME],
	[t0].[ORG_LEVEL],
	COUNT ( * ) AS [INSTRUMENT_COUNT]
FROM
	[dbo].[TB_MEETING_PERSONAL] AS [t] WITH ( NOLOCK )
	INNER JOIN [dbo].[TB_ORG_CRM] AS [t0] WITH ( NOLOCK ) ON [t].[CUSTOMER] = [t0].[_ID]
	LEFT JOIN [dbo].[MS_ORGANIZATION] AS [m] WITH ( NOLOCK ) ON [t0].[NAME] = [m].[ORGANIZATION_NAME]
	LEFT JOIN [dbo].[MS_INSTRUMENT] AS [m0] WITH ( NOLOCK ) ON [m].[ORGANIZATION_ID] = [m0].[ORGANIZATION_ID]
WHERE
	(
		( ( [t0].[RECORD_TYPE] = @__dto_RecordType_0 ) AND ( [t0].[RECORD_TYPE] IS NOT NULL AND @__dto_RecordType_0 IS NOT NULL ) )
		OR ( [t0].[RECORD_TYPE] IS NULL AND @__dto_RecordType_0 IS NULL )
	)
	AND (
		( ( [t].[MEETING_NO] = @__dto_MeetingNo_1 ) AND ( [t].[MEETING_NO] IS NOT NULL AND @__dto_MeetingNo_1 IS NOT NULL ) )
		OR ( [t].[MEETING_NO] IS NULL AND @__dto_MeetingNo_1 IS NULL )
	)
GROUP BY
	[t].[PERSON_NAME],
	[t].[SEX],
	[t].[POSTION],
	[t].[PHONE],
	[t].[IS_CIZHU_KEHU],
	[t0].[NAME],
	[t0].[ORG_LEVEL]
ORDER BY
	[t0].[NAME] OFFSET 0 ROWS FETCH NEXT 100 ROWS ONLY

I checked some information, but I didn't find a solution.

How to write such query has been answered on stackoverflow already.
For the translation duplicate of #17376


fix computed tree with array of models

I think it was actually incorrect to untweak oldValue and not entry.tweakedValue (i.e. oldTweakedVlaue) because oldValue hasn't been tweaked. I also saw this when stepping through the code with the debugger:
https://github.com/xaviergonz/mobx-keystone/blob/e35a792789fc66734b43cbf801d93a4e29ef9bd1/packages/lib/src/computedTree/computedTree.ts#L78
didn't execute
https://github.com/xaviergonz/mobx-keystone/blob/e35a792789fc66734b43cbf801d93a4e29ef9bd1/packages/lib/src/tweaker/tweak.ts#L91-L100
WDYT, @xaviergonz?
Fixes #483. :crossed_fingers:

just wondering, do we need to keep tryUntweak(oldValue)?

Argh, I forgot to remove this line in the end. You're right, that's not needed anymore.

Thanks a lot!


Fixed latent bug in MqttApplicationMessageBuilder.WithPayload stream overload

Stream.Read can read less than requested bytes, so we need read in a loop until either the requested byte-count is read or 0 is returned.
It's hard to construct a proper test for this, but that behavior is documented.

Thank you for your contribution. Good work 👍

wouldn't it be better to only start a loop when the first read returns less bytes?

@jogibear9988 that's basically done with the do-while loop.

I only thought it would maybe more effective. But I've not analyzed the IL...
So. OK


Charts failing on first attempt will prevents installing of charts going forward

There's an issue where if a chart fails to install from the UI you can't install it a second time.  The easiest way to reproduce is install the backup-operator and select s3 with no option.  It will fail and then the second install will fail also.  And then you can't ever install.

Closing this in favor of : https://github.com/rancher/dashboard/issues/1410


Destroy or remove

There doesn't seem to be an option to remove or destroy the Model. I'd like to make the model stop working at certain screen sizes.

Hi @psweeting1, thank you for the comment.
So, do you mean that you don't want to make the Modal when at certain case?

Hi @anseki fantastic plugin.
Pretty much, when I get a screen width less than 1200 pixel I wish to remove or prevent the model from activating. At the moment I use it on to load previewed images, but when on mobile / small devices I need it to stop.

The current version of jQuery-plainModal doesn't support destroying the modal (restoring content).
Therefore, your script has to do instead, but that may be easy.
For example,

const content = $('#image'),
  modal = $('#container').plainModal();

Your script should run by a trigger like window.matchMedia.
Then, that does content.append(document.body) or content.append(container).

That's really helpful thank you, I now have a better idea on my options. I think I would try using CSS condition instead of window.matchMedia for support reasons.
$(window).resize(function(){

       if ($('.container').width() == 1200 ){

             content.append(document.body);

       }

});

Just an Idea. Thanks again for your time and help.

This line in your code:
if ($('.container').width() == 1200) {

should be:
if ($('.container').width() <= 1200) {

And, your idea checking a size of container may be no good. It requires that the container must be resized always when a window is resized, and it must not conflict with a stylesheet in a page.
E.g. if the container has width: 1300px, that code never run.
And also, that code is called repeatedly when window is resized, again again and again... very many times... That is called when resized to 1201, 1202, 1203... and more.
I recommend window.matchMedia that is used typically, and it is more easy and simple way.
In many cases, a web page supports "Responsive Web Design" (RWD) by using "CSS3 media queries". Therefore a script code does something based on "CSS3 media queries" (i.e. window.matchMedia) when the web page is layouted with RWD.
For example:
Your web page is designed with 1200px break point. This break point makes wide-layout or small-layout.
const mql = window.matchMedia('screen and (min-width: 1200px)');
mql.addListener(event => {
  if (mql.matches) {
    // Do something for wide-layout
    content.append(container);
  } else {
    // Do something for small-layout
    content.append(document.body);
  }
});

/* small-layout */
#container {
  width: 960px;
}

@media only screen and (min-width: 1200px) {
  /* wide-layout */
  #container {
    width: 1024px;
  }
}

If you want, you can add more break points like "tablet-layout", "print-out-layout" that is used for printer (it does not check width of the page), etc,.

This is great, thank you for your time and help, I'm fairly new to jQuery if you couldn't tell. This should open up more doors for me in my options.
Thanks again!

😄


NodeWatcher.watchdir error！！  what's this ?

7:45:27 PM]  Building Dependency Graph
[7:45:27 PM]  Crawling File System
ERROR  watch ENOSPC
{"code":"ENOSPC","errno":"ENOSPC","syscall":"watch"}
Error: watch ENOSPC
at exports._errnoException (util.js:837:11)
at FSWatcher.start (fs.js:1231:11)
at Object.fs.watch (fs.js:1257:11)
at NodeWatcher.watchdir (/home/iojsServer8083/node_modules/react-native/node_modules/sane/src/node_watcher.js:144:20)
at Walker. (/home/iojsServer8083/node_modules/react-native/node_modules/sane/src/node_watcher.js:351:12)
at emitTwo (events.js:87:13)
at Walker.emit (events.js:172:7)
at /home/iojsServer8083/node_modules/react-native/node_modules/sane/node_modules/walker/lib/walker.js:69:16
at /home/iojsServer8083/node_modules/react-native/node_modules/graceful-fs/graceful-fs.js:140:16
at FSReqWrap.oncomplete (fs.js:82:15)
See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
npm ERR! Linux 3.13.0-32-generic
npm ERR! argv "/root/.nvm/versions/io.js/v3.3.1/bin/iojs" "/root/.nvm/versions/io.js/v3.3.1/bin/npm" "start"
npm ERR! node v3.3.1
npm ERR! npm  v2.14.3
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: node_modules/react-native/packager/packager.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'node_modules/react-native/packager/packager.sh'.
npm ERR! This is most likely a problem with the BTYAppIos3React package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node_modules/react-native/packager/packager.sh
npm ERR! You can get their info via:

We recommend installing watchman on Linux but officially support only OS X. There is a new page on the docs that mentions watchman on Linux which may fix your bug: https://facebook.github.io/react-native/docs/linux-windows-support.html#content

This helped me:
http://stackoverflow.com/questions/34662574/node-js-getting-error-nodemon-internal-watch-failed-watch-enospc
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p


Search and replace on a very large file causes VS Code to crash

VSCode Version: 1.15.1
OS Version: Windows 10

Steps to Reproduce:

Open a very large file (mine was a 115MB yml file)
CTRL + H
Type the string to search for and the replacement (999+ instances were found)
Choose Replace All
VS Code crashes

I I replace just one instance, it doesn't crash.
Reproduces without extensions: Yes

@mairaw I wonder if we are running into an OOM situation. Does this work as expected when using VSCode 64bit ?

Didn't realize there was a response here earlier. Just to close the loop, I'm now running the VS Code 64-bit version and I'm no longer having this issue. Thanks!


Getting Size of File Transferred

Hello Everyone,
Is there any way of getting to know how much percentage of file has been transferred.
We use node-ftp to deploy our build zip to the server.
Its ususally between 5 to 7 MB.
We have to wait for a minute or two for the upload to get completed.
It would be nice if we are able to display the percentage of the file upload.
Is this Possible??
Thanks in advance.

I found the answer at Issue#73.
After implementing the solution. This is my progress.

But the long list of percentage displays were clumsy.
So I came up with a solution based on a StackOverflow answer to print the progress in a single line.
Here is the entire script. Hope it might help someone,
var path = require('path');
var fs = require('fs');
var Client = require('ftp');
var c = new Client();
var connectionProperties = {
host     : '...',
user     : 'foo',
password : 'bar'
};
var percentageComplete = 0;
var intervalId         = null;
function progressBar(){
var i = 0;  // dots counter
intervalId = setInterval(function() {
process.stdout.clearLine();  // clear current text
process.stdout.cursorTo(0);  // move cursor to beginning of line
i = (i + 1) % 4;
var dots = new Array(i + 1).join(".");
process.stdout.write(percentageComplete  + ' % complete' + dots);  // write text
}, 300);
}
c.on('ready', function () {
console.log('Connected to FTP Server');
var file  = fs.createReadStream('build.zip'),
cur   = 0,
total = fs.statSync('build.zip').size;
file.on('data', function(d) {
cur += d.length;
percentageComplete = ((cur / total) * 100).toFixed(1);
});
progressBar();
console.log('Transfer Begun...');
c.put(file, 'build.zip', function(err) {
clearInterval(intervalId);
if (!err){
console.log('\nTransfer Completed');
console.log('Exiting Now');
c.end();
} else {
throw err;
}
});
});
c.connect(connectionProperties);
This finished CLI look


Fix for #3109

@bigdaz Should this be a fix for #3019?

Thanks @wolfs you're correct. I had used the wrong issue number throughout.


Upgraded to Kubernetes v0.17.0.

Just waiting on release notes in order to merge this.

Release notes are out and nothing seems to break. I've tested my Elasticsearch cluster setup, the official walkthrough and Hazelcast example.


add AuthFileCredential and unit test

Added AuthFileCredential and its tests to azure-identity
https://github.com/Azure/azure-sdk-for-net/pull/9312

Can one of the admins verify this patch?

This is on hold pending further discussion

I'm merging this (note: not to master) so we can close it but hang on to the code until reaching a final decision.


Vehicles glitching through back and forth on the roads

Describe the problem
When I open my save game the following error appears:
"Object reference not set to an instance of an object [System.NullReferenceException]
Details:
No details"
It spams a million times before it eventually disappears after pressing esc and enter continuously (not even sure if it disappears by itself or if i had done something right spamming esc and enter buttons)
Steps to reproduce

Open save game.
Vehicles start sliding through back and forth on the roads Above message appears a million times
Above message appears a million times
Vehicles eventually stops and the message disappears

I dont have the courage to progress on my save game because I'm afraid this error will corrupt my files in the future
Log files
[] (https://ufile.io/q5pickdb)
 (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Simulation error: Object reference not set to an instance of an object
at (wrapper delegate-invoke) TrafficManager.Patch._CitizenAI._ResidentAI.Connection.GetElectricCarProbabilityResidentDelegate.invoke_int__this___ResidentAI_uint16_CitizenInstance&_Citizen/AgePhase (ResidentAI,uint16,CitizenInstance&,Citizen/AgePhase) <0x00098>
at TrafficManager.Manager.Impl.ExtVehicleManager.ShouldUseElectricCar (Citizen&,CitizenInstance&) <0x0011a>
at TrafficManager.Manager.Impl.AdvancedParkingManager.OnCitizenPathFindSuccess_Default (uint16,CitizenInstance,Citizen&,TrafficManager.API.Traffic.Data.ExtCitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizen&,bool,bool,uint16,TrafficManager.API.Manager.IExtBuildingManager,bool) <0x0025b>
at TrafficManager.Manager.Impl.AdvancedParkingManager.OnCitizenPathFindSuccess (uint16,CitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizen&,Citizen&) <0x00503>
at TrafficManager.Manager.Impl.AdvancedParkingManager.UpdateCitizenPathState (uint16,CitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizen&,Citizen&,TrafficManager.API.Traffic.Enums.ExtPathState) <0x00190>
at TrafficManager.Patch._CitizenAI._HumanAI.SimulationStepPatch.Prefix (HumanAI,uint16,CitizenInstance&,UnityEngine.Vector3) <0x00223>
at (wrapper dynamic-method) HumanAI.HumanAI.SimulationStep_Patch1 (HumanAI,uint16,CitizenInstance&,UnityEngine.Vector3) <0x00050>
at (wrapper dynamic-method) CitizenManager.CitizenManager.SimulationStepImpl_Patch1 (CitizenManager,int) <0x0049b>
at SimulationManagerBase`2.SimulationStep (int) <0x0004c>
at CitizenManager.ISimulationManager.SimulationStep (int) <0x00024>
at SimulationManager.SimulationStep () <0x00693>
at SimulationManager.SimulationThread () <0x0018a>
[Core]
Savegame?
 https://steamcommunity.com/sharedfiles/filedetails/?id=2872332119
Screenshots?

Notes or questions? Where can I join Discord?
Thank you for your hard work.

I have this same issue.  I am attaching my output and tmpe logs. For me, I can play the game for several hours and then all of a sudden this error will appear. If I can get access to the TMPE dashboard, I can resolve the issue by clearing all traffic.
[TMPE.log](https://github.com/CitiesSkylinesMods/TMP
output_log.txt
E/files/9932728/TMPE.log)

Doesnt look like that worked right:
TMPE.log
output_log.txt

There are no errors in your logs. Most likely you either have broken vehicle asset or some dependency mod is missing e.g: Vehicle Effects so once "broken" vehicle spawns it will start spamming with errors