Nuxt 3 support

Hi! It's been a while since there has been an update on this topic. Does anyone have any news on the support for Nuxt 3?

Currently using this with Nuxt 3 and works fine

joshwcorbett, can you share please how did you manage the configuration?

I'm using it with Nuxt 3 through a plugin.
//plugins/apollo.js
import Vue from 'vue'
import VueApollo from 'vue-apollo'
import ApolloClient from 'apollo-boost'

Vue.use(VueApollo)

export default async (inject) => {

  const apolloClient = new ApolloClient({
    uri: 'endpoint'
  })

  inject('client', apolloClient)
}

And then my build configuration to load graphql files.
//nuxt.config.js
build: {
   extend(config) {
     config.module.rules.push({
       test: /\.(graphql|gql)$/,
       exclude: /node_modules/,
       loader: "graphql-tag/loader",
     });
   },
},

Now you can access apollo globally in Nuxt with $client.

Found a Nuxt3 Apollo module that works.
https://github.com/newbeea/nuxt3-apollo-module

I have problem with this package. It sometimes works, but seems to be unstable if is used with other packages. Problem that I have:
TypeError: (0 , import_vue_demi5.getCurrentInstance) is not a function
    at useQueryImpl (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/app/server.mjs:363:55)
    at Object.useQuery (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/app/server.mjs:359:11)
    at setup (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/app/server.mjs:13387:74)
    at _sfc_main$3.setup (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/app/server.mjs:14201:25)
    at callWithErrorHandling (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/handlers/renderer.mjs:2536:23)
    at setupStatefulComponent (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/handlers/renderer.mjs:8182:30)
    at setupComponent (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/handlers/renderer.mjs:8163:12)
    at renderComponentVNode (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/handlers/renderer.mjs:10510:17)
    at Object.ssrRenderComponent (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/handlers/renderer.mjs:10946:12)
    at _sfc_ssrRender$1 (file:///home/daniel/pro/xue/nuxt/.output/server/chunks/app/server.mjs:14220:32)
[Vue warn]: Component <Anonymous> is missing template or render function.

is possible to reproduce if I install pinia, that have different (newer) version of vue-demi. During development everything is ok, but when I build and serve project I see this error.
I am checking if this pr will fix it:
https://github.com/vuejs/apollo/pull/1373

I'm having the same issue as @gustawdaniel above right now ^

joshwcorbett, can you share please how did you manage the configuration?

For all that are still lost here:
plugins/apollo.ts
import {
  ApolloClient,
  InMemoryCache,
  createHttpLink,
} from '@apollo/client/core'
import {
  DefaultApolloClient,
  provideApolloClient,
} from '@vue/apollo-composable'
import type { NuxtApp } from '#app'
import { defineNuxtPlugin } from '#app'

export default defineNuxtPlugin((nuxtApp: NuxtApp) => {

  const httpLink = createHttpLink({
    uri: '', // your endpoint
    headers: {
      // your headers
    },
  })

  const cache = new InMemoryCache()

  let apolloClient: ApolloClient<any>

  if (process.server) {
    apolloClient = new ApolloClient({
      ssrMode: true,
      link: httpLink,
      cache,
    })
    nuxtApp.hook('app:rendered', () => {
      nuxtApp.payload.data.apollo = apolloClient.extract()
    })
  }
  else {
    apolloClient = new ApolloClient({
      link: httpLink,
      cache,
    })
  }

  provideApolloClient(apolloClient)
  nuxtApp.provide('apollo', { DefaultApolloClient, apolloClient })
})

I'm still getting an error using the above plugin, and the following versions:

vue-demi: 0.13.6
@apollo/client: 3.6.9
@vue/apollo-composable: 4.0.0-alpha.19

Error:
 ERROR  [unhandledRejection] (0 , import_vue_demi7.getCurrentInstance) is not a function                                                                                10:51:38

  at Object.useMutation (.nuxt/prerender/chunks/app/server.mjs:633:55)
  at setup (.nuxt/prerender/chunks/app/add.b72ebafb.mjs:35:83)
  at _sfc_main.setup (.nuxt/prerender/chunks/app/add.b72ebafb.mjs:199:23)
  at callWithErrorHandling (.nuxt/prerender/chunks/renderer.mjs:2654:23)
  at setupStatefulComponent (.nuxt/prerender/chunks/renderer.mjs:9548:30)
  at setupComponent (.nuxt/prerender/chunks/renderer.mjs:9503:12)
  at renderComponentVNode (.nuxt/prerender/chunks/renderer.mjs:12068:17)
  at renderVNode (.nuxt/prerender/chunks/renderer.mjs:12191:22)
  at renderVNode (.nuxt/prerender/chunks/renderer.mjs:12197:17)
  at renderComponentSubTree (.nuxt/prerender/chunks/renderer.mjs:12155:13)

Hi @joshwcorbett, thanks for your solution! It's working great in dev and when building the nuxt app, but I'm facing the exactly same error as @SteveEdson when running nuxt generate. I have tried with @vue/apollo-composable and @apollo/client in dependencies and later in devDependencies, but the error remains. I was wondering if you guys have found a solution. Thank you!

It help me for project with Nuxt3/Apollo/Typescipt
Add to your nuxt.config.ts
build: {     transpile: ["@apollo/client/core", "@vue/apollo-composable" ]},

I'm unsure if others had the same issue as I had...but I was able to get Apollo/Nuxt3 working in Production. It appears to be an issue with Vite when building for Production, not specifically an issue with Apollo.
I had to define a "DEV" variable for Vite in my nuxt.config.js...and 'voila.
Hope this helps someone.
import { defineNuxtConfig } from "nuxt";

export default defineNuxtConfig({
  vite: {
    define: {
      __DEV__: (process.env.NODE_ENV === "development").toString(),
    },
  },
});

My one gripe with my setup above is that simply using it within a component or page results in a client-side query versus server-side.
When using apollo client directly, no problems with ssr at all. Perhaps there's another issue or discussion related to this 🤷♂
I've seen some move their queries to a composable which seems to work, but I feel like that shouldn't need to be necessary.

Did anyone get server side rendering with qraphql to work and has a minimal example? I have configured my client like in @joshwcorbett example and have a simple <div v-if="!loading && !error"> ... </div> where I want to render data from graphql. But a curl localhost:3000 won't give me any data. It seems like the client config with ssrMode: true doesn't work with Nuxt 3 at the moment.

If anyone wants to know how to get ssr to work:

Don't use graphql queries inside a nuxt 3 middleware. This doesn't work at the moment (rc.8).
You need to add @vue/apollo-ssr: ^4.0.0-alpha.18 to your packages.

After these changes ssr works fine.

@Der-Alex Are there any further modifications that should be made to the configuration with this dependency installed?

@joshwcorbett I managed to get SSR working while transferring cache to client that way :
In plugins/apollo.server.js:
import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client/core'
import { DefaultApolloClient, provideApolloClient } from '@vue/apollo-composable'
import { getStates } from '@vue/apollo-ssr'
import { defineNuxtPlugin } from '#app'

import type { NuxtApp } from '#app'

export default defineNuxtPlugin((nuxtApp: NuxtApp) => {
  const config = useRuntimeConfig()
  const httpLink = createHttpLink({ uri: config.graphqlApiEndpoint, headers: {} })
  const cache = new InMemoryCache()
  let apolloClient: ApolloClient<any>
  apolloClient = new ApolloClient({ ssrMode: true, link: httpLink, cache })
  nuxtApp.hook('app:rendered', () => {
    nuxtApp.payload.data.apollo = getStates({ apolloClient })
  })

  provideApolloClient(apolloClient)
  nuxtApp.provide('apollo', { DefaultApolloClient, apolloClient })
})

In plugins/apollo.client.js:
import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client/core'
import { DefaultApolloClient, provideApolloClient } from '@vue/apollo-composable'
import { defineNuxtPlugin } from '#app'

import type { NuxtApp } from '#app'

export default defineNuxtPlugin((nuxtApp: NuxtApp) => {
  const config = useRuntimeConfig()
  const httpLink = createHttpLink({ uri: config.graphqlApiEndpoint, headers: {} })
  let apolloClient: ApolloClient<any>
  const cache = new InMemoryCache()
  cache.restore(window.__NUXT__.data.apollo.apolloClient)
  apolloClient = new ApolloClient({ link: httpLink, cache })
  provideApolloClient(apolloClient)
  nuxtApp.provide('apollo', { DefaultApolloClient, apolloClient })
})

I don't know why but I didn't manage to do it in only one global plugin with process.server helper, code was running on client anyway. Also, even if everything seems to work, I have a Hydration children mismatch  warning in console but I'm not sure if this is ralated.

A few days have passed and the https://apollo.nuxtjs.org/ module has been upgraded to version 5-alpha.3. This works well except for useQuery. For now I would recommend to use @nuxtjs/apollo@next with nuxt 3 and use useAsyncQuery which works fine.

[nuxt] [request error] [unhandled] [500] Named export 'DefaultApolloClient' not found. The requested module '@vue/apollo-composable' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from '@vue/apollo-composable';
const { provideApolloClient, DefaultApolloClient } = pkg;

Hello everyone, since I am developing a project on apollo and graphql, I decided to write this structure completely. Because updates are coming late. Also a project, this structure is the main structure. The better it is, the better we can make money.
For now, I have shared some developments with you. You can take a look if you're interested.
https://twitter.com/productdevbook/status/1605962566185799685
I hope to share more updates on both vue 3 and nuxt 3 in the coming days. You can stay tuned. Besides, these follows will be an excuse for me to move forward on this project.

I published it. https://twitter.com/productdevbook/status/1606198773583171584

https://github.com/huntersofbook/huntersofbook/issues/161
I changed some parts of useQuery and improved it.
I need tests, who can test on their project and give feedback

A few days have passed and the https://apollo.nuxtjs.org/ module has been upgraded to version 5-alpha.3. This works well except for useQuery. For now I would recommend to use @nuxtjs/apollo@next with nuxt 3 and use useAsyncQuery which works fine.

The cache doesn't work though. Every query is network-only.

huntersofbook/huntersofbook#161
I changed some parts of useQuery and improved it.
I need tests, who can test on their project and give feedback

Hi @productdevbook ... thanks a lot for sharing your work :smile: ... I've tried your plugin but unfortunately it doesn't pretender the data server side. It only runs the queries on the client side. Did I miss something missing from the playground example or this is expected?

The cache doesn't work though. Every query is network-only.

npm i -D @apollo/client @nuxtjs/apollo@next @vue/apollo-composable --legacy-peer-deps
Important: --legacy-peer-deps because one of the pakages wants to install an older version of vuejs. This can cause trouble sometimes.
Add apollo config to nuxt.config.ts

apollo: {
    clients: {
      default: {
        httpEndpoint: 'INSERT YOUR ENDPOINT HERE'
      },
    },
  },

Create plugins/apollo.js|ts

import { provideApolloClient } from '@vue/apollo-composable';
export default defineNuxtPlugin((nuxtApp) => {
  provideApolloClient(useApollo().clients.default);
});

Now you should be able to use all the graphql magic

<script setup>
import { YOUR_QUERY } from 'YOUR_PATH';
const your_variables = { /* whatever */ };
const your_config = { fetchPolicy: 'cache-first' };

const foo = await useAsyncQuery(YOUR_QUERY, your_variables);
const bar = await useQuery(CMS_GET_NODE_BY_PATH, your_variables, your_config);

console.log(foo.data?.value);
console.log(bar.result?.value);
</script>

The cache doesn't work though. Every query is network-only.

npm i -D @apollo/client @nuxtjs/apollo@next @vue/apollo-composable --legacy-peer-deps
Important: --legacy-peer-deps because one of the pakages wants to install an older version of vuejs. This can cause trouble sometimes.
Add apollo config to nuxt.config.ts

apollo: {
    clients: {
      default: {
        httpEndpoint: 'INSERT YOUR ENDPOINT HERE'
      },
    },
  },

Create plugins/apollo.js|ts

import { provideApolloClient } from '@vue/apollo-composable';
export default defineNuxtPlugin((nuxtApp) => {
  provideApolloClient(useApollo().clients.default);
});

Now you should be able to use all the graphql magic

<script setup>
import { YOUR_QUERY } from 'YOUR_PATH';
const your_variables = { /* whatever */ };
const your_config = { fetchPolicy: 'cache-first' };

const foo = await useAsyncQuery(YOUR_QUERY, your_variables);
const bar = await useQuery(CMS_GET_NODE_BY_PATH, your_variables, your_config);

console.log(foo.data?.value);
console.log(bar.result?.value);
</script>

Thank you @Der-Alex ...unfortunately, I also need SSR through Nuxt

How to get smth like 'loading' from useAsyncQuery in @nuxtjs/apollo@next?

How to get smth like 'loading' from useAsyncQuery in @nuxtjs/apollo@next? 'pending' is not enough

I think useAsyncQuery is best for SSR https://apollo.nuxtjs.org/getting-started/composables#usequery Thus there's no need for loading.
On the client side, this will work:
const { result: myQueryResult, loading: loadingMyQuery } = await useQuery(MY_QUERY);

await useQuery

but I find this info https://github.com/vuejs/apollo/issues/1219#issuecomment-981130424
so my target is to get loading status while I'm using nuxt/apollo (ssr: true)

await useQuery

but I find this info #1219 (comment)
so my target is to get loading status while I'm using nuxt/apollo (ssr: true)

The comment is probably right :smile: What useQuery does is it prefetches on the server so that the sever returns the populated HTML, but then it fetches again on the client side so that you can show a loader.
If you try it and test it on bulld, you'll see the first Network response with populated HTMLa dn then a subsequent response for the GQL query.
I cannot see why you'd want a loader on the server, no one will see it.


Discussion: Screenshots page: Do we maintain all versions or only the ones from the current version?

Hi everyone, concerning the latest issues and discussion regarding the screenshots page, I thought a little hint from the Open-Source team on whether we want to maintain the screenshots of all versions since the screenshots archive was started or do we only maintain the currently latests versions screenshots?
Definition of maintain:

Fix issues with the alt texts
Fix screenshots
Delete unused screenshots
etc.

We are currently not supporting content changes on old screenshot releases. They are simply archived and not to be touched again. We try our best to always fix all issues in the current version, which is later to be archived.


'sockets' extension missing on install magento 2.3.4

I created a plain src from magento community
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition src

When I reach command: bin/magento setup:install
following error shows up
In Installer.php line 521:

  Missing following extensions: 'sockets'

can be fixed with docker-php-ext-install sockets
I think this php extension should be installed.

Thanks for bringing this up. We're always open for pull requests. Feel free to add it.

Sure!
#17


Todo

Ideas to implement

[x] Fix health to sync with Npc attacks in real-time
[x] Give each class a special move
[x] Make enemies drop an item upon death
[x] Create  combat log which display last 5 actions below menu
[x] Create smaller combat log for npc (last 3 actions)
[ ] Change each Npc class' to have unique properties
[ ] Add levelling system

Health now syncs with attacks. Did this by moving the combat menu and npcTimer method into functions in the Program class, then placing the combat menu as a method into the timer

Special move/attack added for both classes, warlocks special deals more damage however will now start with less items to replenish health

Combat log created using Queue type, inserting actions into a method that checks how many items are in the queue & de-queues, then finally copies to an array and loops through each string.

Added an npc combat log and created lines on the console to separate UI elements


App crashes when new game is started, notification goGameWillCreate cannot be delivered

At the time of writing, 153 crash reports have been received for 1.0.0 that indicate that there is a bug related to the goGameWillCreate notification that is posted when a new game is created.

6.5 years after it was reported, this issue can now be safely considered obsolete.


Request with query containing array is incorrectly altered

I have a test that is failing because the expectation can't be properly verified. The request has a query that contains a value with an indexed array:
"http://example.test:80/call.cgi?street%5B0%5D=1234+SW+1st+Street&street%5B1%5D=Apt+3&title=Dog+Walker"

Basically the parameter street is passed as it follows:
Faraday.get("http://example.test:80/call.cgi", "street[0]" => "foo", "street[1]" => "bar")

However, when the request is stored in the registry, it is altered and the values 0 and 1 in street[X] are stripped and replaced with simply street[].
This is the portion of code where the issue happens:
        if normalized_uri.query_values
          sorted_query_values = sort_query_values(WebMock::Util::QueryMapper.query_to_values(normalized_uri.query, notation: Config.instance.query_values_notation) || {})
          normalized_uri.query = WebMock::Util::QueryMapper.values_to_query(sorted_query_values, notation: WebMock::Config.instance.query_values_notation)
        end

specifically, the bug is caused by query_to_values and values_to_query:
(byebug) WebMock::Util::QueryMapper.query_to_values(normalized_uri.query)
{"street"=>["1234 SW 1st Street", "Apt 3"], "title"=>"Dog Walker"}
(byebug) WebMock::Util::QueryMapper.values_to_query(WebMock::Util::QueryMapper.query_to_values(normalized_uri.query))
"street%5B%5D=1234%20SW%201st%20Street&street%5B%5D=Apt%203&title=Dog%20Walker"

It should be
(byebug) WebMock::Util::QueryMapper.values_to_query(WebMock::Util::QueryMapper.query_to_values(normalized_uri.query))
"street%5B0%5D=1234%20SW%201st%20Street&street%5B1%5D=Apt%203&title=Dog%20Walker"

@weppos thank you for reporting the issue.
Could you please let me know what is the issue you are experiencing as a side effect of that behaviour of the request registry? Is that lack of precision when matching executed request or that they don't match at all?
Request registry stores normalized query params. There are different ways that query params, representing an array can be serialized. There is no RFC standard that defines that. WebMock had to choose one.
This is required to allow matching request url with params against a request pattern with query params defined as a hash or when query params have different order than in the pattern.
Saying above, perhaps WebMock should offer some way persisting the original url and allowing matching requests with request pattern, only when url string is exactly the same.

@bblimke the issue manifests in an expectation failure:
expect(WebMock).to have_requested(:get, "http://example.test/")
           .with(query: hash_including(params))

       The request GET http://example.test/ with query params hash_including({"city"=>"Miami", "command"=>"AddContact", "country"=>"US"<EMAIL_ADDRESS>"fax"=>"+1.4445556666", "first_name"=>"Anthony", "last_name"=>"Eden", "name"=>"Anthony Eden", "organization"=>"Dot Dog Walker", "phone"=>"+1.5554443333", "state"=>"FL", "street[0]"=>"1234 SW 1st Street", "street[1]"=>"Apt 3", "title"=>"Dog Walker", "zip"=>"12454"}) was expected to execute 1 time but it executed 0 times

       The following requests were made:

       GET<EMAIL_ADDRESS>with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v0.15.2'} was made 1 time

@aeden does it help if you set WebMock::Config.instance.query_values_notation = :flat_array?

does it help if you set WebMock::Config.instance.query_values_notation = :flat_array?

I tried setting this directly before the expectation call, but it does not appear to have an impact. The expectation still fails the same way as before.

@aeden thanks. Does it match if you change the query params to "street"=>["1234 SW 1st Street", "Apt 3"]?

Does it match if you change the query params to "street"=>["1234 SW 1st Street", "Apt 3"]?

If I remove the WebMock::Config.instance.query_values_notation = :flat_array option and I change the query params to match "street" to an array, then it passes.

Looks like I am also affected by this issue.
My tests are working against Shopify REST API. Particularty this call.
In my test I want to verify, that products in the collection were sorted in the right order, but because of this automatic parameter sortnig my tests are faiilng, even though the passed in product ids are in the right order. Any suggestions?

Hello,
I got a similar issue with query and array:
`"args[:url]"
"http://localhost:3001/api/v1/?{"msg_id"%3A"2aa8916"%2C"payload"%3A{}%2C"history"%3A[{"src"%3Anull%2C"dest"%3Anull%2C"status_code"%3Anull%2C"success"%3Anull%2C"error"%3Anull%2C"ts_starts"%3A1571392569%2C"ts_spent"%3Anull}]}"
"uri:"
#<URI::HTTP http://localhost:3001/api/v1/?{"msg_id"%3A"2aa8916"%2C"payload"%3A{}%2C"history"%3A[{"src"%3Anull%2C"dest"%3Anull%2C"status_code"%3Anull%2C"success"%3Anull%2C"error"%3Anull%2C"ts_starts"%3A1571392569%2C"ts_spent"%3Anull}]}>
"==============> uri.query:"
{"msg_id"=>"2aa8916",
"payload"=>{},
"history"=>
[{"src"=>nil,
"dest"=>nil,
"status_code"=>nil,
"success"=>nil,
"error"=>nil,
"ts_starts"=>1571392569,
"ts_spent"=>nil}]}
">>>>>>>>>>>>>>>>>>>>>> IN REQUEST <<<<<<<<<<<<<<<<<<<<<<<<<"
"rq:"
#<WebMock::RequestSignature:0x00007f9a25535270
@body=nil,
@headers=
{"Accept"=>"/",
"User-Agent"=>"rest-client/2.1.0 (darwin18.2.0 x86_64) ruby/2.6.1p33",
"Accept-Encoding"=>"gzip;q=1.0,deflate;q=0.6,identity;q=0.3",
"Host"=>"localhost:3001"},
@method=:get,
@uri=
#<Addressable::URI:0x3fcd12ad68fc URI:http://localhost:3001/api/v1/?{"msg_id":"2aa8916","payload":{},"history":[{"src":null,"dest":null,"status_code":null,"success":null,"error":null,"ts_starts":1571392569,"ts_spent":null}}]>>
"rq.uri: "
#<Addressable::URI:0x3fcd12ad68fc URI:http://localhost:3001/api/v1/?{"msg_id":"2aa8916","payload":{},"history":[{"src":null,"dest":null,"status_code":null,"success":null,"error":null,"ts_starts":1571392569,"ts_spent":null}}]>
F
Failures:

EvsClient Sending a simple service to service call should handle history
Failure/Error: msg = EvsService::Message.deserialize(JSON.parse(URI.unescape(rq.uri.query)) || {})
JSON::ParserError:
416: unexpected token at '}]'`

When I create the query I am using:
uri.query = URI.encode_www_form(params)  args[:url] = uri.to_s  pp "args[:url]", args[:url]  pp "uri:", uri  pp "==============> uri.query:", JSON.parse(URI.unescape(uri.query))
So my params are correctly setup and the end of the url is %7D%5D%7D But once I arrive in my stubed request I got: %7D%7D%5D.... Therefor my JSON is not valide anymore.
WebMock::Config.instance.query_values_notation = :flat_array Seems to fix it, I guess the issue is somewhere in the deep array encoding/decoding

I will chime in and bump this issue. I'm query Gmail API, you can fetch message with format metadata and specify headers as an array. Only last element of this array appears in the normalized URI (I assume, that's because values_to_query calls .to_hash).

