Customer Cookie

Bigcommerce changed the cookie header in the response from doing login mutation. You get 2 cookies, you need to concat them. Until this is fixed, login won't work on the preview site
Also a separate question, have you guys come up with any way to login the customer on the bigcommerce frontend? A logged in customer on the nextjs frontend will not be logged in at checkout.

I am also having these issues! Very frustrating.

I am also having these issues! Very frustrating.

Before when the cookie came from bigcommerce it came as a string, now it is an array, I think one called shop_token and the other one is called shopper-pref, so you just have to set those as cookies on your frontend, and then you can send it as a header with graphql query to get the current customer

I believe this may be a duplicate: https://github.com/vercel/commerce/issues/299

I am also having these issues! Very frustrating.

Before when the cookie came from bigcommerce it came as a string, now it is an array, I think one called shop_token and the other one is called shopper-pref, so you just have to set those as cookies on your frontend, and then you can send it as a header with graphql query to get the current customer

the new token uses the key Shopper-Pref, but now SHOP_TOKEN is missing from cookies.... basically, this breaks wishlist and login functionality.

I am also having these issues! Very frustrating.

Before when the cookie came from bigcommerce it came as a string, now it is an array, I think one called shop_token and the other one is called shopper-pref, so you just have to set those as cookies on your frontend, and then you can send it as a header with graphql query to get the current customer

the new token uses the key Shopper-Pref, but now SHOP_TOKEN is missing from cookies.... basically, this breaks wishlist and login functionality.

https://gist.github.com/jorgemasta/c709b63501344970026f3a3e7646cc77
try using this instead of the graphql cookie, it returns 3 cookies

I am also having these issues! Very frustrating.

Before when the cookie came from bigcommerce it came as a string, now it is an array, I think one called shop_token and the other one is called shopper-pref, so you just have to set those as cookies on your frontend, and then you can send it as a header with graphql query to get the current customer

the new token uses the key Shopper-Pref, but now SHOP_TOKEN is missing from cookies.... basically, this breaks wishlist and login functionality.

https://gist.github.com/jorgemasta/c709b63501344970026f3a3e7646cc77
try using this instead of the graphql cookie, it returns 3 cookies

Thanks so much, very helpful. I'm still having a bit of trouble... the API still isn't returning a SHOP_TOKEN..... though there is a SHOP_SESSION_TOKEN
Do you happen to know if/where any of this is documented?

I just solved the problem for myself.
I changed the async function login(){...} definition in the file framework/bigcommerce/auth/login.ts (lines 32-71) to the following:
async function login({
  query = loginMutation,
  variables,
  res: response,
  config,
}: {
  query?: string
  variables: LoginVariables
  res: ServerResponse
  config?: BigcommerceConfig
}): Promise<LoginResult> {
  config = getConfig(config)

  const { data, res } = await config.fetch<RecursivePartial<LoginMutation>>(
    query,
    { variables }
  )

   // Set-Cookie returns several cookies, we want SHOP_TOKEN and Shopper-pref
   let shopToken = getCookie(res.headers.get('Set-Cookie'), 'SHOP_TOKEN');
   let prefToken = getCookie(res.headers.get('Set-Cookie'), 'Shopper-Pref');
   if (shopToken && typeof shopToken === 'string') {
     // In development, don't set a secure shopToken or the browser will ignore it
     if (process.env.NODE_ENV !== 'production') {
       shopToken = shopToken.replace(/; Secure/gi, '')
       shopToken = shopToken.replace(/; SameSite=none/gi, '; SameSite=lax')
     }
     response.setHeader(
       'Set-Cookie',
       concatHeader(response.getHeader('Set-Cookie'), shopToken)!
     )
     response.setHeader(
       'Set-Cookie',
       concatHeader(response.getHeader('Set-Cookie'), `${prefToken}`)!
     )
    }

    return {
      result: data.login?.result,
    }
}

@clockelliptic I have updated my code to cater for the multiple cookies as per your code above. However, when I'm redirected to the Bigcommerce checkout url, the customer is not logged in.
Any additional steps I need to take to make this work? Is your implementation based on using redirecting to Bigcommerce store checkout url as well?

@clockelliptic I have updated my code to cater for the multiple cookies as per your code above. However, when I'm redirected to the Bigcommerce checkout url, the customer is not logged in.
Any additional steps I need to take to make this work? Is your implementation based on using redirecting to Bigcommerce store checkout url as well?

https://github.com/bigcommerce/storefront-data-hooks
For starters the checkout needs to be on a subdomain of your headless implementation

Any news or merged request as been made on this issue ?
In my side, even using the getCookie from @kogan007  with @clockelliptic's code it does not work.
If I am already logged in when I proceed to checkout I got an error.

@Florian-crg Don't use the cookie code anymore. See this https://github.com/vercel/commerce/issues/531
You need to implement server session. Use the graphql login mutation and get the customer ID. Use the ID to create a customer impersonation token, and store it along with any other customer information you need in a secure session. Check out https://github.com/vvo/next-iron-session or Next Auth for implementing this.
Also for checkout code make sure the customer ID is an Int and not a string, and console.log the payload to make sure all the variables are there. You might be missing some environment variables.

Yes you're right one of my variables had something. When you mean create a customer impersonation token you're talking about the BC route /storefront/api-token-customer-impersonation  ?
Because I do not see any mention in the storefront customer impersonation token about the customer ID.

Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: #966


bug with dynamic import

Hello,
I would like to call a page by a dynamic import depending on the parameter of the url, but it doesn't work.
If I do not import with a parameter it works correctly.
This is my code :

This is the error :

I do not know how to solve it.
Thank you for your help!

Hello @nacimgoura ,
It's not a bug, it's Meteor's feature.
In short - you can not use variables it import/require path, only solid String is supported.
See:

This forum thread
One more forum thread

Let me know if it helped you.

Sorry for creating this issue, i didn't know.
Thank you!

@nacimgoura no worries, I stepped in the same issue after<EMAIL_ADDRESS>with dynamic imports was released :)

Also, It is possible to use waitOn in FlowRouter.group ?

Also, It is possible to use waitOn in FlowRouter.group ?

Yes, since v3.2.0, see #11


Enable Transport configuration for git repos in a composite

Merge Ssh configuration properties classes with JGitEnvironmentProperties
Fixes gh-976

One more change to make before this is ready for review!

@tdanylchuk Updated per your suggestion!

LGTM 👍

@spencergibb @ryanjbaxter Requested changes implemented!


[refactor] Use '# coding: utf-8'

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

There are still some inconsistent coding cookies apart from these.

@dstftw Added a few more. Are these all?

Cherry-picked in dcdb292fddc82ae11f4c0b647815a45c88a6b6d5, thanks.


crossOrigin attribute breaks functionality on non-standard ports

If I'm running a web server locally on port 3000 (or any port other than 80), and try to use cropper with an image from the web, cropper generates a 'Cross-Origin Resource Sharing policy' error.
If I remove the crossOrigin attribute code on L152, this error doesn't happen and the image gets appended appropriately.
Can we make the crossOrigin attribute optional?

It is a cross-domain image, and I need use canvas method : getDataURL ,what should I do?


TypeError: Cannot read properties of undefined (reading 'some')

Describe the bug
Everything works fine on localhost, but when I try to load detail of any entity in production I get UI for few ms and then this error occurs
TypeError: Cannot read properties of undefined (reading 'some')
at Object.hasInlines (_next/static/chunks/0b54ada9-bdc2be2cffc9c36b.js:172:114725)
Opening an issue pre-populates it with the error message and debugging data.
Please verify the information is correct and remove sensitive data if exists.
Details
TypeError: Cannot read properties of undefined (reading 'some')
at Object.hasInlines (_next/static/chunks/0b54ada9-bdc2be2cffc9c36b.js:172:114725)
at Object.hasInlines (_next/static/chunks/0b54ada9-bdc2be2cffc9c36b.js:172:63004)
...
it points towards method
 hasInlines: function() {
    for (var sh, dC = arguments.length, dU = Array(dC), Tl = 0; Tl < dC; Tl++)
        dU[Tl] = arguments[Tl];
    return sh = nB,
    dU.children.some(nB=>tum.isText(nB) || tur.isInline(sh, nB))
},

Everything else in admin works normaly (listing, files, ...) . There is no error in network or anywhere else (even data from eny entity loads fine it seems).
To Reproduce
I am not quite sure. It used to work normaly on v 2.4.3, but now it shows this in every detail of any entity. I am using GitLab pkce auth. Tried to update to latest version too, but no luck. Hosting on vercel.
Expected behavior
Production should work just like localhost.
Screenshots
Applicable
Versions:

Static CMS version<EMAIL_ADDRESS>Git provider: gitlab
Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36

CMS configuration
"dependencies": {
		"@babel/core": "^7.22.17",
		"@babel/preset-react": "^7.22.15",
		"@staticcms/core": "3.2.0",
		"date-fns": "^2.30.0",
		"frontmatter-markdown-loader": "^3.7.0",
		"fs-extra": "^11.1.1",
		"gray-matter": "4.0.3",
		"intersection-observer": "^0.12.2",
		"leaflet": "^1.9.4",
		"leaflet-defaulticon-compatibility": "^0.1.2",
		"next": "^13.4.19",
		"react": "^18.2.0",
		"react-anchor-link-smooth-scroll": "^1.0.12",
		"react-dom": "^18.2.0",
		"react-icons": "^4.11.0",
		"react-image-gallery": "^1.3.0",
		"react-intersection-observer": "^9.5.2",
		"react-leaflet": "^4.2.1",
		"react-markdown": "^8.0.7",
		"react-responsive-carousel": "^3.2.23",
		"rehype-raw": "^7.0.0",
		"remark": "14.0.3",
		"remark-html": "15.0.2",
		"sharp": "^0.32.5",
		"tailwindcss": "^3.3.3"
	},
	"scripts": {
		"dev": "next dev",
		"build": "next build",
		"start": "next start",
		"lint": "next lint",
		"copyimages": "node ./src/bin/copy-images.mjs",
		"prebuild": "npm run copyimages"
	},
	"devDependencies": {
		"@next/eslint-plugin-next": "^13.4.19",
		"@types/node": "20.6.0",
		"autoprefixer": "^10.4.15",
		"eslint-config-next": "^13.4.19",
		"eslint-plugin-react": "^7.33.2",
		"postcss": "^8.4.29",
		"postcss-css-variables": "^0.19.0",
		"postcss-import": "^15.1.0",
		"typescript": "5.2.2"
	}

This appears to be an issue with the markdown editor (at least that is where the stack trace is pointing to). I am not sure why, potentially some issue in the Plate/Slate dependency code. I'll update those dependencies for the next release and we can see if that resolves the issue for you.

Version 3.3.0 has been released with updated versions of the plate and slate dependencies. Please try that version and let me know if you are still seeing the issue or not.

Hello, thanks for the fast response and support. Unfortunatelly it seems it didn't help.  I think it's some problem with GitLab x Vercel as we've tried it with Netlify identity (which we left before because Netlify was buggy with building nextjs v13) and it seems to be working.
Probably gonna switch back to Netlify Identity. I'll try to keep you posted

I'm facing the same issue as OP, even with version 3.3.0. It indeed seems to be a problem with the markdown editor/field, because removing it from a collection makes entries load without a problem.

