Add various dummy functions from pg system catalog

Summary of the changes / Why this improves CrateDB
Add various dummy functions from pg system catalog
for improved compatibility with PostgreSQL. Those functions are largely coming from queries run by Datagrip and DBeaver, but might be relevant for other DB IDEs as well.

added pg_get_partkeydef() as a dummy function

returns null
although CrateDB has partioning it deviates slightly from how PostgreSQL partioning works. The function it self is only sparsely documented on PG side.

added  pg_catalog.pg_is_in_recovery()

returns always false.
that function is used for checking if a standby server is in recovery.

added pg_tablespace_location(t.oid)

returns an empty string
Shows the table location on the storage volume for a given table
This doesn't make too much sense for CrateDB, as tables are split in shards and can have various storage locations, depending on the node they are stored on. (i.e. data folder does not have to be the same on all nodes)

added pg_catalog.txid_current() - PR #12108

always returns 1
This is to be discussed if it might make sense to deviate from that. I expect transaction ids in Postgres to be unsigned

change quote_ident to be part of the pg_catalog table schema

otherwise queries like pg_catalog.quote_ident()fail. This should not change existing behaviour, as quote_ident() was not part of any namespace ?!

changed pg_get_expr to also accept a third parameter pretty. Doesn't change the actual behaviour of the function as it always returns null

Checklist

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

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

Jenkins failure related to case (expected lowercase false), alignment - https://jenkins.crate.io/blue/organizations/jenkins/CrateDB%2Fcrate_on_pr/detail/crate_on_pr/17048/pipeline

Hi @proddata, thanks for the bunch of improvements! Since functions return one dummy value for the sake of compatibility, we can simplify implementation by using UnaryScalar. Similar to QuoteIdentFunction but in this line return needed value - (false, 0L or something else)

I think we can simplify implementation by using UnaryScalar. Similar to QuoteIdentFunction but in this line return needed value - (false, 0L or something else)

I wasn't too sure about what way to go, as some of the newer "dummy" functions have been implemented
e.g. pg_get_expr or obj_description like that.

Another way is also fine, just more verbose.

I am still not a 100% confident if pg_catalog.txid_current() should return 1 or maybe null or 0 instead.
Also I just realised it has been deprecated in with pgsql 13 and up and been replaced by pg_current_xact_id

txid_current() sh

NULL is defo not an option, id is assigned if not exists (there are _if_assigned version of those functions for that)


Allow editing on cenetered and section-head cards

Just rename which fields show up.
In the mean-time, disallow editing on non content-cards.

Related to #206 which captures a newer way of doing this


New Terms and Conditions footer and checkbox

Tickets:

https://app.asana.com/0/1167196461144361/1202716358275341/f
https://app.asana.com/0/1167196461144361/1202716358275340/f

Screenshots:

New footer text

New terms and conditions text and checkbox on the initial account creation options page

Example of error text when the checkbox isn't selected

New terms and conditions checkbox on account settings edit page

@lund5000


apps sc: alertmanager HA

What this PR does / why we need it:
We should investigate what is needed to make Alertmanager highly available. Any single Node failure should not impact application or platform alerting. This is now done.
Which issue this PR fixes (use the format fixes #<issue number>(, fixes #<issue_number>, ...) to automatically close the issue when PR gets merged): fixes #856
Public facing documentation PR (if applicable)

Special notes for reviewer:
Add a screenshot or an example to illustrate the proposed solution:
Checklist:

[x] Added relevant notes to WIP-CHANGELOG.md
[x] Proper commit message prefix on all commits
[x] Updated the public facing documentation
Is this changeset backwards compatible for existing clusters? Applying:

[x] is completely transparent, will not impact the workload in any way.
[ ] requires running a migration script.
[ ] will create noticeable cluster degradation.
E.g. logs or metrics are not being collected or Kubernetes API server
will not be responding while upgrading.
[ ] requires draining and/or replacing nodes.
[ ] will change any APIs.
E.g. removes or changes any CK8S config options or Kubernetes APIs.
[ ] will break the cluster.
I.e. full cluster migration is required.

Chart checklist (pick exactly one):

[x] I upgraded no Chart.
[ ] I upgraded a Chart and determined that no migration steps are needed.
[ ] I upgraded a Chart and added migration steps.

Pipeline config (if applicable)
If you change some config options (e.g. add/rename variable or change the default value) you may need to update the config used by the pipeline in pipeline/config.

Double checked by @Xartos

Done!


gtk module compile error on OpenBSD 5.7

building Baresip on OpenBSD 5.7 fails in gtk.so module:
modules/gtk/gtk_mod.c: In function 'notify_incoming_call':
modules/gtk/gtk_mod.c:279: warning: implicit declaration of function 'g_notification_set_priority'
modules/gtk/gtk_mod.c:279: warning: nested extern declaration of 'g_notification_set_priority'
modules/gtk/gtk_mod.c:280: error: 'G_NOTIFICATION_PRIORITY_URGENT' undeclared (first use in this function)
modules/gtk/gtk_mod.c:280: error: (Each undeclared identifier is reported only once
modules/gtk/gtk_mod.c:280: error: for each function it appears in.)
modules/gtk/gtk_mod.c: In function 'gtk_thread':
modules/gtk/gtk_mod.c:591: warning: declaration of 'error' shadows a global declaration
include/baresip.h:387: warning: shadowed declaration is here
gmake: *** [build-x86_64/modules/gtk/gtk_mod.o] Error 1

@clehner could you have a look plz ? is the usage of
G_NOTIFICATION_PRIORITY_URGENT a portable API between all libgtk
implementations? can we avoid using this api, or using another portable api?

According to /usr/include/glib-2.0/gio/gnotification.h, g_notification_set_priority was added in GLib 2.42. I'm not too familiar with how OpenBSD does packaging/ports. If it carries an older version of GLib, perhaps a macro could be used to pick g_notification_set_urgent instead (which was deprecated in 2.42 in favor of g_notification_set_priority.

hmm, tried to fix it but now get an error on linux  :)
looks like OpenBSD is using GTK 2.24

What version of GLib (or GIO)? That is where GNotification is from. Perhaps gio-2.0 should be added to the pkgconfig command. Also, G_NOTIFICATION_PRIORITY_URGENT is an enum.

My mistake, the version check macro was wrong. Try GLIB_CHECK_VERSION(2,42,0)

ok! will try that soon

fixed in commit 52d1c338fa429ca4a37c0737190d1e6099af37a9
thanks @clehner !

Great!

Hi! I do have a very similar issue over Centos6. I could install properly re-0.4.15 and rem-0.4.7, however when I try to install baresip-0.4.18, the make returns the following error:


Update Homepage to align with DS starter updates

The homepage on the DS starter was updated. Chameleon needed to be updated to reflect this.

@KiriHoy awesome!
can we also run the following commands to get the latest versions of some of our compenents
rm -rf node_modules/
npm i

@KiriHoy awesome!
can we also run the following commands to get the latest versions of some of our compenents
rm -rf node_modules/
npm i

Also we probably have this problem in here as well ?
govau/design-system-starter#157

@sukhrajghuman The commands have been run. govau/design-system-starter#157 shouldn't be an issue, I carried everything across as it was in the starter.  So the header is sitting inside the correct col-md now, I fixed it when I updated the cta 😄

okay awesome!! merge!


Update intellij-idea-next-*-eap (2016.3 EAP) to build 163.7743.17

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

before_comma is preferred. Also, took the change tom fix name.

@vitorgalvao maybe we should add next in the name?

maybe we should add next in the name?

Yes, missed that.

Does anything else need doing here?

Does anything else need doing here?

Adding the next in the name. Mind doing that, @metyl?

No problem I can add next in the name.


card.io: appToken must be set prior to presenting the CardIOView.

Hi!
I have been thru the other issue that reported a similar behavior. But since that was with respect to the PayPal SDK, i have reported this as a new issue.
I downloaded the most recent release (v5.0.1) of the SDK and worked my way to integrate the functionality to present as a view controller in my application. The behavior is as follows -

ScanViewController presentation code is executed.
Before the view controller is presented, userDidCancelPaymentViewController method is called and i see the message on the console - "card.io: appToken must be set prior to presenting the CardIOView."
The ScanViewController is now presented.
any interaction with the presented view controller after this point results in an application crash.

I analyzed the header files and the options available and observe that appToken variable is not declared.
Requesting help on this.

@invmobiledev :

The PayPal iOS SDK contains its own copy of the card.io SDK. So if your project includes the PayPal iOS SDK, then you must not also add the card.io SDK to your project.

The error message regarding appToken implies that you have an old version of the card.io SDK somewhere in your project. appToken was removed in card.io 3.10.0.

I wonder whether your problem comes from including an old version of the PayPal iOS SDK in your project. You should update to the latest version of the PayPal iOS SDK.