@surkova could you please provide an example? Is there a problem with matching query or headers in your case?

@bblimke I have a screenshot illustrating the problem. I took it while in the debugger navigating inside query_mapper. This resulted in that I couldn't pass in query params in any form (I tried list of tuples) into stub_request, so I ended up doing this:
    # Note that only the last value of metadataHeaders is enough to make a match.
    query_string =<EMAIL_ADDRESS>    url += query_string
    stub_request(:get, url).to_return(
      status: 200,
      body: fixture,
      headers: {
        'Content-Type' => 'application/json',
      }
    )

The request in my case is generated by https://github.com/googleapis/google-api-ruby-client and it sends metadataHeaders=From&metadataHeaders=Reply-To in the query string.

@surkova thank you for clarifying. have you tried setting WebMock::Config.instance.query_values_notation = :flat_array?

@bblimke I just tried this, it worked:
    url = "https://www.googleapis.com/gmail/v1/users/#{google_user_id}/messages/#{message_id}"
    WebMock::Config.instance.query_values_notation = :flat_array
    query_string =<EMAIL_ADDRESS>    stub_request(:get, url).with(query: query_string).to_return(
      status: 200,
      body: fixture,
      headers: {
        'Content-Type' => 'application/json',
      }
    )

I haven't found any examples on how to specify query as an actual array of tuples, only this test case. I'd assume I'd need to loop and join array elements myself.
Thank you for pointing out this solution. I'd assume that keeping repeated query params is the default behavior.

