Search with tool=SKIDL results in decode error

Works OK wihout tool=SKIDL (though it seems quite slow).
In [1]: from skidl import *

In [2]: search('resistor', tool=SKIDL)
                                         ERROR: 'utf8' codec can't decode byte 0xc2 in position 236: invalid continuation byte
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-4-6ec6c2287cd2> in <module>()
----> 1 search('resistor', tool=SKIDL)

./skidl/skidl.pyc in search(term, tool)
   3996
   3997     term = '.*' + term + '.*' # Use the given term as a substring.
-> 3998     parts = search_libraries(term, tool)  # Search for parts with that substring.
   3999
   4000     # Print each part name sorted by the library where it was found.

./skidl/skidl.pyc in search_libraries(term, tool)
   3972             for lib_file in lib_files:
   3973                 print(' '*79, '\rSearching {} ...'.format(lib_file), end = '\r')
-> 3974                 lib = SchLib(os.path.join(lib_dir,lib_file), tool=tool) # Open the library file.
   3975
   3976                 def mk_list(l):

./skidl/skidl.pyc in __init__(self, filename, tool, **attribs)
    650                 # Use the tool name to find the function for loading the library.
    651                 load_func = getattr(self, '_load_sch_lib_{}'.format(tool))
--> 652                 load_func(filename, lib_search_paths[tool])
    653                 self.filename = filename
    654                 # Cache a reference to the library.

./skidl/skidl.pyc in _load_sch_lib_skidl(self, filename, lib_search_paths)
    781         except Exception as e:
    782             logger.error(e)
--> 783             raise Exception
    784
    785     def add_parts(self, *parts):

I tried this with Python 3.5.2 and 2.7.12 and a pip install from pypi of the latest SKiDL release. It works with no errors.
Let me know your setup so I can try to recreate the error.

This is on Ubuntu 14.04. It happens with Python 2.7.6, 3.4.3 and 3.5.3. I had a daily build of KiCad installed but switching back to stable made no difference either.

I put in a print to get the filename of the file that's causing trouble and it's conn_sklib.py. All other libs are either UTF-8 or ASCII but that one. If I remove it everything is fine.
conn_sklib.py:                 Python script, ISO-8859 text executable, with very long lines
contrib_sklib.py:              Python script, ASCII text executable
convert_libs.py:               Python script, ASCII text executable
cypress_sklib.py:              Python script, UTF-8 Unicode text executable, with very long lines


Connection loss on transaction flooding

https://bitsharestalk.org/index.php?topic=14425.msg187680#msg187680

Confirmed fixed on DevShares.


⚠ SceneTime has degraded performance

In f21b07b, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 3330 ms

Resolved: SceneTime performance has improved in 458f9b5 after 6 minutes.


added audit-logs command

Description of Change
Added audit-logs command in cli.
Pending work: Use extraction and implement incremental search, add send-to command.
EDIT: pending work: add send-to command, as discussed we won't implement the incremental search here.
closes  #1179
Testing Procedure
code42 audit-logs search --usernames 'username1' --usernames 'username2'
PR Checklist
Did you remember to do the below?

[x] Add unit tests to verify this change
[x] Add an entry to CHANGELOG.md describing this change
[x]  Add docstrings for any new public parameters / methods / classes

@kiran-chaudhary the minimum version of py42 will need to be bumped to be whatever the version is once the audit log functionality is released there.

@kiran-chaudhary the minimum version of py42 will need to be bumped to be whatever the version is once the audit log functionality is released there.

Thanks, yes I will merge after approval, until py42 is released.

one thing that I understand but is still pretty scary to me: this build does not use a version of py42 that has audit log in it, but all the tests still passed. I think that's a sign that we're relying on mocking a little too heavily.

If we add unit tests that require the necessary build dependencies available, it will block development.  I tested the same by pulling the required py42 code from the audit-logs branch. We shouldn't move it to testing until the version is bumped and integration test should be written to test such cases and dependencies.

Should we add a required begin date like we do for file events?

Should we tack on the csv format option?

I am wondering why there is no Table output format as the default, rather than just json objects?

Should we tack on the csv format option?

csv and cef format are supported by the API itself, While implementing those in py42, we observed those options do not return paginated response, etc and hence had decided to skip them for now. I thought we would be following same approach over here.

There are a lot of results sometimes, should we use echo_via_pager() again if the result count is more than 10?

Yes, I can add that.

I am wondering why there is no Table output format as the default, rather than just json objects?

Yes, I am open to supporting them as we have done for other commands if we do not want to use the API supported format options.

I agree with adding all the items that @unparalleled-js called out.
Let's plan to cut a py42 release soon so that we can get the appropriate version set on this.

I can get a strange error when I use -e  on its own without -b.  This action does not appear to be allowed by the server.  We should not allow this in the CLI and echo some error text when the user tries.

When I try to use a format such as 2020-02-02 (not time), I can a strange error and we send null in the reqest... We should tack on zero seconds in this case so that this easy format is allowed.

It appears that the -b and -e flags do not work. It always sends null in the request when I try this.

There are a lot of results sometimes, should we use echo_via_pager() again if the result count is more than 10?

Added.

Should we tack on the csv format option?

Added.

I am wondering why there is no Table output format as the default, rather than just json objects?

Added, have not defined headers, let me know the fields if needed, I think the "request json" can be done away with.

It appears that the -b and -e flags do not work. It always sends null in the request when I try this.

This observation might be because the py42 version might be pointing to timestamp-formats branch which didn't support float format then, so this must be fixed now.

This observation might be because the py42 version might be pointing to timestamp-formats branch which didn't support float format then, so this must be fixed now.

Are you saying that this PR has a dependency on https://github.com/code42/py42/pull/205 ?
This PR already also has a dependency on audit log being available in py42 (it is in master but not merged).
I'm going to convert this PR to draft so that we don't risk merging this before the necessary changes in py42 have been released.

This observation might be because the py42 version might be pointing to timestamp-formats branch which didn't support float format then, so this must be fixed now.

Are you saying that this PR has a dependency on code42/py42#205 ?
This PR already also has a dependency on audit log being available in py42 (it is in master but not merged).
I'm going to convert this PR to draft so that we don't risk merging this before the necessary changes in py42 have been released.

No @alanag13 , I intended to imply that  @unparalleled-js might have checked against some other Py42 branch which didn't support the timestamp format, as I was aware she had just reviewed my other branch.  Since I was not able to reproduce it, I had a discussion with her on the same yesterday and she confirmed it was some error on her side.
As per my understanding, once review is completed we are only waiting for Py42 version to be bumped so that we can make appropriate change here.

When there are no results, can we print no results. like we do for file events?

The field requestJson show up in the output and it really bogs it down and feels unnecessary... Not sure what's it for exactly, but I vote we remove it... It is just a JSON string, so it's like JSON within an ascii Table, kind of weird and kind of like nested fields.

The field requestJson show up in the output and it really bogs it down and feels unnecessary... Not sure what's it for exactly, but I vote we remove it... It is just a JSON string, so it's like JSON within an ascii Table, kind of weird and kind of like nested fields.

Maybe we don't need to remove it.... Not a very tight looking table though. Curious what others think.

The requestJson gives you the actual FFS query the user made for the search event, which is generally going to be an important part of the auditing. It might be possible to pull out a human-readable form of the filter clauses when showing the table view? Like converting this:
{"filters":[{"term":"osHostName","operator":"IS","value":"DESKTOP-H88BEKO","display":null},{"term":"osHostName","operator":"IS","value":"W10E-X64-FALLCR","display":null}],"filterClause":"OR","display":null}

to:
osHostName is ('DESKTOP-H88BEKO' OR 'W10E-X64-FALLCR')

Although that's probably too much effort for our given workload right now, and would likely fit better into py42.

my vote would be to have the table format be the same as it is in the ui and only show the requestJson in the csv.
The reason for this is that while audit log currently only is used for ffs searches / downloads, many more types of events that will probably not have a relevant requestJson property are planned to be added. The fields displayed in the UI currently are those most likely to be relevant for all current and future event types.
We could consider adding a detail option (like what we have for alerts) that would output only the extra fields relevant to the specific type of event.

Added message when no results are found, Added default header items for table format.

Looks like this can be ready for review now. Py42 released

On a day off, this is the most I could do, just toggled the version and made it available for review :)

@unparalleled-js @kiran-chaudhary the version of py42 that was released yesterday does not contain the audit log functionality -- v1.8.2 was a branch off of v1.8.1 that only added a fix for a paging issue that was in py42.
It does look like the other items have completed testing though, so we should be able to release py42 soon. We will need to bump the py42 version of this again once that happens. I'm going to mark this as draft again until it does to ensure that we don't release too early.

Looks good to me, just bump py42 vers


Event Grid - now HITRUST compliant?

The icon used in the solution blueprint is an Event Hub while the description below the blueprint described it as Event Grid. Can someone please confirm if Event Grid is now HITRUST compliant? As per the documentation from this link, only Event Hub is HITRUST compliant.
Thanks!

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

ID: d34b4a06-1bc0-bd3c-60b6-1c78f3807640
Version Independent ID: 0f02854b-44bb-978b-ebc8-b6313da37328
Content: HIPAA and HITRUST compliant health data AI - Azure Solution Ideas
Content Source: docs/solution-ideas/articles/security-compliance-blueprint-hipaa-hitrust-health-data-ai.yml
Service: architecture-center
Sub-service: solution-idea
GitHub Login: @doodlemania2
Microsoft Alias: pnp

Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID # 395325

Sorry my bad, I think I've looked at the Azure Government section of Appendix A. The non-government version has Event Grid as HITRUST compliant. Still, the icon is wrong if we really meant to use Event Grid.


access to bookshelf and knex in query builder

It would be great if it was possible to do this:
Model.query(function (qb) {
  qb.join(
    qb.knex('table')....
  )
})

:+1:

For more context, it would be helpful to be able to access knex in places like this:
https://github.com/endpoints/example/blob/master/src/modules/chapters/model.js#L14
...without having to require the bookshelf or knex instance directly.

Rather than modifying the qb knex instance, maybe it'd be cleaner to pass bookshelf.knex as a second argument:
Model.query(function (qb, knex) {
  var sub = knex(...);
  qb.join(sub);
});

:+1:

The project leadership of Bookshelf recently changed. In an effort to advance the project we close all issues older than one year.
If you think this issue needs to be re-evaluated please post a comment on why this is still important and we will re-open it.
We also started an open discussion about the future of Bookshelf.js here https://github.com/bookshelf/bookshelf/issues/1600. Feel free to drop by and give us your opinion.
Let's make Bookshelf great again

@rhys-vdw I can't access knex to use select(). What is the right way to access knex?

@muhaimincs What did you try? Usually you don't need knex to do a simple SELECT.

I was just testing it to see what value appear in knex

You have to be more specific and provide examples if you want any kind of help.

Model.query(function (qb, knex) {
  var sub = knex(...); //undefined
  qb.join(sub);
});

Yeah, that was never implemented, and given the current direction Bookshelf is heading it probably never will.
You can still achieve the same thing with:
var knex = require('knex');
Model.query(function (qb) {
  var sub = knex(...);
  qb.join(sub);
});