@dgoldman-ebay As per your comment, i analyzed my project to check for older version of Card.IO.
Turns out, an older version was present in the resources(MiSnap SDK) which was causing this conflict.
Removing this made it work like a charm. Expiry Scanning works neatly.
Thank You!

Sounds great, @invmobiledev!


WIP: Enable a lot of lints

Coverage increased (+0.9%) to 82.743% when pulling c05e211e12cb06c85068796e8fa67cadf388accb on more_linting into bd139869e2809c4371928291387f3d68769f4f17 on master.

Coverage increased (+0.9%) to 82.743% when pulling<PHONE_NUMBER>f65cb818dc0b5aec5ddc5bfc88ebc8 on more_linting into bd139869e2809c4371928291387f3d68769f4f17 on master.

Coverage increased (+0.9%) to 82.743% when pulling<PHONE_NUMBER>f65cb818dc0b5aec5ddc5bfc88ebc8 on more_linting into bd139869e2809c4371928291387f3d68769f4f17 on master.

Coverage remained the same at 81.858% when pulling e7bd1341c067b9e6f1a3d1ee77472001889c18da on more_linting into 28dfb615c81587a4798b55dbdf769c253e0b9a2e on master.

Coverage remained the same at 81.858% when pulling e7bd1341c067b9e6f1a3d1ee77472001889c18da on more_linting into 28dfb615c81587a4798b55dbdf769c253e0b9a2e on master.

Looks like there's a CI failure: https://travis-ci.org/dart-lang/stagehand/jobs/278833848#L703

Coverage increased (+0.9%) to 82.743% when pulling b5b9d69d7f3c035b47e7e4adb40e8006379f4a9f on more_linting into 28dfb615c81587a4798b55dbdf769c253e0b9a2e on master.

Coverage increased (+0.9%) to 82.743% when pulling b5b9d69d7f3c035b47e7e4adb40e8006379f4a9f on more_linting into 28dfb615c81587a4798b55dbdf769c253e0b9a2e on master.

I'm curious where you're copying the lints options from, and if we should have a canonical recommended list for dart-lang/ projects.

👍
cc @filiph who has thought about this a bit too.
FWIW this file contains all the lints (and is sure to since there's a test that will fail the build if it doesn't).  Our thinking was that this directory (or some place similar) would be a reasonable place to stash canonical lint sets.

Coverage increased (+0.9%) to 82.743% when pulling f7dd790186cbb72f71b8e11481cf185f2091e980 on more_linting into 28dfb615c81587a4798b55dbdf769c253e0b9a2e on master.

@pq @devoncarew PTAL

Coverage increased (+0.9%) to 82.743% when pulling 5788c58f8ebed90c6c77e4ede45f6e442fea44cf on more_linting into 28dfb615c81587a4798b55dbdf769c253e0b9a2e on master.

Coverage increased (+0.9%) to 82.743% when pulling 5788c58f8ebed90c6c77e4ede45f6e442fea44cf on more_linting into 28dfb615c81587a4798b55dbdf769c253e0b9a2e on master.

lgtm


Migration flow for existing users (<=0.2.0 to redux-storage)

I've seen some buzz about this on a couple different issues/PRs recently so I figured I'd open an issue to serve as a central location to track intentions and determine the best implementation for this.
Any active users on any commit before 2e1c6661fbec443d72af15c36742bf232e8d5e40 (most notably the release candidates, which I imagine make up the majority of our userbase) will lose redux store entries for all existing projects upon upgrading. While this is relatively easy to sort out, it may be scary for inexperienced users - to avoid a panic, I think we should have a very clear flow for adding existing projects back to Guppy and notifying users why it's necessary.
I imagine this would take the form of a modal on first open after upgrading explaining the switch to redux-storage and how to correct it (import existing projects)

Yeah, this is a really good point.
Truthfully my assumption was that we have a small-enough userbase now, and it's in an alpha-enough state, that it would be OK to have those users re-add projects... but, it WOULD be a very jarring experience, and harmful to potential beginners, people we're trying to help with this project.
I don't actually know if it would be that hard to preserve that experience - if we don't rename the state key, it might actually work with minor (or no?) tweaks. I just assumed it would be problematic, but I haven't tested it. I'll give it a shot and see if it's feasible.
That way, we can try and preserve it, but also launch with a notice that says "We overhauled some things. If things are wonky or don't work properly, follow these instructions to reset your state and reimport projects".
I think a modal might be kind of tricky to implement, so I'd be OK adding this info to the release notes. I say that it's tricky because we'd have to find a way to check if the user was pre-existing (by seeing if the old state exists), AND that they've already seen this modal so that it doesn't pop up every time (by setting some new state). We probably should have a system for dismissible notifications (we have such a system at Khan Academy, so I have some ideas...) but that seems like a bigger task

Hah! that was it.
I think I can write a migration to fix this :D
On it.


[build-script] Add a really simple build scheduler that assumes/enforces a DAG build graph.

Some notes:

I am purposely trying to not do something too crazy here. My hope is that this
can tied us over until we can remove a bunch of build-script logic (after
build-script-impl is destroyed).

Given this need for simplicity, I purposely did something really simple: I
assumed the build-graph was a DAG. This makes it really easy to compute a
topological ordering just by computing RPOT numbers from POT numbers. That is
what I did in this implementation.

I haven't wired it up to anything and just added a simple test that shows how it
can properly infer from a toy dependency tree the dependencies of a "toy
swiftpm" project.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci test

Build failed
Swift Test OS X Platform
Git Sha - 9ded5517c3b3504a6c00549c5ae41c7a1cf29974

@swift-ci python lint

@swift-ci python lint

@swift-ci python lint

@swift-ci python lint

@swift-ci python lint

@swift-ci python lint

@swift-ci python lint

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test

Found a small error where I wasn't returning po_ordered_nodes after a refactor.

@swift-ci python lint

@swift-ci python lint

@swift-ci python lint

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test


Simplify Windows build

This PR includes several steps to simplify the build of MultiMarkdown under windows, largely by removing dependencies that are not necessary for building. Specifically, this:

Uses greg's CMake build system, removing Make as a required part of the build (before this, one step of the generated Visual Studio files would attempt to invoke greg's Makefile, which would run into issues if Make is not installed.)
Use wingetopt which is included as part of the greg build, as opposed to relying on the MINGW implementation.
Removes references to libgen.h, which are present in MINGW and POSIX, but not Windows. Instead, the Windows equivalent functions and definitions are used.
Using Window's strtok_s instead of strtok_r, which fixes a potential buffer overflow bug in Windows.

Using these changes, I'm able to build MultiMarkdown using the Visual Studio build system, without MINGW and Cygwin installed.

I'm going to have to think about this one.  I worry that it might cause too much divergence between Windows and non-Windows code.

I understand the need to consider for a bit - this took a fair bit of time for me to wrap my head around, and I'm certainly open to feedback if there are ways to make the contributions more streamlined.
At least three of the commits cause no divergence between the two platforms, and using greg's cmake build particularly simplifies the build system independent of making the build simpler under Windows. The rest came from attempting to build MMD for inclusion in a python module, where the build can be fully automated in a python command (see here).


Any technical reason why this is abandoned?

At least the libuv binding would be very useful. Why was it abandoned?

Not particularly, it was largely just becoming too much of a burden to update through the changes of Rust a long time ago.
That being said though this library is indeed not safe today due to the stable TLS API of the standard library. Thread-local-storage is possible to access concurrently with green threading, so that may be a technical reason unfortunately.


PDI-14364 In spoon, the Insert/update step’s “Edit mapping” leaves Update Y/N selection in Update/Insert Table empty.

Solution

Copied the update status of targets to a hashmap (Target as Key,
update status as value) from the wReturn during the existing map
generation
At the time of populate the wReturn, get the update status from the
hash map for the target and set the same.
If the Target is new and there is no update status, make “Y” as
default.

Why not Copy from Meta/Input?

If the user change the update status by keying/mouse selection, the
change is not updated to input until the “OK” event, so the wReturn
always has the latest value.

Thanks for accepting the fix.


INSTALL build does not work first time

tried it already few times. when I clone all source and run INSTALL project first time there is error unable to open opencv header.
then I run it again and it works.

first of all, there is no cloning of opencv
4>  Cloning into 'opencv'...
3>C:\XXKornisz\Documents\GitHub\PSMoveService\build\src\psmoveprotocol\PSMoveProtocol.pb.cc(6126): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
and later we have:
9>  AppStage_DistortionCalibration.cpp
9>C:\XXX\Documents\GitHub\PSMoveService\src\psmoveconfigtool\AppStage_DistortionCalibration.cpp(23): fatal error C1083: Cannot open include file: 'opencv2/opencv.hpp': No such file or directory
9>  AppStage_GyroscopeCalibration.cpp
9>c:\XXXdocuments\github\psmoveservice\src\psmoveconfigtool\GeometryUtility.h(9): fatal error C1083: Cannot open include file: 'opencv2/opencv.hpp': No such file or directory
9>  AppStage_HMDAccelerometerCalibration.cpp

