GSSoC: fix sidebar position

As on scrolling the sidebar also moves with the page. So, making the position of the sidebar fixed would be great

https://github.com/oxiton-foundation/click-metrics/assets/142779809/1767e967-3ccc-43f4-b264-515332cae032

Don't Create multiple issues. You can fix it on #50 Right? Push on the same branch. These are just <10 lines of changes. I will accept only one PR for both.

@Swarnendu0123 can you assign me?

IG if @root-0101 is not working on it @DevGajjar28 can work. Wait for the message from @root-0101 before starting.

I have done the required changes, Please check the PR #93

I would like to work on this issue , please assign this to me.
@Swarnendu0123


Market place Add subtle boarder on the search bar

1px #E9E9E9 with fully rounded ends to add a little visibility and structure to the control

is it ok to use the standard one like this? it can handle the dark mode too.


KAFKA-2794: Added group support to authorizer.

@Parth-Brahmbhatt +1 on your suggestion. can you file a follow-up jira. Thanks.

@Parth-Brahmbhatt Would you like to continue working on this? If yes @harshach could help reviewing and merging this contribution.

Closing for cleanup.


[BUG] Gists aren't showing indents

Describe the bug
I'm trying to embed code fragments from GitHub Gists using the built-in gist short code. The Gist is rendering, but it is not showing indents. All of the text is left justified. It appears to be happening on the demo site too: https://ublogger.netlify.app/theme-documentation-built-in-shortcodes/#2-gist
Expected behavior
The Gist should show with proper indents.
Screenshots

Build Environment

OS: macOS
Theme version/commit 1.2.0
Hugo version 0.80.0

Please try to use Hugo extended version before opening the issue.
Preview Environment

OS: macOS
Browser: Chrome, Safari

Hello
Unfortunately, this is a legacy from a past project. I'll try to figure out what's the matter, but unlikely in the next version.
Perhaps closer to February

Hello
Unfortunately, this is a legacy from a past project. I'll try to figure out what's the matter, but unlikely in the next version.
Perhaps closer to February

Fixed and already added to master

Fixed and already added to master


[Event Change Request] codeunit 226 "CustEntry-Apply Posted Entries" - OnApplyApplyCustEntryFormEntryOnAfterCustLedgEntrySetFilters

Describe the request
Hello, can you please add the variable CustEntryApplID to the OnApplyApplyCustEntryFormEntryOnAfterCustLedgEntrySetFilters event?
    local procedure RunApplyCustEntries(var CustLedgEntry: Record "Cust. Ledger Entry"; var ApplyingCustLedgEntry: Record "Cust. Ledger Entry"; CustEntryApplID: Code[50])
    var
        ApplyCustEntries: Page "Apply Customer Entries";
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnApplyApplyCustEntryFormEntryOnAfterCustLedgEntrySetFilters(CustLedgEntry, ApplyingCustLedgEntry, IsHandled, CustEntryApplID);
        if IsHandled then
            exit;

        if CustLedgEntry.FindFirst() then begin

    [IntegrationEvent(false, false)]
    local procedure OnApplyApplyCustEntryFormEntryOnAfterCustLedgEntrySetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ApplyingCustLedgerEntry: Record "Cust. Ledger Entry" temporary; var IsHandled: Boolean; var CustEntryApplID: Code[50]);
    begin
    end;

Additional context
We would like also set the variable in our function. Otherwise the variable is not set.
Internal work item: AB#527166

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 18867.


[BUG]: Sometimes files download as m4a instead of flac and then do no sound good through Traktor

Which tool
tidal-gui
Version
<IP_ADDRESS>
Platform
Windows 10
Describe the bug
https://listen.tidal.com/playlist/e57db963-ccf1-48f1-a5b8-387f76b05acb
Track IDs:
https://tidal.com/browse/track/2609058
https://tidal.com/browse/track/5175573
Both download as m4a, sound fine through a normal music player but then for some reason are very garbled through Traktor Pro. Unsure what would cause this, but the bug is that they aren't downloaded as flac files.
Relevant log output
No response
Add screenshots
No response

This is still an issue.


this.$i18n returns undefined

Hello,
As the title says, the global object this.$i18n is returning undefined.
Here is my main.js file:
import Vue from 'vue'
import Vuetify from 'vuetify'
import axios from 'axios'
import VueAxios from 'vue-axios'
import VueHead from 'vue-head'
import VuexI18n from 'vuex-i18n'

import App from './App.vue'
import router from './router'
import store from './store'
import enUS from './locales/enUS.js'
import zhTW from './locales/zhTW.js'

import 'vuetify/dist/vuetify.css'

const axiosInstance = axios.create({
  baseURL: process.env.SERVER_ENDPOINT || 'http://localhost:3020',
  headers: {'Content-Type': 'application/json'}
})

Vue.use(Vuetify)
Vue.use(VueAxios, axiosInstance)
Vue.use(VueHead)
Vue.use(VuexI18n.plugin, store)

Vue.config.productionTip = false

Vue.i18n.add('zhTW', zhTW)
Vue.i18n.add('enUS', enUS)

Vue.i18n.set('zhTW')

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

In my App.vue file I have the following to check if this.$i18n is defined:
export default {
    methods: {
        change: key => {
            console.log('i18n:', this.$i18n)
        }
    }
}

Anyone have an idea why this.$i18n is undefined?

Hi @ll931217
A quick idea: I think this could be due to the use of an arrow function to with the change method in your app component. Arrow functions change the this context to the current closure. Therefore this.$i18n would not point the vue component instance anymore.
Could you try to change the method to:
export default {
    methods: {
        change(key) {
            console.log('i18n:', this.$i18n)
        }
    }
}

@tikiatua Hello, seems that like fixed the problem. Just learnt something new about the arrow functions, thank you!


Latitude Longitude set to geoJSON

hi,
Just stumbled on this and think that it could be pretty useful in one of my projects. But just curious whether it is possible to convert a set of latitude, longitude json to geoJSON format. This is because I already have it saved in decimal degress but one of the map update methods actually works only with GeoJSON. Thanks for the great work. Cheers - M.M

It's currently not possible to convert lat/lng coordinates into GeoJSON format but that's also not really necessary as geolib works with both formats. Maybe a converter would be a nice addition for v3. I will keep that in mind.


multiarch build

Hi Andrei,
Thank you for contributing the project!
We will run a few checks on this change and your other pull requests.
If everything works fine, we'll approve them.
Thank you,
Ben.


How to install this library

Hi, How to install this library on linux. please write build instruction.

Run ./rebuild.sh

Thank you my dear friend :)


graphql-client throws Error instance instead of ApolloError instance.

I'm experiencing a slight breaking change from 0.5.10 to 0.5.26. Basically, errors thrown from graphql-client are instances of ApolloError at the first, but not at the later.
Here goes a code to reproduce this issue:
import React, { Component } from 'react'
import { ApolloError } from 'apollo-client/errors/ApolloError'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'

class MyContainer extends Component {
  save () {
    this.props.mutate()
      .catch(error => {
        if (error instanceof ApolloError) {
          // This works in 0.5.10
          // This does not work in 0.5.26
          alert('Error is an instance of ApolloError')
        }
      })
  }

  render () {
    return (
      <button onClick={ this.save }>Save</button>
    )
  }
}

const query = gql`
  mutation MutationName
    mutate {
      resultingField
    }
  }
`

export default graphql(query)(MyContainer)

I found this problem doing error normalization using the previous version, but once I've update the module, the code stopped working.

Is this behavior still in 0.7.3? I’m not sure if we have the capacity to support older versions. If you have a legitimate reason that keeps you in 0.5.x then please let us know!

@calebmer I'll try to update to 0.7.3. I do understand the lack of support right now, and as far as my understanding of SemVer goes I think it's ok to have eventual breaking changes while a major version is not released. It is a strange issue though. If I happen to have the same issue with version 0.7.3 I'll report back here and either continue using 0.5.10 or work on a pull-request.
Thanks for your feedback.

Hello! I've upgraded to 0.7.3 and there still persists. It's interesting to note two things about this version:

The class ApolloError is now exported as high-level api (which means I can import { ApolloError } from 'apollo-client');
Apollo internally seams to assert if an error is an Apollo error by simply verifying the existence of the graphQLErrors property in the error object. But this seams to be handled differently on the ts version of the files. I don't really understand how TypeScript compiles, but can we suppose this might be an issue with TypeScript itself?

Here goes the two files I'm talking about, in the TypeScript and JavaScript version, as the second is not available at this repository but only after compiling locally:
./errors/ApolloError.d.ts:
/// <reference types="graphql" />
import { GraphQLError } from 'graphql';
export declare function isApolloError(err: Error): err is ApolloError;
export declare class ApolloError extends Error {
    message: string;
    graphQLErrors: GraphQLError[];
    networkError: Error;
    extraInfo: any;
    constructor({graphQLErrors, networkError, errorMessage, extraInfo}: {
        graphQLErrors?: GraphQLError[];
        networkError?: Error;
        errorMessage?: string;
        extraInfo?: any;
    });
}

./errors/ApolloError.js:
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
export function isApolloError(err) {
    return err.hasOwnProperty('graphQLErrors');
}
var generateErrorMessage = function (err) {
    var message = '';
    if (Array.isArray(err.graphQLErrors) && err.graphQLErrors.length !== 0) {
        err.graphQLErrors.forEach(function (graphQLError) {
            message += 'GraphQL error: ' + graphQLError.message + '\n';
        });
    }
    if (err.networkError) {
        message += 'Network error: ' + err.networkError.message + '\n';
    }
    message = message.replace(/\n$/, '');
    return message;
};
var ApolloError = (function (_super) {
    __extends(ApolloError, _super);
    function ApolloError(_a) {
        var graphQLErrors = _a.graphQLErrors, networkError = _a.networkError, errorMessage = _a.errorMessage, extraInfo = _a.extraInfo;
        var _this = _super.call(this, errorMessage) || this;
        _this.graphQLErrors = graphQLErrors;
        _this.networkError = networkError;
        _this.stack = new Error().stack;
        if (!errorMessage) {
            _this.message = generateErrorMessage(_this);
        }
        else {
            _this.message = errorMessage;
        }
        _this.extraInfo = extraInfo;
        return _this;
    }
    return ApolloError;
}(Error));
export { ApolloError };
//# sourceMappingURL=ApolloError.js.map

