Fix annotation type analysis for Python "typing" types

The previous implementation was mostly unaware of the parsing context, whether C types were allowed at all or not. It returned what it found most appropriate. This was often wrong, e.g. for Optional[float], where the Python float type is required in order to support None values.
This PR cleans this up and uses a status flag on the current scope to decide whether the analysis happens in a context that allows C types or whether the Python types should be preferred on ambiguity. Compatible types can also switch back and forth along the analysis path, specifically float / C double, bool / bint and complex / double complex. Since there is more than one such type, this equivalence was added to the type system.
See https://github.com/cython/cython/issues/3883

IntiVar seems to be broken currently. It seems to lead to a mix of Python and C type assumptions when applied to a C type, so that we end up with a Python type test against a C type, thus crashing the compiler.

@da-woods I wonder what a good way to implement InitVar is. It's not really a Python type constructor, it rather passes the type through that it receives. To me, that suggests that it's not a type. Rather a hint that would better be represented in the symtab Entry. The same probably applies to ClassVar.
I think both should be ignored during annotation type analysis, and instead only change the way the variable is declared.

I see the point about them not really being a type, and maybe attaching the information to the entry.
Is there an easy way to pass through the type if it isn't a type constructor? The "templating" mechanism that types have works fairly naturally there. I guess maybe add the special case in IndexNode?

From the current implementation, I think it's rather NameNode.declare_from_annotation() that should take care of the proper Entry declaration. Type analysis can mostly ignore the 'special' non-type modifiers, except for C type context changes. I think TemplatedTypeNode is a good place for that. Better than IndexNode, which is already heavily overloaded and not specific to places where we expect types.
Maybe AnnotationNode.analyse_type_annotation() can return a 3-tuple: modifiers, base type, arg type. "modifiers" because of cases like InitVar[Optional[...]].

Ok, I think I got most of it implemented, with some remaining test failures probably due to left-overs here and there. ClassVar doesn't seem to work, but according to a code comment about them missing from var_entries, that was probably expected. Relatedly, the dataclass example fails with an explicit error.

I think the entry.declared_with_pytyping_modifier approach definitely makes sense. I was probably trying to load a bit too much into Cython's typing system in my initial go.

ClassVar doesn't seem to work, but according to a code comment about them missing from var_entries, that was probably expected.

That's to do with them appearing in the dataclasses introspection. The way it's working on the master branch I believe is that ClassVar does cause the variables to be declared as class attributes, but they don't appear in the __dataclass_fields__ special attribute (because they aren't in var_entries, so the dataclasses code never sees them).
I'll try to check this out later and see if I have anything useful to add about the remaining failures

So at least three of the errors (cdef_class_dataclasses, typing_module_cy, and pep526_variable_annotations_cy) come from code of the form
from typing import ClassVar

cdef class C:
   cdef ClassVar[int] x
   x = 5

