wx on mac

WX is very hard to get installed on mac el capitan, spent some trying to install it yesterday but failed multiple of times.
However, still under development? have you considered moving everything to like jupyter/ipython instead? And adding transformation of variables? something like the filter column like "if userid == 669944 change strincolumn to B"

http://davixx.fr/blog/2016/01/25/wxpython-on-os-x-el-capitan/
this actually work for mac, you have to repackage it in el capitan..

Yes, I'm still working on this and checking OS X support is one of the next steps.
Regarding moving to jupyter: No, this is not something I have intended for now, since I'm mainly using dfgui from within IPython.embed() for debugging. That's also why an actual modification of the data frame is not really required for my workflow.

Cool cool, would be nice with modification of data though, I'll see if I can come up with something.


Return a string from getBuildNumber func?

https://github.com/fastlane/fastlane/blob/3aaababca9498872e3fd631a379a5b766a08f1ed/fastlane/swift/Fastlane.swift#L1396
Wouldn't you want this to return the build number?

🤦♂ thank you.
We use code generation that depends on a few things, and it looks like I missed adding a return_type to that action.
Fixing that right now

Beautiful, this will be part of the next release, thanks @altyus 👍

How about getVersionNumber()?

@acegreen you want the world, don't you 😜
PR incoming

@taquitos I changed it on my end, was going to do a PR. No rush, if you don't get to it, I'll do it

@acegreen thanks, the fix just got merged. Let me know if you find anything else, I had a feeling a few of these might slip through.

@taquitos I see a bunch of get....() methods that have no return in that file. I would return String for all of them

That's a great point. One thing that prevented me from doing that is some of those only store a file somewhere, or they save an object in the lane context for later use. Maybe in those cases we could return a path, or update the action to return the value too.

Ah true, just to keep it simple for now, maybe for the obvious ones return String. And in the future, more use-cases it will be clear what to do with the exceptions you mentioned
On a side note, I noticed fast lane swift doesn't have a deploy_to_fabric equivalent, I thought it would be something like uploadToFabric(...)


make Property.get return self if instance is None

Currently the property descriptor cannot be called on the owner class, with error: AttributeError: 'NoneType' object has no attribute '__node__'. Calling the property on the class can be very useful for introspection. Also it is easily fixed bij changing:
class Property(object):
    def __get__(self, instance, owner):
        value = instance.__node__[self.key]
        if value is None:
            value = self.default
        return value

in:
class Property(object):
    def __get__(self, instance, owner):
        if instance is None:
            return self
        value = instance.__node__[self.key]
        if value is None:
            value = self.default
        return value

This is very common in descriptors.

dup https://github.com/py2neo-org/py2neo/issues/784


Certificate validation result update proposal

Proposed update on certificate validation result

Bug resolved. All tests works now.
Whole integration project builds and runs without any problems


New commands that redefine environments -- clean? deal with

For example, there can be some \newcommand calls that are short cuts for environments (like begin/end of equations).
Fix this in preprocessing or deal with it in some way.

Also, there can be beginning AND ending statements in a new command that we should deal with.

Also, there needs to be a special thing for new commands that have BOTH begin and ends.

This is more or less supported, except for the case that has BOTH beginnings and endings.  Will see how frequent this is.  Doesn't do anything for new environments.
All of this is "cleaned" as a post-processing step.
Closing for now.


Precompiled Jte tests use generated output from test sources

The whole precompiled directory shouldn't be a part of test sources, e.g.:
https://github.com/javalin/javalin-rendering/blob/main/src/test/java/io/javalin/jte/precompiled/JtetestGenerated.java
These classes should be generated by Maven plugin:
https://github.com/casid/jte/blob/main/DOCUMENTATION.md#maven

@casid thoughts on this? Could you update the integration to JTE3?

I think we included the classes to speed up test execution. Generating them by the maven plugin would indeed be nicer (and probably unnoticed in build time).
@tipsy I haven't created a PR yet, since Javalin Rendering still supports Java 11 and jte 3 requires Java 17 as baseline.

We are moving to Java 17 for 6x, and I am moving rendering to 6x as we speak :)

Pushed repo to v6 now

Rendering is in 6.x now.


Uncaught TypeError: Cannot read property 'scopeChains' of undefined

There is an issue with the symbol-store where deleted files cause a persistent and very reproducible error until atom is reloaded.

Open a file that contains text with some grammar that is not blacklisted by your autocomplete-plus config
Delete the file
Open some other file that still exists, which contains text
Type a character (that triggers a suggestion request)
Observe the following error

Additional detail:

Atom Version: 0.192.0
System: Mac OS X 10.10.3
Thrown From: autocomplete-plus package, v2.11.0
Stack Trace
Uncaught TypeError: Cannot read property 'scopeChains' of undefined
At /Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/symbol-store.coffee:94

TypeError: Cannot read property 'scopeChains' of undefined
  at Symbol.appliesToConfig (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/symbol-store.coffee:94:24)
  at SymbolStore.module.exports.SymbolStore.symbolsForConfig (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/symbol-store.coffee:131:38)
  at SymbolProvider.module.exports.SymbolProvider.findSuggestionsForWord (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/symbol-provider.coffee:184:31)
  at SymbolProvider.findSuggestionsForWord (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/symbol-provider.coffee:3:1)
  at SymbolProvider.module.exports.SymbolProvider.getSuggestions (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/symbol-provider.coffee:176:6)
  at SymbolProvider.getSuggestions (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/symbol-provider.coffee:3:1)
  at /Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:152:45
  at Array.forEach (native)
  at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:135:15)
  at AutocompleteManager.getSuggestionsFromProviders (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:1:1)
  at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:129:6)
  at /Users/jfitzgerald/.atom/packages/autocomplete-plus/lib/autocomplete-manager.coffee:1:1

Commands
  5x -0:28.1 core:backspace (atom-text-editor.editor.mini)
     -0:23.5 core:confirm (atom-text-editor.editor.mini)
     -0:20.1 editor:newline (atom-text-editor.editor)
     -0:19.6 core:save (atom-text-editor.editor)
     -0:01.1 core:backspace (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "disabledPackages": [
      "atom-beautify",
      "markdown-format"
    ],
    "themes": [
      "one-dark-ui",
      "solarized-dark-syntax"
    ]
  },
  "autocomplete-plus": {
    "includeCompletionsFromAllBuffers": true,
    "strictMatching": true,
    "defaultProvider": "Symbol",
    "suggestionListFollows": "Word"
  }
}

Installed Packages
# User
autocomplete-paths, v1.0.2
autocomplete-plus, v2.11.0
autocomplete-snippets, v1.2.0
go-plus, v3.3.6
language-asciidoc, v0.11.1
language-docker, v1.1.3
language-tcl, v0.1.0
linter, v0.12.0
linter-coffeelint, v0.2.1
markdown-table-formatter, v2.5.2
pretty-json, v0.3.3
tabs-to-spaces, v0.9.2

# Dev
autocomplete-paths, v1.0.2
autocomplete-plus, v2.11.0
autocomplete-snippets, v1.2.0
go-plus, v3.3.6

@benogle was this enough for a repro on your end?

Not sure. I wont be able to get to this for a couple hours

Delete the file

Do you mean delete it from disk? Are you deleting it from disk when the file is open? Or did you close it first? Do you see the same thing when you just close the file?
Does this happen on current master? I am unable to reproduce.
There was an issue in this code generating a similar error. I was setting @metadataByPath[bufferPath] to undefined. Having a key point to undefined would cause this error by executing the loop code against undefined.

Do you mean delete it from disk?

I mean right click on the file in the tree-view, and select 'delete' (which sends it to Trash). The file is open when I do this. Atom leaves the file open, even when it resides in Trash.

Does this happen on current master?

Yes.

This shows the state of @metadataByPath when i have opened go-runtime-view-spec.coffee, then deleted it via the tree view, and kept the file open.


TextField focus issue on HTML5

Under certain circumstances (that work on Flash) a TextField can become focussed, with a flashing caret, without accepting keyboard input - the user has to click outside the field and then click inside the field again.
I am uncertain how closely you aim to model Flash behavior identically - and this is likely an uncommon fringe case.
Nevertheless, attached is an example that illustrates the problem.
ProblemDemo5.zip

"this is likely an uncommon fringe case" describes every issue with TextField. The API looks like it's settled down, so I can look into this soon

Note to self: https://github.com/openfl/openfl/blob/develop/packages/textfield/src/openfl/text/TextField.hx#L2927


Adding the HWC Cluster Creator tool

Purpose

Adding the HWC Cluster Creator Tool
Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

LGTM. Merging.


HIPP-363: Add the accessibility statement to the API Hub

https://jira.tools.tax.service.gov.uk/browse/HIPP-363

The statement itself looks great. Just the question about the integration with the frontend.


[QI2-1220] Trigger reusable workflow

@Mythir fixed the problem with the "complete" task. The task did finish succesfully, but GitHub still expected the old name, not the newly "included"


default:null columns do not update with clause.OnConflict{UpdateAll: true}

Your Question
I ran into an issue where I was unable to update users records with a model similar to this (basically, the user record wouldnt apply the new data to the column):
type User struct {
        Firstname        string     `gorm:"not null;column:firstname" json:"firstname"`
	Lastname         string     `gorm:"default:null;column:lastname" json:"lastname"`
	Username         string     `gorm:"default:null;column:username" json:"username"`
	Email            string     `gorm:"not null;column:email" json:"email"`
}

The updates were done as follows:
	for i := range users {
		db.Clauses(clause.OnConflict{UpdateAll: true}).Create(&users[i])
	}

Upon changing to:
type User struct {
	Firstname        string     `gorm:"not null;column:firstname" json:"firstname"`
	Lastname         string     `gorm:"not null;column:lastname" json:"lastname"`
	Username         string     `gorm:"not null;column:username" json:"username"`
	Email            string     `gorm:"not null;column:email" json:"email"`
}

Changing default:null to not null for affected columns corrected the issue. It's as if the default:null columns were not actually being updated with OnConflict. The initial issue was that we noticed that username changes were not being updated or upserted properly. Is this by design or a bug?
GORM version that I'm using is gorm.io/gorm v1.21.10 with mysql
The document you expected this should be explained
https://gorm.io/docs/create.html#Upsert-On-Conflict
Expected answer
Just like it says in the above link:

Update all columns, except primary keys, to new value on conflict

The columns that were default:null were not updated unless they were changed to not null.

@jinzhu Why is this issue closed? It's a real and important bug