I just did some research and what’s happening here is kind of interesting. This is not a bug in TypeScript, ApolloErrors will never be an instance of ApolloError given how Errors work and how JavaScript classes work.
As you can see in the TypeScript output (and the Babel output) if the constructor function (_super) returns a value then that value will be used as this and then eventually returned. Most constructors do not return values:
function Person (name) {
  this.name = name;
}

assert(typeof Person.call({}, 'Caleb') === 'undefined');

However when calling Error a value is returned:
assert(typeof Error.call({}, 'My error message') !== 'undefined');

This means on the line TypeScript builds:
var _this = _super.call(this, errorMessage) || this;

…the default of this is not used because _super is returning a value. This is not something we can stop as that is just how the ECMAScript class implementation works. See Babel for the same behavior. We could, of course, implement ApolloError using the old-fashioned way of defining JavaScript “classes,” a function; or you could use the isApolloError function which it appears like we use internally (or even run the check inside yourself: err.hasOwnProperty('graphQLErrors')). Let me know what your preferred solution is.
So this does appear to be a breaking change in the way TypeScript emits classes<EMAIL_ADDRESS>vs<EMAIL_ADDRESS>However, it seems like the old TypeScript behavior was incorrect according to the spec.
It looks like @helfer added the duck-typing method isApolloError to workaround this. Now we know why when using the ApolloError constructor we never get actual ApolloError objects 👍

What a lesson you gave me here :) Thanks a lot for your interest in the matter, really.
I still think it's quite strange that we can't compare types, for I believe this can happen in quite so many other situations other than what I was trying to do. It's odd, indeed.
Well, I guess we can close this issue now :)


Circular dependencies & webpack

There are a few circular imports in scryptlib that lead to problems when including it in a webpack build.

abi.ts > compilerWrapper.ts > contract.ts
compilerWrapper.ts > contract.ts
compilerWrapper.ts > contract.ts > scryptTypes.ts
compilerWrapper.ts > contract.ts > scryptTypes.ts > utils.ts
scryptTypes.ts > utils.ts

hello, i use webpack to build a scryptlib min js, but it didnot report any error, my branch is https://github.com/sCrypt-Inc/scryptlib/tree/feature/web3
10:13
can you show me how make webpack report error?

cannot  reproduce this issue


NPM initial install error