One option would be to disallow this (on the basis that it's a bit of an awkward syntax, since you definitely can't do the assignment on the same line). I'd written it on the basis that there was no reason not to allow it. But there's no real reason to keep supporting it if it complicates things.
I think the other option would be to pick up the modifiers in CSimpleBaseTypeNode.analyse (which seems to be where the ClassDef gets converted to a type.

it's a bit of an awkward syntax, since you definitely can't do the assignment on the same line

Why not?

The typing_module_cy test generates this code for me:
   1176 struct __pyx_obj_16typing_module_cy_TestClassVar {
   1177   PyObject_HEAD
   1178   int regular;
   1179   int cls;
   1180 };

That suggests that ClassVar isn't picked up at all here. That would explain the failure.

it's a bit of an awkward syntax, since you definitely can't do the assignment on the same line

Why not?

Because PostParse enforces that you can't. It could be changed if course, but seemed a lot of effort to allow what will probably be a fairly rare bit of syntax

So one thing that used to work (and that currently doesn't work with this PR) is
cdef class C:
    a: double

With this PR the type gets ignored because it's analyzed with in_c_type_context==False. (That's what's causing dataclasses.InitVar[double] tests to fail, but the dataclasses.InitVar bit is a distraction here)

So one thing that used to work (and that currently doesn't work with this PR) is
cdef class C:
    a: double

With this PR the type gets ignored because it's analyzed with in_c_type_context==False. (That's what's causing dataclasses.InitVar[double] tests to fail, but the dataclasses.InitVar bit is a distraction here)

Hmm. I would consider this incorrect code, even though it's not going to be obvious for everyone. Annotations should be consistent in following Python semantics. What if it was spelled in Python syntax:
@cython.cclass
class C:
    a: double

Then there's really no reason why double should be special here. So, why in a cdef class?

Hmm. I would consider this incorrect code, even though it's not going to be obvious for everyone.

I don't have a strong opinion on this. I'm pretty happy with the "just fix the test" view. I suspect it'll confuse a few people so it might be worth a helpful message.
I definitely don't think cdef class vs @cython.cclass makes any real difference here. Whatever we do, I think we should do the same thing for both.

Annotations should be consistent in following Python semantics.

The counter-argument is that Python seems to be heading for "annotations must be Python syntax, but don't actually need to be executable" (ignoring the indecision on the subject). On that basis an annotation with double would at least be acceptable to Python (if not useful to Python type-checkers)

On that basis an annotation with double would at least be acceptable to Python (if not useful to Python type-checkers)

I'm wondering whether double is just special enough to break the rules here. But OTOH, wouldn't it also be confusing if x: float and x: double silently did the same thing?
Maybe a warning is better for now than silently accepting such code, as long as we don't know if it's a good idea.

Maybe a warning is better for now than silently accepting such code, as long as we don't know if it's a good idea.

It took me a reasonable amount of debugging to work out why it was failing (admittedly for the dataclasses.InitVar case, which is a little more complicated) and I understand it pretty well. So I think users would probably appreciate the warning!

FYI, I'm currently looking into the pep526_variable_annotations test failures. They are due to type inference tricks getting in the way now. We infer types also from assignments, but if there's a type annotation like Tuple[int, float], then that should take precedence over assigned values. It currently doesn't, which may lead to inconsistent type handling (e.g. if you assign (2.0, 3), then it would infer (double, int) instead of (int, double)).

I worked around the failing type inference tests. Eventually, type inference should look at the declared item types of Tuple[...], which it currently doesn't. If the PR passes the tests like this, I'll merge it and try to get out a new alpha release with it. It's high time, and I have hope that this is better than what's in current master.

Should cython.declare, cython.pointer and so on be strictly considered not in_c_type_context?

Should cython.declare, cython.pointer and so on be strictly considered not in_c_type_context? At least for .py files?

I created a new issue for this question. https://github.com/cython/cython/issues/4882


fixups - typos, spelling, comment consistency

Description
fixes incorrect spelling
Issues Resolved
n/a
Check List

[ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Thanks @ehershey


docs: fix typo dom intellisense discussion

Description
The WebAssembly function is called concats, not peprWASM. I changed the name of the function to describe what it does and format to update the docs.
Related Issue
Fixes #

Relates to #
Type of change

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

Checklist before merging

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

After chatting with @btlghrants we have decided to explain in the docs how to enable WebAssembly by adding it to the tsconfig.
This should address @jeff-mccoy 's point about exploding the intellisense by warning the user that by adding WebAssembly support they are bringing in DOM types and the intellisense will grow.
This leaves the initial default case free of DOM, while allowing the advanced user can still use use WASM if needed.


New monitoring endpoint: list all jobs

Close #370

Useful information: this CI run failed on github despite passing locally. The reason is that locally I was using SQLite, while on github CI we have postgres - which then lead to a ForeignKeyViolationError
E                   sqlalchemy.exc.IntegrityError: (sqlalchemy.dialects.postgresql.asyncpg.IntegrityError) <class 'asyncpg.exceptions.ForeignKeyViolationError'>: insert or update on table "applyworkflow" violates foreign key constraint "applyworkflow_input_dataset_id_fkey"
E                   DETAIL:  Key (input_dataset_id)=(1) is not present in table "dataset".
E                   [SQL: INSERT INTO applyworkflow (start_timestamp, project_id, input_dataset_id, output_dataset_id, workflow_id, overwrite_input, worker_init, working_dir, status, log) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING applyworkflow.id]
E                   [parameters: (datetime.datetime(2022, 12, 21, 12, 35, 34, 542409, tzinfo=datetime.timezone.utc), 1, 1, 2, 1, False, 'WORKER_INIT string', None, <JobStatusType.SUBMITTED: 'submitted'>, None)]
E                   (Background on this error at: https://sqlalche.me/e/14/gkpj)


Make sticky works with table headers

This patch is for proper positioning table header on sticky state (position: fixed)
Please take into concideration that you should apply sticky like this:
HTML:

            Id
            Name
            Value

            1
            Test
            1

JS:
$('.sticky').sticky();

up

Hi I'm currently using this code here(table.zip) to create a table from an XML file. I added the class to the  tag inside the  as you suggested but it seems the sticky still doesn't work for some reason. Any idea why this is happening?
Here's the HTML code:


option to display of 3d axis when using 3d viewer

🚀 Feature

It would be great to have a 3d axis in a corner that can rotate together with a 3d image. It would be also useful for 2 d image cases. This feature can be on and off, for those who doesn't need this.
Motivation
I like to use napari's 3D viewer but a few rotation of a image viewing angle, I lost which side of image I am looking at.  The axis of my image have a physical meaning, so I need to know which side I am looking at.

Pitch
I put a simple 3d axis in the screenshot to give you an idea.

Alternatives

Additional context

You can sort of do this with viewer.axes.visible = True or using the View > Axes > Visible menu item.
Not super discoverable and doesn't seem to the covered in any of the user-friendly docs, but how does that work for you?

Thanks @psobolewskiPhD.  This is what I was looking for!  I will close this.

Glad I could help. I'll try to take a look at the docs and tutorials to see how this can be better covered.


Categories of Marketplace Modules

AWS links updated and incoming links to AWS docs from docs.mendix also updated. Must also update https://www.mendix.com/evaluation-guide/strategic-partners/aws/aws-connectors-marketplace/ after the PR is merged.

@Luyao-Zhang-1 I've updated the SAP connectors. Should be ready to merge after the test build runs.

I will also update the eval guide for SAP after this PR is merged.


Cygwin should perhaps be designated Community supported

See Latest Release Announcement
Cygwin Source Package
Cygwin Binary Packages
Cygwin Cygport Package Build Script Definitions Repo
Cygwin Scallywag CI
Scallywag CI back end may be (default) Github Actions, or (legacy) Appveyor, depending on maintainer philosophy re GH
Scallywag CI result may be (default) build & test or (optional) build & test & deploy test release;
may be flipped to current stable once the build, test, and deploy is successful
Cygwin packages are currently built to support running under Windows Vista thru 10, both 32 and 64 bit supported, but Vista and Server 2008 has recently been dropped, and 32 bit x86 support will be deprecated in the next major release and most packages not released for 32 bit x86 after that, see Deprecation Notes

For something to be community supported we will need the person who is willing to be the point of contact to submit a pull request on the openssl/web repository adding that target into the community supported list.

The platform policy has this definition for community support:
"Definition: Platforms that one or more members of the OpenSSL community have volunteered to support. May or may not be in project CI. Members of the community providing support do not have to be committers."
https://www.openssl.org/policies/platformpolicy.html
So first of all it needs at least one named volunteer. That volunteer needs to be prepared to contribute patches for the platform back into OpenSSL and be pinged every once in a while if a platform specific problem arises to help find a resolution.
The existence of packages distributing OpenSSL for that platform is a good sign that someone somewhere might be willing to step into the role - but is not sufficient in itself. It's unclear if the official cygwin source packages are based on an unmodified upstream OpenSSL version, or whether they apply additional patches (as is common with many Linux distros for example). Whoever the volunteer is, has to be willing to support the unmodified upstream OpenSSL version. It might be appropriate to port any cygwin maintained patches into upstream OpenSSL to make that job easier - but that would be up to whoever that volunteer is, and whether they are willing to jump through the necessary hoops to make that happen.
Volunteering is straight forward. The volunteer simply has to make a PR against the openssl/web repo to make the necessary modifications to the platform policy page and have that PR approved. Once approved and merged its official.

Thanks - using GH may be an issue for them


[Electron] MacOS Signing to Enable OneAuth

TODO:

[x] Break apart entitlements file into separate ones that include only the entitlements they will be using (One with keychain access, one without)

[x] Build script that embeds the right provisioning profiles (embedded.provisionprofile) inside of all the bundles and at the root

[x] Build script that locally signs all the bundles in the correct order (/Frameworks/ first and then main bundle)

[x] Add additional build steps to Mac pipeline in ADO

[ ] (Dev env) Setup dummy Xcode app to download latest Microsoft wildcard provision profile

[ ] (Dev env) Script to locally sign Electron / native addons for development

#4677 will contain the build system updates


Feature assignment request : Levelling

Hi, I'd like to work on the levelling system.

Good luck on this one! Feel free to use this issue to keep us posted on the progress.

This issue has been resolved in #5


Feature: adding audio tag

html voice  tag done

Voice tag done

Thank you for your help :) Looks great!


Pass args to recursive fetchAllFiles calls

Description of Change
@pfhayes's PR goes further but I unfortunately still got a number of 400 Bad Request responses from the Drive API related to the pageToken parameter.
My PR just corrects two definite bugs where parameters are not passed down through recursive calls to the fetchAllFiles methods. Without these changes:

When building a tree for a shared folder, the driveType 'reverts' back to team when not passed through because that is the default parameter.
Without passing parentIds through, requests fail because it is trying to make a request that the pageToken is not valid for.

Motivation and Context
The tree fails to update for shared folder driveTypes.
Note that the library still fails for large trees (a deeply nested hierarchy). I'm currently working around this locally by changing Ln 140 to:   if (folders.length > 0 && folders.length < 100) {
Checklist

[x] Ran npm run lint and updated code style accordingly
[x] npm run test passes (or more accurately, the same 4 tests are failing as before I made these changes (on Windows).
[x] PR has a description and all contributors/stakeholder are noted/cc'ed
[o] tests are updated and/or added to cover new code
[o] relevant documentation is changed and/or added

Thanks for fixing this, @nick-nz! Will continue discussion on #15 about addressing the large number of parentIds.

@isaacwhite awesome :) Library is a great idea by the way!


Add upstream proxy authentication

Finished #644

This looks good, thanks. Can you please add a test that verifies that the feature working? :smiley:

I've added some test cases, but I'm not sure it's enough:disappointed_relieved:

Thanks! :tada:

I'm trying to use this right now, but hitting some issues.
mitmproxy -U http://xxxx.com:23333 --upstream-auth=xxx:yyy

Then when I try and use the proxy:
>>> proxies = {'http': 'http://<IP_ADDRESS>:8080'}
>>> url = 'http://geoip.nekudo.com/api'
>>> r = requests.get(url, proxies=proxies)

The mitmproxy console shows:
mitmproxy has crashed! call last):
Please lodge a bug report at: https://github.com/mitmproxy/mitmproxy, line 121, in handle
    root_layer()
  File "/Library/Python/2.7/site-packages/mitmproxy/proxy/modes/http_proxy.py", line 25, in __call__
    layer()
  File "/Library/Python/2.7/site-packages/mitmproxy/protocol/tls.py", line 358, in __call__
    layer()
  File "/Library/Python/2.7/site-packages/mitmproxy/protocol/http1.py", line 67, in __call__
    layer()
  File "/Library/Python/2.7/site-packages/mitmproxy/protocol/http.py", line 187, in __call__
    self.data.headers["Proxy-Authorization"] = self.config.upstream_auth
  File "/Library/Python/2.7/site-packages/mitmproxy/protocol/base.py", line 81, in __getattr__
    return getattr(self.ctx, name)
  File "/Library/Python/2.7/site-packages/mitmproxy/protocol/base.py", line 81, in __getattr__
    return getattr(self.ctx, name)
  File "/Library/Python/2.7/site-packages/mitmproxy/protocol/base.py", line 81, in __getattr__
    return getattr(self.ctx, name)
  File "/Library/Python/2.7/site-packages/mitmproxy/protocol/base.py", line 81, in __getattr__
    return getattr(self.ctx, name)
AttributeError: 'RootContext' object has no attribute 'data'

It's not the proxy because using the proxy directly with requests works. Any ideas?

@JakeAustwick: fixed, thanks.

Awesome. What's the easiest way for me to install this patch locally, so that I can test? I'm guessing it won't be pushed to PyPI for a while?


Better support for GraphQL

Things that'll need to happen –

a generic GraphQL query container type that conforms to Resource
a generic GrpahQL query container type that conforms to Resource and can be paginated
change to Configuration to encode the baseURL in a different place (APIVersion?), since GraphQL is requested at a different location
maybe a nicer way to represent queries/results in a type-safe way (function builders? something less complicated?)

This is in-part addressed by 97b8cdd2


Laravel 10.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 9.x.
Before merging, you need to:

Checkout the l10-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/eloquent-blameable.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "richan-fongdasen/eloquent-blameable": "dev-l10-compatibility",
    }
}

Finally, run: composer update

A new inspection was created.

The inspection completed: No new issues

Hi
Can you please merge this PR, it will enable Laravel 10.x compatibility.
Thanks


When using defineModel and setting the same value, the parent set event will not be triggered.

Vue version
3.5.13
Link to minimal reproduction
https://play.vuejs.org/#eNqtU02P0zAQ/SuWL81KJVVbuFTpClj1ABKwAsQFI5Qm0653HcfyR6hU5b8ztjdJiUp3D6tKlWf8ZvzezMuRvlMqbRzQFc1MobmyxIB1iohc7teMWsPoNZO8UrW25OaOi5LsdF0RRtNZCH01o/9CFiPMYgQ6Eg27aVFXylkoSRvhEwRNmGSyqKWxJCdr0kGSI5OE7MEmV+FEsIF1WpK5j9qp/0feSZOLDpAL0DaZXwUAky0e/C+bRZkoCgMLlRK5BYwIyaK85lVVlyBQfI7as6jgBLA4j1gECCH+iZO2dIozREE7vk/vTS1x0IEgo14bR5JflOUomNEVeaSOfYWo/3wMOasdBH2h5g6KhzP5e3PwOUZvNRjQDQ67v7O5xsHF6823z3DAc3+JQpxA9IXLr2Bq4TzHCHvvZIm0T3CB7YewWi73383mYEGaTpQnOmyJUdzyzQXpA91l+rpbHk6xN9sTVu3sE1b0IxcO0Ecl7LiETz6VPBph52ThXycWTGeroSZFJzlYjxNIJVZfNlLJm+iGbOusxTfeFoIXD54kPoY0T/hks4iJlbNYOrbQ8BU9U73StTK98FsfZSOJK+mqLe5RttdxJrESKm77wg0GJvk5capELquhePLr/2P0HZIzJdNAKh0yocXLDHSbG3jWJH83oL01cY7L9E06X9L2L/jjtzM=
Steps to reproduce
click
What is expected?
The same value also triggers the set event
What is actually happening?
Set not triggered
System Info
No response
Any additional comments?
The results of the two modification methods are inconsistent. I'm not sure if this is a bug, but they were consistent in versions <=3.4.31. The scenario is that my set event performs other actions, and I don't care whether the value has changed or not.
Related discussion

https://github.com/vuejs/core/blob/21f8d9dba9bb51f2a5c943193c12acd5c7cca9ec/packages/runtime-core/src/helpers/useModel.ts#L61-L64
when using useModel and the data unchanged, the data will not be triggered.  This is inconsistent with emit
I'm not sure if we should emit when the data hasn't changed.
If there is a definite conclusion, I can fix this problem

related https://github.com/vuejs/core/pull/11162 https://github.com/vuejs/core/issues/11125


Fix timestamp issue

This PR fixes #704

Design doc update to let the user know about the fixed timestamp format : yyyy-MM-dd'T'HH:mm:ss'Z'

@khansaad Please fix the conflicts

Closing stale PRs


[HTD-27] Feat: Add Blog CTA block Component

Pull Request Description

Assets

Light
Dark

Before Merge Checklist
The following steps were checked before merging a PR

[x] checked and fixed code style issues
[x] checked and removed unnecessary/junky code
[x] manually tested introduced solution
[ ] added needed tests to automate testing this code in the future

Great job @RBoraurito 💪🏽


sessionChecksEnabled = false is not respected if discovery doc contains check_session_iframe

I use the default value of sessionChecksEnabled (false).
In the validateDiscoveryDocument function
this.sessionChecksEnabled = doc['check_session_iframe'];
so later if(this.sessionChecksEnabled) will be true (even if I specified false initially)
and actually it is a bit surprising that sessionChecksEnabled starts off as a boolean (false), and would later take on the value doc['check_session_iframe'] (string)

Thx for pointing this out. You are absolutly right.

Will be fixed in the next release (lands in a few days).


query return empty set in where expression which is a not equal compare

Steps to reproduce the behavior (Required)

CREATE TABLE test_duplicate_table_with_null (
k1 date NULL COMMENT "",
k2 datetime NULL COMMENT ""
) ENGINE=OLAP
DUPLICATE KEY(k1)
COMMENT "OLAP"
DISTRIBUTED BY HASH(k1) BUCKETS 3
PROPERTIES (
"replication_num" = "1",
"in_memory" = "false",
"storage_format" = "V2"
);
INSERT INTO test_duplicate_table_with_null values ("2020-06-23", "2020-06-23 00:00:02");
select * from test_duplicate_table_with_null;
+------------+---------------------+
| k1         | k2                  |
+------------+---------------------+
| 2020-06-23 | 2020-06-23 00:00:02 |
+------------+---------------------+
select * from test_duplicate_table_with_null where k2 != "2020-06-23 00:00:61";

Expected behavior (Required)
+------------+---------------------+
| k1         | k2                  |
+------------+---------------------+
| 2020-06-23 | 2020-06-23 00:00:02 |
+------------+---------------------+
Real behavior (Required)
mysql> select * from test_duplicate_table_with_null where k2 != "2020-06-23 00:00:61";
Empty set
StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()
1.19

This issue isn't a bug. "2020-06-23 00:00:61" is an invalid datetime, in StarRocks, we will convert "2020-06-23 00:00:61" to null, all k2 data != null will get null, so the query result is empty


⚠ Jenkins Plugins Artifactory has degraded performance

In c3201b3, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1194 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 2730ec0 after 20 minutes.


Getting Config null for prod environment in Android

I have different bundle identifier in prod. For that I am getting Config undefined

Getting config for other environments. Here is my manifest file.

How I can get the Config for prod on which I am using different bundleId

Did you follow this extra step? It should solve your issue.

yes but it's not solved the issue

Any updates on this? After trying all the steps in all the comments, I have all the config set up as empty too (which works perfectly on iOS and also used to work perfectly on Android too).

Same problem using the last RN version

I just encountered same issue.
Android doesn't have my .env records, iOS only

In my android/app/build.gradle I have the following setup working on the latest React Native version:
project.ext.envConfigFiles = [
        dev: ".env.dev",
        prod: ".env.prod",
]

// Make sure apply is set after project.ext.envConfigFiles is defined
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"

...

defaultConfig {
        applicationId "com.app"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode rootProject.versionCode as int
        versionName "1.0"
        // Set build config resource for react-native-config
        resValue 'string', 'build_config_package','com.app'
    }

Before adding resValue 'string', 'build_config_package','com.app' my config was empty. Hope this helps!

i got same issue ,pls help me !


Fix display of $XDG_SESSION_TYPE

Description

Fixed display $XDG_SESSION_TYPE

Features

Issues
Was not displaying $XDG_SESSION_TYPE

Works!

Thank you for your contribution!
This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.
HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.
Read the "Running Updated Original Neofetch" section for more info!


Updated validations.py python script

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[x] Appropriate changes to README are included in PR

@googlebot I have signed it :)