Could either of you provide the following to help me reproduce this.

Your config for the collection having issues
A sample data file from that collection

Here's a reproduction repo

Thanks! I was able to reproduce it and will work to find a fix.
Also, I did notice that in dev the CMS get loaded twice due to reactStrictMode being on (it renders everything twice on purpose to check for side effects). See https://github.com/vercel/next.js/issues/35822
If you want to keep reactStrictMode on you need to check to see if the CMS is already loaded in the CMSView before initializing. You can do that by checking for the id cms-root,

This looks to be an issue specifically with Next 13.5. Its compiling the plate/slate code differently, with 13.4 doing it correctly and 13.5 making it always error.
const hasInlines13_4 = (tN, h$) => h$.children.some((h$) => tlW.isText(h$) || tlO.isInline(tN, h$));

const hasInlines13_5 = function () {
  for (var uH, pZ = arguments.length, vB = Array(pZ), El = 0; El < pZ; El++) {
    vB[El] = arguments[El];
  }

  return (uH = lh), vB.children.some((lh) => td_.isText(lh) || tdc.isInline(uH, lh));
};

It appears to be a combination of slate ^0.94 (which Static CMS upgrades to in v3.0.0) and Next. Slate 0.94 changed how it handled editor functions (aka, what hasInlines is) and this result in a different output. This output is getting transformed by Next into non functioning code. This is likely related to SWC minify. I do not see an obvious answer to how to fix it, but I am still looking.

Looks like if @staticcms/core is not minified, then things work correctly. Next minifies it properly then. Since @staticcms/core is only meant for bundling, I set it to not be minified. @staticcms/app will continue to be minified.
This should be resolved with v3.3.2.


Restructure stack artifact usage

CHANGES

Renamed 'src' -> 'templates'
Rename 'stackimage' -> 'stackimage-build-dir'
Create new 'generated' dir to hold output of generation from substitution (and add to .gitignore)
Copy generated artifacts to ../application-stack-registry with build.sh release

UPDATE FLOW

Update contents
Update build.sh versions
./build.sh release
git tag  with changes (one or more of:)

devfile-0.3.0
image-0.2.2 ...

If stack image update

https://github.ibm.com/was-docker/build-java-openliberty-stack-image build-java-openliberty-stack-image, update SHA, versions

If devfile update

PR to devfile-registry (if necessary)

Superseded by #97


Fix for the problem of not finding the files on Windows

Hey Henrique, sorry about the delay, had health issues. I will look into it asap.

As I said on the #7 issue, this won't fix it but it is still worth implementing because it going to fix a few issues we might face in the future.

Okay, thanks for looking into this!


Spruce up API documentation

Motivation
Currently, we have API documentation for users to reference, but there may be some stale information such as missing parameters, outdated fields.
Scope of change

API calls that take in query parameters need to be updated with the corresponding information
Any changes in our API request/response data models need to be reflected

@mitruly do you have specifics for this issue or can we close this in favor of more specific issues?

Api docs have been updated at https://www.vinyldns.io/api/


Docker Extension will not provision on Cent OS 7.2n

(if you would like to reach out inside Microsoft, my alias is dasto)
Dear Docker Extension team,
I am a Support Engineer on a customer case investigating a deployment error for the docker extension on CentOS 7.2n. The deployment works fine on CentOS 7.0, however on the newer 7.2n we seem to get the following deployment error:
[DockerExtension] 2016/08/17 12:31:15 restarting docker-engine
[executil] 2016/08/17 12:31:15 +++ invoke: systemctl [daemon-reload]
[executil] 2016/08/17 12:31:16 --- invoke end
[executil] 2016/08/17 12:31:16 +++ invoke: systemctl [restart docker]
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
[executil] 2016/08/17 12:31:16 --- invoke end
[DockerExtension] 2016/08/17 12:31:16 ERROR: executing systemctl [restart docker] failed: exit status 1
I have attached the following logs:

/var/log/azure-docker-extension-enable.log
/var/log/waagent.log

Additionally I also ran systemctl status docker.service and journalctl -xe on the problem machine. The output for these is attached too.
It would be great if you could have a look into this issue.
My repro environment is still set up and I can give you access if required.

@danielstocker thanks for reporting. I can't see the attachments.

journalctl -xe.txt
attaching logs

@danielstocker journalctl -xe seems empty. Can you please give the two files above and journalctl -au docker.service?

@ahmetalpbalkan
Sorry Ahmet,
Here they are...
Docker.zip

Unfortunately this one is empty as well. It's likely due to the fact that docker never ran

Finally a template that deploys just the Cent OS 7.2n image on an A0 machine - the extension is not yet added and can be deployed via the portal or CLI

@danielstocker I see errors like
2016/08/17 12:30:19 ERROR:Exception: [Errno 12] Cannot allocate memory
2016/08/17 12:30:19 Restart agent in 15 seconds
2016/08/17 12:30:34 Azure Linux Agent Version: WALinuxAgent-2.0.18
2016/08/17 12:30:34 Linux Distribution Detected      : centos
2016/08/17 12:30:34 ERROR:Traceback (most recent call last):
2016/08/17 12:30:34 ERROR:  File "/usr/sbin/waagent", line 7162, in main
2016/08/17 12:30:34 ERROR:    WaAgent.Run()
2016/08/17 12:30:34 ERROR:  File "/usr/sbin/waagent", line 6535, in Run
2016/08/17 12:30:34 ERROR:    self.SearchForVMMStartup()
2016/08/17 12:30:34 ERROR:  File "/usr/sbin/waagent", line 6380, in SearchForVMMStartup
2016/08/17 12:30:34 ERROR:    self.TryLoadAtapiix()
2016/08/17 12:30:34 ERROR:  File "/usr/sbin/waagent", line 6340, in TryLoadAtapiix
2016/08/17 12:30:34 ERROR:    retcode,krn=RunGetOutput('uname -r')
2016/08/17 12:30:34 ERROR:  File "/usr/sbin/waagent", line 3006, in RunGetOutput
2016/08/17 12:30:34 ERROR:    output=subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
2016/08/17 12:30:34 ERROR:  File "/usr/lib64/python2.7/subprocess.py", line 568, in check_output
2016/08/17 12:30:34 ERROR:    process = Popen(stdout=PIPE, *popenargs, **kwargs)
2016/08/17 12:30:34 ERROR:  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
2016/08/17 12:30:34 ERROR:    errread, errwrite)
2016/08/17 12:30:34 ERROR:  File "/usr/lib64/python2.7/subprocess.py", line 1224, in _execute_child
2016/08/17 12:30:34 ERROR:    self.pid = os.fork()
2016/08/17 12:30:34 ERROR:OSError: [Errno 12] Cannot allocate memory
2016/08/17 12:30:34 ERROR:
2016/08/17 12:30:34 ERROR:Exception: [Errno 12] Cannot allocate memory

in the waagent.log. Is your VM running low on memory (docker will fail if your machine does not have enough memory)? I also see diagnostics extension installation failures (that is probably not relevant). Can you try journalctl -au docker

