Drop python2

This removes Python 2-specific features:

encoding declaration (Python 3 defaults to UTF-8)
__future__ feature imports
u-prefixed unicode literals
six library

Fixes #1421
Pull Request Checklist
(Please keep this section. It will make maintainer's life easier.)

[ ] Privileged views and APIs are guarded by proper permission checks.
[ ] All visible strings are translated with proper context.
[ ] All data-formatting is locale-aware (dates, numbers, and so on).
[ ] Database queries are optimized and the number of queries is constant.
[ ] The changes are tested.
[ ] The code is documented (docstrings, project documentation).
[ ] Python code quality checks pass: pycodestyle, pydocstyle, pylint.
[ ] JavaScript code quality checks pass: eslint.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@d678d39). Click here to learn what that means.
The diff coverage is 92.85%.

@@            Coverage Diff            @@
##             master    #1474   +/-   ##
=========================================
  Coverage          ?   82.66%
=========================================
  Files             ?      130
  Lines             ?     5721
  Branches          ?      656
=========================================
  Hits              ?     4729
  Misses            ?      828
  Partials          ?      164

Impacted Files
Coverage Δ

saleor/userprofile/urls.py
100% <ø> (ø)

saleor/site/__init__.py
100% <ø> (ø)

saleor/core/templatetags/markdown.py
100% <ø> (ø)

saleor/shipping/utils.py
90% <ø> (ø)

saleor/core/templatetags/attributes.py
41.66% <ø> (ø)

saleor/core/templatetags/jsonld.py
100% <ø> (ø)

saleor/core/views.py
89.47% <ø> (ø)

saleor/core/filters.py
100% <ø> (ø)

saleor/userprofile/utils.py
100% <ø> (ø)

saleor/core/middleware.py
85.36% <ø> (ø)

... and 115 more

Continue to review full report at Codecov.

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

Rebased on current master branch.


Nuxt-link navigation does not work with prefix_and_default strategy

Environment

Operating System: Linux
Node Version:     v16.14.2
Nuxt Version:     3.3.3
Nitro Version:    2.3.2
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      srcDir, modules, i18n, dev, debug
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

package version:

"@nuxtjs/i18n": "8.0.0-beta.10"

Reproduction
Minimal repro can be found from here:
https://stackblitz.com/edit/github-ptyzfd?file=nuxt.config.ts
Describe the bug
This might be related to https://github.com/nuxt-modules/i18n/issues/1864
Using prefix_and_default strategy seems to "disable" the nuxt-links on pages. The href is defined correctly on HTML, but navigation is still prevented upon clicking.
Looking at the i18n plugin, there is a routeMiddleWare that detects the redirect upon navigation and defines the final target path..
Since the strategy is prefix_and_default and we are currently on default locale, the if condition for deciding if a redirect should be done will pass always.
The routepath is evaluated from either resolving current route for current locale, or then the target path for current locale.
To me it seems, that the redirect-detection should be happening upon arriving to the target route path. Now since the routepath is evaluated with context.$switchLocalePath(targetLocale) || context.$localePath(fullPath, targetLocale), context.$switchLocalePath(targetLocale) always gets resolved and is prioritized over context.$localePath(fullPath, targetLocale).
If I switch these two evaluations to  context.$localePath(fullPath, targetLocale) || context.$switchLocalePath(targetLocale) , the path becomes resolved correctly.
I'm only picking this up upon encountering this issue, so I'm not completely familiar with the whole module. Do I understand the intended functionality correctly? Or is there some additional configuration that I should add for the prefix_and_default strategy to work? I also understand that simply switching the evaluation on that particular line can probably cause issues elsewhere on the project. I'm happy to help with resolving this issue if this is not working as intended.
For logs, there is included what gets logged to the console, when on starting page, and clicking the link pointing towards /page2.
Additional context
No response
Logs
locale-changing middleware
Object { fullPath: "/page2", path: "/page2", query: {}, hash: "", name: "page2___en___default", params: {}, matched: (1) […], meta: Proxy, redirectedFrom: undefined, href: "/page2" }
Object { fullPath: "/", hash: "", query: {}, name: "index___en___default", path: "/", params: {}, matched: (1) […], meta: Proxy, redirectedFrom: undefined, href: "/" }
i18n.mjs:335
detectLocale: initialLocale - en i18n.utils.mjs:146
detectLocale: detectBrowserLanguage (browserLocale, stat, reason, from) - <empty string> false unknown unknown i18n.utils.mjs:148
detectLocale: finaleLocale first (finaleLocale, strategy) - <empty string> prefix_and_default i18n.utils.mjs:159
detectLocale: finaleLocale second (finaleLocale, detectBrowserLanguage) - en false i18n.utils.mjs:171
detectLocale: finalLocale last (finalLocale, defaultLocale) - en en i18n.utils.mjs:179
detectLocale: finalLocale - en i18n.utils.mjs:183
detect locale en i18n.mjs:348
localeSetup false i18n.mjs:350
setLocale: new ->  en  old ->  en  initial ->  false i18n.utils.mjs:102
detectRedirect: targetLocale ->  en i18n.utils.mjs:188
detectRedirect: route ->
Object { fullPath: "/page2", path: "/page2", query: {}, hash: "", name: "page2___en___default", params: {}, matched: (1) […], meta: Proxy, redirectedFrom: undefined, href: "/page2" }
i18n.utils.mjs:189
detectRedirect: calculate routePath ->  / /page2 i18n.utils.mjs:198
redirectPath on locale-changing middleware / i18n.mjs:363
navigate options  301 null false false i18n.utils.mjs:236
navigate isSSG false i18n.utils.mjs:237

Got the same. Spent a whole day on debugging. Something like this should never ever fail silently. Can we also log the error that causes this in the future?

Same

Hi, thanks for opening an issue on the repository and sharing your problem!
It seems to work on edge (https://github.com/nuxt-modules/i18n/issues/1864#issuecomment-1436019506) - we're working to release a tagged release soon - you can also downgrade to beta.9 if required.
In your provided reproduction, I do see that localePath isn't being used/passed into nuxt-link. Moreover, the non-localePath paths being passed are relative URLs while you should also use localePath there with preferably name of the routes rather than paths - keep in mind that routing is based on Vue Router, so referring to those docs can also be helpful.
This is how I would do it:

<template>

{{ $t('hello') }} root

  <nuxt-link :to="localePath('page2')">Page 2</nuxt-link>
  and
  <nuxt-link :to="localePath({ name: 'page3' })">Page 3</nuxt-link>

  <nuxt-link :to="helperFunc('page2')">Page 2, using localepath</nuxt-link>
</template>

We're discussing the option to natively extend NuxtLink (and other similar utilities like navigateTo, etc) to make use of localePath (but this needs to be done carefully to avoid confusion for developers and any unintentional behavior).

const localePath = useLocalePath()

Thanks for answer. Problem remains even with routing by name

Were you able to switch to edge?
https://github.com/nuxt-modules/i18n#install-edge-version

Were you able to switch to edge?
https://github.com/nuxt-modules/i18n#install-edge-version

Ive already rollbacked to beta-9. Nvm :)

The bug is still there in @nuxtjs/i18n-edge version 8.0.0-beta.12-28122654.89ddb67
Here's an example: https://stackblitz.com/edit/node-iguqcm?file=nuxt.config.ts
When non-default locale is selected, the navigation works as expected.  But when the locale is set to en, navigateTo() always displays the index page.

I believe the problem is with this line: https://github.com/nuxt-modules/i18n/blob/e66999fb63eb1d4e074eb8a71be2fec5c8083584/src/runtime/utils.ts#L310
context.$switchLocalePath(targetLocale) takes precedence and fullPath is never used.

fixed by #2249
so, you can install edge channel version.


pkg/proxy unit tests fail when you don't have an internet connection

It failed the "does it work while I'm on a plane" test.  :)  Assigning this to you since I think you were the last one in here.
$ hack/test-go.sh pkg/proxy
--- FAIL: TestTCPProxy (0.00s)
panic: runtime error: index out of range [recovered]
	panic: runtime error: index out of range

goroutine 9 [running]:
testing.func·006()
	/usr/local/Cellar/go/1.4.1/libexec/src/testing/testing.go:441 +0x181
github.com/GoogleCloudPlatform/kubernetes/pkg/proxy.chooseHostInterface(0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/clayton/projects/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/proxier.go:791 +0x738
github.com/GoogleCloudPlatform/kubernetes/pkg/proxy.NewProxier(0x1013a08, 0xc20800a5c0, 0xc2080b2450, 0x10, 0x10, 0x1013a40, 0x62bac8, 0x0)
	/Users/clayton/projects/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/proxier.go:322 +0xe1
github.com/GoogleCloudPlatform/kubernetes/pkg/proxy.TestTCPProxy(0xc2080421b0)
	/Users/clayton/projects/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/proxier_test.go:204 +0x2da
testing.tRunner(0xc2080421b0, 0x61f680)
	/usr/local/Cellar/go/1.4.1/libexec/src/testing/testing.go:447 +0xbf
created by testing.RunTests
	/usr/local/Cellar/go/1.4.1/libexec/src/testing/testing.go:555 +0xa8b

goroutine 1 [chan receive]:
testing.RunTests(0x4e7f30, 0x61f680, 0x17, 0x17, 0x1013801)
	/usr/local/Cellar/go/1.4.1/libexec/src/testing/testing.go:556 +0xad6
testing.(*M).Run(0xc20802e320, 0x62af20)
	/usr/local/Cellar/go/1.4.1/libexec/src/testing/testing.go:485 +0x6c
main.main()
	github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/_test/_testmain.go:96 +0x1d5

goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x622b40)
	/Users/clayton/projects/go/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x78
created by github.com/golang/glog.init·1
	/Users/clayton/projects/go/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x2a7

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/Cellar/go/1.4.1/libexec/src/runtime/asm_amd64.s:2232 +0x1

