Updated Secure

Updated Secure

updated check deploy variables

updated attempts reset on logout

@enoren5 :heart: Thank you :rocket:

Thank you, @UmarGit. I am glad that is clarified. I merged your changes into master and pushed to Heroku. Not only is Heroku showing a (500) Server Error, but (heroku) $ python manage.py check --deploy is still showing all the security warnings.  Part of the original requirement was that Heroku needs to be deployed and that Django's built-in security check needs to pass validation. When I run the check, the output now looks the same as when it was before you completed this work. Here is the out put again:
(heroku) $ python manage.py check --deploy

Mode:  Not Secure

Database Config:  {'default': {'NAME': '/app/db.sqlite3', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', 'CONN_MAX_AGE': 600, 'ENGINE': 'django.db.backends.sqlite3'}}

System check identified some issues:

WARNINGS:
?: (security.W004) You have not set a value for the SECURE_HSTS_SECONDS setting. If your entire site is served only over SSL, you may want to consider setting a value and enabling HTTP Strict Transport Security. Be sure to read the documentation first; enabling HSTS carelessly can cause serious, irreversible problems.
?: (security.W008) Your SECURE_SSL_REDIRECT setting is not set to True. Unless your site should be available over both SSL and non-SSL connections, you may want to either set this setting True or configure a load balancer or reverse-proxy server to redirect all connections to HTTPS.
?: (security.W009) Your SECRET_KEY has less than 50 characters or less than 5 unique characters. Please generate a long and random SECRET_KEY, otherwise many of Django's security-critical features will be vulnerable to attack.
?: (security.W012) SESSION_COOKIE_SECURE is not set to True. Using a secure-only session cookie makes it more difficult for network traffic sniffers to hijack user sessions.
?: (security.W016) You have 'django.middleware.csrf.CsrfViewMiddleware' in your MIDDLEWARE, but you have not set CSRF_COOKIE_SECURE to True. Using a secure-only CSRF cookie makes it more difficult for network traffic sniffers to steal the CSRF token.
?: (security.W018) You should not have DEBUG set to True in deployment.

System check identified 6 issues (0 silenced).

It's also worth point out that part of that output, the Mode is showing: "Not Secure" when the Mode should show: "Secure !!" in prod. For some reason  your DJANGO_DEBUG switch still isn't being triggered properly on Heroku.


click Save To Crontab  button error

Make sure these boxes are checked( - [x] ) before submitting an issue.

[√] Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
[√] The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
[√] Read issues.md
[√] Gone through existing open and closed issues.

node version
v14.15.4
os:termux
HOST=<IP_ADDRESS> PORT=8001 crontab-ui --autosave
Cron db path: /data/data/com.termux/files/home/crontab-ui-data
Node version: 14.15.4
Crontab UI is running at http://<IP_ADDRESS>:8001
[Error: ENOENT: no such file or directory, open '/tmp/crontab'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/tmp/crontab'
}
the real crontab file is this
/data/data/com.termux/files/usr/tmp/crontab.a4sLJw

i read the code and resolve it,
declear the CRON_PATH env, that works, it save right


Limit amount of dcr to 8 decimal places

Send page, amount input size is too big. Input should be limited to 8 decimal places.

Verified in latest build.

Please add a link to the commit where the fix was deployed.

Tested this. Its only taking 8 numbers, but it does not know where the decimal is. So
.12345678 works
1.1234567  works <- only 7 though
12.123456 works <- only 6 though.
It should be 8 for all cases.

Verified fixed in latest commit.


Adding suport to stop build api

Would be great to add this command to the README!

@jansepar
Thanks for your considerations. was fixed in the next commits.

Hey @jansepar what's going on with this PR, can it be merged?

Hi guys, sorry for the delay on this, it's looking good thanks! :+1:


Cloud Error Reporting Exception Logger for ASP.NET Core

Cloud Error Reporting Exception Logger for ASP.NET Core and middleware to allow users to easily report all unhandled exceptions to the Stackdriver Error Reporting API.

@chrsmith FYI. Thanks :)

Ian, I'm on vacation now until January. Perhaps @evildour could have a look, if he's still working?

@jskeet I'm on vacation until January starting tomorrow afternoon.  I figured this would sit for sometime but I'll add Mike to see if he can do it in the mean time.
It's no rush :)

@evildour If you have some spare bandwidth and don't mind taking a look at this could you? Thanks!

Yes, I'm still working. I might be able to find some time to look into this and the other PR later today.

Awesome, thanks, it's no rush if you don't have time.  It's low priority.


substitution feature to create a secret from an already existing secret

Describe the bug
Hi All,
can I use the substitution feature to create a secret from an already existing secret?
There is already a secret that exists in Kubernetes with data
data:
{
name:postgresdb
user:postgres_user
password:postgres_password
}

and we want to create one more secret out of it with i.e.
data
{
db_name: $name
db_user: $user
db_password: $password
}

code:
below is the new secret which I am trying to create
apiVersion: v1
kind: Secret
metadata:
  name: my-secret-test
type: Opaque
stringData:
  #myDbname: ${dbname:=NA}
  #myUserName: ${username:=NA}
  myPassword: ${password:=NA}

below is the Kustomization for the same
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: apps
  namespace: my-namespace
spec:
  interval: 5m
  path: "./core/keycloak/apps/"
  prune: true
  sourceRef:
    kind: GitRepository
    name: ######-git
  postBuild:
    substituteFrom:
      - kind: Secret
        name: my-secret

The secret is getting created, but with the input string it self(refer below)
apiVersion: v1
data:
  myPassword: JHtkYm5hbWU6PU5BfQ== (to base64 of this is ${dbname:=NA})
kind: Secret
metadata:
  labels:
    kustomize.toolkit.fluxcd.io/namespace: flux-system
  name: my-secret-test
  namespace: my-namespace
type: Opaque

Steps to reproduce

Please refer to the description
I am trying to create a secret from an already existing secret using a substitute feature, this only works if I use the flux-system secret which is automatically created when I use the flux bootstrap command. But when i tried to import secret from another secret it giving me the above error.

Expected behavior
This should be generated
apiVersion: v1
data:
  myPassword: a2V5Y2xvYWs= (to base64 of this is keycloak)
kind: Secret
metadata:
  labels:
    kustomize.toolkit.fluxcd.io/namespace: flux-system
  name: my-secret-test
  namespace: my-namespace
type: Opaque

Screenshots and recordings
No response
OS / Distro
Ubuntu (wsl), k8s cluster is created using k3d
Flux version
flux version 0.22.0 I am using
Flux check
► checking prerequisites
✗ flux 0.22.0 <0.24.0 (new version is available, please upgrade)
✔ Kubernetes 1.21.5+k3s2 >=1.19.0-0
► checking controllers
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.17.0
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.12.1
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.18.1
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.17.2
✔ all checks passed
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hey @rakeshreddyrg09 ,
Can you crosscheck that the referenced secret contains a key with the value? What data does my-secret contain?

Hi @SomtochiAma
Below is the secret from where I am trying to fetch the values
apiVersion: v1
data:
myPassword: YWJjMTIz
kind: Secret
metadata:
labels:
kustomize.toolkit.fluxcd.io/namespace: flux-system
name: my-secret
namespace: my-namespace
type: Opaque

@rakeshreddyrg09 can you please read the docs on how this works: https://fluxcd.io/docs/components/kustomize/kustomization/#variable-substitution
PS. you're using ${password} but there is no such thing defined in your valuesFrom secret, change it to:
data:
  password: YWJjMTIz
kind: Secret
metadata:
  labels:
    kustomize.toolkit.fluxcd.io/namespace: flux-system
  name: my-secret
  namespace: my-namespace
type: Opaque

@rakeshreddyrg09 can you please read the docs on how this works: https://fluxcd.io/docs/components/kustomize/kustomization/#variable-substitution
PS. you're using ${password} but there is no such thing defined in your valuesFrom secret, change it to:
data:
  password: YWJjMTIz
kind: Secret
metadata:
  labels:
    kustomize.toolkit.fluxcd.io/namespace: flux-system
  name: my-secret
  namespace: my-namespace
type: Opaque

sorry for the above typo, it is actually a password


Fix soudness issue with Conflicts involving read_all and write_all

Objective

Fixes https://github.com/bevyengine/bevy/issues/14575
There is a soundness issue because we use conflicts() to check for system ambiguities + soundness issues. However since the current conflicts is a Vec<T>, we cannot express conflicts where there is no specific ComponentId at fault. For example q1: Query<EntityMut>, q2: Query<EntityMut>
There was a TODO to handle the write_all case but it was never resolved

Solution

Introduce an AccessConflict enum that is either a list of specific ids that are conflicting or All if all component ids are conflicting

Testing

Introduced a new unit test to check for the EntityMut case

Migration guide
The get_conflicts method of Access now returns an AccessConflict enum instead of simply a Vec of ComponentIds that are causing the access conflict. This can be useful in cases where there are no particular ComponentIds conflicting, but instead all of them are; for example fn system(q1: Query<EntityMut>, q2: Query<EntityRef>)

I like these little suggestions: let me know if you want to do them now or in a follow-up :)

I like these little suggestions: let me know if you want to do them now or in a follow-up :)

They make sense to me; I applied them now!

@cBournhonesque let me know when the conflicts are resolved. I was pretty sure this would happen 😂

@cBournhonesque let me know when the conflicts are resolved. I was pretty sure this would happen 😂

Indeed! Updated :)


Add flag to disable synchronous IO

Because blocking threads is bad so we want a way to turn this off synchronous IO by default to let you shoot yourself in the foot if you want this behavior.

throw new NotWiseException()?

Throw new Bang (Target.Foot)

@davidfowl you planning to get this added this week?

@DamianEdwards I'm not sure we can do this for preview. There's too much churn and too many other important things to do in Kestrel right now (like stabilize the build).

@davidfowl @DamianEdwards We'd like to punt this out to 2.1.  That OK with you guys?

Talked to @DamianEdwards in person, we'll try to do this in 2.0.0.