@danielstocker it looks like the docker installation was also not healthy, even though yum exited successfully. I bet the installation also got impaired by out of memory issues.
[executil] 2016/08/17 12:28:37 +++ invoke: /bin/sh [-c curl -sSL https://get.docker.com/ | sh]

+ sh -c 'sleep 3; yum -y -q install docker-engine'
warning: /var/cache/yum/x86_64/7/docker-main-repo/packages/docker-engine-selinux-1.12.0-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-selinux-1.12.0-1.el7.centos.noarch.rpm is not installed
Importing GPG key 0x2C52609D:
 Userid     : "Docker Release Tool (releasedocker<EMAIL_ADDRESS> Fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d
 From       : https://yum.dockerproject.org/gpg
/var/tmp/rpm-tmp.QaTQ0K: line 8:  1575 Killed                  /usr/sbin/semodule -n -s targeted -i $MODULES
restorecon:  lstat(/var/lib/docker) failed:  No such file or directory
warning: %post(docker-engine-selinux-1.12.0-1.el7.centos.noarch) scriptlet failed, exit status 255
Non-fatal POSTIN scriptlet failure in rpm package docker-engine-selinux-1.12.0-1.el7.centos.noarch
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

@danielstocker what I can suggest is:

make sure the VM has enough memory
uninstall the extension from PowerShell/CLI/API/Portal
run yum -y -q remove docker-engine.x86_64 to uninstall remnants of docker engine (if any)
add the extension back.

and it should work

I can repro this without templates etc.
docker installs fine
+++ invoke: /bin/sh [-c curl -sSL https://get.docker.com/ | sh]
+ sh -c 'sleep 3; yum -y -q install docker-engine'
warning: /var/cache/yum/x86_64/7/docker-main-repo/packages/docker-engine-selinux-1.12.0-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-selinux-1.12.0-1.el7.centos.noarch.rpm is not installed
Importing GPG key 0x2C52609D:
 Userid     : "Docker Release Tool (releasedocker<EMAIL_ADDRESS> Fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d
 From       : https://yum.dockerproject.org/gpg
restorecon:  lstat(/var/lib/docker) failed:  No such file or directory
warning: %post(docker-engine-selinux-1.12.0-1.el7.centos.noarch) scriptlet failed, exit status 255
Non-fatal POSTIN scriptlet failure in rpm package docker-engine-selinux-1.12.0-1.el7.centos.noarch

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

systemctl restart docker does not work:
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

logs:
# journalctl -au docker
-- Logs begin at Wed 2016-08-17 18:14:17 UTC, end at Wed 2016-08-17 18:36:31 UTC. --
Aug 17 18:33:45 centos72n systemd[1]: Starting Docker Application Container Engine...
Aug 17 18:33:45 centos72n docker[1702]: time="2016-08-17T18:33:45.633380388Z" level=fatal msg="no sockets found via socket activation: make sure the service was started by systemd"
Aug 17 18:33:45 centos72n systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Aug 17 18:33:45 centos72n systemd[1]: Failed to start Docker Application Container Engine.
Aug 17 18:33:45 centos72n systemd[1]: Unit docker.service entered failed state.
Aug 17 18:33:45 centos72n systemd[1]: docker.service failed.

This is a fun one: https://github.com/docker/docker/issues/23793

@colemickens I wonder if related at all. I'm adding the extension minutes after the VM is provisioned.

Hm, on closer look, they are slightly different error messages. Does docker start if you ssh in and manually issue sudo systemctl start docker though?

Trying on a clean VM without DockerExtension:

Image: openlogic:CentOS:7.2n:7.2.20160629
CentOS Linux release 7.2.1511 (Core) - kernel: 3.10.0-327.22.2.el7.x86_64

# curl -sSL https://get.docker.com/ | sh
+ sh -c 'sleep 3; yum -y -q install docker-engine'
warning: /var/cache/yum/x86_64/7/docker-main-repo/packages/docker-engine-selinux-1.12.0-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-selinux-1.12.0-1.el7.centos.noarch.rpm is not installed
Importing GPG key 0x2C52609D:
 Userid     : "Docker Release Tool (releasedocker<EMAIL_ADDRESS> Fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d
 From       : https://yum.dockerproject.org/gpg
restorecon:  lstat(/var/lib/docker) failed:  No such file or directory
warning: %post(docker-engine-selinux-1.12.0-1.el7.centos.noarch) scriptlet failed, exit status 255
Non-fatal POSTIN scriptlet failure in rpm package docker-engine-selinux-1.12.0-1.el7.centos.noarch

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: https://docs.docker.com

# systemctl restart docker

# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2016-08-17 18:50:45 UTC; 6s ago
     Docs: https://docs.docker.com
 Main PID: 1637 (dockerd)
   Memory: 18.5M
   CGroup: /system.slice/docker.service
           ├─1637 /usr/bin/dockerd
           └─1641 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim doc...

Aug 17 18:50:43 centos72n1 dockerd[1637]: time="2016-08-17T18:50:43.571104948Z" level=warning msg="mountp...und"
Aug 17 18:50:43 centos72n1 dockerd[1637]: time="2016-08-17T18:50:43.571470790Z" level=info msg="Loading c...rt."
Aug 17 18:50:43 centos72n1 dockerd[1637]: time="2016-08-17T18:50:43.833842965Z" level=warning msg="Running mo...

Hint: Some lines were ellipsized, use -l to show in full.

systemctl stop docker

Edit /usr/lib/systemd/system/docker.service, ExecStart=/usr/bin/dockerd line to:
ExecStart=/usr/bin/docker daemon -H=fd://

This is what DockerExtension currently does. But it causes failure:
# systemctl daemon-reload

# systemctl restart docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

# systemctl status -l docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2016-08-17 18:52:48 UTC; 57s ago
     Docs: https://docs.docker.com
  Process: 1809 ExecStart=/usr/bin/docker daemon -H=fd:// (code=exited, status=1/FAILURE)
 Main PID: 1809 (code=exited, status=1/FAILURE)

Aug 17 18:52:47 centos72n1 systemd[1]: Starting Docker Application Container Engine...
Aug 17 18:52:48 centos72n1 docker[1809]: time="2016-08-17T18:52:48.245582841Z" level=fatal msg="no sockets found via socket activation: make sure the service was started by systemd"
Aug 17 18:52:48 centos72n1 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Aug 17 18:52:48 centos72n1 systemd[1]: Failed to start Docker Application Container Engine.
Aug 17 18:52:48 centos72n1 systemd[1]: Unit docker.service entered failed state.
Aug 17 18:52:48 centos72n1 systemd[1]: docker.service failed.

Changing fd:// to unix:///var/run/docker.sock seems to have worked:
# systemctl daemon-reload

# systemctl restart docker

# systemctl status -l docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2016-08-17 18:54:34 UTC; 2s ago
     Docs: https://docs.docker.com
 Main PID: 1843 (dockerd)
   Memory: 13.3M
   CGroup: /system.slice/docker.service
           ├─1843 dockerd -H=unix:///var/run/docker.sock
           └─1850 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim docker-containerd-shim --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --runtime docker-runc

This is definitely a bug introduced upstream and has nothing to do with the extension. -H=fd:// argument is supposed to work.
@danielstocker I'm going to close this issue and add these details to https://github.com/docker/docker/issues/23793 I advise your customer to hit Subscribe button on that issue page and follow the updates.

@danielstocker  Closing as I moved the bug report to https://github.com/docker/docker/issues/23793#issuecomment-240543358
To give you more info, on "all" systemd systems we run docker engine as docker daemon -H=fd:// arguments. This includes CoreOS, Ubuntu 16.04, CentOS/RHEL 7 and so on.
If we don't get this resolved on docker side and your customer needs it, we can consider patching it as just running dockerd command with no arguments (I bet docker figures it out).
I'm not sure if patching it as -H=unix:///var/run/docker.sock will be compatible on all distros. So let us know if your customer really needs it, otherwise it's just yet another case that we got broken again by upstream.

Reopening. Apparently -H fd:// is not valid on CentOS anymore as docker removed socker activation from the centos part of the get.docker.com installation script.
@colemickens  My plan here is the following:

Publish Docker Extension 1.2 (minor bump) so that only new VMs get it (more below)
Update all distros to just have just dockerd; do not add -H=fd:// or -H=unix:// (both for systemd and upstart) anymore.
Add centos72 to the list of distros tested in integration tests and update the list

Normally we rarely release minor versions (it means new version) and only new VMs that are specifying autoUpgradeMinorVersion:true or v:1.*  get it. But in this case, if we release it as a hotfix, the extension will realize the docker.service (or similarly the upstart file) is not in the desired shape (e.g. does not start like ExecStart=dockerd) and it will update the unit file on the next time extension is enabled (e.g. VM reboot). If an older version of docker is installed on the VM already, things will fail and we'll be breaking the user's environment.
Therefore releasing this as a minor version is better. On the other hand, we still support old versions of CoreOS and those definitely don't have dockerd yet. Maybe I'll add an override to coreos driver saying keep using docker daemon command for now. In parallel, I'll ask docker how long docker daemon will be around but I'm pretty sure they'll just deprecate it at some version without a major release.

This will go out as v1.2.0 soon.

version 1.2.0 is now in production. The problem on CentOS should be resolved now.


config.action_mailer.default_url_options is being ignored when setting token_link in verify_account email

Hi,
I've got a Rails app in API mode.
When I set a config.action_mailer.default_url_options in Rails environment file — it's being ignored during email generation, specifically when app generates a verify account email with a verification token link.
Example:
# config/environments/development.rb
# app runs on localhost:3000

...
config.action_mailer.default_url_options = { host: '<IP_ADDRESS>', port: '8080' }
...

and in account verification email I still get a http://localhost:3000/verify-account?key=a8b59ebd-bc3e-4f53-9dbb-52283ae328ce_p6wyObT2QMUvdKG0ExhUmnbdvhPPaM9FZLtwX_i9WGY
Is this an expected behavior for API-only app?
Thank you.

The rodauth:install generator configures the Action Mailer integration to pass full URLs as method arguments, which doesn't take config.action_mailer.default_url_options into account, but uses the URL options of the current request. This enables the mailer not to have to instantiate a Rodauth instance when background jobs are used, and figure out which methods to call.
Do you have a situation where you want to use URL options for email links that doesn't match the current URL? I'm guessing that's a valid use case. It would probably be possible to rewrite mailers in a way where they only receive the account ID, and use it to create a rodauth instance via Rodauth::Rails.rodauth, which is configured with config.action_mailer.default_url_options.

Thanks for quick reply, Janko!

Do you have a situation where you want to use URL options for email links that doesn't match the current URL?

Yes, I'm using a SPA frontend, which has a hostname that's different from backend's.
And backend is configured to take JSON-only requests.
So, when user receives a (default, which is totally fine for my case) verification email and clicks a link in a message — the app can't verify account, as it needs a JSON request, not a GET.
To make my setup work as I want I need an email with a link to a frontend hostname, which user follows by clicking and then frontend extracts the key and forwards it to a rodauth backend endpoint with a JSON request.
I think it's a common case for such a setups, so it would be great to have some default implementation for mailers in API-only mode, as You've said.
Thanks!


Addition for Proxies to be used?

just curious if there might be a way to push all these through http proxies as well for those who are banned from going to supremenewyork.com or other sites that have bot blocking.

yes


Hi，how to deal with this problem

I think there is a bug in the code, have you downloaded the dataset?


fix: update gas_limit variable type from u32 to u64

Motivation

When collecting transactions data from other EVM chains (BSC) there were some transactions that had a gas_limit greater than u32::MAX() which caused an integer overflow error.
In BSC there are transactions that use i64::MAX as the gas limit. This is most commonly seen in the last transaction of the block where the validator deposits to the validator set.
Example here: https://bscscan.com/tx/0x7dcda3c9b1ced4c01f5634a88ab72a34ffc3d3f4c1fe1aed88c2fca0d0a34efd
Solution

Update data type for gas_limit variable  for transactions from u32 to u64.
PR Checklist

[ ] Added Tests
[ ] Added Documentation
[ ] Breaking changes

implemented as part of #76


Missing one url

Should there be a /api/auth/callback/auth0 before the request /api/auth/session? code=%s&state=%s, otherwise it cannot be obtained
在请求/api/auth/session之前，应该还有一个/api/auth/callback/auth0?code=%s&state=%s，否则获取不到

Works for me without it. Feel free to open a pull request if this doesn't work for you


bindfs: 1.14.9 -> 1.15.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/bindfs/versions.
meta.description for bindfs is: "A FUSE filesystem for mounting a directory to another location"
meta.homepage for bindfs is: "https://bindfs.org"
meta.changelog for bindfs is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.15.0 with grep in /nix/store/fs95dga6ixc0pqy8s448p5vkvzxrijd6-bindfs-1.15.0

directory tree listing: https://gist.github.com/21277acde1a508268ddb85597fc32e8d

du listing: https://gist.github.com/543c5bb6fa3848601036ef437f0fa02f

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
bindfs

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/fs95dga6ixc0pqy8s448p5vkvzxrijd6-bindfs-1.15.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A bindfs https://github.com/r-ryantm/nixpkgs/archive/6abcada9a8bc248f8f08ad42ddcb334aa169f45f.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/fs95dga6ixc0pqy8s448p5vkvzxrijd6-bindfs-1.15.0
ls -la /nix/store/fs95dga6ixc0pqy8s448p5vkvzxrijd6-bindfs-1.15.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

bindfs

Maintainer pings
cc @lovek323 for testing.

Result of nixpkgs-review pr 113308 at 6abcada9 run on aarch64-linux 1

1 package built:

bindfs

1 suggestion:

warning: unclear-gpl
gpl2 is a deprecated license, check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.
Near pkgs/tools/filesystems/bindfs/default.nix:21:5:
   |
21 |     license     = lib.licenses.gpl2;
   |     ^

I added the new release and appeased the robot

Result of nixpkgs-review pr 113308 run on x86_64-linux 1

1 package built:

bindfs


[FLINK-2814] [optimizer] DualInputPlanNode cannot be cast to SingleInputPlanNode

WorksetIterationNode#instantiate loops over all solution and work set candidates. Since the solution set reference is modified in place when the predecessor node can be used in its place, swith this variable to the inner loop.
@StephanEwen this is similar to #2029 but resets the reference in the loop. I believe my prior suggestion to immediately return upon adding a node was incorrect as the instantiate methods look to be compiling all valid combinations.
IntelliJ code coverage on flink-optimizer shows 105 hits through WorksetIterationNode#instantiate and it does fix this issue with my Katz Centrality algorithm (which should not be using delta iterations, but I was young and naive when I wrote it).

Nice, looks like a compact fix.
With the explanation about test coverage, +1 from my side

@greghogan I think you can go ahead and merge this...

@StephanEwen thanks for the reminder. Do you think this should also be merged to 1.2 or 1.1?

I think cherry-picking this into the release-1.2 branch would be nice


Adding new info to clarify --mount vs -v. Showing that type=volume cr…

Proposed changes

Unreleased project version (optional)
Related issues (optional)

Deploy preview for docsdocker ready!
Built with commit 5ae5b17ebe41aabf8cf28cd4a7198f7477569e5f
https://deploy-preview-9291--docsdocker.netlify.com


Setting NB SyncVar field and getting it on server before spawn returns null on server (Should be a simple fix?)

Describe the bug
SyncVar of type NetworkBehaviour, NetworkIdentity, GameObject will always return null on server before the containing object is spawned.
Problematic Use case
Projectile newProj = Instantiate(projectilePrefab);
newProj.shooter = this;
newProj.OnBeforeSpawn();
NetworkServer.Spawn(newProj);

// ...

public class Projectile : NetworkBehaviour
{
    [SyncVar]
    public Player shooter;
    // ...

    public void OnBeforeSpawn()
    {
        // causes NullReferenceException, shooter will always return null regardless of real field value
        damage *= shooter.damageBonusMultiplier;
    }
}

Cause of this bug
Weaver handles getter of SyncVars that needs caching specially with NetworkBehavior.GetSyncVar~ methods.
protected NetworkIdentity GetSyncVarNetworkIdentity(uint netId, ref NetworkIdentity identityField)
{
    // server always uses the field
    if (isServer)
    {
        return identityField;
    }

    // client always looks up based on netId because objects might get in and out of range
    // over and over again, which shouldn't null them forever
    NetworkClient.spawned.TryGetValue(netId, out identityField);
    return identityField;
}

However isServer of NetworkIdentity is false before the object is spawned, so it will try to fetch value from NetworkClient.spawned, which is always null on server(non-host), hence the problem.
We can't just do isServer => NetworkServer.active because it will break all SyncVar tests. (SyncVar tests simulate server/client by creating two respective objects, but NetworkServer.active is static. Every objects will simply return identityField)
I'll try to think of something that makes sense and does not break tests.

good analysis.

@lumeriith please join our discord if you haven't already :)

@vis2k I’m in discord by the name Lunaris already, but thanks for asking!


Is there anyway to show Flops and Params for each component of the network?

Beside the entire model's flops and params, is there anyway to output Flops and Params for each component of the network?

You can feed in each component separately.


help needed

since i am new to this language model i am unable to understand , how to run this project .
i have cloned this repository and installed the requirements but i am unable to understand this
You have to run your llama model from Ollama.
Ollama serve.
i even installed ollama in my device .
i am running the commands in terminal but i dont know what to do for running llama.
please help

Hey, Hi Naveen,
Did you install the LLama3 model? If you didn't then use this command in the terminal.
Ollama pull llama3


Fix the TW alias in the documentation issue template

Description
It was discovered that the documentation issue template included a wrong alias for Technical Writers, which resulted in mis-assignment. This PR fixes the issue.
Changes proposed in this pull request:

Fix the TW alias in Assignees in the documentation issue template

Related issue(s)
Fixes kyma-project/kyma#9920

/retest


[BUG] Unable to install v1.3 via PyPI/pip

Describe the bug
Unable to install dbt-coves v1.3 from PyPI (via pip install)
To Reproduce
python -m venv venv_test
source venv_test/bin/activate
pip install --upgrade pip
pip install dbt-coves~=1.3

Expected behaviour
Successful installation (I noticed v1.4 was yanked on PyPI, so pinning to ~=1.3, which I'm assuming is >=1.3,<1.4)
Console Log/Tracebacks
(note, I added line breaks to make it more human-readable)
ERROR: Ignored the following versions that require a different python version: 0.19.1a7 Requires-Python >=3.7,<3.9; 0.19.1a8
Requires-Python >=3.7,<3.9; 0.19.1a9 Requires-Python >=3.7,<3.9; 0.19.2a10 Requires-Python >=3.7,<3.9; 0.20.0a1
Requires-Python >=3.7,<3.9; 0.20.0a2 Requires-Python >=3.7,<3.9; 0.20.0a3 Requires-Python >=3.7,<3.9; 0.21.0a1
Requires-Python >=3.7,<3.9; 0.21.0a10 Requires-Python >=3.7,<3.9; 0.21.0a11 Requires-Python >=3.7,<3.9; 0.21.0a12
Requires-Python >=3.7,<3.9; 0.21.0a13 Requires-Python >=3.7,<3.9; 0.21.0a14 Requires-Python >=3.7,<3.9; 0.21.0a15
Requires-Python >=3.7,<3.9; 0.21.0a16 Requires-Python >=3.7,<3.9; 0.21.0a17 Requires-Python >=3.7,<3.9; 0.21.0a18
Requires-Python >=3.7,<3.9; 0.21.0a2 Requires-Python >=3.7,<3.9; 0.21.0a3 Requires-Python >=3.7,<3.9; 0.21.0a4
Requires-Python >=3.7,<3.9; 0.21.0a5 Requires-Python >=3.7,<3.9; 0.21.0a6 Requires-Python >=3.7,<3.9; 0.21.0a7
Requires-Python >=3.7,<3.9; 0.21.0a8 Requires-Python >=3.7,<3.9; 0.21.0a9 Requires-Python >=3.7,<3.9; 0.21.1a19
Requires-Python >=3.7,<3.9; 0.21.1a20 Requires-Python >=3.7,<3.9
ERROR: Could not find a version that satisfies the requirement dbt-coves~=1.3 (from versions: 1.0.4a1, 1.0.4a2, 1.0.4a3,
1.0.4a4, 1.0.4a17, 1.0.4a18, 1.0.4a19, 1.0.4a20, 1.0.4a21, 1.0.4a22, 1.0.4a23, 1.0.4a24, 1.0.4a25, 1.0.4a26, 1.0.4a27, 1.0.4a28,
1.0.4a29, 1.0.4a30, 1.0.5a1, 1.0.5a2, 1.0.5a3, 1.1.0a1, 1.1.0a2, 1.1.0a3, 1.1.0a4, 1.1.0a5, 1.1.0a6, 1.1.0a7, 1.1.0a8, 1.1.0a9, 1.1.1a0,
1.1.1a1, 1.1.1a2, 1.1.1a3, 1.1.1a4, 1.1.1a5, 1.1.1a6, 1.1.1a7, 1.1.1a8, 1.1.1a9, 1.1.1a10, 1.1.1a11, 1.1.1a12, 1.1.1a13, 1.1.1a14, 1.1.1a15,
1.1.1a16, 1.1.1a17, 1.1.1a18, 1.1.1a19, 1.1.1a20, 1.1.1a21, 1.1.1a22, 1.1.1a23, 1.1.1a24, 1.1.1a25, 1.1.1a26, 1.1.1a27, 1.1.1a28, 1.1.1a29,
1.1.1a30, 1.1.1a31, 1.1.1a32, 1.1.1a33, 1.3.0a1, 1.3.0a2, 1.3.0a3, 1.3.0a4, 1.3.0a5, 1.3.0a6, 1.3.0a7, 1.3.0a8, 1.3.0a9, 1.3.0a10,
1.3.0a11, 1.3.0a12, 1.3.0a13, 1.3.0a14, 1.3.0a15, 1.3.0a16, 1.3.0a17, 1.3.0a18, 1.3.0a19, 1.3.0a20, 1.3.0a21, 1.3.0a22, 1.3.0a23,
1.3.0a24, 1.3.0a25, 1.3.0a26, 1.3.0a27, 1.3.0a28, 1.4.0)
ERROR: No matching distribution found for dbt-coves~=1.3

Desktop (please complete the following information):

OS: Mac M2, OSX Ventura 13.1
Browser: Mac Terminal app
Version: 2.13 (447)

Additional context
python --version
Python 3.9.13

FWIW, when I copy/paste the same commands, it runs fine on Python 3.9.6
pip freeze shows it's installed dbt-coves 1.4.0, though
If I run pip install dbt-coves==1.3.0a29, then it also runs ok and installs the specified version

confirming this works for me: pip install dbt-coves==1.3.0a29
I'm considering this resolving my issue, and @jaredx435k2d0 if you think that pip freeze output is wrong, I think that would be a separate bug (also, thanks for checking! super helpful)


No examples of how to use CpuBufferPool

It would be good to have simple examples of how to use CpuBufferPool to get data from a computation.

#867

CpuBufferPool no longer exists, so this issue is moot.

@Rua: I wanted to chime in before you release a modified API and say that CpuBufferPool::from_data() and CpuBufferPool::from_iter() weren't named according to convention. You would expect that these functions return a CpuBufferPool, not a CpuBufferPoolSubbuffer. The Rust API Guide indicates the following about these so called conversion constructors, which are without self parameter: ThisType::from_some_other_type().


Update description.

Bump up version to 3.0.0 so it gets picked up by npm install.
Add support for clearing the currentLocation from the service based on
a parameter when stopTracking is called.

Not sure what version to use so I just bumped it up to 3. Let me know if you have any suggestions,.


Add the ability to pass an output path to command plugins

Add the ability to pass an output path to command plugins.  This output path is given to the plugin and is added to the sandbox as a place to which it can write.
This is a proposed amendment to the SE-0332 proposal currently being reviewed.
Motivation:
Like all plugins, command plugins are run in a sandbox that only provides write access to temporary directories.  But it's quite common for a plugin to generate output, so there needs to be a way for a user to provide the path to the command and for SwiftPM to add that as a writable path to the sandbox.  This path can be either a directory or a file — it's up to the plugin to decide what it creates at that path.
Modifications:

extend the plugin protocol to have a outputPath parameter
add compatibility glue to allow existing plugins to continue working
add the optional output path field to the transport structure to be sent to the plugin
add the --outputPath option to the swift package plugin subcommand
extend unit tests

Result:
Command plugins can access the optional outputPath parameter, and have write permission to it.

@swift-ci please smoke test

@swift-ci please smoke test


changing values at multiple columns in a row at the same time

I am trying to figure out a simple way to change multiple values in a row at the same time.  If I want to replace the first 4 values of row 3 with a normal array all I have to do is:
a[3,1:4]=[1:4]
however with a dataframe it just makes them all NA's (see below).  Is there a simple and concise way to do this in a dataframe without iterating across each cell?  It obviously works just fine if I do it within a column across rows in a data frame but not in a row across columns.
a=DataFrame(randn(10,5))
a[3,[1:4]]=[1:4]
4-element Int64 Array:
1
2
3
4
julia> a
10x5 DataFrame:
x1        x2        x3        x4          x5
[1,]      0.108387   -0.4808  0.702386 -0.477234    0.620006
[2,]      0.214392   0.27369  -0.65066   0.25884   -0.908717
[3,]            NA        NA        NA        NA   -0.540757
[4,]     -0.666802   1.38519   -1.1664   1.55959    0.315118
[5,]     -0.399247  0.178048  0.031054  0.617906 -0.00183811
[6,]       1.47368 -0.158576   1.03754  0.086704     2.78412
[7,]     -0.726742 -0.922117  0.761797  0.780585   -0.397475
[8,]       0.22857  0.765605   0.67509 0.0880252    0.166799
[9,]     -0.451947 0.0769769  0.321839   1.46577  -0.0298408
[10,]      1.07055  0.405728 -0.744111  0.029706    0.659336

This has been made an error.


raise exception when parsing duration to be consistent with datetime

Parsing datetime raises ParseError if invalid.  Parsing durations should do the same.

Sorry for the delay, was out of the country.


support for GWPCA

I would like to utilize xeofs in my research due to its compatibility with xarray datasets/data arrays, which makes working with them convenient. I am interested in determining if xeofs supports the calculation of Geographically Weighted PCA (GWPCA). Is it possible to do it?

hey @NILICK GWPCA is not available in xeofs, however, it seems to be a great fit for this package. I don't know when I will have some time to implement it, but I'll put it on the to do list!

alright! :) just wanted to be sure what the requirements for a GWPCA class would or could be. I mostly work with regular lon lat grids, similar to what you have. But I guess that GWPCA could also find applications in settings where you have irregular lon lat coordinates or even X and Y dimensions in meters. If you like to share a small sample of your data, that could indeed help! :+1:

hey no worries! I guess WeTransfer is the easiest?

you can send it either to me or post the WT link in that thread instead

version 1.2.0 has been released, which offers basic support for GWPCA (here's an example to get you started). I describe it as "basic" because, while the implementation is optimized for CPU, it lacks GPU support. Given that GWPCA is computationally intensive, I believe the current implementation is best suited for small data sets. I've made several attempts to enhance its performance, but ultimately, I think GPU support will be essential for processing typical-sized climate data. Unfortunately, I won't have the time to delve into that in the near future.


Add tests for grant types validation

Hi @leastprivilege, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;


Fix custom fonts in textemplate

After #1296, it was not possible anymore to add a custom tex font.
e.g. with this script:
class ComparingTex(Scene):
    def construct(self):
        temp_stix2= TexTemplate()
        temp_stix2.add_to_preamble(r"\usepackage{stix2}", prepend= True)
        tex_stix2  = Tex(r"$dk_x dk_y = |\mu| d\mu d\phi$", tex_template=temp_stix2).scale(3)

        self.add(tex_stix2)
        self.wait()

After this pr, it will be fixed.
Testing Status

Further Comments

Checklist

[x] I have read the Contributing Guidelines
[x] I have written a descriptive PR title (see top of PR template for examples)
[x] I have written a changelog entry for the PR or deem it unnecessary
[x] My new functions/classes either have a docstring or are private
[ ] My new functions/classes have tests added and (optional) examples in the docs
[ ] My new documentation builds, looks correctly formatted, and adds no additional build warnings

Reviewer Checklist

[ ] The PR title is descriptive enough
[ ] The PR is labeled correctly
[ ] The changelog entry is completed if necessary
[ ] Newly added functions/classes either have a docstring or are private
[ ] Newly added functions/classes have tests added and (optional) examples in the docs
[ ] Newly added documentation builds, looks correctly formatted, and adds no additional build warnings

I'm not particularly fond of effectively reverting #1296 without suggesting an alternative solution to the problem it addressed.

I'm not particularly fond of effectively reverting #1296 without suggesting an alternative solution to the problem it addressed.

I agree, I will have a look for a possible solution for this.
However, right now we would lose the option to use a custom font in latex, which is also not optimal.
Do you have an idea how this can be managed?
Maybe a function that replaces \usepackage{lmodern} when using TexTemplate() with a custom setting?

Instead of starting from a default-template TexTemplate(), you could also start from TexTemplateLibrary.simple to define a template with a custom font.

Sounds good! I am not that familiar with the the Tex part, @cobordism : Do you have time and motivation to help us with this? :)
Feel free to commit directly to this branch.

Could this be related to #1307 ?

Shall we only change the default template returned by TexTemplate() to TexTemplateLibrary.simple or should we also change the default template used in Tex() and MathTex() when no tex_template is supplied?
I defo agree with the first, but I'm open to both.

Shall we only change the default template returned by TexTemplate() to TexTemplateLibrary.simple or should we also change the default template used in Tex() and MathTex() when no tex_template is supplied?
I defo agree with the first, but I'm open to both.

I think letting TexTemplate() return the simple template is a good idea: if someone touches TexTemplate, they likely want to start with a "clean slate" anyways.
For changing the default template of Tex and MathTex I'm a bit more reserved; I'd rather like to keep the current behavior.

I think letting TexTemplate() return the simple template is a good idea: if someone touches TexTemplate, they likely want to start with a "clean slate" anyways.

Sounds good!
@cobordism : Do you want to use this branch for the new TexTemplate, or should I close this pr?

@cobordism : Do you want to use this branch for the new TexTemplate, or should I close this pr?

let's just make a separate PR.

https://github.com/ManimCommunity/manim/pull/1343


uBlacklist doesn't work well with Greasemonkey script “endless google”

Expected Behavior
The Greasemonkey script “endless google” loads more search result pages automatically when scroll down at the google text search page.
uBlacklist block specific sites on the automatically loaded pages.
Actual Behavior
uBlacklist does not block specific sites on the automatically loaded pages.
Steps to Reproduce the Problem

Install the userscript manager Tampermonkey  and theGreasemonkey script “endless google”
Perform a google text search that yields a large quantity of filtered results.
Scroll down to the end of first page, "endless google" automatically loads the next page.
uBlacklist doesn't block specific sites on the next page.

Specifications

OS: Win10
Browser: Chrome
Other extensions that might interfere:

dup #59 #65 #86
I'm not going to support all other extensions/userscripts that modify Google search result pages, although pull requests are welcome.
My recommendation is uAutoPagerize. It works great with uBlacklist.


Switching (x%y) to mod(x,y). GLSL does not support modulo operator.

My generated GLSL was failing validation because of modulo % operator.  I don't believe GLSL supports a  modulo  % operator.  I've updated the code to output the modulo function mod instead.

Sorry for long delay, this project has been adopted by Khronos, and is now hosted here: https://github.com/KhronosGroup/SPIRV-Cross. This repository will be disabled shortly. I have fixed this issue in the Khronos repository.


Bump direct/indirect dependencies versions

This PR gathers up the following renovate bumps:

https://github.com/rancher/cis-operator/pull/207
https://github.com/rancher/cis-operator/pull/206
https://github.com/rancher/cis-operator/pull/204
https://github.com/rancher/cis-operator/pull/201
https://github.com/rancher/cis-operator/pull/200
https://github.com/rancher/cis-operator/pull/199

Prometheus: Chose 0.64.1 over 0.66.0, since 0.66.0 needs k8s.io dependencies to be upgraded at least to 0.27.1.

https://github.com/rancher/cis-operator/pull/203
https://github.com/rancher/cis-operator/pull/202

LGTM - will approve once we run the tests.
As for the chore PRs, we should close all of them in favour of this one.

@pjbgf The tests I ran validate the expected behaviour of cis-operator with the following go.mod (excerpt of the commit):
require (
	github.com/blang/semver v3.5.1+incompatible
	github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.64.1
	github.com/prometheus-operator/prometheus-operator/pkg/client v0.64.1
	github.com/prometheus/client_golang v1.16.0
	github.com/rancher/kubernetes-provider-detector v0.1.5
	github.com/rancher/lasso v0.0.0-20230629200414-8a54b32e6792
	github.com/rancher/security-scan v0.2.12
	github.com/rancher/wrangler v1.1.1
	github.com/robfig/cron v1.2.0
	github.com/sirupsen/logrus v1.9.3
	github.com/urfave/cli v1.22.14
	k8s.io/api v0.26.7
	k8s.io/apiextensions-apiserver v0.26.7
	k8s.io/apimachinery v0.26.7
	k8s.io/client-go v0.26.7
)

Test: Environment
Rancher: 2.7.3
Downstream cluster: v1.25.11+rke2r1 (standalone)
Image: andypitcher/cis-operator:v1.0.2-rc2-amd64
Test: Results
See Helm image details used for each scan before and after the cis-operator:v1.0.2-rc2-amd64 image that contains the version bumps was used.


What about using Annotated for types?

Is your feature request related to a problem? Please describe.
In SQLAlchemy, we constantly use String(64), String(128), etc. What about providing these types in a more pythonic way, a standardized way?
Describe the solution you'd like
I already have some type annotations that I use with SQLAlchemy:
from typing import Annotated

from sqlalchemy import DECIMAL, String, Unicode
from sqlalchemy.orm import mapped_column
from sqlalchemy_utils import EmailType, IPAddressType, PhoneNumberType, URLType

PostalCode = Annotated[
    str,
    mapped_column(
        type_=String(5),
        info={
            "label": "Postal Code",
            "description": "The postal code of the address.",
            "example": "12345",
        },
    ),
]
"""Postal Code Type."""
Latitude = Annotated[float, mapped_column(type_=DECIMAL(precision=10, scale=8))]
"""Latitude Type."""
Longitude = Annotated[float, mapped_column(type_=DECIMAL(precision=11, scale=8))]
"""Longitude Type."""
Money = Annotated[float, mapped_column(type_=DECIMAL(precision=18, scale=9))]
"""Money Type."""
PhoneNumber = Annotated[str, mapped_column(type_=Unicode(64))]
"""Phone Number Type."""
EmailAddress = Annotated[str, mapped_column(type_=EmailType)]
"""Email Address Type."""
String64 = Annotated[str, mapped_column(type_=String(64))]
"""String 64 Type."""
String128 = Annotated[str, mapped_column(type_=String(128))]
"""String 128 Type."""
String256 = Annotated[str, mapped_column(type_=String(256))]
"""String 256 Type."""
String512 = Annotated[str, mapped_column(type_=String(512))]
"""String 512 Type."""
String1024 = Annotated[str, mapped_column(type_=String(1024))]
"""String 1024 Type."""
String2048 = Annotated[str, mapped_column(type_=String(2048))]
"""String 2048 Type."""
UUIDString = Annotated[str, mapped_column(type_=String(36))]
"""UUID String Type."""
IPAddress = Annotated[str, mapped_column(type_=IPAddressType(64))]
"""IP Address Type."""
URL = Annotated[str, mapped_column(type_=URLType)]
"""URL Type."""

Describe alternatives you've considered
kvesteri/sqlalchemy-utils: Various utility functions and datatypes for SQLAlchemy.
Additional context
Maybe some standard enumerations?

Pydantic also has support for Annotated, see:

Fields - Pydantic
python - What is the difference between pydantic Field and Annotated? - Stack Overflow

Pydantic also has support for Annotated, see:

Fields - Pydantic
python - What is the difference between pydantic Field and Annotated? - Stack Overflow

I'm still learning 🤣.


Prediction

Codes for using the model to detect DLAs

Let me know when the additional requests are addressed
and I'll approve.  Thx!

Hi X
We have updated the installing.rst in docs/ to add the download path of our model files.
We have uploaded two notebooks in docs/notebook/ to describe how to run the codes.
The training and prediction codes are not tested yet. As you said, these codes need to run the CNN model. The model files can not be uploaded on the github because they are too large. So I think this is very difficult if we want to test it online.
For your last comments 'build a read the docs' , do you mean that we build an instruction webpage like the pypeit : https://pypeit.readthedocs.io/en/latest/step-by-step.html ? I may need some time to build this because I have never used readthedocs before. Maybe I can firstly build a draft version and you help to update it?
Thanks.

We agreed that you'd generate a few tests on prediction and training
that use the model and that we run ourselves but not online.
We'll save readthedocs for a future pull request.  Thx!

We agreed that you'd generate a few tests on prediction and training
that use the model and that we run ourselves but not online.
We'll save readthedocs for a future pull request. Thx!

Hi X, I have updated the test files. The code to test the training is  desidlas/training/test_training.py , the code to test the prediction is desidlas/preiction/test_prediction.py . I don't put them in desidla/tests because I am worried that if I put these codes there, these codes will be run when the github check pull request automatically. This may cause a error. But I am not sure if the directory of these two test codes now is proper. Thanks.


Cloudflare cache couldn't be purged Bad request

The following error happened in some build:
6:20:55 AM: ┌──────────────────────────────────────────────────────────┐
6:20:55 AM: │ 5. onEnd command from netlify-purge-cloudflare-on-deploy │
6:20:55 AM: └──────────────────────────────────────────────────────────┘
6:20:55 AM:
6:20:55 AM: Preparing to trigger Cloudflare cache purge
6:20:55 AM:
6:20:55 AM: ┌────────────────────────────────────────────────────┐
6:20:55 AM: │ Plugin "netlify-purge-cloudflare-on-deploy" failed │
6:20:55 AM: └────────────────────────────────────────────────────┘
6:20:55 AM:
6:20:55 AM:   Error message
6:20:55 AM:   Error: Cloudflare cache purge failed
6:20:55 AM:   Cloudflare cache couldn't be purged. Status: Bad Request
6:20:55 AM:
6:20:55 AM:   Plugin details
6:20:55 AM:   Package:        netlify-purge-cloudflare-on-deploy
6:20:55 AM:   Version:        1.0.6
6:20:55 AM:   Repository:     git+https://github.com/chrism2671/netlify-purge-cloudflare-on-deploy.git
6:20:55 AM:   npm link:       https://www.npmjs.com/package/netlify-purge-cloudflare-on-deploy
6:20:55 AM:   Report issues:  https://github.com/chrism2671/netlify-purge-cloudflare-on-deploy/issues
6:20:55 AM:
6:20:55 AM:   Error location
6:20:55 AM:   In "onEnd" event in "netlify-purge-cloudflare-on-deploy" from Netlify app
6:20:55 AM:       at onEnd (/.netlify/plugins/node_modules/netlify-purge-cloudflare-on-deploy/index.js:38:16)
6:20:55 AM:
6:20:55 AM:   Resolved config
6:20:55 AM:   build:
6:20:55 AM:     command: npm run build
6:20:55 AM:     publish: /opt/build/repo/public
6:20:55 AM:   plugins:
6:20:55 AM:     - inputs: {}
6:20:55 AM:       origin: ui
6:20:55 AM:       package: netlify-purge-cloudflare-on-deploy
6:20:55 AM:     - inputs: {}
6:20:55 AM:       origin: config
6:20:55 AM:       package: netlify-plugin-gatsby-cache

The repository is private unfortunately. Do you know what the error might be?

Most likely they didn't set up their environment variables properly. Are you able to check that?

No, for privacy and security reasons, we don't record any confidential environment variables.
So, this is most likely a user error? If so, this issue can be closed :)

I think so; it's working fine on our production project. Failing a build seems like quite an extreme failure though; if you see more of these perhaps we can change the behaviour.

My main thought was that the error message was a little unclear Bad request. But there might not be much you might be able to do about this unfortunately.


All files disappeared when StackEdit 5 update !!!

All my files disappeared today. Nothing particular happened, I had not even turned off my computer.
When I open Stack Edit now, I see the welcome file "Hi! I'm your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the file explorer on the left corner of the navigation bar."
How can I get these files back? I am extremely worried. Can this be linked with a memory constraint on my computer?
Thank you very much,
Charlotte

It may have been due to the update of Stack Edit version 5...

Same here, suddenly all files gone.


Remove unnecessary exception

Repo get_name does not raise exceptions.

Arggh a quick look at SE24 fooled me. Look, there are no redefinitions...

Turns out the redefinitions were not correctly referring to the interface. Fixed:


Remove codecov

Currently no PRs can be merged since the codecov step doesn't work anymore. Fixing that is a lengthy process, so to temporarily unblock important PRs from being merged (i.e. #116, #114, #107), we will remove this from our pipeline.

Closing an moving this as part of #116


Weapon reordering, balance patch weapon fav on 15th

I reordered the SSR weapons, weapons are now more group in categories like ultima, atma, baha coda, baha nova, comic, xeno, seraph, magna1, magna2, ancient T1, grand, 30 moon, normal t1, t2, t3, gacha/event, 100 moon. I also added the weapon favorites that are being change on the patch at the 15th.

Thanks for all these updates!

As you might already know, I decided to leave the motocal development and management. (blog entry: http://dev-hsimyu.hatenablog.com/entry/2018/05/15/224639 ) Development and management will be continued by granblue loving peoples (now I'm preparing to take over it).
Probably, this repository will be moved (or renamed) as an organization repository.
I'll work to decide in detail on this weekend, and I'll tell you it as soon as possible.
Thank you very much for your recent contribution!
(And if you will not mind, I'm really glad if you continue the development of motocal :)


"go on break"

I should be able to say I want to go on a break. I tell the app how long I want to go on a break for; it stops timing, and reminds me when break is over.

This is actually subsumed by #59, which includes a way to say "I'm doing X for Y time".


Make allowAnyNamespaceForNoPrefix=true the default

When trying to query kml-datasets generated by different geolocation apps -> empty nodesets are returned, if default namespace is given in the root-node, like:
<kml xmlns="http://www.opengis.net/kml/2.2" ...>
Some strictMode-parameter  (not defined by default) might be added to the arguments of select-cmds?
The attached dataset is processed correctly if  setIfUnset(c, 'allowAnyNamespaceForNoPrefix', true);  is placed in main function-body of XPath.prototype.evaluate in every case.
track.zip

allowAnyNamespaceForNoPrefix - where should I set this option? I didn't find it anywhere in the docs.


Folding actions have no effect in read-only editor

Open Preferences>User Settings
Execute a Folding command from the command palette

-> the folding action has no effect

Once I set the focus to the defaults editor the fold actions work for me.
E.g fold all Ctrl + K , Ctrl + 0


scan: fix dropped errors

This fixes some dropped err variables in the scan package.

Solid, thanks :)


Argo CLI giving certificate error

Trying to call ./argo login CLI to login to my cluster and getting the following error
https://skynet.applatix.net/v1/auth/login: Post https://skynet.applatix.net/v1/auth/login: x509: certificate signed by unknown authority
But curl -XPOST -d '{"username": "username", "password": "my password" }' https://skynet.applatix.net/v1/auth/login  is not giving any SSL error

Sandeep please look into this. See if Jesse has fixed this on master as well.

This is fixed in master and 1.0 branch. argocli shows a warning and let's you login.


Signal takes a string not a number

it wants the string SIGKILL/SIGHUP/etc instead of numbers like 7

Fixed by b3040b2


translate into simplified chinese

line118:Pneumatic Taker -> Pneumatic Taker MK I
miss:

electronics/device.lua: status
cable
battery / battery pack
zinc
silver

Thank you for the translations.
I will add the missing localization you listed as soon as possible.

I made the strings in the listed files localized and I renamed the Pneumatic Taker


New pull request for nose -> pytest against devel

Thank you again! I just merged the changes into devel.


Need document about secrets for local mode

I can't find any document about the secrets prefix in ~/.config/digdag/config.
For example,
secrets.pg.password = digdag1

related issues #356, #423.

Yeap, it's strange that there's secrets section but no information on how to define those secrets.

After digging through github issues found the answer:
digdag secret --set pg.password --local

Hello, @Vanuan Thank you for your feedback.
What do you think to add this like like the below?

When you set those parameters, use digdag secrets command

(I changed message after created image)

That would be great!
I expected something like "Secrets" section in "Concepts", somewhere between parameters and operators.

@hiroyuki-sato I guess we can close this issue. What do you think about it ?

@yoyama. I agree with you

I expected something like "Secrets" section in "Concepts", somewhere between parameters and operators.

Le'ts discuss this document improvement on another issue.


Link containers

Makes sure the different docker containers can talk to each other

Coverage remained the same at 80.928% when pulling 8143f4f59ee809355074bf64f8b4c8f912909b6a on digitalWestie:link-containers into 2a4a7ff0aff48be072e677adcacc6455c9724402 on theodi:staging.

Coverage remained the same at 80.928% when pulling db43e20a80e2fe238538b132443d15072cd4c910 on digitalWestie:link-containers into 2a4a7ff0aff48be072e677adcacc6455c9724402 on theodi:staging.


feat: overhaul codebase checks

Summary
Continued tooling cleanup and updates, this time focused on checks (locally and in CI).

[x] Add convention support for Detekt
[x] Add convention support for Sonar
[x] Add Detekt baseline report
[x] Fix coverage reporting
[x] Fix caching for Sonar runs

Still pending

[ ] Add early PMD/Checkstyle support
[ ] AI-based code review
[ ] Check avoidance
[ ] Spotless baseline
[ ] Dedicated PR:

[ ] Run ktlint
[ ] Run Prettier
[ ] Run Detekt fixes
[ ] Run Qodana fixes
[ ] Apply license header where missing
[ ] Update license header company name
[ ] Update license header years
[ ] Optimize and cleanup imports

Changelog

feat: add convention plugin for detekt
fix: coverage with sonar
fix: coverage reporting with qodana
chore: establish detekt baselines
chore: refactor ci for efficient check execution
chore: add detekt report upload to ci
chore: update lockfiles

Summary by CodeRabbit

New Features

Introduced Detekt for static code analysis with custom configurations and report merging.
Updated SonarQube integration with additional coverage verification and analysis steps.
Added configurations for Nexus publishing, Detekt, and code coverage in build.gradle.kts files.
Implemented new Gradle plugins for Checkstyle, PMD, and Spotless to enforce coding conventions.
Simplified target setting in Kotlin configuration for Proto-Kotlinx.

Improvements

Enhanced Sonar analysis with SONAR_TOKEN as a required parameter and updated environment variables.
Refined runtime classpath declarations for dependencies across multiple packages.
Updated Kotlin standard library default dependency setting.
Simplified filtering logic for subproject modules in project groups.
Improved readability and configuration in Kotlin conventions by refactoring function signatures.

Bug Fixes

Fixed issues with dependencies' runtime classpath configurations across various packages.

Documentation

No visible changes to end-users.

Refactor

Removed unnecessary imports and configurations in several build.gradle.kts files.
Renamed and updated functions for better clarity and functionality in test conventions.

Style

No visible changes to end-users.

Tests

No visible changes to end-users.

Chores

Updated dependencies and their versions in gradle.lockfile for several packages.

Revert

No visible changes to end-users.

@SocketSecurity ignore<EMAIL_ADDRESS>@SocketSecurity ignore<EMAIL_ADDRESS>


Does mybatis mapper.xml sql support graph database (orientDB)?

OrientDB Version:
Java Version:
OS:
Expected behavior

Actual behavior

Steps to reproduce

In java, how does orientDB execute sql, mybatis supports orientDB?

Hi @djjduan
There is no official support for MyBatis. As far as I know you should be able to use it with the JDBC driver, but I also can tell you that in the past some users reported some problems
Thanks
Luigi


Using the Azure Key Vault Provider

This link is 404: https://azure.github.io/secrets-store-csi-driver-provider-azure/configurations/getting-certs-and-keys.md

@lilinvictorms Try without .md at the end.
https://azure.github.io/secrets-store-csi-driver-provider-azure/configurations/getting-certs-and-keys/
Aslo, could you tell where did you get above link from? We can fix if there is a broken link.


Import Ti Keys to xdb

Update PKCS#12 encryption key for xdb database
Import TI Keys to xdb

I have removed all comments in the database for keys and certificates


Signup Form File

Description
A simple sign up form is created and validation is done with JavaScript.
Fixes #66
Dependencies
N/A
Future Improvements
N/A
Mentions
Screenshots of relevant screens
https://user-images.githubusercontent.com/97960335/195770968-cb82e430-6491-481f-859e-040f28a425ee.mp4
Developer's checklist

[X] My PR follows the style guidelines of this project
[X] I have performed a self-check on my work

If changes are made in the code:

[X] I have followed the coding guidelines
[X] My changes in code generate no new warnings
[X] My changes are breaking another fix/feature of the project
[X] I have added test cases to show that my feature works
[X] I have added relevant screenshots in my PR

your data is already present in Contributors.json file

remove new record ( duplicate ) one
add your new project contribution in previous project array of object.

This may help 😯

"Projects": [{
            "id": 1,
            "name": "Webners",
            "description": "QR CODE GENERATOR",
            "link": "https://github.com/Nirvik07/Webners"
        },{
            "id": 2,
            "name": "Webners",
            "description": "SIGNUP FORM",
            "link": "https://github.com/Nirvik07/Webners"
        }]

@Abbhiishek check it.


Description in shake.cabal seems incorrect - no "Examples" directory

For version 0.16.3 and HEAD, the "description:" field in shake.cabal states that "Further examples are included in the Cabal tarball, under the Examples directory". However, there doesn't seem to be any such directory, either in the Cabal tarball or the git repository, so far as I can see - should the description be corrected?

Thanks for pointing that out! Historical reasons - when Shake was first written it had no real examples, but a few test cases in Examples were about the best you could do. Now it's got a real user manual with real examples which people should follow instead of the test suite which is a bit funky (since it's purpose is testing). I've removed that.

No worries :)