Getting an error after lerna bootstrap
ERROR output:
NpmUtilities.execInDir        ("run prepublish", [], "./packages/core")
Error: Command failed: npm run prepublish
fs.js:81
throw new TypeError('Expected options to be either an object or a string, ' +
^
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "prepublish"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>prepublish: node ../../scripts/helper.js precompile publish
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>prepublish script 'node ../../scripts/helper.js precompile publish'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the @gov.au/core package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ../../scripts/helper.js precompile publish
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs @gov.au/core
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls @gov.au/core
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/shaunmacdouagll/Sites/uikit/packages/core/npm-debug.log
at ChildProcess.exithandler (child_process.js:204:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Socket.<anonymous> (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)

<EMAIL_ADDRESS>prepublish /Users/shaunmacdouagll/Sites/uikit/packages/core
node ../../scripts/helper.js precompile publish

npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'prepublish' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prepublish' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
7 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/shaunmacdouagll/Sites/uikit/packages/core/node_modules/.bin:/usr/local/bin:usr/local/sbin:/Users/shaunmacdouagll/.composer/vendor/bin:/usr/local/Cellar/php55/5.5.38_11/bin:/usr/local/packer:/usr/local/bin:usr/local/sbin:/Users/shaunmacdouagll/.composer/vendor/bin:/usr/local/Cellar/php55/5.5.38_11/bin:/usr/local/packer:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
8 verbose lifecycle<EMAIL_ADDRESS>CWD: /Users/shaunmacdouagll/Sites/uikit/packages/core
9 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c', 'node ../../scripts/helper.js precompile publish' ]
10 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
11 info lifecycle<EMAIL_ADDRESS>Failed to exec prepublish script
12 verbose stack Error<EMAIL_ADDRESS>prepublish: node ../../scripts/helper.js precompile publish
12 verbose stack Exit status 1
12 verbose stack     at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
12 verbose stack     at emitTwo (events.js:106:13)
12 verbose stack     at EventEmitter.emit (events.js:191:7)
12 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
12 verbose stack     at emitTwo (events.js:106:13)
12 verbose stack     at ChildProcess.emit (events.js:191:7)
12 verbose stack     at maybeClose (internal/child_process.js:886:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13 verbose pkgid<EMAIL_ADDRESS>14 verbose cwd /Users/shaunmacdouagll/Sites/uikit/packages/core
15 error Darwin 16.4.0
16 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "prepublish"
17 error node v6.10.1
18 error npm  v3.10.10
19 error code ELIFECYCLE
20 error<EMAIL_ADDRESS>prepublish: node ../../scripts/helper.js precompile publish
20 error Exit status 1
21 error Failed at the<EMAIL_ADDRESS>prepublish script 'node ../../scripts/helper.js precompile publish'.
21 error Make sure you have the latest version of node.js and npm installed.
21 error If you do, this is most likely a problem with the @gov.au/core package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error     node ../../scripts/helper.js precompile publish
21 error You can get information on how to open an issue for this project with:
21 error     npm bugs @gov.au/core
21 error Or if that isn't available, you can get their info via:
21 error     npm owner ls @gov.au/core
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]

I have installed the latest node and npm

Hi @shaunmac
I know you closed this already. Just making sure, don't install the uikit via this repo. Install the modules via npm. This is how to use them and this is how we will support them in the future.

Hey @dominikwilkowski, thanks for the info.
So I should not be following this:
https://github.com/govau/uikit#build

If you just want to use the uikit please use the description here: https://github.com/govau/uikit#how-to-use
If you want to run the development build and contribute, follow the build steps. :)

haha I'm not sure I'm at that kind of caliber to contribute, but thank you for the help.


Increase gRPC request timeout to 20 seconds when sending snapshots

Cherry-pick #2391
git cherry-pick -s -x e3e2821fe3eae707915b78215526da078d2d75a7
Cherry-pick was clean.

Ping @andrewhsu @thaJeztah @anshulpundir


But how can I get complete list of 16-bit service class UUIDs?

The complete list of 16-bit service class UUIDs(data type:0x03) is neither in eventArgs.Advertisement.DataSections nor in eventArgs.Advertisement.ServiceUuids.
The doc says, property ServiceUuids is "The list of service UUIDs in 128-bit GUID format in a BluetoothLEAdvertisement."
So how can I get complete list of 16-bit service class UUIDs in a Bluetooth LE advertisement watcher(BluetoothLEAdvertisementWatcher) callback event(BluetoothLEAdvertisementReceivedEventArgs)?

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

ID: f37be7c9-1772-b3d0-682e-72bff7cb0f82
Version Independent ID: 54e3a8f9-1236-f3f9-c113-3331c46be412
Content: BluetoothLEAdvertisement Class (Windows.Devices.Bluetooth.Advertisement) - Windows UWP applications
Content Source: https://cpubwin.visualstudio.com/DefaultCollection/windows-uwp/_git/winrt-api-build?path=%2fwinrt-api-build%2fwindows.devices.bluetooth.advertisement.bluetoothleadvertisement.yml&version=GBlive&_a=contents
Product: uwp
Technology: winrt-reference
Git Login: stevewhims
Microsoft Alias: stwhi

This is C# code
if (localName.Equals("xHC42"))
{
    Debug.WriteLine("HC42 scanned");

    Debug.WriteLine(String.Format("GUID(Count {0}): ", eventArgs.Advertisement.ServiceUuids.Count));
    foreach(var guid in eventArgs.Advertisement.ServiceUuids)
    {
        Debug.WriteLine(guid.ToString());
    }
    Debug.WriteLine(String.Format("DataSection(Count {0}): ", eventArgs.Advertisement.DataSections.Count));
    foreach(var section in eventArgs.Advertisement.DataSections)
    {
        Debug.WriteLine(String.Format("Type: {0:X02}", section.DataType));
        Debug.WriteLine("Data: " + IBufferToHexString(section.Data)); // String IBufferToHexString(IBuffer buffer)
    }
    Debug.WriteLine(String.Format("ManufacturerData(Count {0}): ", eventArgs.Advertisement.ManufacturerData.Count));
    foreach (var section in eventArgs.Advertisement.ManufacturerData)
    {
        Debug.WriteLine(String.Format("Type: {0:X04}", section.CompanyId));
        Debug.WriteLine("Data: " + IBufferToHexString(section.Data));
    }
}

This is C# result
HC42 scanned
GUID(Count 0):
DataSection(Count 2):
Type: 01
Data: 06
Type: 09
Data: 78 48 43 34 32
ManufacturerData(Count 0):

This is a screenshot of a ble demo app on google play.

The bluetooth module is a ble5.0 pass-through module named 'HC42'.

Hi, @xixiaxixi, I've reached out to the feature team for input on this question. If they need the documentation to be updated, then I can do that. Thanks for filing the issue.
~Steve

Hello xixiaxixi,
First thank-you for taking the time to provide such great information in the issue. We believe this is a defect and I have filed a work item on my team, we are not aware of a workaround unfortunately.
OS Work Item 23527561: BluetoothLEAdvertisementReceivedEventArgs does not contain complete list of 16-bit service class UUIDs
Secondly, you could speed up the resolution if you could provide traces that will let us narrow down the cause, so we don't need to spend time setting up a repro until validation. The traces will contain Bluetooth snoop logs so consider taking them on a test system.
Thanks,
Fg

@xixiaxixi, are you able to provide the requested info? Just a reminder so that we can keep this issue fresh. ~Steve

Hello @xixiaxixi ,
We are unable to reproduce this issue on current Windows Insider or later builds. You can either provided updated traces and we can provide the information to the appropriate team, or you can try a Windows Insider build.  Please help us help you.
Thanks,
Fg

Hello @xixiaxixi ,
I've kept my internal issue open until I hear back from you either confirming it's not an issue in newer builds or that you still have a unique case. Can you please let me know either way? If not I'll close my internal issue.
Thanks,
Fg

Hi, @xixiaxixi. I'll go ahead and close this issue now, since there's no further action we can take. Please reopen if you have the info that we need (described above). Thanks! ~Steve


Document support multiple language switch in every pages

Is your feature request related to a problem? Please describe.
When someone read a document, he/she maybe want to switch to another language, with docsify's navbar, the path information will lose, i.e language switch in navbar only jump to README page, not another language of current page.
In #4025, add English | 中文 switch, we can add it to every pages.
Describe the solution you'd like
There is no suitable plugin in https://docsify.js.org/#/awesome?id=plugins
Maybe we need to write a plugin to do it, calculate current path, generate English | 中文 button in every page's head.
Like :memo: Edit Document button write in https://github.com/apolloconfig/apollo/blob/master/docs/index.html#L139

Describe alternatives you've considered
Add English | 中文 in every pages manually.

That sounds like a good idea!
BTW, is it possible to apply some logic directly to the translation menu? e.g. when the user clicks the English menu, then the English version of the current page will be displayed?


Indexing a field that is an array of objects

Hey, wonder if anyone has been able to achieve this?
(default)
users
  -> {userId}
     -> twitterAccounts (an array field)
       -> [
               {
                  // other fields,
                  username <- this is the field that I want to index
               }
            ]

Thanks

Yes it works for me when I have an array of string in the firestore database


W3Validator Aria-expanded missing in input

Aria-expanded for button works correctly, but the validator requires aria-eexpanded for the inputs as well

+1


Remove console logs

The console logs from this plugin are polluting the browser console in every page that I visit, which is distracting when doing development debugging.
Can you please remove and clean up all console statements from the code and only run these when you are testing/debugging?
Other than that great plugin, I don't know what Google was thinking.

Pushed an update to remove the logs.
https://github.com/volumetric/Bring-Google-View-Image-Back/commit/b11a872257520c9bd0304456773c40376e3d2fcc


update Homebrew install instructions

tap is no longer needed.

I just updated the readme right before this PR came in, thanks for opening this PR anyway.


Update identity framework version

Related to https://github.com/wso2/carbon-identity-framework/pull/4470

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/4372072313

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/4372072313
Status: success


Should Indigo remove its canvas on halt?

When calling halt on Indigo game instance, I noticed that canvas created by Indigo is not removed. Is that expected?
Currently, I'm removing it manually, but since Indigo creates a canvas element by its own, then one might expect it also removes it after being unmounted.

Is that expected?

Expected? I believe you have already given this more thought than anyone else on the planet. :wink:
I guess it depends what halt means. For example if you wanted to stop indigo but keep the canvas - say to create static art - then 'halting' it but not removing it makes sense maybe?. Equally I think you're right, there's definitely a scenario where the user means ...'shutdown'? 'Remove'? 'Be gone!'? 'Erase yourself from existance'?
There are definitely more improvements to make in this area and it hasn't been given a lot of thought yet. Ideas and help welcome!

For example if you wanted to stop indigo but keep the canvas

I haven't considered it, but it makes sense.
Another potential use case - having some splash screen / main menu in Tyrian in which Indigo is initialized in the background, but the game loop is suspended. Clicking on start button will resume the game. There is a chance that this will be much faster, and the resources won't be wasted if the player never leaves the splash screen (for example they only wanted to see the leaderboards which are on Tyrian side).
We can also go in a completely different direction and say that the whole canvas management should be done by parent app (like Tyrian).
For full flexibility in that area, I'm thinking about:

launch variant that allows passing canvas id, instead of parent id.
halt to completely get rid of Indigo along with its canvas, unless it was not created by Indigo. There could also be a removeCreatedCanvas flag which is set to true by default. This is similar to how Phaser does things.
suspend -  that is stopping game and event loops, but is not destroying the Indigo instance.
resume - resume the Indigo from the suspended state.

The latter two might be more complicated.

There's a lot to unpack there, I think some of this might need a lot of thinking about. I like the idea of a launch event that passes the canvas ID.. it could give Tyrian a nice way of interacting directly with the DOM that Indigo creates. However, as that DOM isn't created by Tyrian as such (and has no presence in the DOM tree that's created in the view method) we could find ourselves heading into territory where we're modifying the DOM with JS directly whcih could get messy.
I suspect we might be better served with a shutdown and a halt? One for removing the canvas completely (shutdown) and one for halting Indigo in it's current state? shutdown might work nicely when Indigo is used on it's own in an electron app, as that would allow us to listen on an event to then close the window (useful for headerless games).
suspend and resume we might want to leave to the developer to implement themselves. While it might be beneficial to completely stop the game loop (and subsequent events) there will be scenarios where you'll want to press a button to resume, or wait for an event. In these instances you don't really want the game ignoring events, especially if Indigo isn't being used in conjunction with Tyrian. I'd argue a better approach would be for the develoepr to maintain a property in the model that can be interogated in the update and then set when they want the game to be paused, suspened etc.
I don't necassarilly have any answers to the best way of achieving all this of course.. just my 2 pence  😛


cppfile added

Assigned Issue Number ?
#1410
Language Opted ?
C++
Number of files added or updated ?
1
Name of these files ?
algo_ds_101 => Data_Structures => Linked_list => Singly_Linked_List => Remove duplicates in a Linked List.cpp
example :
Algorithm => Search_Algorithm => Linear_Search => Linear_Search.py
Checklist

[x] I've read the contribution guidelines.
[x] I've referred the correct issue number.
[x] I've fill up this entire template correctly.

hey I have added C++ code to remove duplicates from linked list, please verify my code as soon as possible


Added support to configure the websocket options.

Didn't find a good way to test this, but if you have any ideas I'll gladly add a test.

Hi @havarnov, so, I actually implemented this already for the new release.
Check it out in this branch, and let me know what you think.
https://github.com/twitchax/AspNetCore.Proxy/tree/4-release

Aha, I didn't realize. Then I guess you can discard this PR.
I have tested the 4-release branch and it works for my use case. I'm using the ControllerBase.ProzyAsync method.
I do have one suggestion on those methods, what about using the following pattern?
public static Task ProxyAsync(this ControllerBase controller, string httpEndpoint, string wsEndpoint, Action<HttpProxyOptions> httpProxyOptionsBuilder = null, Action<WsProxyOptions> wsProxyOptionsBuilder = null);

Hi @havarnov, so, I actually implemented this already for the new release.
Check it out in this branch, and let me know what you think.
https://github.com/twitchax/AspNetCore.Proxy/tree/4-release

Aha, I didn't realize. Then I guess you can discard this PR.
I have tested the 4-release branch and it works for my use case. I'm using the ControllerBase.ProzyAsync method.
I do have one suggestion on those methods, what about using the following pattern?
public static Task ProxyAsync(this ControllerBase controller, string httpEndpoint, string wsEndpoint, Action<HttpProxyOptions> httpProxyOptionsBuilder = null, Action<WsProxyOptions> wsProxyOptionsBuilder = null);

@havarnov, I had thought about doing that.
The problem is that it encourages bad behavior.  The builder methods are great for the Startup methods because I can "build" the resulting routes on your behalf on startup once.
The problem with using the builders with the ProxyAsync extension method is that that method is run every invocation, and the builders would get "built" every invocation.  In general, this is not terrible, but it is a bad habit to get into, when the options are likely static for every invocation.  If they aren't, then you can still "build" the options earlier in the invocation to your controller endpoint.
Does that make sense?

Closing in favor of 4.0.0 release.


auto install gpu verison when docker build

Describe the feature
in my Dockerfile , i install mmcv-full cuda version first, by when i install other mmlab module , it would reinstall another verison mmcv-full by requirements , and could be a  cpu version.
i found mim will install gpu version when torch.cuda.is_available()
so , is there a way , i can build a image install gpu verison and without gpu machines
Motivation
A clear and concise description of the motivation of the feature.
Ex1. It is inconvenient when [....].
Ex2. There is a recent paper [....], which is very helpful for [....].
CI/CD auto build docker images , maybe without gpu
Related resources
If there is an official code release or third-party implementations, please also provide the information here, which would be very helpful.
Additional context
Add any other context or screenshots about the feature request here.
If you would like to implement the feature and create a PR, please leave a comment here and that would be much appreciated.
maybe make FORCE_CUDA  environment variable work
and cuda verison can get from torch.version.cuda  or  other environment variable

Hi @mofanke , sorry for the late reply. Now supports installing gpu version without gpu machine. More details at https://github.com/open-mmlab/mim/pull/96.


plot_evoked_topomap colorbar in last subplot

When composing a custom topomap-layout and passing the axes-parameter to plot_topomap, it is assumed that is a colorbar is desired, it should be in the rightmost column.
Solves issue #2887

can you share before and after plots?

We may be re-inventing the wheel here. plt.colorbar has an ax parameter we could use. You list in the axes from which space will be stolen to make room for the colorbar. In our case, that should be all the currently existing columns.

@jaeilepp can you have a look? thx

LGTM.
@wmvanvliet that may be possible, but I think it would require a larger overhaul. Maybe in another PR.

Thanks for the pointer @wmvanvliet , that sounds pretty damn cool! I'll see if I can come up with something, though think @jaeilepp has a point about another PR. For that I would (will...) also get vmin and vmax automagically from the plots (otherwise the last plot determines the range).

merge if it works

Thanks @cjayb

FYI you can use magic word 'closes' instead of 'solves issue' to auto-close the issue on merge.

@jaeilepp Roger, thanks!


Add access logging feature to Server

Motivation:
Currently we cannot exactly write an access log for a server because our logging mechanism is based on a decorator and the decorator is only applied when a request is mapped to a service.
So it would be better to provide some access logging mechanism by a server itself, not a based on a decorator.
Modifications:

Define log format types. Also provide a default log format such as NCSA common log format and NCSA combined log format.
Add an interface to ServerBuilder to specify a log format and a log writer.
Try to write an access log after a response has been sent.
Add a site document.

Result:
Closes #817

@trustin @minwoox Please feel free to leave a comment. :-)

I referred to https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/rzaie/rzaielogformattokens.htm for the condition.

Let me leave a comment when this PR is ready for review. :-)

