Apple Silicon support

Hi, the plugin crash on new Apple Silicon SoC. Here is a log:
java.lang.UnsatisfiedLinkError: /Users/vico/Library/Caches/JetBrains/PhpStorm2020.3/tmp/jna4569697145745322662.tmp: dlopen(/Users/vico/Library/Caches/JetBrains/PhpStorm2020.3/tmp/jna4569697145745322662.tmp, 1): no suitable image found.  Did find:
	/Users/vico/Library/Caches/JetBrains/PhpStorm2020.3/tmp/jna4569697145745322662.tmp: no matching architecture in universal wrapper
	/Users/vico/Library/Caches/JetBrains/PhpStorm2020.3/tmp/jna4569697145745322662.tmp: no matching architecture in universal wrapper
	at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
	at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
	at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
	at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
	at java.base/java.lang.Runtime.load0(Runtime.java:768)
	at java.base/java.lang.System.load(System.java:1837)
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947)
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922)
	at com.sun.jna.Native.<clinit>(Native.java:190)
	at com.sun.jna.Pointer.<clinit>(Pointer.java:54)
	at com.sun.jna.Structure.<clinit>(Structure.java:2131)
	at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RpcService.update(RpcService.kt:121)
	at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RpcService.update$default(RpcService.kt:77)
	at com.almightyalpaca.jetbrains.plugins.discord.plugin.render.RenderService$render$2.invokeSuspend(RenderService.kt:75)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

java.lang.NoClassDefFoundError: Could not initialize class com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.connection.NativeRpcConnection
	at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RpcService.update(RpcService.kt:121)
	at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RpcService.update$default(RpcService.kt:77)
	at com.almightyalpaca.jetbrains.plugins.discord.plugin.render.RenderService$render$2.invokeSuspend(RenderService.kt:75)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

PC Info:

MacBook Pro M1
PHPStorm 2020.3
MacOS Big Sur 11.0.1

Important note: I don't have Rosseta installed since PHPStorm 2020.3 support natively Apple Silicon, I think this is the cause of the error: no matching architecture in universal wrapper.
Thank you, if you need any more details, feel free to ask me.

Hello, this looks related to https://github.com/discord/discord-api-docs/issues/1285, unfortunately we cannot do much about this until discord fixes this issue on their end, or until https://github.com/Almighty-Alpaca/JetBrains-Discord-Integration/pull/130 is merged

Hello, this looks related to https://github.com/discord/discord-api-docs/issues/1285, unfortunately we cannot do much about this until discord fixes this issue on their end, or until https://github.com/Almighty-Alpaca/JetBrains-Discord-Integration/pull/130 is merged

Hello,
Are you still looking into this? :)

Hello,
Are you still looking into this? :)

Yes, I have made a pull request (#166) which resolves this issue

My pull request (#166) has been merged and this will be fixed in the next version of the plugin 🎉

There's an EAP build with the PR that should probably be approved tomorrow by JetBrains. To get EAP builds you have to follow these steps:

Open your IDE
Go to Settings > Plugins
Click on the gear icon at the top
Select Manage Plugin Repositories...
Click add in the top right corner
Paste this link https://plugins.jetbrains.com/plugins/eap/10233
If the update isn't displayed immediately close the settings and click on Help > Check for updates...

Feel free to leave some feedback here so I can release it for everyone as soon as possible.

Hey,
Tried the EAP build and this is the error im getting now:
Unhandled exception in @.***,
Dispatchers.Default]
java.lang.NoClassDefFoundError: Could not initialize class
com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.connection.NativeRpcConnection
at
com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RpcService.update(RpcService.kt:121)
at
com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RpcService.update$default(RpcService.kt:77)
at
com.almightyalpaca.jetbrains.plugins.discord.plugin.render.RenderService$render$2.invokeSuspend(RenderService.kt:75)
at
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at
kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Den tors 24 juni 2021 kl 23:28 skrev Aljoscha Grebe <
@.***>:

There's an EAP build with the PR that should probably be approved tomorrow
by JetBrains. To get EAP builds you have to follow these steps:

Open your IDE
Go to Settings > Plugins
Click on the gear icon at the top
Select Manage Plugin Repositories...
Click add in the top right corner
Paste this link https://plugins.jetbrains.com/plugins/eap/10233
If the update isn't displayed immediately close the settings and
click on Help > Check for updates...

Feel free to leave some feedback here so I can release it for everyone as
soon as possible.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Almighty-Alpaca/JetBrains-Discord-Integration/issues/145#issuecomment-867963445,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APZSBWSHISHBT5NZP7HJGG3TUOPPDANCNFSM4WIPOFVA
.

Hi @foundbypass, from what I can see the update with M1 support isn't on the EAP builds yet. It should be up sometime today though

EAP version has just been approved 🎉

It still gives me the same error 😢

It still gives me the same error 😢
@Indiance

That shouldn't be the case. What version of the plugin are you currently running?

It still gives me the same error 😢
@Indiance

That shouldn't be the case. What version of the plugin are you currently running?

The one thats on the store. I think thats 1.6.1

@Indiance you need to use the EAP build of the plugin, you an see more information about it here

@Indiance you need to use the EAP build of the plugin, you an see more information about it here

Yup this works

Hi! I've tried to add a link, but nothing changed!
I've got this problem:
Error while updating presence
java.lang.RuntimeException: java.net.SocketException: Connection refused
at com.jagrosh.discordipc.entities.pipe.Pipe.createPipe(Pipe.java:145)
at com.jagrosh.discordipc.entities.pipe.Pipe.openPipe(Pipe.java:59)
at com.jagrosh.discordipc.IPCClient.connect(IPCClient.java:118)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.connection.DiscordIpcConnection.connect(DiscordIpcConnection.kt:55)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RpcService$update$1.invokeSuspend(RpcService.kt:125)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.net.SocketException: Connection refused
at org.newsclub.net.unix.NativeUnixSocket.connect(Native Method)
at org.newsclub.net.unix.AFUNIXSocketImpl.connect(AFUNIXSocketImpl.java:264)
at org.newsclub.net.unix.AFUNIXSocket.connect(AFUNIXSocket.java:156)
at org.newsclub.net.unix.AFUNIXSocket.connect(AFUNIXSocket.java:125)
at com.jagrosh.discordipc.entities.pipe.UnixPipe.(UnixPipe.java:39)
at com.jagrosh.discordipc.entities.pipe.Pipe.createPipe(Pipe.java:143)
... 10 more

That's a weird one, @XWX-Unknown-XWX. Is the discord client open when this error occurs?

Yep

No, It isn't open
Looks like it is my bad 😣

I thought that issue was fixed, maybe it wasn't. I'll contact Alpaca to see what's happening

I thought that issue was fixed, maybe it wasn't. I'll contact Alpaca to see what's happening

I added the plugin repository and mine's working flawlessly! (Macbook was also bought about a month ago)

That's rly strange, because I did the same thing, and as the result, when my Discord is off, I see this (I bought for about 2 weeks ago, but I don't think this playing smth in this issue):

I've pushed a fix for this out on the weekend, but it hasn't been approved by JetBrains yet. They'll probably get to do that today.

New version has been approved by JetBrains!!! 🥳🥳🥳
Now it works perfect!!! Thanks @Almighty-Alpaca!!!

This is now on stable v1.7.0 🥳


Typo fix in schema-registry/README.md

a small typo in schema-registry/README.md line 57
There are many such typos in the directory /incubator.

/assign @seanknox

/ok-to-test

/lgtm


Support for Unified Alerting

Is your feature request related to a problem? Please describe.
Currently we use a prometheus-operator operated AlertManager and are looking to replace it with Grafana's built-in AlertManager. This would reduce overhead and allow us to enjoy all the nice UI features of Unified Alerting.
Describe the solution you'd like
There should be custom resources for all unified alerting types:

Alert Rules (generally we'd use PrometheusRules  for this, but it's a grafana feature and there are some edge-cases where it makes sense to have rules in grafana not prometheus)
Contact Points
Notification Policies
Templates
Mute Timings

Describe alternatives you've considered

Hacking something together to load provisioning files from git into a custom volume using a git sidecar and mangling the grafana-operator Grafana to load them. We currently do this for Datasources and Dashboards and getting rid of this is the main reason for migrating to grafana-operator.
https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/#file-provisioning-using-kubernetes

Both of these options are valid and do work, however it's not really the point of having an operator if I need to do this.
Context

https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/
https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#information

This issue looks like https://github.com/grafana-operator/grafana-operator/issues/911
I have added a bunch of my thoughts in there. @siegenthalerroger we would love to hear your thinking around it. But in short, this isn't an easy feature to add due to the lacking of documentation and unstable API.

Oh @NissesSenap it is the same, sorry. Feel free to close this issue.
@pb82 I'll post this on the other one aswell, but I'm fairly sure only the provisioning API would be necessary and that is stable (now? is that v10 or did that happen inbetween).


config.ini prefix

Elasticsearch version: 1.7.3
Moloch version: 0.14.0
OS name and version: ubuntu 14.04
Provide logs, stack traces and steps to reproduce:

Apr 13 14:29:15 db.c:1560 moloch_db_check(): ERROR - Couldn't load version information, database might be down or out of date.  Run "db/db.pl host:port upgrade"

Hi,
I added the prefix option to the config.ini and the capture doesn't work with the following log.
I inited and wiped the ES data.
config.ini:
prefix=prefix1
These are the indices using
GET _cat/indices?v

I have the Marvel pugin. I can remove if necessary.

need to use ./db.pl --prefix host:port init

Ok, I did it and now I encounter a small issue:

When I ./db.pl --prefix host:port init it doesn't delete the old indices. As you can see, this is the index status after initing with --prefix.

I overcome this with erasing manually all data from ES, and then initing with --prefix. After this, the index stratus is as desired (I guess):

The whole point of --prefix is to have MUTLIPLE Moloch Clusters on a single ES Cluster.  You wouldn't want it to delete anything.  That would be very bad.
You could do a feature request for a db.pl delete command if you want.

Ok thanks!


Added Aaryan.json

What type of PR is this? (check all applicable)

[x] 🚀 Added Details
[x] 🌟 stared the repo
[ ] 🐛 Grammatical Error
[ ] 📝 Documentation Update
[ ] 🚩 Other

@keshavsingh4522 Added my profile for Hacktoberfest 2021


fix the buildNatives usage string

fix the buildNatives usage string