Notification options

Hi Massimo
I'm trying to notify BGP alerts to different teams. For example if an ASN X advertises a new prefix that was not previously defined in the prefixes.yml file, send a HTTP alter to team A, but if ASN Y does the same thing, send an alert to team B. However it looks like regardless of the group definition, BGP alerter only notifies to the noc group.
Attached is a screenshoot of the config files.
I would appreciate if you can help me to verify if something is wrong with the config.

Hi @mmarin11,
In prefixes.yml, before the options section you have the list of monitored prefixes. That list has also a user group defined for each prefix. Monitoring by AS means that whatever is not matched in the prefix list is matched by the AS rule. Both rule can have different user groups by design.
I believe your prefix list has noc as user group for the prefix rules of 32098 and 55259 and so the messages are sent there. This may have happened if you auto configured everything with noc (default) and after changed manually only the items in the AS list).
Please, read the documentation about user groups and about how to generate the prefix list correctly (in particular, see options m, A, and g)

Let me know if everything works now or if you have other questions.


Add a retry mechanism to metamist network calls

There have been some bugs where a metamist API call fails but might have succeeded if retried. A retry function decorator with the signature:
@retry(n_retries: int = 5, delay_in_seconds: int = 3, backoff: Literal['exponential' | 'constant'] = 'exponential')