Write documentation for addition of topics in Kafka

Currently we have one working topic for fx rates on our Strimzi setup but in the future we will need to integrate more streaming data (e.g. from Kepler Prometheus export). We need to document the required changes / pull requests (Including management of schema) so this can be done independently by any developer who needs to create a new topic.
FYI @rootfs as this will be required for #192 and integration of kepler data


Mimic format_spec_file excludes license

https://github.com/openSUSE/obs-service-format_spec_file/commit/2822870bd45acf98cc6d6335313e117f546d8564

https://github.com/openSUSE/obs-service-format_spec_file/pull/11/files


NixOS Search: Unthemed elements with prefers-color-scheme: light

Is there an existing issue outlining your problem?

[X] I am using the latest version of the provided userstyle.
[X] I have searched the existing issues and they do not solve my problem.

What userstyles are you seeing the problem on?
lbl:nixos-search
Describe your problem.
Some areas of the site are unthemed when my system color theme is set to light (meaning the NixOS Search website uses light mode, and I'm guessing some of the selectors used target inline styles or something which would no longer be accurate).
Attach screenshots.
Themed with prefers-color-scheme: dark:

Some elements unthemed with prefers-color-scheme: light:

What browser(s) are you seeing the problem on?
N/A
Any additional comments?
No response

Actually looks like an upstream issue potentially with some wacky CSS. I'll try to resolve up there first :)


Ingress tls secret template missing

Hi
I'm currently working on authelia chart, at ingress manifest i have tls.secret, the secretname is by default "authelia-tls", i dont want to have it for security purpose. I would like to use our own tls.

I used our tls name, it worked for me becuase the authelia is running on same name space.
the secret is already deployed before authelia .
so i create a secret.yaml with cert and key.
when i do helm install secret -f /secret.yaml -f /values.yaml > the ingress uses this template functionality
I cannot create the template and work with authelia, this doesnot support.
I would like to check with the team, if you can create the below custom template. Thanks

Here is the template
{{- if .Values.ingress.tls.enabled }}
apiVersion: {{ $apiVersion }}
kind: Secret
metadata:
 name: test-tls  >> this name will be used in ingress manifest
 labels:
   app: monitor > our app name
type: kubernetes.io/tls
data:
 tls.crt: {{ .Values.secrets.cert | quote }}
 tls.key: {{ .Values.secrets.key | quote }}
{{- end }}

This was not originally included as the commonly adopted standard within the k8s community has been that either a secrets management gitops solution managed these secrets or these secrets were generated via an ACME operator which reads annotations on ingress resources.
I have a fairly large refactor of the chart in the works and one of the areas it touches is secrets, once I have time to finish that off it's likely to be included. We would welcome a contribution from the community on this.
You can see an example of additional secrets here: https://github.com/authelia/chartrepo/blob/master/charts/authelia/templates/secretACL.yaml
Which has several helpers from here: https://github.com/authelia/chartrepo/blob/master/charts/authelia/templates/_helpers.tpl

Thanks for your information.
I'll try to follow the example and provide my update on it.

The most recent chart beta makes this possible I believe, if not let me know and I can reopen.


Problem "PATH_TO_CHAINSTATE_DIR, OUTFILE"

Hi
I run on window
I don't know what happen with below? path problem? Thanks.
D:\btcposbal2csv-master>btcposbal2csv.py chainstate addresses_with_balance.csv
usage: btcposbal2csv.py [-h] [--bitcoin_version BITCOIN_VERSION] [--keep_sqlite PATH_TO_SQLITE_FILE)] [--lowmem]
[--P2PKH bool] [--P2SH bool] [--P2PK bool] [--sort ASC/DESC]
PATH_TO_CHAINSTATE_DIR OUTFILE
btcposbal2csv.py: error: the following arguments are required: PATH_TO_CHAINSTATE_DIR, OUTFILE

It looks like, that the chainstate directory is not located /or does not contain expected files/ under your current directory (D:\btcposbal2csv-master). You need to provide correct PATH to your bitcoin chainstate directory as input.
If your problem persists, please provide more info (your directory layout..).


Is there a way to reset/reload/replace an editor's schema?

Hi,
I have an editor that loads the schema from a json file, like below:
let editor = new JSONEditor(document.getElementById('questionaires'), {
      schema
});

The schema file questions.json
{
  "title": "Questionaires",
  "type": "object",
  "properties": {
    "q_1": {
      "type": "string",
      "title": "Question 1",
      "description": "This is question one",
      "propertyOrder": 1,
      "format": "input"
     }
  }
}

Is there a way that can replace the editor's schema after the initialization? For example, I later created a new object:
let anwsers = {
       title: "Anwsers",
       type: "object",
       properties: {
            "a_1": {
                "type": "string",
                "title": "Anwser 1",
                "description": "This is anwser one",
                "propertyOrder": 1,
                "format": "input"
            }
       }
};

How could I replace the existing editor's schema with this new object? I tried to do editor.schema = anwsers but no luck. I also tries just to replace just the properties object, for example editor.schema.properties = someNewProperties, doesn't work.
Thanks!!

OK, I get it working by destroy the editor first and re-initialize it. Like below:
editor.destroy();
editor = new JSONEditor(document.getElementById('questionaires'), {
     schema: anwsers
});

This process seems quick enough that the user won't notice the HTML is removed from the DOM first.
But I'm not sure if this is the correct way to achieve this.

See here: https://rawgit.com/jdorn/json-editor/master/examples/advanced.html (Restore to Default)
editor.setValue(starting_value);

You could also use the ajax features that are shown in the advanced example


Changing stage causes error