If you would like us to use your actual commit, can you rebase your changes or recreate a new PR?  This file recently got refactored and there are conflicts.  If you would simply like to see it fixed, we can just make the change quickly on our own.  Just let us know, thanks.

Proceeding with making the change on our own.


The timeout and maxRetries are not passed to the Mistral client

Checked other resources

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

Example Code
    this.mistralaiClient = new ChatMistralAI({
      ...
      maxRetries: 1,
    });

and
    const chain = new LLMChain({
      llm: this.mistralaiClient
        .bind({
          timeout: 10 * 1000
        }),
       ...
     });

Error Message and Stack Trace (if applicable)
No response
Description
Despite those configuration the underlying Mistral client will always use its default:

Timeout: 120 seconds
Max retries : 5

Which is really frustrating when it blocks a batch of processing or something else.
Note: I know the documentation speaks about timeout being available for OpenAI, but the typings should prevent prevent having them listed whereas they are not used.
Thank you,
System Info

Thanks for the report!
@bracesproul could you have a look?

@ity-alex I had to patch the underlying library: https://github.com/mistralai/client-js/issues/5#issuecomment-2003801102
But it seems they archived the library in place of a new one. So I advise you to look at it, maybe they have done some improvements 👍


team workspace

Could we support team space? Similar to dify team account, team members are able to edit some workflows together, and everyone can maintain different workflow versions simultaneously.

Great suggestion, we will consider adding this feature for premium users in the future, it may take a while due to the fact that it's only being developed for me at the moment!

We are working on the workspace feature in the dev branch, and will push it to the main branch when it is complete and fully tested. If you want to apply for the beta test, please contact Email<EMAIL_ADDRESS>

The workspace feature is currently supported, and we are in the process of beta testing the feature, so feel free to apply for beta testing for specific reference: #10 and Our Blog

The workspace feature is currently supported, and we are in the process of beta testing the feature, so feel free to apply for beta testing for specific reference: #10 and Our Blog


Add new Admin APIs and methods to the package

New Admin APIs & Methods:

Organizations API
Licenses API
Roles API
Update a Person
Delete a Person

Wrappers for the new endpoints have now been released!  😃


Edit: Skai TV (GR)

Channel ID (required)
SkaiTV.gr
Channel Name
No response
Alternative Names
No response
Network
No response
Owners
Skai Group
Country
No response
Subdivision
No response
City
Piraeus
Broadcast Area
No response
Languages
No response
Categories
general
NSFW
None
Launched
1993-09-21
Closed
No response
Replaced By
AlphaTV.gr
Website
https://www.skai.gr/tv/
Logo
No response
Notes
The channel was initially replaced by Alpha TV in September 1999 but later relaunched in April 2006, replacing Seven TV (formerly known as Seven X).

If the group behind Skai TV is the same as their relaunch, i'll suggest not taking care of the channel replacement, and simply closing Seven TV/Seven X should do the trick.


dev and prod don't work combined or in nested keys

Hi there, thanks for this loader! I've noticed that when i do this
  "__firefox__applications": {
    "gecko": {
      "__dev__id": "dev-extension",
      "__prod__id": "<full extension id>"
    }
  },