Auto increment id field is generated as a @required parameter for the table class which makes any table unusable :(

i'm also facing following issue :
Here's my Table :
@DataClassName('RecentSearch')
class RecentSearches extends Table {

  IntColumn get id => integer().autoIncrement()();

  IntColumn get category_id => integer()();

  BlobColumn get category_data => blob()();

  IntColumn get timestamp => integer()();

  TextColumn get key => text()();
}

But the generated RecentSearch object contains @required annotation for all parameters including the id parameter which is supposed to be an auto increment column.
This is a serious blocker for using this library :/
Here's the generated RecentSearch table
class RecentSearch extends DataClass implements Insertable<RecentSearch> {
  final int id;
  final int category_id;
  final Uint8List category_data;
  final int timestamp;
  final String key;
  RecentSearch(
      {@required this.id,
      @required this.category_id,
      @required this.category_data,
      @required this.timestamp,
      @required this.key});
....

}

I am also facing this issue in moor files with AUTOINCREMENT but also with NOT NUL DEFAULT FALSE which both generate a @required annotation.
The AUTOINCREMENT should definitely not have an annotation. Columns with default value are debatable but imo should not have an annotation as well.

The generated data classes are designed to hold a full row, as it would appear in the database. Since a row in the database contains a non-null id, it's marked as @required in the generated class.
Let's say that id was not marked as @required, and also allowed to be null. When Dart gets non-nullable types real soon now, we'd have to generate the field as final int? id. Then, all code that just selects rows from the database and obtains an instance of RecentSearch will have to guard against id being null, even though this impossible.
If you want to update or insert rows into the database, you only need to provide partial data. Moor generates a RecentSearchesCompanion class, which is useful for inserts or updates. You can use  the RecentSearchesCompanion.insert constructor, where only columns that are required for inserts are marked as @required.
For the reason mentioned above, we can't really make those fields not-required. Companions should solve this problem and still make inserts safe. If you have a scenario where companions are awkward to use, please let me know.

True, I didn't think of NNBD. It needs to be required there.

Please update the documentation on inserts regarding this

Kind of. There's an entry on the guide for Dart inserts and updates here.
This issue comes up regularly, so I'll try to make this more prominent in the documentation.

When I use ItemsTableCompanion.insert, fields that are AutoIncrement are still displayed as required. What value should I enter in this field if it should be filled in automatically?

I have opposite
For
class Employees extends Table {
  IntColumn get id => integer().autoIncrement()();

I have
  Employee(
      {required this.id,

so I cant' create and insert Employee because id is required but before insert is unknown

You need to use the generated companion class, something like EmployeeCompanion.insert.


Ensure proper call order

Current call order of the processes in the command is off, manifesting itself in usually having to reload the browser on its first load.

Did not track in the commits.
See 34395a62c00896f8e77a61a177825114096e11fa, 272b6037530a1e20d9ace07c048071df15b3f30 and 8d9be70c91909f58661e9908e6a1bb4e71c6fe3a


Add your hobbies (including images)

To do: Add interactive display of hobby information on hover.


Revert #2378, causing noninteractive 2D and 3D spaceviews

What
This reverts commit bdae196010411d608f8ff688dd862fcd57b80bb0.
PR #2378 caused all 2D and 3D spaceviews to become non-interactive, meaning you could not zoom or pan.
Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct

PR Build Summary: https://build.rerun.io/pr/2395

Docs preview: https://rerun.io/preview/6c6f215/docs
Examples preview: https://rerun.io/preview/6c6f215/examples

Closing in favor of:

https://github.com/rerun-io/rerun/pull/2396


is it possible to generate routes from an existing vue router?

Currently no, vite-ssg need to control the router to render the page.

Is it possible to access the vue-router instance from inside Vuex?


Downgrade analyzer to be in step with flutter_test

flutter_test currently specifies analyzer version 0.32.4.  As this is a package that is included by default with new flutter apps generated by the tooling, it makes sense to keep dioc compatible.
This should not break anything for current users as it is a downgrade.

Already updated! Thanks for reporting this.


Health Check - Azure http logs indicate useragent "-" although as per documentation it should be ReadyforRequest/1.0+(HealthCheck)

For deployment issues, please provide us with the following information:

Repro steps.

Configured Health check for an azure app service using health check blade in azure portal. Using linux host with .Net core 3.1 version.

Validated in app service Http logs and useragent is "-". Although as per documentation it should be ReadyForRequest/1.0+(HealthCheck).
Any thoughts or suggestions to overcome this issue is much appreciated.

@sanchitmehta  please advise,

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


Unable to return data using the archive agent

Hi,
I am trying to use the web api to get data using an archive agent however everything I try returns an empty ArchiveListItem array. This is happening with access token and system user token auth. I am able to use other agents without any issues.
`                ArchiveAgent archiveAgent = new ArchiveAgent(webApiOptions);
            var test1 = archiveAgent.GetArchiveListByColumns2Async("Person", "personId", "", "person = 1", "", 0, 100).Result;

            string searchEntity = "person";
            string[] columns = new[] { "personId" };
            var test2 = archiveAgent.GetArchiveListByColumnsAsync(
                "Person",
                columns,
                new[]
                {
                    new ArchiveOrderByInfo()
                    {
                        Name = columns[0],
                        Direction = OrderBySortType.ASC
                    }
                },
                new[]
                {
                    new ArchiveRestrictionInfo()
                    {
                        Name = "personId",
                        Operator = "=",
                        Values = new [] {  "1" }
                    }
                },
                new[] { searchEntity },
                0,
                1).Result;`

Thanks,
Rhodri

Test 1 fails to produce any matches because the column 'person' does not
exist. Also we start numbering at id 2, so id 1 will not match anything.
var test1 = archiveAgent.GetArchiveListByColumns2Async("Person",
"personId,fullName", "", "personId = 2", "", 0, 100).Result;
Test 2 fails because id1 does not exist.
On Mon, Feb 22, 2021, 11:10 RhodriBlackwellIB<EMAIL_ADDRESS>wrote:

Hi,
I am trying to use the web api to get data using an archive agent however
everything I try returns an empty ArchiveListItem array. This is happening
with access token and system user token auth. I am able to use other agents
without any issues.
` ArchiveAgent archiveAgent = new ArchiveAgent(webApiOptions);
        var test1 = archiveAgent.GetArchiveListByColumns2Async("Person", "personId", "", "person = 1", "", 0, 100).Result;

        string searchEntity = "person";
        string[] columns = new[] { "personId" };
        var test2 = archiveAgent.GetArchiveListByColumnsAsync(
            "Person",
            columns,
            new[]
            {
                new ArchiveOrderByInfo()
                {
                    Name = columns[0],
                    Direction = OrderBySortType.ASC
                }
            },
            new[]
            {
                new ArchiveRestrictionInfo()
                {
                    Name = "personId",
                    Operator = "=",
                    Values = new [] {  "1" }
                }
            },
            new[] { searchEntity },
            0,
            1).Result;`

Thanks,
Rhodri
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SuperOffice/SuperOffice.WebApi-Samples/issues/5, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5EUBNHCLPGDTAYUX4C4RLTAIUSBANCNFSM4YAG5UVQ
.

My mistake with the person column.
When you say numbering starts at id 2 do you mean in SuperOffice generally or in this particular area? I know I have a person entry with Id 1.
In any case, I still get the same result using the code snippet you provided.
In any case, I still get the same result using the code snippet you provided.
                    PersonAgent personAgent = new PersonAgent(webApiOptions);
                    var person = personAgent.GetPersonAsync(2).Result;

                    ArchiveAgent archiveAgent = new ArchiveAgent(webApiOptions);
                    var test1 = archiveAgent.GetArchiveListByColumns2Async("Person", "personId,fullName", "", "personId = 2", "", 0, 100).Result;`

The person agent returns a person as expected but nothing from the archive agent.
Thanks

You could also verify that person exists by navigating to that person page in SuperOffice:
https://sod.superoffice.com/Cust00000/default.aspx?person.main.projectarchive?person_id=1
If the person exists that, yes you should be able to get it via the archive API as well.

I can see people for id 1 and 2 by navigating to the URL in SuperOffice.

It turns out that it is the lack of entity being passed in causing the issue. The code below works as expected.
var test1 = archiveAgent.GetArchiveListByColumns2Async("Person", "personId,fullName", "person", "personId = 2", "", 0, 100).Result


Make dbinit optional and migration tips.

This PR:

Makes the dbinit part optional (for cases where you are re-using existing PVCs for postgresql that already have the database).
Adds some pointers on the doc for migration cases.

@nuwang apparently postgres doesn't support IF NOT EXISTS in CREATE DATABASE. Will revert the change now.

Ping @nuwang could we merge this as it is given that IF NOT EXISTS wasn't feasible? Thanks!

@pcm32 Thanks for trying IF NOT EXISTS. I didn't see this ping, sorry I didn't take a look earlier - looks good to me.


Update docs to have PATH info, strip some trailing whitespace

Signed-off-by: Ashton Von Honnecke<EMAIL_ADDRESS>

closing due to inactivity


Regenerate Go SDK from current OpenAPI Specification

Changes
Spec commit sha: 17a3f7fe6 (7 July 2023)

Add EmailNotifications to jobs.SubmitRun and jobs.SubmitTask
Add NotificationSettings to jobs.SubmitTask

Tests

[ ] make test passing
[ ] make fmt applied
[ ] relevant integration tests applied

Meant to copy it from the other PRs.


tail -f breaks after implementing console events

Steps To Reproduce
Followed article https://cribl.io/blog/bash-history-logging-the-easy-way-with-appscope/ implementing AppScope to enable logging of user commands.
I found that when using tail -f to watch the output of a log file I would get an error to stdout within about 5 seconds and tail would exit
tail: error waiting for inotify and output events: Interrupted system call

I also found the below error in the AppScope application log output
Scope: tail(pid:1950525): [2022-01-27 05:20:15.671] ERROR: Could not get function address of uv_fileno.

Environment
- AppScope: v0.8.1
- OS: Red Hat Enterprise Linux 8.5 (Ootpa)
- Architecture: x86_64
- Kernel: 4.18.0-348.2.1.el8_5.x86_64

Requested priority
Medium
Relevant log output
See above

Thanks for finding this. We will reproduce this and post updates here.

I tried to reproduce this on 0.8.1 and latest master with the following steps:
Scope tail -f
docker run --rm -it cribl/scope:<VERSION_ID>
scope run -- tail -f /var/log/dpkg.log
# In another terminal:
docker exec -it <above container> /bin/bash
apt update && apt install -y python3 # to generate dpkg logs
# Wait 20 seconds to observe failures

Scope bash
docker run --rm -it cribl/scope:<VERSION_ID>
scope bash
tail -f /var/log/dpkg.log
# In another terminal:
docker exec -it <above container> /bin/bash
apt update && apt install -y python3 # to generate dpkg logs
# Wait 20 seconds to observe failures

Scope bash with cribl tls destination (per blog post):
docker run --rm -it cribl/scope:<VERSION_ID>
scope run -c tls://logstream.strange-cannon.cribl.cloud:10090 -- bash
tail -f /var/log/dpkg.log
# In another terminal:
docker exec -it <above container> /bin/bash
apt update && apt install -y python3 # to generate dpkg logs
# Wait 20 seconds to observe failures

I could not reproduce the issue.
Regarding this
I also found the below error in the AppScope application log output
Scope: tail(pid:1950525): [2022-01-27 05:20:15.671] ERROR: Could not get function address of uv_fileno.

This is known. We changed the level of this log recently but it will still appear with a more verbose log level set.

Closing for now. Please provide further information if you want us to re-open and investigate - we will be happy to.

This is still an issue, that I am experiencing on a fresh install of RHEL 8.5 Below are the configs I am using.
/etc/profile.d/appscope.sh
SCOPE_HOME=/opt/scope
LD_PRELOAD=/opt/scope/libscope.so
PATH=$PATH:/opt/scope
SCOPE_CRIBL_NO_BREAKER=true

export SCOPE_HOME LD_PRELOAD PATH SCOPE_CRIBL_NO_BREAKER

/etc/scope/scope.yml
metric:
  enable: false
event:
  enable: true
  format:
    type: ndjson
    maxeventpersec: 10000
    enhancefs: true
  watch:
    - type: console
      name: (stdout)|(stderr) # matches the output stream
      value: .*               # matches data written
  transport:
    type: file
    path: '/var/log/appscope/events.log'
    buffer: line
libscope:
  configevent: true
  summaryperiod : 10
  commanddir : '/tmp'
  log:
    level: warning
    transport:
      type: file
      path: '/var/log/appscope/appscope.log'
      buffer: line
cribl:
  enable: false
tags:
  user: $USER
  cwd: $PWD
protocol:
custom:

what is the command line you are using with the above config?

Since appscope process is spawned as a part of the bash session starting I am just running tail -f /var/log/
As Root
[root@smoke log]# tail -f /var/log/messages
Feb  3 14:32:29 smoke systemd[2347017]: Starting D-Bus User Message Bus Socket.
Feb  3 14:32:29 smoke systemd[2347017]: Reached target Timers.
Feb  3 14:32:29 smoke systemd[2347017]: Reached target Paths.
Feb  3 14:32:29 smoke systemd[2347017]: Listening on D-Bus User Message Bus Socket.
Feb  3 14:32:29 smoke systemd[2347017]: Reached target Sockets.
Feb  3 14:32:29 smoke systemd[2347017]: Reached target Basic System.
Feb  3 14:32:29 smoke systemd[2347017]: Reached target Default.
Feb  3 14:32:29 smoke systemd[2347017]: Startup finished in 188ms.
Feb  3 14:32:29 smoke systemd[1]: Started User Manager for UID 1000.
Feb  3 14:32:29 smoke systemd[1]: Started Session 53 of user prymalinstynct.
tail: error waiting for inotify and output events: Interrupted system call

As a user
[prymalinstynct@smoke log]$ tail -f dnf.log
2022-02-03T13:03:08-0700 DEBUG DNF version: 4.7.0
2022-02-03T13:03:08-0700 DDEBUG Command: dnf makecache --timer
2022-02-03T13:03:08-0700 DDEBUG Installroot: /
2022-02-03T13:03:08-0700 DDEBUG Releasever: 8
2022-02-03T13:03:08-0700 DEBUG cachedir: /var/cache/dnf
2022-02-03T13:03:08-0700 DDEBUG Base command: makecache
2022-02-03T13:03:08-0700 DDEBUG Extra commands: ['makecache', '--timer']
2022-02-03T13:03:08-0700 DEBUG Making cache files for all metadata files.
2022-02-03T13:03:08-0700 INFO Metadata cache refreshed recently.
2022-02-03T13:03:08-0700 DDEBUG Cleaning up.
tail: error waiting for inotify and output events: Interrupted system call

hey. we sort of recreated what you are seeing. we could not repro directly. we created a RHEL 8.4 EC2 VM. taking the same steps you defined we did not see the issue. however, theorizing about the cause and the staring at the error message, it seems as though the timer we use should be stopped and is not getting stopped in your case. so, if we force the timer not to stop in test code we see the same error message from tail that you are seeing.
we know what is happening. we have a theory as to why it's happening. given that we are not able to repro directly, would you be willing to run a test build that we provide? it should allow us to verify that we have this fixed.

Thanks for looking into it further. I am happy to help however I can.

Will you please try this test version? It's built f4rom the draft PR 757.
$ curl -O https://cdn.cribl.io/dl/scope/bug/728-tail-f/linux/scope
$ chmod +x scope
$ ./scope version
Version: d1cf379
Build Date: 2022-02-07T16:21:47Z

Sorry to report this still appears to be an issue
Download test build
prymalinstynct@wks01-windows:~/Projects/ (main)$ ssh <IP_ADDRESS>

Last login: Tue Feb  8 06:09:23 2022 from <IP_ADDRESS>
[prymalinstynct@smoke scope]$ cd /opt/scope/
[prymalinstynct@smoke scope]$ sudo curl -O https://cdn.cribl.io/dl/scope/bug/728-tail-f/linux/scope
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27.6M  100 27.6M    0     0  3936k      0  0:00:07  0:00:07 --:--:-- 4017k
[prymalinstynct@smoke scope]$ sudo chmod +x scope
[prymalinstynct@smoke scope]$ ./scope version
Version: d1cf379
Build Date: 2022-02-07T16:21:47Z

Logout and log back in to reset bash session
[prymalinstynct@smoke scope]$ exit
logout
Connection to <IP_ADDRESS> closed.
prymalinstynct@wks01-windows:~/Projects/ (main)$ ssh <IP_ADDRESS>

Last login: Tue Feb  8 06:11:49 2022 from <IP_ADDRESS>

Run Tail command
[prymalinstynct@smoke ~]$ tail -f /var/log/dnf.log
2022-02-08T05:29:54-0700 DEBUG reviving: 'rhel-8-for-x86_64-appstream-rpms' can be revived - repomd matches.
2022-02-08T05:29:55-0700 DEBUG rhel-8-for-x86_64-appstream-rpms: using metadata from Mon 07 Feb 2022 07:14:16 AM MST.
2022-02-08T05:29:55-0700 DEBUG reviving: 'rpmfusion-free-updates' can be revived - repomd matches.
2022-02-08T05:29:55-0700 DEBUG rpmfusion-free-updates: using metadata from Sat 05 Feb 2022 10:51:10 AM MST.
2022-02-08T05:29:55-0700 DEBUG reviving: 'rpmfusion-nonfree-updates' can be revived - repomd matches.
2022-02-08T05:29:55-0700 DEBUG rpmfusion-nonfree-updates: using metadata from Sat 05 Feb 2022 10:57:56 AM MST.
2022-02-08T05:29:55-0700 DEBUG User-Agent: constructed: 'libdnf (Red Hat Enterprise Linux 8.5; generic; Linux.x86_64)'
2022-02-08T05:29:58-0700 DDEBUG timer: sack setup: 6152 ms
2022-02-08T05:29:58-0700 INFO Metadata cache created.
2022-02-08T05:29:58-0700 DDEBUG Cleaning up.
tail: error waiting for inotify and output events: Interrupted system call

Ugh! I think this may be my bad. In the instructions I provided, I failed to suggest that you extract the content of the scope you downloaded. Assuming that you did exactly what you posted, you were using the old libscope and no change would be seen. Which, of course, is what we see.
The steps become:
$ curl -O https://cdn.cribl.io/dl/scope/bug/728-tail-f/linux/scope
$ chmod +x scope
$ ./scope version
Version: d1cf379
Build Date: 2022-02-07T16:21:47Z
$ ./scope extract /opt/scope

Using /opt/scope in the extract command because in /etc/profile.d/appscope.sh you are using LD_PRELOAD=/opt/scope/libscope.so. The extract command will place the updated libscope in the dir you are referencing.
Thanks for your patience. Will you give this a try...again?

ok, I ran ./scope extract /opt/scope and am still getting the same error.
here is the output of the appscope.log file I am writing to which errored out the same when i used tail -f
[root@smoke appscope]# tail -f /var/log/appscope/appscope.log
Scope: id(pid:2589593): [2022-02-08 06:13:21.832] ERROR: Could not get function address of uv_fileno.
Scope: cat(pid:2589595): [2022-02-08 06:13:21.842] ERROR: Could not get function address of uv_fileno.
Scope: tail(pid:2589605): [2022-02-08 06:13:33.214] ERROR: Could not get function address of uv_fileno.
Scope: ls(pid:2636249): [2022-02-09 04:19:57.765] ERROR: Could not get function address of uv_fileno.
Scope: mv(pid:2636283): [2022-02-09 04:20:44.052] ERROR: Could not get function address of uv_fileno.
tail: error waiting for inotify and output events: Interrupted system call
[root@smoke appscope]#

@PrymalInstynct
Thanks for your message.
What confuses me is that you are still able to see in the /var/log/appscope/appscope.log the following message (assuming it comes after you perform a scope extract operation):
Scope: mv(pid:2636283): [2022-02-09 04:20:44.052] ERROR: Could not get function address of uv_fileno.

This type of message should not appear in the case of libscope.so library version (mentioned in https://github.com/criblio/appscope/issues/728#issuecomment-1032871183), which comes from scope extract operation.
In the case of using libscope.so library coming from scope extract after executing the 'strings' command against libscope.so:
strings libscope.so | grep "Scope Version"

You should see
Constructor (Scope Version: d1cf379bcf1a)

Can you verify the command above with /opt/scope/libscope.so and possibly check if that is the only libscope.so you have it?

Here is the output of the 2 commands I ran to find all possible instances of libscope.so and then pull the version out of the strings
[root@smoke ~]# find / -name 'libscope.so'
/opt/scope/libscope.so
[root@smoke ~]# strings /opt/scope/libscope.so | grep "Scope Version"
Constructor (Scope Version: d1cf379bcf1a)
Scope Version: %s   Dump From: %s
[root@smoke ~]#

For the sake of sharing in case it matters in some way, here is how I am installing and configuring appscope.
AppScope Ansible Role
As a side note I would love to see the version included in the package file name so I could dynamically pull the appscope package for github by version number a little easier.

Yes, I am using the ansible role linked to install appscope in my environment, and yes I get the same behavior as both root and a standard user.

I'll join up on Monday.

That's great. We are looking forward to it.
On Fri, Feb 11, 2022 at 7:06 AM PrymalInstynct @.***>
wrote:

I'll join up on Monday.
—
Reply to this email directly, view it on GitHub
https://github.com/criblio/appscope/issues/728#issuecomment-1036195786,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHIMXB5ZEXNTAHXTRGDFELU2UCV7ANCNFSM5M5YKKJA
.
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.
You are receiving this because you were assigned.Message ID:
@.***>

@iapaddler the link is not letting me sign-in it is telling me I need a cribl.io address to join the workspace.

the community channel should not require a specific email address. send me an email address and i'll send a join email. that should resolve this.

@PrymalInstynct better approach, the AppScope web site has a link to the community channel:
https://appscope.dev/
If you can sign up there, we can explore this in detail. Let us know if this works for you.

Yeah, that works. I'll should be able to jump on tomorrow morning.

The root cause of this is that we're missing a function that we need to interpose.  Specifically __poll_chk.
My understanding is that this function is used by tail due to it being compiled with a gcc toolchain with the _FORTIFY_SOURCE=2 option.  We had problems reproducing it because the versions of tail that we tried don't use the __poll_chk symbol.  On my machine, for example, tail doesn't use this symbol.  Heck, it doesn't even use poll:
ubuntu@ip-10-8-107-159:~/jrc/appscope3$ which tail
/usr/bin/tail
ubuntu@ip-10-8-107-159:~/jrc/appscope3$ tail --version
tail (GNU coreutils) 8.28
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, Ian Lance Taylor,
and Jim Meyering.
ubuntu@ip-10-8-107-159:~/jrc/appscope3$ nm -D /usr/bin/tail | egrep "(poll)|(select)"
                 U select

I've done some analysis of what we functions need to add to ensure that this doesn't happen in other scenarios.
This command finds glibc functions that are provided that end in "_chk".
nm -D /lib/x86_64-linux-gnu/libc.so.6 | grep _chk\$ | grep " T " | gawk '{print $3}' | cut -d_ -f3 > glibc_func_list.txt

This command finds functions that libscope.so provides
nm -D ./lib/linux/x86_64/libscope.so | grep " T " | gawk '{print $3}' > appscope.txt

This command compares the two files we just created above:
for func in $(cat glibc_func_list.txt); do grep "^$func\$" appscope.txt; done | sort | uniq > candidates.txt

The contents of candidates.txt suggests that we need ensure that we have a "_chk version" of the following functions to libscope.so:
fgets
fgetws
fread
poll
ppoll
pread
pread64
read
recv
recvfrom

This then tells us which candidates of concern we already have in libscope.so:
for func in $(cat candidates.txt); do grep "__${func}_chk" appscope.txt; done

Which returned that we already have _chk functions for these:
__fgets_chk
__fgetws_chk
__fread_chk
__pread_chk

Which means by omission that these are the _chk functions that we need to add to libscope.so:
poll
ppoll
pread64
read
recv
recvfrom

I verified that we are interposing these new functions. In gdb you can see that we are hitting breakpoints in our wrap.c.
Thread 2.1 "a.out" hit Breakpoint 1, __poll_chk (fds=0x0, nfds=1, timeout=1, fdslen=1) at src/wrap.c:1854
Thread 2.1 "a.out" hit Breakpoint 1, __recvfrom_chk (sockfd=3, buf=0x555555558040 <buf>, len=512, buflen=512, flags=-1, src_addr=0x55555556f2b0, addrlen=0x555555555270 <__libc_csu_init>) at src/wrap.c:4796
Thread 2.1 "a.out" hit Breakpoint 1, __recv_chk (sockfd=3, buf=0x555555558040 <buf>, len=512, buflen=512, flags=-1) at src/wrap.c:4741
Thread 2.1 "a.out" hit Breakpoint 2, __pread64_chk (fd=3, buf=0x555555558040 <buf>, count=512, offset=512, bufsize=10) at src/wrap.c:2133
Thread 2.1 "a.out" hit Breakpoint 1, __read_chk (fd=3, buf=0x555555558040 <buf>, nbytes=512, buflen=512) at src/wrap.c:2200```

I compiled a test app that called these _chk functions directly, with `gcc -g -D_FORTIFY_SOURCE=2 -O2 my_app.c`


Fix: spelling mistake

What changed? Why?

fixes spelling mistake on /getstarted

Notes to reviewers
How has it been tested?

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1


smpte_offset frame rate at 25fps

Hi, I having some problem here with a frame rate set at 25.
My goal is to generate a midi file with markers that I can import in my daw (Pro tools).
With a frame rate set at 24fps PT recognize it at 24fps.
With a frame rate set at 25fps PT recognize a 30DF frame rate...
Value of smpte_offset @24 is: 0:0:0:0:0
Value of smpte_offset @25 is: 64:0:0:0:0  (shouldn't it be 32:0:0:0:0 ?)

Thanks anyway for your great work !

I found out a workaround.
I replace one byte in midi file generated with Mido. ('40' to '20' at address 0x1a.)
with file('Mido_25.mid', 'r+b') as fh:     fh.seek(0x1a)     fh.write(b'\x20')
See the problematic midi file (@25fps) in attachment and the corrected one.
Try to import in Protools both of them and check Session Setup...
I was able to find out a solution comparing with a midi file generated with Edimarker (free app that does the same job but only one file at a time.)
midifiles.zip
Have a good day !

It seems that Mido also interprets both SMPTE hour and frame rate incorrectly, when parsing meta messages from a MIDI file. According to the MIDI file standard, these two values are encoded into one byte in the SMPTE Offset meta message: first bit is zero, the next two bits are the coded frame rate, and the remaining 5 bits are SMPTE hour. Mido seems to always parse these values as 25 FPS and 33 hours, which are incorrect (SMPTE hours should be between 0 and 23 hours).

As an example, for a MIDI file with frame rate 30 fps, Mido message parser gives this:

As an example, for a MIDI file with a frame rate of 30 fps, Mido parser returns this:
meta message smpte_offset frame_rate=25 hours=33 minutes=0 seconds=0 frames=0 sub_frames=0 time=0

The bug seems to be in class MetaSpec_smpte_offset(MetaSpec):
def decode(self, message, data):
	message.frame_rate = _smpte_framerate_decode[(data[0] >> 6)]
	...

def encode(self, message):
	frame_rate_lookup = _smpte_framerate_encode[message.frame_rate] << 6
	...

The bit shifts above should be 5 bits, not 6.


xhr 200 result of an error

Hi all,
Well, I don't know why, but on my case I need to add this code in each options.error before the return:
if (xhr.status == 200) {
    return options.success();
}

Even if the request return 200 "OK", it goes on the error callback.
I'm testing this under a Phonegap serve, contacting a localhost webservice (Express with Node.js, REST routes respecting RESTful rules).
Maybe it trigger an error because I'm under "phonegap serve" and I know it proxy all requests.
If you want more information don't hesitate to ask me.
Know it works really great.
Kind regards,
Charles

Thanks Charles. What operations do you need this for? Both save and fetch? Is this a good example of what you're talking about?
someModel.save({}, error: function(xhr) {
  if (xhr.status == 200) {
    return options.success();
  }
});

Thanks Charles. What operations do you need this for? Both save and fetch? Is this a good example of what you're talking about?
var options = {
  success: function() {…},
  error: function(xhr) {
    if (xhr.status == 200) {
      return options.success();
    }
  }
};
someModel.save({}, options);

Hi nilbus,
I just found the root of this problem. My server (nodejs/express) was sending a res.sendStatus(200).
But res.json({}) is working well.
So why ?
For a put, if the Content-type is not application/json, it is considered as an error.
res.sendStatus respond with a Content-type: text/...
My bad.
(thanks to this thread: http://stackoverflow.com/questions/21181133/backbone-model-save-returning-error-while-server-sending-200ok )
Regards

Glad you got it sorted out


Server Error

Subject of the issue
The server wasn't responding and shows can't connect.
Your environment

3.6
Chrome
Android

Steps to reproduce
Expected behaviour
Must respond faster.
Actual behaviour
This isn't responding.

which was the URL ? and domain ?

no relevant info. closing.


Internationalization of the weekday parser.

This patch will make the weekday parser conform to that in the emacs org-mode.
This will allow parsing for non-English weekdays for most locales.
See TODO.org for remaining problems.

There remains a few flaws to this patch (I won't hide them :) ). As quoted from TODO.org
At the moment, parserWeekdayTests for some locales are not
supported, because in such locales the weekdays strings

contain characters that are not lexically correct as Haskell strings.
contain digits, which should also be rejected by emacs org-mode's parser.

see test/Weekdays.hs and test/Timestamps.hs .
Current test for parserWeekdayTests skips such cases. Whether or how
to support such locales are future work.

Thank you for the contribution Takayuki! I'm reviewing your pull-requests
tonight and if all is well, will merge them.
ᐧ
On Sat, May 9, 2015 at 2:59 AM, Takayuki Muranushi<EMAIL_ADDRESS>
wrote:

There remains a few flaws to this patch (I won't hide them :) ). As quoted
from TODO.org
At the moment, parserWeekdayTests for some locales are not
supported, because in such locales the weekdays strings

contain characters that are not lexically correct as Haskell strings.

contain digits, which should also be rejected by emacs org-mode's
parser.
see test/Weekdays.hs and test/Timestamps.hs .
Current test for parserWeekdayTests skips such cases. Whether or how
to support such locales are future work.
—
Reply to this email directly or view it on GitHub
https://github.com/digitalmentat/orgmode-parse/pull/6#issuecomment-100445055
.

--
Parnell Springmeyer
<EMAIL_ADDRESS>| digitalmentat.com | 0xDCCF89258EAD874A
http://pgp.mit.edu/pks/lookup?op=get&search=0xDCCF89258EAD874A

Nice, please take your time :smile:

Excellent PR Takayuki, thank you.


Fix Save CodeGenerators

Save Code generators need to differentiate between AutoValued Id fields and just-unique id fields while generating the insertion section of the procedure

It's been fixed in versions:
15c386b (tag: v1.2.1-b27-beta) Release version: 1.2.1-b27, Fri Sep 15 01:49:03 IRST 2023
26665a5 (tag: v1.3.0-b24-beta) Release version: 1.3.0-b24, Fri Sep 15 01:48:50 IRST 2023
bbbac88 (tag: v1.3.0-b27-beta) Release version: 1.3.0-b27, Fri Sep 15 01:48:40 IRST 2023
2e49cfd (tag: v1.2.0-b23-beta) Release version: 1.2.0-b23, Fri Sep 15 01:48:30 IRST 2023
dbd66c1 (tag: v1.2.4-b30-beta) Release version: 1.2.4-b30, Fri Sep 15 01:48:15 IRST 2023


Revert pandas

Thanks @Oddant1! Would you be able to rebase that SQUASH commit into the HACK (git rebase -i will let you do that)? I'd like to use rebase-and-merge to keep the revert commit independent.


Add ability to check import job status and cancel job through python SDK

Hi all,
As the import job is asynchronous, I cannot check whether the job has finished successfully or failed along the way through the python SDK. Cancelling running jobs is also not supported.
Therefore, I would like to propose these features in which we can:

Check the status of the job or start the job and wait for it to complete and get the result.
Cancel the running job.

One of the nice solution that I chance upon is the implementation in BigQuery load job python library:
https://googleapis.github.io/google-cloud-python/latest/bigquery/generated/google.cloud.bigquery.job.LoadJob.html
Thank you.

Thanks @gracechristina. Moving this to 0.4.0

This issue is now stale.


Improve client module user experience

The client module currently does not enforce the requirement of specific parameters to be present when called to perform Public API methods from HashStore.
To Do:

Refactor the if/else statements referencing the Public API to raise exceptions when parameters are missing (ex. getchecksum should require an -algo to be passed in addition to a -pid)

Currently, nothing happens when you call a client option like getchecksum and omit a required option

Additionally, it's not clear when retrieving objects/metadata that we have truncated the stdout to be the first 1000 bytes. Revise the print statements to show an additional string like <-- truncated for display purposes -->

This has been completed via Feature-63: Client User Experience


Automated cherry pick of #9502: fix(keystone): always upload&refresh service config whenever service …

Cherry pick of #9502 on release/3.6.
#9502: fix(keystone): always upload&refresh service config whenever service …

Codecov Report

Merging #9503 (97eb6e7) into release/3.6 (b9d30c0) will increase coverage by 10.63%.
The diff coverage is 3.29%.

@@               Coverage Diff                @@
##           release/3.6    #9503       +/-   ##
================================================
+ Coverage         5.86%   16.50%   +10.63%
================================================
  Files              828       87      -741
  Lines           129133     9120   -120013
================================================
- Hits              7577     1505     -6072
+ Misses          120876     7483   -113393
+ Partials           680      132      -548

Flag
Coverage Δ

aFlag
16.50% <3.29%> (+10.63%)
:arrow_up:

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

Impacted Files
Coverage Δ

pkg/apigateway/handler/auth.go
0.00% <0.00%> (ø)

pkg/monitor/alerting/conditions/nodataquery.go
0.72% <0.00%> (-0.27%)
:arrow_down:

pkg/monitor/alerting/conditions/query.go
0.00% <0.00%> (ø)

pkg/hostman/diskutils/nbd/driver.go
0.75% <0.75%> (ø)

pkg/hostman/diskutils/nbd/lvmutils.go
4.93% <4.93%> (ø)

pkg/mcclient/modules/monitor/suggestsysrule.go
100.00% <100.00%> (ø)

pkg/cloudcommon/policy/resources.go

pkg/monitor/alerting/result_handler.go

pkg/mcclient/options/dbinstance_skus.go

pkg/multicloud/esxi/ip.go

... and 643 more

Continue to review full report at Codecov.

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


Lint test directory files.

ran some tests will tests fully after review.

:+1:

rebased with linting branch, ready for a second :+1: ?

:+1:


Fix data race in error handling.

The response message must copied regardless of whether there was an
error or not, otherwise two concurrent queries may modify the response
as they write it out.
Thanks @Bplotka @kdima for their work on debugging this race.

+1
I think it is worth mentioning that in this case the fixed "error case" is actual a heavily used case to detect if the message is Truncated (in https://github.com/skynetservices/skydns/blob/master/server/stub.go#L106) and without this fix it very often causes a panic in (*Msg) Len() method.
Any reason why we don't always Copy the msg?

Nice one! Thanks for finding and fixing this


[SSR]  Development server that includes SSR.  (Roadblocked 🛑)

Is your feature request related to a problem? Please describe.
I am attempting to create a server-side rendered development server using Vite. Most everything is working except for one challenging issue.
When rendering HTML on the server, we need to use files generated by ssrBuild however this build takes around 20 seconds in my case and it prevents "live" development since each change would require a full run of ssrBuild (plus server restart)
Describe the solution you'd like
It should be possible to run ssrBuild with an incremental "watch" that regenerates the needed modules into the server "dist" folder. At least there should be a way to make this pluggable.
Describe alternatives you've considered
I looked at available way to create an ssrBuild that updates based on changes.
Additional context
SSR is a super important feature for enterprise applications and even applications like blogs, forums, etc... NOT for performance reasons, but rendered source and meta handling is very important for syndication and SEO.
In development, we need to validate hydration and insure proper fetching of data needed for rendering; therefore, using client side only in dev is a less than idea option (ultimately unworkable for big-boy apps)
@yyx990803 please give me some feedback, i know you're busy.

Please track here https://github.com/vitejs/vite/issues/1111


[Feature] Skip over existing downloads

Hi all, great work you've done here.
I recently found that when I try and download an existing dataset (an ARIA product in this case) the code errors out:
asf_search.exceptions.ASFDownloadError: File already exists: ~/products/S1-GUNW-A-R-004-tops-20210805_20210712-230647-37654N_35777N-PP-8a73-v2_0_4.nc
Previously the bulk downloader would just skip and continue, which is preferable if you were say updating a time-series and wanted to download just the newest acquisitions for some area. Perhaps there could be a way to specify in calls to download whether to skip, re-download, or error when hitting the same filename.

I hit this same problem. It would be great if it could not fail but maybe issue a warning and continue.

Fix is on its way, for now we'll just skip a download if the file exists, but in the future we'll add some options to validate files via checksums and/or sizes and re-download if they don't match, or to just forcibly re-download no matter what.
In any event, the new approach issues a UserWarning if the file exists but then happily skips the download and carries on. That should be available later today (12/9/21)

Thanks @glshort. That is a big help.

You're welcome, and sorry to @bbuzz31 for the delay!
Going to close this issue, but feel free to reach out if this doesn't get you both where you need to be.

You're welcome, and sorry to @bbuzz31 for the delay!
Going to close this issue, but feel free to reach out if this doesn't get you both where you need to be.

No problem, thanks a lot!


[WIP] Introduce IgnoredRuleset

What does this do / why do we need it?
This introduces a new type, IgnoredRuleset, which encapsulates both literal and wildcard ignores. It is swapped in in place of map[string]bool wherever we'd been using that previously.
(not quite done with this yet - only the gps parts done so far)
What should your reviewer look out for in this PR?
Correctness issues in the implementation itself, or sloppiness in the conversion.
Which issue(s) does this PR fix?
fixes #1264

Went through once and got the idea. Makes sense 👍 much better
I'll go through one more time tomorrow, if you don't merge it by then 😊

ok, putting this in so that we can get to the bits we care about, heh


Document ClusterPool troubleshooting

HIVE-2598

/assign @suhanime
/cc @deepsm007 @bear-redhat

/hold
/lgtm

/hold cancel
Co-reviewers, please review at your leisure. If you find anything that needs fixing, I'm happy to follow up.


Roles List in accessToken

I am working on a single sign on application that authenticates many other applications using a common database. My question is, how can I add roles to the accessToken and return it to the caller?
Currently when I decode my accessToken using https://jwt.io/, the payload is like this:
{
  "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "12",
  "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "08424721426",
  "http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider": "ASP.NET Identity",
  "AspNet.Identity.SecurityStamp": "c484ae9d-c6bd-4ddf-a0c0-9fe422160e7e",
  "http://www.aspnetboilerplate.com/identity/claims/tenantId": "1",
  "sub": "12",
  "jti": "1d1feea0-bba5-48f7-8a72-0e2038e475c5",
  "iat":<PHONE_NUMBER>,
  "nbf":<PHONE_NUMBER>,
  "exp":<PHONE_NUMBER>,
  "iss": "CRM",
  "aud": "CRM"
}

Thank you.

Are you using new Identity Server integration?

No I don't think so. This is my Web.MVC Startup class is like this:
public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            //MVC
            services.AddMvc(options =>
            {
                options.Filters.Add(new AutoValidateAntiforgeryTokenAttribute());
            });

            services.AddScoped<IWebResourceManager, WebResourceManager>();

            //Configure Abp and Dependency Injection
            return services.AddAbp<CRMWebMvcModule>(options =>
            {
                //Configure Log4Net logging
                options.IocManager.IocContainer.AddFacility<LoggingFacility>(
                    f => f.UseAbpLog4Net().WithConfig("log4net.config")
                );
            });
        }

So I guess not. I'm using Abp 1.5.1
Thank you

So, are you using TokenAuthController (https://github.com/aspnetboilerplate/module-zero-core-template/blob/master/aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Core/Controllers/TokenAuthController.cs) to generate tokens. If so, you can change here: https://github.com/aspnetboilerplate/module-zero-core-template/blob/master/aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Core/Controllers/TokenAuthController.cs#L212

Thank you. I initially thought so but wanted to verify. I have it working now thanks lots.


Statitstical Similarity - Multivariate:  PCA and Spearman-corellation comparisons (correlations)

Pairwise correlations between all numerical variables for input and synthetic data.

added in commit d5a4570e42964359bce5f3537d0c0bdd08cfc3cb
tested with commit 5837b5d51861a16a39685d6e9125b79ae7b0718a


[Bug]: this.params shows undefined in evaluated value

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When referencing params in a query, it shows undefined in the evaluated value
This should show similar to the way we do prepared statements
Steps To Reproduce

Create a query that reads this.params.key
View the evaluated value

Environment
Production
Version
Cloud

autocomplete doesn't work as well. investigating this.

@bharath31 I suggest we solve this with the application level actions project

Has there been any progress on this ?

@mohammedahmed18 we don't have any updates here. Did you face an issue with this recently?


Question about Androguard plans to update

Hello, I am trying to evaluate whether to use Androguard for a long term project. I wanted to ask if Androguard is still under active maintenance. The last update was in Nov 2020. Will Androguard be updated further or is it out of support ? Thanks.

take a look at this issue


feat: introduce askama as template

:tada: This PR is included in version 0.7.0 :tada:
The release is available on:

GitHub release
v0.7.0

Your semantic-release bot :package::rocket:


Cast int to int64 for arg to FormatInt, fixes #547

Fixes #547

Looks like there is a commit pushed for this fix in last PR, closing this PR.


Unknown plugin with webpack

I get this error when using this component with a webpack build: Unknown plugin "transform-object-rest-spread". It seems it depends on a deprecated version of babel's plugins or something.

 If you're just using ES6 imports or require(), this should never get referenced as it is just a dev dependency.

Yes, very strange that it’s somehow referencing that extension. I am
running a webpack dev environment for this. I’ve used the webpack-simple
Vue template project.
On Fri, 03 Nov 2017 at 20:15, Dave Williams<EMAIL_ADDRESS>wrote:

Are you trying to run this in a dev environment? If you're just using ES6
imports or require(), this should never get referenced as it is just a dev
dependency.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dzwillia/vue-simple-spinner/issues/10#issuecomment-341785592,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI-4I9p5tMFPwQg2Z5NhRRhtoWvbwcIcks5sy1grgaJpZM4QRPk_
.

Did you run npm install vue-simple-spinner or yarn add vue-simple-spinner? Once you've done that, you should be able to import or require vue-simple-spinner. You can follow the README at that point. That's what you would want to do to get going with it.

Same here - running npm run dev raises:
Unknown plugin "transform-runtime"
I could only get it working by removing that dependency from spinner's .babelrc

I'll look into this. I'm a bit miffed as to why this would be the case. If you've run npm install or yarn in the root folder, it should install this Babel plugin. If you look at line 40 of the package.json file, you'll see this: "babel-plugin-transform-runtime": "^6.23.0", so the plugin should be included.

Hi all,
I've cleaned up the babel dependencies (including removing the babel-runtime plugin) as of the v1.2.10 release. Please let me know if this resolves your issues.
Thanks much!
Dave.

I've cleaned this up and am going to close due to inactivity. Please let me know if there are any other issues.


sway: 0.9 -> 0.11

Motivation for this change
Requires cap_sys_ptrace in the latest release which requires https://github.com/NixOS/nixpkgs/pull/16654 to be merged.
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Has been already merged in https://github.com/NixOS/nixpkgs/pull/22835


Make sure proto is only required on proto tasks

@vmg and I needed to run make docker_base on our servers to build and push a custom docker image to our registry.
However, make was requiring protoc to be installed.
This changes the Makefile to only raise an error if protoc is not present inside the proto tasks.

forgot to cc @sougou

LGTM


disable multiproc on windows

Fix outlines_list function to:

Disable multiprocessing on Windows altogether. See:

#798
#808

Set a threshold of the number of masks to use multiprocessing

The default number of masks is set to 1000 to switch from regular to multiprocessing, but I've not tuned it.

[X] Tested on linux
[ ] Tested on Windows
[ ] Tune mask number threshold?

@carsen-stringer thoughts on setting the mask number threshold ?


Deduplicate conda-store in JupyterLab main menu

Reference Issues or PRs
Alleviates #2326.
For now the label is inherited from jupyterlab-conda-store ("Conda Store Package Manager"), although https://github.com/nebari-dev/nebari/issues/2326#issuecomment-2004535778 recommends using just "Environment Manager" or "Package Manager". This is because to change a label of a command we would need to modify JupyterLab (preferably) to allow overriding labels for menu items (which I will take a stab at a later date).
Before

"Services > Environment Management" coming from nebari and opening conda-store in a new tab:

"Conda-Store > Conda Store Package Manager" coming from jupyterlab-conda-store:

After

"Services > Conda Store Package Manager"

What does this implement/fix?
Put a x in the boxes that apply

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds a feature)
[ ] Breaking change (fix or feature that would cause existing features not to work as expected)
[ ] Documentation Update
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build related changes
[ ] Other (please describe):

Testing

[x] Did you test the pull request locally?
[ ] Did you add new tests?

this is used when the user opts for installing the extension what happens when the extension is not available?

The extension is included in the default docker image, so there is no opting-in. When extension is not available because user opts-out, the menu item is not show, but the other menu items are shown.
We could have it both ways: when extension is available, open it as a JupyterLab tab; when extension is not available open it in a new browser tab. I can make this work straightaway by adding some logic in jupyterlab-nebari-mode.

A dedicated logic (new command) in jupyterlab-nebari-mode would also allow to change the label so maybe it is desirable.

Done. I updated top-level issue. This now depends on https://github.com/nebari-dev/nebari-docker-images/pull/130. Tested locally with the new image. Recording:

Is this and https://github.com/nebari-dev/nebari-docker-images/pull/130 good to merge?


some modules cause waybar to overlap windows

Hello,
I can not seem to get waybar to respect my height settings, when I omit the "height" option in the config file, everything works fine but when I set it to some value, the bar seamingly stops shrinking after a while but the windows will still adjust to the height I set.

(You might want to click on the picture so it becomes more clear)
After some enabling and disabling of some modules I found that they wan't the bar not to be smaller than a certain size.
For example "sway/mode" and the "clock" module do this
My config file:
{     "layer": "top", 		"output": "DVI-D-1", 	"position": "top", 	"height": 25,     "modules-left": ["sway/workspaces", "sway/mode"] }
My style.css:
* {     font-family: Fira Code;     font-size: 13px;     min-height: 0; }

Some modules need a minimum height cause of font size, padding, ...
Check all of theses values :)

Hmm no, either I'm missing something or it's just broken, even when setting the the font size to an incredibly small size, the bar still won't resize.
but when starting waybar with the terminal I get this:
Requested height: 25 exceeds the minimum height: 36 required by the modules
I mean I get what it wants to tell me, but I don't understand why the modules require a certain size and don't just get smaller.

This is surely a theme pb, on my side with your configs the minimum height is 27 :/

I can make a configuration to disable the inheritance of the gtk theme but you will have to do more style to remove the default paddings

Starting wayber with GTK_Theme=Adwaita waybar does not seem to fix the issue.

I had most of my GTK programs improperly scaled (they were huge), which I didn't noticed because I mostly use the Terminal now.
It's not completly gone now, the clock still sets the min height to 19 on my second monitor, but setting GDK_DPI_SCALE=0.5 fixed both my GTK apps and waybar for me


High CPU consumption by process onemonitord when receiving malformed messages

Description
Upon receiving a malformed monitor message, onemonitord does not detect the error condition and an infinite loop occurs when the message is decompressed.
To Reproduce
Send an malformed monitor message to onemonitord.
Expected behavior
onemonitor process must detect the error condition and return.
Details

Affected Component: Monitoring
Hypervisor: all
Version: 5.12

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

Fixed for one-5.12 and master

Fixed for one-5.12 and master


Replace the removed getAnnotations() method with the utility

PHPUnit 9.5.0 dropped the getAnnotations() method, so this PR follows suit and uses the util directly instead.
https://github.com/sebastianbergmann/phpunit/commit/68582043e149039cfa3596b42ed35753dcf54fb2
Call to undefined method getAnnotations()

duplicate of #73

Thank you, @duncan3dc. I have merged #73 which should address this issue, and tagged v3.3.0.


Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[ ] iOS
[X] Android
[ ] UWP
[ ] watchOS
[ ] tvOS
[ ] Tizen
[ ] .NET Standard

Feature Library

[ ] Core
[ X] BluetoothLE
[ ] Beacons
[ ] Locations
[ ] HTTP Transfers
[ ] Notifications
[ ] Sensors

Version of Library
independent
Version of OS(s) listed above with issue
Starting with Android 8.0 (API 26)
Steps to Reproduce

Try to use the .WhenStatusChanged method

Expected Behavior
When switching Bluetooth On and Off on the phone, the handler should be called.
Actual Behavior
The handler is not called at all.
For details see: Documentation
I found no alternative to this yet :(

On the adapter or the device?  I don’t understand what isn’t working for you

And if you’ve found no alternative to this problem, what are you suggesting I do with this

Hm, I think this can be closed, I need to try on more adapters to be sure. Sorry.


Bump min Node.js version to 8

It would hopefully fix the linting job in CI.
Very small PR, I'm almost confused for the noise 😉

Thanks for doing this! Unfortunately, I made it unnecessary when I upgraded ember-cli.


Added workflow to publish temporary OCI releases from PR

Ceph ROCKs may need temporary releases to be provided as HOT-fixes. This workflow allows users to publish PR tagged ROCKs to GHCR so that they can be consumed before actually being merged into the repository. This also helps testing since tools (like cephadm and rook) need registry references to deploy ceph clusters.

Test Comment

/publish

@sabaini I have added description to the git commit, and the PR. The issue link associated to this PR can also be used to discuss this further.

Since the newly added workflow has a comment based trigger, this needs to go in main before it can be manually triggered.

lgtm, thanks


Errno::ECONNREFUSED when the publishing-api Makefile runs the setup_exchange Rake task

I'm trying to get the whitehall app set up for the first time on an M1 Mac, but I ran into the following error:
~/govuk/govuk-docker/exe/govuk-docker run publishing-api-lite bin/rake setup_exchange
docker-compose -f [...] run publishing-api-lite bin/rake setup_exchange
[+] Running 3/0
 ⠿ Container govuk-docker-postgres-13-1  Running                                                                               0.0s
 ⠿ Container govuk-docker-rabbitmq-1     Running                                                                               0.0s
 ⠿ Container govuk-docker-redis-1        Running                                                                               0.0s
W, [2023-03-20T14:44:17.712951 #1]  WARN -- #<Bunny::Session:0x1f798 guest@rabbitmq:5672, vhost=/, addresses=[rabbitmq:5672]>: Could not establish TCP connection to rabbitmq:5672: Connection refused - connect(2) for <IP_ADDRESS>:5672
rake aborted!
Bunny::TCPConnectionFailedForAllHosts: Could not establish TCP connection to any of the configured hosts
/govuk/publishing-api/lib/tasks/setup_exchange.rake:6:in `block in <main>'

Caused by:
Bunny::HostListDepleted: No more hosts to try in the supplied list of hosts
/govuk/publishing-api/lib/tasks/setup_exchange.rake:6:in `block in <main>'

Caused by:
Bunny::TCPConnectionFailed: Could not establish TCP connection to rabbitmq:5672: Connection refused - connect(2) for <IP_ADDRESS>:5672
/govuk/publishing-api/lib/tasks/setup_exchange.rake:6:in `block in <main>'

Caused by:
Errno::ECONNREFUSED: Connection refused - connect(2) for <IP_ADDRESS>:5672
/govuk/publishing-api/lib/tasks/setup_exchange.rake:6:in `block in <main>'
Tasks: TOP => setup_exchange
(See full trace by running task with --trace)
make: *** [publishing-api] Error 1

The error seems to be triggered by this line:
https://github.com/alphagov/publishing-api/blob/30dfc8355e957dd546c755af35322ca1ba4defb0/lib/tasks/setup_exchange.rake#L6
Which in turn was triggered by this line:
https://github.com/alphagov/govuk-docker/blob/6c45979af2e7d5a4e9aa7e50185dea2fcbf9072b/projects/publishing-api/Makefile#L5
Which in turn was ultimately triggered by me running the make whitehall.
I can't see anything relevant in the troubleshooting guide and, although there are some mentions of problems with M1 Macs in a couple of issues, none of them seem immediately relevant.
Can anyone help?

Just had a very quick look and I imagine there could have been a problem with the rabbitmq container for this to occur. I gave it a try on my M1 machine and was able to execute the command in isolation ok:

Output
➜  govuk-docker git:(main) govuk-docker run publishing-api-lite bin/rake --trace setup_exchange
docker-compose -f [...] run publishing-api-lite bin/rake --trace setup_exchange
WARN[0000] Found orphan containers ([govuk-docker_govuk-content-schemas-lite_run_18014c287c50 govuk-docker_govuk-content-schemas-lite_run_66d30b2a1d20 govuk-docker_govuk-content-schemas-lite_run_9918bdb0566d]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Running 3/0
 ⠿ Container govuk-docker-rabbitmq-1     Running                           0.0s
 ⠿ Container govuk-docker-postgres-13-1  Running                           0.0s
 ⠿ Container govuk-docker-redis-1        Running                           0.0s
** Invoke setup_exchange (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute setup_exchange

I'd suggest having a look at the health of the rabbitmq container. Some commands that might help are: govuk-docker ps to see which containers are running and govuk-docker logs rabbitmq.

FWIW I've seen this problem again this morning when building whitehall from scratch using make whitehall and I fixed it the same way.


Add support for alias to expect

From<EMAIL_ADDRESS>on November 15, 2013 14:28:37
given().
contentType(JSON).
body("{ "firstName" : ""+firstName+"", "lastName" : ""+lastName+"" }").
expect("Failed to create account").
statusCode(200).
when().
post("/accounts");
If this fails then what's written in the expect method should be visible in the error message
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=270

From<EMAIL_ADDRESS>on November 15, 2013 08:56:27
Summary: Add support for alias to expect  <span class="oldvalue"> (was: Add support alias to expect) </span>

From<EMAIL_ADDRESS>on November 20, 2013 00:27:15
Probably a bad idea, enough with test name
Status: WontFix


Module support

Hi, I added module support for AMD and module bundlers. I tested my changes with RequireJS (sample page included) and Webpack (working, however the code completion is not working).
I implemented the UMD like style inspired by platform.js. I made some changes for module bundlers specifically - I wanted that default exported module is browserReport() function. But library also exports named modules browserReport & browserReportSync. Example
import { browserReport, browserReportSync } from 'browser-report';

or sipmpler
import browserReport from 'browser-report';

Hope you integrate this, if yes, please publish package on NPM.
Cheers

Thank you for this work. I've wanted module support for a while now, but I have not had the time to work on it. I'd love to merge this pull request, however, there are some issues I'd like resolved.
Since you renamed the entry script, you broke the npm test script. Please update the test script in package.json, run npm test, and fix the issues reported.
I also won't accept pull request that mixes code changes and formatting changes in one request. I understand why you want to change the sample page from tabs to spaces, and I'm even ok with it, but that change needs to be in a separate commit.
Also, I'd like to export the browserReport() function with a sync() property like the node-glob library.
In your comment you mentioned UDM, so I expected the code to look like the last part of [returnExports.js][returnExpoerts.js], but it does not.
Lastly, I'd follow the lory.js pattern for module support. I especially like how they document installing with node, consuming it as an ES2015 module, consuming it as a commonJS module, and installing with bower. The CDN option is nice too.
I know this adds up to a lot of changes, but you inspired me to look into it and this is the direction I'd like to go.

Note, I know my whitespace was all over the place in this project, so I standardized on four spaces in a recent commit. Please rebase.

Hey, thanks for looking into it. I will update source soon. I wanted to preserve current coding style, but I think that my editor changed that upon saving file. I will be careful about that.

Hello,
I finished PR. I rebased on latest master. Then I addressed your thoughts:

all tests passing
code-style preserved
browserReport.sync added
follows returnExports.js from UMD

The last point - build & docs like lory.js is not addressed in this PR. I'm happy to refactor this library into modules which are then builded by Webpack2. But not this should by done in another PR.
Please let me know what you think. I will appreciate if you publish this to NPM.

Thank you! I appreciate your hard work. I don't have time to review this now, but I'll make time this week.

On Feb 8, 2017, at 5:51 AM, Srigi<EMAIL_ADDRESS>wrote:
Hello,
I finished PR. I rebased on latest master. Then I addressed your thoughts:
all tests passing
code-style preserved
browserReport.sync added
follows returnExports.js from UMD
The last point - build & docs like lory.js is not addressed in this PR. I'm happy to refactor this library into modules which are then builded by Webpack2. But not this should by done in another PR.
Please let me know what you think. I will appreciate if you publish this to NPM.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


Is 3D coordinate estimation supported?

Hi, wheather estimate the three-dimensional coordinate information point of each person?

The current codebase do not support 3D pose.  You can add a parallel depth estimation branch to build 3D framework.