@trustin @minwoox Please review this PR again.  :-)

Thanks! Updated. :-)

@taicki Care to review?

Thanks, @taicki !

Disabled access logging by default.
Updated document about that.

Thanks! Updated.

Replaced Consumer<RequestLog> with Consumer<? super RequestLog>.

@trustin Sorry, I misunderstood your comment. :-) Fixed again. Would you have a look again?

Great job, @hyangtack ! :-)


Add class tag support for text/css predefined styles (SVGParser)

Handle style tag
Parse string (('.' | '#')  '{' ( ':'  ';'?)* '}')*
Parse class tag - implement styles from script

Closing since it was implemented in #452


tagObject Revision for Existing Files in HashStore

Implement the equivalent of the following HashStore-java issue tagObject Revision for Existing Files in HashStore

This has been completed via Feature-114: tag_object Update for Existing HashStore Files


Backwards compatibility checker:  Parameter 'model.1._unfused.0.l_cell.i2h_bias' is missing in file 'lstm_gluon_save_parameters_api-params'

http://jenkins.mxnet-ci.amazon-ml.com/job/restricted-backwards-compatibility-checker/8/console
INFO:root:Assertion passed for model : lenet_gluon_hybrid_export_api
INFO:root:Performing inference for model/API lstm_gluon_save_parameters_api and model
INFO:root:Fetching files for MXNet version : 1.0.0
ERROR:root:No trained models found under path : 1.0.0/lstm_gluon_save_parameters_api
WARNING:root:No training files found for lstm_gluon_save_parameters_api for MXNet version : 1.0.0
INFO:root:Fetching files for MXNet version : 1.1.0
ERROR:root:No trained models found under path : 1.1.0/lstm_gluon_save_parameters_api
WARNING:root:No training files found for lstm_gluon_save_parameters_api for MXNet version : 1.1.0
INFO:root:Fetching files for MXNet version : 1.2.0
ERROR:root:No trained models found under path : 1.2.0/lstm_gluon_save_parameters_api
WARNING:root:No training files found for lstm_gluon_save_parameters_api for MXNet version : 1.2.0
INFO:root:Fetching files for MXNet version : 1.2.1
Traceback (most recent call last):
  File "model_backwards_compat_inference.py", line 137, in <module>
    test_lstm_gluon_load_parameters_api()
  File "model_backwards_compat_inference.py", line 124, in test_lstm_gluon_load_parameters_api
    loaded_model.load_parameters(model_name + '-params')
  File "/work/mxnet/python/mxnet/gluon/block.py", line 394, in load_parameters
    name, filename, _brief_print_list(loaded.keys()))
AssertionError: Parameter 'model.1._unfused.0.l_cell.i2h_bias' is missing in file 'lstm_gluon_save_parameters_api-params', which contains parameters: 'model.2.weight', 'model.0.weight', 'model.4.bias', ..., 'model.4.weight', 'model.1._unfused.0.i2h_weight', 'model.2.bias', 'model.1._unfused.0.i2h_bias'. Set allow_missing=True to ignore missing parameters.

@piyushghai

@szha

@szha This should be closed as your fix is merged.

@marcoabreu FYI fix is merged, you can close the issue unless you still see the failure on MBCC CI.

Great, it works. Thanks a lot everybody for the great work and such a quick fix


Change quotes to make Windows Happy

What does this PR do?
Windows does not like go list 'tags' and needs double quotes instead

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Enhance Admin Service List Filters

After submitting the form, the admin shall be able to see previously selected options. The admin shall be able to search for location with Turkish lower case letters.

The structure of the form has been changed for the enhancement and a new query has been added for searches with Turkish characters. The admin is now able to see previously selected options.


[BUG] MountVolume.SetUp failed for volume "fluid-src-dir" : mkdir /alluxio-mnt: read-only file system

What is your environment(Kubernetes version, Fluid version, etc.)
Kubernetes: 1.15
Fluid: 0.3.0
Helm: v3
Describe the bug
Followed instructions at here
Trying to install fluid with Helm3 on GKE. Found that PODS in fluid-system stuck in 'container creating' status. Only controller-manager pod runs well. Here is the log:
kubectl describe pod/csi-nodeplugin-fluid-6dsff -n fluid-system  MountVolume.SetUp failed for volume "fluid-src-dir" : mkdir /alluxio-mnt: read-only file system
After changing the csi-nodeplugin-fluid daemonset.yaml by specifying the MountVolume as readOnly: False,
still not working.
What you expect to happen:
Fluid can be deployed on GKE
How to reproduce it
Helm install fluid fluid/
Additional Information

Can you run mkdir /alluxio-mnt in the k8s node?
You can use the follow command to check the node info.
kubectl get po -n fluid-system -o wide

Does GKE's kubelet has authority to create directory in k8s node?

It looks like GKE node's root file system is read only.
Does alluxio-mnt has to be in root / ?

I've fixed it in https://github.com/fluid-cloudnative/fluid/pull/223. And please delete the existing chart and  install with the chart: https://github.com/fluid-cloudnative/fluid/blob/fb123c104c4e0d8707260fcbb2b6de32f868054a/charts/fluid/fluid/values.yaml

And please follow the updated guide: https://github.com/fluid-cloudnative/fluid/blob/master/docs/zh/samples/accelerate_data_accessing.md
And notice:
注意: 上述mountPoint中使用了Apache清华镜像源进行演示，如果你的环境位于海外，请更换为https://downloads.apache.org/hbase/2.2.5/进行尝试


Windows 11 not showing custom image

What happens?
Describe the bug.
HackBGRT says it has displayed the image, however it has not, and windows shows the default image on boot, not even the OEM logo.
How this happens?
Explain exactly the steps you did:

Download HackBGRT-2.4.1.zip and extract all files.
Start setup.
Select install
Modify config.txt to use asus.bmp instead of splash.bmp
Reboot
Windows shows windows 11 logo, and not custom

Log file
setup.log
This does happen when booting without refind

Your log doesn't include the installation. Does it work with the default image? Did you copy asus.bmp manually or with the installer? When copying manually, make sure that the image format is exactly right.

Your log doesn't include the installation. Does it work with the default image? Did you copy asus.bmp manually or with the installer? When copying manually, make sure that the image format is exactly right. (Note that HackBGRT only reads the file, Windows shows it and so the BMP format requirements come from Windows.)

Thank you, I wonder why I didnt think of this.


Add AutoUpdate feature, fix bug in SU checking

Issue:
There was a bug in how we determine the latest SU.
Reason:
Fixes a bug adds a feature to help customers stay current.
Also added autoupdate feature.
Fix:
Changed logic for determining latest SU to also match SUs higher than March SU.
Validation:
Provide if applicable

@dpaulson45 I wrote Test-ScriptVersion as a proof of concept while these folks were deciding how to do their version checks. There was a thread on the best way to validate the signature. Turns out, the best way to do it seems to be the way we are doing it in Test-ScriptVersion.
So, this might get switched to consume Test-ScriptVersion in the future. For now we're going to merge it with its own implementation so we can get the fix out.


Use robust isfinite utility throughout

We use np.isfinite in many places across the code, however the numpy version of this function is not robust to many different types which is why we created the hv.core.util.isfinite utility. Unfortunately this is not yet used everywhere throughout the code, leading to bugs like https://github.com/ioam/holoviews/issues/3044 and https://github.com/ioam/holoviews/issues/3040

[x] Add unit tests

Ready to review and merge.

Looks good and the tests are green. Merging.


[Refactor] merge run function in vela up and application.Run

Currently, all cli commands except vela up run app by Run in Application package.

But vela up use separate logic:

We should merge them.

it was done now

it was done now


Move from MOD2 to FOD2

Though this is not directly related to Meza1, it is a regular question about the FOD wikis and certainly will take some of our time away from Meza1. It should therefore be tracked just so we keep time for it.
Open issues:

[x] get open_basedir, session.save_path, and upload_tmp_dir fixed on FOD
[x] install opcache
[ ] install diffutils
[ ] import all wikis from mod2-ops to fod2-dev
[ ] tell sysadmins we're ready to fire it up on fod2-ops

Sysadmins don't want to install anything that's not 64-bit. Diffutils is only provided in 32-bit.
Two possible resources for compiling our own 64-bit version:

https://amk1.wordpress.com/2013/04/11/diffutils-for-windows-64-bit/
http://osdir.com/ml/windows.gnu.user/2003-08/msg00000.html

Neat trick to figure out if an exe is 32- or 64-bit:
http://superuser.com/questions/358434/how-to-check-if-a-binary-is-32-or-64-bit-on-windows

I have Mingw64 on my laptop at home.  I can try to recompile there...except I just installed Windows 10 and have not tried compiling anything since I upgraded.  Who knows if it will still work...heh.  I'll work this as I have time.

Just finished downloading Ubuntu 15.04. Going to try it on that. I'll let you know how it goes. Not going to spend a ton of time on it since I'm not certain we'll be required to use a 64-bit version.
Little background: on FOD2 they're planning on going all-64-bit due to MOD2's instability supposedly being due to a mix of 32 and 64 bit applications. This doesn't really make sense to me, and it seems to me that us compiling a 64-bit version when the creators of the utility don't have any documentation on such a thing is probably less stable than just going with the 32-bit.

I at least decrypted the patch file from the Wordpress link above.  You can find it in my repo https://github.com/emanspeaks/Diffutils64 along with the directions for building in the readme in case someone else wants to try it before I have a chance.  Concur the 32 vs. 64 is probably not the real cause of the problems, considering some Windows core executables themselves aren't even all x64, but I always just let the admins believe they know what they are talking about... :-)

Who has two thumbs and a 64-bit Windows diffutils?
This guy.
https://github.com/emanspeaks/Diffutils64


No password mail

I signed up to sourcerer app using Github and it clearly states that username and password will be sent to your primary email.
But the issue is I didn't receive any such email from the sourcerer app.
Without a password, I am not been able to authorize my app in bash.

Had the same issue: Just use "forgot my password", you'll get a link to reset your password (actually set your password)