Memory size of multi-task network

My multi-task network turns out to be massive!
I had a network of conv + dense layers with a output dimension of 50 and it was okay with my 4GB gtx 970.
As it is a multi-label network, I converted it into a multi-task (50 tasks) networks to make each dimension independent. However I couldn't run it and even guess how big it is.
I feel like it became massive as it has 50 objective functions. Would there some workarounds to resolve this issue, e.g. reduce memory usage for the price of computation time?
I also considered to force the layers to be sparse by not using Maxout, but using relu + dropout and/or l1 regularisation, but was not very successful.

the quickest "fix" is using smaller batch sizes during training. Half the batch size -> half the memory footprint

Yes I tried it, it still doesn't fit. I guess the size of memory is almost x50 because all the shared part needs x50 number of derivatives (for 50 object functions).
If that's true, however, it make multi-task learning almost infeasible...


Fixed code, added finals on variables used in inner scopes

I tried to compile but it throws errors due to missing final declarations on various variables.

this fix ist important to compile the plugin. Please merge it


fixing 1 missing word

Hi there,
it seems that 1 word 'is' was missing in this page
Best
Didier

@caseydavenport : you're welcome! Didier


[DG] Update find command and add Cancelled Dates

Todo:

add cancelled dates in Lesson Management diagram

Codecov Report

Merging #359 (385ca3b) into master (86cf21f) will increase coverage by 0.15%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #359      +/-   ##
============================================
+ Coverage     68.37%   68.52%   +0.15%
- Complexity     1133     1136       +3
============================================
  Files           136      136
  Lines          3867     3867
  Branches        521      521
============================================
+ Hits           2644     2650       +6
+ Misses          998      992       -6
  Partials        225      225

Impacted Files
Coverage Δ

.../seedu/address/model/lesson/CalendarEntryList.java
84.61% <0.00%> (+3.55%)
:arrow_up:

Continue to review full report at Codecov.

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

wait, I'm going to add the part for Efforts


Add augmentation and new normalization

Note; the AssertionError has been occurring since commit 79ba21a5498df6e812130c89b87c3a44ac7a1456 on the main branch. Switch dataset and dataset name to the sine wave dataset to work around.


Installing via ionic1

I have been trying for hours to use your plugin. but to no avail.
It installs successfully, and seems like everything is fine, but when I try to use the KioskPlugin.exitKiosk() function, I get the response that KioskPlugin is not defined.
I also searched for it in window, plugins, ionic & cordova.plugins but it is nowhere to be seen.
Also, I tried installing a different launcher and now when I press the home button I have two options, but not three.
Any ideas?

At first ensure your activity is set as launcher - if you dont see this application in available launchers, try to regenerate android code:
cordova platform rm android
cordova platform add android

Also you may should try to compile and deploy demo application first: https://github.com/honza889/cordova-kiosk-demo

Tried that, not working.
This is what my controller looks like, am I missing something? Do I need to add KioskPlugin as a dependency?
app.controller('myCtrl', function($scope, $ionicPopup) {
    ...
    $ionicPopup.show({
        title: 'Enter Password',
        template: '<input type="text" ng-model="manager.password">',
        scope: $scope,
        buttons: [
            {
                text: 'Cancel'
            }, {
                text: 'Confirm',
                type: 'button-positive',
                onTap: function (e) {
                     if ($scope.manager.password !== MY_PASSWORD) {
                          e.preventDefault();
                     } else {
                          KioskPlugin.exitKiosk(); // KioskPlugin is not defined
                          return $scope.manager.password;
                     }
                }
            }
        ]
    });
    ...
});

You probably need to call window.cordova.plugins.KioskPlugin.exitKiosk();
see https://stackoverflow.com/questions/26786233/access-cordova-plugins-from-ionic-controller.
Reopen if does not help.

check following project, which use this plugin too:
https://github.com/honza889/ict-framework/blob/master/YesNoApp/www/js/ict.js#L44

OK, I don't know what the problem was, but I updated the ionic cli, created a new app via the new ionic pro dashboard, and then it started to work.
Thanks for your amazing app.


Add overdue indicator to requests

On the requests page, add an indicator to any overdue accepted requests. Those are requests where the field "overdue" is set to "Y". Overdue requests should be at the top of the list too.

I've added the overdue indicator to the home page and the requests page


feat: Add Client.diagnostics()

copilot:all

Current dependencies on/for this PR:

main

PR #3686   👈

This comment was auto-generated by Graphite.


JSONCodec and nil request

Hello, first of all, cool project! I predict it will be very useful in the future :)
I was tinkering around a bit and noticed an issue with the REST translation. Consider the following gRPC service definition:
service Schedules {
  rpc ListSchedules(ListSchedulesRequest) returns (ListSchedulesResponse) {
    option (google.api.http) = {get: "/v1/schedules"};
  }
}

message ListSchedulesRequest {
  int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL];
  string page_token = 2 [(google.api.field_behavior) = OPTIONAL];
  string filter = 3 [(google.api.field_behavior) = OPTIONAL];
  string order_by = 4 [(google.api.field_behavior) = OPTIONAL];
}

I should be able to issue a GET /v1/schedules request, without any parameters (i.e. empty request). Unfortunately this fails, since nil is then passed to protojson, which fails as it won't handle nil (IIRC it's an intentional design decision).
My suggestion to handle that would be to either treat nil as {} or to not call Unmarshal if the input is nil. Naively I'd change it here:
https://github.com/connectrpc/vanguard-go/blob/7aae240d504a5f2ce8aa6cf148232fcbf88eaf36/codec.go#L212
func (j JSONCodec) Unmarshal(bytes []byte, msg proto.Message) error {
        if bytes == nil {
          return nil
          // or
          bytes = []byte("{}") // probably less efficient and unnecessary
        }
	return j.UnmarshalOptions.Unmarshal(bytes, msg)
}

Not sure if this is the best place to change this.
Best Regards,
Frido

Hi, @fridolin-koch, thanks for the report!
I think the real issue is that the marshaler is even getting a nil request in the first place. This shouldn't ever happen. I'm guessing the lack of path parameters and lack of query parameters means the initialization of the request to a new, empty message is inadvertently being skipped.

I'm not sure, I looked at how this is handled in transcoder.go and it seems fine to me. If the request has no query params or body, there is no reason to to do any preprocessing ? As far as I understand the request gets passed (more or less) as is here https://github.com/connectrpc/vanguard-go/blob/7aae240d504a5f2ce8aa6cf148232fcbf88eaf36/transcoder.go#L590 to the underlying gRPC server, which then calls the configured decoder:
encoding.RegisterCodec(vanguardgrpc.NewCodec(&vanguard.JSONCodec{
	MarshalOptions:   protojson.MarshalOptions{EmitUnpopulated: true},
	UnmarshalOptions: protojson.UnmarshalOptions{DiscardUnknown: true},
}))```

So the error occurs here:

https://github.com/connectrpc/vanguard-go/blob/7aae240d504a5f2ce8aa6cf148232fcbf88eaf36/vanguardgrpc/vanguardgrpc.go#L94-L100

Since `protojson.Unmarshal` (like `json.Unmarshal`) does not work with `nil` as input, it could be fixed like that:

```go
func (g *grpcCodec) Unmarshal(data []byte, v any) error {
	msg, ok := v.(proto.Message)
	if !ok {
		return fmt.Errorf("value is not a proto.Message: %T", v)
	}
	if data == nil {
		return nil
	}
	return g.codec.Unmarshal(data, msg)
}

Another option would be to add some logic to the transcoder that transform http.NoBody to empty message equivalent of the target protocol/target (i.e {}). But it feels like unnecessary overhead, why umarshal, if it is priori clear, that there is nothing to unmarshal?

So I think the fix is to add a case checking for empty requests as needing request prep in protocol_rest.go.
The request prep correctly handles empty requests.
func (r restClientProtocol) requestNeedsPrep(op *operation) bool {
	return len(op.restTarget.vars) != 0 ||
		len(op.request.URL.Query()) != 0 ||
		op.restTarget.requestBodyFields != nil ||
		restHTTPBodyRequest(op) ||
		restHTTPBodyRequestIsEmpty(op)
}

// This check enables request prep.
func restHTTPBodyRequestIsEmpty(op *operation) bool {
	return op.request.ContentLength < 0
}

It's actually a fairly rare case as almost anything like a query param or path variable will already trigger the client prep.


Reorganize the internal packages

Related: #2445
Motivation:
As we hide many stuff from our public API, the internal package is
getting more and more crowded.
Modifications:

Reorganize the internal packages so that the internal classes are
always placed internal.{common,client,server,...}.*, following the
structure of the non-internal classes.

Result:

Less cognitive load for devs
Got some room for moving classes to the internal packages

Let me merge this pull request once build passes, since this is just mechanical package reorg restricted to the internal packages.

Note that this PR does not include https://github.com/line/armeria/pull/2445#discussion_r374561371 - Let me send a follow-up PR soon.


[Bug]: Clicking on the first plan takes a long time to load

What did you expect to happen?
I expect the degree planning tool to immediately load after clicking on a plan.
What happened?

Version
Beta 0.1.0
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct

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

For some reason the response is 4MB compressed and 40MB decompressed.

The production builds are completely fine. I ran this analyzer on the build, and the bundle size is completely normal. Compressed bundle size on the server is about 100KB and on the client is 500KB.
The issue seems to be that MUI isn't being tree-shaken for some reason (see .next/trace). Seems there are many top-level imports for @mui/material and @mui/icons-material throughout the code, so that's probably why.

Nice analysis! This is something we would like to optimize sometime in the future. If you are interested in working on this let me know and I can assign this to you.

hey @ZzRanger,
I wouldn't mind working on this issue.
If it is an issue of top-level imports, I'm not really sure why it doesn't occur in production build. I would imagine tree-shaking would be the same for production and development, but I honestly don't know what the default configuration is. Maybe the production build is just as unoptimized but the compression hides any noticeable size? I'll look into it.

Per discussion at 9/20 meeting, we'll be tabling this issue for now.

Linking #118 #156 and by extension #216, as we can look to optimize loading time of Credits page as well. I have some intuition on how to do it (potentially load components after initial page load through some useEffect magic) but will need further discussion.

So after taking a good look at the bundle size, there are two culprits to the large bundle size.