@surkova I agree it's confusing. It should be at least mentioned in README.

In this test case the config is changed for all tests in the context. Would it be possible to change config directly on stub_request?

@surkova it's not possible. I think it will also be a pain to know when to use flat array and when not to, therefore it would be better to either allow WebMock to do that automatically or find a way to avid various notations completely.
What negative side effects do you see in your other tests, when flat_array is enabled globally?

@bblimke we noticed random test failures when I introduced :flat_array, the weird thing was that after a number of runs the tests would go through, then fail again (mismatched stub). We never actually found out the root cause, unfortunately (no time for this atm).
My expectation from the library would be the following: the library should always assume there can be duplicate keys in the query string if query is supplied as an array of tuples or a string and handles that on the fly without adding any particular settings in the config.

@surkova

the library should always assume there can be duplicate keys in the query

I agree. The reason is the representation of query parameters as a hash, same limitation as e.g Rails has when it comes to parameters handling. It's unlikely this is going to get fixed soon, unless someone will be willing to spend time on rebuilding this part of WebMock.
The only thing I can suggest for now is to enable :flat_array only for the specs with duplicate params.


Enable dependabot

Codecov Report
Base: 78.14% // Head: 78.14% // No change to project coverage :thumbsup:

Coverage data is based on head (8603b06) compared to base (8c70b7e).
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #272   +/-   ##
=======================================
  Coverage   78.14%   78.14%
=======================================
  Files          27       27
  Lines        4008     4008
=======================================
  Hits         3132     3132
  Misses        876      876

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


Content Encoding Error

I have interesting problem with this extension.
I receive Error in FireFox:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Please contact the website owners to inform them of this problem.";
Same error occur in Chrome too.
This error occur when loading page for first time. Not only the first page, for each page when loading for first time. After pressing browser reload button everything work OK. Problem is that, customers don't press "reload".
My Opencart version is 1.5.6 .
PHP version is: 5.4.4-14+deb7u14
Web server is: nginx/1.2.1
php_sapi_name: fpm-fcgi
Mozilla Page info tool show: Type: application/xhtml+xml.
When reload page, same tool show: Type: text/html.
Maybe error is in this lines:
foreach (headers_list() as $header) {
            if (preg_match('#^content-type:\s*text/html#i',$header)) {
                return true;
            }

I try with gzip compression on and off but problem is not here.
There is nothing in Opencart error log or in nginx error log.

Your theme is using a mime type of "application/xhtml+xml", so yes, that's causing the problem.
The cache doesn't currently support that.


⚠ Bofrost.lu has degraded performance

In 5d8e9e9, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1652 ms

Resolved: Bofrost.lu performance has improved in f9a9d29 after 6 minutes.


Move Angular components out of microservice catalog

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Dependant for the current task - https://github.com/sourcefuse/loopback4-microservice-catalog/issues/1673

Audit Service - ETA 27 Sep - Size Large


Failing to parse the Level.sav by using covert.py after Palworld v0.3.3 patch

I have tried to parse the Level.sav after today's patch. However, the covert.py didn't manage to parse the file and reported the following Traceback
    File "xxx/palsave_tools/palworld_save_tools/archive.py", line 488, in property
    raise Exception(f"Unknown type: {type_name} ({path})")
Exception: Unknown type: UInt32Property (.worldSaveData.WorldMetaSaveVersionBitMask)

The reason might be that they had introduced some new data format or class. What do you think?
FYI, Below is the notification of the patch this time.
[Patch Notice]
Palworld version v0.3.3 has been released.
===
・Fixed a bug that caused save data to become unreasonably large
・Other minor bugs fixed

I used a savefile transfer tool based on this git, and it fails today. Maybe it's because of the update today.

Authors have merged some code of PR https://github.com/cheahjs/palworld-save-tools/pull/181 to the main branch. This PR added the support of UInt32Property  which is utilized in the new patch of PalWorld.  I have managed to execute the source code to parse my saved repo which is:
python -m palworld_save_tools.commands.convert PATH_TO_YOUR_SAV_FILE
You might need to execute this command in the project's root directory (instead of the directory where covert.py is located).
From my perspective, this could be a temporary solution.

Authors have merged some code of PR #181 to the main branch. This PR added the support of UInt32Property which is utilized in the new patch of PalWorld. I have managed to execute the source code to parse my .sav file which is:
python -m palworld_save_tools.commands.convert PATH_TO_YOUR_SAV_FILE
You might need to execute this command in the project's root directory (instead of the directory where covert.py is located).
From my perspective, this could be a temporary solution before authors publish a new version of the release package.

Thanks for your suggestion, now it's able to create a .json file, is there anyway to transfer from a world to another? I found that there are billions of lines of the .json file, don't know where to change the player information.

You guys need to update the archive.py to accept these.
        elif type_name == "Int32Property":
            value = {
                "id": self.optional_guid(),
                "value": self.u32(),
            }
        elif type_name == "UInt32Property":
            value = {
                "id": self.optional_guid(),
                "value": self.u32(),
            }

        Within def property(

        I also threw in Int32Property just in case.

        Apply to the Reader.

You also need to add the following lines to the def property_inner(...) function:
        elif property_type == "Int32Property":
            self.optional_guid(property.get("id", None))
            self.u32(property["value"])
            size = 4
        elif property_type == "UInt32Property":
            self.optional_guid(property.get("id", None))
            self.u32(property["value"])
            size = 4

This function is used for converting from .json back to .sav I think


Probe segments coming out of the ffmpeg segmenting process

We need to do this to verify the segments are not corrupt in any way. We found with one input video this was happening (playbackID 97b1rnzi74ps1g58)

Tested the problematic video on staging and verified the fix 👍 it plays fine if it goes through the mediaconvert fallback: https://storage.googleapis.com/livepeer-test-vod/test-max/vod/2023-04-26T10%3A34%3A52.181Z/index.m3u8


Failed to send CLOCK command && Add-on Crash

Describe the bug
Hi @vanackej , i had the error before also in the past, sure if its the same now, but i use the proxy method, when i take out the UTP cable or my network is down for a little white, it never reconnects again, i see a continues loop like below
I attached the logs, copy/pasted from where i took out the network cable
Seems also at the bottom of the log, it crashed the add-on, i think this is the first time i see this
The logs are starting when i took out the cable
thnx for looking into it!
 Command: {"panelId":1,"commandId":44,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,49,72,91,96,29,246,109,177,171,146,152,3]}}
3/15/2022, 7:59:13 AM [error] RiscoCloud Socket: close.  Command: {"panelId":1,"commandId":45,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,48,72,91,96,29,246,109,198,171,145,152,3]}}
3/15/2022, 7:59:37 AM [error] RiscoCloud Socket: close.  Command: {"panelId":1,"commandId":46,"attempts":3,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,51,72,91,96,29,246,109,198,171,233,224,3]}}
3/15/2022, 8:00:05 AM [verbose] Start Connection to Panel
3/15/2022, 8:00:05 AM [debug] A TCP Socket already exists, clearing its listeners before creating a new one
3/15/2022, 8:00:05 AM [debug] Pseudo Buffer Created for Panel Id(1)
3/15/2022, 8:00:05 AM [debug] TCP Socket created
3/15/2022, 8:00:05 AM [info] Listening on IP :: and Port 33000
3/15/2022, 8:00:05 AM [info] Waiting for panel incoming connection...  Socket is destroyed, ignoring command
3/15/2022, 8:02:27 AM [debug] cryptTableTester response: , attempt: 1
3/15/2022, 8:02:27 AM [verbose] Connection to the control panel successfully established.
3/15/2022, 8:02:27 AM [debug] Risco Panel Connected.
3/15/2022, 8:02:27 AM [warn] sendCommand(PNLCNF): Socket is destroyed, ignoring command
/app/node_modules/@vanackej/risco-lan-bridge/dist/RiscoComm.js:304
                    throw new Error(`Unsupported panel type : ${panelType}`);
                          ^
Error: Unsupported panel type :
    at RiscoComm.<anonymous> (/app/node_modules/@vanackej/risco-lan-bridge/dist/RiscoComm.js:304:27)
    at Generator.next (<anonymous>)
    at fulfilled (/app/node_modules/tslib/tslib.js:114:62)

ok, tested again, and indeed add-on crashes again , never noticed it before

I seem to experience this also after a few hours.
It starts with 'CLOCK' Timeout and eventually the add-on stops working till restarted.

As a workaround - I'm trying to figure out how to get a heart-beart from the add-on. Perhaps with a mqtt topic that publishes "uptime" or such every minute or so. Then an automation on HA can fire if there was no update in x amount of minutes and then restart the addon.

Good idea for now, keep us posted

I think I got a workable workaround.
I created a MQTT Binary Sensor, which monitors 'riscopanel/alarm/status'. I use the force_update option in the config. Then with a template trigger looking at last_changed attribute I fire service: hassio.addon_restart if it exceeds a predetermined value e.g. 30 seconds

I changed the script to grab the add-on container name with a template, that should the container name change with an update it will continue to work.
So far it has worked very well. I have not had a unresponsive alarm from HA since implementing. Fingers crossed....


How is the index display for this media field?