You have to build the OpenCV sub-project first to get it to download the dependancies, then you can do a build all.
https://github.com/cboulay/PSMoveService/wiki/Building-from-source#build

Open <path_to_repo>\build\PSMoveService.sln
Change to "Release" configuration
Rt-click on the OpenCV External project and build
This will download OpenCV 3.1 into the /deps folder and compile it
Rt-click on the PSMoveService solution and build (or do a "Build All..." from the build menu)

Ideally the INSTALL setp would have the opencv sub project as a dependancy so you wouldn't have to do this extra step. But for the moment it is working as expected, it's just not as streamlined as it could be.


Add ListPreReleaseVersionsCommand

📝 Summary of Changes
Changes proposed in this pull request:

Resolves #102

⚠ Items of Note

Introduces a ListPreReleaseVersionCommand command.
Adds coverage gathering on unit tests
Depends on a fix to the AppStoreConnect SDK

🧐🗒 Reviewer Notes
I'm interested in feedback on the tests and the style of ListPreReleaseVersionsOperation.
💁 Example
$ swift run asc testflight prereleaseversion list
+------------+---------------------------------+-----------------------+----------+---------+
| App ID     | App Bundle ID                   | App Name              | Platform | Version |
+------------+---------------------------------+-----------------------+----------+---------+
|<PHONE_NUMBER> | com.example.ApplicationName     | Example App           | ios      | 1.0     |
+------------+---------------------------------+-----------------------+----------+---------+

When you specify a bundle ID that doesn't exist you get no results instead of an error.
$ swift run asc testflight prereleaseversion list --filter-bundle-id xcom.example
+--------+---------------+----------+----------+---------+
| App ID | App Bundle ID | App Name | Platform | Version |
+--------+---------------+----------+----------+---------+

+--------+---------------+----------+----------+---------+

🔨 How To Test
Run the command to list pre-release versions.  Try some of the filtering options.

I think we now have some differing approaches between this and #123 for which we might want to meet somewhere in the middle


Add AWS Foundational Security Best Practices EMR benchmark

Is your feature request related to a problem? Please describe.
I'd like to be able to run the EMR benchmark for the AWS Foundational Security Best Practices framework.
Describe the solution you'd like
Implement EMR benchmark.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Closed in https://github.com/turbot/steampipe-mod-aws-compliance/pull/160


[image_picker_android] Remove jetifier and enableUnitTestBinaryResources from gradle properties

Fixes https://github.com/flutter/flutter/issues/105182
Only Jetifier needs to be removed, but keeping enableUnitTestBinaryResources would print out:
> Configure project :image_picker_android
WARNING: The option setting 'android.enableUnitTestBinaryResources=true' is experimental and unsupported.
The current default is 'false'.

No version change: Only updates gradle properties for example app
No CHANGELOG change: Only updates gradle properties for example app
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[ ] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[ ] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

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

landing on red to fix tree


fix(isolated-declarations): should stripe async and generator keyword after transformed

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#3792
#3791
#3790  👈
#3789
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Dunqing and the rest of your teammates on  Graphite


Fix Keep consistent with MySQL & bug fix (#25669)

Bug fix: implicit convert from int32 -> int64 makes negative time stamp valid, so change signature to int64
Consistent: keep consistent with mysql.
pick https://github.com/apache/doris/pull/28669

run buildall


Only stay a finite time in the CS_SYN_RECV state

When an accepting socket receives a ST_SYN packet, it switches itself to CS_SYN_RECV state where it remains until it either receives a data packet or the socket is destroyed (possibly indefinitely).
I am not sure whether the user of libutp is expected to set up a timer to explicitly close such socket (if no data arrive), but given that it's not documented it seems that a default timeout would be appropriate.

Closing in favor of this one (same change, but dedicated branch)


Add Southfield, MI

To<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>SUBJECT: Southfield Resident for Defunding of SPD
To Mayor Siver, Southfield City Council and elected officials:
My name is [INSERT NAME HERE] and I am a resident of [INSERT CITY/NEIGHBORHOOD].  And during this past week our nation has come together to mourn, mobilize, and strategize the chokeholds of white supremacy in law enforcement.
Therefore, I am calling for a rapid and meaningful reconsideration of the role of law enforcement in the Southfield Community. In Southfield’s 19-20 FY budget, expenditures on Police vastly exceeded every other category at $45,764,271 allowing for more than half of the city’s expenditures to go towards policing. This is unacceptable for a city where 70.3% of it’s residents are Black and thus more likely to be criminalized, assaulted, and incarcerated by our own law enforcement.
As our city and neighboring ones alike, march and rally against the unjust murder of George Floyd, I am concerned that the proposed raise in the Police budget will have a negative affect on Black Southfield residents.
I call on you to disinvest the SPD budget for FY 21 and meaningfully reinvest funds into the community. Instead of feeding the disenfranchisement of Black lives, the reallocated funds must be put towards social supports such as affordable housing, quality education, mental health response teams and public health approaches to violence prevention. We must begin valuing and trusting those who live in the community, to know how to best protect our community.
The safest communities don’t have more police—they have more resources.
Sincerely,
[YOUR NAME] [YOUR ADDRESS] [YOUR EMAIL] [YOUR PHONE NUMBER]

Ready for pr

Hi there, thanks for your submission. I am a content reviewer, and wondering if you have a source for the $45.8m police budget you cite? Looks to me like it was $27m (35% of the budget--still egregious of course!)
source: https://www.cityofsouthfield.com/sites/default/files/2019-08/19-20-budget-resolution_final.pdf
I've edited for this, and some minor copy-editing, and unless you have a correction to this budget finding we can go ahead and publish.
To:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>SUBJECT: Southfield Resident for Defunding of SPD
To Mayor Siver and Southfield City Council,
My name is [INSERT NAME HERE] and I am a resident of [INSERT CITY/NEIGHBORHOOD]. For centuries, our nation has upheld and perpetuated persistent racist and oppressive policies against Black communities. And during this past week our nation has come together to mourn, and mobilize against the chokehold of white supremacy in law enforcement.
Therefore, I am calling for a rapid and meaningful reconsideration of the role of law enforcement in the Southfield community. In Southfield’s 19-20 FY budget, expenditures on Police vastly exceeded every other category at $26,774,810. This is unacceptable especially in a city where 70.3% of it’s residents are Black and thus more likely to be criminalized, assaulted, and incarcerated by our own law enforcement.
As we march and rally against the unjust murder of George Floyd, I am concerned that the proposed raise in the Police budget will have a negative affect on Black Southfield residents.
I call on you to divest from the SPD and meaningfully reinvest funds into the community. Instead of feeding the disenfranchisement of Black lives, the reallocated funds must be put towards social supports such as affordable housing, quality education, mental health response teams and public health approaches to violence prevention. We must begin valuing and trusting those who live in the community, to know how to best protect our community.
The safest communities don’t have more police—they have more resources.
Sincerely,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]

@averymcguirt Hi! Thank you for reviewing. Here is the source for the 45.8m budget:  https://www.cityofsouthfield.com/sites/default/files/2019-12/city-of-southfield-2019_projected-budget.pdf This number includes police and fire so your data is probably more accurate.

I'll put together a PR for this now.


Port testing to eth-tester

Add eth-tester
remove pyethereum dependency

Hopefully most of the work will just be in the testing config conftest.py 😄

In progress

addressed in #150


Feature/unit test eloquent static query

Coverage remained the same at 100.0% when pulling d2378acea1995e54ac0c6816d04a05cb6c410e3c on frjjkil2009:feature/unit-test-eloquent-static-query into 3f66593dbf2729bc7678c28acdeada0ad29cce6a on najs-framework:master.


#963 clarify documentation for read only permissions in monitoring UI

Fixes #963
Reminders

See the README for more details on how to work with the Rancher docs.

Verify if changes pertain to other versions of Rancher. If they do, finalize the edits on one version of the page, then apply the edits to the other versions.

If the pull request is dependent on an upcoming release, make sure to target the release branch instead of main.

Description

This updates a sentence and also removes some odd capitalization near the affected paragraph.
Comments

I do not have enough up-to-date knowledge about the monitoring + RBAC stuff,  so I resign it to @gunamata as the reviewer.

@gunamata or @gaktive
The doc currently states:

In order to access the Monitoring pane to get those links, the user must be a project member of at least one Project.

We know that read-only perms aren't sufficient. Are the links visible if the user has read-write perms on at least one project in the cluster?


Faster Merkle tree build and clean up

Summary

Make the Merkle tree build faster by caching all account codes to the database (we’ve only been caching account codes for multi-sig accounts).
Organize the format of hex-strings, mainly through a utility function formatHex.
Add .node-version (18.13.0) to let Render know which Node.js version to use.