Redux looks really big, but it's actually its usage of Firebase which is discussed later.
courses.json
This file is really huge. We could get rid of it and use Next's API routes or a Firebase cloud function instead. Not sure if the latency of the request is better than loading it in the bundle, but we could give it a show.
Mui
After a good amount digging, I discovered that Next supports transforming imports via SWC, which would allow Webpack to properly tree shake MUI.
However, we are currently using v12.1 and import transform was added afterwards see here. This would require us to update to v12.2.6, which does NOT include breaking changes for us.
Upgrading to v12.2.6 and taking advantage of import modularization allows us to go from compiling 11k to 1k modules, which is noticeably faster in the development environment and marginally faster in production.
With v12.2.6 import modularization:

Without import modularization:

Firebase
Firebase is an absolute tank (113KB + unknown size when used in Redux) and is loaded on every single page. Unfortunately, we are using v8.4.1, while tree shaking in only supported v9+ (see here)[https://firebase.google.com/support/release-notes/js#version_900_-_august_25_2021}.

Nice work! 2020-courses.json was meant to be a temporary solution until the API goes live so we're planning on removing it anyway once we integrate Nebula API.
Regarding MUI & Firebase, I'm cool with upgrading Next & Firebase sometime after beta launch.

There are a lot of perf improvements that can be done in this.

We can get away with almost 90% of the redux store by using SSR and caching query data.
The courses list can be cached as well quite easily
Defining better suspense boundaries will greatly increase the UI/UX experience in terms of loading times.


Test user authentication

Description
Add test cases to verify that a token is validated when a request is processed.
The reason for changing the ASPNETCORE_ENVIRONMENT environmental variable is that it alters the code path in Startup.cs. With a value of Testing we skip the Developer experience and match that of production.
if (env.IsDevelopment()) <- this prevents us from adding the middleware
{
   app.UseDeveloperExceptionPage();
   app.UseSwagger();
   app.UseSwaggerUI();
}
else
{
   // This middleware has to be configured after 'UseRouting' for 'AllowAnonymousAttribute' to work.
   // We dont want JwtToken when running locally
   app.UseMiddleware<JwtTokenMiddleware>();
}

Codecov Report

Merging #82 (ce6bfd8) into main (f486bb1) will increase coverage by 12.61%.
The diff coverage is 92.50%.

@@             Coverage Diff             @@
##             main      #82       +/-   ##
===========================================
+ Coverage   67.57%   80.19%   +12.61%
===========================================
  Files          31       35        +4
  Lines         438      515       +77
  Branches       17       20        +3
===========================================
+ Hits          296      413      +117
+ Misses        135       93       -42
- Partials        7        9        +2

Impacted Files
Coverage Δ

source/dotnet/IntegrationEventListener/Program.cs
0.00% <ø> (ø)

...ixtures/FunctionApp/WholesaleFunctionAppFixture.cs
89.09% <89.09%> (ø)

...gPointCreated/MeteringPointCreatedInboundMapper.cs
94.11% <100.00%> (+94.11%)
:arrow_up:

...ionEventListener/Extensions/TimestampExtensions.cs
100.00% <100.00%> (ø)

...sts.Core/Fixtures/WebApi/WholesaleWebApiFixture.cs
100.00% <100.00%> (ø)

...net/IntegrationTests.Core/ServiceBusTestMessage.cs
100.00% <100.00%> (ø)

...nTests.Core/TestCommon/Function/FunctionAsserts.cs
100.00% <100.00%> (ø)

source/dotnet/WebApi/Startup.cs
89.47% <0.00%> (-5.27%)
:arrow_down:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Source deleted column with index, target did not delete column

What did you do?
source（mysql 5.7）deleted column with index, target(tidb 6.5.0) did not delete column, but DM did not report error message.
For example:
-- mysql1，mysql2(source1、source2)  and  tidb(target) is the same metadata

mysql> show create table tab2;
 CREATE TABLE `tab2` (
  `id` int(11) NOT NULL,
  `first_apply_proof_time` datetime DEFAULT NULL COMMENT '首次申请时间',
  `mn1` int(11) NOT NULL DEFAULT '10',
  `mn2` int(11) NOT NULL DEFAULT '10',
  PRIMARY KEY (`id`) /*T![clustered_index] CLUSTERED */,
  KEY `idx1` (`mn1`),
  KEY `idx2` (`mn2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin

-- mysql1，mysql2(source1、source2)
mysql> ALTER TABLE sbtest.tab2 DROP COLUMN mn1,DROP COLUMN mn2;
Query OK, 0 rows affected (0.04 sec)
Records: 0  Duplicates: 0  Warnings: 0

mysql> show create table tab2;
CREATE TABLE `tab2` (
  `id` int(11) NOT NULL,
  `first_apply_proof_time` datetime DEFAULT NULL COMMENT '首次申请时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin

-- tidb(target)
mysql> show create table tab2;
 CREATE TABLE `tab2` (
  `id` int(11) NOT NULL,
  `first_apply_proof_time` datetime DEFAULT NULL COMMENT '首次申请时间',
  `mn1` int(11) NOT NULL DEFAULT '10',
  `mn2` int(11) NOT NULL DEFAULT '10',
  PRIMARY KEY (`id`) /*T![clustered_index] CLUSTERED */,
  KEY `idx1` (`mn1`),
  KEY `idx2` (`mn2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin

What did you expect to see?
The target column is deleted
What did you see instead?
The target column is not deleted, and DM did not report error message.
Versions of the cluster
DM version (run dmctl -V or dm-worker -V or dm-master -V):
6.5.0

Upstream MySQL/MariaDB server version:
MySQL 5.7.19

Downstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
6.5.0

How did you deploy DM: tiup or manually?
tiup

Other interesting information (system version, hardware config, etc):
>
>

current status of DM cluster (execute query-status <task-name> in dmctl)
» query-status test650
{
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": true,
            "msg": "",
            "sourceStatus": {
                "source": "mysql-replica-3307",
                "worker": "dm-<IP_ADDRESS>-8264",
                "result": null,
                "relayStatus": null
            },
            "subTaskStatus": [
                {
                    "name": "test650",
                    "stage": "Running",
                    "unit": "Sync",
                    "result": null,
                    "unresolvedDDLLockID": "",
                    "sync": {
                        "totalEvents": "4",
                        "totalTps": "0",
                        "recentTps": "0",
                        "masterBinlog": "(bin.000001, 127901)",
                        "masterBinlogGtid": "8bf2dbc3-b1c1-11ed-ae6a-fa163e3df2cf:1-553",
                        "syncerBinlog": "(bin.000001, 127698)",
                        "syncerBinlogGtid": "8bf2dbc3-b1c1-11ed-ae6a-fa163e3df2cf:1-552",
                        "blockingDDLs": [
                        ],
                        "unresolvedGroups": [
                        ],
                        "synced": false,
                        "binlogType": "remote",
                        "secondsBehindMaster": "0",
                        "blockDDLOwner": "",
                        "conflictMsg": "",
                        "totalRows": "4",
                        "totalRps": "0",
                        "recentRps": "0"
                    },
                    "validation": null
                }
            ]
        },
        {
            "result": true,
            "msg": "",
            "sourceStatus": {
                "source": "mysql-replica-3308",
                "worker": "dm-<IP_ADDRESS>-8264",
                "result": null,
                "relayStatus": null
            },
            "subTaskStatus": [
                {
                    "name": "test650",
                    "stage": "Running",
                    "unit": "Sync",
                    "result": null,
                    "unresolvedDDLLockID": "",
                    "sync": {
                        "totalEvents": "4",
                        "totalTps": "0",
                        "recentTps": "0",
                        "masterBinlog": "(bin.000001, 105325)",
                        "masterBinlogGtid": "2bb857c6-b1c3-11ed-983c-fa163e3df2cf:1-461",
                        "syncerBinlog": "(bin.000001, 105122)",
                        "syncerBinlogGtid": "2bb857c6-b1c3-11ed-983c-fa163e3df2cf:1-460",
                        "blockingDDLs": [
                        ],
                        "unresolvedGroups": [
                        ],
                        "synced": false,
                        "binlogType": "remote",
                        "secondsBehindMaster": "0",
                        "blockDDLOwner": "",
                        "conflictMsg": "",
                        "totalRows": "4",
                        "totalRps": "0",
                        "recentRps": "0"
                    },
                    "validation": null
                }
            ]
        }
    ]
}

Please answer this question

Please answer this question

done

it's a bit strange, can you provide the log? Also you can use https://asktug.com/tag/dm to get support from community.

Be able to reproduce the issue with v6.5.0. Is it bacause DDL is the last event (https://github.com/pingcap/tiflow/pull/8193)? I Delete colomn event is synced to downstream after inserting some data to the upstreams in my testing.
dm-worker-1.log
dm-worker-0.log


adding demos to gh-pages

Want to make demos available at http://google.github.io/closure-library/closure/goog/demos/index.html

Before someone can look at this a CLA must be signed.
https://github.com/google/closure-library/blob/master/CONTRIBUTING

This has been available for a while: http://google.github.io/closure-library/source/closure/goog/demos/


Dockerize bdapis app

Dockerize BDAPIS app with Nginx -node express  and MongoDB

The docker PR issue has been fixed for Dev environment setup. So, I'm gonna close this issue.


Check coding style

This PR stops PRs violating coding standard defined in .php_cs
Please fix coding style ./bin/php-cs-fixer fix before merging.

@szepeviktor Thank for your contributing!

@szepeviktor  Thank you very much!
Welcome to join the gitter community to participate in discussions and sharing.

@szepeviktor  I have restored the phpstan script.
https://github.com/swoft-cloud/swoft/commit/283ee7663e000cd995b75876245f9749999d70e0

You're welcome.
I am not using projects I contribute to :)
I promote phpstan and randomly contributing.

@szepeviktor  OK, but still very grateful for your contribution


(draft) feat: add Koala Backend API

Summary
This PR adds some basic infrastructure for a Koala API. The intention for this PR is purely to raise the discussion for how we implement this.
I propose we implement an API using Quart - Quart is forked from Flask but allows more async options. I had originally tried implementing via Flask, but ran into many issues when working with Discord.py.
I think the main point of contention and changes that will be required will be reducing and simplifying the usage of ctx (Discord Context) as that won't be available to the API. Where possible we should do things like self.bot.get_guild(guild_id) where the guild_id is a parameter on the methods (which can be passed as ctx.guild.id).
I'll add comments on other points which I think might be interesting and would be interested in hearing your opinions on.

[x] All of this code is your own, or follows the author repo's licence.

Contributes to: #0 (Pending issue)
Signed-off-by: Stefan Cooper<EMAIL_ADDRESS>

How does quart compare to aiohttp?

How does quart compare to aiohttp?

Don't know much about aiohttp - i've been experimenting with different REST API options over the past week or so, Quart seemed the easiest to get up and running quickly but I think if I can get it working, then FastAPI would probably be the most well supported library to use.

Superseded by #299


MSEARCH-24 Implement search by isbn and issn identifiers

@pfilippovEPAM, for an invalid isbn 1 23, the search 1 23 or 1 2* will not be able to find it but 1* will. Do you know the requirement for this case? The ticket https://issues.folio.org/browse/MSEARCH-24 is not clear about that. I assume this should be the regular search (#3 in the ticket) not normalized search.

@pfilippovEPAM, let me know what's your plan so we can move on about this PR.

For 1 23, search 1 * does not work. Not sure how important it is though. Please feel free to merge this PR. I am done with reviewing it.

It is not working at other terms too, I guess we should forbid this syntax, because expected behavior of this structure is really unclear for me (it just an assumption, it should be discussed and implemented in other story)


Search is toggled on in Mobile Preview Options but is not appearing

@xavijam
S/B 7020530
Context
Search box doesn't appear in mobile map versions but users are able to toggle Search on in Options.
Process

Create an Editor map in regular Desktop preview, with Search box toggled on in Options.
Click 'Preview Map' button, then click 'Mobile'
Click Options & you'll see Search box is still active & toggled on.

Expected result
In Mobile Preview Search box option should be grayed out & inactive, like Share Options & Zoom Control are grayed out.
Current result
Search box toggle is still active & on in Mobile Preview but Search box is not appearing on map, or  in expanded menu.
My test: http://cdb.io/1PhbgCp

Just reviewed in my phone and indeed, the searchbox is not there. The option seems to be correctly set up at least in the viz.json:
https://team.cartodb.com/u/stephaniemongon/api/v2/viz/d9443318-62cf-11e5-be6c-0e853d047bba/viz.json

S/B 7604251

S/B 7020530
S/B 7085259

This is gonna change with the new cartodb.js components, so closing for now :).