goroutine 7 [IO wait]:
net.(*pollDesc).Wait(0xc208010140, 0x72, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/fd_poll_runtime.go:84 +0x47
net.(*pollDesc).WaitRead(0xc208010140, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/fd_poll_runtime.go:89 +0x43
net.(*netFD).accept(0xc2080100e0, 0x0, 0x1011e20, 0xc2080b2368)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/fd_unix.go:419 +0x40b
net.(*TCPListener).AcceptTCP(0xc20802c018, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/tcpsock_posix.go:234 +0x4e
net.(*TCPListener).Accept(0xc20802c018, 0x0, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/tcpsock_posix.go:244 +0x4c
net/http/httptest.(*historyListener).Accept(0xc2080ae120, 0x0, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/http/httptest/server.go:48 +0x7a
net/http.(*Server).Serve(0xc208030540, 0x1013828, 0xc2080ae120, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/http/server.go:1728 +0x92
created by net/http/httptest.(*Server).Start
	/usr/local/Cellar/go/1.4.1/libexec/src/net/http/httptest/server.go:109 +0x35e

goroutine 8 [IO wait]:
net.(*pollDesc).Wait(0xc208010220, 0x72, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/fd_poll_runtime.go:84 +0x47
net.(*pollDesc).WaitRead(0xc208010220, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/fd_poll_runtime.go:89 +0x43
net.(*netFD).readFrom(0xc2080101c0, 0xc20800f000, 0x1000, 0x1000, 0x0, 0x0, 0x0, 0x1011e20, 0xc2080b23d8)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/fd_unix.go:269 +0x4a1
net.(*UDPConn).ReadFromUDP(0xc20802c028, 0xc20800f000, 0x1000, 0x1000, 0x0, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/udpsock_posix.go:67 +0x124
net.(*UDPConn).ReadFrom(0xc20802c028, 0xc20800f000, 0x1000, 0x1000, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/Cellar/go/1.4.1/libexec/src/net/udpsock_posix.go:82 +0x12e
github.com/GoogleCloudPlatform/kubernetes/pkg/proxy.(*udpEchoServer).Loop(0xc2080b2330)
	/Users/clayton/projects/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/udp_server.go:32 +0xad
created by github.com/GoogleCloudPlatform/kubernetes/pkg/proxy.init·1
	/Users/clayton/projects/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/proxier_test.go:144 +0xa42
FAIL	github.com/GoogleCloudPlatform/kubernetes/pkg/proxy	0.009s

https://github.com/GoogleCloudPlatform/kubernetes/pull/4865 would fix this

@smarterclayton When there is no internet connection , should the kube-proxy use <IP_ADDRESS> right ?

Good question - or the test should log an error message but not actually fail.  I don't know if Kube-proxy listening on <IP_ADDRESS> is something we would want happening by accident in a prod env.

On Mar 11, 2015, at 6:19 PM, sub-mod<EMAIL_ADDRESS>wrote:
@smarterclayton When there is no internet connection , should the kube-proxy use <IP_ADDRESS> right ?
—
Reply to this email directly or view it on GitHub.

kube-proxy listening on 127 is probably not going to actually WORK either.
On Wed, Mar 11, 2015 at 8:25 PM, Clayton Coleman<EMAIL_ADDRESS>wrote:

Good question - or the test should log an error message but not actually
fail. I don't know if Kube-proxy listening on <IP_ADDRESS> is something we
would want happening by accident in a prod env.

On Mar 11, 2015, at 6:19 PM, sub-mod<EMAIL_ADDRESS>wrote:
@smarterclayton When there is no internet connection , should the
kube-proxy use <IP_ADDRESS> right ?
—
Reply to this email directly or view it on GitHub.

—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/4884#issuecomment-78417566
.


Windows Precense Service does not check if it's already running before starting up

The service does not check if it's already running before starting up. Every-time you run the executable, it starts a new instance of the service.
Not sure how impactful this issue is. Could impact troubleshooting as the OS won't be able to write to the file while the service is still running.

@mkdbns just to provide some info, after discussions with @asatkinson we decided this is not needed for the initial release but, I wanted the issue documented somewhere other than a Mattermost channel :)

Updates on this issue:
I tried to explore and fix this issue and I was able to fix it using a named mutex. A named mutex can be owned by only one thread at a time. So, when the application starts for the first time, it is granted ownership of the mutex and I added checks that if the ownership of the mutex is not granted, that means another process is running so the current process will be closed. This logic fixed the issue but it raised another issue.
If we close the first process using Task manager, the process is killed suddenly without giving the chance to run any cleanup code. So, when the process is killed, the mutex isn't released and its ownership is still assigned to the process. Due to this reason, when we start the application again, it doesn't start because of not being able to get ownership of the mutex.
I explored to see how we can run cleanup code when a process is killed using Task manager, but unfortunately, there's no way to do that. When a process is killed using Task manager, it doesn't send any events or signals to the app. So, this app needs a better way of closing/exiting.
One method to do this is creating a secondary app that monitors this application and shows a system tray icon that the application is running. When the user exits the application using the system tray icon, then we can run the cleanup code.


Switch to Puma per Heroku's recommendation.

Coverage remained the same at 99.02% when pulling 3b0fb0162129d82474cd0fad3af1b21656c1469c on switch-to-puma into 42be83c569442e40750ac8cfdc2e5535c6d1cdac on master.


Usage Instructions improvements

line wraps
‘suggested’ rather than ‘preferred’
more ascii art
add j2objcConfig example

@confile - please take a look and mark the section that you found confusing
@advayDev1 - FYI

LGTM, but it is already clear to me.

@confile - please take a look

LGTM @brunobowden great job


Quality Assurance Projects - Sudoku Solver undefined use case

Describe your problem and how to reproduce it:
While working on the Sudoku solver project, one scenario came up that wasn't clear to me how to handle.
The scenario is what do you do, if I ask to check a value of a cell with an existing value?
For my project, I chose to return a conflict with the row, column, and region. However, I checked what the example app returns. The results it returns are logically inconsistent, which tells me this use case is undefined.
For the example app:

Goto https://sudoku-solver.freecodecamp.rocks
For coordinate enter C3, for value enter 2 (the existing value), click Check Placement
App returns { "valid": false, "conflict": [ "row", "column", "region" ] }
Change value to 9, App returns { "valid": false, "conflict": [ "column", "region" ] }
Change value to 1, App returns { "valid": true }

These response are not logically consistent. For the first one, it appears to be checking against all of the existing values in the puzzle. For the second and third cases, it appears to be checking after replacing the value.
I would expect this use case to be defined as either, it's a conflict, because there is an existing value at that cell or to replace the value in that cell and then check if it is valid or not and return the appropriate results.
Add a Link to the page with the problem:

https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/sudoku-solver
https://sudoku-solver.freecodecamp.rocks

Tell us about your browser and operating system:

Browser Name: Google Chrome
Browser Version: 87.0.4280.67 (Official Build) (x86_64)
Operating System: macOS Mojave 10.14.6

I feel there is a better example to describe the issue I see.
Let us take the first region only and try the following
C1, 9 result is { "valid": false, "conflict": [ "region" ] }
A2, 8 result is { "valid": false, "conflict": [ "region" ] }
B2, 5 result is { "valid": false, "conflict": [ "row", "column", "region" ] }
A3, 4 result is { "valid": false, "conflict": [ "region" ] }
B3, 3 result is { "valid": false, "conflict": [ "region" ] }
C3, 2 result is { "valid": false, "conflict": [ "row", "column", "region" ] }
Why do B2, 5 and C3, 2 return more conflicts?

Yes, seems odd that you can place a value over an existing spot and it can return as valid

App returns { "valid": false, "conflict": [ "row", "column", "region" ] }

I do agree that this should be handled as a valid placement (given that the number is already present in that cell). Unless there is objection/disagreement, I'd be willing to open this up for contribution. 🙂

I also vote to make it behave as if it replaces the cell before checking validity. Or something along those lines. I have opened this up for contributions.


[colorManipulator] lighten/darken a CSS var() color

Summary
Hi, I'm working on my own design system implementation with MUI v6 (base + system). Previously, with utilities in colorManipulator I can easily lighten/darken a color defined in palette. With CSS variables, now it's difficult and I have to augment the palette a lot. For alpha the solution is with pure CSS function rgba, probably for lighten/darken I should go with the same way? Or, by getComputedStyle I can run the same function just as before?
Examples
-      color: darken(theme.palette.primary.main),
+      color: darken(theme.vars.palette.primary.main),

Motivation
No response
Search keywords: colorManipulator lighten darken var CSS color

Almost the same as #43180 no?

You save my day @oliviertassinari ...any plan when to update the colorManipulator implementation?

I'm working on my own design system implementation with MUI v6 (base + system).

Do you mean that you are using Base UI + MUI System and not using Material UI?

Yes...I did start with Material UI and later because of several design differences it seems that building the library with headless Base UI is a better solution. Now most of the components are still of Material, and some unique ones are created with Base UI and System

You can use color-mix
Darken
color: ${({ theme }) => darken(theme.palette.primary.default, 0.5)}
color: ${({ theme }) => color-mix(in srgb, ${theme.vars.palette.primary.default} 50%, black)}; Lighten color: ${({ theme }) => lighten(theme.palette.primary.default, 0.5)} color: ${({ theme }) => color-mix(in srgb, ${theme.vars.palette.primary.default} 50%, white)};
https://caniuse.com/?search=color- mix

I think the tricky part is that you have no idea in what color space the actual color is defined in a CSS variable from the library perspective


added Style.css

Shifted everything to greyscale, this need not be adhered to.

Hey @madhaven thanks for the PR.
We were looking at implementing the design mentioned at #5


Fixed printing bug in RootToLeafToSum.java

Hey Hi ,
RootToLeadToSum.java
There was a printing error, program was not printing the output i.e Path .
Made some changes , now it prints the Path .
Just Ignore the changes in treetraversal.java . It is same as that of your previous file .
Only changed the sequence .

I checked my code. It is printing the path. Are you using java8? I m using forEach to print the list.

No , I am not using Java8 .

There you go. That is the problem.


Not working!

Hi and thanks for your project,
I tried to test the project with Godot 4.1 Mono which is not working at all.

Hi, can you list what errors you have? Is it a C# compilation error or some Godot specific issue?


Advanced step control

Following the discussion on #177, a feature I would love to have is an advanced form of Appear that would give great control on what happens at each step (i.e. not necessarily only making a component appear, but anything really).
My main use case is the control of D3.js updates, like filtering some data on a step, highlighting one particular bar, etc.
Original idea
My original idea was a Higher Order Component:
import withSteps from 'mdx-deck/with-steps'

withSteps(numberOfSteps, ({ step }) => {
  // Render something using step.
  return Current step: {step}
})

The above is just a functional component, but withSteps would also allow relying on componentDidUpdate to perform some low-level DOM operations, like updating a D3 chart:
import withSteps from 'mdx-deck/with-steps'

withSteps(numberOfSteps, class Chart extends React.Component {
  constructor(props) {
    super(props)
    this.svgNode = React.createRef()
  }
  componentDidUpdate() {
    const { step, data } = this.props
    updateChart(this.svgNode.current, data, step)
  }
  render() {
    return <svg ref={this.svgNode} />
  }
})

However, as mentioned by @zcei, the issue with this approach is that it is not supported in mdx. As a result, it would require to create the component in a separate file (https://github.com/jxnblk/mdx-deck/issues/177#issuecomment-427588751).
step and setStep as properties
Instead, @zcei suggests a simple component that would provide step and setStep to its child (https://github.com/jxnblk/mdx-deck/issues/177#issuecomment-427579253):
<Steps>
  {({ step, setSteps }) => {
     // Do something with step and setSteps
  }}
</Steps>

However, I believe passing setSteps as a property is a bit weird. With functional components, it makes them intrinsically impure. Also, when should setSteps be called? If the child is a functional component, that means it can only be called at render time 😵... And what happens if one calls setSteps with a value lower than step?
totalSteps on the parent, and setStep as a property
After some thoughts, an alternative could be:
<Steps totalSteps={4}>
  {({ step }) => {
     // Do something with step
  }}
</Steps>

Note that I really wish <Steps> would not only accept functional components but also class component. This is necessary to support low level DOM operations. Maybe:
<Steps totalSteps={4}>
  {class SomeThing extends React.Component { /* */ }}
</Steps>

As your main concern about the <Step> component seems to be the lifecycle methods, I'm just dropping two links in here:
"Answers to common questions about render props" by Kent C. Dodds which covers lifecycle methods as well and
render-props a library as a result of above's article.
I think with this we could easily support functional components and your desired class components as well, without the need to change how MDX works to enable HoC.
I'm still not too sure about the setSteps, especially about calling it in the constructor, but I basically used this pattern as it was already in mdx-deck.

Yes I agree I don't think it is hard to do. I emphasize this just to make sure it does but get lost.

Thanks, will add more thoughts to this later, but I don’t think this proposed component should have anything to do with lifecycle hooks. That could be part of how you construct your D3 Component internally if needed, but this library’s components should only expose props for steps

I agree. I am not saying it should be managed by the library.
I think it would be a terrible idea to support different properties for every lifecycle hooks for example.
But I wish the library would allow someone to add these hooks to their own component and integrate it easily with mdx-deck.
For example, If mdx-deck only support  render functions, one is forced to add an indirection,  and develop the component in a separate file:
<Step>
  {({ step }) => <Component step={step} />}
</Step>

But if it also supports component injection (which means it supports both ways of specifying React component, functional and class), the above indirection is not needed anymore:
<Step>
  {Component}
</Step>

and one may even put the code of the component class directly inside <Step /> (as shown previously).
I believe this is very little more work, but would make my use case much more easy.

V2 now has a useSteps hook that you can use in custom components. I'll be adding docs soon, but peek at the source code for Appear in the meantime


[V3] Forking datetimes from C#

https://github.com/exercism/v3/tree/master/languages/csharp/exercises/concept/datetimes

I'm going to go ahead and close this.
If anyone is eager to fork a concept exercise from the C# track that's great—please open an issue and we can discuss.


Not able to load environment variables or connect to services via gradle+intellij

Bug Description
I recently got a new mac, setting it up I am not able to get intellij mirrord to load the environment variables correctly. This worked on my previous mac fine
Via CLI it works fine
mirrord exec -a scott1 --target=deployment/<APP> -- bash
$ env | grep MIRRORD_AGENT_NAMESPACE=scott1
MIRRORD_AGENT_NAMESPACE=scott1

But when I start up the java app in intellij, it does not load the environment variables from the target pod

Since in the past this has been due to SIP issue https://mirrord.dev/docs/faq/common-issues/ I copied my JDK into ~/java, but this did not ameliorate the issue
I also tried running sudo codesign --remove-signature ./<your-binary> but after that I could not boot the jdk without it exiting immediately afterwards. I tried other jdks no dice thus far
Steps to Reproduce

Run java app in intellij
Observe no environment variables

Backtrace
No response
Relevant Logs
No response
Your operating system and version
osx sonoma 14.7
Local process
$| file $JAVA_HOME/bin/java /Users/sschulthess/.jenv/versions/corretto64-<IP_ADDRESS>2/bin/java: Mach-O 64-bit executable arm64
Local process version
$| java -version openjdk version "1.8.0_422" OpenJDK Runtime Environment Corretto-8.422.05.1 (build 1.8.0_422-b05) OpenJDK 64-Bit Server VM Corretto-8.422.05.1 (build 25.422-b05, mixed mode)
Additional Info
config file
{
    "target": {
        "path": {
            "deployment": "APP"
        },
        "namespace": "scott1"
    },
    "agent": {
        "namespace": "scott1"
    },
    "feature": {
        "network": {
            "incoming": "steal",
            "outgoing": {
                "filter": {
                    "local": [
                        "localhost:3000"
                    ]
                }
            }
        },
        "fs": "read"
    },
    "kube_context": "zc-carsharing-dev"
}

Hi,
Environment variables can't be affected by SIP so it's probably not that.
Can you enable internal proxy logs by adding this to your mirrord.json:
{"internal_proxy": {"log_destination": "/tmp/internal_proxy.log", "log_level": "mirrord=trace"}}

then after running attaching the logs (after redacting sensitive information?

User was able to reproduce it in a vanilla project launching "gradle run" - so perhaps the problem is with the gradle/intellij integration (not using IntelliJ's compilation/execution)

Hey
setting fs to read means that most files would be from the remote, but not that local files wouldn't be available (it depends on our default filters)
We're planning to look into it soon.

Okay thanks for the update.  I did confirm that its not just an environment variable issue, as when the environment variables are set manually, the app still can't connect to rabbitmq over mirrord

Tried to get this working on a new mac, no dice.  The problem is not just that it doesnt get env vars, even if it gets the env vars it cannot connect to rmq running in the namespace. But only when running via intellij gradle

https://gist.github.com/scottillogical/ebcebf60d53e088222c6e38f4188a896 logs

Hey folks was playing around with this this morning.  I was able to reproduce the issue on a sample gradle app by changing the run configuration
https://github.com/scottillogical/mirrord-gradle-bug

In intellij, select FIle - New  - Project from existing sources
Select project directory
update the mirrord settings to point at a deployment in your k8s cluster - mine is set to my namespace/app
The broken run configuration should be preloaded - run that to observe only "hello world" and about 14 env vars
Run the "works" configuration to observe that more env vars come through

The only difference between the two run configurations is the broken one runs jdk -cp test.main and the one that works runs jdk -cp test.

Ah that's extremely valuable, thank you @scottillogical
We've prioritized this - hope we'll have progress soon.

I managed to reproduce thanks for the example!

Documenting some early findings:even with the "Works" configuration it only works sometimes for me.
It looks like sometimes the IDE creates a different type of configuration object without me (intentionally/knowingly) doing anything different.
When configuration has the dynamic type GradleRunConfiguration (which is ExternalSystemRunConfiguration), the application does not get the env from the cluster, even though that env is successfully fetched and is set to in the configuration. I don't know at what point it is lost.

When configuration is an ApplicationConfiguration the application does get the env as it should.

debugging the plugin to find out why.
I'm getting the "good" type of configuration in one or two runs after starting the debug IDE, and after that only the "bad" type. I thought the difference has something to do with the env-cleanup in processTerminated, but I think if that were the case it would not sometimes work a second time.

Just a guess, but perhaps it's because isReattachDebugProcess = true? can you set it to false manually and see if it helps?

Tried it, nope

I would try to check where IntelliJ decides which configuratoin is to be used and see what's the logic there

This seems to be an IntelliJ issue on itself - if you add any environment variable to the run configuration it doesn't get to the debugged/ran process.
Created issue here https://youtrack.jetbrains.com/issue/IDEA-360874/Environment-variables-arent-set-in-Application-run-configuration

If it is a bug in intellij, reverting to an older version of intellij does not appear to help

Launch mirrord pod successfully
App refuses to boot and prints an error indicating that the environment variables are not being loaded from the remote deployment
Even if I set the environment variables manually, the addresses do not resolve over mirrord successfully
The mirrord pods stick around in my environment even after I shut down the process.  This did not used to be the case

I have tried

Old versions of intellij
Old versions of mirrord
Different jdks & gradle versions
Using the same code
old version of mirrord intellij plugin

Running mirrord like so does appear to load the env variables fine
$| RUST_LOG=mirrord=trace /Users/sschulthess/Library/Application\ Support/JetBrains/IntelliJIdea2024.2/plugins/mirrord/bin/macos/mirrord ext -f /Users/sschulthess/cheetahs/ultron/.mirrord/mirrord.json

Does adding environment variables regardless of mirrord work? because when I reproduced it I saw that's the case (and that's why mirrord fails to work as well)

@aviramha okay I think i figured it out.   needed to use a version of gradle that natively supports apple silicion (6.9.1+). thanks for the help!


Fix UnicodeDecodeError in subsequent calls to urllib.quote with non-a…

…scii value (#375)

Codecov Report

Merging #376 into master will not change coverage.
The diff coverage is 33.33%.

@@           Coverage Diff           @@
##           master     #376   +/-   ##
=======================================
  Coverage   72.74%   72.74%
=======================================
  Files          74       74
  Lines        2656     2656
=======================================
  Hits         1932     1932
  Misses        724      724

Impacted Files
Coverage Δ

wechatpy/enterprise/client/api/oauth.py
50% <0%> (ø)
:arrow_up:

wechatpy/component.py
72% <50%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks!


[#3210] Make --models and --select synonyms, except for 'ls'

resolves #3210
Description
Some dbt commands used '--select' and some used '--models', but they worked the same under the covers. This makes the commands synonyms, although '--select' is preferred.  The 'ls' command has slightly different behavior for the two commands which is untouched.
Checklist

[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

Leah: The 'ls' command uses both '--select' and '--models' with somewhat different behavior, so we're leaving the behavior alone.


helm.traefik.io down?

When I try to update my dependencies using helm I'm getting an error from the helm.traefik.io server.
>helm dep up cosmos-extras
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "traefik" chart repository (https://helm.traefik.io/traefik):
        Get "https://helm.traefik.io/traefik/index.yaml": http2: server sent GOAWAY and closed the connection; LastStreamID=1, ErrCode=PROTOCOL_ERROR, debug="[p]Expected FIRST SETTINGS"
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈

Hi @jasonatball,
I checked and one of our cluster just restart few minutes ago. Could you please try again and let me know if thing are back to normal.

It was happening yesterday and still happening for me.

Could you try the following comamnd:
wget https://helm.traefik.io/traefik/index.yaml

wget https://helm.traefik.io/traefik/index.yaml
--2021-04-20 18:35:40--  https://helm.traefik.io/traefik/index.yaml
Resolving helm.traefik.io (helm.traefik.io)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>
Connecting to helm.traefik.io (helm.traefik.io)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 79502 (78K) [text/yaml]
Saving to: ‘index.yaml’

index.yaml                            100%[========================================================================>]  77.64K  --.-KB/s    in 0.04s

2021-04-20 18:35:41 (1.84 MB/s) - ‘index.yaml’ saved [79502/79502]

wget https://helm.traefik.io/traefik/index.yaml
--2021-04-20 10:43:34--  https://helm.traefik.io/traefik/index.yaml
Resolving helm.traefik.io (helm.traefik.io)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘helm.traefik.io’

I'll check with my IT department and ensure that traefik.io isn't recently blocked.

I think we can close this PR, feel free to add a comment if you still have a problem.

@ldez Yes thank you it was an internal IT issue.


Is there a way to disable Acrylic of AcrylicWindow?

Didn't found one yet, would be nice for people who use FluentWPF based application on VMWare.

Hi @Armin2208
Thanks for the feedback.
There is AcrylicAccentState property in AcrylicWindow class, it can chage the type of acrylic effect. If you set Gradient, acrylic effect will be disabled.
Is this suitable for your case?
<fw:AcrylicWindow x:Class="FluentWPFSample.Views.AcrylicWindow"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                  xmlns:fw="clr-namespace:SourceChord.FluentWPF;assembly=FluentWPF"
                  xmlns:local="clr-namespace:FluentWPFSample.Views"
                  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                  Title="AcrylicWindow"
                  AcrylicAccentState="Gradient"
                  Width="300"
                  Height="300"
                  mc:Ignorable="d">
    <Grid Background="#70FFFFFF">
        <TextBlock Margin="10"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   Text="This is AcrylicWindow"
                   TextWrapping="Wrap" />
    </Grid>
</fw:AcrylicWindow>


Variable using is broken

Valid sass:
.landing__section--#{"[var__=guid__var]"}
        background-image: url(#{"[var__=background.value.image.value__var]"})
        background-position: #{5}% #{5}%
        background-size: #{"[var__=background.value.image.image.texture__var]"}

        &::before
                background-color: #{"[var__=overlayColor.value__var]"}

but in new version this code doesn't compile, but this
.landing__section--#{"[var__=guid__var]"}
        background-image: url(#{"[var__=background.value.image.value__var]"})
        background-position: #{5}% 5%
        background-size: #{"[var__=background.value.image.image.texture__var]"}

        &::before
                background-color: #{"[var__=overlayColor.value__var]"}

compiles without error

Please try your code with ruby sass, I get an error on http://www.sassmeister.com/ for what you claim "valid sass". But maybe i'm not understanding your issue right.

Your first example does not compile with either Sass compiler or node-sass
Error: Invalid CSS after "#{5}% #{5}%": expected expression (e.g. 1px, bold), was ""
        on line 3 of test.sass
  Use --trace for backtrace.

Your second example produces the same output in both compilers, but the Sass compiler produces a deprecation warning
DEPRECATION WARNING on line 3 of test.sass: #{} interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

  unquote("5% 5%")

You can use the sass-convert command to automatically fix most cases.

prints error:
.landing__section
    background-position: #{"5"}% #{"5"}%

doesn't print error:
.landing__section
    background-position: #{"5"}% 5%

@dangreen I understand. However it prints an error because the offical Sass compiler prints an error.
This project is an implementation of the Sass language. Our goal is to be 100% compatible with Sass. We're closing this issue since Ruby Sass produces the same output. In the future please confirm that LibSass' output differs from Ruby Sass before opening an issue.
If you wish to suggest features of file bugs in the Sass language please open an issue with Sass - https://github.com/sass/sass


Can't instal on linux because permissions

Ubuntu 20.04
I'm user registered for ray.
If try install with sudo get same problem. Is normal, file php.ini are files of system with onwer root
composer global require spatie/global-ray
Changed current directory to /home/abkrim/.composer
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^1.0 for spatie/global-ray
./composer.json has been updated
Running composer update spatie/global-ray
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking spatie/global-ray (1.0.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Downloading spatie/global-ray (1.0.2)
  - Installing spatie/global-ray (1.0.2): Extracting archive
Generating autoload files
13 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
❯ global-ray install

   ⚡
   debug your applications faster.

   🌎 For more info visit: https://myray.app

   💪 By installing global-ray you will be able to use
   these functions in any PHP script: ray(), rd(), dump(), dd()

   You can chain a lot of useful functions on ray()
   - ray()->green(): colorize the output in Ray
   - ray()->pause(): pause your code
   - ray()->measure(): quickly measure runtime and memory
   - ray()->trace(): see where your function is being called
   - ray()->charles(): Let's dance!

   📗 You can see more Ray functions in the docs:
   https://spatie.be/docs/ray/v1/usage/framework-agnostic-php-project

   🤙 Do you wish to install Ray globally? (Y/n) > Y

   Updating PHP ini: /etc/php/8.1/cli/php.ini...

PHP Warning:  file_put_contents(/etc/php/8.1/cli/php.ini): Failed to open stream: Permission denied in /home/abkrim/.composer/vendor/spatie/global-ray/src/Support/PhpIni.php on line 36
   ❌ Unable to update PHP ini.

``
sudo global-ray install
sudo: global-ray: orden no encontrada

I put here beacuse thre're some issues wiyh links on "Ask a question"
![Castris_20220309_160459](https://user-images.githubusercontent.com/1238625/157469832-05e05073-6dfb-4a26-817c-ebd4989367f6.jpg)

Hi @abkrim,
Strange... Maybe you have to install global-ray with sudo if access to your php.ini is denied, since sudo may run under a different context? Otherwise, you will have to update your php.ini manually.
I've just added instructions to the global-ray install command that displays the option you must set in your php.ini to have global ray installed. To get these instructions, run composer global update and then global-ray install.
Let me know if the above works! 👍

This seems to be exact same issue I have with CentOS
https://github.com/spatie/ray/issues/648
I'm planning on trying to find a solution for this tonight, will post back if I did.

It might just be a case of "f*ck it, just install the package per project instead"

Hey @jonathan-dejong, thanks for the detailed issue, much appreciated 🙏
I'm not sure if we'll be able to work around your use-case. Are you able to install PHP and Apache underneath your user account? This is the assumption that global-ray makes right now...
The only way we could likely resolve this off the top of my head would be to copy the global-ray directory from your global composer directory into your PHP folder and update your PHP ini manually to point to the global-ray-loader.php script...

Yeah I'm afraid I can't change the setup of the server.. or well, I suppose I could but it'd go against the larger points of how to setup a server. If this was a local install like it is when you run say mamp or local by flywheel etc. it'd be a different thing ofc :)
I think you're right, that'd probably work, but it'd be troublesome to maintain as you make updates to this repo. It's probably smarter admitting that the use case and the idea of global-ray doesn't fit together. It's not a big deal grabbing it per project instead in modern PHP development where you pretty much always have a project specific composer setup anyway :)
Perhaps you can clean up my late-night ramblings above into a new thing under "known issues" or "incompatibility" in the readme so you won't continue to get these issue tickets  😄

I'm also having this problem with a Docker setup.

Closing this as unfixable due to PHP requiring read access to the user’s Composer global directory to be able to execute properly.

@jonathan-dejong i don't know if you still wanted to try and get this working.
i'm running WSL for local development and have done a bit of an small work around to get this working.
I placed my websites in /mnt/c/wsl/www (it's windows c drive then wsl -> www folder in WSL).
In the www folder i made a new folder global-ray/php8.1 and did the composer require there.
Because the www folder is accessible for PHP you won't get the failed to load error as long as you set the rights correct for it.
Then i manually added "auto_prepend_file = /mnt/c/wsl/www/global-ray/php8.1/vendor/spatie/global-ray/src/scripts/global-ray-loader.php" to /etc/php/8.1/fpm/php.ini at the bottom of the file and restarted my PHP.
Only problem i had was getting this also to work for PHP7.4 because i got an "Call to undefined function str_starts_with()" error. But at least i got it working for PHP8.1, so for all new projects.


Backoff behavior not working?

Hi,
I'm working with Unetstack in IntelliJ so I thought this problem might be related to that, but trying a
simple script in the Unet IDE gives the same error. The simulation script below gives an MissingMethodException related to
the backoff() method. I'm running version 3.2.0 (communitu edition) of Unetstack on MacOS 10.14.6 (Mojave).
Am I doing anything wrong or is there a quick fix to the problem?
import org.arl.fjage.RealTimePlatform
import org.arl.fjage.BackoffBehavior
import org.arl.unet.UnetAgent
import org.arl.unet.*
import org.arl.fjage.*

platform = RealTimePlatform

class TinyAgent extends UnetAgent {
    void setup() {
        log.info("Hello world!")
    }
    void startup() {
        add new BackoffBehavior(5000, {
            println("backing off")
            backoff(5000)
        })
    }
}

simulate {
    node '1', address: 1, location: [0, 0, 0], shell: true, stack: { container ->
        container.add 'ta', new TinyAgent()
    }
}

Try using a subclassed behavior, as Groovy may have trouble resolving the backoff() method from the closure:
add new BackoffBehavior(5000) {
  @Override
  void onExpiry() {
    println("backing off")
    backoff(5000)
  }
}

P.S. Of course, if you needed a constant 5 second tick, you may want to use a TickerBehavior instead. But I suspect you probably want to change the backoff duration dynamically.

Cheers! I knew there'd be a workaround, only that I'm missing the Java/Groovy knowledge necessary :)


Update README.md

Two very important and useful features: auto-completion and signature pop-up should be described in the read-me.

Hi @aceslick911, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

Thanks for the PR!


Remove: Unity.Unity.6000.tvOS version 6000.0.1f1

Microsoft Reviewers: Open in CodeFlow

URL: https://download.unity3d.com/download_unity/d9cf669c6271/TargetSupportInstaller/UnitySetup-AppleTV-Support-for-Editor-6000.0.1f1.exe
OK
(Automated message - build 923)

https://github.com/microsoft/winget-pkgs/pull/186121#issuecomment-2445759087

[Policy] Needs-Manual-Merge


Instance variable manipulation before displaying a form

In order to build a attribute in my object, I do the following:
form do |f|
    f.object.reward_levels.build if f.object.reward_levels.blank?
    f.inputs...
  end

Is there a better way?

I am currently using Ruby 1.9.2, Rails 3.1.1 and ActiveAdmin 0.3.4. Neither of those two options work for me in the form or the show. I posted a stack overflow question about it. http://stackoverflow.com/q/8681568/344174


Feature Request: How about LocalAI / Ollama

Thank you very much for this capability.  Its going to make my aia CLI tool so much nicer.
In order for me to dump all of my current dependency on other back-end CLI programs I need to be able to access LocalAI and Ollama APIs.

Hi @MadBomber thanks for the feedback! Just confirming - are you using the following to run Ollama locally?
brew install ollama
ollama serve

** e.g. Meta Llama **
ollama pull llama3:latest

If so, I believe that Ollama has compatibility with OpenAI API. This may work without any changes for you:
require 'omniai/openai'

client = OmniAI::OpenAI::Client.new(host: 'http://<IP_ADDRESS>:11434')
completion = client.chat('Tell me a joke.', model: 'llama3')
completion.choice.message.content # 'Why couldn't the bicycle stand up by itself? Because it was two-tired!'

require 'omniai/openai'

client = OmniAI::OpenAI::Client.new(host: 'http://<IP_ADDRESS>:11434')
completion = client.chat('Tell me a joke.', model: 'llama3', stream:)
completion.choice.message.content # 'Why couldn't the bicycle stand up by itself? Because it was two-tired!'

The host can be configured globally with:
OmniAI::OpenAI.config do |configuration|
  configuration.host = 'http://<IP_ADDRESS>:11434'
end

Just following up here, but some documentation / fixes have been merged that outlines the usage of both LocalAI and Ollama:
https://github.com/ksylvest/omniai#usage-with-localai
https://github.com/ksylvest/omniai#usage-with-ollama
Going to close for now, but feel free to re-open if you find any issues. Make sure you have at least v1.2.2 of omniai and v1.2.1 of omniai-openai installed:
gem update omniai
gem update omniai-openai

Yep, you are right.  I've forked your gem.  One of the things that I'm looking at is removing the need to explicitly state a back-end client given that the model name has already been specified.  I would also like to see the client interface within the OmniAI namespace as consistent as possible across all clients.
For Ollama, I would make that a OmniAI class the is a sub-class of the OmniAI OpenAI class.  I am planning on actually reviewing the entire code base this weekend.

I do something similar in another project. The library doesn't currently have an exhaustive list of models for each provider. The approach I've taken is to instantiate the client based on a regex mapping of known names:
case model
when /claude/ then OmniAI::Anthropic::Client.new
when /gemini/ then OmniAI::Google::Client.new
when /mistral/ then OmniAI::Mistral::Client.new
else OmniAI::OpenAI::Client.new
end

The above snippet probably needs a extra cases and is not exhaustive (e.g. Mistral has codestral-latest).
A challenge I'd try to avoid in having the client lookup per model require that every client provider is installed. For example, a user that only cares only about Google and OpenAI need only install the omniai-google and omniai-openai gems.

@MadBomber I know this issue is closed, but wanted to give a heads up that I've been working on including some basic CLI support. As part of that, the latest version (v1.4.1) of OmniAI::Client now supports a method to lookup a provider dynamically by name:
https://github.com/ksylvest/omniai/blob/main/lib/omniai/client.rb#L75-L91
OmniAI::Client.find(provider: "anthropic")
OmniAI::Client.find(provider: "google")
OmniAI::Client.find(provider: "mistral")
OmniAI::Client.find(provider: "openai")

Hopefully this helps if you can just provide a model -> provider mapping.

It would also be interesting if within the provider's API or developer websites there might be a way to "download" the list of model names and their attributes.

I think that's a great idea. I think some of the LLM providers support that API:
https://platform.openai.com/docs/api-reference/models/list
https://docs.mistral.ai/api/#operation/listModels
https://ai.google.dev/api/rest/v1beta/models/list
The only one missing seems to be Claude (Anthropic). For that use case though, I'd say it'd be fairly straightforward to support a coded list using this:
https://docs.anthropic.com/en/docs/about-claude/models


don't allow 0 bid in publish

https://app.asana.com/0/198587529699250/220821321387626

@alexliebowitz Can the UI be updated to also not allow a zero bid?

LGTM


⚠ Jenkins Plugins Artifactory has degraded performance

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

HTTP code: 200
Response time: 1326 ms

Resolved: Jenkins Plugins Artifactory performance has improved in ecc8df2 after 12 minutes.


QUIC protocol for WebRTC

Describe the feature
QUIC (Quick UDP Internet Connection) is a relatively new network protocol that offers significant improvements in terms of speed, reliability, and security over TCP. I propose that mediamtx implemets support of QUIC protocol for being possible to read live streams from the server via WebRTC.

This will be a great addon,
There's also Moq based on QUIC - https://datatracker.ietf.org/group/moq/about/


Compatability problem with EF Core 2.1, Linq and Fielder

Hi, I noticed strange Exception EntryPointNotFoundException when fielder package is installed in the project. It breaks EF Core/Linq Select statements. So we decided not to go to prod with fielder for now because we don't know what else it can break.
I created a test repository to reproduce this issue, you can find it following the link below:
https://github.com/m-demydiuk/FodyFielderLinqError
Just one test method FielderLinq.FielderTests.GetUsers(). I hope this test project will be enough input information. I cant give you more info, because I did not find any related in google.
Please advise. Thanks!

can u try explicitly installing the newest version of fody https://github.com/Fody/Fielder#nuget-installation

I updated but still the same.

closing this as stale. if it is still an problem please raise a new issue


[WC-2182] Add docs about Export to Excel

A quick data grid docs update where I'm adding a section about data export.

Thanks for the PR @iobuhov . Please change all the - bullets back to * the way they were. I think your IDE does this automatically. We prefer *s on the docs site. Also please change the "tags" section back to the way it was.
I'll do language edits on your new section. It looks great. Thanks for the submission.

Hi @ConnorLand, I'm wondering if it's possible to define these rules in the root of the repo using prettierrc or any other formatter configurations, so next time my IDE will know about your formatting preferences. Just a small suggestion.

Hi @ConnorLand, I'm wondering if it's possible to define these rules in the root of the repo using prettierrc or any other formatter configurations, so next time my IDE will know about your formatting preferences. Just a small suggestion.

Oh, that's a cool idea. Do you know of any repos that currently do this so we can look at them as an example? If we can, I'll try and make it happen.


make resnext50_32x4d scriptable

Not much here in the way of changes, have to add downsample to constants.

@peterjc123 do you know what's happening with the windows CI? It looks like the machine got full?

@fmassa I have the same idea with @ezyang in https://github.com/pytorch/vision/pull/1298#issuecomment-528378497. Conda-build is a black box and I don't actually know what it is doing here.

I've sent an issue at conda-build. https://github.com/conda/conda-build/issues/3736 Let's see what they say.

They confirmed that this is a bug and provided some workground. I'll try to fix that.

@peterjc123 awesome, thanks a lot for the work!
We might need then to change the way we do our testings to not rely on conda build


Turn IgnoredMatch into a dataclass

IgnoredMatch is currently defined as a Dict[str, str] with two entries: name and match.
It should be turned into a dataclass to improve type-safety and make code more expressive. The Cache code must be updated as well, since it also uses the IgnoredMatch dict.

Can I help with this one?

Can I help with this one?

Sure, you are more than welcome to work on this! It's better if you wait until #247 is merged though: turning IgnoredMatch into a dataclass is the continuation of the work started with the rework of the configuration file. It should be merged today hopefully 🤞🏻.

Can I start working on it now?

Yes, you can 👍🏻

Should I create branch from main?

No, it's better if you start from the iac branch: the main branch does not contain the new configuration code yet.

Should IgnoredMatch support loading from file with list of secrets? Like this:
matches-ignore:
  - 530e5a4a7ea00814db8845dd0cae5efaa4b974a3ce1c76d0384ba715248a5dc1
  - MY_TEST_CREDENTIAL

No, the v2 configuration file format only supports the syntax where a match is declared as an object with name and match keys. So this should be supported:
# correct
secret:
  ignored-matches:
  - name: some secret
    match: 530e5a4a7ea00814db8845dd0cae5efaa4b974a3ce1c76d0384ba715248a5dc1
  - name: another secret
    match: 559583106f3b760810fcb41d7cb99da6e7d118912cdeca19a57358c4b6a6a627

But this should not:
# incorrect
secret:
  ignored-matches:
  - 530e5a4a7ea00814db8845dd0cae5efaa4b974a3ce1c76d0384ba715248a5dc1
  - 559583106f3b760810fcb41d7cb99da6e7d118912cdeca19a57358c4b6a6a627


troubleshoot

[Enter feedback here]

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

ID: cab37bf4-84f6-709b-52c8-6d84f5e7e15c
Version Independent ID: db02365b-da07-c490-0bfc-2a38e9708cea
Content: Policy CSP - Troubleshooting - Windows Client Management
Content Source: windows/client-management/mdm/policy-csp-troubleshooting.md
Product: w10
Technology: windows
GitHub Login: @MariciaAlforque
Microsoft Alias: dansimp

@e0i    No proper feedback, so please close this issue immediately


[T4A3][W15-B4]Jasper Lee

Ready for review

@jasperlee27
Some comments added. Please ack & close the PR after reading comments.

Acknowledged. Thankyou!


Fix compilation error on OsX/clang

@emoon Found this while compiling. Should work just as well I think?


Arcade offline app crashed and all tutorials, examples disappear

Describe the bug
Arcade offline app crashed and all tutorials, examples disappear
Steps to reproduce the behavior
1.Download app in https://makecode.com/api/release/arcade/v1.4.36/win64 and install it
Actual behavior
Arcade offline app crashed and all tutorials, examples disappear. Only the projects can be opened.

Additional context
1.OS: Windows(rs6)
2.arcade version: 1.4.36
3.Microsoft MakeCode version: 6.12.16

Clicking Reset can restore. But I haven't found the steps to reproduce the issue yet.

This is fixed.


SDG2Plume Showcase

Progress so far:

[+] FPS
[+] Added Sprites and PyxelEdit together so it's more useful and less boring.
[+] Player and other sprites rendered among tilemaps for FG/BG z-order.
[+] Added animating water with the PyxelEdit map.txt
[+] Added Tiled example as a State
[!] Need BitmapText support, seems broken.

Hey I just noticed you ported some of the showcase code over. I thought you were too busy working on the engine for that so I just converted the code manually.
I'll have to to check through this and see if there is anything I could use use.
One major change I made is the elimination of hard coded objects, ie the Cloud Class has been replaced with a Crem which is a static function that's short for 'incrementor/decrementor limiter'. It's a very small function that returns a value after some math and checks on params and can basically animate anything (ie, one Float with a Crem animates 4 water tilemaps in two directions in my demo).
Anyways it shrunk the uncompressed kha.js by 2kb just by removing the need for a Cloud class and in theory should be faster since there is less code and checks.
There's more, but don't want to get too into it right now.


Update Fork

Description

Types of changes

[] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):
How Has This Been Tested?

@DK101010 ,

I think you will want to get master from origin and force push it here. define or redefine origin as the apache cloudstack repo and define yours as "mine" or "dk" or something. makes sense?

Hi Dahn,
at first, I have forked the apache/cloudstack into my projects via GitHub,
after this I cloned my forked repository. Last month, I merged
apache/cloudstack master into my fork via GitHub with a pull request.
Then we talked together about it yesterday and you means that is not so
good.
For this reason I've added the apache/cloudstack into my remote repository
mit git remote add ... and pulled into my forked master
Now I want to find out if this correct, the result can you see here (
https://github.com/apache/cloudstack/pull/4548)
[image: image.png]
it this a better solution?
The only one that I know  to prevent a merge commit is to use rebase, but a
rebase of apache master to my forked master sounds not pretty well.
Many Greetings
Dirk
Am Mi., 16. Dez. 2020 um 13:07 Uhr schrieb dahn<EMAIL_ADDRESS>
@DK101010 https://github.com/DK101010 ,
[image: image]
https://user-images.githubusercontent.com/2486961/102346654-7ded8480-3f9f-11eb-9179-4f37e75d39df.png
I think you will want to get master from origin and force push it here.
define or redefine origin as the apache cloudstack repo and define yours as
"mine" or "dk" or something. makes sense?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DK101010/cloudstack/pull/1#issuecomment-746189505,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANW3U4UFYQIUBH6IGJIGRODSVCPJXANCNFSM4TXJLANA
.

so what are the output of git remote -v, and git branch -v?

[image: image.png]
Am Mi., 16. Dez. 2020 um 16:00 Uhr schrieb dahn<EMAIL_ADDRESS>
so what are the output of git remote -v, and git branch -v?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DK101010/cloudstack/pull/1#issuecomment-746429116,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANW3U4XB2CNZJGGRDQ35FDDSVDDQXANCNFSM4TXJLANA
.

[image: image.png]

is not the text i was looking for :D

better not use github with mail. it doesn't work that well

sorry :D
next try

Ah I should have said git branch -vv
an snippet from my output:
* marvin3                  3e228ea390 [sb/marvin3] env run of python3
  master                   58a0a7b1a3 [origin/master] Merge remote-tracking branch 'origin/4.14'

it shows how master is from origin (tracking origin/master) and marvin3 in on my company account (alias sb). marvin3 was a fork of master but pushed to a different account. next I created a pull request on github from shapeblue:marvin3 to apache:master and if i kept my local master up to date all is dandy and fine.
  I would also not name your own origin but something like mine or DK or so.

Ahh ok, I understand what you want and approved my assumption. My master should pointed to the apache/cloudstack master and not to my forked master. I will remove my master add the apache/cloudstack master, clean up my newest branch, merge the new master in this branch and then should be the problem solved.
I let you know when I pushed my updated branch, ok?
Many thanks for your support :)

@DaanHoogland Now looks good https://github.com/apache/cloudstack/pull/4548/commits

yes, it does


visibility check on aimbot tab makes the aimbot not work ever, even when they are visible

ye the visibilty check does not work on esp and aimbot tab

This is not an issue at all.
The method Dexterion uses to check if a player is visible is bSpottedByMask.
This is very slow and does not work properly sometimes.
I might change it and add it in the TODO list.

Visibility check on ESP works a little different, it only change the bounding box fill color when you can see the enemy.


RHTAPINST-112: Trusted Profile Analyzer Integration Secret

After rhtap-tpa chart is installed, the following secret is created:
oc --namespace rhtap extract secrets/rhtap-trustification-integration --to=-

/retest


Improve editor UI

added margin for action bar
removed pane splitter for action bar in mobile layout

Before
After

Desktop

Mobile

Thanks for the pull request, but before merging it, you also need to update the code that saves and loads the pane sizes, because it assumed the amount of panes was constant.
That logic is handle here

I've made the necessary changes, thanks for your contribution!


Dynamic Charts Support

When generating reports, it's a common practice to include charts (types of vulnerabilities, their occurence share etc.).
It would be nice if there was a {tag} for them in the templater, or at least any workaround. I'm not sure whether there is a straightforward solution, except maybe "second pass" to another templating engine with chart support.
Edit: More straightforward solution might be to generate the chart as an image and then put them into the docx as images. That would eliminate the need for another templating engine.

Could you give a more exact example here? I am doing this in one of my templates, where impact/likelihood are custom fields:

For the types of vulns you could probably count findings.category or findings.vulntype

I meant literal graphs and charts, like if I wanted to put a bar graph or a pie chart in a management summary.


Package upgrades

Coverage increased (+0.02%) to 87.9% when pulling 3b4cb73e6a4d08577fe80d2ec86246fe84a6d074 on es6 into 2d85c3e9e7237d7cad5853dd3ec6dd26b884d9f1 on master.

Coverage increased (+0.02%) to 87.9% when pulling e66467b9803c4465af948d687e8ee71754bae343 on es6 into 2d85c3e9e7237d7cad5853dd3ec6dd26b884d9f1 on master.

Coverage increased (+0.02%) to 87.9% when pulling 868961fd14dc6f4284c833decfcc29c59aa85e00 on es6 into 2d85c3e9e7237d7cad5853dd3ec6dd26b884d9f1 on master.


Fix for the case where many elements are used. Before the fix, one an…

Fix for the case where many elements are used. Before the fix, one and the same mask was applied to all elements in [NodeList]. For the example - '.block img[data-clip]'

Sorry for the delay. Thank you for the fix.


3.8 Update : Attributes column changes Issue

Dear Anton,
My MySQL database size for position table is huge in size.
And when I tried to update from 3.7 to 3.8 traccar,. the following update query listed below stops and mysql is stuck for long unable to upgrade.
<dropNotNullConstraint tableName="positions" columnName="attributes" columnDataType="VARCHAR(4096)" />
<modifyDataType tableName="positions" columnName="attributes" newDataType="VARCHAR(4000)" />

DATABASECHANGELOGLOCK = 1
Also the query running at that point, shows copying to tmp table in mysql, However there is no progress. (the attributes column type change query).
Could you please help me or guide me on how to troubleshoot this? or the reason behind it

You just have to wait. It took about 5 hours to upgrade demo server.

Wow, Thats a lot of time,. I will try again. and let it run on its own. Thank You.


HTML no longer parsed in tooltip formatter

Bug report
Codepen
https://codepen.io/bilge-the-encoder/pen/YzpqLPo
Explanation
In previous versions, HTML was processed as HTML. Now, it appears to be escaped and thus printed literally. This is a breaking change and not desired. Broken since 3.24.0.

Duplicate of #2202

Re-opening this due to Cross-site Scripting (XSS) - DOM vulnerability

HTML parsing will not be supported due to XSS vulnerability.

LOL. I'm glad I abandoned this library.


Add-WindowsCapability isn't working on mcr.microsoft.com/windows:1903

I pulled mcr.microsoft.com/windows:1903 and ran the command below - and it errors.  Is this page sufficiently up to date? or do i have some other issue?
PS C:> Add-WindowsCapability -Online -Name 'Rsat.ActiveDirectory.DS-LDS.Tools~~~~<IP_ADDRESS>'
Add-WindowsCapability : The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
At line:1 char:1

Add-WindowsCapability -Online -Name 'Rsat.ActiveDirectory.DS-LDS.Tool ...

  + CategoryInfo          : NotSpecified: (:) [Add-WindowsCapability], COMException
  + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

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

ID: b6cbabcb-0910-3082-fe93-bafef68f2faa
Version Independent ID: 6efd7af0-a3f2-9d4a-cee1-722caf001cdd
Content: Create gMSAs for Windows containers
Content Source: virtualization/windowscontainers/manage-containers/manage-serviceaccounts.md
Service: windows-containers
Product: windows-containers
GitHub Login: @rpsqrd

Did you run this command inside the container or on the container host? It is intended to be run on the host. If you did run it on the host, can you share the OS and version number?

ok i realize now that that tag is windows client not windows server, however when run on server core i get the following:
PS C:> Add-WindowsCapability -Online -Name 'Rsat.ActiveDirectory.DS-LDS.Tools~~~~<IP_ADDRESS>'
Online        : True
RestartNeeded : False
and i still cant run Test-ADServiceAccount as i don't think it installed anything
Test-ADServiceAccount : The term 'Test-ADServiceAccount' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1

Test-ADServiceAccount WebApp01

  + CategoryInfo          : ObjectNotFound: (Test-ADServiceAccount:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

On Windows Server, try the following:
Install-WindowsFeature RSAT-AD-PowerShell

Import-Module ActiveDirectory

The syntax for installing the cmdlet changes between server and client.

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Linter breaks when starting a new file

When starting a new file with say
.c

before finishing to
.class {}

It throws an error.
TypeError: Cannot read property 'column' of undefined
  at Object.spaceBeforeBraceLinter [as lint] (/Users/oskarrisberg/.atom/packages/linter-lesshint/node_modules/lesshint/lib/linters/space_before_brace.js:33:41)
  at /Users/oskarrisberg/.atom/packages/linter-lesshint/node_modules/lesshint/lib/linter.js:101:32
  at Array.forEach (native)
  at /Users/oskarrisberg/.atom/packages/linter-lesshint/node_modules/lesshint/lib/linter.js:86:17
  at Node.traverse (/Users/oskarrisberg/.atom/packages/linter-lesshint/node_modules/lesshint/node_modules/gonzales-pe/lib/node/basic-node.js:39:254)
  at Node.traverse (/Users/oskarrisberg/.atom/packages/linter-lesshint/node_modules/lesshint/node_modules/gonzales-pe/lib/node/basic-node.js:39:401)
  at Object.exports.lint (/Users/oskarrisberg/.atom/packages/linter-lesshint/node_modules/lesshint/lib/linter.js:85:9)
  at [object Object].Lesshint.checkString (/Users/oskarrisberg/.atom/packages/linter-lesshint/node_modules/lesshint/lib/lesshint.js:67:25)
  at Object.lint (/Users/oskarrisberg/.atom/packages/linter-lesshint/index.js:70:43)
  at Promise.then._this.emitter.emit.linter (/Users/oskarrisberg/.atom/packages/linter/lib/linter-registry.coffee:59:22)
  at LinterRegistry.triggerLinter (/Users/oskarrisberg/.atom/packages/linter/lib/linter-registry.coffee:58:16)
  at /Users/oskarrisberg/.atom/packages/linter/lib/linter-registry.coffee:52:17
  at Array.map (native)
  at /Users/oskarrisberg/.atom/packages/linter/lib/linter-registry.coffee:50:27

Thanks for this.
It's  a upstream issue in lesshint as reported as such.

This is fixed upstream. I don't know if Atom will include package dependencies when running apm update, could you try it out?

I've just pushed 1.1.1 which should be picked up by Atom soon.

:cake:


Fix calculating total price on draft order

I want to merge this change because...

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-2645 Deleting Variant/Product removes order_line but doesn't recalculate order prices


Groups refactor + membership caching

Plan:

[x] Add group provider for managing groups + memberships, this allows for group memberships to be completely resolved in Pulumi
[x] Change group cache to use buckets instead of secrets
[ ] Remove access-group-cache polling function
[x] Create new groups per predefined spec

[x] User groups
[x] Machine groups (test-read, test-write, main-list, main-read, main-write)
[x] Introduce read-only depends structure

[x] Add general group members to private repository

[x] Add mechanism for including those group members in this repo

This PR removes the OutputProvider, and replaces it with a better mechanism for accessing infrastructure between stacks - including more central infrastructure that can be globally accessed by any stack (in this case, the group-member-cache bucket). I think in future this will be a powerful way to manage infrastructure centrally through this repo.

@lgruen, I think this will be tricky to deploy, without potentially removing all manually added members from groups. There are a lot of of group membership changes (to help deal with the read-only depends on).
Would love your thoughts :)


fix sessionClient's randomized sessions to be dynamic

NetflixOSS » eureka » eureka-pull-requests #505 SUCCESS
This pull request looks good


sheepdog

This is really great. The ability to develop SAN like storage using K8, docker and golang opens things up.
The harsh climate on Hacker News is to be expected - your treading on turf.
Have you seen this:
https://github.com/sheepdog/sheepdog
It is using https://github.com/corosync/corosync for sync.
Lots of good algos here.
i found a golang client here:
https://github.com/neurodrone/picard

Corosync not so stable like etcd in my tests (firstly you need corosync 2..x) (i'm use sheepdog).
Also it uses multicast and udpu not so stable (may be i'm wrong).

@vtolstov Great to get that feedback.
i was just reading how Corosync uses Pacemaker for sync aspects.
I am personally really curious about AoE
https://en.wikipedia.org/wiki/ATA_over_Ethernet
Spec:
http://brantleycoilecompany.com/AoEr11.pdf
golang implementation:
https://github.com/mdlayher/aoe
The reason i like AOE is because, when i worked with it a few years ago, compared to the other offerings it is simple and reasonable open. No special Hardware in terms of cards or transport.

My use case - virtual machines. So in case of AoE i need to attach devices to linux host and use in qemu block device. In this case qemu->linux host->network->torus
In case of using nbd i have qemu->network(nbd)->torus
So this is not need to copy data to kernel and can give more speed.

There is ndbd golang code going into the repo from what I see on the PR's.
I really need to get a instance up to try this out.

Since this is the issue tracker for Torus is there a specific issue you're raising? For example aret there features in sheepdog you'd like to see in Torus?
There might be better forums for these kinds of discussions :)

From sheepdog may be useful custom redundancy level per volume,that for
this volume overrides cluster setting.
So for most of people I have 4 copies ,and for some specific volumes 1 copy
if data can be easy recovered via application.
8 Июн 2016 г. 19:44 пользователь "Eric Chiang"<EMAIL_ADDRESS>написал:

Since this is the issue tracker for Torus is there a specific issue you're
raising? For example aret there features in sheepdog you'd like to see in
Torus?
There might be better forums for these kinds of discussions :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/coreos/torus/issues/245#issuecomment-224652111, or mute
the thread
https://github.com/notifications/unsubscribe/AAdYGxehvvIcltO4CDK0xruStRxBSFECks5qJvFlgaJpZM4Iwt51
.

I will close this. It should be on the Google groups


propagate counter between preprocessing and verification

@daejunpark please review

lgtm once you add 1 to the last counter value.


An error occured. Image metadata could not be retrieved.

Dear Sir,
We installed the latest version of Slim.
After uploading WSI DICOM to Slim, we try to open WSI viewer. But it did not work.
The Slim replied error message "An error occured. Image metadata could not be retrieved."

Did I miss something that cause the error？
Here is the docker log for your reference.
docker.log
Your attention to this matter and prompt reply would be highly appreciated.
Thank you very much for your great help.

Dear Sir,
Update the issue status.
After a couple of hours later, this issue is gone and the Slim works perfectly.
I'm not sure about that, maybe the Slim docker container / volume / network not stable yet that cause the error.

@DrexlerChao we added a new configuration parameter that needs to be included in the configuration file (see local.js). I added a line to the notes of the 0.2.0 release.


4.04 support

Hey, does this support 4.04 version?

I do, but I cannot say when. Right now I do not have time to maintain this project :(


Update scripts for latest grpc, 0.12.

Note we now use the gRPC protobuf submodule for install,
to be sure its version matches gRPC.
@enisoc this is the first part. I need to do docker next.
How about we just install all the modules we depend upon in a single tree (the 'dist' directory, or even maybe a directory higher) instead of each of them being in their own directory?

I don't see a clean way to check if this will work in Travis before merging to master. I think I would have to delete the master Travis cache, but then if anyone merges anything it will re-establish the cache with the old grpc version.
A while ago I came up with a hack to get more granular control of the Travis cache:
https://github.com/youtube/vitess/blob/master/travis/php_init.sh#L32
If we do something similar here in travis/install_grpc.sh, you could check for the ver_file, and if it doesn't exist or is out of date, delete both dist/grpc and dist/protobuf and start from scratch. This will ensure that nothing in the cache will interfere with your new builds. At the same time, it will avoid having to also rebuild everything else in the cache (like the PHP interpreter).
As a bonus, I think this would also make it easier on everyone whenever we bump the grpc version. Instead of saying, "I just bumped the version, please delete dist/{grpc,protobuf} and run bootstrap.sh", you can just say, "Always run bootstrap.sh after pulling master and it will automatically update anything that needs to be updated".
As for merging all the dist trees, I could be convinced if there's a significant benefit. However, it has been nice in the past (and especially so with my granular plan above) to be able to rm -rf dist/something and start from scratch for just that part.

OK I'll modify the install script so the file marker also contains the version number, set to 0.12 now, and also remove the protobuf dist.

You may also need to update the list of cached directories in .travis.yml. It will probably pass without fixing that, but it may fail on a subsequent run if all the required directories aren't cached.

@enisoc OK I think this is good now, PTAL. I had to clear travis cache, as predicted, but then everything works as expected.

LGTM

Regarding the tox issue, it's apparently known. @michael-berlin found the following issues:
https://github.com/grpc/grpc/issues/4592
https://github.com/grpc/grpc/issues/4473
He's looking into it, but I think it should be ok to merge this. I'd like to go ahead and update the php grpc plugin to the latest beta, which requires grpc 0.12.
I can add the --ignore-installed and parallel make flags we tried earlier today, after you merge this.

re: the tox issue
In https://github.com/grpc/grpc/pull/4323 grpc changed tox.ini to use the new directive "-r" instead of specifying the dependencies.
This feature requires tox 1.6.1 but Ubuntu Trusty comes only with 1.6.0.
We only run into the issue If tox is installed system-wide (python-tox package).
If not, gRPC's build_python.sh magically uses the tox binary which is in the virtualenv.
I see the following two fixes on the grpc side:

do not use the -r... directive
always use the newer tox from the virtualenv

OK then I'll merge this, and we'll fix forward.

Example when build_python.sh fails due to the old Tox version:
$ CONFIG=opt ./tools/run_tests/build_python.sh
...
tox --notest
...
py27 installdeps: -rrequirements.txt
...
ERROR: could not install deps [-rrequirements.txt]
_____________________________________________________________________________________________________________________________________ summary ______________________________________________________________________________________________________________________________________
ERROR:   py27: could not install deps [-rrequirements.txt]

tox version:
$ tox --version
1.6.0 imported from /usr/lib/python2.7/dist-packages/tox/__init__.pyc

FYI: I've created an issue with Travis to get python-six whitelisted for installing via apt-get:
https://github.com/travis-ci/apt-package-whitelist/issues/2317
The process is automated and we should have a result within a day.

python-six is now whitelisted by Travis.
To recap, with this PR, we introduced two new dependencies:

tox
python-six

Currently, these dependencies are "managed" by travis/install_grpc.sh and the user doesn't have to care about it.
If we want to get the dependencies out of there, we would have to e.g. add them to our list of dependencies: http://vitess.io/getting-started/local-instance.html#install-dependencies
For tox, I feel we definitely should not do that.
python-six is now required because protobuf requires it.
I assume somebody who is going to use our python client might therefore require it?
That sounds like we want to have it as explicit dependency then?
@alainjobart @enisoc Do you agree?
If so, I'll make the necessary changes.

Agreed, explicit dependency on python-six (very stable package), and not
tox (as it will not be required soon I guess?).
Thanks!
On Tue, Feb 2, 2016 at 6:04 PM, Michael Berlin<EMAIL_ADDRESS>wrote:

python-six is now whitelisted by Travis.
To recap, with this PR, we introduced two new dependencies:

tox
python-six

Currently, these dependencies are "managed" by travis/install_grpc.sh and
the user doesn't have to care about it.
If we want to get the dependencies out of there, we would have to e.g. add
them to our list of dependencies:
http://vitess.io/getting-started/local-instance.html#install-dependencies
For tox, I feel we definitely should not do that.
python-six is now required because protobuf requires it.
I assume somebody who is going to use our python client might therefore
require it?
That sounds like we want to have it as explicit dependency then?
@alainjobart https://github.com/alainjobart @enisoc
https://github.com/enisoc Do you agree?
If so, I'll make the necessary changes.
—
Reply to this email directly or view it on GitHub
https://github.com/youtube/vitess/pull/1459#issuecomment-178956798.


N17: Add rust-gpu section

Part of #408

Rendered
Wasn't sure whether there's convention of how to order the posts, so I just put it in alphabetical order.

Merged, thanks for the PR!

Wasn't sure whether there's convention of how to order the posts, so I just put it in alphabetical order.

Sections should be placed accordingly to how they're ordered in the coordination issue (where the libs&tools sections are ordered from low-level to high-level).

Merged, thanks for the PR!

Wasn't sure whether there's convention of how to order the posts, so I just put it in alphabetical order.

Sections should be placed accordingly to how they're ordered in the coordination issue (where the libs&tools sections are ordered from low-level to high-level).


Rebuild for libvigra

Hi! This is the friendly automated conda-forge-webservice.
I've started rerendering the recipe as instructed in #60.
If I find any needed changes to the recipe, I'll push them to this PR shortly. Thank you for waiting!
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

Needs: https://github.com/conda-forge/enblend-feedstock/pull/22#issuecomment-2172003741


unnecessary exclamation mark in amendment paragraph dialog

The new dialog to select a paragraph for an amendment has an unnecessary exclamation mark in its title:

I understand that this new feature excited the proggramer but users don't like these exclamation marks when there is nothing of special attention.

Nice :'D


[release-0.49] virt-launcher overhead: bump virtlauncher and virtlogd

What this PR does / why we need it:
Tests discover that 150Mi is not enough for the 2 virt-launcher processes.
Also, we need 17Mi for the virtlogd process.
This is a manual cherrypick of https://github.com/kubevirt/kubevirt/pull/8011 and https://github.com/kubevirt/kubevirt/pull/7685
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

NONE

/cc @xpivarc @stu-gott

/retest-required

/lgtm
@enp0s3 PTAL

/approve


The registry and configuration center supports nacOS

Is your feature request related to a problem? Please describe.
Go-micro plans to integrate nacos?
Describe the solution you'd like
For go-Micro users, nacos can be chosen as the registry and configuration center
Additional context
Add any other context or screenshots about the feature request here.

I could try to do the job.

Feel free to PR something to go-plugins


association #21

association using apriori #21

Please add this file in the solutions folder

I added it in the Solutions folder itself


Resolves Docs Bounty Issue 335

In this PR, I have added example for a fee bump tx as the issue suggested. Resolves #335

@briwylde08 This PR is ready for review

Yes, @ElliotFriend I have added that import now

Thank you @rahul-soshte! We'll continue the conversation in the corresponding issue.


Add scaling UI

This PR adds a scaling button to the header actions of Deployments, StatefulSets, and ReplicaSets. Doing this it became clear that we really need to try to find an alternative to the current API proxy.

fixes #530

@illume  BTW, for the i18n, there are missing translations to be added in main, so we can just merge this and then add them all when this is ready.


Ruby 2.3.6 build failed

make[2]: *** [Makefile:301: ossl_x509crl.o] Error 1
make[2]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6/ext/openssl'
make[1]: *** [exts.mk:212: ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6/ext/json/parser'
linking shared-object objspace.so
make[2]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6/ext/objspace'
linking shared-object json/ext/generator.so
make[2]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6/ext/json/generator'
linking shared-object pathname.so
make[2]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6/ext/pathname'
linking shared-object bigdecimal.so
make[2]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6/ext/bigdecimal'
linking shared-object date_core.so
make[2]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6/ext/date'
linking shared-object nkf.so
make[2]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6/ext/nkf'
make[1]: Leaving directory '/tmp/ruby-build.20180115182544.10577/ruby-2.3.6'
make: *** [uncommon.mk:203: build-ext] Error 2

ruby-build.20180115182544.10577.log
$ pacman -Qs openssl
local/openssl 1.1.0.g-1
    The Open Source toolkit for Secure Sockets Layer and Transport Layer Security
local/openssl-1.0 1.0.2.n-1
    The Open Source toolkit for Secure Sockets Layer and Transport Layer Security

$ uname -a
Linux alex-workpc-arch 4.14.13-1-ARCH #1 SMP PREEMPT Wed Jan 10 11:14:50 UTC 2018 x86_64 GNU/Linux

Maybe related, 2.3.7 also failed.
ruby-build.20180329105340.19745.log

@AlexWayfer Ruby 2.3 is only security maintenance status after April 2018. Therefore, It has no chance to fix build error. I suggest using Ruby 2.4 or 2.5 instead of 2.3.

@AlexWayfer Ruby 2.3 is only security maintenance status after April 2018. Therefore, It has no chance to fix build error. I suggest using Ruby 2.4 or 2.5 instead of 2.3.

Thank you for your response.
Can Ruby 2.3 be shipped with necessary versions of libraries in ruby-build?
Ruby 2.3 is still supported, so I want to test some gems for this version.

It's just strange situation: ruby-build has Ruby 2.3 versions, and 2.3.7 has been added recently, but they can't be installed.

https://github.com/rbenv/ruby-build/wiki#openssl-usrincludeopensslasn1_mach102-error-error-this-file-is-obsolete-please-update-your-software
Can you try this instruction? Ruby 2.3 didn't support OpenSSL 1.1.x.

https://github.com/rbenv/ruby-build/wiki#openssl-usrincludeopensslasn1_mach102-error-error-this-file-is-obsolete-please-update-your-software
Can you try this instruction? Ruby 2.3 didn't support OpenSSL 1.1.x.

Thanks, it helps! Sorry to bother you.


verify the node of the user against Cognito

💡 Description

we need groups for each node
The cognito user will be assigned node groups (at least one).
The client will forward the access token to the API gateway
The lambda authorizer will decode the groups, and check that it matches the node as specified in the header of the request.

@collinss-jpl
need support from @ramesh-maddegoda to access the authorizer's log on cloudwatch

@collinss-jpl is trying to access the header from the lambda authorizer but it does not work and Scott can not log the lambda function.

status: working on configuring this to work through API Gateway and making sure Cognito groups are being checked. Authorizer function logging issue was actually due to issues with the function not executing. @collinss-jpl will be working on the permission rules here coming up between now and Tuesday.

status: met with NGAP to debug issues with API Gateway and Lambda. issue still remains. tried going back from scratch and appears unsuccessful. need to loop back with Jason about why this is failing.

@collinss-jpl spotted the configuration which was missing for the authorizer lambda to work.


Fix Exception and StackTrace is ignored for logs

Fixes:
https://github.com/Frezyx/talker/issues/198
https://github.com/Frezyx/talker/issues/183
https://github.com/Frezyx/talker/issues/122

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.67%. Comparing base (00a71a5) to head (450129e).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #199      +/-   ##
==========================================
- Coverage   99.78%   99.67%   -0.12%
==========================================
  Files          25       14      -11
  Lines         467      305     -162
==========================================
- Hits          466      304     -162
  Misses          1        1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@Frezyx can you take a look? :)

Hello @qwadrox 👋
Sorry for long time waiting. I was unable to check your changes.
Great PR! Thank you for contributing ❤


Mail Faker does not emit MessageSending or MessageSent events when testing mailables.

Laravel Version
10.28
PHP Version
8.1.4
Database Driver & Version
N/A
Description
When writing tests using the MailFake mailer to determine if Mailables are sent, and subsequent Message events are emitted (and the behavior of the associated Listeners is as-expected), the MessageSending and MessageSent events (described in in the docs) are not emitted.
Steps To Reproduce

Create a mailable: php artisan make:mail MyTestMail
Create a listener: php artisan make:listener MailSentListener

namespace App\Listeners;

use Illuminate\Mail\Events\MessageSent;

class MailSentListener
{
    public static $executed = false;

    public function handle(MessageSent $event): void
    {
        static::$executed = true;
    }
}

Add the event/listener configuration to the EventServiceProvider.php

protected $listen = [
    Illuminate\Mail\Events\MessageSent::class => [
        App\Listeners\MailSentListener::class,
    ],
];

Create a test: php artisan make:test MailTest --pest
Write test:

use App\Listeners\MailSentListener;

it('emits mail events', function() {
  Mail::fake();
  Mail::send(new MyTestMail());

  expect(MailSentListener::$executed)->toBe(true);
});

Run your test, and see the failure php artisan test

https://laravel.com/docs/10.x/mail#testing-mailable-content
Shouldn't you just use the available assertion. Mail::fake() doesn't actually send an email.


error in getPPDBclustersRaw

After running all installation steps, I run the script python src/cesi_main.py -name reverb45_test_run . Then, I get the following error:
2020-10-02 11:45:51,494 - [INFO] - Running reverb45_test_run
2020-10-02 11:45:51,494 - [INFO] - Reading Triples
2020-10-02 11:45:51,494 - [INFO] -      Loading cached triples
2020-10-02 11:45:52,521 - [INFO] - Side Information Acquisition
Error! Status code :500
Traceback (most recent call last):
  File "src/cesi_main.py", line 234, in <module>
    cesi.get_sideInfo() # Side Information Acquisition
  File "src/cesi_main.py", line 89, in get_sideInfo
    self.side_info = SideInfo(self.p, self.triples_list, self.amb_mentions, self.amb_ent, self.isAcronym)
  File "/home/kgashteovski/cesi/cesi/src/sideInfo.py", line 24, in __init__
    self.fixTypos(amb_ent, amb_mentions, isAcronym)
  File "/home/kgashteovski/cesi/cesi/src/sideInfo.py", line 413, in fixTypos
    ent2ppdb = getPPDBclustersRaw(self.p.ppdb_url, sub_list)
  File "/home/kgashteovski/cesi/cesi/src/helper.py", line 118, in getPPDBclustersRaw
    if rep_list[i] == None: continue        # If no representative for phr then skip
TypeError: 'NoneType' object is not subscriptable

Any idea how to fix this quickly?

Hi @gkiril ,
Are you running the PPDB server on another terminal?

Yes, I am

It has been a very long time since I worked on this project so I cannot solve it by looking at this error. Please investigate further on the issue and let me from where the None object is coming from.

Hi @svjan5
Thank you very much for your answer.
I tracked the issue to queryPPDB in helper.py. In particular, for line 88:
req = requests.post(ppdb_url + 'ppdbAll', data=json.dumps(data), headers=headers)
req.status_code is 500, not 200. Any idea why this is and how to fix it?

Hi @gkiril,
Thanks for looking into the issue. Seems like the issue is with PPDB server only.
The code doesn't make use of any GPUs etc (it uses numpy only) so it should not make much difference. Mostly the PPDB server is not accessible on the server because of some reason (firewall, private network). If it runs locally for you then it is good news it should work with some effort on the server as well.

Is it possible to run CESI without the use of the PPDB server? For instance, to load and query the data in a simpler way (i.e. from files)?

One way is that we can avoid using PPDB side information completely. It should not hurt the performance much. Just comment out the line where PPDB information is getting used then it should work without any problem.

Hi @svjan5
we solved the issue. The problem in the following line:
req = requests.post(ppdb_url + 'ppdbAll', data=json.dumps(data), headers=headers)
was that the servers were binding to localhost, not to network-ip:9997. When we hard-coded the address
req = requests.post('http://network-ip/ppdbAll', data=json.dumps(data), headers=headers)
the problem was gone.
Thank you very much for your helpful advises on the matter. The issue can be closed.

No problem! Thanks for sharing the solution to the issue.