Terraform 0.14.x not supported

Hi,
I am trying to do a terraform init inside the complete example folder and this is the output I get:

terraform init
Initializing modules...

jenkins in ../..
Downloading cloudposse/cicd/aws 0.11.1 for jenkins.cicd...
jenkins.cicd in .terraform/modules/jenkins.cicd
Downloading cloudposse/codebuild/aws 0.27.0 for jenkins.cicd.codebuild...
jenkins.cicd.codebuild in .terraform/modules/jenkins.cicd.codebuild
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.21.0 for jenkins.cicd.codebuild.this...
jenkins.cicd.codebuild.this in .terraform/modules/jenkins.cicd.codebuild.this
Downloading cloudposse/label/null 0.22.1 for jenkins.cicd.this...
jenkins.cicd.this in .terraform/modules/jenkins.cicd.this
Downloading cloudposse/ecr/aws 0.29.1 for jenkins.ecr...
jenkins.ecr in .terraform/modules/jenkins.ecr
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.21.0 for jenkins.ecr.this...
jenkins.ecr.this in .terraform/modules/jenkins.ecr.this
Downloading cloudposse/efs/aws 0.25.0 for jenkins.efs...
jenkins.efs in .terraform/modules/jenkins.efs
Downloading cloudposse/route53-cluster-hostname/aws 0.9.0 for jenkins.efs.dns...
jenkins.efs.dns in .terraform/modules/jenkins.efs.dns
Downloading cloudposse/label/null 0.22.1 for jenkins.efs.dns.this...
jenkins.efs.dns.this in .terraform/modules/jenkins.efs.dns.this
Downloading cloudposse/label/null 0.22.1 for jenkins.efs.this...
jenkins.efs.this in .terraform/modules/jenkins.efs.this
Downloading cloudposse/backup/aws 0.4.0 for jenkins.efs_backup...
jenkins.efs_backup in .terraform/modules/jenkins.efs_backup
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2 for jenkins.efs_backup.label_backup_role...
jenkins.efs_backup.label_backup_role in .terraform/modules/jenkins.efs_backup.label_backup_role
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2 for jenkins.efs_backup.this...
jenkins.efs_backup.this in .terraform/modules/jenkins.efs_backup.this
Downloading cloudposse/elastic-beanstalk-application/aws 0.9.0 for jenkins.elastic_beanstalk_application...
jenkins.elastic_beanstalk_application in .terraform/modules/jenkins.elastic_beanstalk_application
Downloading cloudposse/label/null 0.22.1 for jenkins.elastic_beanstalk_application.this...
jenkins.elastic_beanstalk_application.this in .terraform/modules/jenkins.elastic_beanstalk_application.this
Downloading cloudposse/elastic-beanstalk-environment/aws 0.32.0 for jenkins.elastic_beanstalk_environment...
jenkins.elastic_beanstalk_environment in .terraform/modules/jenkins.elastic_beanstalk_environment
Downloading cloudposse/route53-cluster-hostname/aws 0.9.0 for jenkins.elastic_beanstalk_environment.dns_hostname...
jenkins.elastic_beanstalk_environment.dns_hostname in .terraform/modules/jenkins.elastic_beanstalk_environment.dns_hostname
Downloading cloudposse/label/null 0.22.1 for jenkins.elastic_beanstalk_environment.dns_hostname.this...
jenkins.elastic_beanstalk_environment.dns_hostname.this in .terraform/modules/jenkins.elastic_beanstalk_environment.dns_hostname.this
Downloading cloudposse/label/null 0.22.1 for jenkins.elastic_beanstalk_environment.this...
jenkins.elastic_beanstalk_environment.this in .terraform/modules/jenkins.elastic_beanstalk_environment.this
Downloading cloudposse/label/null 0.22.1 for jenkins.label_slaves...
jenkins.label_slaves in .terraform/modules/jenkins.label_slaves
Downloading cloudposse/label/null 0.22.1 for jenkins.this...
jenkins.this in .terraform/modules/jenkins.this
Downloading cloudposse/dynamic-subnets/aws 0.33.0 for subnets...
subnets in .terraform/modules/subnets
Downloading cloudposse/label/null 0.22.0 for subnets.nat_instance_label...
subnets.nat_instance_label in .terraform/modules/subnets.nat_instance_label
Downloading cloudposse/label/null 0.22.0 for subnets.nat_label...
subnets.nat_label in .terraform/modules/subnets.nat_label
Downloading cloudposse/label/null 0.22.0 for subnets.private_label...
subnets.private_label in .terraform/modules/subnets.private_label
Downloading cloudposse/label/null 0.22.0 for subnets.public_label...
subnets.public_label in .terraform/modules/subnets.public_label
Downloading cloudposse/label/null 0.22.0 for subnets.this...
subnets.this in .terraform/modules/subnets.this
Downloading cloudposse/utils/aws 0.2.0 for subnets.utils...
subnets.utils in .terraform/modules/subnets.utils
Downloading cloudposse/label/null 0.22.0 for subnets.utils.this...
subnets.utils.this in .terraform/modules/subnets.utils.this
Downloading cloudposse/label/null 0.22.1 for this...
this in .terraform/modules/this
Downloading cloudposse/vpc/aws 0.18.1 for vpc...
vpc in .terraform/modules/vpc
Downloading cloudposse/label/null 0.22.0 for vpc.label...
vpc.label in .terraform/modules/vpc.label
Downloading cloudposse/label/null 0.22.0 for vpc.this...
vpc.this in .terraform/modules/vpc.this

Error: Unsupported Terraform Core version
on .terraform/modules/jenkins.efs_backup.label_backup_role/versions.tf line 2, in terraform:
2:   required_version = ">= 0.12.0, < 0.14.0"
Module module.jenkins.module.efs_backup.module.label_backup_role (from
git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2)
does not support Terraform version 0.14.4. To proceed, either choose another
supported Terraform version or update this version constraint. Version
constraints are normally set for good reason, so updating the constraint may
lead to other errors or unexpected behavior.
Error: Unsupported Terraform Core version
on .terraform/modules/jenkins.efs_backup.this/versions.tf line 2, in terraform:
2:   required_version = ">= 0.12.0, < 0.14.0"
Module module.jenkins.module.efs_backup.module.this (from
git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2)
does not support Terraform version 0.14.4. To proceed, either choose another
supported Terraform version or update this version constraint. Version
constraints are normally set for good reason, so updating the constraint may
lead to other errors or unexpected behavior.

Basically the efs_backup submodule doesn't seem to support 0.14.x since it is locked in <0.14.0
I have terraform 0.14.4
Appreciate your help with this

I think we need to upgrade the backup module to this version https://github.com/cloudposse/terraform-aws-backup/tree/0.10.4


Even more points in pub.dev page

I believe we can reach even more points in pub.dev page.
Currently it is subtracting points on pubspec.yaml

Documentation URL isn't helpful.

Not sure what it is but it can be good to fix it and get more points.

Maybe we can even support the web/flutter js by converting the dart from dart.io to universal_io.
It does not remove any points for us but why not if it is that easy

I'll remove documentation url from pubspec.yaml


documentation link is 404

https://doc.rust-lang.org/getopts/getopts/index.html

404

File not found

The site configured at this address does not contain the requested file.

Given https://github.com/rust-lang/libc/issues/763 I wonder if this isn't happening with all rust-lang crates.

This was likely due to https://github.com/rust-lang/rust/issues/44487 and should get fixed in the near future


Configure arrow line in ER Diagram to represent foreign key

Thank you for the awesome project first!!
Is your feature request related to a problem? Please describe.
We use ER diagram to assist in database design and one of common problems is to introduce multiple cascade path suddenly when adding a new table/field. We need to identify possible cycles and determine which foreign key to set to "on delete set null". This is particularly difficult given current ERD because the lines between table does not indicate referential relationship clearly.
Describe the solution you'd like
In the generated ER Diagram, provide some options to configure the link between tables to be like this:
Show referential relationship. If one field in A is a foreign key referring to B, show an arrow line between the two tables.
If the deletion relationship is cascade, use solid line, anything else (e.g., on delete do nothing, on delete set null), use dotted line.
Describe alternatives you've considered
Currently I had to draw the referential relationship of the whole ERD on paper to manually identify multiple cascade paths. No better way.
Additional context
Something like this:

with all arrow line like this cycle or multiple cascade path will be really easy to identify.

Thank you for the future request!


arch: xtensa: add isync to interrupt vector

On Intel ADSP platforms, additional "isync" is needed in interrupt vector to synchronize icache when core is woken up from deeper sleep state by an interrupt. This is only needed if DSP clock gating is enabled.

So, I get that every platform has its weird nonsense to support.  But here I'm wearing the hat of an arch maintainer and... this is just really weird to have in the global exception vectors.  Maybe a cleaner design would be to swap VECBASE on suspend such that the WAITI returns to SOC-specific code, then do your magic, restore VECBASE, and jump to the regular handler?  It would be more code but a lot less confusion in arch/xtensa (and also a lot more safety vs. maintainers coming along later and "fixing" it because they don't understand what can't be documented).
Note FWIW that the call0 stuff is likely to land in the immediate future, and that has a separate interrupt entry path which would need the same treatment.

@nashif Please check. This is not pretty, but in practise this is needed for reliable multicore use and not having this can mask other bugs.  Should I file a bug to follow-up with the improvements @andyross has asked?


Make eventName of type string for BrowserPerformanceClient and PerformanceClient

Make eventName of type string for BrowserPerformanceClient and PerformanceClient.
Expose InProgressPerformanceEvent to get rid of msal-common dep in 1p.

Any test impact?