Eagle Woman That All Look At's ability doesn't work in shootout

Card
Eagle Woman That All Look At
Describe the bug
When in a shootout, it is not possible for other shamans to use the ability bestowed by Eagle Woman That All Look at.
To Reproduce
Steps to reproduce the behavior:

Have Eagle Woman That All Look At in play.
Start a shootout with another shaman inside
During shootout play, right click the shaman
The "use ability" button is disabled. It should be enabled, as it is during noon plays.

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I didn't test a lot. But I encountered the bug on a shaman that had another noon ability (Mazatl) that I had already used during the day.

@anthony-colpron I do not see any mention of the required cost of booting a spirit. You sure there was a spirit in the Mazatl's location to boot?
Because I did a set of tests, some with Mazatl and it worked exactly as expected. Even booting totems at the location and even if Mazatl's ability was already used.
Thus I will need to ask you to please recreate it, and also post a screenshot.

Closing as not reproduced


500 error Next.js SSR

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
d1l0h2bsjx0rcs
AWS Region
ap-south-1
Amplify Hosting feature
Build settings, Deployments, Frontend builds, Monorepo, SSR
Describe the bug
When loading the page https://release.d1l0h2bsjx0rcs.amplifyapp.com
getting 500 error, the build is getting generated successfully.
x-cache: error from Cloudfront
Expected behavior
the url https://release.d1l0h2bsjx0rcs.amplifyapp.com
should load successfully, but giving 500 error, in network says 500 error from cloudfront
Reproduction steps
https://release.d1l0h2bsjx0rcs.amplifyapp.com
Please load the above url
Build Settings
version: 1
applications:
  - frontend:
      phases:
        preBuild:
          commands:
            - 'yarn global add<EMAIL_ADDRESS>            - 'lerna bootstrap'
            - 'lerna run --parallel  --scope "services" build'
            - 'lerna run --scope  "components" build'

        build:
          commands:
            - 'yarn run build'
      artifacts:
        baseDirectory: .next
        files:
          - '**/*'
      cache:
        paths:
          - .next/cache/**/*
    appRoot: web-apps/next-app

Log output