If we don’t specify, Render will default to 14.17.0 which the spartan-ecdsa Poseidon hash function doesn’t work.

How to test

Create file merkle_tree/.env with the following content:

ALCHEMY_API_KEY={your alchemy api key}
ETHERSCAN_API_KEY={your etherscan api key}
DATABASE_URL=postgresql://nymdev:password@localhost:5432/nym

(API keys sent in Discord)

In the root of repo run:

Load cache to the database
pnpm i && pnpm -F merkle_tree populateCache

Build the Merkle tree
pnpm -F merkle_tree writeTree

this all makes sense to me!
over time, as things (like multisig code) that emerge into db caches may make sense to stick in some other type of data availability layer


no child app

i try to download the child app but the page gives a 404 error.

i try to download the child app but the page gives a 404 error.

hey hi @whitetornado  made the requested link public !
now child-app is submodule inside this repository, no need to go anywhere else !
and please do give a star if you like this project !
happy coding :)


Adding Godoc and go report card badges

I added two badges to the readme file.

Thanks for your contribution! Could you rename your commit message as Add Godoc and go report card badges?

@mbenford done!


Instrumenting a library with fixed bytes keys causes an error

Given the following sample:
contract Foo {
        mapping (bytes19 => address) m;
        /// #if_succeeds forall(bytes19 i in m) m[i] != address(0);
        function foo() public {}
}

We get the following exception:
Error: Unknown type bytes19 in getTypeDesc
    at getTypeDesc (/home/dimo/work/consensys/scribble/dist/instrumenter/utils.js:247:11)
    at generateMapLibrary (/home/dimo/work/consensys/scribble/dist/instrumenter/custom_maps_templates.js:209:48)
    at TypesToLibraryMap.makeNew (/home/dimo/work/consensys/scribble/dist/instrumenter/instrumentation_context.js:99:68)
    at TypesToLibraryMap.get (/home/dimo/work/consensys/scribble/dist/instrumenter/utils.js:213:24)
    at interposeMap (/home/dimo/work/consensys/scribble/dist/instrumenter/custom_maps.js:203:48)
    at instrumentFiles (/home/dimo/work/consensys/scribble/dist/bin/scribble.js:165:40)
    at /home/dimo/work/consensys/scribble/dist/bin/scribble.js:642:13

The root cause is that the case for fixed bytes is missing in the getTypeDesc function. Just add that and it works

Fixed in #268


thunderclient

Type: Bug
when i open thunderclient automatically crash
VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:43:07.605Z)
OS version: Linux x64 5.15.0-107-generic snap
Modes:

Hi @kvvsmurthy ,
Thank you for reaching VS Marketplace Team, we are investigating the issue and will get back to you with an update promptly.
Regards,
VS Marketplace Team

Hi @kvvsmurthy ,
We are unable to repro the issue, could you please share the more details like error message to investigate better.
Regards,
VS Marketplace Team

Hi @kvvsmurthy ,
Since we have not received any response from you, we are closing the issue. If the issue still persists, please reopen or create a new request.
Regards,
VS Marketplace Team


On behalf of workflow using Token from another app on the same tenant

AADSTS70002: Error validating credentials. AADSTS50013: Assertion audience does not match the Client app presenting the assertion. The audience in the assertion was 'abc' and the expected audience is 'def' or one of the Application Uris of this application with App ID 'def'.
Is this not a supported scenario?
I'm trying to implement a SSO where my API would accept a user accessToken from another app (same tenant) and then perform On-Behalf-Of requests.
Is this scenario not supported? Will it ever be?

@navyasric  can you help?

OK, so I believe I got this working by creating a scope for my WebAPI and then requesting token for that scope before it's passed to UserAssertion


Cannot use resque with namespace in Laravel 4.2

When I try use php-resque with Laravel 4.2, it's OK if I didn't use Model in resque
I have try
QUEUE=default APP_INCLUDE=app/queues.php php vendor/chrisboulton/php-resque/resque.php

Result:
PHP Fatal error:  Class 'Eloquent' not found in /home/luantv/work/app/models/User.php on line 4
PHP Stack trace:
PHP   1. {main}() /home/luantv/work/vendor/chrisboulton/php-resque/resque.php:0
PHP   2. require_once() /home/luantv/work/vendor/chrisboulton/php-resque/resque.php:32
PHP   3. include() /home/luantv/work/app/queues.php:6

app/queues.php
<?php

include 'models/User.php';
include 'services/BaseService.php';
include 'services/UserService.php';
include 'services/QueueService.php';
include 'services/GcmPushNotificationService.php';

models/Users.php
<?php

class User extends Eloquent
{
    //
}

Please help me!
Thanks!

Hi,
The APP_INCLUDE directive should be used to initialize your application in a way that it includes all of the necessary libraries for it to run - in the case of Laravel, this would be something specific to that which just sets up the framework (and includes Eloquent, etc) without trying to handle a web request.
You might be able to use something like this: https://github.com/ellisthedev/laravel-resque - it also seems to provide a console command (https://github.com/ellisthedev/laravel-resque/blob/master/src/Awellis13/Resque/Console/ListenCommand.php) for starting a worker, which you can either use or leverage for inspiration.

@chrisboulton thanks!
I need use priorities for queue, so if I use laravel-resque, can I use priorities of PHP-resque?

My solution:
app/queues.php
<?php
require __DIR__ . '/../bootstrap/autoload.php';
require_once __DIR__ . '/../bootstrap/start.php';

include 'models/User.php';
include 'services/BaseService.php';
include 'services/UserService.php';
include 'services/QueueService.php';
include 'services/GcmPushNotificationService.php';

And when need call something in model, I run a command of Laravel.


[Feature Request]: Improve Review Section with Stats and Feature to Upload images in Database

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
To improve the user experience in the review section, we need to add visual statistics and an option to upload images with reviews. This enhancement will allow users to get a quick overview of review patterns and provide more detailed feedback by attaching images. The changes will make the review section more informative and engaging for users.
Example

Use Case

Enhanced User Engagement: Allowing image uploads with reviews adds visual context, making feedback more relatable and engaging for other users.

Improved Insight: Review statistics provide quick insights into product or service performance, helping both users and admins make informed decisions.

Better User Trust: The ability to upload images builds credibility, allowing users to see real-world examples and fostering trust in reviews.

Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

donot create uploading pictures option as of now..just comment that part in code... @IkkiOcean


Error while installing dlib

Hey, I got this issue while installing dlib.
Kindly, have a look and let me what to do now!
Thanks in advance.
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\BHEEMIREDDY VAMSI\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"'; file='"'"'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-wheel-f2i2aeom' --python-tag cp37
cwd: C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib
Complete output (53 lines):
running bdist_wheel
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\site-packages\setuptools_init_.py", line 145, in setup
return distutils.core.setup(attrs)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
self.run_command('build')
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 125, in get_cmake_version
"\n*****************************************************************\n")
RuntimeError:

CMake must be installed to build the following extensions: dlib

ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, opencv-python, scipy
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\BHEEMIREDDY VAMSI\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"'; file='"'"'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-record-zwr430fz\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib
Complete output (55 lines):
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 261, in <module>
    'Topic :: Software Development',
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 129, in run
    cmake_version = self.get_cmake_version()
  File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 125, in get_cmake_version
    "\n*******************************************************************\n")
RuntimeError:
*******************************************************************
 CMake must be installed to build the following extensions: dlib
*******************************************************************

----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Users\BHEEMIREDDY VAMSI\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"'; file='"'"'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-record-zwr430fz\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

Hi, you need to install CMake and add its directory to the path environment variable: https://cmake.org/install/

@saimj7  While running on input video, I am getting this error. And it works fine with laptop webcam.
Kindly, look into this and let me know.
Thanks in advance.
(env_vamsi) C:\Users\BHEEMIREDDY VAMSI\Desktop\Main-Project>python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4
[INFO] Starting the video..
[ERROR:0] global C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-m8us58q4\opencv\modules\videoio\src\cap.cpp (162) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.5.2) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-m8us58q4\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file):   in function 'cv::icvExtractPattern'

Can you install the requirements as in requirements.txt?

version of opencv-python is <IP_ADDRESS>
but while trying to install version of <IP_ADDRESS> it results in error! refer below picture
(env_vamsi) C:\Users\BHEEMIREDDY VAMSI\Desktop\Main-Project>pip install opencv-python==<IP_ADDRESS>
ERROR: Could not find a version that satisfies the requirement opencv-python==<IP_ADDRESS> (from versions: <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>)
ERROR: No matching distribution found for opencv-python==<IP_ADDRESS>

Weird, I'm able to install it again, are you using anaconda?