hey @xavijam - another user is reporting this issue, do we have an update on this one?
S/B: 9518753


[WithTimeSpan(Second = ...)] attribute ignored

Description
I'm trying to implement page object on certain project. I'm very keen on Java, and there is no issue when using @WithTimeout annotation to wait either until element present or timeout. Just migrating to C#, I found that the equivalent @WithTimeout annotation is [WithTimeSpan] attribute, which I implement then I notice it's do nothing. Since I can't perform wait with that, Appium keep telling me no such element. I've adjust seconds up to 50 seconds, and even minutes (although on manual test, it should only wait for less than 10 seconds).
Environment

.NET :  4.5.2
Appium server version : 1.6.5 on Appium Desktop 1.2.2
Desktop OS/version used to run Appium if necessary: Windows 10 Professional
Mobile platform/version under test: Android 4.4 (Kitkat), Android 5.0 (Lolipop) and Android 7 (Nougat)
Real device: Lenovo K5
Emulator: Google Emulator

Details
I implement it such as below. This class called from unit test. And yes, I have satisfy all capabilities.
using OpenQA.Selenium;
using OpenQA.Selenium.Appium;
using OpenQA.Selenium.Appium.Interfaces;
using OpenQA.Selenium.Appium.PageObjects.Attributes;
using OpenQA.Selenium.Support.PageObjects;
using OpenQA.Selenium.Support.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace AppiumTraining.page
{
    class AltusLoginPage
    {
        private AppiumDriver<AppiumWebElement> driver;

        public AltusLoginPage(AppiumDriver<AppiumWebElement> driver)
        {
            this.driver = driver;
            PageFactory.InitElements(driver, this);
        }

        [WithTimeSpan(Seconds = 30)]
        [FindsBy(How = How.XPath, Using = "//*[@id='Input_UsernameVal2']")]
        private IWebElement customerCodeField;

        public void doSomething()
        {
            customerCodeField.Clear();
            customerCodeField.SendKeys("Altus");
        }
    }
}

Link to Appium logs
I don't think logs are related to this issue, but here is it.
https://gist.github.com/agriardyan/a2159ab6aff422b520fc85df63b78d2f

Hi,
This seems to be big issue when you are implementing pageobjects pattern in Appium with C#.
I tried many options with no success. Test fails immediately without waiting for control to load.
As mentioned above [WithTimeSpan(Seconds = 30)] attribute is being ignored.
Tried
duration = new TimeOutDuration(new TimeSpan(0, 0, 30));
PageFactory.InitElements(driver, map, new AppiumPageObjectMemberDecorator(duration));
and some other options as well but nothing seems to be working.


Deploy docs from main to ghpages

I suggest that the example be updated to deploy from main rather than master.
I tried replacing master with main in the ci.yml
    branches: [main]
But then it doesn't deploy to gh-pages.
Info: Deployment criteria for deploying devbranch build from GitHub Actions:
│ - ✔ ENV["GITHUB_REPOSITORY"]="PsuAstro528/project-template" occurs in repo="github.com/PsuAstro528/project-template.git"
│ - ✔ ENV["GITHUB_EVENT_NAME"]="push" is "push"
│ - ✘ ENV["GITHUB_REF"] matches devbranch="master"
│ - ✔ ENV["GITHUB_ACTOR"] exists
│ - ✔ ENV["DOCUMENTER_KEY"] exists
└ Deploying: ✘

Then I tried adding devbranch to docs/make.jl
deploydocs(repo = "github.com/PsuAstro528/project-template.git", devbranch="main")
but then I got
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
Initialized empty Git repository in /tmp/jl_f1Y7Hk/.git/
Load key "/home/runner/work/project-template/project-template/docs/.documenter": error in libcrypto
<EMAIL_ADDRESS>Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
┌ Error: Git failed to fetch git@github.com:PsuAstro528/project-template.git
│ This can be caused by a DOCUMENTER_KEY variable that is not correctly set up.
│ Make sure that the environment variable is properly set up as a Base64-encoded string
│ of the SSH private key.
I'm probably missing something basic, but it's not obvious how to solve this from either example or the documentation.  Thanks.

Thanks


Number of parameters in Attention layer

Thank you for your contribution of attention python package.
When I am using it as a novice, I have two questions.
If you have time available, can you give me a  #hand?
In the next example code you provided,

Can you explain to me how to calculate the number of parameters in Attention layer (8192)?
I can calculate the number of LSTM and Dense layers (16896, 33)
but despite many attempts, I can't figure it out how to calculate 8192 in the case of Attention layer.

This attention in the example belongs to Luong's version or Bahdanau's version?

----------------- Example code you provided --------------------
num_samples, time_steps, input_dim, output_dim = 100, 10, 1, 1
data_x = np.random.uniform(size=(num_samples, time_steps, input_dim))
data_y = np.random.uniform(size=(num_samples, output_dim))
model_input = Input(shape=(time_steps, input_dim))
x = LSTM(64, return_sequences=True)(model_input)
x = Attention(32)(x)
x = Dense(1)(x)
model = Model(model_input, x)

Model Structure
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Layer (type) ______________________ Output Shape ______ Param
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
input_10 (InputLayer)  ___________  [(None, 10, 1)]  ____ 0
lstm_146 (LSTM) ________________  (None, 10, 64)  ____ 16896
attention_146 (Attention) _______ (None, 32)  ________ 8192
dense_283 (Dense) ______________ (None, 1)  _________ 33
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Total params: 25,121
Trainable params: 25,121
Non-trainable params: 0
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Both are supported. You need to upgrade the lib and specify the score as parameter to the Attention layer.
Bahdanau

Luong

If you want to see a breakdown of each sublayer in the attention layer you can do the following.
import os
os.environ['KERAS_ATTENTION_DEBUG'] = '1'
from attention import Attention

And then just call model.summary(), it will show you a lot more.
Example of summary output.
Model: "model"
__________________________________________________________________________________________________
 Layer (type)                   Output Shape         Param #     Connected to
==================================================================================================
 input_1 (InputLayer)           [(None, 10, 1)]      0           []

 lstm (LSTM)                    (None, 10, 64)       16896       ['input_1[0][0]']

 last_hidden_state (Lambda)     (None, 64)           0           ['lstm[0][0]']

 luong_w (Dense)                (None, 10, 64)       4096        ['lstm[0][0]']

 attention_score (Dot)          (None, 10)           0           ['last_hidden_state[0][0]',
                                                                  'luong_w[0][0]']

 attention_weight (Activation)  (None, 10)           0           ['attention_score[0][0]']

 context_vector (Dot)           (None, 64)           0           ['lstm[0][0]',
                                                                  'attention_weight[0][0]']

 attention_output (Concatenate)  (None, 128)         0           ['context_vector[0][0]',
                                                                  'last_hidden_state[0][0]']

 attention_vector (Dense)       (None, 32)           4096        ['attention_output[0][0]']

 dense (Dense)                  (None, 1)            33          ['attention_vector[0][0]']

==================================================================================================
Total params: 25,121
Trainable params: 25,121
Non-trainable params: 0

I hope this answers your question.

Thank you very much for you and your work.
I'll try to understand your reply step by step.
This reply will help me and all others.


Add a page for where things are in the Open Robotics' ecosystem

Currently, I have trouble knowing where ROS 2 related information should live. It would be nice to have a page in the documentation that explains what service/organization is used for what.
This could include the following:

Github, including the different organizations
Docs, including when to look at tutorials, guides, and concepts
Discourse
ROS Answers
REP
Build/CI
Dockerhub

@audrow any progress on this? If not so, then I'd like to give it a shot

We could definitely use help here.  My suggestion for this is to put it in the "Contributing" section of the documentation, probably as a new page under there.


Report actual test results even if fail-fast stops execution

The intention of using --fail-fast on a Test task is to stop as soon as possible after the first test failed. This is implemented by calling TestExecuter.stopNow() which eventually leads to the forked JVM closing the socket connection. In the meantime, test are still being executed and results are being reported. However, instead of reporting those actual results, FailFastTestListenerInternal currently replaces them with skipped/failed results. That can lead to confusing results, e.g. test logging reporting a test as skipped but including an exception which is then no longer present in the resulting HTML report or build scan. In the case of Test Distribution, this problem is even more severe as it currently doesn't support fail-fast. However, even if it did the situation is similar to when using maxParallelForks > 1: It takes time to stop all forks/executors. Rather than discarding valid test results, we should report them.
The current logic in FailFastTestListenerInternal is unnecessary since StateTrackingTestResultProcessor already ensures that all started tests are reported as skipped should they not be completed and that composites with failed children are reported as failed.