# Put your logs below this line
date,time,x-edge-location,sc-bytes,c-ip,cs-method,cs\(Host),cs-uri-stem,sc-status,cs\(Referer),cs\(User-Agent),cs-uri-query,cs\(Cookie),x-edge-result-type,x-edge-request-id,x-host-header,cs-protocol,cs-bytes,time-taken,x-forwarded-for,ssl-protocol,ssl-cipher,x-edge-response-result-type,cs-protocol-version,fle-status,fle-encrypted-fields,c-port,time-to-first-byte,x-edge-detailed-result-type,sc-content-type,sc-content-len,sc-range-start,sc-range-end
2023-02-20,06:02:10,BLR50-C3,211,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/,500,https://ap-south-1.console.aws.amazon.com/,Mozilla/5.0%20\(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20\(KHTML%20like%20Gecko)%20Chrome/<IP_ADDRESS>%20Safari/537.36,-,-,Error,Xfuv6W_uJ2PIwtQZKR6qmpIt3G6pDAT7r9iYBtUiE9DQQBPmbOUxHg\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,734,0.866,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,53355,0.866,OriginError,-,0,-,-
2023-02-20,06:05:30,BLR50-C3,209,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/,500,https://ap-south-1.console.aws.amazon.com/,Mozilla/5.0%20\(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20\(KHTML%20like%20Gecko)%20Chrome/<IP_ADDRESS>%20Safari/537.36,-,-,Error,MpnuAizUprc25kQxybpj4kpORVlansZvPiY2__P-m9GFjYz_rH9J9A\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,34,0.325,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,53355,0.325,OriginError,-,0,-,-
2023-02-20,06:05:32,BLR50-C3,214,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/,500,https://ap-south-1.console.aws.amazon.com/,Mozilla/5.0%20\(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20\(KHTML%20like%20Gecko)%20Chrome/<IP_ADDRESS>%20Safari/537.36,-,-,Error,pQ8fRqLaSQI2tjjImfrE2lsQhiwqeX-8OCIAbO8g17pcOAP1pWOn4Q\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,43,0.002,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,53355,0.001,Error,-,0,-,-
2023-02-20,06:05:33,BLR50-C3,215,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/,500,https://ap-south-1.console.aws.amazon.com/,Mozilla/5.0%20\(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20\(KHTML%20like%20Gecko)%20Chrome/<IP_ADDRESS>%20Safari/537.36,-,-,Error,d4WZOEye6MFiG7Qf0BJrGROoKb2TcATmhCBfR44UvS9lpID26wU1PQ\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,35,0.000,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,53355,0.000,Error,-,0,-,-
2023-02-20,07:34:36,BLR50-C3,211,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/,500,https://ap-south-1.console.aws.amazon.com/,Mozilla/5.0%20\(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20\(KHTML%20like%20Gecko)%20Chrome/<IP_ADDRESS>%20Safari/537.36,-,-,Error,i4DZB3NjirYbuEt2oUe_YRwiwqnlrUpVVSQ41-LN_hVOL0FdoFz7nw\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,734,0.845,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,54549,0.845,OriginError,-,0,-,-
2023-02-20,07:25:26,BLR50-C3,211,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/,500,https://ap-south-1.console.aws.amazon.com/,Mozilla/5.0%20\(iPhone;%20CPU%20iPhone%20OS%2013_2_3%20like%20Mac%20OS%20X)%20AppleWebKit/605.1.15%20\(KHTML%20like%20Gecko)%20Version/13.0.3%20Mobile/15E148%20Safari/604.1,-,-,Error,veeURVvpNr89rlOIOqUQcZeztGd-zLD6-mxciTSbe_62ZpIbnX0iSA\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,654,0.877,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,52270,0.877,OriginError,-,0,-,-
2023-02-20,08:39:07,BLR50-C3,212,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/,500,https://ap-south-1.console.aws.amazon.com/,Mozilla/5.0%20\(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20\(KHTML%20like%20Gecko)%20Chrome/<IP_ADDRESS>%20Safari/537.36,-,-,Error,CB3wvf3HdqLuNVCnbwgPEXFTqaOQ4hbDLb8S34l8PDyCtLvbjVfLdQ\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,734,0.948,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,59670,0.948,OriginError,-,0,-,-
2023-02-20,09:10:02,BOM78-P2,211,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/robots.txt,500,-,Mozilla/5.0%20\(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20\(KHTML%20like%20Gecko)%20Chrome/<IP_ADDRESS>%20Safari/537.36,-,-,Error,NPp2fqIpnH3nxdEvT2Pra-FqkfwdEkY0cpX3ISOcNcXeWCiffe6bEw\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,354,0.912,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,62712,0.912,OriginError,-,0,-,-
2023-02-20,09:10:02,BOM78-P2,211,<IP_ADDRESS>,GET,d1l0h2bsjx0rcs.cloudfront.net,/,500,-,Mozilla/5.0%20\(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20\(KHTML%20like%20Gecko)%20Chrome/<IP_ADDRESS>%20Safari/537.36,-,-,Error,MvH9uPp37MxPjofB-Wj7d_hYf8-WzmE5dJM-L0mKfJoE4P3WiBOBcg\=\=,release.d1l0h2bsjx0rcs.amplifyapp.com,https,670,0.870,-,TLSv1.3,TLS_AES_128_GCM_SHA256,Error,HTTP/2.0,-,-,62711,0.870,OriginError,-,0,-,-

Additional information

Hi @pruthviraj-developer 👋🏽 it looks like the requests are failing because there is a missing module:
Error: Cannot find module 'next/dist/server/next-server'

You can view these logs in your account by navigating to Monitoring > Hosting compute logs and then selecting the log group for the desired branch.
We are investigating this further and will provide an update once we have more information.

Hi @hloriana  Could you please update us, how to resolve the above issue, with more inputs.

@hloriana @pruthviraj-developer  Any update on the same,  I am facing the same issue, and couldn't find any solution for it.

Hi @hloriana  Could you please update us, how to resolve the above issue, with more inputs.

Just to add to above issue, I deployed same repo on Vercel and it works perfectly fine. Why is Amplify throwing a 500 error for SSR pages?

@shivpratik I don't know if you found a workaround for your issue but for me the solution was to downgrade to NextJS Version 13.2.4, for me it was a bug in v.13.3.0 as stated here https://github.com/vercel/next.js/issues/48077#issuecomment-1504501461. I don't know what version @pruthviraj-developer is using. @hloriii maybe this could be useful to have in mind. NextJS 13.2.4 is working fine even using AppDir. there's a cold start of 7 seconds but that's a totally different issue.

Hi everyone 👋 , based on the previous comments on the thread this issue seems to have been fixed after downgrading to Next v13.2.4. Also, over the past few months we have made significant improvements to how we bundle Next.js apps and we no longer rely on the standalone mode.


Add methods for dealing with mentions of Teams, Channels or Tags (Teams)

Is your feature request related to a problem? Please describe.
Teams users can mention Team names, channel names or tags when sending a message to the bot like this:
@bot send a message to all members of @test
The bot receives this mention like so (@test is a tag in Teams):
[
{
mentioned: {
id: '29:162Hx5WtM8cgUFFPBbUiJ2svduwb2P3RmuXzcqNgN-ZE',
name: 'test'
},
text: 'test',
type: 'mention'
}
]
But the bot can't do anything with this mention. It can't resolve the list of users using the mention id. It can't even figure out whether it's a team, channel or tag. All it can do is get an error when calling a method like TeamsInfo.getMember so that it knows that the mention is not a user. The mention is seems to be different than the usual "Teams id" (19:xxx).
The bot can reply using the mention above (the server accepts the message with the mention) but the Teams client does not properly recognize/highlight the mention and does not notify the users (not sure if because of spamming concerns).
Describe the solution you'd like
Implement methods to:
Translate the mention to a mention type (user, team, channel, tag)
Get the "Teams id" (19:xxx) for that mention id (29:xxx) and then
Get the list of users for that team/channel/tag (this already partially works for channels with getPagedMembers)
Allow the bot to mention teams, channels or tags and notify all users. Just like when a normal users mentions a tag, those users get a notification.
Original post here: https://github.com/microsoft/botframework-sdk/issues/5975

Feature request has been raised.


python310Packages.weasyprint: 58.1 -> 59.0, python310Packages.pydyf: 0.5.0 -> 0.6.0

Description of changes
Changelog: https://www.courtbouillon.org/blog/00044-weasyprint-59
weasyprint is tightly coupled with pydyf. Upgrading pydyf to 0.6.0 requires weasyprint 59 and vice-versa.
This bump fixes the failing builds in #233356
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

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

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

[ ] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2282


build cppcheck from source

Motivation

Please give a brief description for the background of this change.
Issue number:

Modifications
Change summary
Please describe what changes are included in this pull request.
Revision diff summary
If there is more than one revision, please explain what has been changed since the last revision.
Testing
Is your change tested? If not, please justify the reason.
Please list your testing steps and test results.

CI test run result:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Will need to add cppcheck to our attribution doc as well.

The difference between the two attribution documents is softhsm being installed from source in UBI8 and through package manager in others. Looks like softhsm missing from ubi8 attribution doc

The difference between the two attribution documents is softhsm being installed from source in UBI8 and through package manager in others. Looks like softhsm missing from ubi8 attribution doc

softhsm is there, it's just not shown in the diff


Add ability to resize Script View

Hi!
Here's my attempt to make Script View resizable.
Long story short
I write code on a 13" laptop usually, so a constant-sized panel occupies lots of valuable and very limited screen space; thus it'd be great to have an ability to resize it. In this PR, I set 200px as a default height with a minimum of 100px.

This feature was also suggested in #516, #267, #235 and #94.

Disclaimer
I'm not a JS/CoffeeScript developer by any means, so I've tried to find some examples of resizable Atom panels and then use the same techniques here for the atom-script's panel.
I'd greatly appreciate any feedback on this PR.
Thanks! 😊

This is looking great! Thanks for giving it a shot!
I'm typing this from my phone, so I'll have to try it out before we :shipit:
:cake:

Hmmmm, I'm not getting any amount of resize available to me here. No clicking the header, nothing.
Can you post an animated GIF of it in action?

Does this work? Will this be merged?
Would be really nice to have the ability to resize the window.

It certainly didn't work for me and now it needs a rebase. Next person to tackle it and have it working gets a merge clicky.

Let me know if you come back to this, I'd still like to have it in!


Adding distributed functional test.

Since Minio distributed doesn't have a suite, this called can be run
to test most of functionalities.
Need to add instructions to run the test from Dockerfile.

Rich set of tests. Works fine.


OOSI:Analytics Page UI

Fixes: #120
Upgraded and Enhanced the UI of Analytics Page.
Now Navbar has no interference with charts.
here is the final screenshot.

This is the followup to #123 , if want any changes notify me.

You should always write Fixes #issue number on the top always, while creating any PR.

Ok will do it from next time,Thanks.


PGTT is broken with PG 12 and 13

Doesn't compile since PG 12.

Yikes!

Commit 4f0ab44 might fix the compatibility of the extension from PG v9.5 to v13, at least regression tests passed on all versions.


Stuck fetching pre-roll data

When starting using crossover_vwap, the bot never actually starts.
node zenbot.js trade gdax.BTC-USD --strategy=crossover_vwap

I have over 500 hours of data in my cloud environment and running other strategies but this one seems to be stuck. Simulations run fine.
If i go into the trade.js file and remove the days variable and set it to 1, it runs right away. Maybe a bad calculation I will try to calculate some debug logs.

What are your other parameters? I believe the default needs 108 periods before it has enough data to start, so no signals will happen. Though that shouldn't prevent it from starting at all though, just means you won't see buy/sell signals until the indicators start appearing.

Recently gdax has been taking much longer than it previously was. It now takes maybe at least 5x as long to gather the same amount of data in days. I don't know if this is due to gdax limiting getting trade history, or just due to the very high volume recently coming into gdax and other exchanges which would be causing much more data to be created.

I have 687+ hours fetched and it just doesn't move on from pre-roll data from gdax. Have tried period=120m. Anyone using this successfully on gdax?

Noticed the same thing, definitely a bug.

Same thing here. Going on forever.

The days calculation fails on trade.js.
https://github.com/carlos8f/zenbot/blob/master/commands/trade.js#L313
For some reason, it is returning NaN when doing the calculation. To get past it until I can look at it more, change this line to what you need. 1 day should work but if you are trading a larger period, you need to make it bigger.
https://github.com/carlos8f/zenbot/blob/master/commands/trade.js#L335
Current
var backfiller = spawn(path.resolve(__dirname, '..', zenbot_cmd), ['backfill', so.selector, '--days', days])
Fix
var backfiller = spawn(path.resolve(__dirname, '..', zenbot_cmd), ['backfill', so.selector, '--days', 1])

Mine also stuck fetching for days when running strategy crossover_vwap.
I found out that a min_periods need to be specified.
Correct:
 ./zenbot.sh trade --paper --strategy=crossover_vwap --min_periods=100

This issue was moved to highvelocityspace/zenbot#78


Add example project

Heavily inspired by https://github.com/Koed00/django-q/pull/409

Updated django
Simplified code a little
Added make commands
Updated python version
Overall cleanup

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

8 of 8 (100.0%)  changed or added relevant lines in 1 file are covered.
14 unchanged lines in 1 file lost coverage.
Overall coverage remained the same at 89.673%

Files with Coverage Reduction
New Missed Lines
%

django_q/cluster.py
14
90.98%

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
3369

Relevant Lines:
3757

💛  - Coveralls


Use AVRO format when exporting from BigQuery to Dataframe

Code example:
    n1 = time()
    file = "{}/{}.msg".format(dataset, table)
    buffer = BytesIO(data_bucket.item(file).read_from())
    df = read_msgpack(buffer)
    n2 = time()

    print("1a. MessagePack to Dataframe: {}".format(n2 - n1))

    n1 = time()
    q = 'SELECT * FROM [{}.{}]'.format(dataset, table)
    r = Query(q).results()
    df = r.to_dataframe()
    n2 = time()

    print("1b. BigQuery to Dataframe: {}".format(n2 - n1))

Results:
1a. MessagePack to Dataframe: 2.28054285049
1b. BigQuery to Dataframe:<PHONE_NUMBER>65

I can accept that BigQuery is slower than reading from MessagePack from storage.Bucket, but 216 times slower is maybe too much? If I understand correctly 46 seconds is the query time and 8 minutes is the cost of transfer of 84 MiB binary data probably using an intermediate verbose JSON format not adapted for "big data".
BigQuery

When the results are cached the results can be relatively fast, MessagePack equivalent.
Bytes Processed	0 B (results cached)
Query complete (2.2s elapsed, cached)

132 columns (1 TIMESTAMP and 131 FLOAT)

Any plans to:

access to faster dataframe storage solution at GCP? (BigTable maybe?)
replace the inefficient JSON with something more adapted for big data like Avro for the exchange between Pandas Dataframe and BigQuery announced 2 weeks ago?

Using AVRO is a good idea. Probably worth looking at https://github.com/tebeka/fastavro too.

Moved to https://github.com/googledatalab/datalab/issues/11


Checkpoint of lonas-llama-7b-commonsense is not Available

Kindly remind you that lonas-llama-7b-commonsense is not available on huggingface.

Thank you, Peyton (@pprp ), for your kind reminder and interest in LoNAS!  Please find the adapter checkpoint for LoNAS Llama-7B-commonsense at: lonas-llama-7b-commonsense-adapter
Please reach out if you have more questions. BTW, if you want to generate and fine-tune the super-network yourself, you can use this script.

@jpablomch Really appreciate your swift reply!! Thank you for providing the link.


GraphQL for Models with Timestamps Fails when created_at Is Requested

Description
I have enabled GraphQL for a model with timestamps enabled. When I request created_at using GraphQL the exception Call to undefined method App\\Models\\Game::resolveGqlValue() is thrown.
Steps to reproduce

Add a migration for a model with timestamps enabled.

Schema::create('games', function (Blueprint $table) {
    $table->id();
    $table->timestamps();
});

Create the model using php artisan make:model Game.

Add the resource with GraphQL enabled:

'resources' => [
     \App\Models\Game::class => [
         'name' => 'Games',
         'blueprint' => 'game',
         'graphql' => true,
     ],
],

Generate the blueprint using php please runway:generate-blueprints.

Create an entry at /cp/runway/game/create.

Navigate to /cp/graphiql and run the following query:

query Games {
  games {
    data {
      id
      created_at
    }
  }
}

At this point you should get the following exception:

Call to undefined method App\\Models\\Game::resolveGqlValue()

Note:
The exception is not thrown if only the id field and not created_at is requested.
Workaround:
In my case I was able to fix the issue, by implementing resolveGqlValue() on my model using the following trait. However, I am unsure as to how good of a workaround this is.
trait ResolvesModelValues
{
    use ResolvesValues;

    public function augmentedValue($key) {
        return $this->{$key};
    }
}

Environment
Environment
Application Name: Sporttag
Laravel Version: 9.52.5
PHP Version: 8.2.3
Composer Version: 2.5.4
Environment: local
Debug Mode: ENABLED
URL: gibb-sporttag-cms.novu.io
Maintenance Mode: OFF
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: redis
Database: mysql
Logs: single
Mail: log
Queue: redis
Session: redis
Statamic
Addons: 2
Antlers: regex
Stache Watcher: Enabled
Static Caching: Disabled
Version: 3.4.7 PRO
Statamic Addons
doublethreedigital/runway: 4.2.3
statamic/eloquent-driver: 1.2.0

What does your blueprint look like?

I've had to introduce a breaking change (adding a trait to your Eloquent model) to fix this bug so this will be fixed in the next release, v5.0 which will be tagged alongside Statamic 4.
I'm going to close this issue now but you'll receive a notification on this issue once the fix has been tagged.

Awesome. Thanks a lot for the quick fix.


Output channel should support id and display name

In addition it would be nice if we change the API to have a Channel object. When calling Append on it it happens the message. I often forget the first arg which is the id right now.

@bpasero FYI.

:+1:

Closed via a big output refactoring that just got pushed to master.
@bpasero I would appreciate a quick code review, at least the interface structure in output.ts

Will do, thanks!

@isidorn some feedback:

there are many places now where you do getOutputChannel().doSomething(). I suggest instead to put the output channel as a variable of the object where it is used and just use it from there. this prevents having to get the output channel all the time
instead of getContents() on the output channel I suggest to have a get property (not a function) "output" or "contents" that returns the contents of the channel
wherever we show the output channel to the user you seem to use the ID of the channel and not the label. I think the idea was to always use the label (e.g. ARIA label, dropdown label)


Count must be non-negative when purging durable metadata

Hi,
When I try to clean up the durable metadata but no instance matches the filter I get the following exception.
await client.Client.PurgeInstancesAsync(filter: new PurgeInstancesFilter(createdTimeFrom, createdTimeTo, states));
[2023-01-25T15:39:01.222Z] Executed 'Functions.CleanupOldWorkflows' (Failed, Id=ff84dea6-2dd1-4cf0-8e23-a3d6ba3bc491, Duration=5787ms)
[2023-01-25T15:39:01.223Z] System.Private.CoreLib: Exception while executing function: Functions.CleanupOldWorkflows. System.Private.CoreLib: Result: Failure
Exception: System.AggregateException: One or more errors occurred. (Count must be non-negative (Parameter 'count'))
[2023-01-25T15:39:01.224Z]  ---> System.ArgumentException: Count must be non-negative (Parameter 'count')
[2023-01-25T15:39:01.225Z]    at Microsoft.DurableTask.Check.Argument(Boolean condition, String name, String message, Object[] args)
[2023-01-25T15:39:01.226Z]    at Microsoft.DurableTask.Client.PurgeResult..ctor(Int32 count)
[2023-01-25T15:39:01.226Z]    at Microsoft.DurableTask.Client.Grpc.GrpcDurableTaskClient.PurgeInstancesCoreAsync(PurgeInstancesRequest request, CancellationToken cancellation)

It seems to be related to this line:
https://github.com/microsoft/durabletask-dotnet/blob/main/src/Client/Core/PurgeResult.cs#L17
Shouldn't the condition be count >= 0? This way an exception is thrown when no instance was removed.
I can also file a PR if needed for this :)

Thank you for finding this! You are correct it should be count >= 0. Unfortunately, we had already prepared the 1.0.0 release so this will need to go into the next release. If you want to make a PR for it go ahead.

Done :) #115