The same for me. I've the as @AlexisTM suggested and it works.

Ok thank you @AlexisTM


Authorization Policies - Should Cosmos Support?

Does this policy support makes sense for Cosmos? If not, should we disable this section for cosmos similar to the way we disable the relationship section?
@tarazou9 , @mbhaskar thoughts?

After discussed with @mbhaskar, Cosmos currently only support entity level authorization, but not field level authorization.

For the "field" section, the included and excluded columns, we could do a pass through, without honoring the setting config and not throwing an exception.
For the field auth check in the GQLFilterParser, we will do a skip on the check if it's cosmos, to fix the filter issue that we are seeing right now.

PR merged for addressing this issue https://github.com/Azure/data-api-builder/pull/1436, going to close this. In the meanwhile, future support for field level auth will need to be planned and designed future.

Reopening as this is an additional feature beyond entity and field level authZ, as is not yet decided on whether this will be supported in Cosmos

@seantleonard We will be adding this support with the next release.  cc : @mbhaskar

@sajeetharan I have been trying to understand if I should be expecting something like this:
"entities": {
    "User": {
      "source": "users",
      "permissions": [
        {
          "role": "authenticated",
          "actions": [
            {
              "action": "read",
              "policy": {
                "database"<EMAIL_ADDRESS>eq @claims.userId"
              }
            }
          ]
        }
      ]
    }
  }

to filter items based on the userId with Cosmos DB - but it does not seem to.
Does this issue imply that this is not supported yet, or am I just doing something wrong? Will it be in the next release?
Thanks!
@mbhaskar @tarazou9

@matthewhampton Cosmos doesn't support DAB database policies. Currently, the filter that you referenced will not work. I'll defer to @sajeetharan for whether any timelines are available.

Thank you, @matthewhampton. Currently, we do not have an estimated time of arrival (ETA). However, I will follow up with you once we have had a thorough discussion and established a timeline.

+1 @matthewhampton 's ask, this should be included in the functionality for CosmosDB for NoSQL.


Main character doesn't move on build unless Ignore Walkable Areas is checked.

In my older project and fresh new project; the main player can move about in the room fine when in Play(F5) mode but on exports (i'm exporting to .exe) the main player can't move from its initial position. I could only make the player move on builds if the Ignore Walkable Area is checked on the main player. Using godot 3.5.1

Thanks. We'll give it a look.

@LampGuitar1 we can't reproduce this bug.
Are you sure you actually defined a Walkable Area in the room? The behaviour you're describing is exactly what happens if you try to move a character in a room without defined WAs.
I'm going to close this as a false-positive. If you have proper steps to reproduce, please add them here and reopen the issue.
Thanks


Fix intro sentence

There is something wrong in the intro sentence.
I tried to guess what you probably meant based on what the GitHub Action does. Not 100% sure if I got it right now, so please check. :)

Hi @SvanBoxel you likely just missed this in GitHub.
But I have this amazing PR for you that I am sure you will merge in 1 minute :)

Hi @spier, I appreciate the PR and the reminder. 😄 Hitting the merge button in 3, 2, 1...


Delete Authorizer authorizeAdmin method

Feature
#4199
Describe the task
Many operations are only allowed for admins or bots. We should use new policy to remove this hardcoding and use policies to allow operations.

The authorizeAdmin method can't be deleted. There are admin-only operations currently that use it. However, the use of that method for authorizing bots has been changed with bots authorized based on roles and policies. Closing this issue.


ApplyChanges using old values?

Hi @tonysneed,
I'm having trouble applying changes on an object graph coming from JavaScript.
What I'm experiencing is a SQL update command with the old value, not the new one for foreign keys properties only.
In your experience, what could be the cause of this problem?
Thanks in advance.

Well, the problem has nothing to do with TE.
The other side of the foreign key still had a reference to the object I was modifying...
I should I've know that earlier ;)


求教在LLaMA-Factory微调了工具后，可以在这个项目中部署使用吗

有报错：
INFO:     <IP_ADDRESS>:46190 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 83, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 762, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 782, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 72, in app
response = await func(request)
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 299, in app
raise e
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 294, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/workspace/imitater/src/imitater/service/app.py", line 71, in create_chat_completion_v1
return await create_chat_completion(self._chat_model, request)
File "/workspace/imitater/src/imitater/service/chat.py", line 44, in create_chat_completion
result = await chat_model.function_call(**input_kwargs)
File "/workspace/imitater/src/imitater/model/chat_model.py", line 111, in function_call
agent_messages = self._agent.build_prompt(messages, tools)
File "/workspace/imitater/src/imitater/agent/react.py", line 105, in build_prompt
functions = get_functions(tools)
File "/workspace/imitater/src/imitater/agent/function.py", line 70, in get_functions
if tool["type"] == "code_interpreter":
KeyError: 'type'

参考以下配置
# imitater
AGENT_TYPE=aligned

CHAT_MODEL_PATH=Qwen/Qwen-14B-Chat
CHAT_MODEL_DEVICE=0
CHAT_TEMPLATE_PATH=templates/qwen.jinja
GENERATION_CONFIG_PATH=generation_config/qwen

成功了，感谢


What's the difference between --record-notifications and --log

As the title says - what's the difference between --record-notificiations nad --log flags? I see, since release of v2.7.1, the documentation started to use --log in place where older suggested --record-notifications, but it does not explain neither why this has changed nor if it is does the same, but is called differenty. What's more, both flags are still accepted as valid CLI flags, so I am not sure if they are really the same or not. Can someone explain these two to me? Also, is the --log one really needed for me to properly deal with the NTP5 tokens? I mean, it seems to heavily burden the node itself, but since it was absent in older version it seems people were able to deal with NTP5 without this option - or am I wrong?

The parameter "--record-notificiations" is deprecated and is no longer available in the latest version of the clients.
The parameter "--log" is more powerful. It not only provides all notifications and virtual machine running status, but also enables developers to query these states through RPC commands.


In concurrent scenarios the "scst_partition" header may be randomly omitted

Reproduction is quite simple :

Have a few threads that send messages with streamBridge with a partitionKey
Some of the messages will miss the scst_partition header

The number of messages without the header is variable but around a value that seems dependent on the number of threads. For example with 10 threads  around 10% of the messages are missing the header with my repro.
Respect of partition keys is critical in our case. We use it abundantly throughout our applications, mostly to avoid having multiple threads changing the same data at the same time.
I can reproduce this on main, but in our real world case we encounter the problem with Spring Boot 2.5.9 and Spring Cloud 2020.0.5, with a kafka cluster.
I'll submit a pull request with a failing test shortly.
I found no workaround for this problem, but really looking for one in the meantime (other that adding "synchronized" each time I use streamBridge)

I see a commit related to this ticket ... is it considered done ? Is it possible to have it backported to 3.1.x as it's quite critical ?

@snussbaumer the 3.1 is out of support and EOL. There is still a bit of a window for commercial clients, but that also mean any request has to come thru proper channels.
Why aren't you using 3.2.x?

Hum we're on the next to last version of spring cloud : 2020.0.5 (illford) and haven't have time to migrate to 2021.0.1 yet.
illford is already EOL ?

high @olegz : any news on this issue ? it's still open yet there's a commit that has been pushed related to it ... and if you could tell me about the support/EOL that would be great ? don't you support Spring Cloud N-1 ?

@olegz : are you sure it's been released ? I do not see a related commit on 3.2.x

hum ok, sorry the code is there, it was commited with other things on 3.2.x : "GH-SCF_856 Fix propper Cloud Event header prefix in StreamBridge"

but I still don't get the "3.1 is out of support and EOL" you said in an earlier post
According to https://github.com/spring-cloud/spring-cloud-release/wiki/Supported-Versions :

Spring Cloud follows the Pivotal OSS support policy and supports major versions for 3 years from the release date.
2020.0 (code name Ilford) is a major release that was released in December 2020 following Spring Framework 5.3 and Spring Boot 2.4. 2020.0.3 added support for Spring Boot 2.5 in addition to 2.4.

2020.0 ships with 3.1.6 as of today ... so 3.1.x should still get bug fixes, no ?

ok found it : https://spring.io/projects/spring-cloud-stream#support


Using flatten promise on idb transaction function results in lint error

Using flatten promise on idb put works, but not working on  idb transaction, perhaps because transaction has 2 declarations?
Screenshot

idb transaction

If i use idb directly there is no linting error.

I don't know how to solve this with types. For now, I would just say to use the promise instead of the flattened promise in cases like this.
If anyone knows how to resolve this issue with the types, I'd appreciate a PR.


How to create List

I want to create a List and I find List Widget. However, I can't find example or documentation to create List. I also need to update list. Please help me!

You could check the widgets example.


Typo "Azure storage emulator"→"Azure Storage Emulator"

https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-ruby

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change. @MarkMcGeeAtAquent

#sign-off

@SnehaGunda: I'm sorry - only the author of this article, @MarkMcGeeAtAquent, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


APE CLI does not delete all workflows (just overrides the existing ones)

Examples:
https://github.com/sanctuuary/APE/blob/06291693b27c27bfb0b7a506074c1d5524bc06ff/src/main/java/nl/uu/cs/ape/APE.java#L484
..executable files as well
https://github.com/sanctuuary/APE/blob/06291693b27c27bfb0b7a506074c1d5524bc06ff/src/main/java/nl/uu/cs/ape/APE.java#L424


vbuild.js is doesn't load by default

This works vbuild --dev -c vbuild.js while this doesn't vbuild --dev

Yes, but it's not a bug.
vbuild without -c does not load ./vbuild.js
vbuild -c load ./vbuild.js
vbuild -c xxx.js loads any file

Can't we have ./vbuild.js loaded if it exists? similar to how webpack uses webpack.config.js

Sure, I used rollup a lot when I was writing this tool, so it performs like the way rollup does. Maybe it's just inappropriate here.
You're welcome to do a PR 🤗

You can use https://github.com/sindresorhus/path-exists since it supports Promise.


compute node's root partition needs to be bigger

/ capacity isn't enough. It should be the one that grows.
Consider /local optional and with a fixed size
https://github.com/CSC-IT-Center-for-Science/fgci-ansible/blob/master/examples/group_vars/compute/compute.example#L85