__dev__id is not getting substituted correctly in development (and __prod__id doesn't get removed). An alternate formulation like this doesn't work either:
  "__dev____firefox__applications": {
    "gecko": {
      "id": "dev-extension"
    }
  },
  "__prod____firefox__applications": {
    "gecko": {
      "id": "<full extension id>"
    }
  },

Any ideas for how to resolve this problem? I'd like a stable temporary ID for opening devtools by default.

Will look into this.
Never ran into this before.

Bug confirmed.

Fixed

Amazing, thank you!


switch out geocoding engine

From the Google Maps geocoder to something that can be freely re-served. The TOS is kind of obtuse, but their FAQ is pretty explicit:

Please be aware of the usage limits that apply to geocoder requests, and note that use of the geocoder for any purpose other than obtaining locations that will be displayed using the Google Maps APIs is a violation of the Terms of Service.

Looked over a few options and I think mapzen search is probably the best at the moment because it sources OpenAddresses and OSM. OpenAddresses directly references city of Austin's address data, and OSM indirectly does now that we've imported those into OSM.
Other good ones are:

Mapquest or Nominatim (OSM only)
OpenCage (based on various open data sources, but the rate limit is lower than mapzen and it's not clear whether or not they source OpenAddresses)

The only thing that is lost in the switch is that county field is usually going to be blank, but county boundaries are well defined and super easy to look up for a given point.

Sounds like a great idea.
Will definitely need to test how well mapzen interpolates addresses when an an exact match isn't found. A small % of permits are issued for new construction at addresses that don't exist (yet).


Trying to test recipe smith

Description
Will be adding sockets recipe smith
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested?
built release and debug on linux

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[ ]  have added tests that prove my chnages are stable
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

https://github.com/GhostedGaming/Horizon-Community-Edition/blob/4c96ebbb34b5ec3d5638cf194878529b0a629bfa/src/main.rs#L108
@WilliamAnimate  can you take a look at why the function isnt running? also the main in recipe smith was pub but it never got published

https://github.com/GhostedGaming/Horizon-Community-Edition/blob/4c96ebbb34b5ec3d5638cf194878529b0a629bfa/src/main.rs#L108 @WilliamAnimate can you take a look at why the function isnt running?

I'm currently not home, but if nobody else gets to this task, then I'll look into it when i get back.

https://github.com/GhostedGaming/Horizon-Community-Edition/blob/4c96ebbb34b5ec3d5638cf194878529b0a629bfa/src/main.rs#L108 @WilliamAnimate can you take a look at why the function isnt running?

I'm currently not home, but if nobody else gets to this task, then I'll look into it when i get back.

It could just be that I'm being stupid and missing something, but I looked too and to be honest, I'm at a loss here.

https://github.com/GhostedGaming/Horizon-Community-Edition/blob/4c96ebbb34b5ec3d5638cf194878529b0a629bfa/src/main.rs#L108 @WilliamAnimate can you take a look at why the function isnt running?

I'm currently not home, but if nobody else gets to this task, then I'll look into it when i get back.

Yep we are idiots, it's under on_connect instead of main


Return singleton for getKeycloakInstance

Is your feature request related to a problem? Please describe.
We have an apolloClient setup with the setContext approach to add the token on every request to the headers. The problem is, you don't have the possibility to use Hooks in setContext
Describe the solution you'd like
So, my Idea was (and this what I am doing right now, with a fork) is return the same keycloak instance for every getKeycloakInstance call.
Thats basically what it is, it enforces recreation of the instance, if you pass in the  initOptions
let instance
export const getKeycloakInstance = initOptions => {
  if (typeof window === "undefined") {
    return KeycloakStub
  }

  instance = (!initOptions && instance) || new Keycloak(initOptions)
  return instance
}

For the context, this is the apolloClient setup I am using with my fork
const contextLink = setContext((_, context) => {
  const kc = getKeycloakInstance()

  return {
    headers: {
      ...(kc.token ? { Authorization: "Bearer " + kc.token } : {}),
    },
  }
})

export default withApollo(({ initialState }) => {
  const GRAPHQL_URI = initialState
    ? initialState.GRAPHQL_URI
    : process.env.GRAPHQL_URI

  return new ApolloClient({
    link: contextLink.concat(createHttpLink({ uri: GRAPHQL_URI })),
    cache: new InMemoryCache().restore(initialState || { GRAPHQL_URI }),
  })
})

Hi @webdeb ,
Thanks for your feedback, actually that sounds as a great idea.
In the @react-keycloak/web package there's a similar feature (based on the suggested setup) which is described in the README here.
In the @react-keycloak/nextjs package that same solution wouldn't work because the keycloak instance is managed within the module (because of the difference between server- and client-side).
If you'd like to open a PR with the above changes, I'll gladly review it.

I am glad you like the idea, I'll try to find the time to do it, actually we are in a very tight timeline right now, but I've to try, because its not optimal to use the fork.

Maybe you already have some suggestions regarding the above snipped, so we don't have to go through any feedback loops?

Hi @webdeb ,
I just released version 2.0.0-beta.4 of @react-keycloak/nextjs package which contains the updated getKeycloakInstance method.
The implementation is quite similar to the one you proposed but instead of relying on the presence of initOptions uses a dedicated param (recreate) to require a new instance.
The TS signature is as follow
export function getKeycloakInstance(keycloakConfig: KeycloakConfig, recreate: boolean = false
): KeycloakInstance

Notice that recreate is optional and defaults to false.
The method is exported from the main package and should be available as
import { getKeycloakInstance } from '@react-keycloak/nextjs`;

Let me know if this works for you.

Wow, thank you @panz3r
I'll try it out these days, just need to finish some current stuff.

Hi @panz3r
It's working great on the client!
However, on the backend, its not updating the token, as far as I can say.
In my case it's a custom express server, so I guess this is where the problem comes from.

One more info: I am using getKeycloakInstance, I guess, that I just got the cached version.
Maybe I should just use the cookie directly?

Hi @webdeb ,
Thanks for your feedback.
To answer your question, the logic to retrieve the cookies from the request should be implemented and the result passed to the Persistors.Cookies class (see the package README here for more info).
The current implementation of the Persistors.Cookies does not try to set the cookies when running server-side because the Keycloak instance returned is the 'stub' one (so at the moment there's no way to update the tokens server-side).
Could you please check if the cookies are retrieved correctly from the request and forwarded to Persistors.Cookies as expected (with the keys kcToken and kcIdToken)?

Could you please check if the cookies are retrieved correctly from the request and forwarded to Persistors.Cookies as expected (with the keys kcToken and kcIdToken)?

Well, yes. But the stub is created once and the token inside it, is the token of the first user, requests for other users will get the same instance.

Hi @webdeb ,
Thanks for the clear report, this sounds like a major issue, I'll release a fix as soon as possible.
I'll update you when it's released so you can test if the issue is resolved.

@panz3r I am not sure how this could be resolved, since the object is just kept in memory.
Like I said its an express server. So any global object will be available the whole process life-time.
I though about recreating the instance for each request, but anyway race conditions are very possible.
I guess the singleton on the server is not possible

Hi @webdeb ,
Just released a new version of @react-keycloak/nextjs which contains a possible fix for the above issue.
The keycloakStubInstance now is refreshed every time the SSRKeycloakProvider is rendered (that should always be the case on server-side), this can still cause possible token-leakage in some cases but should be better than before.
Let me know if it fixes your issue and if you have any better idea on how to solve the token-leakage issue.

this can still cause possible token-leakage in some cases but should be better than before.
yeah, but its not possible to avoid that leak and it could potentially be a serious security issue.

Imagine you have to call two services on a route, one after the other

you make the request, your token is set globally, you call the fist api with your token
another user comes in, his token is now set globally
you got your result back and you are doing another call (but now its using your another token)

My final solution is to not rely on globals, instead I found a way to access the context where I previously used the getInstance function, and now I am just using the kcToken cookie.

Hi @webdeb ,
Thanks for your feedback and sorry for the late answer.
I added a section dedicated to this feature to @react-keycloak/nextjs docs with reference to the possibile issues.


0.32.3

Codecov Report

Merging #453 into master will decrease coverage by 0.10%.
The diff coverage is 77.04%.

@@            Coverage Diff             @@
##           master     #453      +/-   ##
==========================================
- Coverage   92.75%   92.65%   -0.11%
==========================================
  Files          92       92
  Lines       17784    17879      +95
==========================================
+ Hits        16495    16565      +70
- Misses       1289     1314      +25

Impacted Files
Coverage Δ

src/lib/runner.rs
81.94% <38.46%> (-4.37%)
:arrow_down:

src/lib/runner_test.rs
91.00% <94.66%> (+0.10%)
:arrow_up:

src/lib/descriptor/makefiles/mod_test.rs
98.12% <100.00%> (+0.01%)
:arrow_up:

src/lib/types.rs
85.46% <100.00%> (+0.02%)
:arrow_up:

src/lib/types_test.rs
95.86% <100.00%> (+<0.01%)
:arrow_up:

src/lib/environment/crateinfo.rs
84.30% <0.00%> (-0.59%)
:arrow_down:

src/lib/descriptor/mod.rs
86.26% <0.00%> (-0.26%)
:arrow_down:

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 9a7b0a8...c98ac54. Read the comment docs.


DHPC Bug: ISC DHCP ipv4 and ipv6 Can't work on LAN Bridge

DHPC Bug: ISC DHCP v4 and v6 Can't work on LAN Bridge.
But new KEA DHCP Works.How?

My professional opinion: https://www.youtube.com/watch?v=k6KfhOpq2n8
As far as ISC goes it's EoL and nobody will fix it. And given the fact that Kea works I'd say you have all you need to implement it.
Cheers,
Franco

My professional opinion: https://www.youtube.com/watch?v=k6KfhOpq2n8
As far as ISC goes it's EoL and nobody will fix it. And given the fact that Kea works I'd say you have all you need to implement it.
Cheers, Franco

I saw it in documents.But IPv6 DHCP working or not?

Can you clarify your question? DHCPv6 for ISC or Kea?

Can you clarify your question? DHCPv6 for ISC or Kea?

ISC.I didn't see kea support ipv6.

Yes, ISC DHCPv6 is integrated and works fine.

Yes, ISC DHCPv6 is integrated and works fine.

good.thx.

Yes, ISC DHCPv6 is integrated and works fine.

fk,If ISC DHCP v6 enabled,KEA DHCPv4 will stop work.

Maybe it’s missing the link local setting on the bridge?

Maybe it’s missing the link local setting on the bridge?

LL set on bridge.Using Radvd working now.


More straightforward and accessible way to add custom recipes

Is your feature request related to a problem? Please describe.
More straightforward and accessible way to add custom recipes. The use case is https://mods.factorio.com/mod/ZRecipeRandomizer, but also any other games where this would be useful.
Describe the solution you'd like
Possibly some way to neatly import an easily customizeable set of recipes. Also a small tutorial on what the data used by the project represents.
Describe alternatives you've considered
The alternative is to go dig through the code, which I'm willing to do myself but is obviously not for everyone.
Additional context
None.

I assume you don't need to ever add items for your use case? The most difficult aspect of this would be adding icons, but recipes can inherit icons from existing items.

Yeah, for my case specifically thankfully icons are already there, but in general it would be a good idea also to just add some placeholder icons for newly added items and then let to change them later.


delete binary records via sql problem

Hi , i have an issue with the binary records  .
when i create or read a binary record everything is ok . but when i want to delete some binary record from console or studio i achieve nothing to happended .
My Scenario is :
ODB : 2.1.11,

Create Class BlobStorage.
Create some Binary records .(154 binary record was created in my case)
Select From BlobStorage returns nothing (i recommend return size and rid of binary records ) .
Delete From BlobStorage return 0 (also i tried with Delete From Cluster:blobstorage) .
Truncate Class BlobStorage returns 154 (it's ok and works true)
Is there any way to delete binary records ?

Hi @saeedtabrizi,
You shouldn't use the class for create blob, try to use directly clusters instead:
create cluster BlobStorage

select from cluster:BlobStorage

delete from cluster:BlobStorage

Hi @tglman ,  many thanks  for your reply .
i'd test it too  as i said.
delete from cluster not working and returns 0 record affected after execute in studio .
i think there is a bug in this case or missing documentation for working binary records .

Is there any idea ?
I'd test it by 2.1.11 , the delete from cluster:BlobStorage not working on binary records .
how can i delete binary records that stored in a cluster ?

Hi @saeedtabrizi
I'm checking it. There must be a bug somewhere in the DELETE command.
In the meantime, did you try to simply do
delete from #15:7

Thanks
Luigi

Hi @luigidellaquila
thanks  for reply . i tried delete from #15:7 but not working in 2.1.11 yet .
only truncate record  command works true in deleting BinaryRecords .
I have an opinion for select from Binary Record in Select Command .
**it's better select from blobstorage returns record id and record bytes size for binary records . now select from blobstorage (binary records) returns nothing **
Thanks alot .

Hi @saeedtabrizi
We fixed this, the fix will be released with 2.1.14 and 2.2
Thanks
Luigi

@luigidellaquila
I'd tested it now in 2.1.15
when i was try to delete via delete from 15:0  command everything works well :+1:
but when i was trying to delete record from a select that contains a linked field that contains row id of my blobs , delete not working yet :
delete from (select Blob from FileItem)
also when i try to write another kind query does not working and returns error
delete from cluster:BlobStorage where @rid in (select Blob from FileItem)
returns :
java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.ORecordBytes cannot be cast to com.orientechnologies.orient.core.record.impl.ODocument
for clearing what was happened i tried to run select @rid from cluster:BlobStorage   that returns nothing but when i run select  from cluster:BlobStorage  returns a binary record that have @ rid and @ version and a base64 encoded string field . i'm wondered now . is it a new bug ?
how can i delete binary record via a nested select where query ?
please help me to write a true delete statement .
at the last  :
Actually i have an opinion for select from Binary Record in Select Command .
*it's better select from blobstorage returns record id and record bytes size for binary records . now select from blobstorage (binary records) returns nothing *
thnaks

Hi @saeedtabrizi
It seems to be another kind of problem.
I'm reopening this issue and assigning it to @tglman for a check, we will give you an answer asap
Thanks
Luigi

hi,
all this cases should be fixed in the 2.1.20, closing
Regards.


Not able to change name and description for Wyre account

Not able to change name and description for Wyre account

Verified this issue on dev app v1.4.2(201)

Verified this issue on dev app v1.4.2(201)


Documentation updates for linfa-bayes, kernel, main

This pull request wraps the previous PR's documentation updates for several sub-crates within linfa, as well as the generated docs in the main lib itself. If there are any additional changes you'd like to see, just let me know!

The other changes you mentioned all make sense, although as mentioned, I'm not exactly sure what I should change re: the Array/ArrayView type definition. Any ideas on what phrasing might make sense there?

@Sauro98 I believe that your comments should be addressed in the most recent commit. Let me know if you catch anything else!


[bug report] empty data prompt set by cascade component does not take effect: slot = empty '

Element UI version
2.14.1
OS/Browsers version
谷歌
Vue version
2.6.12
Reproduction Link
https://github.com/PanJiaChen/vue-element-admin
Steps to reproduce
234234234
What is Expected?
21312313
What is actually happening?
13123123

Duplicate of #20612

Duplicate of #20612


Redirect Codec page

This PR adds a redirect from a previous location of the scale codec doc to the new one. Specifically it adds a redirect from substrate.dev/docs/en/conceptual/core/codec to substrate.dev/docs/en/knowledgebase/advanced/codec.
There are several weaknesses of this approach to redirects.

It requires creating a file in our directory for each old location that we want to redirect.
It does not redirect the other old location for this doc `substrate.dev/docs/en/next/conceptual/core/codec

If it is possible it would be preferable to implement the redirect at the DNS / cloudflare level. cc @lovelaced

@shawntabrizi suggested another alternative implementation would be to add javascript to our 404 page that detects these old urls and redirects to the correct location based on a hard-coded mapping.
ref https://github.com/substrate-developer-hub/substrate-developer-hub.github.io/issues/556

Closing in favor of #569 which takes Shawn's approach

Should we close this one, Joshy?


Broken link when browsing a Blog post from blog feed

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

go to near.org/bosblog ,
then click on a blog link like "This is the title of a demo blog post"
when the blog post is loaded, try the “Back to All Posts” link
link is broken, pointing to https://near.org/undefined

Expected behavior
Link should be valid and User should be able to go back to the /bosblog feed page.
Desktop (please complete the following information):

OS: macOS
Browser Firefox
Version 125.0.2

note: discussed with @jackson-harris-iii on Slack


Is there support for url-links on text

Hi is there support for url-links on text

See:

https://github.com/Hopding/pdf-lib/issues/957
https://github.com/Hopding/pdf-lib/issues/867
https://github.com/Hopding/pdf-lib/issues/555#issuecomment-670241308

In case anyone needs it in the future,
This is how you remove all links from a pdf:
pdf.getPages().forEach((p) => {
    p.node.Annots()?.asArray().forEach((a) => {
        pdf.context.delete(a)
    })
})


Proof of possession for a "real" certificate, not self signed

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

ID: 90f2e322-a9a1-8887-58ce-324eab7661d2
Version Independent ID: 20974d4d-f6d8-9ba5-9985-e8f803e9a36f
Content: Tutorial for X.509 security in Azure IoT Hub
Content Source: articles/iot-hub/iot-hub-security-x509-get-started.md
Service: iot-hub
GitHub Login: @wesmc7777
Microsoft Alias: wesmc

How does one create a Proof of Possession given a certificate from a customer.  One that is not self-signed, but provide by a CA.

@dblaszyk Can you give me the document which you are referring to?

The docs overall work against a dev/test environment, we are trying to accomplish against a production environment, with certificates provided to us by the customer.
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-security-x509-get-started#createcerts
From: jakaruna-MSFT<EMAIL_ADDRESS>Sent: Friday, April 5, 2019 8:38 AM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: David Blaszyk<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Proof of possession for a "real" certificate, not self signed (#28844)
@dblaszykhttps://github.com/dblaszyk Can you give me the document which you are referring to?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/28844#issuecomment-480260129, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYIUzSQbO_QvRWT4dC7pgFdTQdE9uFjIks5vd0PCgaJpZM4cez26.

In particular, here is a direct reference:
Now, you need to sign this Verification Code with the private key associate with your X.509 CA certificate, which generates a signature. There are tools available to perform this signing process, for example, OpenSSL. This is known as the Proof of possessionhttps://tools.ietf.org/html/rfc5280#section-3.1. Step 3 in Managing test CA certificates for samples and tutorialshttps://github.com/Azure/azure-iot-sdk-c/blob/master/tools/CACertificates/CACertificateOverview.md generates a verification code.
Describes the process, but not the steps to create the verification certificate.  Prefer this to be done end-to-end using ‘openssl’
From: jakaruna-MSFT<EMAIL_ADDRESS>Sent: Friday, April 5, 2019 8:38 AM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: David Blaszyk<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Proof of possession for a "real" certificate, not self signed (#28844)
@dblaszykhttps://github.com/dblaszyk Can you give me the document which you are referring to?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/28844#issuecomment-480260129, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYIUzSQbO_QvRWT4dC7pgFdTQdE9uFjIks5vd0PCgaJpZM4cez26.

Hello @dblaszyk ,
You can leverage the powershell script "ca-certs.ps1" function "New-CACertsVerificationCert" - see here.
Or Bash "certGen.sh" with function "generate_verification_certificate()" see here.
Like stated here, when productizing against CA Certificates, you'll need to use your own security best practices for certification creation and lifetime management.
Nevertheless I am adding the content author @wesmc7777 to evaluate your feedback and update the document as appropriate.
Thank you!

It is more involved than that, if this is the recommended approach, then one would also need to modify the supplied .cnf files, and understand how to best generate the intermediate certificates.
As far as using my own Security best practices, I am hoping that Microsoft could provide some gentle direction.
From: António Sérgio Azevedo<EMAIL_ADDRESS>Sent: Monday, April 8, 2019 6:02 AM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: David Blaszyk<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Proof of possession for a "real" certificate, not self signed (#28844)
Hello @dblaszykhttps://github.com/dblaszyk ,
You can leverage the powershell script "ca-certs.ps1" function "New-CACertsVerificationCert" - see herehttps://github.com/Azure/azure-iot-sdk-c/blob/master/tools/CACertificates/ca-certs.ps1#L183.
Or Bash "certGen.sh" with function "generate_verification_certificate()" see herehttps://github.com/Azure/azure-iot-sdk-c/blob/master/tools/CACertificates/certGen.sh#L317.
Like stated herehttps://github.com/Azure/azure-iot-sdk-c/blob/master/tools/CACertificates/CACertificateOverview.md, when productizing against CA Certificates, you'll need to use your own security best practices for certification creation and lifetime management.
Nevertheless I am adding the content author @wesmc7777https://github.com/wesmc7777 to evaluate your feedback and update the document as appropriate.
Thank you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/28844#issuecomment-480767793, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYIUzbL1x_CHStyWiYGgXrJtGwDcvQOPks5vexOagaJpZM4cez26.

@dblaszyk we didn't see a request from you on our internal DL nor on an Azure Support Ticket. I will close this for now, though please @me if you want to reopen it and\or your issue was solved and you can share how it was solved with others. Thank you!


2023 pscis phase 1 submission

first half from sern_lchl_necr_fran_2023

hmm. guessing you missed the amalgamated output here
https://github.com/NewGraphEnvironment/fish_passage_fraser_2023_reporting/blob/main/data/imports_extracted/pscis_export_submission.csv built from this script?
I shouldn't have committed all at the same time. those individual exports were just backups vs the actual extracted_data . oh well.

i may be misunderstanding. I'll pull and look

Nope.  looks like the backup file was used to get to the pscis file with maybe no QGIS trace
So. I guess next time - best way to go is to:

fix comments in QGIS
rerun the script that produces the backups and the export
use the export to copy paste into pscis (should have been in inputs_extracted vs imports_extracted (not sure where I got that name from lol)

not sure the best way forward. 10 ways to kill a cat. Please let me know via slack if you pick this up again though. I'll do the same


Why I cannot import the Keras sub function?

I was trying to use the import "sequential" , "dense" and "LSTM function from Keras. but it return that I have an Module found error that "no module named "Tensor flow"".
I already installed keras 2.3.1 and I also saw "Keras 2.3.1" , "Keras-Applications 1.0.8" and "Keras-Preprocesing 1.1.0" form my project interpreter

I thought may be I need to install tensor flow in order to use Keras, but when I try to pip install tensorflow. it return no matching distribution found for tensor flow

I have been tried different approaches but still not able to use the Keras function. great if anyone could help. Thanks

Hi @kk0186
Please try pip install tensorflow-gpu or tensorflow-cpu.

@dronefreak .Thank you very much, I have tried both pip install tensorflow-gpu and tensorflow-cpu but both return the same message : " Could not find a version that satisfies the requirement [tensorflow-cpu /tensorflow-gpu]. No matching distribution found for [tensorflow-gpu/tensorflow-cpu]

Hi @kk0186
What is your environment configuration? Like python version, anaconda usage etc.
Could you also try doing :-
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl
or
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl

@dronefreak . Thank you very much again, when I used your pip provided above, I received 2 red line message. the first one is "error: [WinError 2] The system cannot find the file specified ----  Failed building wheel for grpcio" and another one is "Command "C:\Users\user\PycharmProjects\untitled\venv\Scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\user\AppData\Local\Temp\pip-install-wx019d54\grpcio\setup.py';f=getattr(to
kenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\user\AppData\Local\Temp\pip-record-6okroi_g\install-record.txt --
single-version-externally-managed --compile --install-headers C:\Users\user\PycharmProjects\untitled\venv\include\site\python3.8\grpcio" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-instal
l-wx019d54\grpcio" .
I saw your https link is mac? coz I am not using mac computer, is that the reason I got those error message.
My pycharm version is Pycharm 2019.3.4 and I was using venv python 3.8. I didn't use anaconda since I cannot install pandas_datareader in there .

Thank you very much for your help!

and I have also tried below which is for window and python 3.8.
pip install https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl
and
pip install https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.2.0-cp38-cp38-win_amd64.whl
both return error message of " tensorflow_cpu-2.2.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform."

This looks like a grcpio error. Could you please try reinstalling this lib on Windows again using pip install grpcio==1.11.0?
I am not sure which version you are using, but this version might help. After this lib is installed, try TF installations one more time.

@dronefreak. appreciate for your quick response. I have tried the pip install grpcio==1.11.0, but I still got error of "Failed building wheel for grpcio" while its running and at the end got an error message of "Command "C:\Users\user\PycharmProjects\untitled\venv\Scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\user\AppData\Local\Temp\pip-install-_apayv0h\grpcio\setup.py';f=getattr(to
kenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\user\AppData\Local\Temp\pip-record-pbfjeylb\install-record.txt --
single-version-externally-managed --compile --install-headers C:\Users\user\PycharmProjects\untitled\venv\include\site\python3.8\grpcio" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-instal
l-_apayv0h\grpcio"
I tried to install the TF again anyway, but still got the same error msg as before

and I also got some message  while its trying to install grpycio
" commands.CommandError: Diagnostics found a compilation environment issue:
Could not find <Python.h>. This could mean the following:
* You're on Ubuntu and haven't run apt-get install python-dev.

It is probably an older version of pip then. Would you mind checking your pip version, and upgrading it if it is too old? Try pip install --upgrade pip

TBH, I have previously worked with PyCharm, and I found that sometimes there can be configuration/environmental issues with that IDE. Ever since, I prefer writing code using Sublime Text or any other editor and running it from the terminal with local installation of python libraries.
Using a Conda environment or virtual environment, might be of more assistance, as you can have multiple libraries installed and configured for every different environment.

@dronefreak, Thank you very much, I downgraded my python, I upgraded my pip. It still give me the same result. It is very frustrated since I dedicated more time into installing packages and modules than writing code in pycharm... I guess I should reinstall the whole program.
Since I would like to learn while writing the AI code, do you have any suggestion which plattform  (Spyder, pycharm...) is more user friendly on writing python coding? Is there any the best  installation tutorial video that I could follow the installation step by step in order to prevent the problem of installing packaging and module again? Thanks for your sharing and appreciate for your help

Hi @kk0186
I would now like to recommend a fresh installation of all libraries, including Python 3.6.7
If you would like to take my advice, I would suggest to not resort to PyCharm or Spyder or any other IDEs for that matter. I am not disregarding the convenience they provide to new users, but personally I just like to play with the environment as a whole, and I do not use any IDE. Sublime Text as editor and Linux terminal does the remaining. It would be Windows terminal in your case.
As far as tutorials go, https://towardsdatascience.com/installing-tensorflow-with-cuda-cudnn-and-gpu-support-on-windows-10-60693e46e781, this could be one starting point. You can resolve errors in the process, by referring to the TF's official documentation of commonly encountered errors.

@kk0186
Moving this issue to closed status as there has been no activity, in case you still face the error please create a new issue.


bug(Timepicker): With changing the time, date is changing too

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
In FormControl, when the time changes, the date also changes
Reproduction
StackBlitz link: https://stackblitz.com/edit/czbajk-h7xm7v?file=src%2Fexample%2Ftimepicker-datepicker-integration-example.ts
Steps to reproduce:

Add FormControl
Add DatePicker and TimePicker
Change Date
Change Time
See formControl value and value in DatePicker

Expected Behavior
Change only time in value
Actual Behavior
Change date
Environment

Angular: latest
CDK/Material: latest
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows

Are you referring to the date object being replaced?

I expected DatePicker to change only date and TimePicker to change only time as implemented in your example using ngModel (https://rc.material.angular.io/components/timepicker/overview#timepicker-datepicker-integration).

Are you referring to the date object being replaced?

I expected DatePicker to change only date and TimePicker to change only time as implemented in your example using ngModel (https://rc.material.angular.io/components/timepicker/overview#timepicker-datepicker-integration).

Are you referring to the date object being replaced?

I expected DatePicker to change only date and TimePicker to change only time as implemented in your example using ngModel (https://rc.material.angular.io/components/timepicker/overview#timepicker-datepicker-integration).

Ah okay now I see. This is an issue with FormControl, our demo works because it's using ngModel. Closing as a duplicate of https://github.com/angular/angular/issues/58522.


iv - togglable overlay of the display & data windows

Add a toggleable visual overlay to outline the location of the
display window, and/or the data window. (I can suggest color for these
to match other apps).  By default, only show the display window, but
should a dotted-line outside the display window, for the data window,
demonstrating what additional pixels are available.

Coalescing

PR created here: https://github.com/AcademySoftwareFoundation/OpenImageIO/pull/4443


DataType and DAta values Issues

Hi,
I noticed below issues in entity graph ql

When the data is null in the source, the column is not returned in the query result
-When source column type is Bit(1 or 0),  the column values are returned  true or false in graphql

Is this expected behaviour? How do we fix this, if not?

Can you expand on the first point about null ? This is likely how the JSON serialiser is handling it.
Bit again is likely the JSON serialiser. You can register a custom type converter with this library to return a number (assume you want that) - this gives an example - https://entitygraphql.github.io/docs/serialization-naming/newtonsoft-json/
Or you could likely do similar with the JOSN serialiser.

Ok Thanks,
I would like to get detailed info on implementing the fix that you suggested.
My application is a simple .net core using entitygraphql library. I have my code in startup.cs in ConfigureServices(0 methd
services.AddHttpContextAccessor();
// Register MediaDBContext with IHttpContextAccessor
services.AddDbContext((serviceProvider, options) =>
{
var httpContextAccessor = serviceProvider.GetRequiredService();
var connection = new SqlConnection(GetConnectionString(httpContextAccessor));
  var creds = new Azure.Identity.DefaultAzureCredential();
  var token = creds.GetToken(new Azure.Core.TokenRequestContext(new[] { "https://database.windows.net/.default" }));
  connection.AccessToken = token.Token;

  options.UseSqlServer(connection);

});
services.AddGraphQLSchema(provider =>
{
provider.OnFieldCreated = (field) =>
{
if (field.ReturnType.IsList && field.ReturnType.SchemaType.GqlType == GqlTypes.QueryObject && !field.FromType.IsInterface)
{
field.UseFilter().UseSort().UseOffsetPaging(defaultPageSize: DefaultPageSize, maxPageSize: MaxPages);
}
};
});
I  am not having any other custom classes to implement any variations. I have MediaDBContext file and all other model files.
I am not sure where this fix that you propsed for jsonconvert will be fitting, How I can change my current code, where will this new code goes in?
services.AddHttpContextAccessor();
// Register MediaDBContext with IHttpContextAccessor
services.AddDbContext((serviceProvider, options) =>
{
var httpContextAccessor = serviceProvider.GetRequiredService();
var connection = new SqlConnection(GetConnectionString(httpContextAccessor));
  var creds = new Azure.Identity.DefaultAzureCredential();
  var token = creds.GetToken(new Azure.Core.TokenRequestContext(new[] { "https://database.windows.net/.default" }));
  connection.AccessToken = token.Token;

  options.UseSqlServer(connection);

});
services.AddGraphQLSchema(provider =>
{
provider.OnFieldCreated = (field) =>
{
if (field.ReturnType.IsList && field.ReturnType.SchemaType.GqlType == GqlTypes.QueryObject && !field.FromType.IsInterface)
{
field.UseFilter().UseSort().UseOffsetPaging(defaultPageSize: DefaultPageSize, maxPageSize: MaxPages);
}
};
});

Can you expand on the first point about null ? This is likely how the JSON serialiser is handling it.
When the source value contains null for a specific column, when I query the table for n number of columns, it returns only the columns which do not contain null values, It doesnt even show that column name in the output for those null values

I have implemented the custom controller as in doc and added JSON options to configureservices() mehod. But Still it is not working.

I suspect this is something RuntimeTypeJsonConverter is doing (excluding nulls).
Can you show your custom controller implementation?

Have you changed the DefaultIgnoreCondition? https://learn.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializeroptions.defaultignorecondition?view=net-5.0

5.4.3 fixed the null issue described here. The serialisation of Bit will be up to the json serialisation library.


codecrumbs with -i ide feature

Finally go to trying this out last Friday and the navigation in vscode using -i code didnt work.
I notice today you have removed this '-i code' documenation in last few days.
This is no longer a feature?

Just tried it with Webstorm it isn't navigating either.
Maybe its my OS  I am on Windows 10.

Hi, feature is working, just need to improve on it; did you make changes to launch webstorm? Here https://www.jetbrains.com/help/webstorm/working-with-the-ide-features-from-command-line.html; so idea is to expose that command first and then put it to CLI -i param. For webstorm it’s working (I use it), for VS Code I hadn’t tried.

Oops, no I didn't do the webstorm setup, I'll try it.
But setting '-i code' as parameter to starting codecrumbs did not appear to work with vscode.
And code works from console on my box, i will look a bit further.

I have now setup webstorm to be in my path and webstorm README.md at my console starts it with a file.
However clicking on trail steps does not cause webstorm to navigate to file.
I'll run this up at home and see if i can get more information later in week I hope.

Alt+click?
So sort of having i working now though still have a problem on windows I believe.
I have WebStorm 2019.2 installed and configured to start from console by webstorm.
The following works fine from a console webstorm --line 2 README.md
This is an example project I setup to test this at home.

When I alt-Click on a file name it loads or switches to it in WebStorm correctly.
When I alt-Click for example on the first trail "the setup" I get the following error displayed by WebStorm.

Did a bit of testing with vscode using -i code navigating to files works ok.
But alt-click navigating to trails opens a new code window without loading a file
The syntax to load a file at line for code appears to be code -g src\App.tsx:3

Hey @rluiten how do you run codecrumbs command initially? I can see '.\src', seems like '.' mess with path, can you try without that?

I launch it with this in package.json
    "crumbsdm": "codecrumbs -d src -e src/index.tsx -n cra03-test -D",

Possibly some path resolver in nodejs on windows behaves differently ?


Fix broken link in the wiki

Notes from review meeting: 2022-07-28
Fix broken link in section 5. of the wiki (current version at time of logging: f22c42d). When closing this issue, ref the version of the wiki where it's fixed.
Broken link: https://latimer-core.wiki.opencura.com/

The Wikibase instance recently moved to Wikimedia infrastructure:
https://latimer-core.wikibase.cloud/

There are still a few issues with the move (old links should eventually redirect to the new location), and the search functionality might be running in a degraded mode.

@essvee do I need to change anything?

Aha! Thanks @mtrekels, no worries I'll update the docs w the new address 🐙 💻

Fixed in revision 4d4c02b


Invalid linux-mainline_5.10.%.bbappend

Current hardknott branch (and I guess master as well) breaks our yocto builds with the following error:
ERROR: No recipes in default available for:
.../sta_phycore/sources/poky/../meta-phytec/recipes-kernel/linux/linux-mainline_5.10.%.bbappend

This commit e12aff1c615a8e90cae0cb347ef2eef2fcfeac21 introduced linux-mainline_5.10.%.bbappend.
I did a search and could not find any linux-mainline_5.10.*.bb file. Is it supposed to be in another layer that we are missing?

Issue should be fixed now. We include a robot layer for nightly builds: https://github.com/phytec/meta-fresh
meta-fresh gets the kernel updates earlier. We do not have a release on hardknott yet, so the build without meta-fresh has not been triggered. Thats why the build error was not catched by us yet.

I confirm this is fixed. Thanks!


Fix browser performance issues with configurable maximum variable size

Based on @bquorning's comment on #334, this will allow the user to set a maximum payload size for variable.inspect, above which the variable is filtered out of the error page. This solves many performance problems associated with the browser being slow to render error pages, the CPU requirements for the error page skyrocketing etc.
Many variable types end up being huge like Rails collections being inspected (and therefore queried for) before they are paginated. I've set the default to 100,000 characters, but the default can be modified to unlimited by setting BetterErrors.maximum_variable_inspect_size to nil, if we think compatibility is more important than a friendly default.
Keen to work to get this PR merged, there should be test coverage and documentation but feedback is appreciated!

Hmm Travis seems unhappy for reasons unrelated to this PR...

The Gemfile needs to lock "rake" down to "0.9.6" (or something in that series). Or the Rakefile needs to be updated to work with newer versions of rake.

OK, have cleaned up the changeset to remove my gem forking stuff, version number and gemspec should be unaffected by this pull request.

I have implemented suggested changes (great feedback btw) and retested manually with and without binding_of_caller installed. I suspect @nirvdrum's suggestion is for fixing CI? I've left it out of this branch for now, can add [ci skip] to future commits if you want me to stop hammering Travis accidentally :sunglasses:

I’ve opened #364 and #365 as two approaches for fixing the Travis build.

Works for me, thank you !

Hey @tobypinder, master is green again.

The project has been converted to RSpec 3's "expectation" syntax, so the specs need a slight rewording.
If you're not familiar with the new syntax, you can use transpec to perform the conversion for you.

@RobinDaugherty Happy to take a look at these within the next day or so.

I changed the RSpec syntax and addressed the other PR comments as well – and rebased on master. Pushed the changes to a branch on my fork: https://github.com/charliesome/better_errors/compare/master...bquorning:quieter_output
Let me know if I should open a new pull request.

@bquorning Looks great, sorry I couldn't get around to it!

@tobypinder Would you update this PR with my commits (see below), or should I open a new pull request?

@bquorning probably better for you to open a new PR if that's easier? Happy to close this one.

probably better for you to open a new PR

It’s at #402. This one should automatically be closes when 402 is merged.


Trying to run sample Speech to text code

Speech recognition with microphone input.
Speech recognition in the specified language.
Speech recognition using customized model.
Speech continuous recognition using events with file.
Speech recognition with audio stream.
Speech recognition with keyword spotting.
Translation with microphone input.
Translation with file input.
Translation with audio stream.
A. Intent recognition with microphone.
B. Intent recognition with language.
C. Intent continuous recognition using events with file.
D. Speech continuous recognition using events with a PushStream.
E. Speech continuous recognition using events with file and Phrase List.
Your choice (0: Stop): 1

Say something...
CANCELLED: Reason=Error
CANCELED: ErrorCode=RuntimeError
CANCELED: ErrorDetails=0x15 (SPXERR_MIC_ERROR)
[CALL STACK BEGIN]
3   libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e6e8b5b CreateModuleObject + 779307
4   libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e6ea880 CreateModuleObject + 786768
5   libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e64016d CreateModuleObject + 88637
6   libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e63e673 CreateModuleObject + 81731
7   libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e63dfd2 CreateModuleObject + 80034
8   libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e65218b CreateModuleObject + 162395
9   libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e6ad5e6 CreateModuleObject + 536246
10  libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e6ad350 CreateModuleObject + 535584
11  libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e6adb48 CreateModuleObject + 537624
12  libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000011e6afba8 CreateModuleObject + 545912
13  libsystem_pthread.dylib             0x00007fff7eb1d2eb _pthread_body + 126
14  libsystem_pthread.dylib             0x00007fff7eb20249 _pthread_start + 66
15  libsystem_pthread.dylib             0x00007fff7eb1c40d thread_start + 13
[CALL STACK END]
CANCELED: Did you update the subscription info?
Recognition done. Your choice (0: Stop):
Can someone shed some light on this please?

Hi @asurjit79 - do you have a microphone connected to your Mac?
Could you try whether recognition from file works for you?
(For example, menu option 4, but please make sure to update to subscription key, region, and filename, cf. here -- https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechRecognitionSamples.java#L155-L159)

Sure @mabasile-MSFT. I tried with option 4 and I am still getting the below exception
Your choice (0: Stop): 4
Unexpected java.lang.RuntimeException: Exception with an error code: 0x8 (SPXERR_FILE_OPEN_FAILED)
[CALL STACK BEGIN]
3   libMicrosoft.CognitiveServices.Speech.core.dylib 0x00000001053f1078 CreateModuleObject + 792904
4   libMicrosoft.CognitiveServices.Speech.core.dylib 0x00000001053ee963 CreateModuleObject + 782899
5   libMicrosoft.CognitiveServices.Speech.core.dylib 0x00000001053eefd5 CreateModuleObject + 784549
6   libMicrosoft.CognitiveServices.Speech.core.dylib 0x000000010533e3eb CreateModuleObject + 60603
SpeechConfig config = SpeechConfig.fromSubscription("xxxxxxxxx", "westus");
AudioConfig audioInput = AudioConfig.fromWavFileInput("/cognitive-services-speech-sdk/resources/YourAudioFile.wav");
I tried multiple different locations -
/cognitive-services-speech-sdk/resources/YourAudioFile.wav
./resources/YourAudioFile.wav
YourAudioFile.wav
But the error is still the same.

Hey @asurjit79  - you'll need to update YourAudioFile.wav to an audio file on your disk (WAV, single channel, 16-bit samples). For example, if you've downloaded all of the samples, you should find this .wav file: samples/csharp/sharedcontent/console/whatstheweatherlike.wav Can you try using this path (as an absolute path)?

Hmmm...the error is gone after giving the absolute path from the file system. I put the .wav file under resources folder as part of my project but it seems to be looking for local file system path :)
Able to move to next error but thanks for your help!

Closing as issues seems resolved, let us know if there is more information needed.

Hola, la solución también puede ser el codec, el error me salia debido a que enviaba un archivo convetido de formato MP4 a wav utilizando un codec no soportado por Speech to text, convertí el archivo utilizando el codec pcm_s16le y funcionó. Eso de la ruta absoluta no es necesariamente el problema, yo utilizo rutas relativas y funciona.      Hello, the solution may be the codec, the error was because when I sent a converted file from mp4 format to wav using a codec not supported by Azure Speech to text. The solution was converted the file using the pcm_s16le codec with the following parameters:
// Audio Attributes
AudioAttributes audio = new AudioAttributes();
audio.setCodec("pcm_s16le");
audio.setBitRate(256000);
audio.setChannels(1);
audio.setSamplingRate(16000);
and it worked. The absolute path is not necessarily the problem, in a Spring web app I use relative routes and it work fine.
You will use a online converter with support ffmpeg to test it.

This issue is closed but if anyone else is facing this issue, the right way to this in Java with maven is to resolve the file path dynamically like so:
Assume you have a file called audio.way in your src/main/resources folder.
Build the project using standard maven command and then use this snippet to
// Get the file path
URL resource = FileVoiceRecognition.class.getResource("/audio.wav");
File file = Paths.get(resource.toURI()).toFile();
String absolutePath = file.getAbsolutePath();

// now init AudiConfig
AudioConfig audioConfig = AudioConfig.fromWavFileInput(absolutePath);

// and pass the audioConfig to SpeechRecognizer
SpeechRecognizer reco = new SpeechRecognizer(config, audioConfig);


Allow user to pass arguments via bazel run

Multirun gets spawned by a generated bash wrapper like this:
exec ./'../rules_multirun~0.7.0/internal/multirun' -f 'tools/format/format.json' "$@"
Currently the multirun executable assumes the last argv is the instructions:
https://github.com/keith/rules_multirun/blob/main/internal/multirun.py#L112
This means if the user passes an argument, say from rules_lint they want to format only one file:
% bazel run format lint.sh

it fails:
  File "/private/var/tmp/_bazel_alexeagle/3eecd93732ac7c6f4f360a54a468da50/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/tools/format/format.bash.runfiles/_main/../rules_multirun~0.7.0/internal/multirun.py", line 91, in <module>
    _main(sys.argv[-1])
  File "/private/var/tmp/_bazel_alexeagle/3eecd93732ac7c6f4f360a54a468da50/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/tools/format/format.bash.runfiles/_main/../rules_multirun~0.7.0/internal/multirun.py", line 73, in _main
    with open(path) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'lint.sh'

In my case, the behavior I had prior to adopting rules_multirun was that the aggregator binary passed the argv to each of the binaries it wraps, so that's what I would want to do here.

hrm I actually removed that "$@" in https://github.com/keith/rules_multirun/commit/e7d1d13e52c086586d593d215518509bfb613dfa#diff-50b072d077ec6196a13e98aec4bd258a68b30d4128ee3b6e79aa51e196e1c3b3L116, I think because I thought it wasn't doing anything, so I can add it back and fix this with this I think, can you test it?
https://github.com/keith/rules_multirun/pull/45

Thanks - in my case that's not enough, because I want to pass the args to the underlying binary that gets spawned. I think in that commit they still get dropped on the floor.

+1, in atlassian/bazel-tools implementation of multirun arguments of bazel run is passed to every command.

ah ok, def happy to take a PR to fix

https://github.com/keith/rules_multirun/pull/48 it works

Nice! Thank you!

thanks!


feat: Move copy sshd step into LLB construction instead of base image dockerfile

Description

Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

fixed by #941


Roll third_party/gpgmm/ c32f9d37f..72f910e8d (229 commits)

Highlights:

Heap recycling is now prioritized over pre-allocation when over budget.
Heap re-sizing is now supported and enabled when under budget.

Breaking changes

ResourceAllocation::UpdateResidency is now depreciated (replaced by ResidencySet::Insert).

Fixed:

Program exit access violation due to trace recording being mistakenly enabled.

@fujunwei @fujunwei

Merge it, thanks.


Is there a way to change the transaction to the interface name?

Interface names are more intuitive

Please avoid opening issues for questions, asking in the forum is better.
Since you already did, this duplication is even less necessary.
Responding in the forum and closing the issue.


Unable to resolve module @react-native-community/toolbar-android

Error on new project, after import:
import {VLCPlayer} from 'react-native-vlc-media-player';
Problem solved after:
yarn add @react-native-community/toolbar-android
Is this expected?

I have the same problem on Apple TV TvOs 14.3.
The solution provide by @rogerio-azevedo is a temporary one. I think we don't have to install @react-native-community/toolbar-android to run on Apple devices only.

I have the same problem on Apple TV TvOs 14.3.
The solution provide by @rogerio-azevedo is a temporary one. I think we don't have to install @react-native-community/toolbar-android to run on Apple devices only.

Hey @pascal-mormin I couldn't use in android, did you?

Hey @pascal-mormin I couldn't use in android, did you?


[NP-8596] FOAMException consolidation, Toast notification title support.

Consolidate Exception interface and ExceptionInterface into FOAMException
provide support for override 'title' of Notification toast messages

LGTM


Remove some inconsistencies in the cheatsheet

This addresses the differences between the cheatsheet and raylib.h at version 3.0.0, as discussed in issue #11.
Note that:

GenTexture*() functions were left out.
The PDF version wasn't updated. (How is it generated?)

@raysan5 regarding LoadText, I've now noticed the preprocessor directive defining it as LoadFileText in the header.
However, the cheatsheet still has both:

char *LoadFileText(const char *fileName); (under module core) and
char *LoadText(const char *fileName); (under module shaders).

Even if both names were left intentionally in the cheatsheet, it seems to me like they should be at least grouped in the same module.

I've marked this PR as a draft until this is solved.

Renamed IsAudioBufferProcessed in the cheatsheet to IsAudioStreamProcessed

@baioc thanks for the review!


problem with blobs

When I have a dataset with 1 record, being a blob (in this case of frequencies and magnitudes), plottr is not able to plot this

Should be fixed in #95


 It'd be great if I got around to testing this on the following combos:

[ ] Mobile iOS Safari
[ ] Mobile iOS Chrome
[ ] Mobile iOS whatever-webview-they-have

Ok, I don't know much about iOS apps, but I think they have UIWebView (deprecated) and WKWebView (the iOS 8+ hotness), and there might be a WebView that's also sometimes used
This would have the same benefits as listed below for Android WebView

[ ] Mobile Android Chrome
[ ] Mobile Android WebView

This covers the users following links from Facebook
Also, it means this could be easily turned into a simple mobile app (if anyone wants to take that up)

[ ] Desktop Linux Chrome
[ ] Desktop Mac Chrome
[ ] Desktop Linux Firefox
[ ] Desktop Mac Safari

If anyone has tested this on one of these platforms and thinks it sucks (i.e. has specific suggestions on improvements) or thinks it rocks (i.e. it's easy to use, the browser doesn't get in the way of the page, the page doesn't get in the way of the browser, etc.), please let me know 👍

Don't care.


doc: router::{Wildcard, Static, Param}Segment

Adds documentation to the router path segments. Open to feedback if this is the correct way to structure the examples.
I am not super familiar with 0.7 yet, so please let me know if I am missing the mark anywhere

Thanks!


Vulkan Mobile Renderer: Crash on editing

Godot version
4.0.dev
System information
Arch Linux, Ryzen 9 3950x, 2x RTX 2070SUPER SLI
Issue description
Unable to do anything within the 3D editor of Godot. Fills console with errors to the point of lagging/crashing the Godot editor.
Piped stdout/err to file.
Happens only with the Vulkan Mobile Renderer, both for new and old projects. Vulkan Clustered works as intended as far as I can tell.
As soon as I switch to the 2D editor, the errors stop.
Steps to reproduce
Open the 3D editor in any old or new project with Vulkan Mobile renderer
Minimal reproduction project
test project.zip

Can confirm
System: Arch Linux, AMDGPU driver, AMD R9 280X with Vulkan Mobile Renderer
Happens since 13769aebe9d435b9041f4ec8dc6f4b277a87b444 when #54867 was merged.
Found out by downloading the builds for the pull request's compiled binaries by github actions.


SQL implementation: CSV to SQL

A simple script which adds the information in the csv file to a database

https://github.com/henrikbossart/courseTracker/commit/44ed0ad461b86bad7644c7e43651c63796bf1c67


inconsistent documenation for virtual_and_abstract_types.html

Bug Report
while reading specification https://crystal-lang.org/reference/1.10/syntax_and_semantics/virtual_and_abstract_types.html
abstract class Animal

  end

class Dog < Animal
  def talk
    "Woof!"
  end
end

class Cat < Animal
  def talk
    "Miau"
  end
end

if 1
  pet = Dog.new
else
  pet = Cat.new
end
puts typeof(pet)

returns  Animal, but documentation says it's "Animal+", so perhaps behaviors changes on different version?
Also a question:
class X < Animal

end
puts pet.talk #undefined method 'talk' for X (compile-time type is Animal+)

I add X and then it reports error #undefined method 'talk' for X (compile-time type is Animal+),
does that mean crystal will try find all subclasses of Animal, if any one of them doesn't define talk,
then will report error?

For reference only https://github.com/crystal-lang/crystal/pull/12734 was the PR that changed this behavior, starting in the 1.7.0 release. Probably something we should just move to crystal-book repo assuming this is expected?
And yes, Crystal sees that not all children of Animal implement the method you're calling and results in the error you see there.

the example you provided produces
Error: expected argument #1 to 'test' to be Int32, not Animal
so it's also Animal, not Animal+
pet : Animal = Cat.new

puts typeof(pet)
puts pet.class
pet = Dog.new
puts typeof(pet)
puts pet.class

pet = Cat.new
puts typeof(pet)
puts pet.class

this produces
Animal
Cat
Dog
Dog
Cat
Cat

assuming typeof refers to compile type
outputting Dog or Cat for typeof seems wrong

so it's also Animal, not Animal+

Right, as I mentioned this behavior changed starting in version 1.7.0.

outputting Dog or Cat for typeof seems wrong

It's not tho. The first pet is explicitly typed as Animal so that's what it is. However for the next two, you're doing explicit assigns of a specific type (dog or cat) so the compiler can guarantee that type of pet at that time is of one of the concrete implementations.

x : Int32 = 1
x = 1_i64

puts x.class
puts typeof(x)

outputs
Int32
Int32

which is different behavior with pet example.
If assuming compiler know I explictly assign x an Int64,
it should output Int64

Here the situation is different: it's downcasting 1_i64 because it knows it fits in an Int32. From https://crystal-lang.org/reference/1.10/syntax_and_semantics/autocasting.html#number-autocasting :

Number literals are always casted when the actual value of the literal fits the target type, despite of its type.

I don't follow. These two cases work as expected, in the previous one I mention there's an expected downcast on number literals going on. What are you missing?

I guess for x=1_i64 you mean if x has been declared a smaller  ,
I kind of get your meaning.
For the second,it's consistent behavior when used with Animal / String
for Animal example, the reassignment changes both compile/runtime to Dog,
for String example, the reassignment just throws an error

for Animal example, the reassignment changes both compile/runtime to Dog,

It doesn't cause an error because both Dog and Cat are subclasses of Animal, so they are compatible with that restriction. You'd get an error if you tried to do like pet = 10, just like you do with the string example. So I'd say this is working as expected.

I took another pass at this and I don't think anything is actually wrong.

The original example is somewhat diff than the docs given it has abstract class Animal vs class Animal which changes things.
typeof, afaik, never included the + in its values.
crystal tool hierarchy still shows the + type.
The john.pet.talk example still matches what are in the docs

Going to close this as I don't think there's anything that's actionable.


[Question] Playwright-ct coverage shows different branchmap than vitest coverage

Hello,
I'm using MCR to generate and merge reports with playwright-ct and vitest in my React (typescript) application.
I realised that the branchMaps are calculated differently for playwright-ct and vitest.
For example:
if(isTrue) {
 console.log('is true')
}

In playwright-ct, the last } would be counted towards the branch, but in vitest in would not, which makes the merge inaccurate.
Do you have any idea what the issue could be?

Vitest is using v8-to-istanbul to convert coverage format to istanbul from v8, but MCR is NOT using it.
try this Vitest plugin vitest-monocart-coverage to work with MCR.

Yes, I have been using vitest-monocart-coverage, but the branchMap is still calculated differently

Sorry, let me correct: vitestis including the }, playwright-ct is not

If you can provide a repo to let me debug it locally?

Unfortunately, I cannot share the repo as it is a private one.
Yes, we are using vite and I tried setting minify to esbuild and false as well as sourceMap to inline and false, but they all give the same result

Thank you.
I tried it out. In our component tests instead of importing the component directly, we are using portable stories https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#composestories
We do not use it in vitest however, only in playwright-ct. When turning on debug, the source file is the story. Maybe the portable file is causing the issue...

Actually, I looked a bit closer at it again. It doesn't look like a source file is created for the matching tsx file.
I looked through other source maps though that were generated and it looks like in those the } is included in if statements.
I'm not even testing that one component directly, but it is still added in the coverage. Is that the reason the source map is not created for that component?

I'm not sure, it's complicated, especially I don't know the details of your project.
Basically, both source and sourcemap are required, check the entryFilter if it has been excluded?

Maybe my whole approach is wrong.
This is my teardown config:
async function globalTeardown(config) {
  const mcr = MCR({
    name: 'Playwright-ct coverage report',
    logging: 'debug',
    outputDir: './build/coverage/playwright-ct/',
    sourceFilter: {
      '**/node_modules/**': false,
      '**/.storybook/**': false,
      '**/src/**/*.stories.tsx': false,
      '**/src/**/*.portable.ts': false,
      '**/src/**/*.test.tsx': false,
      '**/src/**/*.spec.tsx': false,
      '**/src/**': true,
    },
    sourcePath: filePath => {
      return `${path.join(process.cwd(), filePath)}`;
    },
    reports: ['v8', 'json', 'raw'],
  });
  await mcr.generate();
}

export default globalTeardown;

and my test fixtures:
export const test = ctBase.extend<TPlaywrightCtFixtures>({
  autoTestFixture: [
    async ({ page }, use) => {
      // coverage API is chromium only
      if (test.info().project.name === 'chromium') {
        await Promise.all([
          page.coverage.startJSCoverage({
            resetOnNavigation: false,
          }),
          page.coverage.startCSSCoverage({
            resetOnNavigation: false,
          }),
        ]);
      }

      await use('autoTestFixture');

      /** stop collecting coverage */
      if (test.info().project.name === 'chromium') {
        const [jsCoverage, cssCoverage] = await Promise.all([
          page.coverage.stopJSCoverage(),
          page.coverage.stopCSSCoverage(),
        ]);
        const coverageList = [...jsCoverage, ...cssCoverage];

        /** Coverage options configuration */
        const coverageReport = MCR({
          name: 'Playwright-ct coverage report',
          outputDir: './build/coverage/playwright-ct/',
        sourceFilter: {
            '**/node_modules/**': false,
            '**/.storybook/**': false,
            '**/src/**/*.stories.tsx': false,
            '**/src/**/*.portable.ts': false,
            '**/src/**/*.test.tsx': false,
            '**/src/**/*.spec.tsx': false,
            '**/src/**': true,
          },
          sourcePath: filePath => {
            return `${path.join(process.cwd(), filePath)}`;
          },
          reports: ['v8'],
        });
        await coverageReport.add(coverageList);
        // await coverageReport.generate();
      }
    },
    {
      scope: 'test',
      auto: true,
    },
  ],
});

Is there any step I'm missing?

It looks fine.
Perhaps it could be optimized according to this example repo

First, use the global coverage config

// mcr.config.js
export default {
    name: 'Playwright-ct coverage report',
    logging: 'debug',
    outputDir: './build/coverage/playwright-ct/',
    sourceFilter: {
      '**/node_modules/**': false,
      '**/.storybook/**': false,
      '**/src/**/*.stories.tsx': false,
      '**/src/**/*.portable.ts': false,
      '**/src/**/*.test.tsx': false,
      '**/src/**/*.spec.tsx': false,
      '**/src/**': true,
    },
    sourcePath: filePath => {
      return `${path.join(process.cwd(), filePath)}`;
    },
    reports: ['v8', 'json', 'raw'],
  }

global setup
playwright fixtures
global teardown

I created a little repo here: https://github.com/estercheyn/vitest-playwright
After running the tests, you will see in the coverage-final.json that the branchMaps are different:
//vitest
"src\\App.tsx": {
    "path": "src\\App.tsx",
    "statementMap": {
      "0": {
        "start": { "line": 1, "column": 7 },
        "end": { "line": 1, "column": 33 }
      },
      "1": {
        "start": { "line": 6, "column": 0 },
        "end": { "line": 41, "column": 1 }
      },
      "2": {
        "start": { "line": 7, "column": 2 },
        "end": { "line": 7, "column": 40 }
      },
      "3": {
        "start": { "line": 9, "column": 2 },
        "end": { "line": 11, "column": 3 }
      },
      "4": {
        "start": { "line": 10, "column": 4 },
        "end": { "line": 10, "column": 42 }
      },
      "5": {
        "start": { "line": 13, "column": 2 },
        "end": { "line": 39, "column": 7 }
      }
    },
    "fnMap": {
      "0": {
        "name": "App",
        "decl": {
          "start": { "line": 6, "column": 0 },
          "end": { "line": 6, "column": 15 }
        },
        "loc": {
          "start": { "line": 6, "column": 15 },
          "end": { "line": 41, "column": 1 }
        },
        "line": 6
      },
      "1": {
        "name": "(anonymous_1)",
        "decl": {
          "start": { "line": 27, "column": 19 },
          "end": { "line": 27, "column": 25 }
        },
        "loc": {
          "start": { "line": 27, "column": 25 },
          "end": { "line": 27, "column": 55 }
        },
        "line": 27
      },
      "2": {
        "name": "(anonymous_2)",
        "decl": {
          "start": { "line": 27, "column": 34 },
          "end": { "line": 27, "column": 45 }
        },
        "loc": {
          "start": { "line": 27, "column": 45 },
          "end": { "line": 27, "column": 54 }
        },
        "line": 27
      }
    },
    "branchMap": {
      "0": {
        "loc": {
          "start": { "line": 9, "column": 2 },
          "end": { "line": 11, "column": 3 }
        },
        "type": "IfStatement",
        "locations": [
          {
            "start": { "line": 9, "column": 17 },
            "end": { "line": 11, "column": 3 }
          },
          { "start": {}, "end": {} }
        ],
        "line": 9
      }
    },
    "s": { "0": 1, "1": 1, "2": 1, "3": 1, "4": 0, "5": 1 },
    "f": { "0": 1, "1": 0, "2": 0 },
    "b": { "0": [0, 1] }
  },

// playwright-ct
"src\\App.tsx": {
    "src\\App.tsx",
    "statementMap": {
      "0": {
        "start": { "line": 6, "column": 0 },
        "end": { "line": 41, "column": 1 }
      },
      "1": {
        "start": { "line": 7, "column": 2 },
        "end": { "line": 7, "column": 39 }
      },
      "2": {
        "start": { "line": 9, "column": 2 },
        "end": { "line": 10, "column": 41 }
      },
      "3": {
        "start": { "line": 10, "column": 4 },
        "end": { "line": 10, "column": 41 }
      },
      "4": {
        "start": { "line": 13, "column": 2 },
        "end": { "line": 39, "column": 5 }
      }
    },
    "fnMap": {
      "0": {
        "name": "App",
        "decl": {
          "start": { "line": 6, "column": 0 },
          "end": { "line": 6, "column": 15 }
        },
        "loc": {
          "start": { "line": 6, "column": 15 },
          "end": { "line": 41, "column": 1 }
        },
        "line": 6
      },
      "1": {
        "name": "(anonymous_1)",
        "decl": {
          "start": { "line": 27, "column": 19 },
          "end": { "line": 27, "column": 25 }
        },
        "loc": {
          "start": { "line": 27, "column": 25 },
          "end": { "line": 27, "column": 55 }
        },
        "line": 27
      },
      "2": {
        "name": "(anonymous_2)",
        "decl": {
          "start": { "line": 27, "column": 34 },
          "end": { "line": 27, "column": 45 }
        },
        "loc": {
          "start": { "line": 27, "column": 45 },
          "end": { "line": 27, "column": 54 }
        },
        "line": 27
      }
    },
    "branchMap": {
      "0": {
        "loc": {
          "start": { "line": 9, "column": 2 },
          "end": { "line": 10, "column": 41 }
        },
        "type": "IfStatement",
        "locations": [
          {
            "start": { "line": 9, "column": 17 },
            "end": { "line": 10, "column": 41 }
          },
          { "start": {}, "end": {} }
        ],
        "line": 9
      }
    },
    "s": { "0": 2, "1": 2, "2": 2, "3": 1, "4": 2 },
    "f": { "0": 2, "1": 1, "2": 1 },
    "b": { "0": [1, 1] }
  },

Thanks for the repo.
I checked that it is a sourcemap issue. In other words, there is a issue with the sourcemap of playwright-ct.
First, we could generate source and sourcemap pairs to the raw folder with option sourceMap: true
const coverageOptions = {
    logging: 'debug',
    sourceMap: true,
    reports: ['v8', 'json', 'raw'],
};

see files in coverage\playwright-ct\raw

(you should use the global coverage config ../mcr.config.integration in setupPlaywrightCt.ts too)
Dragging the source and sourcemap pairs to https://evanw.github.io/source-map-visualization/
For playwright-ct, we can see the wrong position mapping for }

I don't know how playwright-ct generates the sourcemaps, it seems that it is not very accurate.
But for Vitest unit tesing, it is right

Thank you for checking it out :)  I will reach out to the playwright team then


Cannot import angularjs library when using the latest version of seleniumlibrary

versions:
robotframework==3.0.2
robotframework-angularjs==0.0.6
robotframework-selenium2library==3.0.0b1
got error
Importing test library 'AngularJSLibrary' failed: ImportError: No module named locators Traceback (most recent call last):   File "C:\Python27\lib\site-packages\AngularJSLibrary\__init__.py", line 6, in <module>     from Selenium2Library.locators import ElementFinder
downgrade selenium2library can fix it.

@chaussen I am starting to look at this now.

I am going to look at the latest published (to PyPI) version of the SeleniumLibrary which is as of today 3.0.1. So with the current version of robotframework-angularjs, that is 0.0.6, will work with robotframework-selenium2library==1.8.0 and I will branch off to support robotframework-seleniumlibrary==3.0.1.
In house I have not fully upgraded to the newer SeleniumLibrary so I will see if I can create multiple releases depending on the version of the Selenium2Library/SeleniumLibrary.

@emanlove thanks. as a workaround i am currently only using the wait for angular keyword by copying the javascript from the source file and using wait for condition keyword from seleniumlibrary with it.

@chaussen I have started a new branch, seleniumlibrary-v3.x, which has some changes Selenium2Library/robotframework-angularjs@2bde218125d96c4debb08b77c7bc12b7bc81b8c5 that make the AngularJSLibrary compatible with the newest SeleniumLibrary.
I have not tested with SeleniumLibrary versions prior to 3.0.1; of which I will admit there are very few and mostly release candidates and don't plan on testing those. I have also been tossing around the idea of being able to handle, at least in the short short term both SeleniumLibrary (v3.0.1) and Selenium2Library (v3.0.0) so that it won't fail if you have either library v3.0.0+. Finally I am also thinking about making a release that supports both -1.8.0 and 3.0.0+ again for a short time. (My project and work is still working with 1.8.0).

@carllp, I'm also facing same issue. Is this issue is resolved for you??
Please confirm

@asief44 is it possible to get the fill text of the stacktrace for the error you are seeing?

I believe this issue to be resolved within the 0.0.9 version of the AngularJSLibrary. If you are still experiencing this issue with the 0.0.9 release of AngularJSLibrary please re-open this issue.


Support bootstrap4

Add class for fragment and bootstrap4 style.

Failing Travis CI by Rails 4.x on Ruby 1.9.3, what should I do for all green?

+1

+1
I also need this feature for spectre.css. It has the same syntax with Bootstrap 4.

      Home

      Profile

    Change avatar

ref.) https://picturepan2.github.io/spectre/components.html#navigation

What we really need may be supporting fragment class.

Hi!
@WilHall as Ruby 2.0 support has ended we should probably remove it from Travis CI. Could you please do that so @44uk 's tests can pass ?
@WilHall could you please merge it afterwards ? We love Gretel and being able to upgrade to Bootstrap 4 beta 1 with it would be appreciated 👍

bootstrap v4.0.0-beta had been released. but no need to change.
https://getbootstrap.com/docs/4.0/components/breadcrumb/

@44uk since this repo is not maintained anymore can you submit this PR into https://github.com/WilHall/gretel (soon-to-be) active fork?

@mkasztelnik Thank you for the advice. I'll check updated bootstrap(Currently v4.1.3 released) and do PR to the fork.

@mkasztelnik thank you for your work.
Will https://github.com/WilHall/gretel be the repo from which the gem is built from now on ?

@czj yes, together with @WilHall we are going to maintain the gem again.

Awesome @MrShemek :-) We'll gladly help if we can @levups


[stable/postgresql] Use tpl for extraEnvVarsCM

What this PR does / why we need it:
Use tpl for extraEnvVarsCM in statefulset.yml so that the ConfigMap name can be expanded when used as a subchart like:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO Signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @sameersbn


Feature/edit twilio create form

Description
• Created new branch to edit previous Twilio branch.
• Created new TwilioForm Component in Groomer-tabs Component.
• Added Form for "Send SMS to Customer" in TwilioForm Component, including input for phone numbers, text area for text, and "send" button.
• Added Color, and styling to TwilioForm Component using Bootstrap framework, and CSS
Type

[ ]  This is a bugfix.
[x] This is a new feature.
[ ]  This is part of a feature.

Organization

[x] Have you linked this pull request to a Trello card?
[x] Have you named the branch in the format of feature/describe_feature_or_change OR bug/describe_bug_this_is_fixing

Review

[x] Is this a work in progress?
[x] Is this ready to be reviewed?
[x] Have you added two reviewers to this pull request?

Thanks, I will send it to you on slack.

Looks great Jorge! Thank you for working on this.

Thank you!


Release v7.6.1

This is a small point release to pull in the changes from https://github.com/github/linguist/pull/4628 to fix 500 errors that are occurring when users open pull requests or view commits with HTML files that contain a generated metatag without a content attribute.
Verified this works in staging and am now in the process of queuing to deploy to GitHub.com.

This is now live on GitHub.com so you can now view commits like https://github.com/github/linguist/pull/4628/commits/2a7598b74c26f39b99fb266ba2779b001081ca66
I'll open a PR for the tests updates tomorrow. It's 🍻 o'clock for me now.

It's always emoji-o'clock on GitHub. 😉 👍 🎉


View soft deleted objects in the database.

I've tried out this plugin and noticed when I perform a soft delete I can no longer find it in the database.
Is this expected behaviour?
How do you restore an object if you are unable to find it again.

there should be no problem querying for deleted: true unless you explicitly specify in the query to ignore documents with deleted set to true


Dump GitHub's response header on deploy step (CI)

Need to see a rate limits.

NOTE: This repository is no longer supported or updated by @gomzyakov . If you wish to continue to develop this code yourself, we recommend you fork it.


Link to Windows App SDK extension for Visual Studio (VSIX) downloads extension for VS 2019

Link https://aka.ms/windowsappsdk/stable-vsix-2022-cs downloads WindowsAppSDK.Cs.Extension.Dev17.Standalone.vsix
https://docs.microsoft.com/pl-pl/windows/apps/windows-app-sdk/set-up-your-development-environment?tabs=vs-2022

That URI specifies the version # not the product name, they are not equivalent (see https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-preview).