Resolved by #115


Delete orphaned remediation CRs

Remedition CRs are considered orphaned when:

Succeeded condition is true
NodeNameChangeExpected condition is true
Node does not exist anymore

ECOPROJECT-1465

/test 4.14-openshift-e2e

/lgtm cancel
we need to use the condition from medik8s/common once it is merged...

/test 4.14-openshift-e2e

/test 4.14-openshift-e2e

rebased, using condition type from updated medik8s/common, ready for another review

/lgtm

/hold cancel


Instructions are invalid for basic gateway

Instructions found on this page are not valid for a basic VPN gateway. The public IP address must be configured with as basic sku and a dynamic Ip address.

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

ID: e43f17b9-b2e3-95c7-061a-235692e51b71
Version Independent ID: d3ff45e3-c540-4ff2-d38f-74679c7a153a
Content: Create a route-based virtual network gateway: PowerShell - Azure VPN Gateway
Content Source: articles/vpn-gateway/create-routebased-vpn-gateway-powershell.md
Service: vpn-gateway
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

@mrt3385
Thanks for your feedback! We will investigate and update as appropriate.

Hello,
I didn't receive any document in the email.
Trent
On Mon, Apr 22, 2024, 08:27 ManoharLakkoju-MSFT @.***>
wrote:

@cherylmc https://github.com/cherylmc
Can you please check and add your comments on this doc update request as
applicable.
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/121777#issuecomment-2069268576,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIKGXMEQVGJB7M5SLWPY7RTY6T63DAVCNFSM6AAAAABGOI4PICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRZGI3DQNJXGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

@mrt3385
I'm going to assign this to the document author so they can take a look at it accordingly

Thanks! I'll make a note of that in the docs. #please-close


chore(license): update license year

Update license year.
This process needs to be automated using a script that runs on January 1st and creates a new PR (any idea?)

Just remove the year and live with it
https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/

Great thanks for noticing and updating this! For long term I agree with @OlivierLDff that it seems the year isn't really needed and would prefer simply removing to building a script for keeping it up to date.


Add more conversions to cast

Forgot to mention, the config-schema model needs an update

done
I also updated the README. PTAL.


request an "-o" option on "datasette server" to open the default browser at the running url

This is a request for a "convenience" feature, and only a nice to have. It's based on seeing this feature in several little command line hypertext server apps.
If you run, for example:
datasette.exe serve --open "mydb.s3db"

I would like it if default browser is launched, at the URL that is being served.
The angular cli does this, for example
ng serve  --open  #see https://angular.io/cli/serve
...as does my usual mini web server of choice when inspecting local static files....
npx http-server -o # see https://www.npmjs.com/package/http-server
Just a tiny thing. Love your work!

I like this. It could work with the --root option too and automatically sign you in as the root user.

The Python standard library has a module for this: https://docs.python.org/3/library/webbrowser.html

Oh wow oh wow. Thanks so much Simon. In an astoundingly rough week, this is a shining jewel. 🤣

Idea: if a database only has a single table, this could open straight to /db/table. If it has multiple tables but a single databsae it could open straight to /db.


Doesn't display audio files in alphabetical order (or any other sort)

Files are in a randomish order. Not useful if uploading music albums or any segmented audio clips.

If you click on the main column it will sort alphabetically

Where do you click? It just takes me to another song. I don't see any columns to click on besides Artist, Title or the track number.


Research and design approach to AWS workflow execution

https://app.asana.com/0/0/1199513842012763/f
Milestone: Demonstrate pipeline execution on AWS and leveraging STRIDES.
STRIDES: Identify metrics for meaningful comparison of AWS and PSC on-prem
STRIDES: Identify a set of pipelines for execution
STRIDES: Execute containerized implementations of the pipelines on AWS and PSC on-prem resources
Demonstrate execution of assay-specific pipelines on AWS, launched from the HuBMAP Portal.
Document per-job accounting data from the runs on AWS and STRIDES.
Completion criteria: Document execution of at least 3 pipelines running on AWS and their associated costs through STRIDES.

@khanshawPSC The design of this has been completed I believe - please close.


fix(curriculum): adds code example for shift method for RPG game

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 #53308

Adds code example as hint to understand how to use the shift method

Hey @VedangSardessai
Thank you for opening this pull request.
Related issue is limited to the "first time" code contributors to this repository. Because of that I'm going to close this PR. We would welcome future pull requests from you.
Thank you and happy coding.


ModuleNotFoundError disabling to run rag-conversation template

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
cd templates/rag-conversation
then
langchain serve
Error Message and Stack Trace (if applicable)
Traceback (most recent call last):
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/site-packages/uvicorn/config.py", line 467, in load
self.loaded_app = import_from_string(self.app)
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/site-packages/uvicorn/importer.py", line 24, in import_from_string
raise exc from None
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/Users/alankashkash/.conda/envs/jan.ai/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/Users/alankashkash/PycharmProjects/jan.ai/app/server.py", line 4, in
from rag_conversation import chain as rag_conversation_chain
ModuleNotFoundError: No module named 'rag_conversation'
Description
I'm trying run a langchain rag-conversation template but when running a langchain serve according to the documentation at https://github.com/langchain-ai/langchain/tree/master/templates/rag-conversation I'm getting the ModuleNotFoundError: No module named 'rag_conversation' error.
System Info
System Information

OS:  Darwin
OS Version:  Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000
Python Version:  3.10.14 (main, Mar 21 2024, 11:24:58) [Clang 14.0.6 ]

Package Information

langchain_core: 0.1.50
langchain: 0.1.17
langchain_community: 0.0.36
langsmith: 0.1.53
langchain_cli: 0.0.21
langchain_experimental: 0.0.57
langchain_google_genai: 1.0.3
langchain_text_splitters: 0.0.1
langserve: 0.1.1

Packages not installed (Not Necessarily a Problem)
The following packages were not found:

langgraph

If you are using Pycharm, make sure to mark the rag-coversation directory as a library root, this should fix your error. It tells Python where to start looking for your modules.
You can set the library root by going to "File" -> "Settings" -> "Project: [Your Project Name]" -> "Project Structure". Here, you can add or remove directories as sources (library root).
This helps PyCharm understand your project structure better and provide more accurate code completion, navigation, and refactoring.

ensure to add the path of rag-conversation directory to Python Paths.
export PYTHONPATH="${PYTHONPATH}:/path/to/your/directory"

The reason behind the error is that Python interpreter cannot reach the rag_conversation module. You need to add it to system path first.
Add these two lines of code at the beginning of server.py:
import sys
sys.path.insert(0, './packages/rag-conversation/')

Awesome. Thanks for the response. Eventually, with poetry it has all worked. It looks like poetry specifies the paths.

@alankashkash Could you please teach me the specific steps?

@PhilisterD the trick is to set up the virtual environment with poetry.
Run poetry install
then poetry shell (not sure if mandatory but I did that)
then langchain serve

@alankashkash Got it. Thx a lot! 👍

@PhilisterD the trick is to set up the virtual environment with poetry. Run poetry install then poetry shell (not sure if mandatory but I did that) then langchain serve

Following your steps resolved the issue, and in my case, step 2 is essential.


add build yml for umd version