@jabl What are the implications for you to make an optional /local with a fixed size. Which size is OK? Size could also be a variable.
Right now 50GB for / is too short and not every site will use /local.

We're happy with the current partitioning, where we have a partition "/l" which fills the rest of the disk, and then slurm is setup such that /tmp and /var/tmp are per-job specific, bind-mounted to that partition and deleted at the end of the job. As we have jobs which use a huge amount of local scratch space, we'd like to keep /l as big as possible. And we'd like to keep /l a separate partition, so that jobs which accidentally (?) fill the entire disk won't fill /. 50G for / is also fine for us, currently on our compute nodes only 6% is used.
That being said, since the partitioning comes from group_vars each site can override the defaults with whatever they like?

Yes, I'm changing the example file with a warning that each site is responsible to tune their computes partition layout.
Some site was complaining that / was full... and there are sites with 4TB compute nodes that don't use /local (/l) part so I'll suggest every one to make their own layout with some minimal requirements.
Thanks for answering.


In 4.0.0-alpha.1 version it does not seem to respect to autoHide: false

It keeps auto-hiding even with autoHide: false

Not sure if is because in PopperWrapper.vue you use "auto-hide" instead of "autohide" when consuming

Either way the v-tooltip always go away after a bit. They do not seem to respect autoHide false

autohide false doesn't work on the demo page https://v-tooltip.netlify.app/theme-editor.html

@Akryum To be more precise, no longer respects autoHide: false like in the Vue 2 version. when using hover. But it does with click. We would like to make autoHide: false on hover as well.
I tried getting the Vue 3 source but I cannot seem to figure it out. I wonder if in the Vue 2 version you had a bit more code that still need to be carried over?

When you use hover, it's normal for the tooltip to close on mouseout

we use the autoHide:false option so we are able to hover over the tooltip itself if we need to copy text or click a link. Thats what is not working anymore.

Hi! Thanks for the great convenient tooltip!
Got the same issue. I have a button with a dynamic tooltip that changes when button is clicked. This causes the tooltip to close.
To fix this, for vue 2 I used manual hover trigger and autoHide: false. But in v4 for vue 3 this doesn't help anymore

autoHide is unrelated then. It's an option that closes the popper when clicked outside of it.

Set the triggers like this: https://github.com/Akryum/v-tooltip/blob/1b987c7a9db84407c6c9055be67bc093c42398b8/packages/v-tooltip/src/config.js#L57-L58


Resource Groups / Views for server UI

I would like to use a Rancher to cluster to host multiple unrelated sets of containers running on the same Rancher compute nodes. Currently with this model the Rancher Server UI would get cluttered with all these containers. It would be great to be able to tag containers to split them into logical groups which can then be used to filter the displayed containers. I envisage something very similar to AWS Resource groups.

+1 I think this might well be possible once https://github.com/docker/docker/pull/9882 has been implemented?

@usmanismail With the new services and project implementation, this would solve your original request in regards to the UI. You'd have multiple projects to split up the unrelated sets of containers. In each project, you could have services with a scale of 1 (or more if needed). Let me know if that solves what your needs to see if we might be able to close this issue.

It does.


Question about jwt token

Hi there, I'm have some issue in my test with superagent and express.js.
it('should 200 with valid login', (done) => {
    console.log(createdUser[`${validUser.email}`]['token']);
    // JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ODAwZDllZmNiM2VkMzBhOGZmMDUyOGUiLCJmaXJzdE5hbWUiOiJoYW5zIiwibGFzdE5hbWUiOiJvdHRvIiwiZW1haWwiOiJvdHRvQGV4YW1wbGUuZGUiLCJyb2xlIjoiVXNlciIsImlhdCI6MTQ3NjQ1MDc5OSwiZXhwIjoxNDc2NDYwODc5fQ.OlO_dVMCV6bm7XSyzKLFTgb-efOeyU1TniHEcIY7AHU
    request(app)
        .get('/api/protected')
        .set('Authorization', createdUser[`${validUser.email}`]['token'])
        .expect(200)
        .end((err, res)=> {
            if (err) done(err);
            console.log(res.header);
            // assert(true, 'asdfasdf');
            // done();
        });
});

I can't access to the protected path over superagent.
When I'm accessing the path over Postman it is working and I can access the protected path with the suited jwt.
What do have to change in the code? I want to test different paths.
thanks

Superagent itself should have no problems sending the Authorization header. We do often find issues with supertest specifically. Can you change your code to a straight node app working directly with superagent (not supertest) to send a request to your express app which is separately running and listening? That would confirm whether the issue is really superagent as opposed to something with supertest.

@focusaurus thanks for the hint.
It was easy, the problem was in the code!
Here is what i've done:
describe('----- ACCESSING PROTECTED PATH', () => {
    let token;

    before((done)=> {
        request(app)
            .post('/api/auth/register')
            .set('X-Real-IP', URI)
            .type('form')
            .send(validNormalUser)
            .expect(201)
            .end((err, res)=> {
                if (err) done(err);
                token = res.body.token;
                done();
            });
    });

    after((done)=> {
        const colls = 'users';
        mongoose.connection.collections[colls].drop(err=> done());
    });

    it('should 401 without invalid login as guest', (done) => {
        request(app)
            .get('/api/protected')
            .set('X-Real-IP', URI)
            .expect(401, done);
    });

    it('should get [200] content from a protected path with valid token', (done) => {

        request(app)
            .get('/api/protected')
            .set('Accept', 'application/json')
            .set('Authorization', token)
            .expect(200)
            .end((err, res)=> {
                if (err) done(err);
                assert(res.body.content === 'The protected test route is functional!');
                done();
            });
    });
});


BUG ProxNewton solver gets stuck with L0_5 penalty

Reproduce with
import numpy as np
from skglm.utils.jit_compilation import compiled_clone

from skglm import datafits
from skglm import penalties
from skglm.solvers import ProxNewton
from skglm.utils.data import make_correlated_data

X, y, _ = make_correlated_data(50, 100, random_state=0)

y = np.abs(y) // 1

datafit = compiled_clone(datafits.Quadratic())
penalty = compiled_clone(penalties.L0_5(alpha=1))
# penalty = compiled_clone(penalties.L1(alpha=1))
alpha_max = penalties.L1(alpha=1).alpha_max(datafit.gradient(X, y, np.zeros(len(y))))

penalty.alpha = alpha_max / 10

solver = ProxNewton(verbose=3, max_iter=20, warm_start=True, fit_intercept=False, tol=1e-4, ws_strategy="fixpoint", max_pn_iter=20, p0=10)
solver.solve(X, y, datafit, penalty)

This might be due to something else, but as far as I remember, our current implementation of Prox-newton might be restricted to convex penalties: there are tricks in the line-search that rely on the fact that the penalty is convex (I think it uses slide 5 of this)


"--stats scan" gives misleading statistics (analyze is fine)

When you use --stats with scan, you can't get an idea of your hit rate as HIGH+CRIT always totals 100%. My guess is that it's because we drop misses before stat generation.
For example:
📊 Statistics
---
Files Scanned   10781 (0 skipped)
Total Risks     10781
---
⚠  Risk Level Percentage
---
Risk Level    Percentage Count/Total
4/CRIT            89.46% 9645/10781
3/HIGH            10.54% 1136/10781
---
Number of behaviors      15758

Yep, we return an empty file report in report.Generate when running a scan:
if c.Scan && overallRiskScore < HIGH {
	return malcontent.FileReport{}, nil
}

I'll reason about a fix for this.


Add support for shifting the image

The new src_left and src_top arguments allow for subpixel shifts, in the same way as VapourSynth's built-in scalers.
I'd also be interested in having src_width and src_height, but shifting fulfills my immediate needs.
Let me know if you want to implement them.

Sounds nice, especially that it's a subpixel shift. Thanks for that! :)
I may be able to look into src_width and src_height at some point next week.


Port tg hacking

Current UI is fine but tg hacking is better https://tgstation13.org/wiki/Hacking

tg ui seems better in general
Also that wiki page has no in-game ui image example :trollface:


:test_tube: Added tests and performed housekeeping

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.86%. Comparing base (4fcbb53) to head (7c730f7).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

@@             Coverage Diff             @@
##             main      #11       +/-   ##
===========================================
+ Coverage   74.64%   90.86%   +16.22%
===========================================
  Files           2        3        +1
  Lines         213      230       +17
  Branches       25       32        +7
===========================================
+ Hits          159      209       +50
+ Misses         54       21       -33

Files with missing lines
Coverage Δ

src/core/linked-list.ts
88.77% <100.00%> (+17.34%)
:arrow_up:

... and 1 file with indirect coverage changes


perform the gateway check but ignore the result when the annotation of subnet is ‘disableGatewayCheck=true’ to make sure of the first network packet

Features

Under the underlay network mode, there are many situations will cause the underlay network arping fails, so there is a highly probability of gateway check failure.
If the gateway check is not performed, the pod or vm cannot be pinged from the outside after it is pulled up, because of there is no first network packet.
So I expect the gateway check is still performed but the result does not concerned when the annotation of subnet is ‘disableGatewayCheck=true’.

The waitNetworkReady will try 200 times before timeout. If only need to send a first packet, we should not run the probe 200 times. kube-ovn-cni will hold a goroutine for each unfinished probe and it will also send lots of unnecessary packets into underlay network.

The waitNetworkReady will try 200 times before timeout. If only need to send a first packet, we should not run the probe 200 times. kube-ovn-cni will hold a goroutine for each unfinished probe and it will also send lots of unnecessary packets into underlay network.

Thank you for reminding me about the setting of retry times，and I've added a parameter to control the max retries.

Thanks! @qiutingjun


Linux string correctness

This works around a couple of bugs in the String type on Linux:

String.data() crashes for empty strings -- workaround is to test for an empty string first
NSString(bytes:length:encoding:) stops at zero bytes on Linux -- workaround is to explicitly look for a zero byte and use a much slower method when we see one.  (Note that even with the additional check for a zero byte, it's still much faster to use NSString(bytes:length:encoding:) when it does work.)

The first bug above seems to be fixed in newer snapshots, but I believe it still appears in the most recent official release build.
The second bug has been reported: https://bugs.swift.org/browse/SR-4218

This fixes most (but not all) of the failures reported in #260.


Run nomad as non root user

Hi!
I was referencing this repo for deploying a similar stack on AWS. I came across install_nomad.sh#L27 and I think this is a typo. Should it not be owned by nomad user instead of root user?
sudo chown --recursive nomad:nomad /nomad

👋 Hello @mr-karan -- great question! Apologies for the delay.
Indeed, you could choose to run Nomad as the nomad user/group. This is the recommended way to run server agents. However, to ensure the Docker driver works on the client agent side, IIRC, you would also need to put the nomad user in the docker group, so that'd it'd be able to access the Docker socket. That is essentially root privileges, in most cases.
I have Nomad running as the root user here to help ensure features, like CNI networking, just work™. Some features expect elevated privileges. While it is possible to avoid doing this, and likely a good idea in most scenarios, it requires testing to ensure it doesn't break anything. It really depends on the use case.

Thanks for the explanation. Yep, that makes sense! I'll close it for now. 👍


Wrong method comment generated when return value is void

A method with the signature public void init() generates "Init void." as the comment. It should be just "Init.".

In the most resent plugin versions this should be fixed.
Please reopen issue if  you still get such behavior.


Panic on a table that only has an ID, "called Option::unwrap() on a None value"

This can be seen on this table in mysql/sportsdb database
CREATE TABLE `baseball_defensive_group` (
  `id` int(11) NOT NULL auto_increment,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

To reproduce, import the SQL of this table locally into a MySQL database and introspect it (prisma2 introspect --url <db-connection-string>). Then run the following client call:
const { PrismaClient } = require('@prisma/client')

const prisma = new PrismaClient()

async function main() {
  const data = await prisma.baseball_defensive_group.create()
  console.log(data)
}

main()

It yields the error:
PANIC: called `Option::unwrap()` on a `None` value
    at PrismaClientFetcher.request (/Users/divyendusingh/Documents/prisma/p2-no-data/node_modules/@prisma/client/runtime/index.js:1:47203)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
(node:43197) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

Full error with DEBUG flag:
divyendusingh [p2-no-data]$ node index.js
  prisma-client {
  prisma-client   engineConfig: {
  prisma-client     cwd: '/Users/divyendusingh/Documents/prisma/p2-no-data',
  prisma-client     debug: false,
  prisma-client     datamodelPath: '/Users/divyendusingh/Documents/prisma/p2-no-data/node_modules/@prisma/clie
nt/schema.prisma',
  prisma-client     prismaPath: undefined,
  prisma-client     datasources: [],
  prisma-client     generator: {
  prisma-client       name: 'client',
  prisma-client       provider: 'prisma-client-js',
  prisma-client       output: '/Users/divyendusingh/Documents/prisma/p2-no-data/node_modules/@prisma/client',
  prisma-client       binaryTargets: [],
  prisma-client       config: {}
  prisma-client     },
  prisma-client     showColors: true,
  prisma-client     logLevel: undefined,
  prisma-client     logQueries: undefined,
  prisma-client     env: {},
  prisma-client     flags: []
  prisma-client   }
  prisma-client } +0ms
  prisma-client Prisma Client call: +9ms
  prisma-client prisma.baseball_defensive_group.create(undefined) +0ms
  prisma-client Generated request: +0ms
  prisma-client mutation {
  prisma-client   createOnebaseball_defensive_group {
  prisma-client     id
  prisma-client   }
  prisma-client }
  prisma-client  +0ms
  getos { platform: 'darwin', libssl: undefined } +0ms
  engine {
  engine   PRISMA_DML_PATH<EMAIL_ADDRESS>  engine   PORT: '49716',
  engine   RUST_BACKTRACE: '1',
  engine   RUST_LOG: 'info',
  engine   OVERWRITE_DATASOURCES: '[]',
  engine   CLICOLOR_FORCE: '1'
  engine } +0ms
  engine { cwd: '/Users/divyendusingh/Documents/prisma/p2-no-data' } +0ms
  plusX Execution permissions of /Users/divyendusingh/Documents/prisma/p2-no-data/node_modules/@prisma/client/runtime/query-engine-darwin are fine +0ms
  engine { flags: [ '--enable-raw-queries' ] } +1ms
  engine stderr Printing to stderr for debugging +15ms
  engine stderr Listening on <IP_ADDRESS>:49716 +1ms
  engine stdout {
  timestamp: 'Mar 09 19:36:43.129',
  level: 'INFO',
  target: 'quaint::pooled',
  fields: { message: 'Starting a mysql pool with 13 connections.' }
} +0ms
  engine stdout {
  timestamp: 'Mar 09 19:36:43.135',
  level: 'INFO',
  target: 'prisma::server',
  fields: {
    message: 'Started http server on <IP_ADDRESS>:49716',
    'log.target': 'prisma::server',
    'log.module_path': 'prisma::server',
    'log.file': 'query-engine/prisma/src/server.rs',
    'log.line': 95
  }
} +5ms
  engine stdout {
  timestamp: 'Mar 09 19:36:43.143',
  level: 'ERROR',
  target: 'prisma',
  fields: {
    message: 'PANIC',
    reason: 'called `Option::unwrap()` on a `None` value',
    file: '/rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196/src/libcore/macros/mod.rs',
    line: 15,
    column: 40
  }
} +8ms
  engine {
  engine   error: Error: socket hang up
  engine       at connResetException (internal/errors.js:559:14)
  engine       at Socket.socketOnEnd (_http_client.js:433:23)
  engine       at Socket.emit (events.js:208:15)
  engine       at endReadableNT (_stream_readable.js:1168:12)
  engine       at processTicksAndRejections (internal/process/task_queues.js:77:11) {
  engine     code: 'ECONNRESET'
  engine   }
  engine } +3ms
  printStack callsite Error
    at Object.s [as baseball_defensive_group] (/Users/divyendusingh/Documents/prisma/p2-no-data/node_modules/@prisma/client/runtime/index.js:1:44468)
    at Object.n.<computed> [as create] (/Users/divyendusingh/Documents/prisma/p2-no-data/node_modules/@prisma/client/runtime/index.js:1:46094)
    at main (/Users/divyendusingh/Documents/prisma/p2-no-data/index.js:6:54)
    at Object.<anonymous> (/Users/divyendusingh/Documents/prisma/p2-no-data/index.js:10:1)
    at Module._compile (internal/modules/cjs/loader.js:868:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
    at Module.load (internal/modules/cjs/loader.js:731:32)
    at Function.Module._load (internal/modules/cjs/loader.js:644:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:931:10)
    at internal/main/run_main_module.js:17:11 +0ms
(node:43197) UnhandledPromiseRejectionWarning: Error:
Invalid `prisma.baseball_defensive_group.create()` invocation in
/Users/divyendusingh/Documents/prisma/p2-no-data/index.js:6:54

PANIC: called `Option::unwrap()` on a `None` value
    at PrismaClientFetcher.request (/Users/divyendusingh/Documents/prisma/p2-no-data/node_modules/@prisma/client/runtime/index.js:1:47203)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
(node:43197) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:43197) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error in Prisma Client:
PANIC: called `Option::unwrap()` on a `None` value in
/rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196/src/libcore/macros/mod.rs:15:40

This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.
Please create an issue in https://github.com/prisma/prisma-client-js describing the last Prisma Client query you called.

Related test-utils issue: https://github.com/prisma/prisma-test-utils/issues/32

Internal notes:
Test utils database(s) affected:

https://github.com/prisma/introspection-engine-output/blob/test_utils/test-utils/results/mysql_public_test_utils_sportsdb_stderr.log

+1 on this issue. only getting in when running prisma in docker.

Can you please create a new issue @jaywalklabs and elaborate on this? We are getting this here in all contexts, so it would be interesting to see what is different about your situation. If you can include the relevant part of your code and schema.

A fix will be available from dev 2.1.0-dev.18 onwards.


Transfer Learning

Code version (Git Hash) and PyTorch version
PyTorch: 1.0.1
Dataset used
Self-generated from youtube - similar to Kinetics-skeleton
Expected behavior
Being able to load pretrained weights from your kinetics-st_gcn.pt, freeze them, and only train new layers
Actual behavior
Able to load pretrained weights, but not able to freeze them.
Steps to reproduce the behavior
Add flag '--weights', with path to the aformentioned pretrained pytorch model
Other comments
I am currently able to load the weights from your pretrained model. During this operation I am presented with this output:

Which I am interpreting to being the layers in the new model, which are not present in the old model, and therefore not getting its weights from the old model.
What I am wondering is how would I go about to freeze all layers, except for those in the output above? I.e. how can i freeze all pretrained layers, and only train the new layers?
I was thinking I could do it using torch's .apply(), but I am unable to find a similarity between the names in the output above, and the names being used in your weights_init(m), i.e. finding a way to map st_gcn_networks.4.residual.1.num_batches_tracked to either Conv1D, Conv2d, etc.
Crossing my fingers that you are able to assist me :)

Hi, Pytorch has provided many interfaces for fixing several layers in a network. One of common methods is setting param.require_grad = False where param can be any parameter you want to fix. You can refer to https://pytorch.org/docs/master/notes/autograd.html for more information.

Yes, but how would one go about identifying specific layers one would want to freeze? I.e. freezing only the layers in the new model which weights has been loaded from the pretrained model, making only the 'randomly initialized' layers learnable?

@Sindreedelange
When you load the network you will have the model creation code where you can find the param. You can also traverse the network layers by recursively using module.chidren() and find the layer you want.

@Sindreedelange hi，I have the same problem with you.Have you solved this problem?

@645704621, yes - you can check out my forked repo: https://github.com/Sindreedelange/st-gcn/blob/master/torchlight/torchlight/io.py, lines 101 - 114.

Disclaimer: Needs refactoring, but only POC.

@Sindreedelange thank you very much，and why the child_counter<3

@645704621, because when i counted number of children there were 4, and I wanted the last layer(s) to be unfrozen, hence my 'Disclaimer' --> I probably should've used number of children - 1, or something like that, but if I remember correctly there is no easy way in getting this number, except for iterating through the children, and counting yourself (which I do not want to do twice, in the interest of speed).

@645704621, I have updated my 'freezing' code - if you're interested.

@Sindreedelange  so kind of you!

@645704621, @Sindreedelange , hi , the number of my dataset class is different from st-gcn model,how to revise class number?

@645704621, edit the config files - namely config/train.yaml, config/demo.yaml.

@645704621, hi, if the number of my dataset class and the joint point of my skeleton are different from Kinetics-skeleton, can I load pretrained weights from kinetics-st_gcn.pt to pretrain my model by transfer learning? What's the structure of your Dataset used Self-generated from youtube - similar to Kinetics-skeleton?

Hello!Thanks for your code. I use this method to freeze pretrained weights, but errors have happened as bellow.

How can I fix it?
Looking forward to your reply！


Does the get_image Method Support Windows?

Hello,
I'm experiencing an issue with the clipboard_rs crate on Windows 10, where I'm unable to retrieve an image from the clipboard using the provided example code. Despite having used the clipboard image tool to copy an image to the clipboard, the result returned by get_image is an empty image.
Here is the code snippet I'm using:
use clipboard_rs::{common::RustImage, Clipboard, ClipboardContext};
let ctx = ClipboardContext::new().unwrap();
let img = ctx.get_image().unwrap();

@whwanyt
Sorry, what I am testing here is the screenshot scene. What is your scene? Copy image files directly?

Maybe I am not compatible with all image formats, you can provide

Before get_image(), print available_formats()
How do you copy the picture?

@ChurchTao  I will reply to the code result at night because I am not in front of the computer right now.

@whwanyt
OK, I'm waiting for your news.

I may have guessed your problem. If you use the image.rs demo to run, you need to change the file saving path to the path in your own operating system.

use base64::{engine::general_purpose, Engine as _};
use clipboard_rs::{common::RustImage, Clipboard, ClipboardContext};
fn main() {
    let ctx = ClipboardContext::new().unwrap();
    let image = ctx.get_image().unwrap();
    match image.to_png() {
        Ok(res) => {
            let image_bytes = res.get_bytes();
            let base64_str = general_purpose::STANDARD_NO_PAD.encode(&image_bytes);
            println!("{}", base64_str);
        }
        Err(e) => {
            println!("err: {}", e)
        }
    }
}

I used the following sample code to get the clipboard picture and convert it to a base64 character string:
use base64::{engine::general_purpose, Engine as _};
use clipboard_rs::{common::RustImage, Clipboard, ClipboardContext};
fn main() {
    let ctx = ClipboardContext::new().unwrap();
    let image = ctx.get_image().unwrap();
    match image.to_png() {
        Ok(res) => {
            let image_bytes = res.get_bytes();
            let base64_str = general_purpose::STANDARD_NO_PAD.encode(&image_bytes);
            println!("{}", base64_str);
        }
        Err(e) => {
            println!("err: {}", e)
        }
    }
}

The output is as follows:
err: image is empty

I use electron _ screenshot this plugin to achieve screenshots to the clipboard

I may have guessed your problem. If you use the image.rs demo to run, you need to change the file saving path to the path in your own operating system. Like
const TMP_PATH: &str = "C:\\Windows\\Temp\\test.png";

I optimized the demo code so that it can run directly in Windows. You can take a look.
8058263#diff-7bf759a09f1216d26074fca12a9e8a2aac8ca2d0392e34ed84fa6974d988aa9bR3

Thank you for your reply, my goal is to get the image of the screen captured using the plugin by get_image method and convert it to base64 format

@whwanyt
Before calling get_image, print available_formats to show me.

@whwanyt Before calling get_image, print available_formats to show me.

use clipboard_rs::{Clipboard, ClipboardContext};
fn main() {
    let ctx = ClipboardContext::new().unwrap();
    let types = ctx.available_formats().unwrap();
    println!("{:?}", types);
}

The print type results are as follows
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `target\debug\imgdemo.exe`
["CF_BITMAP", "CF_DIB", "CF_DIBV5"]

@whwanyt
I understand. Sure enough, I am not compatible with images in bitmap format. I will fix it in the next version.

Good news, I have solved the compatibility problem. Can you please try the code of this new branch again?

The new version has been released. I will close this issue for now. If there are any problems, just reopen it.


11146

Add here your WMS ID
11146
General requirements

Information in the workshop is adequate and updated -
Code is correct and working -
Links are correct -
Make sure you enter the help email link in your manifest.json -
Please make sure WMS URLs are updated as needed after your PR is approved -

Checklist - Refer to the QA document for the complete list
Please confirm that the following is completed before submitting your PR

[x] All filenames are lower case (including folders, images, files, etc.)
[x] Filenames are descriptive
[x] Your workshop folder structure should be similar to the one used in the sample workshop (https://github.com/oracle-livelabs/common/tree/main/sample-livelabs-templates/sample-workshop)
[x] Are you using multiple versions (desktop/, sandbox/, tenancy/)? Make sure that each of them contains a manifest.json and an index.html
[x] Image references in markdown contain an alternate text

This PR aims to harmonize the remote repo from oracle-livelabs with my own fork of the repository. Only three files are changed: an image and my personal email the manifest.json files. For some reason this was already done but somehow these changes were overshadowed by someone else's changes and got lost.


NDNP Ingest: ingest of pre-existing ALTO for work should yield plain-text, JSON word coordinate

There is a component, implemented in PR #60, that transforms ALTO to plain text and to JSON word-coordinates.
This component:

Needs tests added that use ALTO fixtures in newspaper_works_fixtures gem NDNP samples, in addition to the minimal fixture XML already used by tests.
Should be invoked by a (new or existing, TBD) derivative creation service (configured into NewspaperWorks::PluggableDerivativeService) that creates plain text and JSON (word coordinate) data from known pre-existing ALTO derivative.

This issue is a dependency of #80.

Closing this as PR #114 implements this.


Fix relinker

cc @docker/distribution-maintainers
See commit message.

FWIW I link-checked every top-level page of the generated documentation and it seems ok to me.
Please say so if I missed one.

LGTM. Didn't find any broken links.
I noticed that the Aliyun OSS doc page has no styling applied, but I'll open a separate issue or PR about this.

LGTM

@moxiegirl should the same be applied to the other projects as well?

@thaJeztah it should rather be "upstreamed" into the docs base image.
There is really no valid technical reason for duplicating this across projects.
Also, this hasn't been tested with the other projects. If other cases have to be handled, they should be added to the tests.

@dmp42 agreed, should probably move this into a script, so that we can pass the $PROJECT var during build.
Thanks for the test btw, nice touch!

@thaJeztah I'lll test it in other environments I'm moving everything in to a script as I update for building all --- see compose projects.  Thanks for the change @dmp42.


Fix submodules checkout in build and missing reveal.js folder

Do I understand correctly that the problem was that the first-lesson presentation didn't work? And now, when reveal.js is downloaded with the rest of the code, it works? If so, I can approve this PR, I verified it works for me too.
I'm very surprised someone still actively uses the contents of v1. But it's good to know, we were discussing it with @Aprillion at the sprint in Msene and had doubts whether this is needed. :)

Yes  reveal.js resources are not included in deployment and v1 presentations is not working. Issue is that CI is not fetching submodules by default -> reveal.js folder is not included in the build.
There is probably not big use for v1, in Prague we are using it just as the introduction during the firs lesson of each course.

Great! Thumbs up then :)