Yes :( Initially I tried using cmd, but I got errors then I tried in Anaconda. Kindly help me na!

Yes, now I installed all requirements as per requirements file but I am got this error while running on video input.
P.S: Running using cmd
Python version 3.7.4
C:\Users\BHEEMIREDDY VAMSI\Desktop\Main-Project>python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4
[INFO] Starting the video..
[ERROR:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap.cpp (116) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file):   in function 'cv::icvExtractPattern'

Let's try to break it down, did you install ffmpeg on windows? Also, did you build OpenCV from scratch?

I installed ffmpeg using this command pip install python-ffmpeg
No, I did not OpenCV from scratch

Download ffmpeg https://ffmpeg.org/download.html and add its directory to the path.

Done Installed ffmpeg and added to environmental variables.
P.S : Again same error.

Can you install python and the requirements using anaconda? E.g., https://medium.com/@GalarnykMichael/install-python-anaconda-on-windows-2020-f8e188f9a63d

Yes, bro. Did that. Let me summarize what I did so far!

Tried in cmd with python version 3.7.4, installed all requirements.
Tried in anaconda with python version 3.7.4, installed all requirements.

PS : It is working fine for Webcam.

Can you try this in anaconda? Create a new environment, do conda insall pip and then: pip install dlib==19.22.0 imutils==0.5.4 numpy==1.20.3 opencv-python==<IP_ADDRESS> schedule==0.6.0 scipy==1.6.3. Python version would be 3.9.5 by default.

Sir, I did everything. In last conversation you said building the opencv from scratch. How can I do that?
I tried above packages installation on both cmd and anaconda. Got the same error. Something with my OpenCv tobe specific while extracting the patterns. Kindly, go through the below error.
C:\Users\BHEEMIREDDY VAMSI\Desktop\Main-Project>python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4
[INFO] Starting the video..
[ERROR:0] global C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-m8us58q4\opencv\modules\videoio\src\cap.cpp (162) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.5.2) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-m8us58q4\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file):   in function 'cv::icvExtractPattern'

Did you create a new Conda environment and do you find the file opencv_videoio_ffmpeg452_64.dll?

No, sir. I couldn't found any such file.  How can do it.?

Can I test this myself? Please email me.


Feature request: option to include untracked files with Git: Stash command

VSCode Version: 1.16.1
OS Version: MacOS 10.12.6

This is a feature request.
I typically use "git stash -u" when stashing from the command line, but I don't think the git extension's current stash implementation supports stashing untracked files.  This would be really convenient either as a setting (could probably support various flags this way) or as a separate command.

PR? :+1:

I could give this a try, if no one is already working on it

Fixed by https://github.com/Microsoft/vscode/pull/34674
Thanks @raouldc!


devel -> main cis 2.0.1

Overall Review of Changes:
V2.0 based upon CIS 2.0.1

v2.0.1 - refer to change history from official CIS pdf.

ReWrite of many rules
Ordering and numbering of rules
many title updates

timesync options increased

default systemd-timesyncd
chrony options updated

idempotency improvements

new discoveries

interactive users
uid min value
is_container discovery and default var

pre-commit added to setup

README new layout

lint updates

Added test for rule 4.3.4 check user is using sudo has password set before NOPASSWD removed from sudoers

How has this been tested?:
Manually and pipeline

Note that workflow will fail as file no longer exist for the legacy setup


JS - UnusedPrivateMember: unused parameter in constructor of external classes

Expected Behavior
No issue
Observed Behavior
untitled9/src/main/kotlin/Foo.kt:3:20: Private property foo is unused. [UnusedPrivateMember]
Steps to Reproduce
@JsModule("foo")
@JsNonModule
external class Foo(foo: String)

./gradlew detekt
Context
I want to use an external class from a npm module.
Tidbit
I added this test to UnusedPrivateMemberSpec, which does not trigger an issue. Maybe the issue is JS specific, and the test uses JVM, doesn't it?
@Test
fun `should not report constructor parameters in external classes`() {
    val code = """
        external class Foo(foo: String)
    """
    assertThat(subject.lint(code).isEmpty())
}

Your Environment