Is there any plan to handle the index display for this media field?
Or can I have somewhere to have my own .vue overriding?
Thanks!
This is a great field!

Here's how I solved this:

Create a relationship on model (make sure the actual field name is different):
 public function logo() {  return $this->belongsTo(\OptimistDigital\MediaField\Models\Media::class, 'logo_id'); }

on Resource fields() add
Image::make('Logo', 'logo->thumbnailPath')->onlyOnIndex()

and finally add hideFromIndex() on MediaField

Index field that displays thumbnails instead list of media IDs is now added with version 2


Add optimus test to circle ci

Purpose

No issue is linked to this PR.

Changes

No changes.

Review Instructions

No instructions.

retest this please


added svn args for info when getting current revision

When svn_args_info is present in the subversion resource in a recipe, i.e.
subversion "MyApp" do
  repository "http://some.svn.com/trunk/"
  revision "HEAD"
  destination "/opt/mysources/couch"
  svn_arguments '--config-dir /etc/subversion/'
  svn_info_args '--config-dir /etc/subversion/'
  action :sync
end

Running will fail because the svn info command issued by find_current_revision doesn't include the arguments.
In my case it was because I was using a system user for the checkout and the command was returning:
---- Begin output of  ----
STDOUT:
STDERR: svn: warning: W000013: Can't open file '/root/.subversion/servers': Permission denied
---- End output of  ----

The PR adds any arguments that are passed to that instance of svn info as well.

Closing for now due to inactivity.


PEM routines:PEM_read_bio:no start line     at Sign.sign (internal/crypto/sig.js:85:26)

I ran npm install apple-music-jwt and put the following in an index.js file (keys redacted):
var keyID = 'music.com.mydomain.myproject';
var teamID = 'VWxxxxxxxx';
var secret = 'MIGT... '; // from AuthKey_<some value>.p8 file

When I run node index.js, I get the the following error:
Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
    at Sign.sign (internal/crypto/sig.js:85:26)
    at sign (/Users/petrus/Projects/apple-music-jwt/node_modules/jwa/index.js:55:45)
    at Object.sign (/Users/petrus/Projects/apple-music-jwt/node_modules/jwa/index.js:75:27)
    at Object.jwsSign [as sign] (/Users/petrus/Projects/apple-music-jwt/node_modules/jws/lib/sign-stream.js:23:24)
    at Object.module.exports [as sign] (/Users/petrus/Projects/apple-music-jwt/node_modules/jsonwebtoken/sign.js:189:16)
    at Object.module.exports.generate (/Users/petrus/Projects/apple-music-jwt/node_modules/apple-music-jwt/src/index.js:24:14)
    at Object.<anonymous> (/Users/petrus/Projects/apple-music-jwt/index.js:7:17)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)

What am I doing wrong? This JWT stuff is so hard.

You gotta read the p8 file (fs.readFileSync).


revert(ish): remove kubelet flags from cse

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

not a clean revert because we already moved back some files https://github.com/Azure/AgentBaker/commit/e2ef33a9831a9186d9c2dcebfcb1e04151062eff
however that is deployed globally, so we just need to delete the file from cse

https://github.com/Azure/AgentBaker/commit/9891112a61028058f65258f3bc984f37fe0980b8


Valibot form adapter

Codecov Report
Attention: 32 lines in your changes are missing coverage. Please review.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files
Coverage Δ

packages/form-core/src/utils.ts
89.13% <ø> (ø)

packages/react-form/src/createFormFactory.ts
100.00% <100.00%> (ø)

packages/react-form/src/formContext.ts
83.33% <ø> (ø)

packages/react-form/src/useForm.tsx
100.00% <100.00%> (+11.11%)
:arrow_up:

...ckages/react-form/src/useIsomorphicLayoutEffect.ts
100.00% <100.00%> (ø)

packages/solid-form/src/createFormFactory.ts
100.00% <100.00%> (ø)

packages/solid-form/src/tests/utils.ts
100.00% <100.00%> (ø)

packages/valibot-form-adapter/src/tests/utils.ts
100.00% <100.00%> (ø)

packages/valibot-form-adapter/src/validator.ts
100.00% <100.00%> (ø)

packages/yup-form-adapter/src/tests/utils.ts
100.00% <100.00%> (ø)

... and 9 more

:loudspeaker: Thoughts on this report? Let us know!.


OpenJDK Update (April 2023 Patch releases)

Description
OpenJDK Update (April 2023 Patch releases): OpenJDK 20.0.1 /  17.0.7+7 / 11.0.19+7
Related Issues
Resolves #[7252], depends on https://github.com/opensearch-project/opensearch-build/pull/3457
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[X] Commits are signed per the DCO using --signoff
[X] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Keeping a draft for now, Linux/ppc64le is not yet released

Linux/ppc64le is available now, no blockers anymore except CI

This is ready to be merged now.

https://github.com/opensearch-project/opensearch-build/issues/3425 completed now.
Thanks.

Jenkins is failing on 3.x build due to this PR not merged yet 😄
https://build.ci.opensearch.org/blue/organizations/jenkins/distribution-build-opensearch/detail/distribution-build-opensearch/7871/pipeline/129

Jenkins is failing on 3.x build due to this PR not merged yet 😄 https://build.ci.opensearch.org/blue/organizations/jenkins/distribution-build-opensearch/detail/distribution-build-opensearch/7871/pipeline/129

@peterzhuamazon I will revert the 3.0.0 to JDK-19, we are still blocked by ppc64le distributions not being available

Still waiting: https://adoptium.net/temurin/releases/?version=20

@dblock @peterzhuamazon not so good news [1], the  Linux/ppc64le, Linux/s390x, Linux/arm32 and AIX/ppc64 won't be released for 20.0.1+9, I will try to preserve the older one for those while moving everything else to JDK-20.0.1+9
[1] https://github.com/adoptium/temurin-build/issues/3371

So @reta how do we move forward at this point?
Switch back to nightly builds of 20?
Thanks.

Switch back to nightly builds of 20?

@peterzhuamazon yes, when it is merged, we could use JDK-20 in 3.0.0 manifest

@dblock @andrross mind taking a look? thank you

Just curious to know why are we updating to Java 20, when most updated gradle version 8.1.1 doesn't have support for it?
https://docs.gradle.org/current/userguide/compatibility.html

Just curious to know why are we updating to Java 20, when most updated gradle version 8.1.1 doesn't have support for it yet?

@dhrubo-os 8.1.x supports JDK-20, there are issues with Kotlin DSL (afaik, [1]) which we are not affecting us anyhow
[1] https://github.com/gradle/gradle/issues/23488


Converted 59 Basetypes topics from MSDN

Will add to TOC in another PR

Ok, this will be tricky to review. Have you at least run docfx on this to make sure you get no warnings, etc.?

Please make the TOC updates and the content changes in the same PR. It leaves the repo in an inconsistent state.
We should chat about your workflow. You shouldn't have any merges, let alone two.

I realize this is inherited from MSDN, but I don't understand what are "base types" supposed to be here. I would expect that phrase to mean the type another type inherits from, but that doesn't seem to be the meaning used here.
Also, running docfx on this produces 144 warnings about invalid file links.

This is the heritage: https://msdn.microsoft.com/en-us/library/7wchwf6k(v=vs.110).aspx.
I prefer the following nomenclature:

Type system (for describing class, interfaces and enums)
Primitives (for describing string, int, decimal)
Fundamental data types and utilities (for describing List, Linq, HttpClient)

Closing this PR - will resubmit once content is moved to concepts.


Up/Down Arrow Keys Make Listbox Visible

Fixes #1 by having " Key Down" events generate visibility user events when the up and down keys are pressed, similar to the other arrow and ASCII key presses.

Changes made: (Generate visibility event in Autocomplete UI.vi)


Cannot read property 'show' of undefined

Here is the code snippet: http://codepad.org/3Ix8sZeN

This package exports NativeModules.RNDocumentPicker as DocumentPicker, so you are 99.99% guaranteed your issue is just that you have not finished linking the native code and rebuilding the native portion of your app.

The problem has been solved!

@uraniumreza, how did you solve it?

@mromarreyes I didn't add permission for WRITE_EXTERNAL_STORAGE!

@uraniumreza So your error was on android? I'm having the issue with iOS. Did you have any issues with iOS?

@mromarreyes actually I didn't try this for IOS!

I'm having this issue but I'm using CRNA not react native. Do I still need to do all the linking part ?

CRNA doesn't magically make is so you don't have to link anything. All packages with native code need to be linked in order to work.

yeah I saw I should eject my CRNA in order to use components with native code.

@alexzobi thank you. It works perfectly with manual linking.


Restoring historic pull requests

We should attempt to reproduce/migrate some of the high-quality community pull requests that were abandoned when the project was discontinued at CC Search. I'll at least manually list some PRs I stumble upon that seem like good candidates.
Catalog

#519 Scan the world
#284 Rewrite Thingiverse Provider API Script to use new ImageStore class

It's probably best to do these manually, since the codebases have changed somewhat dramatically in terms of structure.


PCI MMIO configuration support

Support for the PCI Express Extended Configuration Mechanism.
I wrote this in a hurry thinking I needed it.  I don't.  But it's still a nice-to-have in the tree.  I'm reliably told that devices exist (though probably not ones desperately in need of a Zephyr driver) whose capabilities lists run beyond the 256 byte region classic PCI is able to access and require the 4k MMIO mechanism to use.
Beyond that, it's hard to imagine why you'd want this in your code given the complexity, honestly.  But it was fun to write.

Rebased.  Fix a pointer cast build warning on 32 bit platforms (up_squared_32 and gpmrb) that snuck in.


load name and options from publish profile for vscode publish quickpick

This PR fixes #17864. Previously, only the sqlcmd variables from the publish profile were being used. This updates the vscode publish database quickpick to also use the database name and deploy options if a publish profile is loaded and has them.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.008%) to 48.18%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/sql-database-projects/src/dialogs/publishDatabaseQuickpick.ts
0
4
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.008%

Covered Lines:
14524

Relevant Lines:
28634

💛  - Coveralls


Checkbox group focus alignment

Description
This bug affects:

[ ] GitHub workflows
[x] Component
[ ] Config
[ ] Performance
[ ] Tooling / Frameworks
[ ] Documentation
[ ] Something else

Steps to Reproduce

Use the lg-checkbox-group or lg-segment-group and focus it from the keyboard

Expected behaviour:
The focus on the group would be aligned correctly
Actual behaviour:
The focus is hidden in areas and overlapping elements from within the group.
Recurrence frequency:

[x] Occurs every time
[ ] Occurs intermittently
[ ] Unsure

Package version

[ ] This problem started happening recently
[ ] This problem started happening a while ago
[x] Unsure

Configuration and environment

[x] This pertains to local development
[ ] This pertains to the CI
[x] This pertains to Storybook

Solved by PR #957