Is it possible to add a test that demonstrates this being fixed?

Sure, I'll add one.

@bot-gradle test and merge

OK, I've already triggered a build for you.

Pre-tested commit build failed.

@jjohannes No objections! It's still on my list, just didn't get to it, yet. I'll see if I can provide a functional test in a follow-up PR.

@bot-gradle test and merge

OK, I've already triggered a build for you.

Pre-tested commit build failed.

@bot-gradle test and merge

OK, I've already triggered a build for you.

Pre-tested commit build failed.

@bot-gradle test and merge

OK, I've already triggered a build for you.


 I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-554


Issue when querying Many-To-Many tables with tables that self reference: Recursive common table expression 'cte_0' does not contain a top-level UNION ALL operator.

Bug description
When queuing explicit many to many table I get the exception
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(TokenError { code: 252, state: 1, class: 16, message: "Recursive common table expression 'cte_0' does not contain a top-level UNION ALL operator.", server: "e0a44d9012ef", procedure: "", line: 1 }), transient: false })
    at RequestHandler.handleRequestError (/Users/lukaszsalamon/Repos/spikes/prisma/node_modules/@prisma/client/runtime/index.js:31950:13)
    at RequestHandler.handleAndLogRequestError (/Users/lukaszsalamon/Repos/spikes/prisma/node_modules/@prisma/client/runtime/index.js:31913:12)
    at RequestHandler.request (/Users/lukaszsalamon/Repos/spikes/prisma/node_modules/@prisma/client/runtime/index.js:31908:12)
    at async PrismaClient._request (/Users/lukaszsalamon/Repos/spikes/prisma/node_modules/@prisma/client/runtime/index.js:32994:16) {
  clientVersion: '4.9.0',
  batchRequestIdx: undefined
}