I bumped the version (which I've already published manually) to try to retrigger the status checks which are not working


UnboundLocalError: local variable 'total' referenced before assignment

Hi,
I encountered these two errors while running velocyto... the loom file is created.
2019-02-03 22:25:37,857 - DEBUG - Counting done!
2019-02-03 22:25:38,494 - DEBUG - Example of barcode: AGGGTGAGTCGAGTTT and cell_id: output_LDTK3:AGGGTGAGTCGAGTTT
2019-02-03 22:25:38,549 - DEBUG - Generating output file /...../velocyto/output_LDTK3.loom
2019-02-03 22:25:38,549 - DEBUG - Collecting row attributes
2019-02-03 22:25:39,429 - DEBUG - Generating data table
Traceback (most recent call last):
File "/.../rna-velocity/velocyto.py-master/velocyto/commands/_run.py", line 280, in _run
total += layers[layer_name]
UnboundLocalError: local variable 'total' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/.../anaconda3/envs/my_pymc_env/bin/velocyto", line 11, in
load_entry_point('velocyto', 'console_scripts', 'velocyto')()
File "/.../anaconda3/envs/my_pymc_env/lib/python3.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/.../anaconda3/envs/my_pymc_env/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/.../anaconda3/envs/my_pymc_env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/ifs/home/c2b2/ac_lab/st3179/anaconda3/envs/my_pymc_env/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/.../anaconda3/envs/my_pymc_env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/.../rna-velocity/velocyto.py-master/velocyto/commands/run.py", line 113, in run
samtools_memory=samtools_memory, dump=dump, verbose=verbose, additional_ca=additional_ca)
File "/.../rna-velocity/velocyto.py-master/velocyto/commands/_run.py", line 282, in _run
total = np.array(layers[layer_name])
MemoryError
Just to let you know i assigned 46G as vmem.
Many thanks!

Have you looked at all the other solved issues about memory problems?


[v2.0.4] Store TOTD Data locally

Store TOTD data as a temporary .json file on the computer. Maybe in ./bot/resources/temp. The bot will delete the file at 11:19pm and if the /totd/ function is used after 11:19pm and before 11:30pm the totd data will not be stored in the file.
Can already use the built totd png deleter to delete the totd json file as well.

Let the task run at the designated time. But the bot only sends the message when the flag is set to true. This will make the normal /totd commands much faster.


refactor: Use ValueTask on plumbing methods

Switch to ValueTask on methods that are likely to complete synchronously and/or be populated with contrib-/user-provided delegates.
See: #184

This follows #184 with an idea (probably best punted for post-2.0.0) to switch plumbing-type methods from Task to ValueTask to take advantage of the zero-cost-sync-completion sugar that the dotnet/runtime folks have generously given us to play with.
I've got a bigger PR planned where I'll propose returning ValueTask<T> on the IFeatureClient methods in order to hide a TTL caching layer that users can use to amortize provider requests (e.g. users could configure IFeatureClient to cache a value for flag K for N seconds, and for those N seconds any subsequent requests to any IFeatureClient for flag K would result in a sync read from a memory cache).
But that's for later, and for now this PR just looks to make those user-/contrib-provided plumbing methods super lightweight on the scalding hotpath.

I've started updating this and https://github.com/open-feature/dotnet-sdk/pull/184

Closing and continuing with https://github.com/open-feature/dotnet-sdk/pull/268


Quality of life suggestions

Hi,
Thanks for sharing your implementation ! Overall I found it relatively easy to reproduce, thanks to the Docker setup, however I encountered a few minor annoyances that you might want to fix:

nvidia-docker is obsolete and has been replaced by the NVIDIA Container Toolkit. Switching to that was pretty smooth on my end, the only change I had to add to the scripts was to change nvidia-docker to docker. You might want to update your scripts accordingly.
On my machine, running docker requires sudo access. I expect this to be the default behavior in most cases.
It's not clear from the README where the scenes folder should go. It is a bit tedious to have to guess from the error messages.
The scenes are not directly usable: one needs to rename the Ajar scene's scene_v3.xml to scene.xml, which is not obvious to someone with little Mitsuba experience, one needs to download another file for the intialisation of the sphere in the "curtain" scene (and it is again not clear where it should go and how it should be called). I would suggest that you provide a zip file with the scenes in the format expected by your code.

Other than that, things were pretty smooth, and I could reproduce some results easily.
Best,
Baptiste

Hi,
Thank you for the suggestions.
I'll provide the detailed instructions as your suggestions soon.
Best,
Jeonmin Gu.


[Res] : Interview prep

I would like to add a new Interview prep section to the Resource Gallery.
It will consist of an Aptitude section, Courses,  Free guides, etc.
Have a look at some of the resources 👇🏼
https://www.campusgate.in/
https://www.indiabix.com/

Please review this issue as soon as possible and assign me so that I can start working on it @Alkaison

Please review this issue today and assign me b'coz it will take atleast a day to complete it, I have my college too that's why I'm requesting it this much😅 @Alkaison

Can you please assign me this issue because I'm ready with my file @Alkaison

@Parul1606 ✅


Exporting to Anki fails when using Japanese in certain fields

Exporting to Anki fails when using Japanese in certain fields, if I use characters within the ASCII range it works as expected.

Thanks for the report. I've successfully exported cards with Japanese in various fields, and I haven't encountered this issue yet. Are you able to narrow it down at all? E.g. does it error on Japanese in any fields? Is it only in "Don't fill" fields? Is it perhaps due to the deck name having Japanese in it? In the meantime, I'll try some more to find the error on my end.

Finally figured out how to reproduce this issue. It occurs when trying to save duplicate content to a field marked as the "Sort Field".

Thanks for digging in to this. That's strange. When I do that, I get the (intended) error message "Error: cannot create note because it is a duplicate" in the same location that you get the "Error: 'ascii' codec ..." message.
That error message is being returned from the AnkiConnect plugin. That doesn't necessarily mean the bug is in AnkiConnect, but it makes me wonder. Are you using an up to date version of the plugin? And are you using Anki 2.0 or 2.1, and on what platform?
Also, I can provide you with a modified version of the AnkiConnect plugin that will log more details of the error, if you want to go that far.

Anki version is 2.0. As for the AnkiConnect version, couldn't find any version number in the source so I deleted whatever version I had and fetched the latest and I'm now seeing the "duplicate" message 😄

Just wanted to add, you also see this error if you've renamed a deck but not yet told Voracious about it.


Package lists same filter twice

While the sync does the job, editing a single jsp file can result in that file being listed twice in the package filter list.
This might have something with do with the file structure, here is an example sync:

/
/apps
/apps/.../components/.../calendar
U /apps/.../components/.../calendar/calendar.jsp/jcr:content
U /apps/.../components/.../calendar/calendar.jsp/jcr:content/jcr:data
saving approx 2 nodes...

I've replaced parts of the path with ellipses for privacy. Note that "calendar.jsp" should be the only filter in this instance, but the package includes it twice:
Filters:	(copied from package manager listing)
/apps/.../components/.../calendar/calendar.jsp
/apps/.../components/.../calendar/calendar.jsp
The filter /apps/.../components/.../calendar/calendar.jsp will include everything below it, so perhaps child paths can be ignored?

The actual output log you get is taken directly from the package managers response, and I noticed they tend to list things twice, in regards to jcr:content and jcr:content/jcr:data.  Could set up a text filter to clean up the log before outputting to the user.
However, if it is adding the same files to the filter.xml file twice, that's definitely an issue.  I should be able to find some time to start addressing some of these issues raised in a few weeks once I start xmas vacation.

Thank you, if I had more time I'd certainly be willing to contribute as well, I've just been swamped lately. This tool is great so far by the way, thank you for making it happen!


Invalid outcome for scalar markets needs to be shown as a percentage

For Scalar Markets (bc the range can be very different) we need to show The Invalid outcome as a % instead of a value of the range input.
When the invalid outcome is selected for trading:
The Order Ticket should display a % (instead of the $)
So if the Min and Max range were 27000 - 29000 and I want to bid 10% on invalid I currently would need to enter buy 10 shares at 27200.  We rather have them enter buy 10 shares at 10%. (since it is trading the % of the market settling as invalid).
Market cards need to show invalid as a % as well (like we do for Binary and Multiple Choice)

@bthaile what is status on this ticket.....Order ticket in ui does show percentage, but when I add in a percentage i get an error

This has been addressed with new contracts. There are a few issue. I'll PR
But getting error when trying to create order

Whats the status of this ticket....
I still have a problem entering a % in for a scalar market.....
I made Yankees Regular season wins in a season Min/Max range is 0-162.
I enter quantity 1 and percentage 10 or 11 and I get a message Price must be a multiple of 1 (my precision is set to 1)

fixed -closing


Support variable declaration in for loop setup

Resolve #115 , this allows variables declare in the scope of for loop body, to avoid loose variable liveness, in other word, variable can have stricter scope liveness by declaring in setup section of for loop.

CI complains below:
tests/check-snapshots.sh
Files /dev/fd/63 and /dev/fd/62 differ
Error: writing output failed: Broken pipe
cat: write error: Broken pipe
Files /dev/fd/63 and /dev/fd/62 differ

@vacantron, can you help resolve?

CI complains below:
tests/check-snapshots.sh
Files /dev/fd/63 and /dev/fd/62 differ
Error: writing output failed: Broken pipe
cat: write error: Broken pipe
Files /dev/fd/63 and /dev/fd/62 differ

@vacantron, can you help resolve?

The new cfront feature is going to change the CFGs. Use tests/update-snapshots.sh to update the outdated ones.
By the way, the changes causes the unexpected behavior while unwinding the phi instruction in the second stage, and breaks the self-hosting. I'm trying to figure it out.

Rebase the master branch after #113 being merged, and the error should be solved.

That's weird, I updated snapshot after rebase and it still panics on stage 2.

That's weird, I updated snapshot after rebase and it still panics on stage 2.

The second stage is broken by the SSA now, but the snapshot test should be passed tho.
I run head -c20 tests/snapshots/xxx.json | tail -c19 for the hello and fib, and both of them has 469 basic blocks. It is definitely incorrect. The fib one should have ten more than the hello. Can you try it again with make disclean and make config ARCH=arm ?