No functional changes. Just updating types to enable 1p compilation without msal-common.


Cookies in universal load function

Describe the problem
Currently cookies are only available in +page.server.ts and +layout.server.ts but not in the universal load variants.
Describe the proposed solution
Make cookies available in universal load(). Only cookies with httpOnly disabled may be accessed, so that the universal load() function behaves the same in whichever environment it is executed.
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response

I wanted to create an issue for this for quite some time now, but kept forgetting to do it. This is something I would enjoy having too. I have been looking at a possible implementation of this.
It's very easy to expose the current server side cookies object in the universal load function and add a client side implementation using document.cookie. But this would lead to different behavior between both environments, because the server has access to HttpOnly cookies, which the client does not.
To keep the same behavior in both environments, you propose to only have access to cookies with HttpOnly disabled, but sadly this is not possible, because this data is not available server side; the only data sent with the request is name=value.

I'm opposed to this — it sets a precedent that cookies without httpOnly are encouraged, which they are very much not. What is a valid use case?

What about naming them unsafeCookies or similar? Or enforcing the user to always set { httpOnly: false } to make it very clear.
You can't set and get cookies in universal load functions currently (you can on the client, but not on the server). I do understand that you dont want to encourage people to use non httpOnly cookies but there are use cases like a theme cookie. In fact the supabase library uses non httpOnly cookies for their authentication and i remember when i was working on their sveltekit adapter we had a hard time making everything work due to not beeing able to modify cookies in universal load functions.

Authentication is also our exact use case. We are working primarily on SPAs with initial SSR. Right now we need to implement a server side and a client side version of handling authorized requests. Being able to use cookies in the universal load functions would really simplify use cases like this, because you can create a 'universal' flow for this.


NativeScript QR Code not fully rendered

Environment
Windows build number: Microsoft Windows [Version 10.0.18362.592]
Windows Terminal version (if applicable): Windows Terminal (Preview) [Version 0.8.10261.0]

Any other software?

NodeJS, NPM and NativeScript.

Steps to reproduce

Install NativeScript, following their quick setup (it requires node and npm): https://docs.nativescript.org/start/quick-setup (basically, npm install -g nativescript, just needing NodeJS and npm, does NOT need Android SDK or any of the other dependencies, AFAIK)

Create some project with tns create

In the result folder, type tns preview.

Expected behavior
The text should be rendered 100% equal on both consoles (not missing entire rows of text).
Actual behavior
Old Windows console:

(the NativeScript playground app requires the reading of this qr-code to preview the app on the phone).
New Windows Terminal:

(notice that the last row are missing from the QR-Code, so the preview app won't recognize the QR-Code).
The only difference between those screenshots are the terminal app (so it is NOT a NativeScript bug or something like that)

Thanks for the report! I think that, at the end of the day, this is a /dupe of #2089. The name probably doesn't seem correct, but it refers to how we determine the "right" side of the screen.
Since the QR code is made of colored space characters, and we think spaces are not meaningful sometimes, *boom*

I had the same problem and I discovered it was due to the fact that the font I was using was not a monospaced font(equally sized characters)


[Feature] Filament stuck function

Any related problems?
No response
What's your feature?
Could you add a function with an high resolution encoder wheel, to know when filament is stuck? Bigtreetech has something like this with their sensor, but it's really not that reliable:
https://www.youtube.com/watch?v=UUx2R9u6ohE
This review of this sensor shows the problem. If you could add a version, in which one of the bearings is the encoder wheel and add that to the sensor, that would be really a gamechanger. When I look at what you did so far, that can't be that hard.
Additional context?
None

Actually you'd think this is a very simple feature to introduce but it's
shockingly difficult. A primitive version would be to check that the
variance of the filament has not changed beyond a very very small
threshold, but then you'll get false positives when the filament is
actually just very precise. Also, when jamming occurs, the vibration
induced along the filament path from clicking steppers could potentially be
detected as changes in variance. This is a tough problem. Does anyone have
any suggestions that would not require a total redesign or the introduction
of an additional or different sensor? An encoder wheel would do this very
easily for example but that is a  substantial redesign.
On Thu, Dec 16, 2021, 1:16 AM Thomas Behrend @.***>
wrote:

Any related problems?
No response
What's your feature?
Could you add a function with an high resolution encoder wheel, to know
when filament is stuck? Bigtreetech has something like this with their
sensor, but it's really not that reliable:
https://www.youtube.com/watch?v=UUx2R9u6ohE
This review of this sensor shows the problem. If you could add a version,
in which one of the bearings is the encoder wheel and add that to the
sensor, that would be really a gamechanger. When I look at what you did so
far, that can't be that hard.
Additional context?
None
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/drspangle/infidel-sensor/issues/62, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAU4IS56CAOE6LKSL5AMN33URF74RANCNFSM5KFONLRA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I don't know if you watched the video, this sensor is working somewhat decently, but it has its flaws. But when we think of the problem, what options do we have:

Optical sensor: Won't work because the filament would need to have changes in the structure. Optical mice work like that.
Mechanical wheel / encoder wheel: Depending on the resolution, this could work. But when you have to completely redo it, that would be not good. We would like to keep the current design and add the functionality.
Knocking sensor: Like in a car, the sensor could be on the extruder and fetches "knocking", it should be fine enough for the stepper motors we have to get the jumping of the gears and send it to the board.


Ntrboot can now be installed to 2 new flashcarts.

R4 3D Revolution (r4idsn.com), Infinity 3 R4i (r4infinity.com)
see https://github.com/kitling/ntrboot_flasher

r4idsn.com just redirects to the Amazon homepage, not very helpful


[0.9.1]: Waybar overlaps with windows

This appears to have broken for me in 0.9.1, but now Waybar doesn't seem to "take up" space on my screen. I have the bar at the top in Sway, and any application I now launch ends up with its header area underneath Waybar if the layer is set to top, and over Waybar if the layer is set to bottom (i.e non-accessible at all in the last case). Before 0.9.1 applications would be docked underneath Waybar, ensuring that the bar was always visible at the top of my screen and essentially pushed windows down a bit, for the height of the bar.
This is happening on Arch Linux for me since 0.9.1 was pushed 3 days ago. The only notable difference I can see on the packaging side is that now it's built with gtk-layer-shell: https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/waybar&id=ed3ad45e65f88aede0cf8d8f729f5f8c23ccac28

In case it matters, I have an explicit height set in my config, of 26.

Setting "gtk-layer-shell": false in my config restores the old behaviour, but it seems useful to be able to use GTK layer shell.
This begs the question though, how do I configure this to behave correctly with "gtk-layer-shell": true instead?

@daenney, is there a width in your config? Can you try removing it?

Removing the width does indeed restore the old behaviour. This is very surprising to me, I would never have connected the two.


Crash with NPE Unexpected Error when focus Telepad Block.

Crash report
http://pastebin.com/Que0nxWW

Can confirm: http://hastebin.com/betayugoca.1c

I've got a crash when targeting a travel anchor only with waila installed

Also have this crash.

Update to 417

TY


Add flags to configure bootstrapping for peer discovery

Feature request
Dat works great out of the box when you're on the same wifi, or are connected to the internet at large, but it's not as great when you're connected to a network that's not totally local, but isn't connected to the internet. Key uses would be something like #1066 where China was blocking traffic, or #1071 talking about mesh networks, which could be relevant to dweb camp 2019.
I was thinking it could be addressed with CLI flags added to dat clone and dat share which would be passed into discovery-swarm. Maybe just IP addresses to use for bootstrapping to start so that we can get more bang for our buck.
dat clone --bootstrap-dns <IP_ADDRESS>:666 --bootstrap-dht <IP_ADDRESS>:420
CC @pfrazee since this applies to Beaker

@RangerMauve is this proposal simply to add / swap Internet bootstrap nodes? Similar to ipfs bootstrap add?

Yup!

how about a config file which can set a lot of networking options, and those options can also be set through commandline parameters (they would be named the same?)

I really like the config file idea! Maybe we could set something up on top of dat-swarm-defaults so that it can be handled in the same way across tools.

sweet!


How to reset amplify build - envCache

Describe the bug
I re-created dev environment using amplify cli and when i pushed the changes, amplify console was picking old stackInfo from envCache. I can't find any documentation of how to prevent using old cached values. Below are the logs:-
logs
//Getting Amplify CLI Cloud-Formation stack info from environment cache
2019-03-27T13:32:53.066Z [INFO]: # Start initializing Amplify environment: dev
2019-03-27T13:32:53.068Z [INFO]: STACKINFO={
"awscloudformation": {
"AuthRoleName": "old-authRole",
"UnauthRoleArn": "arn:aws:iam::old-unauthRole",
"AuthRoleArn": "arn:aws:iam::old-authRole",
"Region": "us-east-1",
"DeploymentBucketName": "old-deployment",
"UnauthRoleName": "old-unauthRole",
"StackName": "old",
"StackId": "arn:aws:cloudformation:us-east-1:227484579606:stack/old"
},
"categories": {
"auth": {
"cognitols": {}
}
}
}
// Importing Amplify environment: dev (amplify env import)
2019-03-27T13:32:55.802Z [INFO]: Successfully added environment from your project
2019-03-27T13:32:55.809Z [INFO]: # Initializing existing Amplify environment: dev (amplify init)
2019-03-27T13:32:57.242Z [INFO]: Note: It is recommended to run this command from the root of your app directory
2019-03-27T13:32:58.538Z [WARNING]: - Initializing your environment: dev
2019-03-27T13:32:58.612Z [WARNING]: ✖ There was an error initializing your environment.
2019-03-27T13:32:58.613Z [INFO]: init failed
2019-03-27T13:32:58.616Z [INFO]: { NoSuchBucket: The specified bucket does not exist

@dabit3 Here's my amplify.yml contents in md. not saying it's correct. But I remember I had set envCache --set stackInfo "" once in the past when having issues. I then change that line to '# envCache --set stackInfo ""' when I want to allow the stackInfo to come from the cache.
version: 0.1
backend:
  phases:
    build:
      commands:
        - '# Execute Amplify CLI with the helper script'
        - envCache --set stackInfo ""
        - amplifyPush --environment $USER_BRANCH --simple
frontend:
  phases:
    preBuild:
      commands:
        - yarn install
    build:
      commands:
        - yarn run build
  artifacts:
    baseDirectory: build
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*


Expose Sidekick API through helix-sidekick attributes

Is your feature request related to a problem? Please describe.
The Sidekick class which represents the helix-sidekick custom element is loaded in the extension context (sandbox), which makes it inaccessible from the content window, limiting the ability to extend the sidekick in a project.
Describe the solution you'd like
One way to expose certain API methods would be via element attributes, e.g.
// publish /foo.json when this page is published
const sk = document.querySelector('helix-sidekick');
sk.addEventListener('published', () => sk.setAttribute('publish', '/foo.json'));

The sidekick listens for attribute changes, executes corresponding API methods and removes/resets the attribute again. Feedback could be provided in a dedicated feedback attribute.

No longer a priority.


Add methods to reset the Rasterizer without reallocating

Looks good! Thanks for the pr & good documentation. I've added some very minor comments.
I assume this is to allow optimising allocations while rasterizing many glyphs on a single thread. Out of interest, which projects are you thinking of using these changes in?

Thanks for the fast review, I'm using it to render fonts in a small project but my guess is that it could be used for other projects as well, since we usually know the maximum rendering size of a glyph for a given font and size.


TypeError: Property 'status' does not exist on type 'FetchResponse & FetchResponse<"json">'.ts(2339)

Environment
Development
Reproduction
Simply use the example given in the readme for onResponseError
Describe the bug

Additional context
No response
Logs
No response

This is working fine for me :
  const r = await $fetch<string>("http://httpstat.us/500", {
    onResponseError({ request, response, options }) {
      // Log error
      console.log(
        "[fetch response error]",
        request,
        response.status,
        response.body
      );
    },
  });

I have similar issue in addition to #314


[AMBARI-24665] Migrating grafana plugin for 5.x use (Prajwal Rao, Ish…

…an Bhatt via Ishan Bhatt)
What changes were proposed in this pull request?
Required changes to be used with changed sdks

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4016/
Test FAILed.
Test FAILured.


ModuleNotFoundError on starting celery worker

What happened?
Running celery -A config.celery_app worker --loglevel=info on project root directory raises error
ModuleNotFoundError: No module named 'worker'

where 'worker' is a custom app
What should've happened instead?
Celery worker should have started
Additional details

Host system configuration:

Version of cookiecutter CLI (get it with cookiecutter --version): Cookiecutter 2.1.1
OS name and version:

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

* Python version, run `python3 -V`: Python 3.9.2
* ...

celery_app.py:
import os

from celery import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")

app = Celery("app")

# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
# - namespace='CELERY' means all celery-related configuration keys
#   should have a `CELERY_` prefix.
app.config_from_object("django.conf:settings", namespace="CELERY")

# Load task modules from all registered Django app configs.
app.autodiscover_tasks()

Logs:

ERROR 2023-01-23 16:26:11,175 signal 7570<PHONE_NUMBER>41952 Signal handler > raised: ModuleNotFoundError("No module named 'worker'")
Traceback (most recent call last):
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/utils/dispatch/signal.py", line 276, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/fixups/django.py", line 82, in on_import_modules
    self.worker_fixup.validate_models()
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/fixups/django.py", line 121, in validate_models
    run_checks()
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/core/checks/registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/core/checks/urls.py", line 14, in check_url_config
    return check_resolver(resolver)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/core/checks/urls.py", line 24, in check_resolver
    return check_method()
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 480, in check
    for pattern in self.url_patterns:
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/utils/functional.py", line 49, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 696, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/utils/functional.py", line 49, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 689, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 680, in _load_unlocked
  File "", line 790, in exec_module
  File "", line 228, in _call_with_frames_removed
  File "/home/chirag/Projects/xyz/app/config/urls.py", line 23, in
    path("worker/", include("worker.urls")),
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/urls/conf.py", line 38, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 972, in _find_and_load_unlocked
  File "", line 228, in _call_with_frames_removed
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'worker'
Traceback (most recent call last):
  File "/home/chirag/Projects/xyz/env/bin/celery", line 8, in
    sys.exit(main())
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/__main__.py", line 15, in main
    sys.exit(_main())
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/bin/celery.py", line 217, in main
    return celery(auto_envvar_prefix="CELERY")
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/bin/base.py", line 134, in caller
    return f(ctx, *args, **kwargs)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/bin/worker.py", line 343, in worker
    worker = app.Worker(
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/worker/worker.py", line 94, in __init__
    self.app.loader.init_worker()
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/loaders/base.py", line 111, in init_worker
    self.import_default_modules()
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/loaders/base.py", line 105, in import_default_modules
    raise response
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/utils/dispatch/signal.py", line 276, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/fixups/django.py", line 82, in on_import_modules
    self.worker_fixup.validate_models()
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/celery/fixups/django.py", line 121, in validate_models
    run_checks()
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/core/checks/registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/core/checks/urls.py", line 14, in check_url_config
    return check_resolver(resolver)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/core/checks/urls.py", line 24, in check_resolver
    return check_method()
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 480, in check
    for pattern in self.url_patterns:
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/utils/functional.py", line 49, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 696, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/utils/functional.py", line 49, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 689, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 680, in _load_unlocked
  File "", line 790, in exec_module
  File "", line 228, in _call_with_frames_removed
  File "/home/chirag/Projects/xyz/app/config/urls.py", line 23, in
    path("worker/", include("worker.urls")),
  File "/home/chirag/Projects/xyz/env/lib/python3.9/site-packages/django/urls/conf.py", line 38, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 972, in _find_and_load_unlocked
  File "", line 228, in _call_with_frames_removed
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'worker'

Fixed.
I forgot to include project name in urls include. Got confused due to same words worker.
path("worker/", include("worker.urls")),

to
path("worker/", include("app.worker.urls")),


fix: arrows on tutorial button #HDH-100

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[x] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[x] Optional Screen Shoot.

LGTM

cc @aimurphy. Thanks for bringing it up and thanks @wei-harness for the fix.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Explore desire to build a DockerHub image for this tool

Determine if I want to build a DockerHub image for this so folks that don't want to install/build it, but are okay with docker, can run it.

I think the real need is to provide a capability for use on Windows, MacOS, and Linux.


Clean up Artisan commands

Need to go through and update them all to make use of the new Artisan command structure shipped with Laravel 5.1.

Just was finally going to make a comment about this :smile:
      module:migrate:rollback

I was thinking that it would be better as:
      module:rollback

reasoning: "rollback" is pretty specific to migrations and the term "migration" can be inferred. Besides, I type it too mush :wink:


Resolved IDENTITY-3620

Reviewed. Can merge.

https://wso2.org/jira/browse/CARBON-15446

This PR is merged to release-4.4.2 with https://github.com/wso2/carbon-kernel/commit/b6b58f5c3c8cf971f93f545b711bf9cb9101eb7e
release-4.4.2 will be merged to 4.4.x branch once 4.4.2 is released. Hence closing this PR.


MM-31122: Make sure all Admin APIs enforce sysadmin permissions

Summary
Make sure all Admin APIs enforce sysadmin permissions
Ticket Link
https://mattermost.atlassian.net/browse/MM-31122

Is there more to be done?

Is there more to be done?

Some check were added in a previous PR. Some of the Admin methods don;t think they apply (UninstallApp). If you think smth., is missing, please lmk.

What kind of permission we want to give the debug commands (if we will keep them on production)? Specially the debug-install* should require the same ones as install.

Should we check for the permissions in the command layer instead of checking that further down the application? That would mimic how permission checks are done in the core product.

Looked at how we are doing currently in (some of) the other plugins, like incident-collaboration and Jira, and they look to follow the same placement.

What kind of permission we want to give the debug commands (if we will keep them on production)? Specially the debug-install* should require the same ones as install.

The check were added in a previous checkin - and they are the same as for the non-debug commands.

An argument in favor of the current approach could be that some lower-level methods could be invoked from entry points other than commands

Could you please elaborate? Right now we have two entry points: the slash command and the Rest API. Are there other ways to invoke lower level code?
What I like about checking the entry points is that we fail and return early. That reduces the scope of code that gets executed without permission.

An argument in favor of the current approach could be that some lower-level methods could be invoked from entry points other than commands

Could you please elaborate? Right now we have two entry points: the slash command and the Rest API. Are there other ways to invoke lower level code?
What I like about checking the entry points is that we fail and return early. That reduces the scope of code that gets executed without permission.

As I mentioned, the existing pattern for the existing plugins (incident-collaboration and Jira, maybe others)  is to do the check at this level (for their API calls) - seems to be the prevalent one for the server codebase as well. For the apps plugin we introduced a new pattern with the checkAdmin (for restapi - incomplete check) and then later with checkSystemAdmin (for commands). I think there are pros/cons to each - gating at entry points has the potential to introduce these "each entry point doing his thing" - not necessarily a bad thing; OTOH - one could say that what we want to protect is the actual logic, which should be invoked/shared by the the entry-points.

Closed in favor of #107


Entity Report - Add boolean to the Input to avoid extracting list of detected stuff

In case we are doing other things like events or snapshots

Just added this to each of the Extract/Index/Report***Entities classes

Fixed by d26c4d64bb1dfb895a110ecf182ac7340e877d72


add transformer.py and its ut

add transformer.py for transformer model add test_transformer.py for ut fix docstring

Codecov Report

Merging #107 (4c16158) into main (d91afce) will increase coverage by 1.34%.
The diff coverage is 41.02%.

@@            Coverage Diff             @@
##             main     #107      +/-   ##
==========================================
+ Coverage   80.90%   82.25%   +1.34%
==========================================
  Files          64       70       +6
  Lines        2168     2327     +159
  Branches      186      201      +15
==========================================
+ Hits         1754     1914     +160
+ Misses        346      341       -5
- Partials       68       72       +4

Impacted Files
Coverage Δ

towhee/trainer/models/vit/transformer.py
33.33% <33.33%> (ø)

towhee/tests/trainer/test_transformer.py
83.33% <83.33%> (ø)

towhee/tests/mock_pipelines/emulated_pipeline.py
82.85% <0.00%> (-17.15%)
:arrow_down:

towhee/engine/task.py
96.15% <0.00%> (-3.85%)
:arrow_down:

towhee/tests/engine/test_task_scheduler.py
93.33% <0.00%> (-0.22%)
:arrow_down:

towhee/engine/operator_loader.py
80.95% <0.00%> (ø)

towhee/tests/engine/test_singleton.py
100.00% <0.00%> (ø)

towhee/tests/__init__.py
100.00% <0.00%> (ø)

... and 9 more

Continue to review full report at Codecov.

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


docs: add basic contribution guide

🔗 Linked issue
#69

❓ Type of change

[x] 📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
add a very basic contribution guide

Thank you both :raised_hands:


pyflakes- and manifest-tests fail (tiny oversight with recent changes)

There are some very minor things that should be fixed. I only noticed it when investigating the failed tests for one of my PRs - I should have been thoroughly looking at the tests in advance, I guess.
So, here the problems:
A. pyflakes-test fails (example: https://travis-ci.org/Mindwerks/worldengine/jobs/87939096 )
Cause: left-over variable from https://github.com/Mindwerks/worldengine/pull/152
Fix: trivial
B. manifest-test fails (example: https://travis-ci.org/Mindwerks/worldengine/jobs/87939098 )
Cause: ??? (something related to https://github.com/Mindwerks/worldengine/pull/147 )
Fix: ??? (probably trivial)
Could somebody just fix these two to get at least some of the optional tests back up? I could fix the first one myself, but it's probably easier to just fix both at once.

Possible fixes here: https://github.com/Mindwerks/worldengine/pull/160

Something is still going wrong: https://travis-ci.org/Mindwerks/worldengine/jobs/88091783


[FEAT] List validators for EVM-based chains: Chainlink, Polygon, Livepeer and The Graph

Currently, validator listing is only implemented for Substrate-based chains like Polkadot, Phala, etc.
When the corresponding EVM-based network is selected on the liquid staking UI (Chainlink, The Graph, Livepeer and Polygon), need to fetch and list its validators.

Closing this as Liquifier put on pause. If anything, I'll re-open. CC @drewstone


Some enhancement to mptevents

Hello Baruch,
I have followed all of your advice.  Please review.
Best regards,
Shaoxin

Thanks for this change, I obviously can't test it myself as I do not have an MPT3 capable device. I've reworked it slightly and combined all patches into one and integrated it.

Hi Baruch,
I have tested master branch of mptevents from your repos, which is at commit 09a45a0aba2aca2a765127e138e109082c63ce30.
There are three pieces of LSI 3008 HBA in my system, and I can see reports from those HBA.
It works fine!  :)
Shaoxin

Hi Baruch,
I have tested master branch of mptevents from your repos, which is at
commit 09a45a0
https://github.com/baruch/mptevents/commit/09a45a0aba2aca2a765127e138e109082c63ce30
.
There are three pieces of LSI 3008 HBA in my system, and I can see reports
from those HBA.
It works fine! :)
Shaoxin
2017-12-01 23:41 GMT+08:00 Baruch Even<EMAIL_ADDRESS>
Thanks for this change, I obviously can't test it myself as I do not have
an MPT3 capable device. I've reworked it slightly and combined all patches
into one and integrated it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/baruch/mptevents/pull/9#issuecomment-348527398, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADTUNnbn7a7Ep6FI5elO7UkZWYX_Hu2bks5s8B4ogaJpZM4QmzBz
.


Unable to recompile "Mediatek-res.apk" on Ulefone Paris - Android 5.1

I can decompile the file "Mediatek-res.apk" (associated with the "framework-res.apk" of the same firmware), but when I compile it again, I get numerous errors.
In this link below, you can find "framework-res.apk" and "mediatek-res.apk"
https://goo.gl/wBv7aQ

Not sure why this happens. The resources mentioned are indeed there as both ids.xml (to reserve an id as these values might be referenced before initialized) and included in public.xml.
Not sure.

Thanks.... I hope you can solve this bug, very soon....are you tring to solve yet??

This bug and lenovo-res.apk compile error #989, are the same bug. This present from the sdk 21, but in the sdk 21 could be used to compile aapt 4.4.1 KitKat and failure would disappear. This ruling affects many people, you could give some priority. Thank you.

I think the bug is in ResourceTable.cpp of aapt source, here:
uint32_t ResourceTable::getResId(const String16& package,
const String16& type,
const String16& name,
bool onlyPublic) const
{
uint32_t id = ResourceIdCache::lookup(package, type, name, onlyPublic);
if (id != 0) return id;     // cache hit
// First look for this in the included resources...
uint32_t specFlags = 0;
uint32_t rid = mAssets->getIncludedResources()
    .identifierForName(name.string(), name.size(),
                       type.string(), type.size(),
                       package.string(), package.size(),
                       &specFlags);
if (rid != 0) {
    if (onlyPublic) {
        if ((specFlags & ResTable_typeSpec::SPEC_PUBLIC) == 0) {
            return 0;
        }
    }

    return ResourceIdCache::store(package, type, name, onlyPublic, rid);
}

sp<Package> p = mPackages.valueFor(package);
if (p == NULL) return 0;
sp<Type> t = p->getTypes().valueFor(type);
if (t == NULL) return 0;
sp<ConfigList> c = t->getConfigs().valueFor(name);
if (c == NULL) {
    if (type != String16("attr")) {
        return 0;
    }
    t = p->getTypes().valueFor(String16(kAttrPrivateType));
    if (t == NULL) return 0;
    c = t->getConfigs().valueFor(name);
    if (c == NULL) return 0;
}
int32_t ei = c->getEntryIndex();
if (ei < 0) return 0;

return ResourceIdCache::store(package, type, name, onlyPublic,
        getResId(p, t, ei));

}

I'm not sure what a cache pool on a getResId would have to do with this bug, but I appreciate any effort towards finding a solution.

We have this bug too, didn't have it before (like 1 month ago it worked). We must have changed something in our compiler but I don't know why. Any luck finding the source of this bug ? This is critical for us :(

➜  Bug1119 apktool if framework-res.apk -t 1119
apktooI: Framework installed to: /home/ibotpeaches/.local/share/apktool/framework/1-1119.apk
➜  Bug1119 apktool d mediatek-res.apk -f -t 1119
I: Using Apktool 2.2.2-b60db0-SNAPSHOT on mediatek-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/.local/share/apktool/framework/1-1119.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜  Bug1119 apktool b mediatek-res
I: Using Apktool 2.2.2-b60db0-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'AP_confirm_default_network' has no default translation.
...
I: Building apk file...
I: Copying unknown files/dir...
➜  Bug1119

Confirmed fixed from work in https://github.com/iBotPeaches/platform_frameworks_base/issues/2
Will be in 2.2.2


Is there any way we can remove the delete link on tree view for parents if have any child?

Is there any way we can remove this delete button from parents if have any child.
In this way we can only remove parents with zero child.

You can solve this problem by hook deleting event of Menu model.
Open app/Providers/EventServiceProvider.php in boot() method add:
\Encore\Admin\Auth\Database\Menu::deleting(function ($menu) {
    if $menu has children {
        return false;
    }
});

@z-song but the link doesn't go away. We need a solution to modify actions in treeview like grid.

My same issues :( plz


Amend RFC 80

This PR amends RFC 80 in two ways.

Introduce a new constructor for datetime.
Do not overload comparison operators. Instead, use methods like the decimal extension.

Closed now given new info.


Drop Reth DB providers as soon as possible

Instead of keeping a db provider around for every worker, we should drop them as soon as possible, otherwise we'll hit problems: https://github.com/paradigmxyz/reth/issues/5228

Tasks :

Remove provider from struct , replace all places that break with explicit call to provider factory, make the provider drop the soonest possible.
Remove RWLock from provider factory.


Conditional header support for PUT block blob

There are plenty of other operations that this applies to, too. See https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#Subheading2

As soon as possible :)
Jokes aside, there is no schedule and I try to release versions very quickly.

Done in release 0.23.0! Thank you again for your excellent work!


Fix: modified "happen" to "happens" in the first sentence

Checklist:

[x ] I have read and followed the contribution guidelines.
[x ] I have read and followed the how to open a pull request guide.
[x ] My pull request targets the main branch of freeCodeCamp.
[x ] I have tested these changes either locally on my machine, or GitPod.

Closes #53785

@huyenltnguyen Thank you, the PR description is updated.


Request Timestamp should be set when the request is created

The Timestamp parameter sent with each request is create once, when the Client is initialized. This causes requests made with that client to return RequestExpired errors when waiting a small amount of time between creating the client and using it.
The expected state is for each request to submit the current time that the request was issued as the Timestamp parameter, rather than the time that the client was instantiated.

I've submitted a pull request with a suggested fix: https://github.com/amzn/amazon-pay-sdk-ruby/pull/15

Thanks for bringing this to our attention.  We will take a look.

Thank you for merging my PR!


Add more unit-tests

Unit-tests are needed for the following areas:

[ ] org-bable output
[ ] org-bable file-format detection (can use literal org-notation where we have a wsd-mode section followed by a sh-section which invokes file on the result from wsd-mode to verify output.
[X] fontification of keywords, comments, etc.
[X] indentation

Tests now exist for indentation, and for parts of the fontification engine.
A few more tests and I should be able to close this issue.


A tag not selectable with cursor.

Challenge Make Dead Links using the Hash Symbol has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

Please use the Help chat room for getting challenge related help. Happy Coding!

Thanks Jonathan I was referring to selecting the code.  When I click or type the first time in any code it does something crazy like move to the next line or delete an element.  So far it has happened on everything and it's annoying.
If I try to select an a tag it jumps to the next line hen I have to ctrlz to reset my code and start over again
On Mon, May 23, 2016 at 9:36 AM -0700, "Jonathan"<EMAIL_ADDRESS>wrote:
@e-landeros Your a element should be a dead link with a href attribute set to "#".
Please use the Help chat room for getting challenge related help. Happy Coding!
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

This is not a directly actionable issue here on Free Code Camp. This is a known issue with CodeMirror. Please comment here codemirror/CodeMirror#1862.

I found a work around where when the cursor is above the problem line (in my case line 31) and I hit enter twice the line then becomes available for me to interact with (moving my code to line 33). I can update my code to include '#' then delete the two extra spaces (returning to line 31) and move on as expected. I don't see this workaround noted in this GitHub issue or the CodeMirror (which I've also updated with my repro steps).

Click here for cat photos.


Segfault during VerifyUserSignature

I run into this segfault consistently when pointing bigsky at the PDS dev environment setup.  I am running bigsky on https://github.com/bluesky-social/indigo/commit/9a357fe32a01f706a96aaa7324f92978c4a235a4 with the following command:
./bigsky --aggregation=false --ssl-events=false --plc-host="http://localhost:2582"

Output:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x100220d86]

goroutine 63 [running]:
math/big.(*Int).Sign(...)
        /usr/local/go/src/math/big/int.go:41
crypto/ecdsa.(*nistCurve[...]).pointFromAffine(0x100f86be0, 0x0, 0x0)
        /usr/local/go/src/crypto/ecdsa/ecdsa.go:575 +0x46
crypto/ecdsa.verifyNISTEC[...](0xc00061ee40, 0xc000333568, {0xc000333508, 0x20, 0x20}, {0xc000616600, 0x0?, 0x0?})
        /usr/local/go/src/crypto/ecdsa/ecdsa.go:494 +0xc5
crypto/ecdsa.VerifyASN1(0xc000333568, {0xc000333508, 0x20, 0x20}, {0xc000616600, 0x48, 0x60})
        /usr/local/go/src/crypto/ecdsa/ecdsa.go:478 +0x285
crypto/ecdsa.Verify(0x11000371f53b00?, {0xc000333508, 0x20, 0x20}, 0xc0007366f0?, 0xc00033a7c0)
        /usr/local/go/src/crypto/ecdsa/ecdsa_legacy.go:126 +0x10b
github.com/whyrusleeping/go-did.(*PubKey).Verify(0xc00033a780, {0xc0007366f0, 0x24, 0x30}, {0xc000618380, 0x40, 0x40})
        /Users/devinivy/go/pkg/mod/github.com/whyrusleeping/go-did@v0.0.0-20230217165439-d09707c62f1c/key.go:158 +0x2f9
github.com/bluesky-social/indigo/indexer.(*KeyManager).VerifyUserSignature(0xc0006125f0?, {0x100f89d60, 0xc00061b020}, {0xc00062a3c0, 0x20}, {0xc000618380, 0x40, 0x40}, {0xc0007366f0, 0x24, ...})
        /project/indigo/indexer/keymgr.go:37 +0x185
github.com/bluesky-social/indigo/repomgr.(*RepoManager).HandleExternalUserEvent(0xc00071ffc0, {0x100f89cf0, 0xc000120008}, 0x1, 0x1, {0xc00071c7a0, 0x20}, 0x0, {0xc0005ee000, 0x2b3, ...})
        /project/indigo/repomgr/repomgr.go:548 +0x4ec
github.com/bluesky-social/indigo/bgs.(*BGS).handleFedEvent(0xc0002bf4f0, {0x100f89cf0, 0xc000120008}, 0xc000308090, 0xc0005ee001?)
        /project/indigo/bgs/bgs.go:269 +0x434
github.com/bluesky-social/indigo/bgs.(*Slurper).handleConnection.func1(0xc0005d8300)
        /project/indigo/bgs/fedmgr.go:139 +0x1a7
github.com/bluesky-social/indigo/events.HandleRepoStream({0x100f89cb8?, 0xc0005c2a50?}, 0xc000455e40, 0xc000333df0)
        /project/indigo/events/consumer.go:63 +0x213
github.com/bluesky-social/indigo/bgs.(*Slurper).handleConnection(0xc000300990, 0xc000308090, 0x0?, 0xc000323ea8)
        /project/indigo/bgs/fedmgr.go:135 +0x117
github.com/bluesky-social/indigo/bgs.(*Slurper).subscribeWithRedialer(0xc000300990, 0xc000308090)
        /project/indigo/bgs/fedmgr.go:105 +0x370
created by github.com/bluesky-social/indigo/bgs.(*Slurper).SubscribeToPds
        /project/indigo/bgs/fedmgr.go:70 +0x378

this ones a head scratcher... the key in question (according to the stack trace) is fine?

Oh golly do I not like to see VerifyASN1 in a stack trace.
@devinivy what platform are you encountering this on? Apple silicon (M1, M2)? Don't have a specific hypothesis but could help track this down.

@bnewbold yup that's right, it's Apple silicon.  Actually I think we had some good news here— @whyrusleeping made a fix in go-did that I pulled down locally and it resolved the issue.  I am not sure if that fix made its way into bgs yet, though.  Here's the commit: https://github.com/whyrusleeping/go-did/commit/2146016fc220aa1e08ccf26aaa762f5a11a81404

I think we fixed this in https://github.com/bluesky-social/indigo/pull/42


[v8] getValue should return a null value for nested keys

Describe the bug
The issue is related to this issue: https://github.com/TanStack/table/issues/4320#issuecomment-1298293299
The prior issue was solved by introducing an elaborate error message for undefined nested keys.
In a case, where some rows might have nested keys and others not, it is possible to catch the error of getValue, it is not nice though. Furthermore, this also adds up to other functions like getRowModel, when filters are used. So each function would need to get a try catch.
try { cell.getValue() } catch { console.error("🙈") }

The alternative approach would be, to create an entry for each nested key in each row. But it can be annoying for nested objects.
data.forEach((entry)=>{
  if(!(nestedKey0 in entry)){
     entry[nestedKey0] = {}
   }
   if(!(nestedKey1 in entry)){
      entry[nestedKey0][nestedKey1] = null;
   }
})

I would propose returning a null value, if the nested key is missing.
https://github.com/TanStack/table/blob/7b9295332306abcc18f23f96be20fe020862c7dd/packages/table-core/src/core/column.ts#L58
for (const key of accessorKey.split('.')) {
   if(!(key in result)){
     return null
    }
    result = result[key]
    if (process.env.NODE_ENV !== 'production' && result === undefined) {
       throw new Error(
       `"${key}" in deeply nested key "${accessorKey}" returned undefined.`
        )
     }
}

Your minimal, reproducible example
https://codesandbox.io/s/dark-sky-pwysi7?file=/src/main.tsx
Steps to reproduce
See codesandbox.
Toggle line 29 comment in main.tsx and see how it works/fails.
I am not using columnHelper, since my use case has a nested Record<string, any> object without proper typing.
Expected behavior
If getValue() returns null for nested keys, it won´t fail.
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform

all

react-table version
v.8.5.22
TypeScript version
No response
Additional context
I am not fully sure, if getValue() should return null or undefined, since I am not familiar enough with tanstack table and possible side effects.
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

I'm just trying to migrate from v7 and ended up coming across this on v8.7.0. It seems to me the table shouldn't throw an error if value is undefined on the data level (not when rendering it, as React doesn't allow to render an undefined value).

I have some nested keys that are sometimes returned as undefined or null from my backend, both of which mean different things about that data, so it would not be great if it was always converted to a null by getValue().

I really want to use this table extension in my vue project. But I have optional returned parameters in my response from server. So I know that there are deeply nested keys which are undefined / does not exists.
The extensions spams my whole console every time I do an interaction with it...
"updated" in deeply nested key "attributes.updated" returned undefined.
Is there any possibility to at least disable the warning messages? Will it also work in production?
I would be very happy about an answer, otherwise I unfortunately can not use the extension

I have a work around that might help people
 columnHelper.accessor(         (row) => row?.mostRecentAnalysis?.risk,         {           header: t('plots.table.risk') ?? '',           cell: (info) => (             <StatusIndicator text={deforestationRiskMapping(info.getValue())} />           ),         }       ),


Cr 608

Added questionnaires.
add to data:-
cases/data/cases/add
cases/data/questionnaires/add
reset data:-
cases/data/cases/reset
cases/data/questionnaires/reset

Made changes to POST services to throw CTPExceprtion (404) on duplicate ID


Handle /report and /report/

Right now the Chrome extension returns an error if the configured URL ends in /report, not /report/. It took us a moment to figure this out, and it would be a nice bit of polish if either was matched. I'm happy to submit a pull request for this, if you'd like.

Right now the Chrome extension returns an error if the configured URL ends in /report, not /report/. It took us a moment to figure this out, and it would be a nice bit of polish if either was matched. I'm happy to submit a pull request for this, if you'd like.

Hows this been working for you?


Unhandled ECONNRESET error

I see the following often in my CI:
$ tsc ./src/test/browser/runTests.ts --outDir ./dist/browser/test --rootDir ./src/test/browser --target es6 --module commonjs
/Users/runner/work/1/s /Users/runner/work/1/s/dist/browser/test/index
Serving dev extensions from /Users/runner/work/1/s
Listening on http://localhost:3000/
events.js:377
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)
Emitted 'error' event on ClientRequest instance at:
    at TLSSocket.socketErrorListener (_http_client.js:475:9)
    at TLSSocket.emit (events.js:400:28)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  errno: -54,
  code: 'ECONNRESET',
  syscall: 'read'
}

(from https://dev.azure.com/vscode/vscode-pull-request-github/_build/results?buildId=70217&view=logs&j=bf770c6b-39e5-569e-4808-1859a08d14ab&t=dbcdb93c-9c4d-5e3b-231d-19272cc2845d).
This looks a lot like https://github.com/microsoft/vscode-test/issues/153. It would be great if a retry could be added for vscode-test-web too assuming it's the same issue.

Duplicate of https://github.com/microsoft/vscode-test-web/issues/43
In the meantime, this got fixed for the CLI. When using the API of the node module, make sure to have a uncaughtException handler in your test runner


Setting Contributor Description Fails

Querying the contributors for a resource using the api returns something like this:
[
   {'name': 'John Smith', 'description': '', 'organization': 'USU', 'email': '', 'address': 'Logan, UT', 'phone': '', 'homepage': 'Johnhomepage.com'},
   {'name': 'Jane Smith', 'description': '', 'organization': 'USU', 'email': '', 'address': 'Logan, UT', 'phone': '', 'homepage': 'Janehomepage.com'},
   ...
]

Setting a contributor with a non-empty description results in an error:
data = {"contributors": [{"name": "John Smith", "description":"test", "organization": "USU"},
                         {"name": "Lisa Miller", "email"<EMAIL_ADDRESS>hs.updateScienceMetadata(to_res, metadata=data)

File ".../hs_restclient/hs_restclient/__init__.py", line 471, in updateScienceMetadata
    raise HydroShareHTTPException((url, 'PUT', r.status_code, metadata))
hs_restclient.exceptions.HydroShareHTTPException: Received status 400 Bad Request when accessing https://www.hydroshare.org/hsapi/resource/797ddef2a0cf44c8806a4b1a17ba62d9/scimeta/elements/ with method PUT and params {'contributors': [{'name': 'John Smith', 'description': 'test', 'organization': 'USU'}, {'name': 'Lisa Miller', 'email'<EMAIL_ADDRESS>

@Castronova  The 'description' field is a URL type field. Not sure why this field is named like this. It seems it expects a url path for a specific existing hydroshare user.

@Castronova Is Pabitra's suggestion helpful, does it at least get you unblocked?

It makes sense, but I think the field should be renamed to reflect that it's a URL type.

stale.

stale.


Allow custom regex for line comments

Hi there, we have a large Fortran codebase at my company, mostly fixed-form, written in the 80s and 90s. We have some fancy extra syntax and 'transpile' all of our files to ".f.f" before compiling it. In the untranspiled form, we use a different specifier for line comments: ";*". E.g. if (SOMETHING) go to 110		;* this is a comment. Ordinarily I'd just ignore the lack of highlighting for the comment, but the problem is when there is a single quote in the comment, the highlighter thinks it is the start of a string, and will subsequently highlight all following code as a string until it sees another single quote.

For large blocks of code, this is very frustrating. I have tried many different vscode Fortran syntax highlight extensions, but none of them avoid this problem. There are always large swathes of incorrectly highlighted code.
I've found that I can edit %userprofile%.vscode\extensions\krvajalm.linter-gfortran-2.2.1\syntaxes\fortran_free-form.tmLanguage.json
And change line 865 from
begin": "!",
to
"begin": "!|;\\*",
Which solves my problem. This is what it looks like after my change:

I would like to contribute this back to the repo.
What is the best way to do this? Should I make this an extension setting and expose the whole free-form comment.line regex to the user?
I am keen to open a PR for this as part of Hacktober. :)
Thanks!

Hi @Aralox you might want to have a look at the better-comments VS Code extension and possibly raise the issue with them about using custom comment characters. If I remember this PR in better-comments aims to do something similar https://github.com/aaron-bond/better-comments/pull/127
Also, I think the author of better-comments has yet to merge a fix for the extension to do what is supposed to (fancy highlighting) in modern fortran see https://github.com/aaron-bond/better-comments/pull/186, but that shouldn't really matter in your case.

Thanks for the suggestion @gnikit. I gave it a go but it seems to clash with Modern Fortran's highlighting. In any case, I think even if it could be modified to support custom comment characters, I don't think it'd help with my problem. The rest of the code's highlighting (excluding comments) is still handled by Modern Fortran, and if there's a single-quote in the comment (regardless of whether it is highlighted by another extension), it will think that's the beginning of a string block, and wrongly color all following code.


Save Army Code when cutting/copying the bag

Is your feature request related to a problem? Please describe.
Right now the code gets cleared when you copy or cut the bag. Putting in the army code will load the army with any models "remembered" intact.
Describe the solution you'd like
The army code persists between copies and cuts.

I actually can't find a way to make TTS do this. Unfortunately I don't think it'll be possible.


falco rule update: whitelist sysdig/agent and sysdig/falco for query …

…miner domain dns
Signed-off-by: kaizhe<EMAIL_ADDRESS>
What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

If contributing rules or changes to rules, please make sure to also uncomment one of the following line:

/kind rule-update

/kind rule-create

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area examples

/area rules

/area integrations

/area tests

/area proposals

What this PR does / why we need it:
Though the rule is disabled by default, add sysdig/agent and sysdig/falco into the whitelist as they need to perform the dns query. So when the rule is enabled, it won't be noisy.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

rule(Detect outbound connections to common miner pool ports): whitelist sysdig/agent and falcosecurity/falco for query miner domain dns

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign kaizhe
You can assign the PR to them by writing /assign @kaizhe in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

rules/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

I like the idea behind this PR.
I think it needs two things before we merge it:

Change sysdig/falco to falcosecurity/falco
Change the release note and the commit message to follow the convention for rules described here https://github.com/falcosecurity/falco/blob/master/CONTRIBUTING.md#rule-type

Done. Thanks!

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS [fntlnz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 3cf89a62b4690f73da1a31bd477b7290f707abe6

Thank you @Kaizhe !!

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz, leodido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS [fntlnz,leodido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz, leodido, mstemm
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS [fntlnz,leodido,mstemm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Error

Hi guy !
I have this error on my server.

[11:02:27] [Paper Watchdog Thread/ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH  - git-Paper-253 (MC: 1.16.3) ---
[11:02:27] [Paper Watchdog Thread/ERROR]: The server has not responded for 10 seconds!  Restart your server, not reload.


Error when resolve_relation_values=True

Hey!
In contrast to #26 , I can see rollups. However, I cannot see the original relation value. When I set resolve_relation_values=True, I get the following error:
Traceback (most recent call last):
  File "C:\Users\m_thi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pandas\core\indexes\base.py", line 3621, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 136, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 163, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'Beschreibung'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "a:\xxx\notion_fin_test.py", line 10, in <module>
    df = notion_df.download(page_url, resolve_relation_values=True)
  File "C:\Users\m_thi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\notion_df\agent.py", line 54, in wrapper
    out = func(client=client, *args, **kwargs)
  File "C:\Users\m_thi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\notion_df\agent.py", line 216, in download
    relation_df.notion_ids, relation_df[rel_title_col]
  File "C:\Users\m_thi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pandas\core\frame.py", line 3505, in __getitem__
    indexer = self.columns.get_loc(key)
  File "C:\Users\m_thi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pandas\core\indexes\base.py", line 3623, in get_loc
    raise KeyError(key) from err
KeyError: 'Beschreibung'

Also when resolve_relation_values=False, no relation properties show up - only rollups are showing. When False, there is no error though

Thanks! Will take a look later!


Add in CORS support

The API will now accept REST requests from any url, this can be changed
in KanbanikAPI.scala by changing the first added header value in the
proccess method
resp.addHeader("Access-Control-Allow-Origin","*") from * to whatever
origin you would like to limit it to

While the API works, it breaks the web app.  "Unable to deserialize JSON"


Reaction

This PR brings back the reactions module.
The reactions/_reactions.py simplified apply_reactions and compute_reaction_product.
The reactions/_attachments.py is for attachment point manipulation.
Checklist:

[x] Add tests to cover the fixed bug(s) or the new introduced feature(s) (if appropriate).
[x] Update the API documentation is a new function is added or an existing one is deleted.
[x] Added a news entry.

copy news/TEMPLATE.rst to news/my-feature-or-branch.rst) and edit it.

[x] Add tutorial.

Thanks Lu. I'll review it today.
Please be careful next time abut starting from an up-to-date main branch to prevent committing many old and unrelated files.

@zhu0619 and @maclandrol: I am done here if you want to review it again.
@zhu0619 : I have made some API modifications. Can you check whether your code still work with this PR? If not then we can discuss whether it's best to change back the API or modify your code.


AttributeError: 'builtin_function_or_method' object has no attribute 'view'

hi .when i run demo.py get the error .
feat = feat.view(feat.size(0), -1, feat.size(3))
AttributeError: 'builtin_function_or_method' object has no attribute 'view'

I have meet the same problem as you, have you solved it?


Fix escaping multibyte Unicode characters.

Encode multibyte Unicode characters literally (default is to escape as \uXXXX).
e.g. Chinese, Japanese.

Thanks @cryptour


Barcodes that begin with a number should be allowed

MSL uses barcodes with a leading number:
3238902627155
323890267896K
3238902375010
3238902712622
3238902620181


Handling Server Errors

Currently, the error response leads to JSON decode error. It should not happen and it must be handled by reading status code and custom errors must be raised.

This is done.


Get rid of CommitmentTest?

What is this doing for us? I find it hard to navigate, wonder what others thing.

Is it implicitly assuming that we are going to want to test all commitment schemes with all possible sets of commitment scheme parameters? If not then why define CommitmentSchemeParams at the top level?


Update openshot-video-editor to v2.1.0

After making all changes to the cask:

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

Thank you for the contribution. It needed some fixes, so they were made in d088f20e7b46e65a1c1657e08303e7d9ee40ae0e. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


Save

'agent.save(path)' saves the trained policy along with the agent definition (algorithm & backend).
'agent = easyagents.agents.load(path)' instantiates the same agent & backend along with the trained policy. after calling load agent.play() may be called immediately.
missing: callback 'save.Best(path)'

LineWorld included as a built-in test environment, see  easyagents.env._LineWorld


Zperf improvements tcp

This serie is improving zperf library code quality and it's implementing multiple TCP connections handling in the TCP receiver module.

I'm just wondering though - we now can have mutliple zperf download sessions running at the same time, but only one session callback. This is fine, however I'm thinking that perhaps it'd make sense to extend the callback structure with some unique session identifier? Right now, the application have no way to link events with a specific session. Socket FD could for instance be used as a session ID, as the system guarantees its uniqueness. WDYT?

I think would be nice, but I've checked also the UDP part and even if it's handling multiple connections, it is not giving any info about the zperf session.
In the case someone is going to implement this improvement, it should be a different PR in my opinion, the current work is aligned between TCP and UDP callbacks.
Please, let me know your thoughts about that.


"Bălțești", "Izești", "Podenii Vechi" are listed in the drop-down menu

Description:
When user writes "Bălțești", "Izești" and "Podenii Vechi" the locations appear in the drop-down menu next to the comune and the county witch is a part according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Bălțești"
Expected results
The location appears in the drop-down menu as "Sat Bălțești, PRAHOVA (Bălțești)"

Step 2
Press "x" button.
Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Izești"
Expected results
The location appears in the drop-down menu as "Sat Izești, PRAHOVA (Bălțești)"

Step 4
Press "x" button.
Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Podenii Vechi"
Expected results
The location appears in the drop-down menu as "Sat Podenii Vechi, PRAHOVA (Bălțești)"


Caching

Add caching annotations on the required service methods.
Can probably look at ore to see what exactly they cached.

duplicate of #1087


Total Ones

🚀 Feature
Count the total number of digit 1 appearing in all non-negative integers less than or equal to n
Have you read the Contributing Guidelines on Pull Requests?
Yes.
Motivation
A good problem for solving involving math concepts.
Pitch
A good problem for solving involving math concepts.

I am a gssoc21 participant please assign this to me

/assign


Fix static methods

Coverage increased (+0.07%) to 68.707% when pulling e88c9d833c8e83fc6481d1a2ab7f10f77ae7df65 on cleanup-static into c37b782bd0a9259900e77e201d354aef9fd90e32 on cleanup.


Problems with project hooks for controllers after upgrading to v0.12.x

Hi! In my sails.js application I have some project hooks for controllers. It looks like:
// api/hooks/say-hi/sayHi.js
module.exports = function (controller) {
    controller.sayHi = function sayHi() {
        return 'Hello';
    };
};

// api/hools/say-hi/index.js
var sayHi = require('./sayHi.js');
module.exports = function (sails) {
    return {
        initialize: function (next) {
            var eventsToWaitFor = [];

            if (sails.hooks.controllers) {
                eventsToWaitFor.push('hook:controllers:loaded');
            }

            sails.after(eventsToWaitFor, () => {
                _.each(sails.controllers, controller => {
                    sayHi(controller);
                });
                next();
            });
        }
    };
};

After starting application I've got message:

verbose: say-hi hook loaded successfully.

And if I try to call this.sayHi() in any controller's action I get an error:

verbose: Sending 500 ("this.sayHi is not a function") response:
TypeError: this.sayHi is not a function

The same situation also with hooks for models. It worked fine with sails v0.11.5 but it doesn't work in v0.12.1. In migration guide I haven't seen any changes about hooks. Where is my mistake?

@NachtRitter Interesting, thanks for posting.  It took me awhile to track down what's going on here, and it boils down to this line which was added to allow hooks to extend controllers (but never documented). Since _.merge always returns a copy of the destination object, the context of the source methods is lost, so the this in a controller action doesn't include the function you're adding.
There are a few ways we can go here, but the bigger point in this case is that at least for controllers, what you're doing (adding methods to a controller that are meant to be called programmatically) isn't really recommended and certainly not documented.  You should be using services for this.  If the system was working properly, then anything you added to the controller (such as the sayHi method) would also be manipulated by other hooks--for example, it might get policies applied to it, which means it would become an array of functions, so calling this.sayHi() wouldn't work anyway.  It does make a bit more sense for models, though, so with that in mind I'll think about the best way forward.

@sgress454, thanks for your reply. It's pity that I've done an architectural mistake and guess I am able to  rewrite the biggest part of my hooks into services. Also it would be great to get some pieces of your advice.
I added some functions to every model (like in my example), e.g. :

"force actions" (model query methods without validations - Users.forceUpdate());
event emitters for models  (transaction start, before and after model query methods  I call mixins with additional logic for another entities, triggers for building Elasticsearch indexes, logging entity changing - Users.createEvent()).

I can collect this methods from hooks to service, but how I should apply this service to my models like I used their as hook?
Also I hardly realize how I should transform my hook with adding regex rules to every  properties of models with string type, etc. to service.
I will be a lot of thankful for your advices.

@NachtRitter I was really only referring to controllers--if you want to use hooks to add methods to models, I think that's fine.  Models are meant to have methods attached to them that are called in your other code; controllers actions are meant only to be triggered by requests.

It's pity that I've done an architectural mistake and guess I am able to rewrite the biggest part of my hooks into services. Also it would be great to get some pieces of your advice.

I think it's not a bad idea to use hooks in your app-- it gives you more flexibility and power than services.  I'd just suggest that, when in doubt, you stick to the basic functionality of hooks; e.g.

exposing additional methods on your models, as @sgress454 pointed out
exposing methods on the hook itself (i.e. much like you would use a service)
binding shadow routes to handle requests directly, or to be used as middleware
running code when your app lifts
validating and providing default values for custom configuration options.

Specifically re: your questions:

event emitters for models (transaction start, before and after model query methods I call mixins with additional logic for another entities, triggers for building Elasticsearch indexes, logging entity changing - Users.createEvent()).

We use emitters in Sails core because it's an easy way to deal with incremental, distributed loading of a framework with dynamic pieces (hooks) in a way that's familiar to intermediate-to-advanced node.js devs.  On the other hand, using EventEmitters in business logic is like releasing poisonous snakes in a preschool classroom-- I would avoid it whenever possible.  Take that w/ a grain of salt of course, since partly it's a matter of taste.  But I feel I should warn you about a few of the biggest concerns I've run into w/ EventEmitters:

emitters have a way of swallowing your stack traces-- that is, it usually takes a bit of planning and time to get your stack trace to go back further than the moment when .emit() was called.  Because planning and time are involved, and we're developers with stuff to do, this pretty much never happens-- which can make errors hard to debug since you oftentimes don't know exactly where they came from.
In Node.js by default, if you emit an event called error, and the EventEmitter does not have a handler bound for that event, the process will crash.  This sounds logical enough at first, but its not something you want to be messing with in your business logic.
EventEmitters are responsible for 100% of the major memory leaks I've run into using Node; and I don't mean the error message about "possible memory leak detected"-- that's a separate problem which usually isn't that big of a deal (although it is kind of ironic).  No, I just mean that event emitters are really good at "fooling" the garbage collector.  The gc does exactly what it's supposed to when the emitter itself is no longer referenced (the listener functions are freed) -- but that doesn't matter in many cases because the emitter is either a deliberately long-lived variable or has been stuffed into so many different dictionaries and arrays that you would have a hard time hunting them all down.  This can be resolved with removeAllListeners().... if you remember to do that! ("remembering to do that" probably belongs in the same category as "planning" and "time" mentioned above, at least in my case)
Inevitably when working with event emitters, it gets really hard to trace back and figure out when your code is going to run.  Even then over time, I've found I usually end up being forced to implement spin-locks.

force actions" (model query methods without validations - Users.forceUpdate());

:+1: This seems reasonable to me-- like @sgress454 said, there's nothing wrong with custom model methods if you're doing stuff related to your models.  The only reason I don't use them as often myself these days is because I prefer to write node machines whenever possible for consistency.  That said, that's a matter of personal preference, and model methods still have their place.  I'd suggest always using a conventional function signature (function (options){} if synchronous; or function(options, cb) {} if asynchronous).  It feels weird at first, but over time, it becomes immensely relieving imo.
--
@NachtRitter Wish I had more time to walk through this with you, but I hope that at least helped to provide some more context.  re: what you already have implemented in your app, if it ain't broke, don't fix it-- but if you're spending a bunch of time trying to crawl back out of a hole, there's nothing wrong with rewriting (just do it bit by bit).  And keep up the good work!


Remove or change content of AriesBifold prompt

When a user taps "Get Person credential" on iOS, they are presented with a prompt that states "AriesBifold" wants to use "gov.bc.ca" to sign in. This message is confusing and causes people to think it's a scam/spam message that they hesitate to tap continue.
We should either remove the prompt or at the very least reword the prompt so that it makes sense.

@cvarjao After speaking with @bryce-mcmath , the changes we have control over for the prompt won't be enough to help deter people feeling like it's a pop up scam. The only thing we have control over is change the name of our app which will still have the prompt say "BC Wallet" Wants to use "gov.bc.ca" to Sign In." Which still doesn't make much sense. Also, the body of the prompt is concerning as well.
I think it's important to fix this prompt (or remove it) to ensure that people go through the Person credential flow with confidence.

@knguyenBC @cvarjao This one already says "BC Wallet". If we want to get rid of it we need to do some notable refactoring and I'm not sure its worth it. That dialogue box is quite common and iOS and users should expect it if they use the Authentication view - which quite a few apps do.

I think we discussed this is person last time as well. We can close this then.


Attempt to eliminate race conditions for tests

Failure on test fires much more rare.

Let's try to run test for current version of PR several times - no any warning and race conditions ))

Also add async: false for avoid rare collision of Cowboy's port binding

Thank you. :yellow_heart:


Add MapR info to README

Resolves #227.

@sourcedelica really cool, very clear!
Just have one wonder regarding the declare, as commented I thought it wasn't necessary anymore :-S

I've added the EXTRA_CLASSPATH per your instructions.  Let me know if there's anything else you'd like, otherwise, I can squash everything onto a separate branch and open another PR on that.

This is fantastic! Thanks a lot @sourcedelica
Great job

My pleasure!


Hybrid MySql relation return error on 2.2.0!

Hi,
I have just upgraded from 00d3b8b0a33ec4fcca88e43a9b0e0389efb90715 to v2.2.0 and this error returned:

Argument 1 passed to Jenssegers\Mongodb\Query\Builder::__construct() must be an instance of Jenssegers\Mongodb\Connection, instance of Illuminate\Database\MySqlConnection given, called in /home/vagrant/Code/Laravel/maidzo/admin/vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Model.php on line 509 and defined

does anyone facing the same issue?

In what situation do you get this error? It seems that it is not covered by the unit tests.
Anyway, I added back a method that I deleted to cleanup the class, does it work now?

I'm facing the issue while declaring connection as mysql as documented in: https://github.com/jenssegers/laravel-mongodb#mysql-relations

use Jenssegers\Mongodb\Model as Eloquent;

class Customer extends Eloquent implements Transformable {
    protected $connection = 'mysql';
}

Just applied your changes but the error still occur.

But that doesn't look right. It should be Jenssegers\Eloquent\Model if you want to use MySQL. There is also a HybridRelations trait that you can now add to original Eloquent models.

Try this:
use extends \Illuminate\Database\Eloquent\Model;
use Jenssegers\Mongodb\Eloquent\HybridRelations;

class Customer extends Model implements Transformable {

    use HybridRelations;

}

Ah okay, the Jenssegers\Eloquent\Modelfixed the issue without the need of change of Model.php. I have no idea why it work with Jenssegers\ Mongodb\Model before.
Thank you so much!


[Bug]

The new cloned repository seems not to be working
I have cloned the repo and refreshed the page several times but the repo is not updating and the readME file remains the same
I have done the steps below

Go to github skills
Click on javascript actions
Scroll down to Start course
Enter your new repository name
Click create repository
Refresh the repository
See error ,no New ReadME file as stated in the read me

Please include screenshots.
Additional context
Add any other context about the problem here.

Duplicate of https://github.com/skills/write-javascript-actions/issues/37


fix link for coroutine sample

@bfkelsey Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


Need a workflow for TurnServer with WebRTC

Hey Alex,
I was going through your work. Its really insane. Can you help me with setting up a turn server on aws. This is the config im using in coturn.
listening-port=3478
tls-listening-port=5349
listening-ip=<Public-IP>
external-ip=<PUBLIC-IP>/<Private-IP>
realm=localhost
min-port=49152
max-port=65535
lt-cred-mech
server-name=localhost
user=test:test123
relay-ip=<LOCAL-IP>
cli-credentials=<Credentials>

while in .yaml i have added
webrtc:
  ice_servers:
    - urls: [stun:stun.l.google.com:19302]
    - urls: [turn:<Public-IP:3478]
      username: test:test123
      credential: <Credentials>

on websites like 'https://icetest.info/' it works fine. but i dont get any message. and if its working what changes are needed in frotend to stream it. This is the coturn log
sudo coturn /etc/turnserver.conf
0: : Bad configuration format: no-rfc5780
0: : log file opened: /var/log/turn_10379_2024-05-03.log
0: : Bad configuration format: no-stun-backward-compatibility
0: : Bad configuration format: response-origin-only-with-rfc5780
0: : Config file found: /etc/turnserver.conf
0: : Bad configuration format: no-rfc5780
0: : Bad configuration format: no-stun-backward-compatibility
0: : Bad configuration format: response-origin-only-with-rfc5780
0: : Config file found: /etc/turnserver.conf
0: : Bad configuration format: no-rfc5780
0: : Bad configuration format: no-stun-backward-compatibility
0: : Bad configuration format: response-origin-only-with-rfc5780
0: :
RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
Version Coturn-4.5.2 'dan Eider'
0: :
Max number of open files/sockets allowed for this process: 1048576
0: :
Due to the open files/sockets limitation,
max supported number of TURN Sessions possible is: 524000 (approximately)
0: :

==== Show him the instruments, Practical Frost: ====

0: : TLS supported
0: : DTLS supported
0: : DTLS 1.2 supported
0: : TURN/STUN ALPN supported
0: : Third-party authorization (oAuth) supported
0: : GCM (AEAD) supported
0: : OpenSSL compile-time version: OpenSSL 3.0.2 15 Mar 2022 (0x30000020)
0: :
0: : SQLite supported, default database location is /var/lib/turn/turndb
0: : Redis supported
0: : PostgreSQL supported
0: : MySQL supported
0: : MongoDB is not supported
0: :
0: : Default Net Engine version: 3 (UDP thread per CPU core)

=====================================================

0: : Domain name:
0: : Default realm:
0: : ERROR:
CONFIGURATION ALERT: Unknown argument: /etc/turnserver.conf
0: : ERROR:
CONFIG ERROR: Empty cli-password, and so telnet cli interface is disabled!  I have tried it only once for tests. I think you already have seen example docs:
https://github.com/AlexxIT/WebRTC/wiki/Coturn-Example

Yes Alex, have already tried it. Do you think it can be a issue if im building everything locally without docker

Maybe. Because docker usually have "ready to go" solutions.


feat: lake exe unused

A tool for library-scale analysis of unused imports.
lake exe unused module_1 module_2 ... module_n
will generate a markdown table with rows and columns indexed 1 through n, with an x in (i, j) if module_i transitively imports module_j, but makes no direct use of the declarations there.
(This is often an indication that some intermediate file module_k could be split into two parts, one that needs module_j, and another that is needed by module_i, thereby removing the transitive import of module_j into module_i.)
The tool further identifies large rectangles of xs in this table, and suggests lake exe graph commands that can show the dependency structure from the unused import up to the earliest file which "unnecessarily" transitively imports it.
scripts/unused_in_pole.sh module (or no argument for all of Mathlib), will calculate the current longest pole in Mathlib (note for this you need to be on a commit on which the speed center has run), and then feed that list of modules into lake exe unused.
Demo video at https://youtu.be/PVj_FHGwhUI

[x] depends on #18157

Yes, the lake exe graph commands only depend on the bottom right corner of the rectangles it finds.
The width of the rectangle tell you how many grey nodes will follow the --from node.
The height of the rectangle isn't apparent, but it's "how many steps you could push the --to node downwards, with those grey nodes staying grey.
Options:

deduplicate the lake exe graph commands
adjust lake exe graph to allow multiple --to flags (or passing a list), and then highlight all the --to modules some other way.

Option 2 would result in faithfully illustrating the rectangles, but I think it is not really given much extra useful information, and Option 1 is the way to go. :-)

I'm offline for about 48 hours, but I'll try to do the deduplication when I'm back.

Thanks @edegeltje, @grunweg, and @TwoFX, I've made all the suggested changes.

The PR commit message is nice and detailed. Even more than the docs, it seems. Could you please copy some of the details/examples/motivation to the docs?
bors d+

bors merge


Use as pure java without android lock in

Is this possible today?

Yes all android stuff is in a single module. Do not add the android support
and you will be good.
On Dec 27, 2017 2:12 PM, "Peace Michaels"<EMAIL_ADDRESS>wrote:

Is this possible today?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/apollographql/apollo-android/issues/778, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AEUX3IWc1Sezb2yJBZInFWIeD8l1bSJuks5tEpalgaJpZM4RNvYP
.

thanks @digitalbuddha then it makes sense to split this project in two. Apollo-Java and Apollo-android atop the former.

Keeping  different modules in same project makes refactoring and deployment easier. You can add a blurb to Readme if you'd like 🙂