Would be easy to add to existing class methods without changing each block of code.

Duplicated in https://github.com/populationgenomics/production-pipelines/issues/585


[WIP] Change of implementation of the domain to use ChallengeRequest DNSName

It tries to remove the domain value in the ClusterIssuer and to get the domain name based on the ChallengeRequest DNSNames that are provided when requesting a certificate.
It still needs to be able to handle multiple dns names inside the request (may need some changes upstream in https://github.com/ebrianne/duckdns-go)
Fixes #3

Tested with kind 1.20.2
helm install --wait --timeout 60s cert-manager-webhook-duckdns \                             ✘ INT at ⎈ kind-kind at  23:16:58
          --namespace cert-manager \
          --set duckdns.token='*****' \
          --set clusterIssuer.production.create=true \
          --set clusterIssuer.staging.create=true \
          --set clusterIssuer.email=***** \
          --set logLevel=6 --set image.tag=latest \
          ./deploy/cert-manager-webhook-duckdns

Request of certificate with two different wildcard domains
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: services-***-duckdns-org
  namespace: services
spec:
  dnsNames:
  - '*.<domain1>.duckdns.org'
  - '*.<domain2>.duckdns.org'
  issuerRef:
    name: cert-manager-webhook-duckdns-production
    kind: ClusterIssuer
  secretName: services-****-duckdns-org-tls

Certificate issued perfectly
Events:
  Type    Reason     Age    From          Message
  ----    ------     ----   ----          -------
  Normal  Issuing    2m57s  cert-manager  Issuing certificate as Secret does not exist
  Normal  Generated  2m56s  cert-manager  Stored new private key in temporary Secret resource "services-****-duckdns-org-w9ggx"
  Normal  Requested  2m55s  cert-manager  Created new CertificateRequest resource "services-****-duckdns-org-q69s2"
  Normal  Issuing    102s   cert-manager  The certificate has been successfully issued

Fix #2 by downgrading to v1.19.0 go-client


Powering the T-CAN485

Hi mate,
Thanks for this info.  I've got the Madimack Elite v3 pool heater. It's the exact same board as a few others in the posts.
I've ordered the T-CAN485, same as you.
One question I wanted to double check - how are you powering the board? Are you just using the 12v + gnd from the RS485 port to the power port of the T-CAN485, then sending data into the other side of the board?

Yes, exactly that. For testing I also have one of those dc socket to
terminal adaptors wired in too, so I can unplug the device from heatpump to
power / flash / test on bench and then take it back outside.
For now it's attached with a plastic bag round the cable (ahem, not good I
know) as my plan is to design a new PCB that fits back inside the original
'wifi adaptor' case but has ESP32 + RS485 interface, button (to match the
position of the case) and status LED
On Thu, 29 Aug 2024 at 21:52, Laurence @.***> wrote:

Hi mate,
Thanks for this info.
I've got the Madimack Elite v3 pool heater. It's the exact same board as a
few others in the posts.
I've ordered the T-CAN485, same as you.
One question I wanted to double check - how are you powering the board?
Are you just using the 12v + gnd from the RS485 port to the power port of
the T-CAN485, then sending data into the other side of the board?
—
Reply to this email directly, view it on GitHub
https://github.com/Elwell/pool-heatpump/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABTBU7A3FG7HEVIT7Z74GDZT4RRFAVCNFSM6AAAAABNKPR2I2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4TINJSGA2TSOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Add data type sequence generators

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (ddf7545) 100.00% compared to head (8e43b20) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           15        16    +1
  Lines          348       361   +13
  Branches        51        51
=========================================
+ Hits           348       361   +13

Impacted Files
Coverage Δ

src/startorch/sequence/__init__.py
100.00% <100.00%> (ø)

src/startorch/sequence/dtype.py
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Outlook search: how to I change default to Archive and not All Folders?

Try looking through this documentation: https://learn.microsoft.com/en-us/office/vba/api/outlook.olsearchscope

Thanks, I'll try to work something out.

In case anyone is facing the same problem as I was, here's the workaround solution I came up with:
OutlookSearch(searchstr)
{
      Send "^#{Left}"          ; goes to the first virtual desktop, where I always have my outlook window. Still don't know how to find a window across several virtual desktops
	Sleep 100
    WinActivate("ahk_class rctrl_renwnd32")          ; Activate the Outlook window
	Sleep 500
	Send "^{y}"          ; Opens the "Go to Folder" window in Outlook.
	Sleep 50
	Send "arch"          ; Types "arch", so Archive is selected in the list
	Send "{Enter}"          ; Effectively opens the Archive folder so the rest of the actions can be performed there
	Sleep 500
	searchstr := StrReplace(searchstr, "!", " hasattachments:yes")
    olApp := GetOutlookCom()
    static olSearchScopeCurrentFolder := 0          ; Changed the scope so it only looks at the current folder (Archive)
    olApp.ActiveExplorer.Search(searchstr, olSearchScopeCurrentFolder)
    ControlSend "{Tab}", "RICHEDIT60W1", "ahk_class rctrl_renwnd32"          ; Send Tab to hide the "suggested searches" drop down
    return
}