Can you try it again with make disclean and make config ARCH=arm ?

After running disclean and config ARCH=arm, now running tests/update-snapshots.sh would stuck forever (I terminted it after running for 2.6 mins). Can you confirm this weird behavior?

After running disclean and config ARCH=arm, now running tests/update-snapshots.sh would stuck forever (I terminted it after running for 2.6 mins). Can you confirm this weird behavior?

There is a typo in the commands that I provided previously. Try make distclean config ARCH=riscv out/shecc-stage1.elf and tests/update-snapshots.sh again. Do you run them on Linux?

Do you run them on Linux?
Yes, specifically, on Arch Linux.

Try make distclean config ARCH=riscv out/shecc-stage1.elf and tests/update-snapshots.sh again.
It still failed on stage 2.

Yes, specifically, on Arch Linux.

Can you test the jq command with -S option separately on your machine? The result seems not to be sorted in ascending order by the _gvid.

I can confirm that using jq -S -c . hello.json > hello.json (from tests/update-snapshot.sh) does only sorted by json keys but _gvid value.

Leave a blank line between the subject and the body of the commit message, and use git rebase -i to squash some commits

See also: https://cbea.ms/git-commit/

Thank @ChAoSUnItY for contributing!


Release EKS Go: v1.20.14-15

Increment release file to publish new EKS Go artifacts for v1.20.14-15

/lgtm
/approve


command 'mongo.addServer' not found

With the latest VS Code x64 v1.16.1, hitting the 'Add Server' button on the extensions gives the Error "command 'mongo.addServer' not found.
This was previously working but I recently updated to v1.16.1 and the extension started providing this error shortly after.

Same problem here!  Am I doing something wrong?

Same problem here!

Had you guys added the "mongo.shell.path": "mongo" ?

Added mongo.shell.path and I am also (still) getting this error.
Visual studio code version 1.17.1
Node version 7.9.0
x64

I wonder if it is related to https://github.com/Microsoft/vscode/issues/32353

I am getting the same error:
Version 1.17.2
Shell 1.7.7
Node 7.9.0
Architecture x64

+1 - same problem
Visual Studio Code 1.18.1
Shell 1.7.9
Node 7.9
x64

+1 -
Visual Studio Code 1.18.1
Shell 1.7.9
Node 7.9
x64

I had same issue and I solved in this way :

Create a file and save it as "mongo.addServer"
Inside VS Code  "File - Add Folder to workspace " adding the folder where you have saved the previous file.
Add a server by clicking the + button in the title
Now it works ! 💃

I don't know if this is a workaround or the standard one,  but it worked for me.
Hope it works for you too.

Observation

Open VS Code - no folder selected, use Mongo extension commands - "command 'mongo.addServer' not found", "command 'mongo.newScrapbook' not found", "command 'mongo.refreshExplorer' not found".

Open VS Code, open a folder (I created an empty folder named "MongoScrapbooks"), no errors running commands.

Open an existing folder (e.g. temp) with VS Code using the context menu, no errors running commands.