why I Cannot find the color data corresponding to the grid pattern

I searched the file.style structure and did not find the corresponding RGB value

Did you mean that set the cell background color or pattern? Please reference Set cell style and Create style.

I want  to find the cell background color data  ,rgb value.
but I cant find it in file.styles structure while I debug the process

Please reference: ThemeColor

I thought I could directly find the color corresponding to the grid, but I did n’t expect it to be so troublesome ，thanks


Send a Christmas newsletter

Summary
We should send a newsletter before the Christmas break to update members of the community on progress and invite them to be involved in 2023
Deadline
14th Dec 2023 (before @BrainonSilicon goes on leave)
What needs to be done?

[x] Interview with community member
[x] Include updates and opportunities
[x] Introduce new team
[x] Invite to January session
[x] Draft
[x] Send
[x] Upload to GitHub

Who can help?

Anything you want included please include in the comments below

We made a newsletter draft hackmd. @GeorgiaHCA will provide general project updates, I will be the person to be interviewed.
@GeorgiaHCA and I also had marked the 12th of January as the potential date for the community meeting we want to announce. Does that work for you too @BrainonSilicon? Otherwise we can push it back a week!

I can do the 12th after 12:30.
From 1-2pm might work the best for me around meetings :)

Fab, that would fit in well, as we'll also have a visitor that day to give the Coffee Chat talk on his work on Autism and that way we can have him attend the community meeting too!

@GeorgiaHCA As it's now send: would you be able to put the newsletter on GitHub so that we can close this? :)

Made a PR in the old repo where all other newsletters are so far. With that I think we can close this one.


Does not work with ssh

I set my ssh remote manually. When I try to push or pull to/from it from bracket-git, editor freeze. My remote repo:
[remote "origin"]
url = git@bitbucket.org:user-name/project-name.git
fetch = +refs/heads/:refs/remotes/origin/
Thanks
Brackets 1.1.0-15558 (win), Git 1.9.4.msysgit.0 & Brackets-Git 0.14.9

Can you please provide the debug logs before the freeze?


feat: login from SDK in examples and expose temp dir in debug mode

User feedback:

Login from the SDK in the examples, instead of logging in from the CLI then use the SDK
Expose the temporary directory in debug mode so that the user an pause the execution and check the assets

Storing password in source code is a bad practise. IMHO, we should value security vs usability in our examples.
If we want to keep using the login method, we could maybe use env variables?

Do you mean that this sets a bad example for the user ?
The username and password in themselves were in the README and work with the local install so I don't think there is a problem exposing them.
I can change to an env variable for the good practice

For the history: what I did works, checked with Jérémy and it is because there is "reuse token" strategy on locally deployed instance, so it would not work in production.
After discussion on why the login was that way in the examples, I revert it back.