Trafilatura to support more robust async library than standard request

This is request for Trafilatura to support a more robust async library, such as asyncio/aiohttp instead of underlying urllib, which has some issues.
Assisting conversation: https://github.com/adbar/trafilatura/discussions/515

Hi @krstp, I get your point but it is an open question whether Trafilatura should support more complex download utilities. I am inclined to say that the basics should be covered but that people who know their way around it could simply download the files first and then use the extraction functions on the content.

Fair point. Thanks for your input.

You could probably leverage urllib3.future as optional deps to bring an async entrypoint.

@Ousret I'll check it out.
@krstp  I have to say though that the download utilities are already quite robust and that they spread the load in order to avoid saturating or getting blocked. Of course there are more efficient librairies and there may be a bottleneck here and there in the code but for massive downloads on a single machine the problem is always going to be the latency/bandwith. Since support for multiple servers is not the focus of Trafilatura we can only do so much.
Please note that using pycurl also helps with the problem.


Fix alerts

Hi, I found some alerts on www.lgtm.com and thought I'd submit a PR to fix some of the simpler ones. There are a quite a few more there (https://lgtm.com/projects/g/Semantic-Org/Semantic-UI/alerts/), but they would be easier to someone familiar with the code to triage.
If you're interested, you can also turn on PR integration at https://lgtm.com/projects/g/Semantic-Org/Semantic-UI/ci/, and be warned when you introduce more issues during pull requests.

Any interest in merging this one?


Embedded (on-device inference) Machine Learning

Are you open to contributions for external lectures?
I was wondering if I could help with embedded machine learning (because sometimes the latency from device to server is too slow).

Sure. please send a PR.


Hot reloading and standard types

Hi! I'm trying to use hot reloading feature in my project. But when number of translation units of a library is changed, hot reloading leads to a stable reproducible crash somewhere in registration of std::string type (standard_types.cpp : line 72)
I guess that the problem is usage of RTTR_REGISTRATION instead of RTTR_PLUGIN_REGISTRATION.
But may be I'm wrong and I'm trying to find a problem in a wrong place. Any ideas?

Tried to remove registration of standard types from host application and replace RTTR_REGISTRATION with RTTR_PLUGIN_REGISTRATION in the library.
But loading files anyway, on this step this time: RTTR_REGISTRATION_STANDARD_TYPE_VARIANTS(signed char). Seems, the problem is deeper.

I have a unit tests, which loads-unloads-loads-unloads a plugin. So somehow comparable to hot reloading. I got no crash at all.
You said it crashes in standard_types.cpp. This is a file from rttr_core.dll, You should not reload this dll. And I cannot imagine how this dll is reloaded.
However, without any simple test case, I cannot do anything.

Okay, thank you. I'm building sources with the own build system. And standard_types.cpp is built within the static library. Then I'm linking this static library to both plugin and host application. Seems, this is not the right thing :) Will try to work out this issue.

Thank you for the clue! Using of dynamic library with static linking solved my problem. I know, this looks obvious, but I've added few words about this to the plugin documentation. Also added a reference to the example.