I assume it is related to the context.storagePath check in extension.ts line 23 - effectively escaping the registration before any commands can be registered, and subsequently not finding any of the commands.
export function activate(context: vscode.ExtensionContext) {
	// Create the storage folder
	**if (context.storagePath) {**
		createStorageFolder(context).then(() => {
			languageClient = new MongoDBLanguageClient(context);
			model = new Model(context.storagePath);

I can take a look at the code in test later - maybe add a prompt with more info instead of failing if the location is required to register commands or is there a best practice for extensions?

I am closing this issue because this version of the extension is no longer supported.
If you have not already done so, please switch to using the new version of this extension here: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb.  If this issue still reproduces in the newer extension and you would like us to take a look, please enter an issue here: https://github.com/Microsoft/vscode-cosmosdb/issues
Thanks!
Stephen


Unleash this on other repos

Follow-up of #3. Maybe have drizzlepac (cc @stsci-hack ) and stistools (cc @SaOgaz) use this? Example usage can be found at spacetelescope/hstcal#71.

Superseded by  spacetelescope/drizzlepac#174 and spacetelescope/stistools#51


Doesn't distinguish between characters and words

In the screenshot the cursors should not have been created at "mm".

You can skip selections with c-x

@gpalsingh, this has been fixed a long time ago: <C-n> selects word without boundaries (like *).
More recently we introduced: g<C-n> selects word without boundaries (like g*).


adding assertion breaks proof

I have a proof that passes with assert(a<=b); assert(b<=c). If I add -- not replace, but add -- the statement assert(a<=b,=c), the proof fails. That's ... weird. See AllocationJournal_v.rs:585 in the attached report.
2023-09-08-12-04-31.zip

Moved to https://github.com/verus-lang/verus/discussions/147#discussioncomment-7347893


Fix packaging of portable data for icu, gdal, and proj

Context
We moved to using mason for dependencies in #738. Mason supports the mason link command which places symlinks of files at predictable paths. The build then copies these over into lib/binding when packaging the portable node-mapnik binaries.
The bug
The symlinks were being copied rather than the actual files. This meant that, once published, the data was missing since the symlinks were "broken" (point to non existent data).
Solution
We need to ensure this bug never happens. So this PR moves to removing the mason_packages folder before running the node-mapnik tests. This replicates the point to non existent data situation during node-mapnik travis builds.
This PR also starts passing the -L flag to cp to deference the symlinks during copy to ensure we are copying the full data and not just the symlink.

Codecov Report

Merging #750 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #750   +/-   ##
=======================================
  Coverage   96.23%   96.23%
=======================================
  Files          42       42
  Lines        8772     8772
=======================================
  Hits         8442     8442
  Misses        330      330

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 a4e455d...1a6544c. Read the comment docs.


feature request: system proxy support

My PC have to use proxy to access GitHub (you know why)
git node --proxy $URL land $PR
# or
git node set proxy="$URL" # set proxy to config
# or
git node --proxy land $PR # use proxy in config

and I will take some time to handle this

I think if we support git node set proxy, the configured proxy should then be used automatically, not with an explicit --proxy flag in the commands.

sure, and use proxy config in global .gitconfig is also ok. Just need a way to use proxy whatever it is :|
# in .gitignore
[https]
	proxy = http://<IP_ADDRESS>:7890
[http]
	proxy = http://<IP_ADDRESS>:7890

another way to provide proxy that I have seen is to use the http_proxy and https_proxy environment variables.

I don't think it has any effect... :(

No, but I mean that we could support that or use a library that does

We use node-fetch for git-node-land (not sure about other commands) so at least it should be fairly doable by using with one of the proxy agent implementations on npm with https://github.com/node-fetch/node-fetch#custom-agent But be aware that we need to configure the proxy setting for the git repository so that git picks it up and that may be tricky, especially for people who use SSH instead of HTTPS (then the setting needs to go to the SSH config, which is global), to make git-node support all of them, we may have the change the setting of the entire system.

I code a simple implementation for self-use, later I will finish the PR
diff --git a/lib/request.js b/lib/request.js
index 3aff3e9..d5cccb5 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -1,13 +1,15 @@
 'use strict';

 const fetch = require('node-fetch');
+const HttpsProxyAgent = require('https-proxy-agent');
 const fs = require('fs');
 const path = require('path');
 const { CI_DOMAIN } = require('./ci/ci_type_parser');

 class Request {
-  constructor(credentials) {
+  constructor(credentials, proxyUrl) {
     this.credentials = credentials;
+    this.proxyAgent = new HttpsProxyAgent('http://<IP_ADDRESS>:7890');
   }

   loadQuery(file) {
@@ -16,6 +18,7 @@ class Request {
   }

   async text(url, options = {}) {
+    options.agent = this.proxyAgent;
     if (url.startsWith(`https://${CI_DOMAIN}`)) {
       options.headers = options.headers || {};
       Object.assign(options.headers, this.getJenkinsHeaders());
@@ -24,6 +27,7 @@ class Request {
   }

   async json(url, options = {}) {
+    options.agent = this.proxyAgent;
     options.headers = options.headers || {};
     options.headers.Accept = 'application/json';
     if (url.startsWith(`https://${CI_DOMAIN}`)) {
@@ -65,6 +69,7 @@ class Request {
     }
     const url = 'https://api.github.com/graphql';
     const options = {
+      agent: this.proxyAgent,
       method: 'POST',
       headers: {
         Authorization: `Basic ${githubCredentials}`,


Allow help:evaluate output in quiet mode (MPH-99)

http://jira.codehaus.org/browse/MPH-99

:+1:

+1

Here is my proposal I would merge: Resemble the logic of the effective goals. I.e., provide an output parameter. It makes the stuff consist.

For consistency, I agree that it's a good idea to add the output parameter.
But for usability, I think it's a good idea to write directly to stdout, and for consistency add this behavior to other mojos.
The output solution wouldn't be enough in case of interactive mode for help:evaluate.

@zigarn Can you elaborate on the last statement. I do not understand why it won't be enough.

Interactive mode through a file is not interactive. (I know it's a corner case to use interactive mode with mvn --quiet)

I will have a look again, I think we can do even better which suits everyone.

Maybe allow - as a value for output ?

No, this is not what I am was thinking about. I will take a quiet look at it later this day and update you.

Let's summarize the possible modes:

Interactive, parameter
Interactive, prompt
Interactive, parameter, quiet
Interactive, prompt, quiet
Batch, parameter
Batch, prompt
Batch, parameter, quiet
Batch, prompt, quiet

Now analyze:

Implemented
Implemented
Implemented
Implemented
Implemented
Does not makes sense
Behaves like 3.
Does not makes sense

We are talking about 2, 3 and 4.

Could definitively better with a System.out.print

quiet is quiet, where is the usecase for that?

The patch itself is faulty. See inline comments.

1 Interactive, parameter
Without patch:
$ mvn help:evaluate -Dexpression="project.groupId"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Help Plugin 2.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.2.1-SNAPSHOT' as project.
[INFO]
org.apache.maven.plugins
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.160 s
[INFO] Finished at: 2015-09-30T11:26:43+02:00
[INFO] Final Memory: 15M/92M
[INFO] ------------------------------------------------------------------------

With patch:
$ mvn org.apache.maven.plugins:maven-help-plugin:2.2.1-SNAPSHOT:evaluate -Dexpression="project.groupId"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Help Plugin 2.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2.1-SNAPSHOT:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.2.1-SNAPSHOT' as project.
org.apache.maven.plugins
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.993 s
[INFO] Finished at: 2015-09-30T11:32:42+02:00
[INFO] Final Memory: 16M/91M
[INFO] ------------------------------------------------------------------------

==> Only difference is the empty [INFO] line without patch (workaround of the current version to display in a new line using logging)
With the output parameter, the answer line would disappear and be written in the target file.
2 Interactive, prompt
Without patch:
$ mvn help:evaluate
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Help Plugin 2.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.2.1-SNAPSHOT' as project.
[INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
${project.groupId}
[INFO]
org.apache.maven.plugins
[INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.670 s
[INFO] Finished at: 2015-09-30T11:27:57+02:00
[INFO] Final Memory: 15M/92M
[INFO] ------------------------------------------------------------------------

With patch:
$ mvn org.apache.maven.plugins:maven-help-plugin:2.2.1-SNAPSHOT:evaluate
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Help Plugin 2.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2.1-SNAPSHOT:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.2.1-SNAPSHOT' as project.
Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
${project.groupId}
org.apache.maven.plugins
Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.205 s
[INFO] Finished at: 2015-09-30T11:33:54+02:00
[INFO] Final Memory: 16M/91M
[INFO] ------------------------------------------------------------------------

==> Only differences are the [INFO] on the prompt line and empty [INFO] line before the answer without patch. No more ugly line break with the patch than without it, but I agree that it could be better to wait for the input on the same line than the prompt.
The output parameter would be a non-sense in this case (it was my "interactive" notion in previous comments).
3 Interactive, parameter, quiet
Without patch:
$ mvn -q help:evaluate -Dexpression="project.groupId"
$

With patch:
$ mvn -q org.apache.maven.plugins:maven-help-plugin:2.2.1-SNAPSHOT:evaluate -Dexpression="project.groupId"
org.apache.maven.plugins
$

==> No output at all without patch and just the answer with the patch, allowing @robertmassaioli 's use case
The output parameter would be a compromise but the use case would be more complicated:
projectVersion=$(file=$(mktemp); mvn -q help:evaluate -Doutput=$file -Dexpression=project.version; cat $file; rm $file)

4 Interactive, prompt, quiet
Without patch:
$ mvn -q help:evaluate
${project.groupId}
0
$

With patch:
$ mvn -q org.apache.maven.plugins:maven-help-plugin:2.2.1-SNAPSHOT:evaluate
Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
${project.groupId}
org.apache.maven.plugins
Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
0
$

==> No prompt and no output without the patch. I agree it's a far-fetched case.
5 Batch, parameter
Same as 1.
6 Batch, prompt
No sense.
==> Is always rejected [ERROR] Maven is configured to NOT interact with the user for input. This Mojo requires that 'interactiveMode' in your settings file is flag to 'true'.
7 Batch, parameter, quiet
Same as 3.
8 Batch, prompt, quiet
No sense.
==> Is always rejected [ERROR] Maven is configured to NOT interact with the user for input. This Mojo requires that 'interactiveMode' in your settings file is flag to 'true'.
To compare with other plugins behavior:

maven-release-plugin:
in prompt mode: like in the patch: all output in normal mode, only prompts in quiet mode
in batch mode: use default values

help:effective-x could benefit the same improvements by displaying on stdout without all the mvn logs output.

@zigarn Thank you for this quality response. I'll read it and will answer shortly.

This took longer that I have expected but anyway, here it is:

patch is fine
patch is fine
patch is fine
patch is fine
That should use the logger instead of sysout
That should use the logger instead of sysout

One problem I see is:
getLog().warn( "The Maven expression was invalid. Please use a valid expression." );
return;

in handleResponse when interactive, quiet is used.
I see some inconsistencies and you might see. I am in favor to resolve them first.

Anyone?

I don't know why in batch mode it should use the logger.
For 5, the result will be the same with expection when using --log-file option.
For 7 (I guess, as 6 has no sense), using logging will have the current behavior of no output.
I updated the PR to incorporate your feedback.
I implemented the use of logger in batch mode in branch MPH-99-batch-log.

Bump?

Bump indeed.

This is not forgotten and still on my TODO list with very little time.

Is any of the PRs mentioned in the comments above good enough?
(this one or this one ) ?

Writing info messages to the console is quiet mode is still awkward, as this mode is documented only to output error messages.
I think adding the output parameter is a good idea, with this workflow:

mvn help:evaluate -Dexpression="project.groupId" => logs the result in the console, like before
mvn help:evaluate -Dexpression="project.groupId" -Doutput=result.txt => writes the result in the result.txt file.
mvn help:evaluate => starts an interactive prompt, like before
mvn help:evaluate -Doutput=result.txt => starts an interactive prompt, like before. output is ignored as it doesn't make sense to write to a file in an interactive prompt.

With this, the plugin behaves the same way as before, and respects the quiet documentation, but the wanted use-case of having just the result of the evaluation available is possible by specifying the expression and an output file. Keep in mind that you can also evaluate Maven projects or settings file, with ${project} or ${settings}; writing those to a file is cleaner. This use-case is only really useful for scripts calling help:evaluate, so having the result in a file that the script can read later on solves it. And outside of a script, one could still do mvn -q help:evaluate -Dexpression="project.groupId" -Doutput=result.txt && type result.txt (or cat result.txt) to just see the result.
Here's what it would look like with those changes:

mvn help:evaluate

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Help Plugin 2.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2.1-SNAPSHOT:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.2.1-SNAPSHOT' as project.
[INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
${project.groupId}
[INFO]
org.apache.maven.plugins
[INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.171 s
[INFO] Finished at: 2016-10-16T18:36:59+02:00
[INFO] Final Memory: 16M/164M
[INFO] ------------------------------------------------------------------------

Behaves the same as before.

mvn help:evaluate -Doutput=result.txt

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Help Plugin 2.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2.1-SNAPSHOT:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.2.1-SNAPSHOT' as project.
[WARNING] In interactive mode, the output will be written on the console, ignoring 'output'.
[INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
${project.groupId}
[INFO]
org.apache.maven.plugins
[INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.945 s
[INFO] Finished at: 2016-10-16T18:40:17+02:00
[INFO] Final Memory: 16M/169M
[INFO] ------------------------------------------------------------------------

Behaves the same as before, and prints a warning to say that the output parameter was ignored, since in interactive mode, it doesn't make sense to print to a file.

mvn help:evaluate -Dexpression=project.groupId

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Help Plugin 2.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2.1-SNAPSHOT:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.2.1-SNAPSHOT' as project.
[INFO]
org.apache.maven.plugins
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.312 s
[INFO] Finished at: 2016-10-16T18:44:31+02:00
[INFO] Final Memory: 16M/164M
[INFO] ------------------------------------------------------------------------

Behaves the same as before.

mvn help:evaluate -Dexpression=project.groupId -Doutput=result.txt

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Help Plugin 2.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2.1-SNAPSHOT:evaluate (default-cli) @ maven-help-plugin ---
[INFO] No artifact parameter specified, using 'org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.2.1-SNAPSHOT' as project.
[INFO] Result of evaluation written to: /path/to/result.txt
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.264 s
[INFO] Finished at: 2016-10-16T18:45:54+02:00
[INFO] Final Memory: 16M/164M
[INFO] ------------------------------------------------------------------------

Actual change: the result is not written in the console, but in the output file, as specified by the new INFO log line. The file would contain the single line: org.apache.maven.plugins.
In batch mode, point 1 and 2 above would raise an error, as expected. Point 3 and 4 would behave exactly the same way (specifying output writes the result to a file, otherwise, log to the console). This also integrates well with the --log-file parameter of Maven: point 1 and 2 above, in interactive mode, don't really make sense (nothing will be printed, as expected, just like before); point 3 and 4 would redirect just the logs to a file instead of the console, so it wouldn't interact at all with output.
Any feedback on that?

@Tunaki I am fully happy with you approach.

Can you confirm that this feature is not currently availabel ? It seems there is no release of help plugin since 2013 ?

Some ability to redirect to stdout is essential for the script use-case. I've never wanted to send the result of a help:evaluate to a file and if I did can do so easily via existing mechanisms. Requiring that I send the result to a real file is just an annoyance.

New jira case for this same issue: https://issues.apache.org/jira/browse/MPH-144

A current solution would be to do it like this:
mvn help:evaluate -Dexpression=project.version | grep -v "\[INFO\]"

which is not ideal and would not work in some situations (if having a WARNING in your build)..which would result in the need to do it like this:
mvn help:evaluate -Dexpression=project.version | grep -v "\[INFO\]" | grep -v "\[WARNING\]"

Now we have implemented it in MPH-144 which will reduce it to the following:
mvn help:evaluate -Dexpression=project.version -q -DforceStdout=true

without redirecting to a file etc..can also be used like this:
RESULT=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout=true)

It would be great if someone who likes/needs it can vote on the JIRA ticket (I see some watchers there but only a single VOTE on it)...So the chances are becoming better to integrate into the next release...

An example of what I am currently using in scripts:
rversion=$(mvn -B help:evaluate -Dexpression=project.version | grep "^[^\\[]")

ie. I remove all lines which start with "["

I would really like to see that fixed without workarounds, though...
There is a workaround - use Exec Maven Plugin, you can cover some of help:evaluate functionality running echo binary with parameter of your expression, e.g.
rversion=$(mvn -B -q
-Dexec.executable="echo"
-Dexec.args='${project.version}'
--non-recursive
org.codehaus.mojo:exec-maven-plugin:1.6.0:exec)
For some of expressions you'll have to run some other goals or lifecycle phases before. In most cases I need, it does the job.


getVideoByUserName

any attemtp to get the user video, custom or not, on multiple types of API, not only this one, now returns StatusCode: '0'. Anyone knows if something recently changes within TikTok, and if there is a solution?
video_data = api.getVideosByUserId(tiktok_user_id, sec_user_id)
app.logger.info('user video_data: %s' % video_data)
response:
INFO in api_service: user video_data: {'statusCode': 0}
Everything else works.

same here with getVideosByUserName


Update peer address whenever it changes

Problem
Currently, if a Peer's IP address changes Nodes are unable to recover communication with that peer.
We should be able to fix this with mDNS but for the time being, we can add a workaround to update the Peer's address everytime it doesn't match our internal state.

Summary of Changes
Update the Peer Address every time it changes if the message is verified.

I don't see that this hurts anything. But how much does it actually help?
In order for this mechanism to work, the peer that has moved must initiate unsolicited communication with the other node, correct? I think this probably most likely for controllers that have moved. Do I understand this correctly?
Maybe that is still very valuable. I just want to make sure I understand.
It's useful both for controllers and for accessories that might have to deliver reports to some peer.


java.io.IOException: Could not create directory

'react-native-tesseract-ocr' this library working fine in emulator but not working in  phone (apk)

This is due to a change in android API, you must be using a different android version on your simulator and on your phone
You can check the fix I found just here https://github.com/jonathanpalma/react-native-tesseract-ocr/pull/127
It's only one line to change in the code.
Hope it helps


[KYUUBY #4036] Remove redundant Casting session to KyuubiSession

Why are the changes needed?

fix #4036
How was this patch tested?

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

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Thanks, merging to master


Loophole to create Apple connection in localhost

Describe the issue:
When the IS is running in localhost the connection page has disabled Apple connection creation. But we can still create a connection through to the Sign in options tab of an application.

https://github.com/wso2/product-is/assets/11583571/e5332a71-4d73-42ee-b682-5746b03f2b0c
Expected behavior:
No need to block the Apple connection creation on the connection page as the connection not working in localhost is not due to a behaviour in our system.
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: IS7-beta-6-snapshot

Optional Fields
Related issues:

Suggested labels:

Disabled Apple connection in other places as well.

https://github.com/wso2/identity-apps/pull/5301

Moving back to in-progress as there is Apple option in visual editor as well.

Fix is completed with:

https://github.com/wso2/identity-apps/pull/5316


Changing a project from LESS to SCSS creates an error

I have a project that was in LESS, and I decided to try converting it to SCSS (it's easier to migrate from SCSS to PostCSS, which is where I want it to be eventually, but one step at a time). The app worked fine when connect-assets was processing a folder of LESS files. But after converting each file to SCSS and renaming the extension, and installing the node-sass gem, I now get this error output:
TypeError: /Users/lou/Repositories/codeforamerica/streetmix/app/views/_layout.jade:25
   23|     link(href='/favicon.ico', rel='shortcut icon')
   24|
 > 25|     != css('styles')
   26|
   27|     script.
   28|       var SITE_URL = 'http://#{ config.app_host_port }/'

[SassEngine] undefined is not a function  (in /Users/lou/Repositories/codeforamerica/streetmix/assets/css/styles.scss)
   at sassError (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/engines/sass_engine.js:57:9)
   at SassEngine.evaluate (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/engines/sass_engine.js:84:17)
   at /Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/context.js:450:26
   at Function.forEach (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/node_modules/lodash/dist/lodash.js:3298:15)
   at Context.evaluate (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/context.js:445:5)
   at new ProcessedAsset (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/assets/processed.js:145:29)
   at /Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/base.js:539:12
   at circular_call_protection (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/base.js:512:12)
   at Index.Base.buildAsset (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/base.js:538:10)
   at /Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/index.js:141:26
   at Index.module.exports.cacheAsset (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/helpers/caching.js:52:12)
   at Index.buildAsset (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/index.js:140:33)
   at Index.Base.findAsset (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/base.js:348:15)
   at Index.findAsset (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/index.js:114:22)
   at new BundledAsset (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/assets/bundled.js:53:37)
   at Index.Base.buildAsset (/Users/lou/Repositories/codeforamerica/streetmix/node_modules/connect-assets/node_modules/mincer/lib/mincer/base.js:535:12)

What's going on? A little help please?
Thanks!

From the stack, it looks like SASS is evaluating your file and is encountering an error.
codeforamerica/streetmix/assets/css/styles.scss  (undefined is not a function).
You might want to double-check that your SASS is valid, that’s where I would start looking! :)

Thanks, @adunkman. I used a script that converted LESS to SCSS, but it had introduced some errors or not caught everything. I'm closing this now as going through it with a validator helped solve my problem.


Vault Api Never Used

What exactly is vault for cause it compiles without the dependency lol....🐸

There's a minor bug with pushing commits to this repository, should get that patched...


Error:(47, 17) error: void cannot be dereferenced

hi
i got the error Error:(47, 17) error: void cannot be dereferenced in the below lines

.load(URLBase)
.addParam("operation", "getdistinct")
.asJsonObject()

the problem is in addparam and the return value.

Thanks for info, i forgot to return correct object from the methods.. this has been fixed now in version#0.9.5 please update the library version and sync your project again!
Regards,


feat: add Turkish translation for docs/tr/docs/alternatives.md

Orginal file: alternatives
Turkish translations discussions

📝 Docs preview for commit 885298d30e93e3c8820661325f09bccfce73c563 at: https://783b5d4f.fastapitiangolo.pages.dev

Before opening a PR, please read the Development - Contributing - FastAPI.
I'm assuming you didn't read it because of this line.
https://github.com/tiangolo/fastapi/blob/36c26677682c4245183912e00fc057c05cc6cf7a/docs/en/docs/contributing.md?plain=1#L265
Also there is already a PR for docs/tr/docs/alternatives.md at #10502
You can also join "FastAPI Türkiye" discord server, there is a group of people specifically focused on translations. You can find it here: FastAPI Türkiye

Before opening a PR, please read the Development - Contributing - FastAPI.
I'm assuming you didn't read it because of this line.
https://github.com/tiangolo/fastapi/blob/36c26677682c4245183912e00fc057c05cc6cf7a/docs/en/docs/contributing.md?plain=1#L265
Also there is already a PR for docs/tr/docs/alternatives.md at #10502
You can also join "FastAPI Türkiye" discord server, there is a group of people specifically focused on translations. You can find it here: FastAPI Türkiye

I joined your discord channel. I hope to get more detailed information from you, thank you! but I have read the entire documentation. I open the pr one by one in different branches.

I joined your discord channel. I hope to get more detailed information from you, thank you! but I have read the entire documentation. I open the pr one by one in different branches.

You're most welcome! The server weren't active lately but we are planning to regroup this week.
I referenced that line because your pull request contains two files, am I incorrect? The line I referred to in my latest comment says that you should open a translation pull request per page (meaning per markdown files).
Before anyone reviews your pull request, I highly suggest arrange your latest pull requests, which they share same files.

I joined your discord channel. I hope to get more detailed information from you, thank you! but I have read the entire documentation. I open the pr one by one in different branches.

You're most welcome! The server weren't active lately but we are planning to regroup this week.
I referenced that line because your pull request contains two files, am I incorrect? The line I referred to in my latest comment says that you should open a translation pull request per page (meaning per markdown files).
Before anyone reviews your pull request, I highly suggest arrange your latest pull requests, which they share same files. In this pr title you are referring to alrernatives.md but it still contains help-fastapi.md, which shouldn't. Please fix that...
Finally, why we should review this version instead of an older pr that does the same thing? #10502 what was the problem with that and if there were a problem, why didn't you leave a review with change requests? Can yoı see what I'm trying to tell?

Good luck for the translate! I am done! Thank you.

Sorry if I offended you by any means (which there is no reason), I was merely trying to help you.
About discord server, as I said we are regrouping this week but we still don't have a schedule. And there is this deal: I'm not waiting on a "voice channel" to welcome each person who joins the server but I do welcome each person who joins the server "when I get the chance".
I prefer not to reply the rest but keep in mind, communication is the essence.


Don't inline mbedtls_mpi_safe_cond_assign on MSVC/ARM64 to avoid a compiler bug

Description
Don't inline mbedtls_mpi_safe_cond_assign on MSVC/ARM64 to avoid a compiler bug. This addresses https://github.com/ARMmbed/mbedtls/issues/5467.
Status
READY
Requires Backporting
YES
Backport to 2.28: https://github.com/ARMmbed/mbedtls/pull/5468
This was introduced in 2.27 and I don't think that's maintained anymore? So 2.28 is the furthest the backport is needed.

Sounds good, I will update the PR once I know the concrete compiler version.


feat(ts-typings): add typescript definitions

Closes #5

Awesome! Suggestions for someone to review?

Hmm maybe our friend from #skatejs group https://github.com/vvakame

or one of preact ts-definitions contributor https://github.com/developit/preact/blob/master/src/preact.d.ts

@vvakame / @robertknight / @kruczy <3

Looks good to me,
the tsformat dev dependency seems like a bit of an overkill but it does not really hurt so ¯_(ツ)_/¯

@kruczy

the tsformat dev dependency seems like a bit of an overkill but it does not really hurt so ¯_(ツ)_/¯

haha yeah, that's why we have devDeps right ? :P 🍺


City name returned by telize should be URL encoded when passed to openweathermap

If the city name returned by telize has a space in it, the URL to connect to openweathermap is wrong and the result is unparseable by jq.  This also happens if the location name in .ansiweatherrc has a space in it.  For example, set location to "Sea Cliff,US".

Thanks for reporting this, it should be an easy fix.
I will commit something soon.
On Sep 15, 2015 8:36 PM, "Henry So"<EMAIL_ADDRESS>wrote:

If the city name returned by telize has a space in it, the URL to connect
to openweathermap is wrong and the result is unparseable by jq. This also
happens if the location name in .ansiweatherrc has a space in it. For
example, set location to "Sea Cliff,US".
—
Reply to this email directly or view it on GitHub
https://github.com/fcambus/ansiweather/issues/71.