The many-to-many table references and entity that has self references which are used in the  query.
prisma query looks like :
prisma.userGroups.findMany({
        where: {
            group: {
                application: {
                    owners: {
                        some: {
                            group: {
                                users: {
                                    some: {
                                        userId: '9771e3b4-2508-4531-9012-1932064acef2'
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
    })

Might be related to #16747 (https://github.com/prisma/prisma/issues/16747).
How to reproduce
I have prepared example project that reproduce this and one more issue
https://github.com/salcio/prismaIssue
Expected behavior
Query should execute without errors.
Prisma information

generator client {
  provider        = "prisma-client-js"
  previewFeatures = []
  binaryTargets   = ["native", "debian-openssl-3.0.x", "debian-openssl-1.1.x"]
}

datasource db {
  provider = "sqlserver"
  url      = env("DATABASE_URL")
}

model User {
  id                    String                 @id @default(dbgenerated("newid()")) @db.UniqueIdentifier
  name                  String                 @db.NVarChar(255)
  email                 String?
  username              String                 @unique @db.NVarChar(255)
  organisationId        String?                @db.UniqueIdentifier
  organisation          Organisation?          @relation(fields: [organisationId], references: [id])
  groups                UserGroups[]
}

model Organisation {
  id         String    @id @default(dbgenerated("newid()")) @db.UniqueIdentifier
  name       String    @unique @db.NVarChar(255)
  users      User[]
}

model Group {
  id                    String                 @id @default(dbgenerated("newid()")) @db.UniqueIdentifier
  name                  String                 @unique
  tcpPrefix             String?
  applicationId         String?                @db.UniqueIdentifier
  ownedApplications     ApplicationOwner[]
  application           Application?           @relation(fields: [applicationId], references: [id])
  managedGroups         GroupManager[]         @relation("managedGroups")
  managers              GroupManager[]         @relation("managers")
  users                 UserGroups[]
}

model Application {
  id               String               @id @default(dbgenerated("newid()")) @db.UniqueIdentifier
  name             String               @unique
  owners           ApplicationOwner[]
  groups           Group[]
}

model UserGroups {
  userId     String   @db.UniqueIdentifier
  groupId    String   @db.UniqueIdentifier
  assignedAt DateTime @default(now())
  assignedBy String
  group      Group    @relation(fields: [groupId], references: [id])
  user       User     @relation(fields: [userId], references: [id])

  @@id([groupId, userId])
}

model ApplicationOwner {
  applicationId String      @db.UniqueIdentifier
  groupId       String      @db.UniqueIdentifier
  assignedAt    DateTime    @default(now())
  assignedBy    String
  application   Application @relation(fields: [applicationId], references: [id], onUpdate: NoAction)
  group         Group       @relation(fields: [groupId], references: [id])

  @@id([groupId, applicationId])
}

model GroupManager {
  managerId  String   @db.UniqueIdentifier
  groupId    String   @db.UniqueIdentifier
  assignedAt DateTime @default(now())
  assignedBy String
  group      Group    @relation("managedGroups", fields: [groupId], references: [id], onUpdate: NoAction)
  manager    Group    @relation("managers", fields: [managerId], references: [id], onUpdate: NoAction)

  @@id([groupId, managerId])
}

import {PrismaClient} from '@prisma/client'

const prisma = new PrismaClient()

async function main() {
    if (!(await prisma.user.findFirst({where: {name: 'Alice'}}))) {
        const user = await prisma.user.create({
            data: {
                name: 'Alice',
                email<EMAIL_ADDRESS>                username: 'alice'
            },
        })
        console.log(user);
    }
    console.log('-----======== Get all user groups where user name is Alice =======-----');
    console.log(await prisma.userGroups.findMany({where: {user: {name: 'Alice'}}}));
    console.log('-----======== Count all user groups where user name is Alice - directly from usersGroups table =======-----');
    try {
        console.log(await prisma.userGroups.count({ where: {user: {name: 'Alice'}}}));
        console.log(await prisma.userGroups.aggregate({_count: {_all: true}, where: {user: {name: 'Alice'}}}));
    } catch (e) {
        console.log(e);
    }
    console.log('-----======== Count all user groups where user name is Alice - from user record =======-----');
    console.log(await prisma.user.findMany({where: {name: 'Alice'}, select: {_count: {select: {groups: true}}}}));
    console.log('-----======== Get all users groups that belong to an aplication in which user is the owner =======-----');
    try {
        console.log(await prisma.userGroups.findMany({
        where: {
            group: {
                application: {
                    owners: {
                        some: {
                            group: {
                                users: {
                                    some: {
                                        userId: '9771e3b4-2508-4531-9012-1932064acef2'
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
    }));
    } catch (e) {
        console.log(e);
    }
    console.log('-----======== Get all groups that belong to an application in which user is the owner =======-----');
    console.log(await prisma.group.findMany({
        where: {
                application: {
                    owners: {
                        some: {
                            group: {
                                users: {
                                    some: {
                                        userId: '9771e3b4-2508-4531-9012-1932064acef2'
                                    }
                                }
                            }
                        }
                    }
                }
        },
    }));
}

main()
    .then(async () => {
        await prisma.$disconnect()
    })
    .catch(async (e) => {
        console.error(e)
        await prisma.$disconnect()
        process.exit(1)
    })

Environment & setup

OS: macOS
Database: SQL Server
Node.js version: v16.14.2

Prisma Version
prisma                  : 4.9.0
@prisma/client          : 4.9.0
Current platform        : darwin
Query Engine (Node-API) : libquery-engine ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5 (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5 (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine    : introspection-core ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5 (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary           : prisma-fmt ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5 (at node_modules/@prisma/engines/prisma-fmt-darwin)
Format Wasm             : @prisma/prisma-fmt-wasm 4.9.0-42.ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5
Default Engines Hash    : ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5
Studio                  : 0.479.0

any workaround for this?

I can confirm this with Prisma 4.9.0 @salcio, thanks for the excellent reproduction.

Can you confirm that this has been fixed @salcio and @FraGoTe?


List of all collisions that occured

Hi folks,
In order to check whether or not my player collided with another body I need a list of all the collisions that occurred and see if the player's body is somewhere in there. In the p2.js physics engine, all the collisions that happened in the last update are stored in a variable, however, when I look at the source of Matter.js it looks like the collisions are simply thrown away after they've been resolved.
I was wondering if there was a way to get all the collisions that occurred in the last update, otherwise, wouldn't it be nice to store them like p2.js does?
Or am I going about this in the wrong way?
At the moment I'm thinking about adding a line in the Engine.update which stores the collision variable that is being used within that scope so that I can access it from outside.

Engine reports collisions in the pairs property of the collisionStart, collisionActive, and collisionEnd events.
http://brm.io/matter-js/docs/classes/Engine.html

@plurry Thanks, that's what I needed


JBEAP-20703 - update EAP XP2 quickstart branch and context dir

https://issues.redhat.com/browse/JBEAP-20703
Signed-off-by: Ken Wills<EMAIL_ADDRESS>

@luck3y thanks


[Confluence Search] Fails on JSON parse

Extension – Confluence Search
Author: @daviddkkimite
We use confluence as a primary knowledgebase in our company, so confluence search from raycast would be very helpful for me.
I installed confluence search extension.
Entered my credentials.
But it fail on any search on json parse.
It could be because of our particular confluence installation, so I tried to troubleshoot it and installed local version from github (this repo).
Error appears here:
const json = (await response.json()) as APIResponse;
Here is response:

And respose by itself. It some 401 apache tomcat response:
<!doctype html><title>HTTP Status 401 – Unauthorized</title>
HTTP Status 401 – Unauthorized

Type Status Report

Message Basic Authentication Failure - Reason : AUTHENTICATED_FAILED

Description The request has not been applied because it lacks valid authentication credentials for the target resource.

Apache Tomcat/9.0.45

Our confluence version:  7.13.0
It really could be misconfiguration of our confluence. If so I will be grateful for help to describe our IT the issue. (What url to check and what to expect).
Raycast version
Version: 1.31.0

These changes worked for me:

Maybe it's our confluence settings.
Also worked for me:
↓
```<OpenInBrowserAction title="Open in Browser" url={confluenceUrl + searchResult.url} />```

It seems issue was generated incorrectly with wrong mention.
@daviddkkim, could you please check?


Fix issue 2106: Add parsing functionality for MySQL ADD PARTITION and DROP PARTITION clauses in ALTER TABLE statements

Summary
This PR addresses the issue with JSQLParser's inability to parse ADD PARTITION clauses in ALTER TABLE statements for MySQL 8.0. Previously, these clauses were not recognized, causing parsing errors for certain ALTER TABLE operations.
Changes

Updated AlterOperation enum to include ADD PARTITION.
Modified the parser to correctly identify and handle the ADD PARTITION clauses, allowing for accurate parsing of these statements.

References
MySQL Documentation: ALTER TABLE Partition Operations
Note
This update enables JSQLParser to parse MySQL 8.0-specific partition operations within ALTER TABLE statements, improving support for MySQL-specific syntax. Additional partition-related clauses (such as REORGANIZE PARTITION, REMOVE PARTITIONING, etc.) are planned for future implementation to fully support MySQL's ALTER TABLE partition syntax.

Thanks a lot, but please fix QA exceptions. I 'd like to advise to run gradle check before submitting. Cheers!

@manticore-projects
Hello, I think it would be helpful to include these steps in the contribution guide.
Adding instructions on running ./gradlew :spotlessApply for code formatting and gradle check for QA checks could improve the submission process and help contributors avoid similar issues. Including these steps in the contribution guidelines would make it easier for everyone to ensure code quality and consistency.


Consider adding repo-review badge to README

Hello! It looks like your repo was recently reviewed or trending. This PR adds a "review me" badge to your repo's README. It would surely be helpful for the open-source community to collect and share your UX stories, but completely understand if you prefer not to add a review badge.

prefer not to


[Refactor]: Refactor frontend + Add routing

add routing
fix cors
refactor

Bug in Routing has to be fixed

Problem with data fetching. Matches are not displayed.

Closed with latest merge


Keep literal in parsed name objects

Even if the parsing seems successful, it's probably worth it to keep the original input (assuming citeproc-js can handle that).

I assumed wrong: https://runkit.com/larsgw/citation-js-name-additional-literal-prop/1.0.0


How to use resnet-101 for Faster R-CNN on PASCAL VOC?

Hello, I've downloaded a faster r-cnn resnet-101 backbone for PASCAL VOC from https://modelzoo.co/model/faster-rcnnpytorch. I've tried using it as a checkpoint and modifying the pre-trained and backbone depth arguments. I've gotten APs of 0 only, though. Is there any way I can use resnet-101 as a backbone for Faster R-CNN when testing on PASCAL VOC?

We don't support PASCAL VOC dataset. Maybe you should go to the MMDetection's repo and raise this issue? This is MMDetection3D which deals with point cloud data.

Oh deeply sorry, I didn't realize this was mmdetection3D. Thank you for your response.


Outdated import in python sample presidio_notebook.ipynb

Problem: In the presidio_notebook.ipynb notebook under docs\samples\python, the following import statement is not used and does not work: from presidio_anonymizer.entities import AnonymizerConfig.
Solution: This import statement should be replaced by from presidio_anonymizer.entities.engine import OperatorConfig which is used in the last cell.

Hi @alazraq, thanks for your issue! Would you like to contribute a fix?

Hello @omri374, I would love to. This is just a one-line change if you give me Contributor rights I can do the PR quickly.

@alazraq thanks! You can just fork the repo and create a PR from your fork


fix(get-search-meta): Ensure incoming file string to getMDXMeta has forward slashes.

📝 Description
Found issue related to contributors using Windows OS where incoming meta file strings into the getMDXMeta function can render backslashes instead of forward slashes. This prevents the fileToPath function from returning certain strings correctly.
⛳ Current behavior (updates)
Impacts search meta for the Changelog page as the rendered url strings included index at the end, resulting in 404 errors on search.
🚀 New behavior
Creating a variable to ensure all backslashes were forward slashes from the incoming file string prior to it being used allows the generated urls for the changelog page to not render index in the filepath.
💣 Is this a breaking change (Yes/No):
No
Additional Information

Merged Pull Request #423 was impacted because the proper search-meta.json from that commit was overwritten.
This should also close #449 as this fix addresses the 404 for that FAQ section.

@nikolovlazar I must be an edge case because this was a problem previously; I am terribly sorry! 😅
@aacevski can you please verify I have made an appropriate and successful change since this is Windows related? 🙏

LGTM! Let's see what @aacevski says after he tests this one.

Hey! This works well on my PC but I'm a bit confused on what the issue was in the first place? I've regenerated the search meta and for the MDX files the path stayed the same.

@aacevski Anytime I tried to regenerate the meta, I was noticing with the changelog page url, say, it still added index at the end which creates a 404:
  {
    "content": "Changelog",
    "id": "f1daa5ef-93c7-42bf-bb2d-64a172635e73",
    "type": "lvl1",
    "url": "/changelog/index",
    "hierarchy": { "lvl1": "Changelog" }
  },

When I was checking out the incoming file string from the file param of getMDXMeta, it was showing a string with backslashes, which interferes with the fileToPath function's ability to remove index on line 37.
In the fileToPath function:
  if (indexRE.test(file)) {
    return file.replace(indexRE, '/$1');
  }

Where the indexRE regex is /(^|.*\/)index\.(md|mdx|js|jsx|ts|tsx)$/i;

The backslashes are appearing in the files variable on line 73, as there is a process.cwd() method being called there.
I'm having trouble finding any specific discussion of this as it relates to Windows 10 and Node, other than generalized discussions about filepaths can be rendered with backslashes.

I haven't found any discussions that are specific to my situation with Windows 10 and Node.
But I dove back into the @docusaurus/utils file and found the posixPath function that handles just this case!
So I could do this instead:
async function getMDXMeta(file: string) {

  const posixFile = posixPath(file) //<<<----- Here

  const { content, frontMatter: _frontMatter } = await parseMarkdownFile(file)
  const frontMatter = _frontMatter as Record<string, any>
  const tableOfContent = toc(content)
  const json = tableOfContent.json as TOCResultItem[]
  const slug = fileToPath(posixFile)
    .replace(`/${websiteRoot}`, '')
    .replace(posixPath(process.cwd()), '') // <<<------- And also here

Would this be acceptable, or too much?

@TylerAPfledderer try it out. See if it helps in your case on Windows.

@TylerAPfledderer it works for me! I think it's better to utilize a function from an existing package that serves this specific purpose, and can use it to keep the code tidy and consistent.
I've added a couple of other changes for consistency, and will push for review.

Other than that, it works well for me on Windows!

@nikolovlazar should be good to go at this point!

@TylerAPfledderer I'm not getting the useRadio or useRadioGroup in the search meta. Can you try updating it again before we merge it?

Got it, @nikolovlazar! Check again. 👍

@TylerAPfledderer looks like it's ready to be merged! Just take care of the conflicts before we do that.

@nikolovlazar conflicts resolved!


WeakSet should be WeakSet

TypeScript Version:  nightly (2.3.0-dev.20170324)
Code
const s = new WeakSet<string>();
s.add("foo");

Expected behavior:
An error, since this will fail at runtime.
Actual behavior:
No error.

I done it, but @mhegazy reverted that fix in #15278. His reverting doesn't comply with the spec of ecma. We should comply with the spec.
@mhegazy says object constraints of WeakSet causes errors in @types/lodash, but WeakMap is not. Why? lodash has correct constraints for WeakMap like https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/index.d.ts#L12898. So WeakMap already have object constraints. WeakSet also should be so.

We reverted the change to avoid breaking @types/lodash. we should reply it, but first we need either 1. remove these definitions from @types/lodash alltogahter, or 2. relax the rule on the compiler side that all declarations have the same constraint.
The definition in lodash is at the end of the file, not visible on github view:
// Backward compatibility with --target es5
declare global {
    interface Set<T> { }
    interface Map<K, V> { }
    interface WeakSet<T> { }  // this breaks if lib.es6.d.ts has WeakSet<T extends object>
    interface WeakMap<K extends object, V> { }
}

Now that problem seems to have go away.

so what happened to lodash use of this API?

A last fix is https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21502 and https://github.com/Microsoft/TypeScript/pull/19756. We need to accept some breaking changes, or never fix this bug.

As i mentioned earlier, we need to first:

relax the rule on the compiler side that all declarations have the same constraint.

Is there a proposal issue of that?

nope.

Can you make it to resolve this issue?

feel free to file a new issue for it.

Why you don't do that?

here you go https://github.com/Microsoft/TypeScript/issues/20018

Thanks.


Cannot use cloud build service.  steroids deploy

Sun Mar 25 2018 15:43:48 GMT-0400 (Eastern Daylight Time) Zip created, timestamp:<PHONE_NUMBER>644
Sun Mar 25 2018 15:43:48 GMT-0400 (Eastern Daylight Time) DEPLOY: Updating existing app with id 90457
Sun Mar 25 2018 15:43:49 GMT-0400 (Eastern Daylight Time) DEPLOY: Got cloud upload response
Error with: steroids deploy
TypeError: Second argument needs to be a buffer
at Object.fs.read (fs.js:682:11)

This is a problem with the reslter dependency using the obsolete fs.read function protocol. You can resolve this by updating restler with the pending PR.
https://github.com/danwrong/restler/pull/251

I have the exact same issue and I don't understand how to solve it.
@yangy46 I'm on Windows with Node 10.13.0 and NPM 6.4.1 how can I manage to make it work?
Thanks a lot!

I eventually figured it out!
I replaced the file multipartform.js, located in C:\Users\[USERNAME]\AppData\Roaming\npm\node_modules\steroids\node_modules\restler\lib\multipartform.js with the one from the pending pull request from restler.
Then steroids deploy would trigger me a now error concerning the function fs.close(fd); inside it, so I went on line 133 of that file and simply commented that line.
It's now working again! :)


Disproportionate performance between HashSet and List

This isn't between C# and JS itself, but the difference in collection routines relative to each other.
In native C#, the Add function for HashSet requires about 3x the time of an Add to List.  In the JSIL converted code, the difference is about 25x (on Chrome).
Iterating the HashSet versus List in native C# is about 20% slower.  In the JSIL converted code it's nearly 50 times slower (again on Chrome).
The Random access (Contains function) appears to proportional with C# - providing a win starting at around 30 items in the list.  This is traditionally why somebody would pick this collection.
It might be the case there is nothing that can be done, but the shift in relative performance means that the first 2 scenarios have to be scrutinized and weighed against the access calls when deciding what to use.  Thought I would pass it on as it can at least be information for others to be aware of as well.
Add:
       int sum = 0;

        HashSet<int> set = new HashSet<int>();
        //List<int> set = new List<int>();

        for (int i = 0; i < 100000; i++)
        {
            set.Clear();
            for (int j = 0; j < 1000; j++)
            {
                set.Add(j);
            }
        }

Iterate:
       int sum = 0;

        HashSet<int> set = new HashSet<int>();
        //List<int> set = new List<int>();
        for (int j = 0; j < 1000; j++)
        {
            set.Add(j);
        }

        for (int i = 0; i < 1000000; i++)
        {
            foreach (var x in set)
            {
                sum += x;
            }
        }
        Console.WriteLine(sum);

The ideal implementation of HashSet and Dictionary in JS is to cross-compile the implementations from the native CLR. Right now we use native JS data structures and to put it simply, native JS data structures are garbage.

Off the top of my head, HashSet iteration is expensive because JS provides no way to incrementally iterate a non-array container. So creating a HashSet enumerator calls Object.keys, which is at best O(N) and allocates M(N). (yay)
HashSet and Dictionary both are layered on top of a JS Object where GetHashCode is used to generate the key for each bucket. Each bucket is a wrapper list that contains the individual elements in the bucket (necessary for cases where the hashcodes collide but the values are not equal.)
JS Object converts all keys into strings, so that's probably the source of some additional overhead.
It's possible this could be improved slightly by using Map instead of Object, assuming all the target browsers expose that now. I don't think it has incremental iteration either, though.

Map and Set (along with Symbol.iterator) appear to be in the latest builds of Chrome and Firefox, so I might look at reworking JSIL's containers to use those and get the performance closer to reasonable.

Thanks for all the replies!  Very helpful information.
I’m in an explorative stage to see how feasible it to translate C# to JS in such a way that I don’t damage the overall maintainability of the C# code and have the JS translation work at a good enough speed.  I’ve managed to work around each thing I’ve discovered so far, but it’s a tricky balancing act.  What you’ve built is pretty incredible considering the limitations of JS.
From: K. Gadd<EMAIL_ADDRESS>Sent: Tuesday, February 03, 2015 3:13 PM
To: sq/JSIL
Cc: Harris, Dave
Subject: Re: [JSIL] Disproportionate performance between HashSet and List (#657)
Map and Set (along with Symbol.iterator) appear to be in the latest builds of Chrome and Firefox, so I might look at reworking JSIL's containers to use those and get the performance closer to reasonable.
—
Reply to this email directly or view it on GitHubhttps://github.com/sq/JSIL/issues/657#issuecomment-72746684.

Join us for Xactware User Conference 2015 on Feb. 10-11 in Salt Lake City. Stay February 12 for an extra day of free training. Visit www.xactwareuserconference.com for more information.

This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error.

Things should be a lot better if Typed Objects and asm.js v2 both become a reality. In the near term, translated mscorlib will probably help a lot if I get that to the point where it can be the default.

I tried moving Dictionary and HashSet to ES6 Map and it's considerably slower because Map is slow as hell in both V8 and SpiderMonkey. Yay.
On the other hand this does remove the huge allocation from Enumerator construction (because the ES6 containers have iterators), so that's nice...

Once SM bug 1129313 is fixed it'll be realistic to do this (V8 will catch up eventually, I'm sure). For now it's on a branch.

I'm in no big hurry.  I've added a wrapper class that uses List<> if compiled with JSIL flag, otherwise HashSet<>, everybody on the outside deals with ICollection so the implementation is hidden.


Phone and Email are not found in the Excel worksheet

Hi,
I get this error in the terminal which I am not sure how to overcome:
[40524:41272:0102/150447.072:ERROR:device_event_log_impl.cc(211)] [15:04:47.072] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
And when the Excel file is created I just see the name and address of the businesses in Google Maps and their phone number and email is empty.
What's the problem here, you think?

Hi,
I get this error in the terminal which I am not sure how to overcome:
[40524:41272:0102/150447.072:ERROR:device_event_log_impl.cc(211)] [15:04:47.072] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
And when the Excel file is created I just see the name and address of the businesses in Google Maps and their phone number and email is empty.
What's the problem here, you think?

I don't know about the error, seems as if it is not connected to the scraper itself as the scraper is not using any usb ports or whatsoever.
For the empty fields, it may happen that there is no phone number? Update the chromedriver to the latest version, that may fix some issues. I am using Ubuntu 20.04 for developing this app, not sure if it works well on Windows yet.
As for the email, if you choose to scrape the website, it will still get very few emails as it is not perfected yet.

Hi,
I get this error in the terminal which I am not sure how to overcome:
[40524:41272:0102/150447.072:ERROR:device_event_log_impl.cc(211)] [15:04:47.072] USB: usb_device_handle_win.cc:1020 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
And when the Excel file is created I just see the name and address of the businesses in Google Maps and their phone number and email is empty.
What's the problem here, you think?

I don't know about the error, seems as if it is not connected to the scraper itself as the scraper is not using any usb ports or whatsoever.
For the empty fields, it may happen that there is no phone number? Update the chromedriver to the latest version, that may fix some issues. I am using Ubuntu 20.04 for developing this app, not sure if it works well on Windows yet.
As for the email, if you choose to scrape the website, it will still get very few emails as it is not perfected yet.


Parse []BaseImageConfiguration from a JSON

https://github.com/replicate/cog/pull/1691 should fix the failing lint job in CI. Re-running after rebasing should resolve that flakey test timeout.

I believe this is superseded by https://github.com/replicate/cog/pull/1712.
@nevillelyh If that's not the case, could you please reopen and handle rebasing?


Error Starting VFIO-KVM service

Just starting out with this.  I get the following error:
Nov 02 13:28:41 #######-server01 systemd[1]: Started VFIO-KVM service.
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]: [ERROR] An exception ocurred when emitting ObjectManager.InterfacesAdded for vfio.kvm. Some properties will not be included in the signal.
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]: Traceback (most recent call last):
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]:   File "/usr/lib/python3.9/site-packages/dbus_next/message_bus.py", line 227, in get_properties_callback
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]:     raise e
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]:   File "/usr/lib/python3.9/site-packages/dbus_next/service.py", line 538, in get_property_callback
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]:     result[prop.name] = Variant(prop.signature, value)
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]:   File "/usr/lib/python3.9/site-packages/dbus_next/signature.py", line 405, in __init__
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]:     signature_type.verify(value)
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]:   File "/usr/lib/python3.9/site-packages/dbus_next/signature.py", line 259, in verify
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]:     raise SignatureBodyMismatchError('Cannot serialize Python type "None"')
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]: dbus_next.errors.SignatureBodyMismatchError: Cannot serialize Python type "None"
Nov 02 13:28:41 #######-server01 vfio-kvm[233505]: [INFO] Listening for libvirtd events

I assume this is a breaking error because the input mapping with "/dev/input/by-id/<VM NAME>-<DEVICE NAME>" is not happening.

Yeah I think those initial log msgs are not relevant.  I've had another crack with debug on and I must have misconfigured the xml.
Working now. thanks

Glad to hear. Any idea what was wrong with the XML? I'd like to add a better error message.

The error message was fine, I just made a bad assumption about the first error on startup:
Nov 03 13:26:30 #######-server01 vfio-kvm[16190]: [ERROR] An exception occurred while preparing a virtual machine.
Nov 03 13:26:30 #######-server01 vfio-kvm[16190]: Traceback (most recent call last):
Nov 03 13:26:30 #######-server01 vfio-kvm[16190]:   File "/usr/bin/vfio-kvm", line 585, in release
Nov 03 13:26:30 #######-server01 vfio-kvm[16190]:     self._destroy_devices(
Nov 03 13:26:30 #######-server01 vfio-kvm[16190]:   File "/usr/bin/vfio-kvm", line 674, in _destroy_devices
Nov 03 13:26:30 #######-server01 vfio-kvm[16190]:     device = self._devices[source]
Nov 03 13:26:30 #######-server01 vfio-kvm[16190]: KeyError: '/dev/input/by-id/PixArt_Microsoft_USB_Optical_Mouse-event-mouse'
(missing "usb-")
It turns out that this setup (evdev I guess) does not play nicely with my multi-seat setup so I am going to have to kick my daughter off my PC.

That's unfortunate. If you have any ideas on changes that would allow your multi-seat setup to work, let me know. I'm closing this for now.


[error] Default Gear - arsenal button

Version: 1.0.0.rc3
Mods: CBA, TFAR, ACE(no-medical)
Environment: SP
.rpt attatched? no
have you edited the missionfile?: No
Issue:
Default Gear in the Arsenal screen isn't working because there is a check on haveACE instead of hayACE, i'm adapting the whole thing about it, will send the .sqf asap to replace
also shaping better the amount and quality of items given

Thanks!


Promise

This branch's goal is for the remote plugin to become a "normal" validator. It also removes the dependency on the validators library.
It achieves this by allowing validators to return promises in addition to true and false.
An improved API for custom validators is proposed, with the previous API being maintained for compatibility.
The new API makes it clear if the validator is to validate multiple values (checkboxes) or single values (or both), proposes a builtin way to parse the requirements.
As I wanted to make remote a normal validator, I needed to provide access to extra parameters, so validatorKind can be an object, with keys being the different parameters and the values being the desired type. It works well, but I realized after doing this that I still needed access to the name of the field.  So I am now passing the parsley instance as the last parameter. Had I thought of that, I might not have written the more complex "extra options" parsing, but now that it's written, it could probably be helpful to others (or is it too complex for nothing?)
One thing I'm considering is to move the addValidator/addMessage to window.Parsley.
I must admit that, contrary to my normal habits, the commits are not perfectly atomic, but I don't have the courage to clean that up.

The new API makes it clear if the validator is to validate multiple values (checkboxes) or single values (or both), proposes a builtin way to parse the requirements.

This is awesome.

As I wanted to make remote a normal validator [...]

Should we now integrate it in validator_registry directly? Your PR reduces code base size, we could afford to ship it by default and remove a version to build / test / and maintain? Do you want me to work on that and make a PR?

One thing I'm considering is to move the addValidator/addMessage to window.Parsley.

Why not, while maintaining current API and deprecate it in an upcoming version.
When you are ready, ping me, I'll make builded versions, update doc/bower/npm tag and release :)
Best

Ok, this should be releasable. @guillaumepotier I've added ~5 commits, should be easy to check.
I've not done the remote merge, but if you're ok with this, we should release this as 2.2.0rc1

This is good to me yes. I'll release 2.2.0-rc1 then :)


ML Fairness

A good sample problem that highlights the need for multi-objective optimization is optimizing machine learning models for accuracy as well as multiple definitions of fairness (see AIF360 for notions of fairness).

Working on this in a separate repo


System.Net.Http.dll 4.6.25220.1和 System.Net.Http.dll 4.6.25514.4不兼容

System.Net.Http.dll 4.6.25220.1和
System.Net.Http.dll 4.6.25514.4 不兼容 而且NuGet就没有4.6.25514.4 这个版本

Translated:
System.Net.Http.dll 4.6.25220.1 and System.Net.Http.dll 4.6.25514.4 is not compatible and NuGet is not 4.6.25514.4 this version
@davidsh is this another instance of the OOB/Binding redirect challenges with System.Net.Http?

Issue moved to dotnet/corefx #25516 via ZenHub


Magento ver. 2.4.4 not available

Magento ver. 2.4.4 : Please Help us with the same, our business is being impacted due to this.

Closing this ticket as solution has been provided.

Thank you for you support


[5.2] Session now respects the http_only config option

The config('session.http_only') option is not respected by the StartSession middleware. This option is useful for setting authentication cookies when running Behat tests with selenium2 and chrome driver.
In the session config file, it describes this option but never uses it:
   /*
    |--------------------------------------------------------------------------
    | HTTP Access Only
    |--------------------------------------------------------------------------
    |
    | Setting this value to true will prevent JavaScript from accessing the
    | value of the cookie and the cookie will only be accessible through
    | the HTTP protocol. You are free to modify this option if needed.
    |
    */

    'http_only' => true,

Indeed, the change has had been made to laravel/laravel (https://github.com/laravel/laravel/pull/3697), but the corresponding change in laravel/framework had been overlooked (https://github.com/laravel/framework/pull/12809). Good catch :)

:)


docs: matching readme to lock files

Pull Request
Related issue
Fixes #135
What does this PR do?

Matches readme to lock files

PR checklist
Please check if your PR fulfills the following requirements:

[x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
[x] Have you read the contributing guidelines?
[x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

It's OK

Hello @MoskalykA. Thank you for contributing to Meilisearch! If you are participating in Hacktoberfest, and you would like to receive some swag from Meilisearch too, please complete this form.


Need to allocate memory for hook struct

Should help fix https://github.com/containers/libpod/issues/1564#issuecomment-425773423
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

/approve

/lgtm


Removed .state from filter from eng and fr

I'am really sorry 😅 when I've made the change on the french language prettier on save have formatted everything and removed white spaces, let me know if I have to restore it to the previous version thanks.

Could you please check, sorry I'm still new to pull's on forks, if you see anything strange let me know thanks

@rrousselGit There are issues with this pull request? I see that 2 weeks have passed, I have done something wrong?

Ah sorry, forgot about it. Thanks!


How to make mojolicious run on the debugger

I can't put breakpoints visually. At the begining yes, it works, but latter it does not. I'm able to stop / add breakpoints using $DB::single = 1;
from there I can use the debugger.
Here is my configuration:
    {
        "type": "perl",
        "request": "launch",
        "name": "Mojolicious",
        "program": "${workspaceRoot}/script/xmedia_lite.pl",
        "exec": "perl",
        "execArgs": [],
        "root": "${workspaceRoot}/",
        "inc": [],
        "args": ["daemon"],
        "env": {},
        "stopOnEntry": true,
    },

$uname -a
Darwin Korova.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64 x86_64
$perl -v
This is perl 5, version 26, subversion 0 (v5.26.0) built for darwin-2level
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2017, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

@dblanch ok - so can I conclude that we just need to exec $DB::single = 1 on startup?
We already do that at: https://github.com/raix/vscode-perl-debug/blob/8778e42e4f3b85f9732d82d9559a38eda61095b0/src/adapter.ts#L837 not sure why that isn't working


Issues with sending images from ImageJ Legacy to napari

This set of issues was initially discovered by @JenuC:
Transferring image data from ImageJ's legacy UI does not work very well. Known issues:

"No active window to export to napari"

Open napari, launch napari-imagej
Launch the ImageJ legacy UI
Open the Blobs sample image in the legacy UI
Use the "from ImageJ" button to transfer the data to napari

The data is not transferred, with a debug message there is no active window to export to napari

Images altered in ImageJ legacy do not retain the alterations when transferred to napari

Open napari, launch napari-imagej
Launch the ImageJ legacy UI
Open the bricks sample image in napari
Transfer the bricks image to the legacy UI
Run Auto Threshold on the bricks image in the legacy UI (Ctrl+Shift+T, then click "Apply").
Transfer the thresholded image back to napari

The transferred image is the un-thresholded bricks sample

In the meantime, (2) can be solved @ctrueden's strategy:

Open image in
Send to shift+T threshold
create mask
back in napari, send another image to ImageJ
now click send to napari and you'll get the mask (!)


GitHub: create Admins team

Terraform Format and Style 🖌success
Terraform Initialization ⚙success
Terraform Validation 🤖success
Validation Output

Success! The configuration is valid.

Terraform Plan 📖failure
Show Plan

terraform

Pusher: @markgoddard, Action: pull_request, Working Directory: ``, Workflow: Terraform GitHub

This admin team is composed of all leads and co-leads of internal client teams. Looks OK to me.


Error: Image could not be created from \n

In the  "electron": "^9.0.0-beta.15" a error occurs:
{
  constructor: 'Error',
  stack: 'Error: Image could not be created from \n' +
    '    at electron/js2c/browser_init.js:6983:49\n' +
    '    at IpcMainImpl.<anonymous> (electron/js2c/browser_init.js:6880:27)\n' +
    '    at IpcMainImpl.emit (events.js:223:5)\n' +
    '    at WebContents.<anonymous> (electron/js2c/browser_init.js:4070:23)\n' +
    '    at WebContents.emit (events.js:223:5)'
}

It works well if:
let promptWindow = new BrowserWindow({
			width: opts.width,
			height: opts.height,
			minWidth: opts.minWidth,
			minHeight: opts.minHeight,
			resizable: opts.resizable,
			parent: parentWindow,
			skipTaskbar: true,
			alwaysOnTop: opts.alwaysOnTop,
			useContentSize: opts.resizable,
			modal: Boolean(parentWindow),
			title: opts.title,
			// icon: opts.icon, <- comment this line
			webPreferences: {
				nodeIntegration: true
			}
		});

I have the same error on 9.0.0 stable

duplicate of #57
This already has been fixed in develop, but not published to npm yet


Allow users to set custom flake path

Currently, phoenix-ci assumes that flake.nix is in the root directory and there is no standard way to overwrite it. Property flake should be added which may accept a path or flake URI (We might be able to save a second or so if we were to use flake URI for this)
Sidenote:
I am not sure how flake URI would work in terms of worker action, probably would need to pass a ref from discovery in some cases :thinking:

We might be able to save a second or so if we were to use flake URI for thi

Yes the checkout action is indeed roughly 1-2 seconds, but it also has a wall of verbose logs.
This is definitely a good idea!


createSignedURL links respond with status 400. "message":"querystring should have required property 'token'"

Bug report
Describe the bug
getSignedUrl returns erroring link
when creating a signedUrl, the return url that responds with
{"statusCode":"400","error":"Bad Request","message":"querystring should have required property 'token'"}
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
` async function getSignedUrl() {
const { signedURL, error } = await supabase
.storage
.from("intervue-vids")
.createSignedUrl(PATH_TO_FILE, 6000)
if(error) throw error

setUrl(signedURL)

}
useEffect(() => {
getSignedUrl()
}, [])`
Expected behavior
Query would return a link that is streamable/viewable (my use case is a video file)
Screenshots
n/a
System information

OS: macOs,
Browser chrome
Version of supabase-js: 1.30.7
Version of Node.js: 6.14.15

Additional context
Add any other context about the problem here.

Hello, any progress on this? I'm also still having this issue

Closing the issue, as it seems like the original issue has been resolved.
I have run a test that creates signed url and it works as expected:
const file = {
  path: 'test.txt',
  data: faker.lorem.paragraph(),
}
await supabase.storage.from(bucket.name).upload(file.path, file.data)

// generate signedUrl
const { data, error } = await supabase.storage
  .from(bucket.name)
  .createSignedUrl(file.path, 10)
expect(error).toBeNull()

// download from signedUrl
const resp = await fetch(data.signedUrl)
expect(resp.status).toEqual(200)
expect(await resp.text()).toEqual(file.data)

could it be that you had an issue with expiresIn param?

@param expiresIn The number of seconds until the signed URL expires. For example, 60 for a URL which is valid for one minute.

Please do not hesitate to ping me if it is still relevant, and I will happily reopen it.
Cheers!


Add aws-sdk-dynamodb 0.23 support

Thank you! I’m away from my computer today and maybe tomorrow, but I’ll get this released by Tuesday for sure.

Released to crates.io as version 4.0.11.


Limit the number of blog posts highligted in the home page

The current homepage side bar shows the whole list of blog posts under "what's new?". This makes the page too long (and growing).
The PR limits that side bar's content to only the latest 3 blog posts.
Also adding rake to the Gemfile, which allows things like locally checking external links, e.g.
podman run --rm -i \
     --name linkcheck -v $(pwd):/srv/jekyll:Z jekyll/jekyll:latest \
     /bin/sh -c "bundle install && bundle exec rake links:test_external"

Nice, this is much better.
/lgtm


Spiral Order Matrix in C++

Aim

Print the 2D matrix in Spiral Order.

Details

Example : matrix = [[1,2,3],[4,5,6],[7,8,9]]
The code Print the matrix in Spiral form like : [1,2,3,6,9,8,7,4,5]

Programming language

[ ] C
[x] C++
[ ] Java
[ ] Python

I am a participant of LGM-SOC. Please assign me this issue.

Hi I have knowledge of c++ and i am participating in LGM-Summer Of Code.
I am very eager to solve this problem. Please assign me this issue to me.

@nidhi3108 u choose any other language


Autoreload for development

During development, especially when styling, an auto-reload feature for at least the webruntimes would be a nice boost for productivity.
Tornado offers this: http://www.tornadoweb.org/en/stable/autoreload.html
Alternatively you can use watchdog to implement something similar: https://pypi.python.org/pypi/watchdog

Duplicate of #8


Caching: Integration with ethpm-types packages

Overview
Replaces current use of ethpm withh the ethpm-types python package.
Specification
Dependencies
https://github.com/ApeWorX/ethpm-types

Fixed in #395