Initially I deployed the Stack using this command:
npx sst deploy --stage CKR--region eu-central-1
So far so good this works quite well.
Now I want to change the stage only and get this strange error message.
npx sst deploy --stage dev --region eu-central-1
Using stage: dev
Preparing your SST app
ParameterNotFound: null
at Request.extractError (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\protocol\json.js:52:27)
at Request.callListeners (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
at Request.emit (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\request.js:686:14)
at Request.transition (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\state_machine.js:14:12)
at C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\state_machine.js:26:10
at Request. (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\request.js:38:9)
at Request. (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\request.js:688:12)
at Request.callListeners (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
at Request.emit (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\request.js:686:14)
at Request.transition (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\state_machine.js:14:12)
at C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\state_machine.js:26:10
at Request. (C:\01_Projects\zendesk_eventbridge\zendesk_events\node_modules\aws-sdk\lib\request.js:38:9)

Hey @chkrause hmm.. that's strange that it works in one stage but not another.
Can you see if it just fails for the dev stage, or fails for all stages that's not named CKR?
Also, can you try commenting out constructs/stacks from your app and see if it's a specific construct that's causing this?

Sorry my fault, I figured out why it doesn't work: SSM Parameter wasn't defined for this stage.

Ah glad u figured it out. Do u mind sharing a snippet of how you are referencing the SSM Parameter that leads to this error?
We might be able to catch it and throw a friendlier error instead.

const connection = new events.Connection(stack, 'Connection', {
    authorization: events.Authorization.apiKey('Authorization', SecretValue.unsafePlainText(await createAuthentication(UserEmailParam, UserAPIkeyParam))),
    description: 'Connection with API Key Authorization',
  });

...
async function getParameter(name: string, decripted: boolean = false) {
  var params = {
    Name: name, /* required */
    WithDecryption: decripted
  };
  var data = await ssm.getParameter(params).promise().catch(e => {
    console.error('Could not retrieve SSM Parameter: ' + name)
    throw (e);
  });
  return data.Parameter?.Value;
}


Duplicate Keys

Since the UID of a toast is generated via Date.now() generating two toasts quickly after one another causes svelte to throw: Error: Cannot have duplicate keys in a keyed each. I fixed it in my fork by generating the UID using Math.random() which should reduce the collision rate, although I'm not sure if that's how you'd like to fix it.

Math.random isn't guaranteed unique either. It seems like a simple counter would be plenty for this.

@jamesatjaminit You should create a pull request with your changes, alternatively first implement @tv42's suggestion.

I think it should check if a uid is passed before overwriting it
I tried passing a uid but it's not taken into account

I think we should use a global counter


Bump Nango HQ version

Description

We've noticed numerous ECONNRESET errors in our infrastructure, predominantly originating from our connectors-workers due to Nango. This PR upgrades Nango to a version that includes modifications related to the keepAlive setting for HTTPS agents (refer to https://github.com/nodejs/node/issues/37184 for more details).
Risk
Tested locally. Safe to rollback.

Deploy Plan

Any reason not to push this?

Any reason not to push this?

I will just it requires changing some of our types. Will add it to Olympus.

Ok!

bye bye


Skia crash when doing a specific action in the flutter_gallery demo app.

Steps to Reproduce

Run the flutter gallery app
Open the "Shrine" shopping demo
Select the light blue radio ($300) option.
Tap the shopping cart icon at the top.
Tap the triple dots top open a small menu. Select empty shopping cart.
Rapidly open the same menu and alternate between selecting Sort by price and Sort by product.

Logs
Logs from "flutter run"
D/skia    ( 4144): ../../third_party/skia/src/utils/SkInsetConvexPolygon.cpp:287: fatal error: "assert(is_convex(*insetPolygon))"
F/libc    ( 4144): Fatal signal 6 (SIGABRT), code -6 in tid 4159 (gpu_thread)
Backtrace from gdb:
#0  0xb6c9ef50 in tgkill () from target:/system/lib/libc.so
#1  0xb6c9cb60 in pthread_kill () from target:/system/lib/libc.so
#2  0xb6c79312 in raise () from target:/system/lib/libc.so
#3  0xb6c764c4 in __libc_android_abort () from target:/system/lib/libc.so
#4  0xb6c744b0 in abort () from target:/system/lib/libc.so
#5  0xa0d0f06e in dart::OS::Abort() ()
from target:/data/app/io.flutter.examples.gallery-2/lib/arm/libflutter.so
#6  0xa0ce4a9c in SkInsetConvexPolygon(SkPoint const*, int, std::__ndk1::function<float (int)>, SkTDArray*) ()
from target:/data/app/io.flutter.examples.gallery-2/lib/arm/libflutter.so
#7  0xa0cf00ac in ?? ()
from target:/data/app/io.flutter.examples.gallery-2/lib/arm/libflutter.so
#8  0xa0cef48a in SkSpotShadowTessellator::SkSpotShadowTessellator(SkPath const&, SkMatrix const&, SkPoint3 const&, SkPoint3 const&, float, bool) ()
from target:/data/app/io.flutter.examples.gallery-2/lib/arm/libflutter.so
#9  0xa0cf0e34 in SkShadowTessellator::MakeSpot(SkPath const&, SkMatrix const&, SkPoint3 const&, SkPoint3 const&, float, bool) ()
from target:/data/app/io.flutter.examples.gallery-2/lib/arm/libflutter.so
#10 0xa0cf5e22 in ?? ()
from target:/data/app/io.flutter.examples.gallery-2/lib/arm/libflutter.so
#11 0xa0cf61a0 in ?? ()
from target:/data/app/io.flutter.examples.gallery-2/lib/arm/libflutter.so
#12 0xa0cf5cdc in ?? ()
This is on a Nexus 5 device.

Definitely shouldn't be possible to crash Skia like this. :/ . FYI @chinmaygarde

This is a debug assertion that happens to fail in release as well but doesnt take down the engine. Will investigate what is going on.

This is in the SkShadowUtils code.  I can still reproduce it when I roll forward to the Skia tip of tree.
@jvanverth

I believe the reveal clip is generating what it thinks is a concave path -- which shouldn't be possible since it's the intersection of two convex paths. I'll see if I can figure out what is going on there.

Should be fixed by https://skia-review.googlesource.com/c/24124/.


Add context menu option to toggle side bar visibility into the "more actions..."
However, the side bars are actually useful, but not all the time.
It would be great to have a context menu option to toggle the side bar visibility.

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

[Feature] An option to move the activity bar to the top  (#72443)
Menu bar toggling is inconsistent with the rest of Windows (#58377)
Icon for menus (#65723)

None of these are duplicates.

This menu is specifically for editor actions, not the sidebar.


Direct people to sign up themselves

On Wed, Nov 17, 2021, 4:19 PM Denise Peña @.***> wrote:

@.**** commented on this pull request.
In products/time-services/src/content/nts/usage.md
https://github.com/cloudflare/cloudflare-docs/pull/2684#discussion_r751644300
:

@@ -12,5 +12,5 @@ order: 0

If you would like to hear about the development of additional clients,
updates on our service, or would like to announce that your client
-supports NTS, please email @.***` to be added
-to our distribution list.
+supports NTS, please sign up
Just wanted to confirm before approving and merging, but I also received a
"You don't have permission to access this content" message. Is that the
behavior that should occur for all users?

No, clearly I need to get the right sign up url from Google groups.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudflare/cloudflare-docs/pull/2684#discussion_r751644300,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAISLY2ZMAHGZIVJIPLHO63UMQL6VANCNFSM5H33W26A
.
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.

Howdy @lukevalenta, sorry to bug you on this, but I'm also getting the same error from that link. If it's expected behavior, happy to take this and make the required changes to fix the merge conflict.

Howdy @lukevalenta, sorry to bug you on this, but I'm also getting the same error from that link. If it's expected behavior, happy to take this and make the required changes to fix the merge conflict.

Hey @kodster28, thanks for double-checking this! Looks like the group is set to Private right now, so the sign-up link isn't going to work and we'll have to continue manually adding people until we get the group settings changed to Public. Let's leave this PR open for a bit longer until I get that resolved.

@kodster28 looks like we don't have a way to make the existing<EMAIL_ADDRESS>mailing list public, and will need to create a separate<EMAIL_ADDRESS>list for that purpose. We can close this PR for now and reopen if we decide to create that list in the future.


health check spams logs on startup

While my application is starting up, I'm getting a health check every half-second that spits out two log lines. This both fills up the aggregator and makes it difficult to observe the actual log output from the application as it starts up. It would be nice to have some combination of slowing down the health check during startup, squashing duplicate repeated log entries, or suppressing the "oh noes" messages until some startup hold time is elapsed.

Hi, @chrylis,
Thanks for the feedback! We're currently looking at tuning how we perform and report the port-based health-check for app instances. The double log-line is a consequence of Diego checking the port connectivity by invoking an in-container process, the exit status of which we log independently of any other health status. One change we're considering making is to add a specific action to check a port on a container from the Diego cell component itself, rather than by having it run that separate process. This would allow us to avoid that extra exit-status log output, and with that gone, it makes much more sense to report the health-check status only as it changes, instead of with every check.
I've added a story about that at https://www.pivotaltracker.com/story/show/107259322, and I've captured these additional concerns about reducing log noise in the story description. I've also added https://www.pivotaltracker.com/story/show/107560162 about making more of the health-check parameters tunable by Diego clients and, eventually, CF users. Since I think those stories capture your concerns, I'll close out this issue.
Best,
Eric, CF Runtime Diego PM


Support for formatting within bibliography entries inside *.bib files

Description
Bibliography would look even nicer, if entries would support typst formatting:

For example superscript:

7#super[th] International Conference on ...

For example non-breaking spaces with tilde ~:

In Proc.~26th Annual Conference ...

(Note: LaTeX did support use of formatting within bib entries, such as \nth{2} )
Use Case
Users would get a more beautiful and much better readable bibliographies.

https://github.com/typst/typst/issues/942
(This would then easily be achievable with eval())

@Enivex

(This would then easily be achievable with eval())

I am using typst and I met this problem. Could you please give an example of how to use eval in .bib files? Here is my bibliography, and I want the "2" in "CO2" to be subscribed:
@article{shaughnessy2021,
  title = {Machine Learning Deciphers CO2 Sequestration and Subsurface Flowpaths from Stream Chemistry},
  author = {Shaughnessy, Andrew R. and Gu, Xin and Wen, Tao and Brantley, Susan L.},
  year = {2021},
  month = jun,
  journal = {Hydrology and Earth System Sciences},
  volume = {25},
  number = {6},
  pages = {3397--3409},
  publisher = {Copernicus GmbH},
  issn = {1027-5606},
  doi = {10.5194/hess-25-3397-2021},
  urldate = {2023-10-13},
  langid = {english}
}

@Enivex

(This would then easily be achievable with eval())

I am using typst and I met this problem. Could you please give an example of how to use eval in .bib files? Here is my bibliography, and I want the "2" in "CO2" to be subscribed:
@article{shaughnessy2021,
  title = {Machine Learning Deciphers CO2 Sequestration and Subsurface Flowpaths from Stream Chemistry},
  author = {Shaughnessy, Andrew R. and Gu, Xin and Wen, Tao and Brantley, Susan L.},
  year = {2021},
  month = jun,
  journal = {Hydrology and Earth System Sciences},
  volume = {25},
  number = {6},
  pages = {3397--3409},
  publisher = {Copernicus GmbH},
  issn = {1027-5606},
  doi = {10.5194/hess-25-3397-2021},
  urldate = {2023-10-13},
  langid = {english}
}

I said that it would be possible if we had that. We don't, but in your specific case you have two options:

Use the unicode character ₂ (U+2082)
Use math

@Enivex

(This would then easily be achievable with eval())

I am using typst and I met this problem. Could you please give an example of how to use eval in .bib files? Here is my bibliography, and I want the "2" in "CO2" to be subscribed:
@article{shaughnessy2021,
  title = {Machine Learning Deciphers CO2 Sequestration and Subsurface Flowpaths from Stream Chemistry},
  author = {Shaughnessy, Andrew R. and Gu, Xin and Wen, Tao and Brantley, Susan L.},
  year = {2021},
  month = jun,
  journal = {Hydrology and Earth System Sciences},
  volume = {25},
  number = {6},
  pages = {3397--3409},
  publisher = {Copernicus GmbH},
  issn = {1027-5606},
  doi = {10.5194/hess-25-3397-2021},
  urldate = {2023-10-13},
  langid = {english}
}

I said that it would be possible if we had that. We don't, but in your specific case you have two options:

Use the unicode character ₂ (U+2082)
Use math

Wow, sorry for my misunderstanding. Thank you for your reply! (It seems that math environment $$ does not work in bibliography, but the unicode works).


Rapid Decay missing

Hi Openarl,
I've noticed that Rapid Decay is missing from the Skill Gem List.
Here's an archived Link of the Skill Gem on the Wiki, since the actual Wiki is currently broken:
http://web.archive.org/web/20170610213849/http://pathofexile.gamepedia.com/Rapid_Decay_Support
Sorry if this is a duplicate, I searched the open issues for "rapid" and "decay", and didn't find this yet.
Cheers

Rapid Decay was renamed to Swift Affliction in 3.0.


chore: Update logos and branding

[x] Use updated logo files
[x] Update all existing content with the new branding terms
[x] Verify that external resources move over to the new static assets
N.B. - This may need to be completed on the current version of atsign.dev first, until this repo is ready for production.

This was done some time ago


Cannot change language from component

Hey there,
I was wondering if it's also possible to change languages using the function i18n.changeLanguage() from a component and not just from Storybook's toolbar as explained in the tutorial.
Here's a reproduction video where I'd like to change languages using my LanguagePicker component, however, it doesn't do anything and only updates if I change Storybook's locale.
https://github.com/stevensacks/storybook-react-i18next/assets/20128985/a8a7fa89-3849-4ea8-8c37-fb0b4d8f56ab

Unfortunately, I don’t believe this is currently possible.

 The i18n provider that they are rendered inside of is a decorator, which is not connected to Storybook outside of the URL params (which SB passes to the iframe as “globals”).
There might be a way to create events which could be dispatched across the barrier, but I’m not sure. I’ll investigate when I update the addon for Storybook 8 and let you know.


[minigame round outcome] is invisible for some agents

For the reality_show environment, both prisoners_dillema and stag_hunt, [minigame round outcome] observation is visible for only some of the agents.
For example,

Travis Pearson and Chad Donovan observes the outcome for the previous round, while Derek Wolfe cannot.
These three agents are all the same type of baseline agents: paranoid_agent.
Maybe concurrency caused this issue, or concurrence of observation time and action time (2003-07-09 06:20:00) could cause this.

I've just submitted a fix for this here: https://github.com/google-deepmind/concordia/commit/cee1819a59a1abcc34b8551663a1e61978cfa675
Sorry this took so long, I didn't see this issue till today.. !


Query GEE by AOI center point lat-long

Add AOI center point to dataframe then search by ee method:
point = ee.Geometry.Point(Long, Lat)

Improved on this idea in the image_search function. Converted the center point to a geometry object via geopandas and using these ee methods
.filterBounds(gdf['geometry'])
.filter(ee.Geometry.Point.buffer({'distance': 1000}))


Update how-to-share-org-wide-communications-in-microsoft-365.md

Quick fix, org-wide teams can now have up to 10,000 members.
Please use this template to ensure easier processing of your pull request
Category

[x] Content fix

Docs Build status updates of commit 5603c9e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Community/how-to-share-org-wide-communications-in-microsoft-365.md
:bulb:Suggestion
View
Details

Community/how-to-share-org-wide-communications-in-microsoft-365.md

Line 2, Column 1: [Suggestion-audience-missing] Missing required attribute: 'audience'.
Line 61, Column 1: [Suggestion-preserve-view-not-set] Did you mean to link to a specific version? It's usually better not to specify a version, so the link always goes to the canonical version. If you really need to link to a specific version, add &preserve-view=true to the URL: https://docs.microsoft.com/Exchange/recipients/dynamic-distribution-groups/dynamic-distribution-groups?view=exchserver-2019. Otherwise, remove the view parameter.
Line 117, Column 101: [Suggestion-preserve-view-not-set] Did you mean to link to a specific version? It's usually better not to specify a version, so the link always goes to the canonical version. If you really need to link to a specific version, add &preserve-view=true to the URL: https://docs.microsoft.com/microsoft-365/admin/create-groups/compare-groups?view=o365-worldwide#microsoft-365-groups. Otherwise, remove the view parameter.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Interesting, the validation makes suggestions on parts I didn't mean to edit but look legit. I'd be happy to do a more thorough update if it helps. btw I would also think Microsoft Viva could be mentioned here, but honestly I know nothing on the topic.
@eemancini

@PathToSharePoint - They have layered in more rules, so when we edit older articles, sometimes the rules catch things. I can take care of these. Thanks for the update!


Not able to find Artist and License Details

Hi there,
While talking with Sketchfab support, they said not to forget to give the credits to the artist and mention the license in your game while using the models from Sketchfab. I can get the name, description and some info for the model but I can't find the information related to the Artist/Author and the license. Can you please help me out?

I added a pull request that tries to get the license data.

Merged and released! Thankyou so much @Krohmium :)


package-builder: command not found

root@homestead:/home/vagrant/code# composer config -g repo.packagist composer https://packagist.laravel-china.org
Do not run Composer as root/super user! See https://getcomposer.org/root for details
root@homestead:/home/vagrant/code# composer global require overtrue/package-builder
Changed current directory to /root/.config/composer
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^1.0 for overtrue/package-builder
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
root@homestead:/home/vagrant/code# package-builder build weather
package-builder: command not found

确认你的 composer 全局目录在 $PATH 中：
$ echo $PATH | grep composer

composer 已经是全局的。但是 安装这个包的时候 还是 Nothing to install or update


feat: changed typography url to support local

Hey @rayyan224 please provide some description. What bug do you have?

My bad bro opened this late last night. Basically fire fox didn't let this request go through cause it wasn't "secure" url. Changed it https . And made it look for local first


Can't get function to work with current season data

Hello,
I'm trying to create a function that takes a vector of player names as an input and outputs a dataframe of their week by week scores using get_player_info(). The function works if I specify season = 18 but I can't get it to work for the current season.
Here's the code that works:
fn = function(team){
df <- data.frame(matrix(ncol = 0, nrow = 38))
for(i in team){
points = get_player_details(name = i, season = 18)$total_points
 df[,i] = points
}
return(df)
}
df1 = fn(team)
but removing season = 18 and changing nrow to 29 (29 gameweeks) gives me this error:

Error in [<-.data.frame(*tmp*, , i, value = c(0L, 1L, 0L, 1L, 3L,  :
replacement has 28 rows, data has 29

I'm new to R and I can't quite figure out why. Any help would be appreciated! Thanks :)

Hi, sorry for getting to this so late, I missed it. There will be some variance in how many games different players have played, so you don´t want to restrict your matrix to a specific number of rows.
Your solution is also a bit too complex - there´s no need to loop, so here´s an alternative that should work:
# define the players you want to get data on. Can do this manually as here, or through a function
players = c("Virgil van Dijk", "Andrew Robertson", "Trent Alexander-Arnold")

# grab the player IDs using the get_player_id() function
playerids = get_player_id(players)

# grab the player details
df = get_player_details(playerids$id)

# select the total_points column.
df$total_points

# or if you want a data frame with player names, round and gameweek score (requires dplyr):
df %>% select(playername,round,total_points)

Again sorry for the slow reply. Hope this is still helpful.

Closing - resolved.


Can't find other disks/drives on system

Bug
I have an encrypted disk on my Linux laptop (not primary disk). I have my drive mounted to /media/my_name/drive_name. Inside of the LBRY app, in any of the file explore views, it doesn't see even the /media folder (which is there even if I don't decrypt/mount my disk).
To Reproduce
Steps to reproduce the behavior:

Have a 2nd disk installed onto your computer (make sure it is an encrypted drive so you have to decrypt and mount it)
Open the LBRY app
Make sure you are logged in
Go to Settings
Scroll down to "Download Directory"
Click on "Browse" button
Notice that you can not access your /media folder

Expected behavior
When I click on the "Browse" button it should show all my mounted disks
Screenshots

System Configuration

Computer:  System76 Lemur Pro (lemp10)
OS:  Pop!_OS 10.04
1TB M.2 SSD (primary)
1TM M.2 SSD (secondary the problem drive)

{
  "jsonrpc": "2.0",
  "result": {
    "build": "release",
    "desktop": "Unity",
    "distro": {
      "codename": "Flatpak runtime",
      "id": "org.freedesktop.platform",
      "like": "",
      "version": "20.08.2",
      "version_parts": {
        "build_number": "2",
        "major": "20",
        "minor": "08"
      }
    },
    "lbrynet_version": "0.86.1",
    "os_release": "5.8.0-7630-generic",
    "os_system": "Linux",
    "platform": "Linux-5.8.0-7630-generic-x86_64-with-glibc2.4",
    "processor": "",
    "python_version": "3.7.9",
    "version": "0.86.1"
  }
}```

Sorry to hear about the trouble. Looks like this may be specific to the flatpak and how it handles file security. Can you try the appimage to see if it works there? That's our official supported build.

Can try opening the issue on https://github.com/flathub/io.lbry.lbry-app or check out https://askubuntu.com/questions/1086529/how-to-give-a-flatpak-app-access-to-a-directory

Can try opening the issue on https://github.com/flathub/io.lbry.lbry-app or check out https://askubuntu.com/questions/1086529/how-to-give-a-flatpak-app-access-to-a-directory

Oh dang, I'm dumb, I didn't pay attention to see it was flatpak. Thank you, was resolved adding specific folder using Flatseal  :)

Glad to hear that, happy holidays!


Mic and Azure Speech to Text

I am trying to recognize the user voice continuously, but I am always getting wrong results. Have anybody done something like this?
I will add some parts of my code so you can understand.
Here is how I create an instance of pushStream (MS Speech SDK)
this.pushStream = AudioInputStream.createPushStream(AudioStreamFormat.getWaveFormatPCM(16, 16000, 1));

Here is the method I call to recognize the user voice
    recognizeAsync() {
        this.audioConfig = AudioConfig.fromStreamInput(this.pushStream);
        this.recognizer = new SpeechRecognizer(this.speechConfig, this.audioConfig);
        this.subject = new Observable(subs => {
            this.subscription = subs;
            this.recognizer.startContinuousRecognitionAsync();
            this.recognizer.recognizing = (rec, {result}) => {
                subs.next(result);
            };
            this.recognizer.recognized = (rec, {result}) => {
                subs.next(result);
            };
        });
        return this.subject;
    }

And here is where I use the mic package to get the user voice data
speech = new Speech(language, subscriptionKey, region);
speech.recognizeAsync().subscribe(result => {
        console.log('result', result);
});
var micInstance = mic({
        rate: '16000',
        channels: '1',
        debug: false,
        exitOnSilence: 6,
        fileType: 'wav' //have also tried with raw type
});
const micInputStream = micInstance.getAudioStream();

micInputStream.on('data', function(data) {
    speech.pushStream.write(data);
    //console.log("Recieved Input Stream: ", data);
});

The root cause here looks to be something with the stdio redirection resulting in twice the expected data being available.
I tried to manually call sox to see how it was producing audio.
Experiment results:
sox.exe -c 1 -b 16 -e signed-integer -r 16000 -t waveaudio default -p > redirect.wav
Ran for 10s.
redirect.wav is 655,408 redirect.wav
Had Sox write the file directly:
sox.exe -c 1 -b 16 -e signed-integer -r 16000 -t waveaudio default redirect2.wav
Ran for 10s.
This output 327,724 redirect2.wav
That tells me the doubling of the data is happening as a result of the stdio redirect. It's not clear why that's happening, but the possibility that the doubling is platform specific causes fragility concerns. Plus who knows what extra data is winding up in the audio.

#40 May be the root cause here, piping audio out of sox forces the format to be 32 bit audio, which may gives appearance of it generating double the data when set to 16 bit.


(Colab) error while downloading voice model

JSONDecodeError                           Traceback (most recent call last)
 in <cell line: 31>()
31 if os.path.exists(config_path):
32     # File exists, proceed with creation of creds and client
---> 33     creds = Credentials.from_service_account_file(config_path, scopes=scope)
34     client = gspread.authorize(creds)
35 else:
/usr/local/lib/python3.10/dist-packages/google/oauth2/service_account.py in from_service_account_file(cls, filename, **kwargs)
255                 credentials.
256         """
--> 257         info, signer = _service_account_info.from_filename(
258             filename, require=["client_email", "token_uri"]
259         )
/usr/local/lib/python3.10/dist-packages/google/auth/_service_account_info.py in from_filename(filename, require, use_rsa_signer)
77     """
78     with io.open(filename, "r", encoding="utf-8") as json_file:
---> 79         data = json.load(json_file)
80         return data, from_dict(data, require=require, use_rsa_signer=use_rsa_signer)
/usr/lib/python3.10/json/init.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
291     kwarg; otherwise JSONDecoder is used.
292     """
--> 293     return loads(fp.read(),
294         cls=cls, object_hook=object_hook,
295         parse_float=parse_float, parse_int=parse_int,
/usr/lib/python3.10/json/init.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
344             parse_int is None and parse_float is None and
345             parse_constant is None and object_pairs_hook is None and not kw):
--> 346         return _default_decoder.decode(s)
347     if cls is None:
348         cls = JSONDecoder
/usr/lib/python3.10/json/decoder.py in decode(self, s, _w)
335
336         """
--> 337         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338         end = _w(s, end).end()
339         if end != len(s):
/usr/lib/python3.10/json/decoder.py in raw_decode(self, s, idx)
353             obj, end = self.scan_once(s, idx)
354         except StopIteration as err:
--> 355             raise JSONDecodeError("Expecting value", s, err.value) from None
356         return obj, end
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

it seems that peppy-generator-388800-07722f17a188.json is empty.

it seems that peppy-generator-388800-07722f17a188.json is empty.

how were you able to resolve this?

Im having the same exact problem using Goolge Collab. The file is empty.

same problem here any one solved it ??

@simotukiminato simotukiminato did you figure a fix


Suggestion on how ObjectProxy gets JSONPrimitive

I am currently implementing increase operation. And there was a problem during implementation.
This problem occurred because the ObjectProxy get the value property of JSONPrimitive.
https://github.com/yorkie-team/yorkie-js-sdk/blob/master/src/document/proxy/proxy.ts#L39
In my opinion, like the go version, ObjectProxy needs to get a JSONPrimitive instance to use a function like increase.
And this seems to be consistent with the go version.

Previously, We had never extended methods of primitive types, so we didn't need a Proxy. Since Increase Operation has been added, it looks like we should return PrimitiveProxy from ObjectProxy as you commented on.
In JS SDK, JavaScript Proxy is used so that users can use JavaScript native syntax when updating documents. I think it can be a little more complicated than Go.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy

@hackerwins Okay. I will first add the PrimitiveProxy and then send the PR. Thanks for the feedback. :)

We provided a Counter type so I close this issue.


Type inference and functionnal programming

When using functionnal programming it is sometimes difficult to work with flow because the type is not always infered correcly.
Take this simple example:
type Tests = Array<number | string>;

function testFn(tests: Tests) {
  tests
    .filter(test => typeof test !== 'string')
    .map(test => Math.max(test, 10)); // Cannot call `Math.max` because string [1] is incompatible with number [2] in array element.
}

Link: https://flow.org/try/#0FAegVABAAgZgNgewO4TCYwAuBPADgUwgBV8BnTUiAXggEEAnegQ2wB4A7AVwFsAjfehAA+EcvQCW7AOYA+ANwYYndgGNM4hOwiYymAGLsAFDvKkAXMV2kAlBADewCNquOnEAHQxxcHfWO7qGW08fAQYZ3IIAEIqGgByMUkpOOtXJ3duJlx-SKoggFkmTAALDKYADxzMABoIAEYABmtrBQBfYCA
I know this case may be hard to solve and typescript, in this scenario, is not better: http://www.typescriptlang.org/play/#src=type Tests %3D Array<number | string>%3B

function testFn(tests%3A Tests) {
  tests
    .filter(test %3D> typeof test !%3D%3D 'string')
    .map(test %3D> Math.max(test%2C 10))%3B%0D%0A%7D
But with typescript I can override the type of the argument, to enforce it type to be number and this does solve my type problem: http://www.typescriptlang.org/play/#src=type Tests %3D Array<number | string>%3B

function testFn(tests%3A Tests) {
  tests
    .filter(test %3D> typeof test !%3D%3D 'string')
    .map((test%3A number) %3D> Math.max(test%2C 10))%3B%0D%0A%7D
But with flow, I still get an error: https://flow.org/try/#0FAegVABAAgZgNgewO4TCYwAuBPADgUwgBV8BnTUiAXggEEAnegQ2wB4A7AVwFsAjfehAA+EcvQCW7AOYA+ANwYYndgGNM4hOwiYymAGLsAFDvKkAXMV2kAlBADewCNquOnEAHQxxcHfWO7qGW08fAQYZ3IIAEIqGgByMUkpOOtXJ3duJlxDf3ILLj4BWyoggFkmTAALDKYAD1zMABoIAEYABmtrBQBfYCA
How should I do it with flow ?

.filter(Boolean) will infer type
type Tests = Array<number | string>;

function testFn(tests: Tests) {
  tests
    .map(test => typeof test === 'string' ? null : test)
    .filter(Boolean)
    .map(test => Math.max(test, 10));
}

https://flow.org/try/#0FAegVABAAgZgNgewO4TCYwAuBPADgUwgBV8BnTUiAXggEEAnegQ2wB4A7AVwFsAjfehAA+EcvQCW7AOYA+ANwYYndgGNM4hOwiYymAGLsAFDvKkAXMV2kAlBADewCNquOIASAB03JrmO7qMtp4+AgwzuTUVDQA5GKSUtEQAPwQXHBwEBYmmNauTh4w4nA69IYAQggIcPhM7LlO+d6+2QEQALJMmAAWXkwAHn7kADQQAIwADNbWCgC+wEA

Thanks @zerobias for the answer.
The problème here is that you have transformed the logic.
If you have the value 0 in the array, it will be skipped in the last map.
And this is a simple example. It might be way more complicated...
Is here a way to solve the problem without changing the logic ? (using types)

@tonai Why would 0 be skipped? The test is typeof test === 'string' ? null : test, not Boolean(0).

Sorry, my mistake. (DELETED)

You can use reduce instead of filter.
type Tests = Array<number | string>;

function testFn(tests: Tests) {
  tests
    .reduce((accumulator, current) => {
    	if (typeof current !== 'string')
          accumulator.push(current);
    	return accumulator;
  	}, [])
    .map(test => Math.max(test, 10));
}

https://flow.org/try/#0FAegVABAAgZgNgewO4TCYwAuBPADgUwgBV8BnTUiAXggEEAnegQ2wB4A7AVwFsAjfehAA+EcvQCW7AOYA+ANwYYndgGNM4hOwiYymAGLsAFDvKkAXMV2kAlBADewCNquOnEAHT18AE04r8hoZMKio8nHBMmAj0ADQQoYz47Ji2VDL2rk4AkOIwEMZ4+Ah5CV7JEACEVDQA5GKSUjW2mW6twaHc4ZHR7ricpAAWhqVJKQqtWV6YnPRa7WERUfTjEFkAvnEA2gC61i3u3Ey4xrrU6QCykQMHTAAeJ+RxAIwADNbWCmvAQA
filter does not change the type of array element. .filter(Boolean) is only exception.

Thanks @alexandersorokin for yout answer.
It is just too bad that you have to use reduce for filtering your array instead of just using filter. It does not make sense... :cry:

@tonai the main issue that you not just filter things but implicitly change a type of them that is much more significant change than selecting stuff from the collection

@lll000111 your solution works for me, thanks!

@lll000111: Thanks for the ping.
Unfortunately, the type for filter that you’ve provided isn’t sound.
With your code, I can write the following:
function isEven(n: number): boolean {
  if (typeof n !== "number") {
    console.log("impossible(?): " + (n: empty));
    return n.thisTypechecksButIsNotValid();
  }
  return n % 2 === 0;
}

const strings: Array<string> = ["one", "two"];
strings.filter<number>(isEven);  // type-checks (it shouldn't!) and throws

The monomorphized filter<number> has type
filter<number>(
  callbackfn: (value: number, index: number, array: Array<number>) => any,
  thisArg?: any,
): Array<number>;

the call to filter typechecks, but of course this fails at runtime. We
need the “T” in the definition of filter to refer to the element
type of the array, not some arbitrary type.
Note also that your example
type Tests = Array<number | string>;

function testFn(tests: Tests) {
    tests
    .filter<number>(test => typeof test !== 'string')
    .map(test => Math.max(test, 10));
}

also typechecks if you change the !== to ===, so clearly this isn’t
checking the types as you might expect!

I don't know what having/adding a generic parameter to the function
name actually does inside Flow,

It shadows the outer type parameter on the class (Array<T>).
If we were in a functional language like OCaml or Haskell, we’d write
something like the following:
type Tests = Array<number | string>;

function maybeNumber(test: number | string): number[] {
  return typeof test === "number" ? [test] : [];
}

function testFn(tests: Tests) {
  tests                // Array<number | string>
    .map(maybeNumber)  // Array<Array<number>>
    .flat();           // Array<number>
}

Of course, OCaml and Haskell each have a first-class filter_map for
the built-in list/array/etc. types, but this demonstrates how you can
achieve the same effect given map and flat, which many data
structures support.
You can of course implement the same pattern in Flow, though it may feel
less familiar to JavaScript developers.
Does this make sense?

@wchargin I know/knew that this does not do any type checking. My solution is a hack around Flow's inability to do any type checking with filter. Since Flow does not do it, apart from the special hard-coded filter(Boolean) (which by the way cannot handle actual Boolean values and also fails for numbers because of 0), it's kind of pointless — whatever I specify is useless, I just cannot use filter at all. Or I use a typecast through any. Or I use my hack, which as far as Flow hacks go still is pretty clean.
Of course the responsibility fully lies with the author of the code to provide the correct type hint. But that is the case for any any even more so, with much more severe side effects (if it's just a plain any.

So what is the way to filter in flow? How can I type this simple as hell function??
const whatever = (benefits: Benefit[]) =>
  benefits.filter<Benefit>((b) => Boolean(b.basedOnGrossPay)

I'm getting this cryptic error:
((
  callbackfn: typeof Boolean
) => Array<$NonMaybeType<Benefit>>) &
  ((
    callbackfn: (
      value: Benefit,
      index: number,
      array: Array<Benefit>
    ) => mixed,
    thisArg?: any
  ) => Array<Benefit>)
Cannot call `benefits.filter` because: Either cannot call non-polymorphic  function type [1] with type arguments. Or cannot call non-polymorphic  function type [2] with type arguments.Flow(InferError)
core.js(263, 5): [1] function type
core.js(264, 5): [2] function type

@danielo515: Just benefits.filter((b) => b.basedOnGrossPay) should
work, presuming that basedOnGrossPay is a field on the Benefit type.
The error is telling you what’s going on: filter is not a polymorphic
function, so your attempt to call filter<Benefit>(...) is ill typed.

Yes,  you're right, the main problem is that filter is not a polymorphic function. I didn't understood the first error flow gave me correctly and I thought I was missing that annotation.
What actually made the typing work (or relax down, not now) is to type the return value of the function to be Benefit[].
So the working thing is:
const whatever = (benefits: Benefit[]): Benefit[] =>
  benefits.filter((b) => Boolean(b.basedOnGrossPay)

You shouldn’t need the Boolean coercion, either.

You shouldn’t need the Boolean coercion, either.

Even if the property I'm returning is not a boolean? I'll try that out.

Correct. It’s there in the type: the callbackfn may return mixed.

We now support type guards


example R: remove config_softroce.sh

Remove config_softroce.sh. SoftRoCE has to be configured on the host.
See: https://github.com/ldorau/2021-04-21.web/pull/3

This change is

@janekmi @osalyk please review


Add docker support for running executor

Hi,
We are running our business all by virtual network in docker, right now mesos slave starts executor just by command, can it be run by docker container?

+1

+1. Is there a particular reason that it does not run in a docker container? @joestein, maybe you could help here.

+1, Please let us when this docker support will be provided, is there any specific reason, this is not provided?

I've opened #270 as a catch-all for docker support, closing this one.


Is there any way to sync translateX and translateY animations?

Is there an existing issue for this?

[X] I have searched the existing issues

Do you want this issue prioritized?

[ ] Yes, I have sponsored
[ ] Not urgent

Current Behavior
Because of the bouncy spring animations values in sequences become desynchorized after a while
Expected Behavior
Animate together translateX and translateY and wait until last animation ends
Steps To Reproduce

You just have to write something like this inside moti view. After a while because of the different distance — component starts his movement not diagonally, first goes x then y axis.
Versions
- Moti: 0.27.0
- Reanimated: 3.3.0
- React Native: 0.72.6

Screenshots
No response
Reproduction
no build

Probably with a timing animation instead of spring

Thanks for the fast response sir!
Sure you are right! But spring animations look so great! Maybe it can be handle like a transformMatrix or something like this?
I ran into moti after react-spring, which seemed to handle this well
But as far as I know its the react-reanimated issue with its way to animate translateX and translateY like a different elements.
But anyways I think it will be really cool to handle it

What if you add a duration to the spring animation? It’s indeed a reanimated issue

WOOOOOOWWWWW it looks like a solution 💯  thanksssssss siiir!!!!


Protect HTEX communication with CurveZMQ

Description
The crux of the implementation revolves around two new classes: ServerContext and ClientContext. These replace the standard zmq.Context and share many commonly used methods, including term, destroy and, most importantly, socket. The latter applies the necessary certificates and options to each socket object.
A connection requires a ServerContext on one end (CurveZMQ server), which validates clients, and a ClientContext on the other (CurveZMQ client), which validates the server.
E.g.,
import zmq
from parsl import curvezmq

cert_dir = curvezmq.create_certificates(base_dir=".")

client_ctx = curvezmq.ClientContext(cert_dir)
client_socket = client_ctx.socket(zmq.PUSH)

server_ctx = curvezmq.ServerContext(cert_dir)
server_socket = server_ctx.socket(zmq.PULL)

port = server_socket.bind_to_random_port("tcp://<IP_ADDRESS>")
client_socket.connect(f"tcp://<IP_ADDRESS>:{port}")

client_socket.send(b"hola")
msg = server_socket.recv()
print(msg)

The interchange serves as a CurveZMQ server, while the executor and various managers serve as CurveZMQ clients. Thus,  when enabled, all communication channels between these entities are encrypted.
The HTEX start method creates new certificates for each run in a private certificates/ directory. We generate a single shared client certificate because all clients will have access to this directory.
Users can enable encryption by setting the encrypted initialization argument for the HighThroughputExecutor to True. We disable encryption by default because, depending on the pyzmq installation path, it can cause a significant impact on throughput performance. I've included some recommended installation paths to address these issues in the docs (e.g., install via conda).
Fixes #2199
Partially addresses #952
Type of change

New feature

We've decided to disable encryption by default because, depending on the pyzmq installation path, it can cause a significant impact on throughput performance. I've included some recommended installation paths to address these issues in the docs (e.g., install via conda).


Update urls

Dfinity moved developer documentation from sdk.dfinity.org to smartcontracts.org, as announced in this tweet.
Most URLs redirect – except for two in the #backend section of the readme which return 404 errors.
I also updated all other sdk.dfinity.org URLs to their redirected URLs (if you prefer).
Thanks for the useful project 🙂

Hi Michael, thank you so much!


-added Bone.getRotation and Bone.getRotationToRef  -fixed Bone.getDir…

…ection (wrong values if mesh has moved)

CI is returning an error

Darn.  I guess I can't add another Mesh parameter to Bone.getDirection due to Node.getDirection.

I'm going to need to make it optional and add it as the last parameter.


Can't get it to work

Okay so I'm making a website that needs a login and Github Pages does not support PHP and I have just overall heard better things about Heroku so I setup a new repository on github and got it hooked up. I saw that phpMyAdmin was not supported but they had something called clearDB but for some reason in all of the documentation I couldn't find out how to actually make different different databases. Then I saw this thing for phpMyAdmin on Heroku so I added it to my repo. I compiled everything and went to the link and the login page came up! But then I tried to login and I got this error: mysqli_real_connect(): (HY000/2002): No such file or directory and I looked at other posts and it says the edit some line of text so that I replace "localhost" with "<IP_ADDRESS>" but there is no line for it. Thanks guys if you can help!

Sorry for the delay in this response and that you were having trouble. If you're still having trouble, Stack Overflow might be a better forum to get input in your problem.


Why not parse_str?

https://github.com/KepplerPl/url/blob/4ffe53808af40079b50e8a42cab9b337a61a886e/src/Parser/Bags/QueryBag.php#L28
https://secure.php.net/manual/en/function.parse-str.php

That function is not deprecated in 7.2, only a specific usage ... "without the result parameter"
Using this function without the result parameter is highly DISCOURAGED and DEPRECATED as of PHP 7.2.

Plus, your method doesn't correctly parse string like "first=value&arr[]=foo+bar&arr[]=baz"

My mistake. Good point tho. I'll get that fixed.


(PUP-4687) Print warning message when setting home on Windows

Previously, the home property on Windows was implemented by
getting/setting the HomeDirectory property of an ADSI user.
It turns out that the HomeDirectory property does not do
anything meaningful. It does not, for example, create the home
directory if it does not exist or even return the current home
directory (it was, for example, returning an empty string for a
user whose profile's been created and is located in C:\Users<username>
instead of the C:\Users<username> path).
All of this means that the current implementation of the home
property did not do anything meaningful for Windows users. In
fact, the home property does not make a lot of sense on Windows
because the user profile, which is effectively the home directory
for a Windows user, is created in C:\Users and is very rarely
moved outside of this location.
Thus, there is no practical reason to support the home property
on Windows. We will rip this support out in the future. For now,
we print a warning message when the user attempts to set the
home directory on Windows in order to preserve backwards
compatibility.

jenkins please test this on windows10ent-64a,windows10ent-32a,windows2008r2-64a,windows2012r2-64a,windows2012r2_ja-64a%7Blocale=ja%7D,windows2016-64a

CLA signed by all contributors.

I filed PUP-9209 which should rip out the home property for Windows users.

From my reading, it looks like HomeDirectory is used to set the home-related environment variables, and not much else. This may still be useful for service accounts (perhaps like Jenkins, as was the example in the ticket?).
It's unfortunate that home and profile path are different things, but I don't think that means we shouldn't manage home at all. We probably instead need to just expose that complexity to the user in some way.
Either way, we should definitely not switch from actually setting a value to ignoring the user input and printing a warning in a Y or Z release. That's not SemVer.

Yeah, I agree with @branan. Another search showed that the HomeDirectory property is still used, for example in here and here. I think it is best to put up a separate PR that updates the docs for the managehome property, maybe indicate on Windows that it just creates/deletes the user profile?


code error in helpers/genNetCDF/Topography.py

question1: in Topography.py, in function "genHill": j = (np.arange(self.nx) - self.ny/2) / self.ny * np.pi *2,   is  this nx should be ny?
question2: in icar, if all variables's levels must be same?  in wrfout data ,  vertical velocity w's levels are u's levels plus 1,
when running icar, there will be  some errors.
question3: also  in Topography.py, is Schar's advection test's code correct?, in Schar's article in 2004, I don't found the same formula ,especially "hgt = (
hill_height *
self.h_x(ig,  lmbda) * self.h_x_star( ig,  a)
)" , that make me very confused
hope your reply, thank you !

Hi @wwwliye thanks for filing this issue.
Q1: I think @scrasmussen assigned himself to fix this, it does look like there is an inconsistency there.
Q2: ICAR does not read in the "w" field, so it shouldn't be an issue.  At one point, ICAR had an option to interpolate, e.g. Z and P if they were on interface levels instead of mass levels, though I think that functionality may have been dropped with the move to v2.  I recommend having all forcing data on the same levels.
Q3: I am not sure, this may have used a different topographic hill than in Christoph Schar's paper, I'm not sure if @scrasmussen or @bertjebertjek are best to answer this one.

question1: in Topography.py, in function "genHill": j = (np.arange(self.nx) - self.ny/2) / self.ny * np.pi *2, is this nx should be ny?

Thank you for pointing this out! It will be fixed in an upcoming PR.

question3: also in Topography.py, is Schar's advection test's code correct?, in Schar's article in 2004, I don't found the same formula ,especially "hgt = ( hill_height * self.h_x(ig, lmbda) * self.h_x_star( ig, a) )" , that make me very confused

In the paper, on pdf page 7 and page 2465 is the following diagram:

and in the second column's second paragraph we find "For all tests we use a computational domain that is confined above by a rigid lid at H 5 25 km and that is periodic in the x direction."
This should match up to the generated file? I'll ping the person who wrote this to double check my interpretation is correct, @bertjebertjek.

Hey, sorry for the late reply.
wrt the Schaer's topography, I dont recall where i got the formula from. Potentially from @d-reynolds , or I made it up myself? Anyway, it looks pretty similar to me:


Add user currency to frontend environment

@njam please review.

CM_Model_Currency: How about combining findByCountry and findByLocation (keeping the latter), and then using it in getByLocation? I think a lot of code could be simplified/removed then.
CM_Mail: Is there a reason to keep _render() or can we inline it into render()?

@njam please review.

@njam please review.

@alexispeter could you review this?
I reviewed the initial migration of the currency model from SK to CM already, but had some comments. Also additional changes were introduced since then. Anyway I think it's good if another pair of eyes takes a look at this.

library/CM/Model/Currency.php

create() use @return self in docbloc
findByAbbreviation() use @return self in docbloc
findByLocation() use @return self in docbloc
getByLocation() use @return self in docbloc
getByAbbreviation() use @return self in docbloc
getDefaultCurrency() use @return self in docbloc
getCurrency() I find the withDefault parameter a bit weird an unintuitive in such a function (simple getter). How about using a ternary operator in such cases? e.g. `$currency = $user->getCurrency() ? : CM_Model_Currency::getDefaultCurrency();

combine update-scripts
test that $currency->delete() invalidates CM_Paging_Currency_All

create() use @return self in docbloc
findByAbbreviation() use @return self in docbloc
findByLocation() use @return self in docbloc
getByLocation() use @return self in docbloc
getByAbbreviation() use @return self in docbloc
getDefaultCurrency() use @return self in docbloc

Not sure if this is correct. please have a look on other models (e.g. Location, Language)
@alexispeter please review.

It's correct. We don't use it often as often though. What we use most is @return static due to polymorphism. Writing out the name like here is just as correct, but had the original implementation used return self, you would not have had to adjust it ;)

lgtm

created tag 1.122.3


MultiWorkerMirroredStrategy stuck in all_reduce

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS Mojave
TensorFlow installed from (source or binary): PyPi
TensorFlow version (use command below): 1.14.0
Python version: 3.6.5
CUDA/cuDNN version: none. (MacOS)
GPU model and memory: none. (MacOS)

Describe the current behavior
I am setting up a multi-worker cluster with two workers and I want to reduce the value of a tensor from each worker. Tensorflow is simply blocking on the collective all reduce operation (tensorflow.python.ops.collective_ops.all_reduce) and never synchronizes between workers.
Describe the expected behavior
I expect the collective op to return the sum of the tensor across each worker. More specifically, I expect the code below to print the value [[2.,3.]]
Code to reproduce the issue
import json
import os
import sys
from multiprocessing import Process
import tensorflow as tf
from tensorflow.distribute.cluster_resolver import TFConfigClusterResolver

tf.logging.set_verbosity('DEBUG')

def test_dist(task_id):
    resolver = TFConfigClusterResolver()
    cluster = resolver.cluster_spec()
    server = tf.distribute.Server(
        cluster, job_name="worker", task_index=task_id)

    dist = tf.distribute.experimental.MultiWorkerMirroredStrategy(
        tf.distribute.experimental.CollectiveCommunication.RING)

    print('num replicas', dist.num_replicas_in_sync)

    with tf.device('/job:worker/task:{0}/device:CPU:0'.format(task_id)):
        t = tf.Variable([1.0,3.0*task_id], dtype=tf.float32, name='myvar')

    def sum_deltas_fn(v):
        return tf.identity(v)

    with dist.scope():
        all_ts = dist.experimental_run_v2(sum_deltas_fn, args=[t])
        delta_sums_results = dist.reduce(tf.distribute.ReduceOp.SUM, all_ts)

        sess = tf.compat.v1.Session(server.target)
        sess.run(tf.compat.v1.global_variables_initializer())

        print('tensor', delta_sums_results)
        print('tensor value', sess.run(delta_sums_results))

test_dist(int(sys.argv[1]))

I run two workers in one terminal each:
# Terminal 1
export TF_CONFIG='{ "cluster": { "worker": ["localhost:8027", "localhost:8028"] }, "task": {"type": "worker", "index": 0} }'
python collective_reduce.old.py 0

# Terminal 2
export TF_CONFIG='{ "cluster": { "worker": ["localhost:8027", "localhost:8028"] }, "task": {"type": "worker", "index": 1} }'
python collective_reduce.old.py 1

Other info / logs
The output is:
worker 1
WARNING: Logging before flag parsing goes to stderr.
W0809 16:15:59.427072<PHONE_NUMBER> deprecation_wrapper.py:119] From collective_reduce.old.py:8: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.

2019-08-09 16:15:59.428197: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-08-09 16:15:59.431492: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:250] Initialize GrpcChannelCache for job worker -> {0 -> localhost:8027, 1 -> localhost:8028}
2019-08-09 16:15:59.432571: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:365] Started server with target: grpc://localhost:8027
I0809 16:15:59.470151<PHONE_NUMBER> cross_device_ops.py:1174] Device is available but not used by distribute strategy: /device:CPU:0
W0809 16:15:59.471471<PHONE_NUMBER> cross_device_ops.py:1177] Not all devices in `tf.distribute.Strategy` are visible to TensorFlow.
I0809 16:15:59.472136<PHONE_NUMBER> collective_all_reduce_strategy.py:226] Multi-worker CollectiveAllReduceStrategy with cluster_spec = {'worker': ['localhost:8027', 'localhost:8028']}, task_type = 'worker', task_id = 0, num_workers = 2, local_devices = ('/job:worker/task:0',), communication = CollectiveCommunication.RING
num replicas 2
I0809 16:15:59.488581<PHONE_NUMBER> cross_device_ops.py:1032] Collective batch_all_reduce: 1 all-reduces, num_workers = 2
I0809 16:15:59.489030<PHONE_NUMBER> cross_device_ops.py:1053] Collective batch_all_reduce: 1 all-reduces, num_workers = 2
tensor Tensor("allreduce/CollectiveReduce:0", shape=(2,), dtype=float32, device=/job:worker/replica:0/task:0/device:CPU:0)

worker 2
WARNING: Logging before flag parsing goes to stderr.
W0809 16:16:07.349786<PHONE_NUMBER> deprecation_wrapper.py:119] From collective_reduce.old.py:8: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.

2019-08-09 16:16:07.350931: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-08-09 16:16:07.354157: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:250] Initialize GrpcChannelCache for job worker -> {0 -> localhost:8027, 1 -> localhost:8028}
2019-08-09 16:16:07.355424: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:365] Started server with target: grpc://localhost:8028
I0809 16:16:07.392420<PHONE_NUMBER> cross_device_ops.py:1174] Device is available but not used by distribute strategy: /device:CPU:0
W0809 16:16:07.393295<PHONE_NUMBER> cross_device_ops.py:1177] Not all devices in `tf.distribute.Strategy` are visible to TensorFlow.
I0809 16:16:07.393734<PHONE_NUMBER> collective_all_reduce_strategy.py:226] Multi-worker CollectiveAllReduceStrategy with cluster_spec = {'worker': ['localhost:8027', 'localhost:8028']}, task_type = 'worker', task_id = 1, num_workers = 2, local_devices = ('/job:worker/task:1',), communication = CollectiveCommunication.RING
num replicas 2
I0809 16:16:07.408463<PHONE_NUMBER> cross_device_ops.py:1032] Collective batch_all_reduce: 1 all-reduces, num_workers = 2
I0809 16:16:07.408880<PHONE_NUMBER> cross_device_ops.py:1053] Collective batch_all_reduce: 1 all-reduces, num_workers = 2
tensor Tensor("allreduce/CollectiveReduce:0", shape=(2,), dtype=float32, device=/job:worker/replica:0/task:1/device:CPU:0)

Whether this is a bug or me doing something wrong, it is very unclear in the docs how to do anything with MultiWorkerMirroredStrategy.
Also, the example with setting the env variable directly with os.environ here https://www.tensorflow.org/guide/distribute_strategy#setting_up_tf_config_environment_variable
does not register, and the ClusterSpec will be empty

Apparently, the code works for tf 2.0

@jvishnuvardhan Right.. I was looking for what change there was? Is it possible to make whatever fix there was into TF 1.x ?

@grananqvist  Tensorflow 1.x is not actively supported. Also,Could you please check with latest TF version and let us know .Please feel free  to reopen issue if necessary.Thanks!


fix: add missing hasResources check

There's a missing check for hasResources in ApkDecoder, which causes minSdkVersion to be force-replaced for APKs also, not just for JARs, which often causes an inconsistency with the original APK.
As such, the hasResources of ResourcesDecoder must be public (ideally "package-private", but ResourcesDecoder is in "res" sub-package so that is not viable).
Also made hasManifest public for consistency's sake to avoid confusion and open it for possible usage in ApkDecoder in the future.

thanks!


Jigsaw JSON UI

I made the Jigsaw UI look like the vanilla jigsaw UI and its fully functional :)

Thanks Keke! Enjoy the 🍽⬆


Need to create customized model

Can I create a customized model using my own classifier & training data & plug it in ache crawler ?
I want to have my own feature set & classifier algorithm to make the model which will give me more control in future. After that I need the ache crawlers infrastructure for crawling.
Also, I trained a model using 3000 positive & 3000 negative training data. I got decent results, in order to improve these results, I need to try some different approaches by changing the ML algorithm of the model.

If the algorithm you plan to implement is too specific for your application, you can fork the crawler and implement the interface TargetClassifier. Then you just need to instantiate it in TargetClassifierFactory  class. It should be fairly simple to implement this interface, you can take a look at the classes in the directory focusedCrawler.target.classifier for implementation examples (see SmileTargetClassifier for a machine-learning-based classifier).
If you just need more flexible parameters than the ones available in the current implementation, you can take a look a the class where the classifier is trained: https://github.com/ViDA-NYU/ache/blob/master/src/main/java/focusedCrawler/target/classifier/SmileTargetClassifierBuilder.java
Finally, we accept pull requests for new features that may be useful to others.


Electron tests: ensure we can open files that in tauri we would not be able to

something outside the Downloads or Documents directory that needs to prompt natively for file permissions

ensure working w text to cad
ensure working w file pane

related to https://github.com/KittyCAD/modeling-app/issues/2495


Fan Art Poster Thumbnail is missing

its been working great but suddenly there is no thumbnail or poster

Hello, most likely this means, the website is not reachable from your device. Please check your proxy/vpn settings. Also, the BASE_URL in addon settings is correct.


not able to build .net 6.0 console app in visual studio 2022

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create
Operating System: windows
I have recently installed visual studio 2022 and I was trying to build hello world tutorial program but it is giving me build error complaining about not able to find SDK for .Net6.0. I have checked dotnet --info command as well dotnet --list-sdks command and I see the dotnet 6.0 sdks being installed. Also, I checked the path environment variable and I see it is referring only 64 bit path of dotnet. I uninstalled and resintalled VS 2022 and that did not help either
The reference assemblies for ".NETFramework,Version=v6.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or higher. Update Visual Studio and/or your .NET SDK.
can you please advise how can I resolve this issue?

Can you please paste the content of your .csproj file here? I guess your project targetting something different which is not installed on your machine!

@ShreyasJejurkar I knew it was installation issue but I already tried to repair visual studio. I actually even did uninstall and reinstall visual studio but that did not help. What worked eventually was uninstalling all the version of visual studio from the machine and uninstalling all .net core sdks and then installing visual studio 2022.

Visual Studio is not installed on my machine. But nonetheless i had a similar issue with the dotnet command
dotnet new console -o MyConsole -f net6.0 --use-program-main --dry-run

My installed frameworks were
C:\Users\foobar>dotnet --list-sdks
3.1.120 [C:\Program Files\dotnet\sdk]
3.1.426 [C:\Program Files\dotnet\sdk]
5.0.408 [C:\Program Files\dotnet\sdk]
6.0.118 [C:\Program Files\dotnet\sdk]
7.0.100 [C:\Program Files\dotnet\sdk]

After installing 6.0.413 [C:\Program Files\dotnet\sdk] the problem went away.


Grammatical correction

Signed-off-by: yuxiaobo<EMAIL_ADDRESS>Delete extra words.

Those have to be submitted to their respective repositories. We don't make any changes to the vendored packages.


[REPORT]: Prince of Persia The Two Thrones

Checks

[X] I have checked if a report of the same game, in the same test environment, is already included
[X] I have tested all features from the feature list before making this report

gameplay
Working
Console model
SCPH-39001
OPL version / revision
OPL 1.2.0 beta 1901
title
Prince of Persia The Two Thrones
Game Region code (ID)
SLUS_212.87
device used on test
USB
format
ISO
media
DVD5
features

[X] VMC
[X] IGR
[X] PADEMU
[X] GSM

Compatibility modes
No response
comments about this report
there is no shuttering in cutscenes in iso and zso

The iso tested I rebuilt it with Dkz Studio because the iso was more than 4gb and when I rebuilt it it went to a little, but 1gb.

rebuilt isos are not accepted cause you change lba

I hope thi is the only iso you rebuild?

I hope thi is the only iso you rebuild?

Yes, this was the only one I rebuilt, because I had verified that it would be possible to change the lba to more than 4GB to complete the DVD size, unlike what happens with other games that have dummy files to improve reading or complete the DVD size!

But can I rephrase the question with the game with 4GB if that's the problem right?

It is known that compatibility is changed a lot when iso is rebuilt, so only vanilla iso game, which md5 matches redump.org are accepted

Its not a problem. You can install over 4gb games on exfat formatted flash. Or install it with usbutil in ul iso format

It is known that compatibility is changed a lot when iso is rebuilt, so only vanilla iso game, which md5 matches redump.org are accepted

I have no problem with it, I can test that way, but if the game is 4GB plus lba is 1GB, the cutscenes will be more drastic as you will have to read more data that doesn't exist to not have the white screen problems with the dummy files it was a common error in the iso and this can be fixed by removing them or rebuilding the iso even though it's not the problem of this game

rebuilt

Its not a problem. You can install over 4gb games on exfat formatted flash. Or install it with usbutil in ul iso format

I know that and I can do it this way, possibly it won't change anything from the slightly more than 1GB version that reconstructed at most the cutscenes crashing a little more


allow user inject own public keyfile in preparecrowbar

add ability to inject user own public key

Great idea to add this feature (in fact I was just wishing for exactly the same thing earlier today!) but I have to give -1 until two problems are addressed:

Travis fails the bashate check due to trailing whitespace
By adding yet another undocumented option, you are increasing technical debt.  This should never happen!  Please document the option properly.  (See also #256)

@aspiers  better ? trailing whitespace removed + add small docu.

Yes that's better - thanks a lot!  Although now I'm wondering why we need to append both $keyfile and $user_keyfile.  As this PR currently stands, $user_keyfile is more useful because it lets you choose which file is appended, whereas $keyfile is hardcoded to ~/.ssh/id_dsa.pub (where ~ means /root since mkcloud needs to run as root).  But it would also be easy to parametrize $keyfile.  What do you think?

not good idea, roots public key is needed in all steps after setupadmin

Ah of course!  In that case +1 from me.

:+1:


[ERROR] libxrdp_force_read: header read error

When the MS RDP client on MacOS connects to the xrdp server running on FreeBSD 13.2 these messages are printed in log:
Jun  5 18:07:01 xx xrdp[52316]: [ERROR] libxrdp_force_read: header read error
Jun  5 18:07:01 xx xrdp[52316]: [ERROR] [ITU-T X.224] Connection Sequence: CR-TPDU (Connection Request) failed
Jun  5 18:07:01 xx xrdp[52316]: [ERROR] xrdp_sec_incoming: xrdp_iso_incoming failed
Jun  5 18:07:01 xx xrdp[52316]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
Jun  5 18:07:01 xx xrdp[52316]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
Jun  5 18:07:01 xx xrdp[52316]: [ERROR] xrdp_iso_send: trans_write_copy_s failed
Jun  5 18:07:01 xx xrdp[52316]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed

xrdp-0.9.22

The error is different - SSL_accept: I/O error is only in https://github.com/neutrinolabs/xrdp/issues/2710
"[ERROR] [ITU-T X.224] Connection Sequence: CR-TPDU (Connection Request) failed" is only here.
It's not immediately obvious that this is the same error.

OK - thanks for pointing it out.
It's possible your MacOS client is using RDP encryption rather than SSL. Do you have more of the log there?

It's possible your MacOS client is using RDP encryption rather than SSL.

@matt335672 The X.224 Connection Request PDU is the very first PDU sent by the client. At that point no kind of security handling (ancient RDP security, TLS-, NLA-, or AAD-Security) took place yet.
So, if the connection already fails at this point, then there normally are only two ways: Either something in the parsing handling on the server side is wrong, or the client did send a malformed X.224 request.

Thanks @pnowack - you're quite right and I should have made a more thorough analysis.
This looks very much like #2505, which is also linked to from #2040. I just duplicated it by:-

Building v0.9.22
Running xrdp -n
From another machine, running nmap -p 3389 <host> to simply open the TCP port and close it again.
Stopping xrdp.

The complete xrdp log (with line numbers) looks like this:-
1:[20230607-09:51:15] [INFO ] [main(xrdp.c:691)] starting xrdp with pid 17571
2:[20230607-09:51:16] [INFO ] [xrdp_listen_process_startup_params(xrdp_listen.c:678)] address [<IP_ADDRESS>] port [3389] mode 1
3:[20230607-09:51:16] [INFO ] [xrdp_listen_process_startup_params(xrdp_listen.c:687)] listening to port 3389 on <IP_ADDRESS>
4:[20230607-09:51:16] [INFO ] [xrdp_listen_process_startup_params(xrdp_listen.c:674)] xrdp_listen_pp done
5:[20230607-09:51:41] [INFO ] [g_sck_accept(os_calls.c:1384)] Socket 12: AF_INET6 connection received from <redacted> port 40740
6:[20230607-09:51:42] [INFO ] [xrdp_rdp_read_config(xrdp_rdp.c:225)] Using default X.509 certificate: /etc/xrdp/cert.pem
7:[20230607-09:51:42] [INFO ] [xrdp_rdp_read_config(xrdp_rdp.c:257)] Using default X.509 key file: /etc/xrdp/key.pem
8:[20230607-09:51:42] [ERROR] [libxrdp_force_read(libxrdp.c:135)] libxrdp_force_read: header read error
9:[20230607-09:51:42] [ERROR] [xrdp_iso_incoming(xrdp_iso.c:489)] [ITU-T X.224] Connection Sequence: CR-TPDU (Connection Request) failed
10:[20230607-09:51:42] [ERROR] [xrdp_sec_incoming(xrdp_sec.c:2820)] xrdp_sec_incoming: xrdp_iso_incoming failed
11:[20230607-09:51:42] [ERROR] [xrdp_rdp_incoming(xrdp_rdp.c:921)] xrdp_rdp_incoming: xrdp_sec_incoming failed
12:[20230607-09:51:42] [ERROR] [xrdp_process_main_loop(xrdp_process.c:302)] xrdp_process_main_loop: libxrdp_process_incoming failed
13:[20230607-09:51:42] [ERROR] [xrdp_iso_send(xrdp_iso.c:639)] xrdp_iso_send: trans_write_copy_s failed
14:[20230607-09:51:42] [ERROR] [xrdp_mcs_disconnect(xrdp_mcs.c:1538)] Sending [ITU T.125] DisconnectProviderUltimatum failed
15:[20230607-09:51:44] [INFO ] [xrdp_listen_main_loop(xrdp_listen.c:915)] Received termination signal, stopping the server accept new conne

Lines 8-14 look identical to the messages logged above, making allowances for the development build. Consequently I'm quite happy to close this one and fold it into #2040.

This is a duplicate of #2040.
Didn't we cover this in #2710? Am I missing something?

Why did you reference #2040 if #2040 does not contain a legitimate solution? The only thing I'm seeing in #2040 are comments on logging rather than a solution to the problem. Currently having the same issue.

@seanajohnston - this is an observation about messages in the log. The explanation for these messages is in #2040. The messages are normal, but confusing and we need to clean them up.
Does that make more sense to you?

I am having same issue as described here, on a Mac using windows Remote Desktop to connect to Multipass ubuntu with xrdp setup as described here https://multipass.run/docs/set-up-a-graphical-interface#heading--using-rdp
immediate failure only thing I notice is this in the log
Mar 06 23:24:04 proven-troll xrdp[32031]: [ERROR] libxrdp_force_read: header read error
Mar 06 23:24:04 proven-troll xrdp[32031]: [ERROR] [ITU-T X.224] Connection Sequence: CR-TPDU (Connection Request) failed
Mar 06 23:24:04 proven-troll xrdp[32031]: [ERROR] xrdp_sec_incoming: xrdp_iso_incoming failed
Mar 06 23:24:04 proven-troll xrdp[32031]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
Mar 06 23:24:04 proven-troll xrdp[32031]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
Mar 06 23:24:04 proven-troll xrdp[32031]: [ERROR] xrdp_iso_send: trans_write_copy_s failed
Mar 06 23:24:04 proven-troll xrdp[32031]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed

was not sure if the issue was related to xrdp so also logged issue on Multipass repo and it appears it can be reproduced with it being looked into https://github.com/canonical/multipass/issues/3422#issuecomment-1983607154


Kind-specific suffix for getting logs

This suffix on kele-resource should support getting logs from all supported resources, e.g. pods, deployments, etc. The suffix on kele-resource would not be configurable, i.e. would not support --timestamps and --follow.
We can additionally provide a new prefix, kele-logs, that allows full configurability with all relevant toggles. This would have suffixes for each of the relevant kinds, e.g. one suffix for Pods.
Both should be disabled if user does not have the required auth (see #152).
Definition of Done

[x] New kind-specific suffix added to kele-resource to allow fetching logs for a specific resource name when the selected kind is supported
[ ] New prefix kele-logs is implemented with flag configurability
[ ] Both of the above are disabled if user does not have the necessary auth

Blocked on #231.


docker-compose fix for podman

Use fully qualified image names instead of aliases to support using podman instead of docker.
By default podman does not support aliases for image names and fails to run SuperAGI using this compose file. In file /etc/containers/registries.conf from podman we can find this note:
# NOTE: RISK OF USING UNQUALIFIED IMAGE NAMES
# We recommend always using fully qualified image names including the registry
# server (full dns name), namespace, image name, and tag
# (e.g., registry.redhat.io/ubi8/ubi:latest). Pulling by digest (i.e.,
# quay.io/repository/name@digest) further eliminates the ambiguity of tags.
# When using short names, there is always an inherent risk that the image being
# pulled could be spoofed. For example, a user wants to pull an image named
# `foobar` from a registry and expects it to come from myregistry.com. If
# myregistry.com is not first in the search list, an attacker could place a
# different `foobar` image at a registry earlier in the search list. The user
# would accidentally pull and run the attacker's image and code rather than the
# intended content. We recommend only adding registries which are completely
# trusted (i.e., registries which don't allow unknown or anonymous users to
# create accounts with arbitrary names). This will prevent an image from being
# spoofed, squatted or otherwise made insecure.  If it is necessary to use one
# of these registries, it should be added at the end of the list.

@jpenalbae Your suggestion seems nice!
I will test once and will merge.

To my understanding it should not hurt docker, but I haven't tested it on docker as I only have podman around, so yes, it will be good if you can give it a try.


Uncaught exception when creating a promotion without customer id

Steps to reproduce
start server
open localhsot:8000
try to create the following promotion (customer id is empty)

Current behaviour

Expected behaviour
successfully create the promotion

#61


What are genomic transformer papers to read?

What are 5 most notable papers to read to build genomic transformer models

the two papers listed in the citation as well as Enformer from deepmind

Sounds good, training my nets on this data.
And if you'll accept me, I want to advance this project alongside you for the glory of Humanity!


Add Amazon SNS shipper (Auto Scaling, CloudFormation)

This is a companion issue to #226 and #227 - many AWS services facilitate Amazon SNS notifications for operational health and/or progress and audit logging. The two services in use within this cluster are Auto Scaling and CloudFormation (and CloudWatch also facilitates SNS, thus #226 might be superseded or implemented via this generic issue).
Accordingly, a SNS shipper would be a great example/test case for #165 with a fairly straight forward design:

listen to SNS notifications
(optionally) ingest the SNS as such (SNS meta data)
push the post processed SNS message body to LogSearch (plus relevant SNS meta data like timestamp etc.)

Closed as Won't Fix due to project being retired to the CityIndex Attic.


Error in "Text Extractor"

Microsoft PowerToys version
0.76.2
Installation method
WinGet
Running as admin
Yes
Area(s) with issue?
TextExtractor
Steps to reproduce
PowerToysReport_2024-01-02-20-58-02.zip
✔ Expected Behavior
The letter "p" is not picking up.
The extracted text was typed letters, not a photo or handwriting.
The original text.

Extracted one.

❌ Actual Behavior
Mentioned above in the "Expected Behavior".

Other Software
No response

This issue is with the underlying OCR Engine and fixing it is beyond the scope of this project.


Footprints: Real regions support without pysiaf

You insisted I review https://github.com/spacetelescope/jdaviz/pull/2377 and I just cannot help myself. I managed to get the plugin to run without pysiaf and actually do something useful with realistic region files I have laying around.

Overall the plugin isn't very robust from many different combos of user interactions and I cannot get import_region API to work but I also don't really understand what it was originally meant for. The screenshot is when I load actual DS9 region files from the file dialog in the GUI, two times.

I don't have enough region files to cover all the shapes but I tried with circles an annuli, as shown in screenshot.

Some of this has been adopted directly into  https://github.com/spacetelescope/jdaviz/pull/2377 by 0b53119 and 8f6b5d0, while deferring support for pixel regions (need to decide how to properly handle this when changing reference layer and linking type) and point plotting (need to decide if that belongs in this plugin, if its needed for instrument footprint centers, and merge the underlying marks classes so that visibilities are properly toggled).