[Bug] funciton context for function 'in' must have Set;

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
2.0.0
What's Wrong?
SQL Error [1105] [HY000]: errCode = 2, detailMessage = (xx.xx.xxx.xxx)[CANCELLED][RUNTIME_ERROR]funciton context for function 'in' must have Set;
What You Expected?
Able to query when filter multiple value in where condition.
Error message "funcition" should be "function" too.
How to Reproduce?
-- error
SELECT * FROM (
WITH temptable as (
SELECT 1 Id, '2023-08-25 00:00:00' UpdateDateTime, 10 Value
UNION
SELECT 1 Id, '2023-08-25 01:00:00' UpdateDateTime, 20 Value
)
SELECT temptable.Id, temptable.UpdateDateTime, temptable.Value, rolling.RollingValue FROM temptable
LEFT JOIN (
SELECT Id, UpdateDateTime, SUM(Value) OVER (PARTITION BY CAST(UpdateDateTime AS DATE) ORDER BY UpdateDateTime) AS RollingValue
FROM temptable
GROUP BY Id, UpdateDateTime, Value
) rolling ON temptable.Id = rolling.Id AND temptable.UpdateDateTime = rolling.UpdateDateTime
) tab
WHERE Id IN (1, 2)
-- no error
SELECT * FROM (
WITH temptable as (
SELECT 1 Id, '2023-08-25 00:00:00' UpdateDateTime, 10 Value
UNION
SELECT 1 Id, '2023-08-25 01:00:00' UpdateDateTime, 20 Value
)
SELECT temptable.Id, temptable.UpdateDateTime, temptable.Value, rolling.RollingValue FROM temptable
LEFT JOIN (
SELECT Id, UpdateDateTime, SUM(Value) OVER (PARTITION BY CAST(UpdateDateTime AS DATE) ORDER BY UpdateDateTime) AS RollingValue
FROM temptable
GROUP BY Id, UpdateDateTime, Value
) rolling ON temptable.Id = rolling.Id AND temptable.UpdateDateTime = rolling.UpdateDateTime
) tab
WHERE Id IN (1)
-- no error
SELECT * FROM (
WITH temptable as (
SELECT 1 Id, '2023-08-25 00:00:00' UpdateDateTime, 10 Value
UNION
SELECT 1 Id, '2023-08-25 01:00:00' UpdateDateTime, 20 Value
)
SELECT temptable.Id, temptable.UpdateDateTime, temptable.Value, rolling.RollingValue FROM temptable
LEFT JOIN (
SELECT Id, UpdateDateTime, SUM(Value) OVER (PARTITION BY CAST(UpdateDateTime AS DATE) ORDER BY UpdateDateTime) AS RollingValue
FROM temptable
GROUP BY Id, UpdateDateTime, Value
) rolling ON temptable.Id = rolling.Id AND temptable.UpdateDateTime = rolling.UpdateDateTime
) tab
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

试试 SET GLOBAL enable_nereids_planner=FALSE ，关闭查询优化


PATAND-248: Update instruction layout

Objective
Implement the change for the completion step
Branches

PAT: development
Axon: development
RS: task/PATAND-248_instruction_step
Cortex: development

SCENARIO:
Credentials:

Environment: QA
Org: hybridstudy
Study: QA-Regression
User<EMAIL_ADDRESS>Task: instruction test

Steps:

open flask/ resumed it
Login if it's not the case
Start the right task
Expected:
The new UI will fit the new ui (same margin that the other, etc.) There is none zeplin for this one

Close PATAND-248

Not sure if this was happening before this refactor but I notice a double "Cancel":

Example

Not sure if this was happening before this refactor but I notice a double "Cancel":
Example

I fixed this :)


doesn't work on ubuntu

Hello, @danijel3 ! Nice work, I have tested this on macbook and all works well, but on Ubuntu after I click Start button, and allowed use micro, all pending in Connecting status.
In docker logs I see this
web_1    | [2019-04-08 19:24:37,573] ice <INFO> Connection(0) Check CandidatePair(('<IP_ADDRESS>', 45489) -> ('<IP_ADDRESS>', 43511)) State.FROZEN -> State.WAITING
web_1    | [2019-04-08 19:24:37,573] ice <INFO> Connection(0) Check CandidatePair(('<IP_ADDRESS>', 45489) -> ('<IP_ADDRESS>', 43511)) State.WAITING -> State.IN_PROGRESS
kaldi_1  | LOG (online2-tcp-nnet3-decode-faster[5.5.259~1-25269]:Accept():online2-tcp-nnet3-decode-faster.cc:364) Accepted connection from: <IP_ADDRESS>
web_1    | [2019-04-08 19:24:37,575] ice <INFO> Connection(0) Check CandidatePair(('<IP_ADDRESS>', 45489) -> ('<IP_ADDRESS>', 43511)) failed : source address mismatch
web_1    | [2019-04-08 19:24:37,575] ice <INFO> Connection(0) Check CandidatePair(('<IP_ADDRESS>', 45489) -> ('<IP_ADDRESS>', 43511)) State.IN_PROGRESS -> State.FAILED
web_1    | [2019-04-08 19:24:37,575] ice <INFO> Connection(0) ICE failed
web_1    | [2019-04-08 19:24:37,576] web <INFO> Connected to Kaldi server kaldi:5050...

Specifically -- source address mismatch, which doesn't appear on macbook.
What should I check for this?

Thank you for this first issue report!
It seems that the server and the browser aren't running on the same computer, am I right?
Are they on the same network? How is this exactly used?

I just pointed that on macbook all working well, but on ubuntu I have source address mismatch log and connecting status forever.
I'm simply using docker-compose)

may be I don't have some drivers for it? can I check this somehow?

The example in the repo is designed mostly for running the the demo on the same computer as the browser. If you run them on different computers, you may run into issues. That is why I'm asking.
Judging from the IP addresses on the screenshot above, it seemed to me that the server was on a different computer, but maybe I'm mistaken.
The docker component should work the same anywhere, so even on a mac. The browsers, on the other hand... are you using Safari? I had some issues on Firefox. I think there is a bug in the javascript code somewhere...

ohh, my bad, but I didn't know that -- it not work while I'm connecting to service in incognito page from google chrome. Sorry for disturbing, again, thanks for your project!
P.S. -- can you please share how you train you model? Which dataset you used or model?

@danijel3 one more question
locally service working just fine, and I decided to deploy it in google cloud, just for fun =)
But when I click on connect button, status pending to "Connecting" and this happens in logs:
web_1    | [2019-04-10 15:47:31,358] ice <INFO> Connection(0) Check CandidatePair(('<IP_ADDRESS>', 44931) -> ('<IP_ADDRESS>', 62522)) State.WAITING -> State.IN_PROGRESS
web_1    | [2019-04-10 15:48:34,861] ice <INFO> Connection(0) Check CandidatePair(('<IP_ADDRESS>', 44931) -> ('<IP_ADDRESS>', 61759)) State.IN_PROGRESS -> State.FAILED
web_1    | [2019-04-10 15:48:34,866] ice <INFO> Connection(0) Check CandidatePair(('<IP_ADDRESS>', 44931) -> ('<IP_ADDRESS>', 62522)) State.IN_PROGRESS -> State.FAILED
web_1    | [2019-04-10 15:48:34,866] ice <INFO> Connection(0) ICE failed

What I'm missing? I'm allowed on VM upd ports --65535 and tcp 0-65535 (this is bad practice, but just for debug puprose)

I'm thinking that config in RTCPeerConnection need be specified, but how?

There are two things at play here:

most browser will complain if you want to send your voice to a remote location without encryption. To enable a remote service, you will need to create a certificate, which means you will need a computer that has a domain name assigned to it. Fortunately, if you have an HTTPS server somewhere, you can use those certificates directly in the server.
You need to enable stun, by adding a line in the config, like you suspected. The line is:

    config.iceServers = [{urls: ['stun:stun.l.google.com:19302']}];

right before the RTCPeerConnection construction, as you mention above.

I add stun urls as you suggest and declare in docker-compose.yml, in web service
ports:
  - "19302:19302/udp"

But still have this issue(

You shouldn't need to open the UDP ports. It's a peer-to-peer connection. Should work fine without it.
Did you make sure you're not getting any errors in the browser?
My docker-compose.yml looks like this:
version: '3.3'
services:
  kaldi:
    image: "danijel3/kaldi-online-tcp:PL"
  web:
    image: "danijel3/kaldi-webrtc"
    volumes:
      - ${PWD}/client.js:/server/static/client.js
      - ${PWD}/servers.json:/server/servers.json
      - /etc/ssl/certs/my.crt:/server/server.crt
      - /etc/ssl/private/my.pem:/server/server.key
    entrypoint:
      - python3
      - /server/server.py
      - --servers=/server/servers.json
      - --cert-file=/server/server.crt
      - --key-file=/server/server.key
    ports:
      - "8080:8080"

I have certificates generated by certbot for https, but have this error
web_1    | [2019-04-10 20:30:48,698] asyncio <ERROR> SSL handshake failed
web_1    | protocol: <asyncio.sslproto.SSLProtocol object at 0x7f303e2396d8>
web_1    | transport: <_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>
web_1    | Traceback (most recent call last):
web_1    |   File "/usr/lib/python3.7/asyncio/sslproto.py", line 625, in _on_handshake_complete
web_1    |     raise handshake_exc
web_1    |   File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
web_1    |     self._sslobj.do_handshake()
web_1    |   File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
web_1    |     self._sslobj.do_handshake()
web_1    | ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:1056)
web_1    | [2019-04-10 20:30:48,712] asyncio <ERROR> SSL error in data received
web_1    | protocol: <asyncio.sslproto.SSLProtocol object at 0x7f303e2396d8>
web_1    | transport: <_SelectorSocketTransport closing fd=7 read=idle write=<idle, bufsize=0>>
web_1    | Traceback (most recent call last):
web_1    |   File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
web_1    |     ssldata, appdata = self._sslpipe.feed_ssldata(data)
web_1    |   File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
web_1    |     self._sslobj.do_handshake()
web_1    |   File "/usr/lib/python3.7/ssl.py", line 763, in do_handshake
web_1    |     self._sslobj.do_handshake()
web_1    | ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:1056)

I'm used this args
"--cert-file","/server/fullchain.pem", "--key-file","/server/privkey.pem"

But this is not important for now, because I deploy service and use Firefox instead of Chrome, FF allowed using micro by http
In web-console I see just this
ICE failed, add a TURN server and see about:webrtc for more details


Added biobloomfilter example summary file to the testdata

Creating a new "Issue" for adding biobloomtools to mulitQC

Thanks! Module request issue: ewels/MultiQC#324


Add scaler for logger.

Add scaler for logger using cwm-keda-external-scaler.
Signed-off-by: Azeem Sajid<EMAIL_ADDRESS>

why do we need another cwm-keda-external-scaler container? Can't we use the same one for both autoscalers just with different scaling objects?

why do we need another cwm-keda-external-scaler container? Can't we use the same one for both autoscalers just with different scaling objects?

Yes, we can.
Slipped my mind.
I'll update that.


buildSrc bizarrely doesn't compile one dependency when upgrading to Gradle 5

My buildSrc used to compile fine before Gradle 5.0, but upgrading breaks Grgit for whatever reason. It's only that one dependency. Not sure what's going on. 🤷♂
Project: https://github.com/SUPERCILEX/Robot-Scouter/tree/8a5dfc0ade1e31386fd8c261a8aa708a9808b3a1
Setup: ./gradlew setup
Run ./gradlew wrapper --gradle-version 5.0-rc-2 twice. The second time will show compilation errors relating to Grgit.