Version of detekt used: 1.20
Version of Gradle used (if applicable): 7.4.2
Gradle scan link (add --scan option when running the gradle task):
Operating System and version: macOS 12
Link to your project (if it's a public repository): untitled9.zip

I'm not sure what's going on here. I can clearly see that the rule has logic to handle external function:
https://github.com/detekt/detekt/blob/9146e4d1f65034e45edd017b8e2dc0d84062fc8f/detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UnusedPrivateMember.kt#L271-L273
The JS annotations are not relevant for the sake of this inspection.

I added this test to UnusedPrivateMemberSpec, which does not trigger an issue. Maybe the issue is JS specific, and the test uses JVM, doesn't it?

Would you be fine adding this test case to the detekt codebase?

Yes, I saw the logic too.
I simple added the test but this didn't work, the test succeeded. Don't know, what is wrong.

It might be that you're not running with type resolution

Yeah, type resolution is only supported on the JVM, isn't it?

Yeah that's correct 🤔 Still this section on the rule should be fine with just syntax-level rule. It's still worth investigating what's going on.

still relevant

Parameters of external class constructors still flagged on 1.22.0.


Error after copying links to consent URI

I receive the following error after accepting the links in both the source and destination tenants in the SetupCrossTenantRelationsForTargetTenant script and then pressing enter on the powershell.
Send-AdminConsentUri : Could not retrieve a token for invitation manager api call
At C:\Scripts\Migration\SetupCrossTenantRelationshipForTargetTenant.ps1:217 char:9
It appears to be failing to send the e-mail. I have MFA setup on the account being used to set this up.

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

ID: c61c960c-f5c3-76f7-ac18-dfeaf30230e4
Version Independent ID: 3dc607b2-869e-976f-80da-d73cfb1210e5
Content: Cross-tenant mailbox migration - Microsoft 365 Enterprise
Content Source: microsoft-365/enterprise/cross-tenant-mailbox-migration.md
Product: microsoft-365-enterprise
GitHub Login: @JoeDavies-MSFT
Microsoft Alias: josephd

The issue was that I was connecting to Azure AD before running the script. This caused the e-mail to not send for some reason. Annoyingly, the e-mail not sending should not be a cause for the script to bomb out, as the link given before this failure includes what is in the e-mail. Thus the link in the e-mail is redudent. Recommend the error be changed to "e-mail not sent, please give second link above to source tenant admin" and then continue with the script.
I would also recommend user script be given for online only users. The current script shown on the page for on-prem users is not relevant for the settings required. The scripts on the page also do not copy properly into Notepad++ for example.

The issue was that I was connecting to Azure AD before running the script. This caused the e-mail to not send for some reason. Annoyingly, the e-mail not sending should not be a cause for the script to bomb out, as the link given before this failure includes what is in the e-mail. Thus the link in the e-mail is redudent. Recommend the error be changed to "e-mail not sent, please give second link above to source tenant admin" and then continue with the script.
I would also recommend user script be given for online only users. The current script shown on the page for on-prem users is not relevant for the settings required. The scripts on the page also do not copy properly into Notepad++ for example.

@StuBeck32 Thank you for your feedback. I'm testing this currently and will update accordingly.
Thanks
Sri

@StuBeck32 Thank you for your feedback. I'm testing this currently and will update accordingly.
Thanks
Sri

@StuBeck32 Thank you for your feedback. I tested the script on two test tenants and it seems to work as described in the document. However, I see your recommendation about the errors and that makes sense to continue with the script without bombing out. Please note that this is still in preview and once this goes live you will see a better mechanism of handling errors.
As mentioned, in the document there are a few known issues and one among that is When msExchRemoteRecipientType is set to 8 (DeprovisionMailbox), for on-premises MailUsers that are migrated to the target tenant, the proxy scrubbing logic in Azure will remove nonowned domains and reset the primarySMTP to an owned domain. By clearing msExchRemoteRecipientType in the on-premises MailUser, the proxy scrub logic no longer applies.
Hope this helps!
CC : @JoeDavies-MSFT
Thanks
Sri

@StuBeck32 Thank you for your feedback. I tested the script on two test tenants and it seems to work as described in the document. However, I see your recommendation about the errors and that makes sense to continue with the script without bombing out. Please note that this is still in preview and once this goes live you will see a better mechanism of handling errors.
As mentioned, in the document there are a few known issues and one among that is When msExchRemoteRecipientType is set to 8 (DeprovisionMailbox), for on-premises MailUsers that are migrated to the target tenant, the proxy scrubbing logic in Azure will remove nonowned domains and reset the primarySMTP to an owned domain. By clearing msExchRemoteRecipientType in the on-premises MailUser, the proxy scrub logic no longer applies.
Hope this helps!
CC : @JoeDavies-MSFT
Thanks
Sri

Just to clarify, the first script issue was when you are already connected to AzureAD through powershell, it doesn't run the rest of the script. Did you test that?
I'd also recommend putting instructions for cloud only users.

From: Sriraman M S<EMAIL_ADDRESS>Sent: Wednesday, January 13, 2021 12:46 PM
To: MicrosoftDocs/microsoft-365-docs<EMAIL_ADDRESS>Cc: StuBeck32<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/microsoft-365-docs] Error after copying links to consent URI (#3836)
@StuBeck32https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FStuBeck32&data=04|01||bffa5a8570f54e10b2db08d8b7eb2b83|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637461567957540058|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=hL2lEHvDgGui3ZcZU61y7cYPhYVTk7pIgiqQNAS35Jo%3D&reserved=0 Thank you for your feedback. I tested the script on two test tenants and it seems to work as described in the document. However, I see your recommendation about the errors and that makes sense to continue with the script without bombing out. Please note that this is still in preview and once this goes live you will see a better mechanism of handling errors.
As mentioned, in the document there are a few known issues and one among that is When msExchRemoteRecipientType is set to 8 (DeprovisionMailbox), for on-premises MailUsers that are migrated to the target tenant, the proxy scrubbing logic in Azure will remove nonowned domains and reset the primarySMTP to an owned domain. By clearing msExchRemoteRecipientType in the on-premises MailUser, the proxy scrub logic no longer applies.
Hope this helps!
CC : @JoeDavies-MSFThttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJoeDavies-MSFT&data=04|01||bffa5a8570f54e10b2db08d8b7eb2b83|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637461567957540058|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=E4fK%2FUT3knwqSOkhWyGJ8RFaJ93at%2FDkln8NndFWslg%3D&reserved=0
Thanks
Sri
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmicrosoft-365-docs%2Fissues%2F3836%23issuecomment-759611323&data=04|01||bffa5a8570f54e10b2db08d8b7eb2b83|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637461567957550049|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=qOqmcQeaBSNa2NP4SwnNrnldjpN7IKHVxUGtjy2z25Q%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAK5FPN24GRLYVXFNQLZQNHTSZXL7VANCNFSM4VVJU6ZQ&data=04|01||bffa5a8570f54e10b2db08d8b7eb2b83|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637461567957550049|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=%2FGc8M48Ct7%2B514YfdOZBsNkpJfrICdjPYr2UAfe1DmA%3D&reserved=0.

Just to clarify, the first script issue was when you are already connected to AzureAD through powershell, it doesn't run the rest of the script. Did you test that?
I'd also recommend putting instructions for cloud only users.

From: Sriraman M S<EMAIL_ADDRESS>Sent: Wednesday, January 13, 2021 12:46 PM
To: MicrosoftDocs/microsoft-365-docs<EMAIL_ADDRESS>Cc: StuBeck32<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/microsoft-365-docs] Error after copying links to consent URI (#3836)
@StuBeck32https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FStuBeck32&data=04|01||bffa5a8570f54e10b2db08d8b7eb2b83|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637461567957540058|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=hL2lEHvDgGui3ZcZU61y7cYPhYVTk7pIgiqQNAS35Jo%3D&reserved=0 Thank you for your feedback. I tested the script on two test tenants and it seems to work as described in the document. However, I see your recommendation about the errors and that makes sense to continue with the script without bombing out. Please note that this is still in preview and once this goes live you will see a better mechanism of handling errors.
As mentioned, in the document there are a few known issues and one among that is When msExchRemoteRecipientType is set to 8 (DeprovisionMailbox), for on-premises MailUsers that are migrated to the target tenant, the proxy scrubbing logic in Azure will remove nonowned domains and reset the primarySMTP to an owned domain. By clearing msExchRemoteRecipientType in the on-premises MailUser, the proxy scrub logic no longer applies.
Hope this helps!
CC : @JoeDavies-MSFThttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJoeDavies-MSFT&data=04|01||bffa5a8570f54e10b2db08d8b7eb2b83|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637461567957540058|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=E4fK%2FUT3knwqSOkhWyGJ8RFaJ93at%2FDkln8NndFWslg%3D&reserved=0
Thanks
Sri
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmicrosoft-365-docs%2Fissues%2F3836%23issuecomment-759611323&data=04|01||bffa5a8570f54e10b2db08d8b7eb2b83|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637461567957550049|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=qOqmcQeaBSNa2NP4SwnNrnldjpN7IKHVxUGtjy2z25Q%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAK5FPN24GRLYVXFNQLZQNHTSZXL7VANCNFSM4VVJU6ZQ&data=04|01||bffa5a8570f54e10b2db08d8b7eb2b83|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637461567957550049|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=%2FGc8M48Ct7%2B514YfdOZBsNkpJfrICdjPYr2UAfe1DmA%3D&reserved=0.

@StuBeck32 I did not. As I  Create a Remote PowerShell connection to the source/Target tenant with your Exchange Administrator permissions.

@StuBeck32 I did not. As I  Create a Remote PowerShell connection to the source/Target tenant with your Exchange Administrator permissions.

@yogkumgit There are no changes required in this document and the issue can be closed.
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @StuBeck32 Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

After running the script, the error below appears:
Send-AdminConsentUri : Could not retrieve a token for invitation manager api call
No D:\Downloads\cross-tenant\SetupCrossTenantRelationshipForTargetTenant.ps1:278 caractere:9

    Send-AdminConsentUri $TargetTenantDomain $ResourceTenantDomai ...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Send-AdminConsentUri

Has anyone experienced this error?


nixos/yubikey-agent: Add dependency to pcsd.service

Description of changes
Issue: after installing, running yubikey-agent -setup produces the following error: nixOS: Failed to connect to the YubiKey: connecting to pscs: the Smart card resource manager is not running More on this issue: https://github.com/FiloSottile/yubikey-agent/issues/137
Not sure if this is the best way to add a dependency to a service tho - open for input.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Tested on 2 nixos systems and this resolves the issue.

Tested and working.  I was able to build this PR and yubikey-agent --setup worked as expected.

The commit message should begin with nixos/yubikey-agent: ... to indicate this is a module update.

@NickCao thanks, done. Let me know if updating the PR title is enough or should I rebase & squash with that commit message

You should amend the commit message.

Thank you!

@NickCao sorry for the delay, done. Please double check


Client should push migrations in small batches

Describe the bug
When the client pushes a very large schema (i.e. xata schema upload with >30 tables) it is prone to hitting gateway timeout.
Migrations or schema update operations should be pushed in iterative batches, with a best practice size of no more than 10 operations per request.
Relates to internal issue https://github.com/xataio/xata/issues/3353

The ~10 operations is a limitation on the backend with synchronous schema changes. With the integration of pgroll we will be able to do async schema changes, and this won't be an issue.
We cannot chunk the schema, as dependencies should be ordered (for example links, or circular refs). So we won't attempt to fix it client side, and instead wait for the new APIs to land.

The idea would be to not push all migration files at once. e.g. only apply up to 10 files per API call. The files should not be split up into operations. But right now if users push many files with many tables in them then the gateway will timeout the operation.

@urso For this command, we are doing:
    const { edits } = await xata.api.migrations.compareBranchWithUserSchema({
      workspace,
      region,
      database,
      branch,
      schema
    });

    await xata.api.migrations.applyBranchSchemaEdit({ workspace, region, database, branch, edits });

So it's very tricky to try to manipulate the backend suggested edits.

I see.


Spamming in channel

When i Play song bot spam in channel like added to queue and Playing
how to fix ?

Remove the player events from discord events.

also song not playing
why

I have the same problem I put the events outside of the 'messageCreate' event but now I wont send the embeds


fixes issue#89

fixes issuehttps://github.com/opensds/opensds-dashboard/issues/89

@wisererik @leonwanghui


DTD for Vis

Any chance we can get content assist for Vis UI elements?
I tried generating a schema using VisLml.parser() but no Vis UI elements are included in the DTD file.
I do get the following warnings:
LML: Warning: unable to create an instance of actor mapped to 'imagetextbutton' tag name with provider: com.github.czyzby.lml.parser.impl.tag.actor.provider.ImageTextButtonLmlTagProvider@7c83dc97. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'imagebutton' tag name with provider: com.github.czyzby.lml.parser.impl.tag.actor.provider.ImageButtonLmlTagProvider@2f54a33d. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: '/*' tag might contain invalid XML characters.

It works with gdx-lml-vis, but you probably used the wrong syntax class. gdx-lml uses DefaultLmlSyntax, gdx-lml-vis uses VisLmlSyntax. If you want to replace the macro sign to generate valid XML, use this:
        new VisLmlSyntax() {
            @Override
            public char getMacroMarker() {
                return ':';
            }
        }

Anyway, I plan on replacing the default macro sign in LML 1.6 (the next version), but this is a lot of work: while the code itself requires just a single character replacement (sic), a huge number of docs and examples has to be updated.

Yes, you were right that I was using DefaultLmlSyntax. Macros work fine now, but I get the following errors generating the dtd:
LML: Warning: unable to create an instance of actor mapped to 'validate' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.CustomValidatorLmlTagProvider@55536d9e. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'greaterthanvalidator' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.GreaterThanValidatorLmlTagProvider@62230c58. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'notempty' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.NotEmptyValidatorLmlTagProvider@57af006c. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'notemptyvalidator' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.NotEmptyValidatorLmlTagProvider@57af006c. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'intvalidator' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.IntegerValidatorLmlTagProvider@6404f418. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'lesserthanvalidator' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.LesserThanValidatorLmlTagProvider@729d991e. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'integervalidator' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.IntegerValidatorLmlTagProvider@6404f418. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'isinteger' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.IntegerValidatorLmlTagProvider@6404f418. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'isfloat' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.FloatValidatorLmlTagProvider@51e69659. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'floatvalidator' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.FloatValidatorLmlTagProvider@51e69659. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'isnotempty' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.NotEmptyValidatorLmlTagProvider@57af006c. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'isint' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.IntegerValidatorLmlTagProvider@6404f418. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'validator' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.CustomValidatorLmlTagProvider@55536d9e. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'tab' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.TabLmlTagProvider@5d534f5d. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'customvalidator' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.CustomValidatorLmlTagProvider@55536d9e. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'greaterthan' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.GreaterThanValidatorLmlTagProvider@62230c58. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'nonempty' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.NotEmptyValidatorLmlTagProvider@57af006c. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: unable to create an instance of actor mapped to 'lesserthan' tag name with provider: com.github.czyzby.lml.vis.parser.impl.tag.provider.validator.LesserThanValidatorLmlTagProvider@729d991e. Attributes list will not be complete. Is the provider properly implemented? Is a default style provided for the selected actor?
LML: Warning: '/*' tag might contain invalid XML characters.

But other than this, I'm certain I'm doing something else wrong. When I enter:
<?xml version="1.0"?>
<!DOCTYPE table SYSTEM "lml.dtd">

to the top of the lml file, I get a blank screen and no errors. Any idea what might cause this?
Btw, let me know if you have a preferred way for this kind of questions other than github issues.

GitHub issues are fine.
You get the warnings, because DTD creator is unable to create Actor instances for the selected tags. This is expected: some tags are not actually actors (most are validators, actually) and don't create Actor instances at all. This is OK - they will be still added to the DTD file, but without the list of their specific attributes. You can always add them manually if you ever feel the need to use any of the listed tags.
/* was an unfortunate alias for comment macro. It will be removed in 1.6.
Your XML headers are OK. This is probably an issue with your IDE. Eclipse is a bit rusty when it comes to DTD, IntelliJ handles DTD files much better.
By the way - if you generated your DTD file with : as macro sign instead of @, remember to A) use macros proceeded with : in LML templates (this is obvious), B) update syntax object in your actual application, as the LmlParser will not be able to process your templates if you don't tell it you changed the syntax.

I am using IntelliJ actually. It recognizes the <!ELEMENT ..s properly and gives me suggestions when I type <, but does not recognize any attribute.
I get the same result using the lml-vis1_6.dtd file you just uploaded.
See attached image:

I also registered *.lml as an XML file type in Settings->Editor->File Types.
In any case, simply removing the XML header makes it all show up, I'm assuming LmlParser is having some trouble with it.

Have you tried using quotations? http://www.w3schools.com/xml/xml_attributes.asp
Try using <table fillparent="true"> etc.

It is fixed in the snapshot version. Please, use gdx-lml-vis ver. <IP_ADDRESS>.2-SNAPSHOT, I'm going to release <IP_ADDRESS>.2 soon.

Can confirm it's working by closing with !> and without it after updating to <IP_ADDRESS>.2-SNAPSHOT. Thanks!

Yeah, sorry, I implemented the comment parsing long before DTD was around, and I probably tested DTD with !> myself.
1.6 should be fully XML-friendly, with : as default macro marker (instead of @) and with proper DOCTYPE parsing.

Nothing to be sorry about. Lml is a awesome!
But indeed being XML-friedly makes it much easier for beginners.


Output date in user's locale

Changes the timezone output when calling force:apex:log:list to the user's locale instead of UTC.
Fixes #235
e.g.
from:
2021-08-30T04:27:08+0000
to:
2021-08-30T14:27:08+1000

Hi @YodaDaCoda thanks for the contribution! It looks like this change will only affect the format of the date in the sfdx force:apex:log:list command, were you seeing issues with the date formatting in that command specifically? These changes shouldn't impact the linked issue #230 since that is related to querying the NPM registry.

@AnanyaJha Apologies, issue #235. That issue has the details to clarify the purpose of this PR.

Hi @YodaDaCoda, is this an enhancement to the existing date format? or has the behavior changed and this is reverting to the original behavior?

I'm closing this PR since we are deleting 'develop' branch and simplifying our branch strategy.


Google Social Authentication with dj-rest-auth

I've spent a a lot of time on implementing Google oAuth with dj-rest-auth which should be easier, and I'll post my solution here, hoping it'll help somebody else.
views.py
class GoogleLogin(SocialLoginView):
    adapter_class = GoogleOAuth2Adapter
    client_class = OAuth2Client
    callback_url = "http://<IP_ADDRESS>:8000/api/auth/google/callback/"

urls.py
 path(r'auth/google', GoogleLogin.as_view(), name='google_login')
settings.py
   'allauth.socialaccount',
   'allauth.socialaccount.providers.google',

The callback_url  and client_class  are only required if you're sending only code i.e. authorization_code to Google oAuth URL.
The problem I had was that after making the request to https://accounts.google.com/o/oauth2/v2/auth?redirect_uri=<callback-url>&prompt=consent&response_type=code&client_id=<your_client_id>&scope=openid%20email&access_type=offline (change the callback_url and client_id with the ones from your app), as a response I got back the code. When sending the code to the /auth/google URL, i got this error Error retrieving access token: b'{\n “error”: “redirect_uri_mismatch”,\n “error_description”: “Bad Request”\n}'. This was because the code is URL safe, which means you'll need to first decode it and then send it to your API endpoint.

Did you work around: {"non_field_errors":["View is not defined, pass it as a context variable"]} ?

I think that downgrading to django-rest-framework v3.10.3 solved the issue for me.

https://github.com/jezdez/dj-rest-auth/issues/147#issuecomment-696285532 this would also help you out I think. Thanks for the quick response!

How did you decode the URL? I'm hitting this error and it looks like the redirect_uri is being encoded in the requests.request of django-allauth here https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/providers/oauth2/client.py#L75

You can use urllib for the decoding.
import urllib.parse
url = "your-encoded-url"
urllib.parse.unquote(url)

Thanks for creating this issue and documenting a solution that works for Oauth  + Google. I'm going to close this ticket, but feel free to post any updates here.

This endpoint expects the code, token sent in JSON right?
Having issues where my frontend plugin sends it as a post-request but doesn't understand that it needs to extract the variables and insert them in an understandable json format (Nuxt Auth). Not sure if I should attempt to override the backend or frontend at this point, how easy is this to modify based on all auth? @MatejMijoski

How to get access token and code? Please.

generally u get the access token from the front end and if u want to test the apis  u can use
https://developers.google.com/oauthplayground/?code=4%2F0AX4XfWjoWnaJvOAdjpcaolPnYSuIfRW9LjeGfFEg-rwo-jtyypKcwAs3Y78oLuMOSuTZHQ&scope=email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+openid&authuser=0&prompt=consent
and for facebook
https://developers.facebook.com/tools/explorer/6326047150802438/?method=GET&path=me%3Ffields%3Did%2Cname%2Cabout%2Cemail&version=v12.0
and search for oath which will will generate token u can use for testing

Thank you so much

callback_url = "http://<IP_ADDRESS>:8000/api/auth/google/callback/"

Where in your urls file is this endpoint?

 path(r'auth/google', GoogleLogin.as_view(), name='google_login')
Can I see your urls file?


[FEATURE] page entering animation

when you enter the webpage the elements of the website will also have some incoming effect , it will  make the  webpage look better in a simpler way , You can assign this to me , i can work on it :)

when you enter the webpage the elements of the website will also have some incoming effect , it will make the webpage look better in a simpler way , You can assign this to me , i can work on it :)

go for it , please provide a short video before pr and all the changes will be in new branch!


Create a style guide

Create a style guide that will be followed across the project.
It can be a basic CSS file or styled component theme.
https://styled-components.com/docs/advanced
Required properties:

Primary color
Secondary color
Large font size
Medium font size
Small font size

@muke1908 is this still open? I love CSS and would love to work on this!

@AudreyKj
I would love to understand how are you going to approach this as well :)

@muke1908 yeah i was thinking about it and it would be great to have more info:

does the project have design prototypes?
where would this style guide live in the project? in the root folder? in /public?

@muke1908 is this still open?

@AudreyKj Hi,this issue looks like not relevant anymore.


Feature Request: Codelens for references

The code to find all references is already in place.
It would be great to leverage that to provide codelens for references as well

find references in general is not that fast. Is this a commonly used/requested feature in vscode-go?

Its not very popular mainly due to the reason guru is slow
I assumed that the find all references from the language server is much faster than guru, so was hoping to get that feature from here

@ramya-rao-a Unfortunately the language server's find all references is generally the same performance-wise as guru.
This mostly comes from the way it is implemented in the language server and in guru, which is through Go's https://godoc.org/golang.org/x/tools/go/loader package which does all the work as far as resolving types, etc. Currently, this package doesn't support serialization or anything like that so when you run guru or the language server's find references it must basically parse and resolve types from scratch (effectively the same as recompiling your program from scratch, except not emitting the actual machine code). The package doesn't support any type of serialization, so we can't e.g. cache any of the work that has already been done in the past. This is why guru and the language server's find references is a bit slow right now.
We do have someone who is looking into improving the performance of this, though (and I'm aware of multiple other people in the Go community who are trying to solve this issue with this package). But as it is quite a hard problem to solve, I can't give an ETA / certain answer of when exactly it will be fixed.

Our find references I believe is a bit faster, due to us limiting the scope to the workspace rather than the whole of GOPATH. But that is a fact in my head from a long time ago, so I have no idea if I a remembering that correctly.

Thats good to know, thanks @slimsag


Update dists for go-ipfs 0.4.18-rc2

PR: https://github.com/ipfs/distributions/pull/208
Path: /ipfs/QmUBa9cTSacSPL3hNptEyAHyP31hbncBF7HnwrKUvBf2Ra

Done


Unable to download files with WebUI

Hello! Somehow, the ability to download files from the web UI through the browser has disappeared. What can I do? I tried to restart GoBackup but nothing has changed.  Owner of catalog with GoBackup data is root, but it was not a problem earlier.

Yes, Local is not support download in current.

What exactly does it means? Earlier i could easily download files to my pc from WebUI.


Fixed conflict with the "coverage" Atom package

This pull requests fixes the failure at the package activation (#32) which is caused by a conflict in the element name.
It fixes also the non-functional keyboard shortcut.

Oh, just noticed that the shortcut issue has been solved in #34...


Add log decoration support

Duplicate of LOGGING-7303: Local Log Decoration (Internal)
Specifications described in Agent Logs-in-Context Decoration from Engineering Brief: Logging in Agents (Internal)
Consider Option A: Direct Injection as the selected strategy.  This involves appending the following onto the log line itself: NR-LINKING | {entity.guid} | {hostname} | {trace.id} | {span.id} | if the setting is enabled.
Adding the config option to enable local log decoration should be completed as part of this ticket if it is not already complete with #983
Log decoration should be allowed in high security mode and on by default.
As this is getting completed after #978, adding functionality to disable log decoration when application_logging.enabled is false is also within the scope of this issue.

The values needed to provide the log decorating data are accessible through the LinkingMetadata class added here: https://github.com/jasonrclark/newrelic-ruby-agent/commit/66cbdd38d203cbc21d5344ecca193c446c8b55ae

Closed by #1101


Fix issue #136 Implementation of queue using linked list and array

What is the change?
Implementation of queue using linked list and array
Related issue?
closes: #136
Checklist:
Before you create this PR, confirm all the requirements listed below by checking the checkboxes [x]:

[x] I have followed the Code of Conduct.
[x] I have  checked there aren't other open Pull Requests for the same update/change.
[x] I have you tested the code before submission.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm (HSOC) Hack-Club-Rait Summer of code '22 Contributor

@Chaitalishetty Kindly review the PR!! Thanks

@vedsom This is a documentation repo pls add some explanation. You can refer to the merged prs.

@Chaitalishetty I have updated both the files as per your choice. Kindly review the PR. Thanks!!

@vedsom As this is a documentation repo, you need to create .md file. Pls refer to merged prs.


algorithmic final review ticket

Quality of work

[ ] Share link(s) on slack to final work:  GitHub pages, Replit, Review Ticket(s), TimeBox, or other methods you have used to organize work.

Coding Review

[ ] Individual Coding:

[ ] GitHub Pages showing key learnings and challenges conquered from Tech Talks

[ ] GitHub commits you have made, show GitHub insights into your code commits.

[ ] Show Code running on Replit as well as IntelliJ

[ ] Menu review illustrating use of Lists and navigation: show runtime, code organization, code and comments

[ ] List and Loops: show runtime, code organization, code and comments

[ ] Class review and understanding: show runtime, code organization, code and comments

[ ] Show Crossover contribution:  Highlight work you did in crossover project: show their Replit runtime, code commit(s) in their GitHub repo

[ ] Show anything you have done to enhance what you have learned from Python code

Video 2 minutes: showing the above, quality suggested as follows

[ ] Make sure you cover everything, but create your own order and optimize time

[ ] Use Voice or Captions.   Try not to wiggle mouse a lot or over scroll.  Make sure you have a clear plan before you start.

[ ] Perform video in small parts 15-30 seconds and finish a key subject.  Then put the final Video together with Video editing or Youtube playlists.

Peer grading: /10
Quality of work

[ ] Share link(s) on slack to final work:  GitHub pages, Replit, Review Ticket(s), TimeBox, or other methods you have used to organize work.

Coding Review

[ ] Individual Coding:

[ ] GitHub Pages showing key learnings and challenges conquered from Tech Talks

[ ] GitHub commits you have made, show GitHub insights into your code commits.

[ ] Show Code running on Replit as well as IntelliJ

[ ] Menu review illustrating use of Lists and navigation: show runtime, code organization, code and comments

[ ] List and Loops: show runtime, code organization, code and comments

[ ] Class review and understanding: show runtime, code organization, code and comments

[ ] Show Crossover contribution:  Highlight work you did in crossover project: show their Replit runtime, code commit(s) in their GitHub repo

[ ] Show anything you have done to enhance what you have learned from Python code

Video 2 minutes: showing the above, quality suggested as follows

[ ] Make sure you cover everything, but create your own order and optimize time

[ ] Use Voice or Captions.   Try not to wiggle mouse a lot or over scroll.  Make sure you have a clear plan before you start.

[ ] Perform video in small parts 15-30 seconds and finish a key subject.  Then put the final Video together with Video editing or Youtube playlists.

Peer Review: Sonakshi Bhalla
Score: 10/10

[ ] github pages looks organized and neat with all required material

[ ] commits are thorough and have everything from past weeks

[ ] menu system with organized files and each function running

[ ] lists and loops is running with tester and all of the information

[ ] Factorial and Odd or even functions are implemented in imperative and OOP

[ ] made a guessnumber function and password generator for the crossover team (-0.25, doesn't run on replit)

[ ] video was good and made 2 minutes

[ ] used voice to talk about the main captions

[ ] video hit different subjects, recorded in bits


Enabling Gitlab service failed with setuid permission problem

Issue description
Following the NixOS manual (https://nixos.org/nixos/manual/index.html#module-services-gitlab) to setup Gitlab on a new NixOS server, I got the following error:

building
tar: ./opt/gitlab/embedded/bin/ksu: Cannot change mode to rwsr-xr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
dpkg-deb: error: subprocess tar returned error exit status 2
builder for ‘/nix/store/9239cx16zqw0m4m79w1v65qrgk9gwady-gitlab-8.17.6.drv’ failed with exit code 2

Consulting the IRC channel #nixos on irc.freenode.net, I got the diagnosis of the problem that they put their own copy of ksu into the package, setuid'd and nix doesn't allow setuid files.
Steps to reproduce

After a new NixOS install, update /etc/nixos/configuration.nix with a minimal Gitlab configuration

services.gitlab = {
enable = true;
databasePassword = "45ft_A_ARg";
secrets = {
db = "Tu2LWMPcfRyRaFCYbCIgBWdCMLnERdoQLVbrsUzrRGxGqXiNuSewe7ufoS1cyEyDXQ2Q3fxain26e3ibIJEVBwhQSIJhAX3aefJaIu6SK13iJds50UineaKimsaRMAz4";
secret = "wRNJUMioNyEdoEqXD8iVi882G4TBMPSOf3z1jqS7IhghgwXW2zMOfztSO2GtIvXvavoPzJGBtBnAhRWXUwQIhAD9y70jPAof3DfpnXhQ7ONFfUX9iu8sahZfYM9HjSM1";
otp = "0nAQoAgOi5Kok0QaqzVlnKio8s0oqheaFhmrdOlQ8wV87Fwgqu5QmFU0KG4uOZZsnRIG9KTVLEhUeEiBhoXRy5023qVHN0rR8WQgrn9WSbZFacWDCR9LeEOg6n07v7NM";
};
};

Run nixos-rebuild switch or nixos-rebuild test

Technical details

System: 17.03.1700.51a83266d1 (Gorilla)
Nix version: nix-env (Nix) 1.11.13
Nixpkgs version: "17.03.1700.51a83266d1"
Sandboxing enabled: build-use-sandbox = false

cc @fpletz (maintainer)