Thanos with Scaleway S3 objstore - The XML you provided was not well-formed

Hi here,
i need your support for the error below from thanos-sidecar.

I installed kube-prometheus-stack with thanos-sidecar enabled (quay.io/thanos/thanos:v0.28.1)
I created the thanos-objstore-config with contents below:

apiVersion: v1
kind: Secret
type: Opaque
data:
  objstore.yml: dHl.......NmEK

the base64 is:
type: S3
config:
  bucket: thanos-storage
  endpoint: s3.nl-ams.scw.cloud
  region: nl-ams
  access_key: SCW...
  secret_key: ...

and in kube-prometheus-stack i defined:
  prometheusSpec:
    thanos:
      objectStorageConfig:
        name: thanos-objstore-config
        key: objstore.yml

If i look at thanos-sidecar logs i see:
level=info ts=2022-11-03T07:59:20.899986877Z caller=shipper.go:334 msg="upload new block" id=01GGTG5BMR6EKD2XFCQWAE32A7
level=warn ts=2022-11-03T07:59:23.59810388Z caller=sidecar.go:345 err="upload 01GGTG5BMR6EKD2XFCQWAE32A7: upload chunks: upload file /prometheus/thanos/upload/01GGTG5BMR6EKD2XFCQWAE32A7/chunks/000001 as 01GGTG5BMR6EKD2XFCQWAE32A7/chunks/000001: upload s3 object: The XML you provided was not well-formed or did not validate against our published schema." uploaded=0
level=info ts=2022-11-03T07:59:50.90297074Z caller=shipper.go:334 msg="upload new block" id=01GGTG5BMR6EKD2XFCQWAE32A7
level=warn ts=2022-11-03T07:59:53.371073167Z caller=sidecar.go:345 err="upload 01GGTG5BMR6EKD2XFCQWAE32A7: upload chunks: upload file /prometheus/thanos/upload/01GGTG5BMR6EKD2XFCQWAE32A7/chunks/000001 as 01GGTG5BMR6EKD2XFCQWAE32A7/chunks/000001: upload s3 object: The XML you provided was not well-formed or did not validate against our published schema." uploaded=0

This is another log in debug mode:
level=debug ts=2022-11-03T19:18:00.312494604Z caller=stdlib.go:105 s3TraceMsg=---------START-HTTP---------
level=debug ts=2022-11-03T19:18:00.312609801Z caller=stdlib.go:105 s3TraceMsg="HEAD /jetdeploy-thanos-storage/01GGZCKBNP36D3NF8BW499QBR2/deletion-mark.json HTTP/1.1\r\nHost: s3.nl-ams.scw.cloud\r\nUser-Agent: MinIO (linux; amd64) minio-go/v7.0.37 thanos-sidecar/0.28.1 (go1.18.7)\r\nAuthorization: AWS4-HMAC-SHA256 Credential=**REDACTED**/20221103/nl-ams/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=**REDACTED**\r\nX-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nX-Amz-Date: 20221103T191800Z\r\n\r"
level=debug ts=2022-11-03T19:18:00.3126362Z caller=stdlib.go:105 s3TraceMsg="HTTP/1.1 404 Not Found\r\nContent-Type: application/xml\r\nDate: Thu, 03 Nov 2022 19:18:00 GMT\r\nX-Amz-Id-2: txa38f0b76d4184abc883b5-00636413e8\r\nX-Amz-Request-Id: txa38f0b76d4184abc883b5-00636413e8\r\nContent-Length: 0\r"
level=debug ts=2022-11-03T19:18:00.31264929Z caller=stdlib.go:105 s3TraceMsg=---------END-HTTP---------
level=warn ts=2022-11-03T19:18:00.312847265Z caller=sidecar.go:345 err="upload 01GGZCKBNP36D3NF8BW499QBR2: upload chunks: upload file /prometheus/thanos/upload/01GGZCKBNP36D3NF8BW499QBR2/chunks/000001 as 01GGZCKBNP36D3NF8BW499QBR2/chunks/000001: upload s3 object: Content-Type unsupported user defined metadata name" uploaded=0

Can you support me on this error?
I use Scaleway S3 Object Storage
Thank you

Seems like it could be fixed in newer version of mino-go client.
https://github.com/minio/minio-go/issues/1702

What version of minio-go use Thanos (0.28.1 or 0.29.0) ?

We're on 7.0.37, so if this really as easy as bumping the version, might be quick fix?

According to Scaleway discussion (in their Slack channel) it seems quite long they will support missing fields and resolve the issue (i guess).
Are you able to solve the issue in Thanos implementation of minio-go library ?

Hi @matej-g
in the minio-io issue they talk about the problem starts from v. 7.0.37.
The objstore go.mod you linked is pinnee to a previous version, but the Go.mod in the main/ is pinned to 7.037.
They both need to be upgraded?

Hey @kladiv, since the actual object storage code has been recently separated and put into the https://github.com/thanos-io/objstore, so version that's pinned there should be the decisive one. It looks like we use minio-go in the main Thanos repository only for some auxiliary methods.
So if we this issue is supposed to be present only starting from 7.0.37, it should not be in the object storage yet. Either way it could not hurt to update the package version to the latest release.

Just updated my Thanos yesterday as well and ran into this. Let me see if updating the dependency and running the newer compator with this will help.

I will close this one since https://github.com/thanos-io/thanos/pull/5867 has been merged. We just need to release the 29.1 version including this fix.

@GiedriusS, do you plan on releasing v0.29.1 soon-ish?

I've been hit by the same issue (i.e. minio-go breaking on S3-compatible storage), when can we expect 0.29.1 to be released? thank you!


HBASE-25646 Possible Resource Leak in CatalogJanitor

This PR fixes the issue mentioned here.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m  9s
Docker mode activated.


Introduce concrete provider

This listener provider is a more simple version which allows users to
specify which event types it can provide.
It can be useful in some specific cases, for instance if a listener does
not need the event object passed as a parameter (can happen if the
listener only needs to run at a specific stage during runtime, but does
not need event data).
Fixes #10

Q
A

Is bugfix?
❌

New feature?
✔

Breaks BC?
❌

Tests pass?
✔

Fixed issues
#10

@romm I've pushed a few minor adjustments. Overall it looks 👍

@romm any additional changes you plan to introduce before merge?

Ok changes look good to me, thanks for the help! 🙌

Thank you!


Can't login root user in mysql container on production env

Step to reproduce:
Execute
docker-compose exec mysql bash
then in container
mysql -u root -p root
Got error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Context information:
executing  docker-compose exec mysql env shows that root password is 'root'
...
MYSQL_USER=[my_user_name]
MYSQL_PASSWORD=[mysq_user_password]
MYSQL_ROOT_PASSWORD=root
TZ=UTC
MYSQL_DATABASE=[my_database]
GOSU_VERSION=1.14
MYSQL_MAJOR=8.0
MYSQL_VERSION=8.0.31-1.el8
MYSQL_SHELL_VERSION=8.0.31-1.el8
HOME=/root
...

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' [container_name]

<IP_ADDRESS>

 mysql -u root -h <IP_ADDRESS> -p returns the same error
ERROR 1045 (28000): Access denied for user<EMAIL_ADDRESS>(using password: YES)

Next steps works for me. To reset root password:

Add skip-grant-tables to laradock/mysql/my.cnf under [mysql]:

[mysql]
skip-grant-tables

Rebuild the container:

docker-compose stop mysql
docker-compose -f <docker-compose config file> build mysql

Access the container without a password:

docker-compose exec mysql bash
> mysql -u root

Reset the password:

FLUSH PRIVILEGES;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
FLUSH PRIVILEGES;

Exit the container, comment out skip-grant-tables, rebuild the mysql container.

After that I was able to enter the container from under root


Added support for Custom Protocol

Background
This pull request replaces all explicit instances of https with {{Protocol}}, to allow a choice between http and https when running the test-suite in different environments.
Signed-off-by: Dan Elkis<EMAIL_ADDRESS>

Thanks for the PR. Looks like an agreement needs to be signed for me to merge now. If you could sign off, I can go ahead and merge the PR. Please note that we don't support HTTP endpoints when integrating with Azure AD, but you could certainly use it to test locally.

Alright, signed :)


feat: insert seeds

PR just for checking in and maybe checking out the code, especially the actix-web backend.
seed inserts are currently working via POST localhost:8080/api/seeds with a minimal seed request body for testing:
{
    "variety_id": 1,
    "name": "test name"
}

next step is going to be to complete the rest of the seed fields and use the diesel-derive-enum library to be able to use postgres enums and then connect the frontend to the backend.
I'll also add README files to both frontend and backend

Btw. you can also add XXX if I should look somewhere specifically or TODO to indicate that something is not ready yet.

@markus2330 thanks for the review, I'll take care of your reviews soon. It is 99% finished but I'm still unhappy with my form validation / form implementation in the frontend so I'll clean it up first

Yes, please go ahead with your implementation. The purpose of my review is that you don't invest a lot of time in something which is not needed anyway etc. It is totally legit that you first complete what you started before correcting the reviews.

Frontend has now been a bit refactored and should work with the backend, I can now change the backend based on your reviews

Hopefully fixed everything you reviewed and didn't overlook something, reuse lint should now work without errors  (hopefully it's correct). As for the routes in the frontend:

localhost:5173  -> would be the homepage so it's currently blank
localhost:5173/seeds ->  a very simple non styled page that shows you your added seed for testing purposes
localhost:5173/seeds/new -> this is the actual page of the use case


mac os lens doesn't show itself in dock

Describe the bug
After recent upgrade of lens on my macbook, I found that lens icon is not showing in dock.
Also, I can't use command+tab to quickly navigating to lens.
The only way to come back to lens is to click the icon from mac menu bar, which is much less convenient.
To Reproduce

Start lens
Check mac dock, most of the time, lens doesn't show itself.But sometimes lens does shows itself.

Expected behavior
Always show lens icon in dock.
Able to navi back to lens using command+tab
Environment (please complete the following information):

Lens Version:

Lens: 2022.12.221341-latest
Extension API: 6.2.5
Electron: 19.1.9
Chrome: 102.0.5005.167
Node: 16.14.2
© 2022 Mirantis, Inc.

OS: [e.g. OSX] macOS 13.1 (22C65)
Installation method (e.g. snap or AppImage in Linux):  at first brew, many auto upgrading of lens itself after installing

Duplicate of https://github.com/lensapp/lens/issues/6756, already fixed in master


Firewall Rule Direction

Though most of the IP Address/URL mentioned in the article would be considered as destination and would need only Outbound firewall rule. But Few IP Addresses/URL's (e.g. EOP) would need Inbound as well as outbound firewall rule for port 25. Can we add some details on direction part to provide more clarity.

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

ID: 077406d8-bff1-496e-3ea2-b38558fd9355
Version Independent ID: 57db3dec-2250-2dee-fd1a-ec6656911798
Content: Office 365 URLs and IP address ranges
Content Source: Enterprise/urls-and-ip-address-ranges.md
Service: o365-administration
GitHub Login: @JoeDavies-MSFT
Microsoft Alias: josephd

@3novsan I have passed your request to the product team that manages the lists of endpoints for their consideration in future updates. Thanks for your feedback.