Can you please include the error you are seeing?

It's symbol not found errors (could not find Grgit). As if I didn't have the dependency at all.

grgit-gradle only has a runtime dependency on grgit-core, which is why Gradle 5.0 (correctly) doesn't have it on the compile classpath. It was probably published with an outdated version of the plugin-publish plugin @ajoberstar .

Gotya, thanks! Just curious, why did this work before?

It worked before because Gradle <5.0 would not separate compile/runtime for Maven dependencies.


Sinclair pull request

Module 02 More Gradient Boosting
Overall: As always, good kernel. Easy to follow. Good score.
Feedback:  Try more XGBoost param tuning.
Do more feature engineering.

"Talking" through your code with comments is helpful to those reading your code and also your future self.
Good use of a function to clean/wrangle data
Feature importance often times can help us get closer to determining new features to engineer
Nice feature importance chart 📊

Still not completely sure why annual_usage ranked higher on your earlier version.

May want to add the %%time magic function to your code to benchmark your runtime 🏃

BUT as we discovered, be careful with using the variables defined in that cell, outside of that cell. Maybe define the variables in a previous cell.

Use XGBoost for gradient boosting.

Nice score 🚀
What are your thoughts on XGBoost?

Submit new predictions.

✅

Commit your notebook to your fork of the GitHub repo.

✅


Explicit public toNormal method

We have thousands of distinct datasets that we merge together and the underlying Sketch's get Merge called to get a resulting Sketch. We're seeing a significant amount of time spent in maybeToNormal.

Would it be better for us to store all of the datasets with the "normal" Sketch instead of a sparse one? In other words, we'd call ToNormal (or something like that) before calling MarshalBinary. Would this reduce the time spent merging?

First of all thanks so much for taking the time to plot this... this is great

so Sparse improves the estimation of low cardinalities...
once somethign is normalized it can't be switched back
what about adding a NewNoSparse function that creates a HyperLogLog sketch without sparse?

That works as well. Would you recommend that we always call NewNoSparse since our data sizes are always greater than 100? Finally, since we're calling MarshalBinary to store the data and then fetching it later using UnmarshalBinary, how could we have UnmarshalBinary not call New and call NewNoSparse? Is there a way we can signal to UnmarshalBinary that we've already called New and it's initialized with the right precision?


[How to Run Offline Perception Visualizer]libGL error: failed to load driver: swrast

 I try to run offline perception visualizer according to the document how_to_run_offline_perception_visualizer.md.
When it came to the last step, run the visualizer with command:

/apollo/bazel-bin/modules/perception/tool/offline_visualizer_tool/offline_lidar_visualizer_tool
There is no window jumping out, error messages:

The visualization window did not come out because the libGL error: failed to load driver:swrast
By checking the glfw_viewer.cc code,
`bool GLFWViewer::WindowInit() {
if (!glfwInit()) {
AERROR << "Failed to initialize glfw !\n";
return false;
}
window_ = glfwCreateWindow(win_width_, win_height_, "opengl_visualizer",
nullptr, nullptr);
if (window_ == nullptr) {
AERROR << "Failed to create glfw window!\n";
glfwTerminate();
return false;
}`
It seems that the function glfwCreateWindow gives the libGL error message, it can't create a window.
I think it may be related to the GPU driver. But I have installed the GPU driver in docker according to
how_to_run_perception_module_on_your_local_computer.md. I've used the deviceQuery to test it, the result is:

So what's the problem?

Do you use command "./NVIDIA-Linux-x86_64-375.39.run --no-opengl-files -a -s" on your host ubuntu 14.04?

@chucklqsun My host ubuntu is 16.04, and the NVIDIA driver is 384.90, I installed the driver using .run file without any parameter, and the driver in docker is 384.90, I install it with parameter "--no-opengl-files -a -s"
Do you mean that I need to install the driver again on my host pc with parameter "--no-opengl-files -a -s"?

Yes, use version 375.39 and with parameters. And you may use ubuntu 14.04, which is recommended by Apollo Team.

@chucklqsun So you think that maybe the GPU driver version problem? I remember that the doc says that it's not essential to use the 375.39, you just need to keep the GPU driver version in docker is the same to the one in host.

@hzdsdhr Maybe you can refer here: https://github.com/ApolloAuto/apollo/issues/1687

My host machine is also Ubuntu16.04

$ uname -a
Linux xxxxxx 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

My host and docker Nvidia driver version are both 384.98, not recommend 375.39

xxx@in_dev_docker:/apollo$ nvidia-smi
Mon Dec 18 11:52:48 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.98                 Driver Version: 384.98                    |
|-------------------------------+----------------------+----------------------+

@hzdsdhr did you solve your issue? if so, could you share your solution?

@hzdsdhr @hadiTab
Any updates? did anyone solve this problem?

reinstalling drivers with --no-opengl-files fixed the problem for me


Cover web API approaches for the BWA Auto render mode scenario

Description
Thanks @AmBplus ... Yes, we don't have a single source of truth. We do say that the HttpClient service will need to be registered in the server and client projects. We don't provide further information at this time. We'll use this issue to track the work, and I'll try to work on this soon ... next week if possible.
PU ISSUE: https://github.com/dotnet/aspnetcore/issues/51468
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/call-web-api?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/call-web-api.md
Document ID
c7e59a08-1c60-32c2-75fd-33cb77ff7a5d
Article author
@guardrex

Please pay attention also to this example, HttpClient is performing as it should when authentication is involved https://github.com/dotnet/aspnetcore/issues/51468#issuecomment-1969591668

Please don't forgot the docs for CSRF and authorization requirements. Most PoC examples are missing this.
The Web API should also return a 403 in Web assembly mode, but a challenge in server mode.
Greetings Damien

The draft article just went up, but note that it's very draft-y-ish at the moment. It's HOT 🔥 off the keyboard at this stage ... a bit of a 🦖🧠 dump 😆. I'll be back tomorrow morning, Tuesday, for another round of updates.
You can also find links in the PR's opening comment to the new sample apps:

WASM app with a backend web API
BWA that both makes web API calls to an external (outside of the BWA) backend web API and to an internal (inside the BWA) web API. The article must cover both, and they seem to compose well (clearly) in one sample app as two distinct APIs with two distinct sets of components.

I haven't reached the security updates yet. That will either be added tomorrow or on a separate PR following this one.

Note that the PR will go in today just to get better coverage into place quickly 🏃♂.
I'll open a new issue for the security aspects and get to it quickly. Hopefully, it will be resolved by the end of the week 🤞🍀.


gps: vcs: suppress git password prompts

What does this do / why do we need it?
This change suppresses git password prompts in more places. Cherry picked from #1250 (https://github.com/golang/dep/pull/1250/commits/f1f0bac72043f48decc01e93c642b9900c2b0c98).
Which issue(s) does this PR fix?
It might fix: #1356

tip $GOCACHE failures:
testproj.go:112: go standard error:
testproj.go:113: initializing cache in $GOCACHE: mkdir /test-dep-home-does-not-exist: permission denied

This now includes a bonus commit to resolve some intermittent appveyor failures.


Add golang-lint tool

blocking/waiting for https://github.com/mesg-foundation/core/pull/580 first
closes https://github.com/mesg-foundation/core/issues/589

https://fixmie.com services like that may be a solution and it uses suggestions so that could be nice

@krhubert test TestServiceStartError is failing now. can you investigate and fix please?

@antho1404 I saw it and I even request access for it, but still don't get it. But from thier adds this is standard go vet + go lint tools so everthing we have with golint
@NicolasMahe I was waiting for daemon to be merged, now I can continue it and fix all issues

Yes, maybe it is simple and useful but it's really hard to tell without seeing the product as it requires access. Maybe is super hard and messy, maybe it is ... and so on.
For now, we have this tool which is also nice and gives colorized output (https://circleci.com/gh/mesg-foundation/core/4510). Also, you can run it on your localhost before commit which isn't possible with fixmie or simillar solutions


Seperated 'gun' types from 'wearable' types

I've taken a look at issue 82 and have tried to at least make the problem better.
The issue comes from the items retrieved from the t.dev API. I had noticed that each item had a list of types. Some of them containing one or more, such as 'gun' or 'wearable'. What I've done is simply remove the 'wearable' type from their list if they already have the gun tag.
I've also introduced (or enabled really) a new type 'gun' which is labeled as Weapon for the /loot-tier page.
One thing I've noticed is that it still shows melee items when 'wearable' is only selected. It seems these items only have the tag 'wearable'. Not sure on how to filter these since this entire issue looks like its a problem from how the GQL API is structured? Let me know what you think.

.deploy to development

Looks great to me, time to 🚀

.deploy


Firefox update fails due to version not being semver

https://github.com/puppeteer/puppeteer/actions/runs/10296787718/job/28498746452

@Lightning00Blade PTAL


automate process of tagging a version in git

Your documentation says you should use git to tag your versions for installs and publishes to work.
Having an elm-get version command will make manually keeping your git tags in sync with the information in the dependencies.json a lot easier.

You can also implement elm-get version patch/minor/major to update the dependencies.json with a new version, create a commit & a tag.
See npm version

I see how that'd be more convenient, but I do not want to mess with anyones version control. I'm sure people feel all different ways, and I'd rather folks know exactly what's happening to them.


clear browser cache? PhantomJS 2.1.1 Selenium JAVA

Hello everyone.
I'm stuck with some issue. Most probably the reason is that browser cache is overloaded or smth like this.
The algorithms i run to test:
A)

Open the initial page
Login.
Load some page on website.
Many interactions with the page. interaction with 7 elements, file upload.
Load the next page for the same interactions ->

Phantomjs crashes at page load with this:
Fatal Windows exception, code 0xc0000005.
PhantomJS has crashed. Please read the bug reporting guide at
<http://phantomjs.org/bug-reporting.html> and file a bug report.

Error communicating with the remote browser. It may have died.
Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58', time: '2014-03-27 11:29:39'
System info: host: '****-PC', ip: '<IP_ADDRESS>', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_71'
Driver info: driver.version: RemoteWebDriver

If i run the same algorithm without a lot of interactions with the pages, it works well:
B)

Open the initial page
Login.
Load some page on website.
skip interactions.
Load the next page (no interactions)
Load the next, next,next, etc page_n (no interactions)
Work well, no crashes.

So i guess, most probably is that there is much info in the cache after the page interactions, thus it crashes the driver. Tried with

--disk-cache=false

Didn't change anything.
I Found that there was some .clearCache() function implemented before, but i didn't find it in phantomjs 2.1.1 which i use.
Any suggestions how to solve the problem?
Full config:
26-May-2016 12:07:38.781 INFO [http-apr-8080-exec-6] org.openqa.selenium.phantomjs.PhantomJSDriverService.<init> arguments: [--ignore-ssl-errors=true, --ssl-protocol=any, --web-security=false, --load-images=false, --disk-cache=false, --webdriver=39192, --webdriver-logfile=C:\Users\slipo\IdeaProjects\testSpring\tomcat9\bin\phantomjsdriver.log]
26-May-2016 12:07:38.781 INFO [http-apr-8080-exec-6] org.openqa.selenium.phantomjs.PhantomJSDriverService.<init> environment: {}
[INFO  - 2016-05-26T05:07:40.206Z] GhostDriver - Main - running on port 39192
[INFO  - 2016-05-26T05:07:40.307Z] Session [c54495b0-22ff-11e6-9463-e3a991c1ab65] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":false,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36","webSecurityEnabled":false}
[INFO  - 2016-05-26T05:07:40.307Z] Session [c54495b0-22ff-11e6-9463-e3a991c1ab65] - page.customHeaders:  - {"Accept-Language":"en-GB"}
[INFO  - 2016-05-26T05:07:40.307Z] Session [c54495b0-22ff-11e6-9463-e3a991c1ab65] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"windows-7-32bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"},"phantomjs.page.settings.resourceTimeout":70000,"phantomjs.page.settings.clearMemoryCaches":true,"phantomjs.page.settings.userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36","phantomjs.page.customHeaders.Accept-Language":"en-GB"}
[INFO  - 2016-05-26T05:07:40.308Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: c54495b0-22ff-11e6-9463-e3a991c1ab65

This issue was solved for me by refactoring the code to fetch image and CSS files from local rather than from the internet.

can you pls show an example of what you did?

@opahopa, sure. The project that I am a part of has been developed using react/redux and uses PhantomJS to run the unit test cases written using Chai/Mocha. There were 2 main fixes that solved this problem -

There was a test case which needed to access a 'https' URL to GET an image to test a functionality. I downloaded the image, made it a part of my repository and refactored the code to point to that instead.

// Some code here
img: 'https://d30y9cdsu7xlg0.cloudfront.net/png/47682-200.png'

was then changed to
// Some code here
img: 'static/images/fileBroken.png'

Refactored the code for a constructor call - There was a function being initialized inside the constructor which used an imported object as a parameter.

import {model} from 'SampleModel'
class myClass {
// Some code here
   super(){
      myfunction(model)
   // some code here
   }
}

This was refactored into -
class myClass {
   static model = {// values}
   super() {
      myfunction(model)
   }
}

These two changes solved the issue for me. I have included the list of references I used to solve this issue which might be useful for you. Since this is definitely a SegFault kind of an issue, I would suggest you to find if resources are pointing to an unavailable resource (like an older version of Phantom being referenced in your code).
Hope this helps!
References -
https://github.com/ariya/phantomjs/issues/14020
http://www.tomshardware.com/forum/239451-45-0xc0000005-access-violation
http://stackoverflow.com/questions/35586707/casper-phantom-crashes-and-auto-restart
https://github.com/ariya/phantomjs/issues/11503
https://github.com/ariya/phantomjs/issues/14018
https://github.com/angular/angular/issues/6917


In-line pin commands crashing game?

I'm trying to integrate Scribble into a fairly large project and have a question about how the pin commands [pin_right], [pin_left] and [pin_center] function, as they seem to be crashing things. Most likely a case of me missing a small detail.
I have a function called createbook() that stores a bunch of strings into a large ds_grid for reference later, then a ds_list called choicelist that is used universally for most menus (named because it was "choices" a player had in dialogue, which was the first menu type I made).  The strings are loaded out of the grid and into choicelist upon opening a book, and those strings are displayed on the screen. What it currently looks like:

I am attempting to create headers in the book by centering the text, then left aligning text on subsequent lines. When using [fa_center] and [fa_left] tags, they behave as they would naturally in Game Maker, which is to say the text is centered on the .draw coordinate, which is not the middle of the page. I figured pin commands would solve this, but when attempting to use any to see how they even work, I get this:

I am unsure how to proceed and no amount of using other methods with scribble() seems to do the trick, unless I simply am unaware of the proper one to use, or if I should even be using pin inline commands to achieve this effect.
Also, as a side note, I'm aware I shouldn't be changing fonts to change colors, but this is exactly why I'm trying to implement Scribble; I plan on getting rid of most of those fonts once I can properly grasp how to use it. I originally had all these because I have typable sprites as special characters and I didn't want them colorized whenever I blended the white version of the font.

Ha! This is a bug accidentally introduced alongside a new feature in v8.8. I can probably hotfix that tonight but if I get delayed by something then downgrading to v8.7.x will likely fix the problem.

Fixed for 8.8.1 (https://github.com/JujuAdams/Scribble/releases/tag/8.8.1)


comment does not show

I add the JS of  utterances into my html, but there is no comment zone shows, could you help me ? thanks to any helps!

I have solve this problem, it is because chinese space is different english, thank you guys!


Feature add book label options

In this Milestone I did the following activities :
Added  the List All Books method
Added the List all labels Method
Added the  add book method
Preserved by saving collections in .json files.
Fix linter issues

@thanks


Line Data & Line Chart Integration

Following #16, the Line Chart component should have the method call to add the Line Data component, as well as automatically import the data from the component.

Feature implemented in #18.
However, it might happen that the design changes to use only one component (with no separation between chart and data)
This is to be decided.

The concept should be followed throughout. The work for the prototype is done, however, #35 and #32 will different handling.


go get github.com/qasaur/gremgo returns an error

Thank you for creating a go client.  When I received an error when running the 'go get' command.  Thank you for taking a look at it.
$ go get github.com/qasaur/gremgo
github.com/qasaur/gremgo
../github.com/qasaur/gremgo/request.go:32:17: multiple-value uuid.NewV4() in single-value context

I found link that discusses this issue: https://github.com/hlandau/acme/issues/293.  Apparently, doing a 'go build' generates the above error.
I have tried both go version 1.9.4 and 1.10.

Thanks for letting me know @skuo-bl, I've fixed this issue now and go get should work without any major issues.
Let me know if any future problems arise. Closing this.

Sadly:
go get -u github.com/qasaur/gremgo
# github.com/qasaur/gremgo/vendor/github.com/gorilla/websocket
../../go/src/github.com/qasaur/gremgo/vendor/github.com/gorilla/websocket/client.go:277:19: undefined: proxy_FromURL
../../go/src/github.com/qasaur/gremgo/vendor/github.com/gorilla/websocket/client.go:277:43: undefined: netDialerFunc
../../go/src/github.com/qasaur/gremgo/vendor/github.com/gorilla/websocket/client.go:317:10: undefined: doHandshakeWithTrace
../../go/src/github.com/qasaur/gremgo/vendor/github.com/gorilla/websocket/conn.go:393:10: c.writeBufs undefined (type *Conn has no field or methodwriteBufs)


Each row as a form

Hi
I am using this in conjuction with Redux Form's [multirecord]http://redux-form.com/5.2.4/#/examples/multirecord?_k=a651wa) forms.
I want some of the columns to be form inputs such as checkboxes and inputs, but I can't think of a good way to accomplish this, given how the tables are constructed based on columns and not rows.
Any ideas on how to accomplish this?

This type of question is probably better suited for Stack Overflow or the Gitter chat room.
I'm not familiar with the library you linked to. But it seems like you could just use VirtualScroll and render <form>s in your rows however you want. Give that a shot? :)

Closing this issue because it doesn't require any action on my part and I like to keep the issues view actionable. I'll still see responses though!


Phy is not calibrating as often as it should (IDFGH-7743)

Environment

Development Kit:     ESP32-DevKitC
Kit version (for WroverKit/PicoKit/DevKitC): v4
Module or chip used:  ESP32-WROOM-32
IDF version (run git describe --tags to find it): patched v4.4 (but verified on master).
Build System:         Make
Compiler version (run xtensa-esp32-elf-gcc --version to find it): xtensa-esp32-elf-gcc (crosstool-NG esp-2021r2-patch3) 8.4.0
Operating System:    Linux
Using an IDE?: No
Power Supply:         USB

Problem Description
The register_chipv7_phy call in phy_init.c may be called with PHY_RF_CAL_NONE even though it should use PHY_RF_CAL_PARTIAL.
The code in phy_init.c only checks if the current reset reason was deep sleep. However, that doesn't guarantee that the stored calibration data is recent. There could have been many power downs since the last calibration.
See https://github.com/espressif/esp-idf/blob/c2ccc383dae2a47c2c2dc8c7ad78175a3fd11361/components/esp_phy/src/phy_init.c#L715-L719
Expected Behavior
register_chipv7_phy is called with PHY_RF_CAL_PARTIAL if the device was completely powered down since the last initialization.
Actual Behavior
register_chipv7_phy is called with PHY_RF_CAL_NONE if the device was woken from deep sleep. However, it does not verify that the calibration was from a previous deep-sleep run.
Steps to reproduce

Write a program that connects to the network when pin 32 is high. (Pin number is arbitrary).
Set pin 32 to high. The network connects.
Disconnect the board from power.
Connect pin 32 to GND.
Connect the board to power.
Go to sleep.
Connect pin 32 to 3V3.
Wake up from sleep
The registery_chipv7_phy is called with PHY_RF_CAL_NONE, even though the board was completely disconnected.

Code to reproduce this issue
Only did it in Toit:
import esp32
import gpio
import net

main:
  pin := gpio.Pin 32 --input

  if pin.get == 1:
    print "opening network"
    net.open

  esp32.deep_sleep (Duration --s=3)

If you connect the board to power at step 5 before going to sleep at step 6, then I think the chip will already perform a full calibration at step 5. So since step 8 is the first wake up after the first sleep at step 6, then the chip according to my knowledge is behaving exactly according to the documentation, in that it doesn't recalibrate after a deep sleep (which is the only one that occured in this case after power-on).

From what I can see, step 5 would only do a calibration if I use WiFi (or Bluetooth). Since calibration is costly and slow there is no reason to do it otherwise.

Hi @floitsch
    if (esp_rom_get_reset_reason(0) == RESET_REASON_CORE_DEEP_SLEEP) {         calibration_mode = PHY_RF_CAL_NONE;     }     esp_err_t err = esp_phy_load_cal_data_from_nvs(cal_data);     if (err != ESP_OK) {         ESP_LOGW(TAG, "failed to load RF calibration data (0x%x), falling back to full calibration", err);         calibration_mode = PHY_RF_CAL_FULL;     }
Regardless of whether step 5 is calibration or not, step 9 will ensure that there is calibration data available.

interesting. I thought I had tried it and didn't see the "falling back to full calibration", but I can't fully remember anymore.
If it's falling back to a full calibration I'm fine with closing. (and I don't think it's super critical anyway).

Thanks for reporting and sharing the updates, feel free to reopen.


UTF8 in execute block get corrupted

Hello,
When I use execute with some special characters (accent and such) they get corrupted. Not sure how to fix that.
Thanks,

@robmorgan Is UTF8 still forced for MySQL, or does it have to be explicitly declared in the config?

@gwagroves You need to define the charset/collation within the configuration.

Example
environments:
    default_migration_table: phinxlog
    default_database: development
    production:
        adapter: mysql
        host: localhost
        name: production_db
        user: root
        pass: ''
        port: 3306
        charset: utf8
        collation: utf8_unicode_ci

See documentation (section Configuration/Environments)


[feature_request]: merge all pdfs in sitemap urls' order

What is missing in the project?
Currently pdf files could be merged into single one with random order. Shall we merge all pdf files in sitemap urls' order? I have a patch locally for pull request if push permission is granted.
Solution?
No response

Hi @dwancn , you can push a PR on this repo based on your forked repo and branch. Ill have a look at it.

Close by #120


Enable Compiler Optimizations for Release Build

I'm not sure why this has been left out, but it looks like rc3.9 was build with it.

Same as others.

Right, I put that flag in when I removed the -fopenmp that got incorrectly used for CUDA.


Add C RHS using ccall

The idea here is to use a vector field defined in C. The following works:
using OrdinaryDiffEq
using Libdl

C_code = """
void sir_ode(double *du, double *u, double *p, double *t){
    double β = p[0];
    double c = p[1];
    double γ = p[2];
    double S = u[0];
    double I = u[1];
    double R = u[2];
    double N = S + I + R;
    du[0] = -β*c*S*I/N;
    du[1] = β*c*S*I/N - γ*I;
    du[2] = γ*I;
}
""";

const Clib = tempname();

open(`gcc -fPIC -O3 -xc -shared -o $(Clib * "." * Libdl.dlext) -`, "w") do f
    print(f, C_code)
end

function sir_ode_jl(du,u,p,t)
    ccall((:sir_ode,Clib,), Cvoid,
          (Ptr{Float64}, Ptr{Float64}, Ptr{Float64}, Ptr{Float64}), du, u, p, Ref(t))
end

δt = 0.1
tmax = 40.0
tspan = (0.0,tmax)
u0 = [990.0,10.0,0.0] # S,I,R
p = [0.05,10.0,0.25] # β,c,γ
prob = ODEProblem{true}(sir_ode_jl, u0, tspan, p)
sol = solve(prob, Tsit5(), dt = δt)

An out-of-place version is probably too fiddly given that in-place is preferable in any case.

Closed with 8045d5c020b47bbb8443622edff787f749cf1f92


[LEGAL] sort out incompatible licenses

nightly build tried to assemble dependencies that are under incompatible licenses.
this needs to be sorted out.

see https://github.com/CycloneDX/cyclonedx-node-yarn/actions/runs/11642165611/job/32421468450#step:11:13
licenses-files.zip

the incompatibility is reported by flict==1.3.0
the day before the report, we used flict==1.2.14 in nightly builds. maybe there was an issue here?
or maybe this is just an coincidence and some dependency changed unnoticed?
lets find out :D
issues-build-yarn.lock.zip
no-issues-build-yarn.lock.zip

latest flict release was bugged. see https://github.com/vinland-technology/flict/issues/398


Cannot run in edge mode

After trying to run the demo.py with -e or --edge parameters ive got critical error :
[critical] ValueError: memoryview assignment: lvalue and rvalue have different structures

(venv) PS B:\Github\depthai_hand_tracker> & b:/Github/depthai_hand_tracker/venv/Scripts/python.exe b:/Github/depthai_hand_tracker/demo.py --edge
Palm detection blob     : B:\Github\depthai_hand_tracker\models\palm_detection_sh4.blob
Landmark blob           : B:\Github\depthai_hand_tracker\models\hand_landmark_lite_sh4.blob
PD post processing blob : B:\Github\depthai_hand_tracker\custom_models\PDPostProcessing_top2_sh1.blob
Sensor resolution: (1920, 1080)
Internal camera FPS set to: 39
Internal camera image size: 1152 x 648 - pad_h: 252
Creating pipeline...
Creating Color Camera...
Creating Palm Detection pre processing image manip...
Creating Palm Detection Neural Network...
Creating Palm Detection post processing Neural Network...
Creating Hand Landmark pre processing image manip...
Creating Hand Landmark Neural Network (1 thread)...
Pipeline created.
[14442C1051FD60D700] [11.544] [NeuralNetwork(4)] [warning] Network compiled for 4 shaves, maximum available 13, compiling for 6 shaves likely will yield in better performance
[14442C1051FD60D700] [11.775] [NeuralNetwork(8)] [warning] Number of inference threads assigned for network is 1, assigning 2 will likely yield in better performance
[14442C1051FD60D700] [11.775] [NeuralNetwork(8)] [warning] Network compiled for 4 shaves, maximum available 13, compiling for 6 shaves likely will yield in better performance
[14442C1051FD60D700] [11.786] [NeuralNetwork(4)] [warning] The issued warnings are orientative, based on optimal settings for a single network, if multiple networks are running in parallel the optimal settings
may vary
[14442C1051FD60D700] [11.786] [NeuralNetwork(8)] [Pipeline started - USB speed: SUPER
warning] The issued warnings are orientative, based on optimal settings for a single network, if multiple networks are running in parallel the optimal settings may vary
[14442C1051FD60D700] [12.369] [Script(2)] [critical] ValueError: memoryview assignment: lvalue and rvalue have different structures
At:

Yes, this is due to a bug in the latest version of depthai (2.12.0 or 2.12.1). Luxonis team is aware of this bug and actually has already found a fix. The fix should be available in 2.12.2.
So I suggest one of these 2 options:

wait for 2.12.2, should be available soon;
downgrade depthai to a previous version:

pip uninstall depthai
pip install depthai==2.11.1

Thank You for the information i'll try the latter while waiting for the fix

Luxonis team has released depthai 2.13 which includes the fix.
The following command should install this release:
pip install -U depthai

The next release fixed the issue for me.


Make hostnames for support services configurable via env

Let's try that again, but better: this makes the hostnames for postgres, redis, jackett and transmission configurable via environment variables, defaulting to the currently used hostnames if the environment variables are missing.
This will fix #184 and #221.

is this currently working? the env vars are not being picked up by docker

Sadly no - I had a tidy-up of my github forks a while ago and as this hadn't had any reaction for months after I'd created it I deleted it as part of that (which is why this PR is closed without merging).


CC_93_DoublePendulum strange behavior

I tried to set the initializing values to:
float r1 = 200;
float r2 = 200;
float m1 = 40;
float m2 = 40;
float a1 = 1;
float a2 = 0;
float a1_v = 0;
float a2_v = 0;
float g = 1;

At first the double pendulum doesn't carry much energy, so it swings low.

However, later on it starts to swing higher and higher up:

This is an abnormal behavior as energy won't increase itself. Is the code written wrongly or I'm thinking something wrong?

Reproduced the issue:

Questioning if it has to do with the code.
Floating-point imprecision is probably the reason.
Not an issue when you add the drag, as it outweighs the tiny impreciseness.
@gldanoob considered solved or closed?

The issue seems to come from the fact that in the original webpage where the formulas were taken from, they begin by stating that:
x1 = L1 sin θ1
y1 = −L1 cos θ1   -- note the negative here
x2 = x1 + L2 sin θ2
y2 = y1 − L2 cos θ2   -- note the subtract here

This difference propagates through all the formulas, and is therefore different from what was entered in this script.
I tried entering in the proper value, but it was basically upside down. I then rotated the entire thing by PI, and it seemed to help, but it still blows up every once in a while. So there may be another factor that is causing the velocity to increase. Probably has something to do with the
a1_v += a1_a;
a2_v += a2_a;
a1 += a1_v;
a2 += a2_v;

portion of the code. It seems like it needs some time values and derivatives.


Octal literal syntax error is not handled for all cases

From @StrongRef on December 15, 2015 9:32
When declaring an octal literal, an error is shown.

However, if another error is introduced, the error for octal literal usage is omitted.

Another strict rule violation, this time both errors are visible.

I could like into this one, just want to make sure this is an actual error.
Copied from original issue: Microsoft/vscode#1318

This is the tsserver. Moving to TS.

@dbaeumer @StrongRef so here is what happen in these situation. Compilers can have error from different states : parsing, binding, type-checking (this include grammar errors), and emitting phases.The compiler will not report grammar error during typ-checking(e.g "Octal Literals are not available when targeting ECMAScript5  and higher") if there are a parsing errors (e.g from doing 1.foo). However, binding error (e.g the one from  ...{p:1, p:2}) will be reported regarding less of parsing errors. The main reason of such behavior is to prevent cascading errors effect.
Arguably, it may be the case taht we should move the grammar checking phase from type-checking phase into binding phase. @CyrusNajmabadi can weight-in more.

should be covered by https://github.com/Microsoft/TypeScript/issues/6802


Problems on Windows

lazyjj 0.2.0 via cargo +nightly install --git https://github.com/Cretezy/lazyjj.git --locked.

Navigation with j/k executes twice, so can only navigate two rows at a time.
Probably related to that (due to "passing over" the line in between?) the "Diff" pane looks garbled (i.e. a partial mix of different commits overlaid) after navigation.

I tested with Windows Terminal and Contour, same behaviour so I suspect some Windows specific issue.
Happy to help debugging.

I think this is due to the removal of the check if a key is being pressed down (as opposed to being raised).
I will release a v0.2.1 with a fix for this today.

v0.2.1 is out with a bug fix for this issue. Please let me know if this is happening in any other places.
Thanks for the report!

@Cretezy I just used lazyjj again at v0.4.2 and still see the problem from second bulletpoint of OP.


Unable to manually mark a stopped reader as offline

Problem description
When you don't explicitly close a reader it will be stuck forever in an online state because it's never detected as failed and there are no methods to close it without creating a reader.
Sample code:
reader_group = manager.create_reader_group(readergroup, scope, stream)
reader = reader_group.create_reader(reader)

thread '' panicked at 'Error while creating the reader: SyncError { error_msg: "add reader Reader { name: "" }", source: SyncUpdateError { error_msg: "Failed to add online reader Reader { name: "reader" }: reader already online" } }
Problem location
python client binding
Suggestions for an improvement
Implement methods to list all readers in a reader group and be able to close them by name/id.

This can be done but it currently involves manually creating the object, which obviously is a terrible UX.
We can add a method on the Group to do this.

That would be great👍


Document pod dns handling wrt kubelet specified value and CNI results

Today we can obtain DNS configuration from two places

Kubelet

      --cluster-dns stringSlice                                  Comma-separated list of DNS server IP address.  This value is used for containers DNS server in case of Pods with "dnsPolicy=ClusterFirst". Note: all DNS servers appearing in the list MUST serve the same set of records otherwise name resolution within the cluster may not work correctly. There is no guarantee as to which DNS server may be contacted for name resolution.
      --cluster-domain string                                    Domain for this cluster.  If set, kubelet will configure all containers to search this domain in addition to the host's search domains

CNI plugin return value

https://github.com/containernetworking/cni/blob/master/SPEC.md#network-configuration

We need to document how CRI-O and the runtime should configure the POD DNS.
The alogithm used by rkt seems to make the most sense
https://coreos.com/rkt/docs/latest/networking/dns.html
resolv.conf can be generated by multiple components. The order of precedence is:
1. If --dns, et al. are passed to rkt run
2. If a CNI plugin returns DNS information, unless --dns=none is passed
3. If a volume is mounted on /etc/resolv.conf
4. If the application container includes /etc/resolv.conf

Also the question becomes should the runtime be allowed to modify the resolv.conf, or should cri-o update it based on interactions with the runtime.

/cc @mrunalp

@mcastelino @mrunalp Did anything ever happen with this?

No action in another year.  I guess this is not something we need..  Reopen if you disagree.


[WIP] Slippy source dataset

@dorukozturk it would be nice if you can try this branch to visualize your raster layers and see if it works - thanks,