Session Timeout

I'm having a problem where the session times out extremely fast. How can I increase session time of SteamAuth or make the session permanent? I understand you aren't obligated to give support but this really is a simple thing that nobody on Stackoverflow wants to help me with.

You could've googled it first...
http://stackoverflow.com/questions/8311320/how-to-change-the-session-timeout-in-php
http://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes

Done, thanks BlackCetha.

Where do I add this code, though? I tried adding it in steamauth.php but no luck..

You need to put the code before starting the session, logically.
Code is coincidence.


Date.fmt does not properly allocate enough space for the resulting string

Version
<IP_ADDRESS> (Latest)
Operating System

[X] Any
[X] Linux
[ ] macOS
[ ] Windows
[ ] Other Unix

OS Version
Ubuntu on WSL
Processor

[X] Any
[ ] Arm (using Rosetta)
[ ] PowerPC
[ ] Sparc
[ ] x86 (32-bit)
[ ] x86-64 (64-bit)
[ ] Other

System Component
Basis Library
Severity
Minor
Description
Date.fmt sometimes throws an exception or returns the wrong result.
Transcript
- val d = Date.date {hour=14, minute=42, second=16, day=8, month=Date.Nov, year=2024, offset=NONE};
- print (Date.fmt "%Z" d);
uncaught exception Date
  raised at: Basis/Implementation/date.sml:58.44-58.48

Expected Behavior
- val d = Date.date {hour=14, minute=42, second=16, day=8, month=Date.Nov, year=2024, offset=NONE};
- print (Date.fmt "%Z" d);
CST

Steps to Reproduce
Run the given code.
If you change the string to "%Z " (ie. include a space), the timezone string isn't printed but the exception goes away.
Additional Information
MLton and MoscowML handle this properly.
Email address
skyler DOT soss AT gmail DOT com

Note that this works with dates created with Date.fromTimeLocal, so it may be related to Date.date as well.

The root cause is that the strftime function in the C library is mapping the %Z format specifier to the empty string for this example.  As noted in the bug report, a date value created using fromLocalTime does not cause this issue.  I think that the problem may be that the internal representation of the date value has NONE as the isDST field, which gets mapped to -1 in the C call.  I'm not sure how to correctly set that field for an arbitrary date value.

I've added a temporary fix for this issue to the runtime-system's
_ml_Date_strftime function.  A better fix will be to use the mktime
function as part of the date normalization process in the Data
module, but that will require adding a new function to the date
C library.


port: [#6577] Can you add a log line for this exception? (#6587)

#minor
Fixes # 6577
Description
This PR ports the changes in the [PR#6587](https ://github.com/microsoft/botbuilder-dotnet/pull/ 6587) to add a log in the process method of the CloudAdapter class to show more information about the exceptions.
Specific Changes

Added log to the process method in CloudAdapter.cs.
Updated process tests in CloudAdapterTests.cs.

Testing
This image shows the new unit test passing.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

5 of 6 (83.33%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.1%) to 84.763%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

libraries/botbuilder/src/cloudAdapter.ts
2
3
66.67%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
20023

Relevant Lines:
22395

💛  - Coveralls

promoted /4439


ci: containerize linux deps

Currently linux deps are installed on every linux CI run. We can build an image and host it on dockerhub. The wrinkle here is that the Azure linux agent gives us a bunch of stuff for free -- including the android sdk and ndk -- so we will have to bake that into the image as well.

This is mostly done since we use the envoy-build-ubuntu Docker image.
There's a single CI job that installs some Android build dependencies via this script: https://github.com/envoyproxy/envoy/blob/main/mobile/ci/linux_ci_setup.sh
A recent run of that CI job shows that this setup took 68 seconds to run so this isn't a significant concern: https://github.com/envoyproxy/envoy/actions/runs/3631327773/jobs/6125815249

Attempting to do this anyway: https://github.com/envoyproxy/envoy-build-tools/pull/188


How to use SpecBind with IISExpress-hosted websites (for local test runs)?

So, this is my first time trying SpecBind. I created a new HomePage class with the PageNavigation attribute initialized with "/" as its parameter. I was fairly confident what would happen, but wanted to confirm anyway. So, after setting up a feature to kick thing off, the browser proceeded to navigate to http://localhost/.
So, the real question here is, when running your tests in Visual Studio and using the IISExpress instance, what would be the best way to get the URL being used to host the site under development? I thought I'd ask the question in case anyone has already solved this. Furthermore, the answer to this question would make a great addition to the documentation under getting SpecFlow configured. (NOTE: If no one answers this, I'll be at work answering my own question, and hopefully, get the answer added to the documentation.)

I realized that the URL setting for IISExpress in a project level setting, and so, in a team environment, this should be the same for all team members (provided there are no port conflicts)--so, unlike my previous assumption, it's probably OK to hard-code the URL in the test app.config file.


Scrolling issue

Actual Behaviour
As of now when someone opens app in landscape mode some info(Legal Information) is not visible on screen due to lack of scroll.
Expected Behaviour
It should scroll, so user can see whole info.
Steps to reproduce it
Add ScrollView as parent in login.xml
Screenshots of the issue

Can i work on this @timabbott @kunall17

Sure, do checkout this similar (or rather same open issue) https://github.com/zulip/zulip-android/issues/151

okay. i will be sending the PR soon on scrolling issue.

closed by #235


New Resource Request: Add Appdynamics event

Add the following event: https://www.eventbrite.com/e/abstract-techqueria-and-latinas-in-techs-vida-latina-tickets-70580077913 to events
Link to Resources
https://techqueria.org/events/

Hello, is this still available ?

@fvntr the link you provided is for Abstract, Techqueria and Latinas in Tech's Vida Latina and it expired last month.  Is the event for appdynamics listed here: https://www.appdynamics.com/events/ ?

hey folks - we add past events to https://techqueria.org/events - if you take a look at the page you can see how we link the pages

added this in #530


ODIN Profile

"symbol": "ODIN",
"address": "0x57c8d5d5b87a1580fdaf996cef674bb0d7f14c98",
"overview":{
"en": "Odin Chain is a Web ecological public blockchain designed with the help of blockchain technology and the advertising smart contract, which will effectively solve many problems existing in Internet advertising. Developers can develop independent browsers by relying on open public blockchains. Odin Token is the only value carrier that can be transferred in the whole ecology."
},
"email"<EMAIL_ADDRESS>"website": "https://www.odinlink.com/",
"whitepaper": "https://github.com/odinlink/odin/blob/master/odin_whitepaper_cn.pdf"

你好，我提交的TOKEN的代币标示在1.0的版本里显示成了ODIN9 ，希望给改成ODIN。感谢

你好，我提交的TOKEN的代币标示在imtoken1.x的版本里显示成了ODIN9 ，希望给改成ODIN。
其次最近发现以前正常显示在imtoken2.0的代币也无法通过symbol搜索出来，仅能通过合约地址添加，添加后的logo无法显示。
项目还没有上线，希望能帮助解决，以尽快完成项目上线。


Parking: Add parking APIs to mobile heartbeat monitor

This task is to add parking lot APIs for the V1 parking release to the mobile heartbeat monitor

The source API for parking lot 406 has been added to the mobile heartbeat monitor. When the parking availability API is in prod, we will use that as the permanent endpoint to monitor against.


Create one snapchat filters folder.

Describe the bug
Instead of having multiple folders for snapchat filters we can have a single folder for snapchat filters and a single images asset folder so that contributors can add on that folder
Additional details
If we add a single folder for snap chat filters in future if a person wants to work on GUI for that it will be easy  to create a GUI using those filters.

OK @saiharsha-22 CAN YOU DO THE SAME

OK @saiharsha-22 CAN YOU DO THE SAME

@akshitagupta15june Thank you for assigining the issue. I will try to solve this issue as fast as possible so that contributors can add their, contributioins in snap chat filters section.

@akshitagupta15june Thank you for assigining the issue. I will try to solve this issue as fast as possible so that contributors can add their, contributioins in snap chat filters section.

hi @saiharsha-22 i have solved that because i had to change something in that

hi @saiharsha-22 i have solved that because i had to change something in that

thanku for the report you can work on different issue or any issue if you need to add in the project

thanku for the report you can work on different issue or any issue if you need to add in the project

@akshitagupta15june Ok

@akshitagupta15june Ok


How to get confidence range 0.91 to 0.99

Hi ,
I have seen the wiki Training on own dataset using the frozen model 20170512-110547 provided in the Read me. In the wiki the values of confidence ranges from
0.58 to 0.72 when training is done on 19 classes (identities) and 1202 images
and
0.45 to 0.53 when training is done on 10 classes (identities) and 50 images.
I have also done on my own dataset having 5 classes and 27 images the confidence range is like
0.4 to 0.74  all these are done using the SVM classifier
Now my question is

Which classifier I need to use to get better confidence range.
I also tested the KNN classifier but same range like SVM . Is classifier effect the confidence range
Is number of images of a single identity varies the result or not.

Thanks in advance and Thanks to @davidsandberg for his effort.

I have also seen the OpenFace  implementation they are using the SVM, GridSearch and some other all classifier giving the results in range not more than 0.78 (rarely).

I tried training a normal classification layer (using softmax etc) and that gave similar probability scores. My guess is that more data is needed to estimate the distribution of the CNN outputs accurately enough to give higher scores. But that is just a guess.

I have trying on this and another point noted is
when i tried the 2500 images with 950 identities svm classifier probability is range of 0.0034- 0.0056, but wit the same images when done a KNN classifier it range is 0.3 - 0.74. So I think that SVM is not suitable for more image.

My guess is that more data is needed to estimate the distribution of the CNN outputs accurately enough to give higher scores.
What do you mean by more dataset. Is it more than 5000 images?

is there any noted points from you side @davidsandberg.

With dlib what they are doing is calculating the 128D embedding of a image and then checking the Euclidean distance between other images, the distance is less than 0.6 then it is the same face or else it another person's face

Scenario:
 Identities: 900
 Images: 2100
 classifier: KNN (with weights=distance, k=5, p=2 and metric=minkowski)

I'm getting the 0.8-1.0 accuracy but for unknown person (new person not trained) also it is getting same confidence. I don't know why

What is we multiply the embeddings with 100 (any specific number )? @davidsandberg


[RFE] rework SELinux patches

Current situation
On Flatcar, we have SELinux patches. Some of these are quite old and could be upstreamed or purely deleted. Let's gather the feedback we had from an interesting discussion with https://wiki.gentoo.org/wiki/Project:SELinux folks:

[x] selinux-unconfined: no customization -> let's move it to ::portage-stable: https://github.com/flatcar-linux/portage-stable/pull/314
[ ] icmp-bind could be replaced with user_ping boolean? (@krnowak if you want to try it ?)
[ ] unlabeled.patch could be upstreamed to refpolicy
[ ] sshd.patch is broken (unconfined_t is not a file type so you cant put it on fcontexts)
[ ] logging.patch seems fine, it has to use an interface (cant use kernel_t outside of kernel.te/if) could go upstream
[ ] locallogin.patch could go upstream
[ ] https://github.com/flatcar-linux/coreos-overlay/blob/main/sec-policy/selinux-base/files/0001-policy-ms-MCS-restricts-relabelfrom.patch could go upstream but need investigation

This is required for https://github.com/flatcar-linux/Flatcar/issues/673
Thanks a lot @perfinion for your time and your feedback :)

👋 Hi @tormath1, has there been any progress on reworking these SELinux patches?


call fs.close synchronously

As https://github.com/nodejs/node/pull/12562 landed in Node.js,
fs.close call without callback function will fail in Node.js v8.

Is this the right substitute though? It seems like async methods are being used there, so maybe at least an empty callback should be used instead (or better yet do something in case of error)?

Thanks for the insights @mscdex – will keep an eye on this and perhaps land it in the 2.x release line.

Duplicate of #1227 and #1228


filter_mode configuration does not seem to have any effect

I have the following in  ~/.config/atuin/config.toml
filter_mode = "directory"

I think this worked correctly in atuin 12 but doesn't anymore in atuin 13. Now the history always defaults to global and needs to be changed via ctrl+r.

It did work on v12. No changes on configuration were made when it broke.

Hey! I think this was introduced in #635
We now allow configuring the filter mode for up, and the mode for ctrl-r separately, so atm setting just filter_mode will not change both.
Setting this in your config:
filter_mode = "directory"
filter_mode_shell_up_key_binding = "directory"

Should resolve the issue. Will get this fixed for the next release! filter_mode_shell_up_key_binding should default to whatever filter_mode is, and not global.

Thanks, that was the problem :)


Port mappings are lost during sockets determination for systemd

Port mappings are lost during sockets determination for systemd. For example:
docker_container "container" do
  action :run
  port "8080:1234"
  detach true
end

will run container with --publish 1234 instead of --publish 8080:1234
This is due to gsub! in https://github.com/bflad/chef-docker/blob/master/providers/container.rb#L627

Same note as #253 -- please feel free to reopen if you're having trouble after 0.37.0. Thanks!


[Carry 690] Add a new reference package abstracting tags and digests

Provides a package with interfaces to represent a way of referring to objects (images, manifest, tags, blobs) irrespective of their implementation.
These references can always be represented as a parsable string and may contain different properties including..

Named - Object has a name, such as the name of the repository it belongs to
Tagged - Object has a string tag which refers to it but cannot be independently verified
Digested - Object has a digest which refers to it and can be verified

Open Questions

There is an ambiguity with the current naming in the code. Currently a reference "Name" is the complete repository name without a tag or digest. This "Name" also consists of a hostname. However currently the remaining part is also referred to as "name". The work "path" may be more appropriate but that nomenclature is currently not used for any part of a repository.

Replaces #690

All in all, this interface is starting to feel right. This type will have a nice effect on existing code.
@docker/distribution-maintainers PTAL

Looks good!

LGTM
Let's get through the following checklist before merging:

[ ] Please attempt to regen the specification with make docs/spec/api.md. Let's make sure there aren't changes. (Should we add this check to CI?)
[ ] Are there any changes we'd like to the distribution interfaces using this type?
[ ] Should we think harder about the serialization round trip for fields of this type? For example, should we replace this in the notifications.Event struct? Should we implement MarshalText, etc.?

Possible changes to distribution interface to consider..
In Namespace
From
Repository(ctx context.Context, name string) (Repository, error)
To
Repository(ctx context.Context, ref reference.Named) (Repository, error)
In Scope
From
Contains(name string)
To
Contains(ref reference.Named)
In ManifestService
From
Tags() ([]string, error)
ExistsByTag(tag string) (bool, error)
GetByTag(tag string, options ...ManifestServiceOption) (*schema1.SignedManifest, error)

To
Tags() ([]reference.Tagged, error)
ExistsByTag(ref reference.Tagged) (bool, error)
GetByTag(ref reference.Tagged, options ...ManifestServiceOption) (*schema1.SignedManifest, error)

Or
// Remove by tag, prefer Digested but can also try Tagged
Exists(ref reference.Reference) (bool, error)
Get(ref reference.Reference) (*schema1.SignedManifest, error)

I think we should consider these sort of changes but not sure they are worth making. We can discuss in another issue. I would also be hesitant to change use of digest.Digest to reference.Digested in this case even though it would be more consistent.

As for serialization, it is not something I have considered yet but seems reasonable to integrate with so this interface can be used in serializable structs. I would be curious how well we can support unmarshalling. @stevvooe Can we save this for another issue or do you think we need to figure this out for merge.

@dmcgowan I think the interface changes can be pushed off. We should look at serialization now, just in case we need to change something with the types. This may be as simple as implementing Marshal/UnmarshalText.

:+1: LGTM

@dmcgowan I looked into the serialization issue a little bit. The main issue is that when using reference.Reference as a serialized field, encoding/json doesn't have a way of resolving the correct UnmarshalText function set the actual value. This can be demonstrated with the following example:
type Descriptor struct {
	Repository reference.Reference `json:"reference,omitempty"`
}

With this approach, we only get nil for the value of Repository, since there is not concrete type to resolve the unmarshaling functions. Since we really like the safety of this particular type hierarchy, we can simply implement a wrapper type for use in serialized struct fields:
diff --git a/reference/reference.go b/reference/reference.go
index 17e87d9..45c762c 100644
--- a/reference/reference.go
+++ b/reference/reference.go
@@ -57,6 +57,26 @@ type Reference interface {
        String() string
 }

+// Field provides a wrapper type for resolving correct reference types when
+// working with encoding.
+type Field struct {
+       Reference
+}
+
+func (f Field) MarshalText() (p []byte, err error) {
+       return []byte(f.Reference.String()), nil
+}
+
+func (f *Field) UnmarshalText(p []byte) error {
+       r, err := Parse(string(p))
+       if err != nil {
+               return err
+       }
+
+       f.Reference = r
+       return nil
+}
+
 // Named is an object with a full name
 type Named interface {
        Name() string

For serialized structs, we declare fields like this:
type Descriptor struct {
	Repository reference.Field `json:"reference,omitempty"`
}

For all intents and purposes, reference.Field mostly acts as a reference.Reference. It won't correctly resolve to any of Named or Tagged or Digested, but underlying value can be accessed and we get that safety. Setting field values take the very small amount of code to wrap the interface:
var d Descriptor
d.Repository = reference.Field{ref}

The only danger is that I can do something dangerous, like this:
UseReference(d.Repository)

Albeit, this will only provide a reference that can only provide a String() method. Optionally, we can make Field not implement reference:
diff --git a/reference/reference.go b/reference/reference.go
index 17e87d9..535fc29 100644
--- a/reference/reference.go
+++ b/reference/reference.go
@@ -57,6 +57,34 @@ type Reference interface {
        String() string
 }

+// Field provides a wrapper type for resolving correct reference types when
+// working with encoding.
+type Field struct {
+       reference Reference
+}
+
+func AsField(reference Reference) Field {
+       return Field{reference}
+}
+
+func (f Field) Reference() Reference {
+       return f.reference
+}
+
+func (f Field) MarshalText() (p []byte, err error) {
+       return []byte(f.reference.String()), nil
+}
+
+func (f *Field) UnmarshalText(p []byte) error {
+       r, err := Parse(string(p))
+       if err != nil {
+               return err
+       }
+
+       f.reference = r
+       return nil
+}

The alternative to all this is to recommend that references are never used for serializing fields. This may be a better option, since aggressive reference validation during serialization may be problematic.

I played around with interface deserialization quite a bit for libchan so am familiar with the lack of options here. I think having an explicit struct simplifies this it is a real type which can be initialized. I will add this to the PR and put some tests around it.  Note the Field will need to be dereferenced before being type asserted, which seems like a very minor issue.

@dmcgowan Sounds good. We can force the dereferencing by having Field not implement Reference.

Pushed up a commit which include the Field struct. I think this struct is a fair compromise between supporting serialization and not breaking the reference typing.

Given feedback from @aaronlehmann going make Named, Tagged, and Digested interfaces also implement Reference.
Also updating grammar to support changes from Matt Moor and double underscore as a valid separator.

LGTM

LGTM


Parleys Support

Is it possible to add support to Parleys:

User:

http://parleys.com/speaker/516bb602e4b05b6ad71fa74b

Channel:

http://www.parleys.com/channel/51ae1022e4b01033a7e4b6ca

Individual videos:

http://www.parleys.com/play/51c1994ae4b0d38b54f4621b

redirect to https://www.youtube.com/user/Parleysdotcom.


Don't use row length checks or hardcoded column numbers with SQLite

The hardcoded column numbers were magical and unnecessary, and the row length checks were brittle and unnecessary.
This PR introduces a TableRow abstraction that provides methods for reading column values that give descriptive error messages if a required column is missing or doesn't have a value in a particular row. It then provides a small VisitTableRows function that serves as a richer equivalent to the VisitTableRecords method from go-sqlite. The ReadCookies methods for chrome and firefox are reworked in terms of these abstractions.
This PR is a follow-on or alternative to #42. I couldn't fall asleep after writing #42 because my mind kept coming back to those length checks, so I got up and did this.

Can we get this and the previous PR merged? Without these, kooky can't handle recent Chrome cookies.

Merged! Sorry for the delay!

Awesome, thanks for taking the time :)

PRs welcome if someone wants to set up CI! 🙂


Add files via upload

added a pre-requisite section to prepare terminal window environment.
couple of minor changes, for example, change from "kubectl edit deployment guestbook" to "kubectl edit deployment guestbook-v1"

wrong repo. Closing


Convert depth map to pseudo point clouds

Excuse me, and I have a  question. When I used depth_to_lidar.py to convert the depth map to a pseudo point cloud, I found that the size of the depth map （352x1216） is different from the size of the RGB image （375x1242）. The features of the pseudo point cloud generated by the code are composed of x, y, z, r, g, b, seg, u, and v. Will the inconsistent depth and RGB image size cause the obtained R, G, B values of the U, V position do not correspond to the real R, G, B values?

The depth map is only generated from the center patch (352x1216) of an RGB image due to the different sizes of RGB images in the KITTI dataset. When we gather RGB information with a depth map, we will pad the depth map to the size of the corresponding RGB image. Please refer to this line.

https://github.com/LittlePey/SFD/blob/03f83de462033e4f840f38f0cead44c506b3f1c5/depth_to_lidar.py#L41-L42
Thanks for your great work. I have some questions about the generation of pseudo points. 1) Why the order of pixel is reversed? What's the purpose of this step? 2) On the other hand, the order of depth isn't reversed. Does this operation confuse the correspondence between depth and u, v coordinate?


Update zio, zio-test, zio-test-sbt to 2.1.12

About this PR
📦 Updates

dev.zio:zio
dev.zio:zio-test
dev.zio:zio-test-sbt

from 2.1.9 to 2.1.12
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "dev.zio" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #277.


chore(deps): upgrade configuration

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-configuration-k8s-26-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2915

Questions ?
Please refer to the Backport tool documentation


Hello, I'm curious about how you implemented the paint by example script?

Firstly, thank you so much for your open source code. It has to be said that this is an excellent piece of work. I recently ran the code for Paint By Example and did experience the issue of missing details described in your paper. I see in your paper that there is an experimental comparison with Paint By Example. However, the implementation of this script is not found in your Code base. So, can you open up the script for implementing Paint By Example in your article? Or could you send it to me for learning? Thanks again！！！

I think you just need to replace the decoder of the Autoencoder_KL with the larger decoder implemented in Asy-VAGAN.
You can follow the instruction of the "inpaint_st.py" and understand what dose it do in the script

Hi, How to implement this? Will your large decoder work for this task? Also, how do we give the reference image as input? Can you provide a sample it's not clear from the issue mentioned here. Thank you!

Replace this line (https://github.com/Fantasy-Studio/Paint-by-Example/blob/main/scripts/inference.py#L346) in paint by example repo with our line

Hi, How to implement this? Will your large decoder work for this task? Also, how do we give the reference image as input? Can you provide a sample it's not clear from the issue mentioned here. Thank you!

We use the original paint by example model to generate results and replace their decoder with our base/larger decoder to get the final images. Hence, you just need to give the reference image to the original paint by example model.

I got it. Thanks for replying. Also, I need your expertise in my use case : Transfering a person from a reference image to the initial image. do you think modifying this with paint by example with your decoder works can modify the image with the below features

Vibe - ( changing the position of the person based on the vibe of initial image)
eg : The generated image should make the person fly in air if they are sky diving or jumping on ice
Mode - ( changing the angle and position of the person based on the type of mode of initial image)
eg: if they are taking a selfie or a wide angle image. should position accordingly
Position of objects in the initial image - ( should change the position of the person based on the objects as reference in the initial image )
eg: if a person in the initial images turns back, the generated image also should have the person in reference image turn back )

I just want to know if paint by example with your decoder can generalize such scenarios.  ( pov: I am training this on 30K images of people category from COCO ). Thanks a lot!

I got it. Thanks for replying. Also, I need your expertise in my use case : Transfering a person from a reference image to the initial image. do you think modifying this with paint by example with your decoder works can modify the image with the below features

Vibe - ( changing the position of the person based on the vibe of initial image)
eg : The generated image should make the person fly in air if they are sky diving or jumping on ice
Mode - ( changing the angle and position of the person based on the type of mode of initial image)
eg: if they are taking a selfie or a wide angle image. should position accordingly
Position of objects in the initial image - ( should change the position of the person based on the objects as reference in the initial image )
eg: if a person in the initial images turns back, the generated image also should have the person in reference image turn back )

I just want to know if paint by example with your decoder can generalize such scenarios. ( pov: I am training this on 30K images of people category from COCO ). Thanks a lot!

Using our decoder combined with “paint by example”  simply cannot address the three scenarios mentioned. This is because, when used directly, the generated parts in the image are entirely determined by “paint by example” itself. It lacks the necessary guidance for transformations such as turning or adjusting the camera angle.
However, if we combine our decoder with “paint by example” and explicitly design some guidance mechanisms, improvements can be achieved. For example, leveraging the conditional branch of our decoder to extract features from the background regions and using these features to generate semantic guidance, such as pose or camera view, can help guide the denoising process in “paint by example.”

Replace this line (https://github.com/Fantasy-Studio/Paint-by-Example/blob/main/scripts/inference.py#L346) in paint by example repo with our line (https://github.com/buxiangzhiren/Asymmetric_VQGAN/blob/main/inpaint_st.py#L149)

Hi @buxiangzhiren , I tried making the following changes.

loaded the first_stage_model and applied the decode function which looks like this

config1 = OmegaConf.load('autoencoder_kl_32x32x4.yaml')
 first_stage_model = load_model_from_config(config1,'base.ckpt')
 first_stage_model = first_stage_model.to(device)
 x_samples_ddim = first_stage_model.decode(1. / 0.18215 * samples_ddim, image_tensor, mask_tensor)

Changed the paint by example's AutoencoderKL class to AutoencoderKL class from your repo as your decoder function takes mask also in autoencoder.py
Imported the decoder from my_decoder.py

When I run with a sample image I get the same original image as the output
Can you confirm if these are the exact changes I should make? Thanks In advance.

Your code appears to be correct. Please verify that your mask tensor and image tensor are in the correct format. Moreover, you can try one more sample to see what will happen.


Lower dependabot update frequency

Reduce churn. There is no real need to look for updates that often or to update to new patch versions for a repo that isn't that active.

Rolling is now open again, so merging.


Issue #18 – How to model groups that are present at different places at the same time?

For the moment, we used the sojourn pattern to model the location of persons and groups.
But some groups, like Kodak, are at many places at the same time. How do we model that?

Do we just have multiple sojourn at the same time?
Do we use another pattern for groups, that could be acquisition or location of places.

Intuitively I would say that the second option would be closer to reality as the idea of a sojourn, especially for a company, seems weird especially considering that sojourns are temporary stays in locations that are not one's customary residence. A constellation of people can sojourn (like a group vacationing together for example) but a corporate body cannot I think? Companies are usually incorporated in places and can change the location of their head offices for example, but what would a sojourn amount to? A change in the head office location? So for incorporated actors, the second option seems more accurate if using acquisition, but it would be problematic for simple constellations of people who are really just sojourning. In this instance, could the individual actors' sojourns be inferred and created (pattern 1) based on the location of places (pattern 2) so that the group would be moving, but the individuals would be sojourning, and could that be done without handling too many duplicates?

You've pointed a very good example of a group of artist sojourning in a place. I think in CIDOC point of view, the group is not sojourning, as it is not a physical person.
In your proposal seems reasonable, but in some cases groups may have multiple or non properties or location?

Incorporated bodies will always have (theoretically) at least one location because legally to be incorporated you have to be incorporated somewhere I think (this is what determines what laws your company works under, which is why there are a lot of companies that are incorporated in Delaware, for example, because the laws are more accommodating). So in the case of incorporated bodies, the pattern should always work as the lowest broadest location will be the country. However, for companies that are not incorporated it might be more tricky because the pattern might not fit.
I think the group might have no location and only have a series of sojourns just as a person would? This makes me realise that individuals also sometimes do not have customary residences so it might be problematic to articulate the sojourn itself around the concept of a customary residence?

I think use case 1 goes beyond current modelling. You can use p74 has former or current residence and multi instantiate it, if you have a temporal information. Otherwise, you are going to need new event classes to indicate the act of 'setting up shop' at a certain location.
In use case 2, if the group never had a specific place, then yes, it would be true to reality to model only the events that they engaged in and where those events were located.

This discussion is continued in #31
I therefor close this one


Ibeacon app is crashing in android 8 (Oreo)

Ionic version:  (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[ ] 4.x
I'm submitting a ...  (check one with "x")
[ ] bug report
[ ] feature request
Please do not submit support requests or "How to" questions here. Instead, please use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
insert the output from ionic info here

I have developed an android Ibeacon app using ionic 3 according to this tutorial. https://ionicallyspeaking.com/2017/01/16/creating-a-beacon-application-with-ionic-2/
App is working fine in all the devices except android 8 (Oreo). App is crashing and also cannot find any error logs. Trying to debug using chrome inspect., expecting some error logs in catch., But could not find any error log. Can we mark this as a bug?

I got same problem, and here is my ionic info
`C:\ionic-projects\sampleBeacon>ionic info
cli packages: (C:\Users\User\AppData\Roaming\npm\node_modules)
@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:
cordova (Cordova CLI) : 8.0.0

local packages:
@ionic/app-scripts : 3.1.0
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:
Node : v8.9.4
npm  : 5.6.0
OS   : Windows 8.1

Environment Variables:
ANDROID_HOME : not set

Misc:
backend : pro

`
I clone this repo https://github.com/sidPuttur/sampleBeacon and update android platform to 7.0.0, it works fine on both Android 5 and Android 6 devices, but can't work on Android 8 device.
What I found is that you must setup right UUID in this file

sampleBeacon/src/providers/beacon/beacon.ts

  // setup a beacon region         this.region = this.IBeacon.BeaconRegion('my-IBeacon', 'abca1234-1234-1234-1234-123412341234');                   console.log("Inside Region");
It will crash on Android 8.0 device if UUID is correct. But I don't know how to log error on Android devices, any tips to log error message on Android devices?

I updated cordova and re-installed the plugin the error is not appearing now

Finally I learn some skill to watch logcat, but I have no idea what's wrong, here is log

D SystemWebChromeClient: file:///android_asset/www/build/main.js: Line 76 : Hello BeaconProvider Provider
D SystemWebChromeClient: file:///android_asset/www/build/main.js: Line 80 : Inside initialize
D SystemWebChromeClient: file:///android_asset/www/build/main.js: Line 86 : Inside requestAlwaysAuthorization
D SystemWebChromeClient: file:///android_asset/www/build/main.js: Line 98 : Inside Region
D CordovaWebViewImpl: >>> loadUrl(about:blank)
W cr_AwContents: WebView.destroy() called while WebView is still attached to window.

And here is code from link
   // we need to be running on a device
  if (this.platform.is('cordova')) {

    // Request permission to use location on iOS
    this.IBeacon.requestAlwaysAuthorization();
    console.log("Inside requestAlwaysAuthorization");

    // create a new delegate and register it with the native layer
      this.delegate = this.IBeacon.Delegate();

    // Subscribe to some of the delegate's event handlers
    this.delegate.didRangeBeaconsInRegion()
      .subscribe(
      data => {
        console.log("didRangeBeaconsInRegion");
        resolve(true);
        this.events.publish('didRangeBeaconsInRegion', data);
      },
      error => console.error()
      );

    // setup a beacon region
    this.region = this.IBeacon.BeaconRegion('my-IBeacon', 'abca1234-1234-1234-1234-123412341234');
              console.log("Inside Region");

    // start ranging
    this.IBeacon.startRangingBeaconsInRegion(this.region)
      .then(
      () => {
        console.log("startedRangingBeaconsInRegion");
        resolve(true);
      },
      error => {
        console.error('Failed to begin monitoring: ', error);
        resolve(false);
      }
      );

  } else {
    console.error("This application needs to be running on a device");
    resolve(false);
  }

After trace log I found that crash event stop at
// start ranging
this.IBeacon.startRangingBeaconsInRegion(this.region)
Any idea to solve this problem?


Fix/mo2 support

some way towards MO2 support

works for reading and getting files
there is an issue present where creating new files at runtime sometimes fails to be registered, a game restart fixes this however

Thanks, I have an idea I'll try to get the root folder of MO2.

FYI, I can get the root directory of MO2, but its only <MO2>\overwrite\... to write files, while reading is in <MO2>\mods\[ModName]\....

it's weird... I spent some time debugging it today
Some scenarios:

overwrite/r6/storage/HUDPainter folder does NOT exist on game start -> mod can save files, but then cannot read the newly created file
overwrite/r6/storage/HUDPainter folder does exist  on game start -> mod can save and read files
3 overwrite/r6/storage/HUDPainter folder does NOT exist on game start but is created on game load-> mod can save files, but then can NOT read the newly created files

for some reason, std::directory_iterator doesn't recognize the folder as existing when it is not presen on game start
I suspect it is because the VFS of MO2 maps all directory layers only ONCE on dll load
and for some reason, it doesn't add a new mapping when a folder is created after UVFS has already been attached
mappings we need are:

<GAME>/r6/storage/HUDPainter
<MO2>/mods/HUD Painter/r6/storage/HUDPainter
<MO2>/overwrite/r6/storage/HUDPainter

Thanks for your tests!
Weird thing is that, if I try without create_directories. Logs shows no error when using STL, like to create HUDPainter directory with get_storage. But directory is never created, not in overwrite nor in game.
You tested (1), (2) and (3) with current state of this PR or you have more local changes? I assume you don't create directory manually, only using a relaunch?
I'll test with create_directories on my side to see if it is replicable.

Thanks for your feedback 🙂.
I found the culprit when listing files. It should be using entry.path() only instead of re-creating the path.
MO2 is looking into weakly_canonical.

oh? does it work now?

Thanks for your feedback 🙂.
I found the culprit when listing files. It should be using entry.path() only instead of re-creating the path.
MO2 is looking into weakly_canonical.

Doesn't make a difference...

Fixed with a3a9cd53ba30131215a50126161cad67e266ee0a.


Documentation Incorrect

!IsEmpty( Lookup( Errors( IceCream, EditRecord ), Error = ErrorKind.Conflict )

Lookup is mispelled. Should be LookUp.
LookUp returns a blank when nothing is found.  Should it not be IsBlank instead of IsEmpty?

LookUp(IceCream, Flavor = "Pistachio", OnOrder) | Searches for a record with Flavor equal to "Pistachio", of which there are none. Because none is found, Lookup returns blank.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: c8a78fb4-c504-649a-6ce2-006f04d9a090
Version Independent ID: c8a78fb4-c504-649a-6ce2-006f04d9a090
Content: Errors function in Power Apps - Power Platform
Content Source: power-platform/power-fx/reference/function-errors.md
Service: power-platform
Sub-service: power-fx
GitHub Login: @gregli-msft
Microsoft Alias: gregli

Thanks for your comment, @stagich. This issue has been assigned to the doc author for review.


Pinned messages for chat

have the ability for mods to pin certain messages, so that they will be stored. Any new members that join the room will be able to view the pinned chat messages. I don't know how viable this would be since you are likely not storing any chat information permanently as of now, but just a suggestion. It could be used to pin important links or a message describing what the room is talking about.

@benawad I think I can work on the BE part.

@benawad We can have a field in the room. Something like room_rules or something. This can also be used as a pinned message for new users to give them context about the current discussion. This can be editable. We can put this along with the room name edit modal.
This way only a few lines of code could close this issue.

yeah I want to add a room description where stuff like that can go

@benawad creating an issue and will add a field to the DB.


Notes on WIndows Install of Coq, CAML etc

I'm not actually a naive user since I worked on some of this technology when I was at IBM.  However, I am currently working solely via this open source project so I am building a from-scratch environment to run the code.   I'm using this issue to record the experience.  I'm not sure whether any of these observations are actionable since they really just represent one-time speed bumps for a subset of new users (those who choose to use windows).   Each observation will be a comment.

Building coq
As the readme suggests, it is painful to build the coq unless you use the make option -j to get some parallelism.  Unfortunately, the standard inria installation of coq for windows includes a copy of make.exe that does not respect the -j flag.  Make sure that a make.exe that respects the flag (e.g. a recent download from cygwin) is ahead of the coq bin diretory in the path.

OCaml on WIndows
This is confusing since there are two distinct packagings (one "official" and one from a third party called OCPWin).  I have only tried the official one.   It, in turn, has some variants depending on whether you want 64 bit or 32 bit and whether or not it comes with OPAM.  For the 32 bit version, the OPAM is reportedly less functional.
I was not in a position to try everything.  I installed the 32 bit version without OPAM, partly because I had used it before and partly for unrelated reasons due to the machine and OS I have.  It worked fine once I had the cygwin prerequisites correct.   I think this works best when you let the OCaml installer install cygwin for you (I already had cygwin, and found I had to update it with the mingw assembler (binutils) and gcc).

OCamlBuild clean
The -clean option of ocamlbuild by default attempts to log the clean operations by writing into the _build directory which it is simultaneously trying to delete.  I believe this "works"  on Unix and MacOS unless the directory is remote-mounted, where it sometimes fails even there.  On windows the deletion will always fail.   The -no-log option should be used with -clean.  I have made this change locally but am awaiting instruction on how to manage contributions.

Menhir
What I have to say about this may be of limited use since it is trivial to install menhir using OPAM and some windows distros reportedly have an OPAM, which perhaps sometimes even works.   I built menhir from source and had the following glitches:
the instructions state that if ocamlfind is in the path during the build it will be used to do the installation.  This feature failed in practice due to some obscure windows line-end issue and it reverted to "manual" installation.  I'm not sure whether that matters because...
the menhir build also has a PREFIX= option which assumes a unix-like path structure.  To avoid too many issues (and since I have cygwin) I let it use its suggested default of /usr/local.   If you do this, you have to make sure that /usr/local/bin is then in the path or copy the menhir executable to someplace that is in the path.
With this level of fiddling, everything seems to build.

OPAM on Windows
I decided I needed OPAM in order to install ocamljava in a way that permits switching between it and native ocaml.   So I blew away my OCaml without OPAM and installed the (32 bit) version that comes with OPAM.  Note this is not the classical "start with OPAM and let it install everything" ... that does not seem to be available on windows.  Rather, this is a build of ocaml that has an OPAM in it, which you can then use to install additional things.
The OPAM that comes in this fashion appears to work.  However, I did not succeed in building ocamljava (next comment).
Unfortunately, the OS on my machine is 32

OCAMLJava on Windows
I believe unless you have a 64 bit windows you may be hosed.  Of course, most people probably do at this point so this may not be of interest to everyone.  I have a reconditioned laptop with a 64 bit processor but as I obtained it at a deep discount it came with a minimal stock version of windows 7 (32 bit OS).  I took the free upgrade to Windows 10, but it gave me a 32-bit windows 10.  I can only fix this by doing a clean install of the OS, which I'm not willing to do now (I expect to get myself a new and better machine in the fall).
If you install the 32 bit OCaml binary with OPAM, the OPAM seems to work.  It will fetch ocamljava, but when you switch to it and it starts the initial build, the initial build fails, saying that a 64 bit version of windows (and, of course, the corresponding 64 bit cygwin and ocaml) is required.

I will close this issue since I am no longer using windows.   I still have the old 32 bit windows machine, but that's a dead end.   Any serious effort to clean up the build/install for windows would require someone using a modern 64-bit windows.


Tagged unions with custom serializers not working

Scala 3.1.1, upickle 2.0.0
import upickle.default._

sealed trait BooleanOrInt
object BooleanOrInt {
  implicit val rw: upickle.default.ReadWriter[BooleanOrInt] = upickle.default.macroRW
}
case class IsBoolean(val value: Boolean) extends BooleanOrInt
object IsBoolean {
  implicit val rw: upickle.default.ReadWriter[IsBoolean] = upickle.default.readwriter[Boolean].bimap[IsBoolean](_.value, IsBoolean(_))
}
case class IsInt(val value: Int) extends BooleanOrInt
object IsInt {
  implicit val rw: upickle.default.ReadWriter[IsInt] = upickle.default.readwriter[Int].bimap[IsInt](_.value, IsInt(_))
}

val x: BooleanOrInt = IsBoolean(false); upickle.default.write(x)

Stacktrace:
java.lang.ClassCastException: class upickle.core.Types$$anon$1 cannot be cast to class upickle.core.Types$TaggedWriter (upickle.core.Types$$anon$1 and upickle.core.Types$TaggedWriter are in unnamed module of loader 'app')
  upickle.core.Types.upickle$core$Types$$scanChildren(Types.scala:323)
  upickle.core.Types$TaggedWriter$Node.findWriter(Types.scala:361)
  upickle.core.Types$$anon$2.findWriter(Types.scala:50)
  upickle.core.Types$TaggedWriter.write0(Types.scala:348)
  upickle.core.Types$TaggedWriter.write0$(Types.scala:345)
  upickle.core.Types$$anon$2.write0(Types.scala:47)
  upickle.core.Types$Writer.write(Types.scala:130)
  upickle.core.Types$Writer.write$(Types.scala:118)
  upickle.core.Types$$anon$2.write(Types.scala:47)
  upickle.core.Types$Writer.transform(Types.scala:126)
  upickle.core.Types$Writer.transform$(Types.scala:118)
  upickle.core.Types$$anon$2.transform(Types.scala:47)
  upickle.Api$transform.transform(Api.scala:124)
  upickle.Api$transform.to(Api.scala:125)
  upickle.Api.write(Api.scala:48)
  upickle.Api.write$(Api.scala:17)
  upickle.default$.write(Api.scala:157)

This does not work in Scala 2 as well. The issue seems to be that macroRW expects all subclasses to be macroRW as well, and does not play nicely with the custom bimaped readwriters. A workaround could be to make BooleanOrInt.rw a custom readwriter as well

Thanks for helping confirm this, and noting it is also present in Scala 2.
So iiuc, then, if there's one custom read writer needed near a leaf of your family of case classes, then you have manually convert all the classes for any parents? E.g., if there were another case class that had a field with a BooleanOrInt it would also have to become custom, and all the way up?


Update deployment.md

Heroku default deployment branch is now named "main" not "master"

View rendered docs/deployment.md

@gr2m Semantic PRs is shutting down, meaning auto-merge will never complete: https://github.com/zeke/semantic-pull-requests/issues/183#issuecomment-1137844183.
@borgmanJeremy Please give this PR a semantic title, and it should be ready to merge manually then.

What should the title be?

I think this sounds good. I can't merge this PR because the requirements are not met, so we need to wait for @gr2m who can bypass this.


changelog: [IMP] add BREAKING syntax

Should result in something like:
changelog:
 -  [IMP] add BREAKING syntax
        BREAKING: Line1 ...
                  Line 2 ...
                  Line 3 ...

Would be really nice to have this, as it empowers better (more structured) information flow between Developers and DevOps...

I am not sure if I like it. Though I agree that you should make it more flexible and customizable.

@randy3k There are for sure an infinite amount of better solutions. I guess, BREAKING is a widely used keyword. Probably enough for getting this through before thinking about a long term solutions?

@blaggacao, can you add a setting to set the text, and set the default to  BREAKING:?

I just wonder is it really make sense to look into each commit message to just search for "BREAKING"? But, I don't really have any idea on generalizing it for other discoveries.

I agree, I personally think that I would not use it. But I think is better to put it in the commit message then anywhere else.
For the keyword, no thoughts.

@stoivo Do you mean something which, in the commit message screen, would listen to something lig CTRL+ENTER (eg CTRL+SHIFT) and would append a default BREAKING: template?

No. What I meant was add a new setting to change the word. Like this
 GitSavvy.sublime-settings  | 9 ++++++++-
 core/commands/changelog.py | 6 ++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/GitSavvy.sublime-settings b/GitSavvy.sublime-settings
index 16c0a14..40051fc 100755
--- a/GitSavvy.sublime-settings
+++ b/GitSavvy.sublime-settings
@@ -339,5 +339,12 @@
         When set to `true`, no views will receive the prompt asking to initialize
         Git in the current view's directory when not found.
      */
-    "disable_git_init_prompt": false
+    "disable_git_init_prompt": false,
+
+    /*
+        When this keyword is found in a commit message `generate changelog` would pick
+        up the rest of the commit message and append it to the changelog.
+     */
+    "generate_changelog_detail_keyword": "BREAKING:"
+
 }
diff --git a/core/commands/changelog.py b/core/commands/changelog.py
index a198144..7c0b45d 100644
--- a/core/commands/changelog.py
+++ b/core/commands/changelog.py
@@ -60,8 +60,10 @@ class GsGenerateChangeLogCommand(WindowCommand, GitCommand):
             if entry.long_hash in ancestor:
                 messages.append("{} (Merge {})".format(entry.summary, ancestor[entry.long_hash]))
             elif entry.raw_body.find('BREAKING:'):
-                pos_start = entry.raw_body.find('BREAKING:')
-                key_length = len('BREAKING:')
+                savvy_settings = sublime.load_settings("GitSavvy.sublime-settings")
+                keyword = savvy_settings.get('generate_changelog_detail_keyword')
+                pos_start = entry.raw_body.find(keyword)
+                key_length = len(keyword)
                 indented_sub_msg = ('\n\t\t' + ' ' * key_length + ' ').join(entry.raw_body[pos_start:].split('\n'))
                 messages.append("{}\n\t\t{})".format(entry.summary, indented_sub_msg))
             else:

@randy3k what do you think ?

I don't mind merging it now, but I think we should keep it internal.


Yii can't validate the _identity cookie in backend

Updated my advanced app to latest Yii 2.0.10 using composer, and since then Yii can't validate the _identity cookie it generates. This problem appears only in backend part of the application. I see _identity cookie (expires in 31 days) and I can access it using $_COOKIE["_identity"], but \Yii::$app->getRequest()->getCookies()->getValue('_identity') always returns null unless I set enableCookieValidation to false.
When I try to open any frontend page or even some page with "die()" in it, all backend pages start working, but after an hour or so, I have to deal with that problem again.
Yii 2.0.10
PHP 7.0.4

You need different names for backend and frontend cookie, this was not the case in advanced app if you got it before 2.0.9. See https://github.com/yiisoft/yii2-app-advanced/commit/ec1148c4f62e12098a3eb650f8e66fe6c23a6323 and https://github.com/yiisoft/yii2-app-advanced/commit/bb35a7543aa5b718b01d6cd576d78da9e4193249

But what if I want sessions to be shared between backend and frontend? It looks like I have to create separate login pages now, or did I get something wrong?
This is how I access my backend app, so I dont really need different names for cookie.
    public function behaviors()
    {
        return [
            'access' => [
                'class' => AccessControl::className(),
                'rules' => [
                    [
                        'allow' => true,
                        'roles' => ['@'],
                        'matchCallback' => function ($rule, $action) {
                            if(\Yii::$app->user->identity->admin == 0)
                                return false;

                            return true;
                        },
                    ],
                ],
            ],
        ];
    }

if you want both apps to share the cookie, you have to set the same cookie validation key in backend and frontend.


typescript-react-apollo plugin generating incorrect imports for apollo client 3

Using the typescript-react-apollo plugin generates imports that do not work with apollo client 3. I have to use config like so
apolloReactCommonImportFrom: "@apollo/client"
apolloReactHooksImportFrom: "@apollo/client"

to force it to use the correct imports.
Also, the docs say that withComponent and withHOC have a default value of false and that withHooks has a default value of true.
However, these are all opposite. Of course, I can manually change all of these to make it work. But is this supposed to be intended? Are the docs just inconsistent with what actually happens, or have I missed something?
dependencies:
"@apollo/client": "^3.1.2",
"@graphql-codegen/cli": "1.17.7",
"@graphql-codegen/typescript": "1.17.7",
"@graphql-codegen/typescript-operations": "1.17.7",
"@graphql-codegen/typescript-react-apollo": "1.17.7"

Nevermind. I see that I need to just upgrade to<EMAIL_ADDRESS>

@jejacobsendev please use<EMAIL_ADDRESS>Default configuration (without any override) should be 100% compatible with Apollo Client v3 and have the output you mentioned (only hooks, no component, no hoc).


Get MIRI running again

Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-11713
Rust's MIRI https://github.com/rust-lang/miri can help detect logical errors in programs
The Rust arrow implementation now runs the MIRI checks as part of CI thanks to [~vertexclique] but it does not pass cleanly yet
For example:
https://github.com/apache/arrow/pull/9535/checks?check_run_id=1941313240
{code}
Compiling criterion v0.3.4
Compiling h2 v0.3.0
Compiling tower v0.4.5
Compiling hyper v0.14.4
error[E0463]: can't find crate for tracing
--> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.14.4/src/lib.rs:68:1
|
68 | extern crate tracing;
| ^^^^^^^^^^^^^^^^^^^^^ can't find crate
error: aborting due to previous error
{code}
Previously MIRI ran but the check failed in FFI somewhere
Help wanted!

MIRI is compiling again - see https://github.com/apache/arrow-rs/runs/2552518448?check_suite_focus=true so closing this issue
However, it still reports errors -- which is tracked by #227


"pip install pysdf":  report  error,  it seems to be compilation  error

@OccupyMars2025 I solved it by installing GCC/++ version 9.4.
You can follow this link to do the same. Make sure that your gcc and g++ point to the new version via g++ --version or else this won't work. I was using version 5.4.0 before which did not have the experimental/propogate_const as well!
Hope it helps!

@OccupyMars2025 I solved it by installing GCC/++ version 9.4. You can follow this link to do the same. Make sure that your gcc and g++ point to the new version via g++ --version or else this won't work. I was using version 5.4.0 before which did not have the experimental/propogate_const as well!
Hope it helps!

Hi!
I met similar problem in colab environment, I have tried this method, but it didn't work..
Do you have any other suggestions?


⚠ ClamAV has degraded performance

In 657198f, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 211 ms

Resolved: ClamAV performance has improved in fe5a477.


Calling close in onDisconnect callback doesn't stop it from reconnecting

I have a small snippet like the following
let es = createEventSource({
		url: `someurl`,
		onDisconnect: () => {
			console.log('here');
			es.close();
		}
	});

On the console, "here" is still being printed out continuously.

Good find! Fixed in v1.1.2 - thanks!


ClickEvent Enhancement

It would be great if ClickEvent's Action could be a lambda expression like:
Component.text("Test").clickEvent(<lamda expression>);
Is there a chance that this could be added in future?

How do you think this should work? There are only some available actions and they are executed in the client not sent to the server.

Ops, i didn't wrote how it can be useful.
It's useful because to do something such as add a player in a list we have to run a command.

Yeah, this is not doable in Adventure itself - callbacks are normally implemented using a command with a click event that executes that command serverside.
Some platforms like SpongeAPI 8 provide this support - because they have the combination of Adventure and a commands system that can be tightly integrated. Most don't - luckily callbacks are pretty simple to implement in a plugin subcommand.


Group pins

Hi,
I'm using your library for sometime which I have to say it's really great and I'm trying to figure out a way to group the annotations when the user zooms out, the same way Google Map does when you have several annotations in the map and zooms out and then all of them are grouped.
Is it possible to do something like that?

Regrouping pins at different zoom levels isn't too far of a stretch using a Quadtree data structure for the pins. I wonder whether it would be appropriate to utilise GamePlay Kit's GKQuadtree.

I've never used that, can it be integrated to your library?

The pin placement is just a giant for loop it wouldn't be too difficult to extend.


the device is initialized

When Homebridge restarts, the device is initialized. What should I do?

Sorry I do not understand what you mean and what your issue is. Could you explain more detailed or provide a debug log?

Restarting Homebridge initializes the device and also initializes HomeKit automation.  The room settings are also changed to the initial settings.  After this update, symptoms appeared.

The log looks perfectly fine to me. I do not see any issues here. If you restart homebridge then the plugin needs to initialize alle the devices, this initialization process was also present in the previous release.

I have similar issue.
Every time that homebridge restarts, all Homebridge Miot devices lose their location(room) in Homekit.
They are linked to homebridge location.
This looks like that is added new devices.

After a reset, the HomeKit automation also disappears.  It is different from the initialization of the previous release.  Homebridge restart should be suspended as much as possible.  thanks for the reply

The same behavior. When you restart homebridge server, all device settings in module reset to the original ones and so on every time. I don't think that was intended :

After the update, the first time you start homebridge that might happen. Afterwards it should not, and the code responsible for that did actually not change since the first release so I am not sure what can cause this.
I also cannot reproduce the issue on my local setup, after restart everything is still the same.

I have same issue. After homebridge restarted, all the name and location given by homekit are disappeared. Because of this, all the automation which is consist of these devices are disappeared or broken.

After the update, the first time you start homebridge that might happen. Afterwards it should not, and the code responsible for that did actually not change since the first release so I am not sure what can cause this.
I also cannot reproduce the issue on my local setup, after restart everything is still the same.

Proof :) https://youtu.be/g40IMRBoHT0

Could anyone of you post a homebridge debug log with the deepDebugLog parameter set to true? It might be that there is a crash happening during initialization which causes this.

homebridge.log.txt

Hmmm, looks good! I do not see any issue here. Not sure what is causing that for you...

This is a kind of strange issue. I cannot think of any reason why the uuid of an accessory would change since it is generated based on fixed data... but to make sure that this is not the case for you, could somebody of you locally at this line:
https://github.com/merdok/homebridge-miot/blob/663de8134ac3d225032e264ae70d1920c5180641/index.js#L159
put the following code:
console.log(this.UUID);
and compare between restarts if that value changes for the same accessories?

happy to do it, but i have no idea where that file is, where would I look? cheers

Usually under /usr/lib/node_modules/

console.log(this.UUID);
I put that code in and proceeded.
`[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Successfully created a AirPurifier device! It is a Xiaomi Air Purifier Pro 4.
bfff173f-9e93-4d36-9e29-684963076c3b
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Initializing accessory!
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Accessory successfully initialized!
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Registering 1 accessories!
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Everything looks good! Initiating property polling!
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Device found: zhimi.airp.vb4
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Setting up miot device!
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Device setup finished! Miot device ready!
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] [Miot Device] Connected to device: zhimi.airp.vb4
[2/3/2022, 5:48:48 PM] [miot] [공기청정기] Doing initial property fetch.`

@yoonpooh you need to restart homebridge a couple of times so we can see if that uuid changes between restarts.

@merdok Restarting homebridge did not change the uuid. However, all locations set in Homekit will be initialized.

So it is not a problem of changing uuid of the accessory between restarts. Not sure what else could cause this for you guys...
I am unfortunately not able to reproduce your issue locally so this will be a guessing game...

@merdok This is zhimi.airp.vb4 which was newly added with this update. Maybe it's related?

@merdok
It seems you have found the cause of the issue.
I currently use Homebridge as Synology Docker. The problem seems to occur when using Docker.
I downloaded Homebridge as a .spk file and tried again, no problem.
https://github.com/oznu/homebridge-syno-spk

I'm using raspi docker homebridge

Oh interesting... I wonder why it is happening on docker then. It might be that the cached devices are not properly saved there? And why does it suddenly happen after the update where nothing really related to that has changed...

@merdok It seems you have found the cause of the issue. I currently use Homebridge as Synology Docker. The problem seems to occur when using Docker. I downloaded Homebridge as a .spk file and tried again, no problem.
https://github.com/oznu/homebridge-syno-spk

@merdok, I use same build and have this issue , you need try on this image https://hub.docker.com/r/oznu/homebridge
Alpine Linux (3.12.9)
node v16.13.2
npm v8.1.2

Oh interesting... I wonder why it is happening on docker then. It might be that the cached devices are not properly saved there? And why does it suddenly happen after the update where nothing really related to that has changed...

Translate mistakes :(

@merdok If only "homebridge-miot" is installed, the issue will not occur. In addition, the issue occurred when installing other plugins. Another plugin I installed is "homebridge-mi-humidifier".

Does it happen only in combination with other plugins? Can the other guys confirm this?

Does it happen only in combination with other plugins? Can the other guys confirm this?

I have also other plugins and the issue exists

Yeah but does it happen when you remove all other plugins and just keep this?

homebridge.log.txt

I'm not sure this will help. In this log, all modules except miot were turned off

@merdok  After my test, if a Child-Bridge is created for the hb-moit plugin, the reset will not occur. If the Child-Bridge is not created, restarting the homebridge will reset

Interesting. I wonder if it is related to another plugin... Nevertheless i will need to investigate this...

@merdok possible this log will help
[2/3/2022, 8:36:27 PM] [miot] Initializing miot platform...
[2/3/2022, 8:36:27 PM] [miot] Found cached accessory Mi Smart LED Bulb Essential (White and Color)
[2/3/2022, 8:36:27 PM] [miot] Found cached accessory Mi Air Purifier 3/3H
[2/3/2022, 8:36:27 PM] [miot] Found cached accessory Mi Smart Space Heater S
[2/3/2022, 8:36:27 PM] [miot] Found cached accessory Yeelight Screen Light Bar
[2/3/2022, 8:36:27 PM] [miot] Removing all cached accessories
[2/3/2022, 8:36:27 PM] [miot] Initializing devices
[2/3/2022, 8:36:27 PM] [miot] [Yeelight Screen Light Bar] Got device configuration, initializing device with name: Yeelight Screen Light Bar
[2/3/2022, 8:36:27 PM] [miot] [Mi Smart Space Heater S] Got device configuration, initializing device with name: Mi Smart Space Heater S
[2/3/2022, 8:36:27 PM] [miot] [Mi Air Purifier 3/3H] Got device configuration, initializing device with name: Mi Air Purifier 3/3H
[2/3/2022, 8:36:27 PM] [miot] [Mi Smart LED Bulb Essential (White and Color)] Got device configuration, initializing device with name: Mi Smart LED Bulb Essential (White and Color)
[2/3/2022, 8:36:27 PM] Publishing bridge accessory (name: Homebridge 3D5B, publishInfo: {
[2/3/2022, 8:36:27 PM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge 3D5B) is running on port 51443.
[2/3/2022, 8:36:27 PM] [miot] [Mi Smart LED Bulb Essential (White and Color)] No cached device info found!
[2/3/2022, 8:36:27 PM] [miot] [Mi Smart LED Bulb Essential (White and Color)] Model known: yeelink.light.color5!
[2/3/2022, 8:36:27 PM] [miot] [Mi Smart LED Bulb Essential (White and Color)] Initializing device!
homebridge.log.txt

@iu3564 this is fine and intended and it was present in the plugin since the first version :)

@merdok I switched miot platform to child bridge and issue is gone

@merdok I also switched miot platform to child bridge and issue is gone.
I am also running homebridge in docker, within portainer in hass.

 I will be investigating this further and try to provide a proper solution.

Can please anyone of you try to replace the index.js with this one locally and check if that fixes the issue:
https://gist.github.com/merdok/54db660c9bdfb1ae3e1f941112ab31c4

Can please anyone of you try to replace the index.js with this one locally and check if that fixes the issue:
https://gist.github.com/merdok/54db660c9bdfb1ae3e1f941112ab31c4
The file should be at: /usr/lib/node_modules/homebridge-miot

working ok

Great! It has been fixed. THANKS SO MUCH


Question: Mapping Branchinfo to Source

Is there any support for mapping BranchInfo information back to source, currently it maps to IL. Lines map to source but Offset is IL.

Root cause is that the debug information used to map back to the source is interested in statements, so gives line information for those.  At that level branches are but an implementation detail of how one gets from one statement to another.
One way or another, getting a line number involves finding the statement which spans the branch instruction and using its line information; in coverlet, that's done here, and eventually percolates its way to the Line property of the BranchInfo type, to be reflected in output reports..

Thanks Steve!
@paul1956 if your question is answered feel free to close the issue


Terminal crashes on startup when initial rows on screen (initialRows setting) is set too high

Using this commit: e3764b2081b74c67fb901b2c133380c5bd3787af

Make sure there is no existing Terminal settings file at: %LocalAppData%\Packages\WindowsTerminalDev_8wekyb3d8bbwe\RoamingState\profiles.json
Build Terminal with tools\razzle.cmd & bcz.
Open the OpenConsole.sln in Visual Studio, select debug/release and CPU architecture to match your build, and hit F5 to deploy and run the Terminal .appx package.
Open the newly created Terminal settings file, and change the initialRows setting from 30 to 1637.
Close and restart Terminal.

Observe that Terminal does not start at all. If you start Terminal under a debugger, you'll see that the release build crashes with an unhandled C++ exception. (I haven't tried the debug build.)
Setting initialRows to 1636 or less does not cause the problem, but setting it to 1637 (as above) or greater does cause it.
Originally posted by @metathinker in https://github.com/microsoft/terminal/pull/843#discussion_r284818080 - that PR does not fix or otherwise affect this bug.

For me it crashes >= 820

For me it crashes >= 1559 at 100% scaling. Changing my primary display resolution doesn't change the result but changing the scaling does (my primary display is 1920x1080, I have two other displays but they don't seem to be relevant):

Scaling
Max value of initialRows

100%
1558

125%
1246

150%
1038

175%
889

This definitely looks like an integer overflow issue. From https://github.com/microsoft/terminal/blob/master/src/cascadia/TerminalControl/TermControl.cpp#L1119 it looks like the program crashes when height > 32728.0 (2^15 - 40).
It would be pretty reasonable to assume that window decorations (titlebar, borders, shadows) add up to 40px. Does Windows have a max window height?

Great work finding that @dkter. Seems like a simple enough fix for someone to submit a PR for :)

For consistency it might be helpful to use the existing _ClampToShortMax helper from #843, but it seems to be in Terminal.cpp -- is there a better place to put it?

@dkter usually for things like that, we'll throw them in src/types/utils.cpp (and src/types/inc/utils.hpp). That's kinda our dependency-free helper lib that's used by a ton of things.

I wanted to add unit tests, but I wasn't sure where to put them for the WindowsTerminal project?

Right now the only tests we have are in src\cascadia\unittests_terminalcore, and they only really test the "TerminalCore" project. I'm working on adding a test framework for the rest of the projects, but that's proving to be a bit harder that we hoped (see #1042 for way more detail)

Even though this bug is closed, it still exists in the newly released Version 0.6.2951.0


Remove unused vendored shutilwhich

This package is no longer used.
Closes https://github.com/pypa/pipenv/issues/3621
Thank you for contributing to Pipenv!
The issue
What is the thing you want to fix? Is it associated with an issue on GitHub? Please mention it.
Always consider opening an issue first to describe your problem, so we can discuss what is the best way to amend it.  Note that if you do not describe the goal of this change or link to a related issue, the maintainers may close the PR without further review.
If your pull request makes a non-insignificant change to Pipenv, such as the user interface or intended functionality, please file a PEEP.
https://github.com/pypa/pipenv/blob/master/peeps/PEEP-000.md

The fix
How does this pull request fix your problem? Did you consider any alternatives? Why is this the best solution, in your opinion?
The checklist

[ ] Associated issue
[ ] A news fragment in the news/ directory to describe this fix with the extension .bugfix, .feature, .behavior, .doc. .vendor. or .trivial (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

c.f. https://github.com/pypa/pipenv/pull/3675 which magically breaks when blindspin is removed.

I checked the code many times, and this dependency is removed in the de-vendored package now in the main openSUSE package collection.
Moreover, it is unlikely you want this shutilwhich because it automatically monkey patches the which function into the stdlib shutil, which is useful to workaround some third party software which isnt ported properly.  You would want to use the less intrusive backports.shutil_which.

ahhhh thanks for the info, that definitely makes sense as to why this seems to break my vendoring scripts.  Thanks for the fixes & context, this will actually fix my vendoring script as well


PTH Authentication broken

Currently PTH authentication is done incorrectly meaning that the server will get banned after multiple requests.

See #66 for something that I think has something to do with it


RFC: strong headers typing

Use strong typing for headers. But unlike hyper, use struct fields instead of that confusing type-checked thing.
Something like:
pub struct ResponseHeaders {
    pub content_length: Option<u64>,
    pub content_disposition: Option<Cow<'static, str>>,
    pub redirect: Option<Cow<'static, str>>,
    ...
    pub custom_headers: Vec<(Cow<'static, str>, Cow<'static, str>)>,
}

It would be forbidden to put standard headers in custom_headers. Only things such as X-MyCustomWebAppHeader would be allowed.
The main motivation behind this change is that some headers are too "system-y" like Connection, Trailer or Transfer-Encoding. We really don't want a user to be able to manually write these headers.
It would also prevent typos.

The same could be done for requests.

I realize that this is a pretty old thread, but I thought I'd weigh in as it's relevant to something I'm working on now.
The potential issue I see with this is that it sets a somewhat arbitrary line between 'standard' headers and 'custom' headers. You described the 'standard' headers as being "system-y", so where does a header like 'Authorization' fit into this?
Also, with a such soft line between the two, it means it's vulnerable to shifting opinions/philosophies.

The rest of the ecosystem seems to have settled on Hyper's [headers](https://docs.rs/headers/0.3.7/headers/index.html) library for typed headers, where a 'custom' header is simply any other type not defined in that crate for which the Header trait is implemented.
I suspect Tomaka's original opposition to the type checked headers was based on a very old version of the library and a much older Rust compiler, where the error messages would have been less helpful.


🚀 Feature: Adding Bun runtime

🔖 Feature description
Adding Bun to open-runtimes.
🎤 Pitch
Bun is a real fast JavaScript runtime.
Bun advantages:

Built-in server
Use typescript files - no need to transpile it happens on the fly.
Faster loading time.
Blazing fast request processing.
Binary lock file.

I've created a few projects with Bun, and the process - building, testing, and producing - was fast and efficient.
📝 Developemnt
I can chip in and create the Bun open runtime.
👀 Have you spent some time checking if this issue has been raised before?
✅ I checked and didn't find a similar issue
🏢 Have you read the Code of Conduct?
✅ I have read the Code of Conduct

Thank you for this feature idea!
Looping in @Meldiron for feedback on this

I've just run a few benchmarks comparing the results of the same code in Bun vs. Node19 runtime.
The results are implacable; a table here represents the results of the K6 benchmark. (thanks to @Meldiron for that one)

Paramter
Bun
Node

Max VUS
5,000
5,000

http_req_connecting
1.47µs
2.58µs

http_req_duration
60.07ms
177.12ms

http_req_waiting
60.32ms
177.11ms

http_reqs
2,499,396
857,188

Per second
27,769
9,523

Both tests ran for 90 seconds using a Stress testing method.
export const options = {
 stages: [
   {duration: '30s', target: 20},
   {duration: '10s', target: 5000},
   {duration: '20s', target: 10},
   {duration: '10s', target: 5000},
   {duration: '20s', target: 0},
 ],
};

I've uploaded a pull request of the Bun runtime in a ready-to-use state to be checked when ready.
Thanks

Thank you for raising the PR. We will get it reviewed ASAP


为什么DeepFM的Normalized Gini反而小于DNN和FM？

Normalized Gini越大效果越好，但是您给出的Performance中三张图片可以看出，DeepFM的Normalized Gini反而小于DNN和FM，说明DeepFM没有什么提升呀。能否请您解释一下，谢谢。


Using address grand total and avoiding Mage loader memory leak

We're still investigating, but we found out that collect is called twice, once for each address.
Closing.


Add IncorrectDelimiter check name to the message

Closes #121
✔ Checklist:

[x] This PR has been added to CHANGELOG.md (at the top of the list);
[X] Tests have been updated;

Codecov Report

Merging #146 into master will increase coverage by 9.56%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #146      +/-   ##
==========================================
+ Coverage   88.61%   98.18%   +9.56%
==========================================
  Files          11       11
  Lines        1063      827     -236
==========================================
- Hits          942      812     -130
+ Misses        121       15     -106

Impacted Files
Coverage Δ

src/checks/incorrect_delimiter.rs
96.25% <100.00%> (+5.92%)
:arrow_up:

src/common.rs
96.03% <0.00%> (ø)

src/checks.rs
100.00% <0.00%> (+5.88%)
:arrow_up:

src/checks/lowercase_key.rs
100.00% <0.00%> (+6.66%)
:arrow_up:

src/checks/key_without_value.rs
100.00% <0.00%> (+7.50%)
:arrow_up:

src/checks/space_character.rs
100.00% <0.00%> (+10.25%)
:arrow_up:

src/checks/leading_character.rs
100.00% <0.00%> (+13.25%)
:arrow_up:

src/checks/duplicated_key.rs
100.00% <0.00%> (+15.03%)
:arrow_up:

src/checks/unordered_keys.rs
100.00% <0.00%> (+15.81%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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

@undef1nd 👋Thank you for your contribution! 👍
I have left a comment. Could you please fix it?

@undef1nd Thank you! 🚀


Requirements Bar Styling Bug Fix

Summary
This PR fixes the frontend bug where the requirement bar's styling was altered by an update on an imported stylesheet.

Test Plan
Review frontend and make sure everything looks normal
Review basic functionality (add/delete some courses/semesters)
Notes
This includes commits that have already been pushed to prod which is a little suspicious. Is this normal?

oh shoot, before i saw theresa's comments i changed bases to check if it'd get rid of the other commits (it did not) 😅 can you guys confirm again? @SamChou19815 @tcho6319


THRIFT-4766: Fix JDK11 build

Pull Request Guidance
Otherwise it will fail with:
make[4]: Entering directory '/thrift/tutorial/cpp'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/thrift/tutorial/cpp'
make[3]: Leaving directory '/thrift/tutorial/cpp'
make[2]: Leaving directory '/thrift/tutorial/cpp'
Making install in java
make[2]: Entering directory '/thrift/tutorial/java'
/usr/bin/ant  compile
Buildfile: /thrift/tutorial/java/build.xml

init:
    [mkdir] Created dir: /thrift/tutorial/java/build
    [mkdir] Created dir: /thrift/tutorial/java/build/log

generate:

compile:
    [javac] Compiling 7 source files to /thrift/tutorial/java/build
    [javac] /thrift/tutorial/java/gen-java/shared/SharedService.java:10: error: package javax.annotation does not exist
    [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
    [javac]                  ^
    [javac] /thrift/tutorial/java/gen-java/shared/SharedStruct.java:10: error: package javax.annotation does not exist
    [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
    [javac]                  ^
    [javac] /thrift/tutorial/java/gen-java/tutorial/Calculator.java:10: error: package javax.annotation does not exist
    [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
    [javac]                  ^
    [javac] /thrift/tutorial/java/gen-java/tutorial/Work.java:19: error: package javax.annotation does not exist
    [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
    [javac]                  ^
    [javac] /thrift/tutorial/java/gen-java/tutorial/InvalidOperation.java:13: error: package javax.annotation does not exist
    [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
    [javac]                  ^
    [javac] /thrift/tutorial/java/gen-java/tutorial/Operation.java:14: error: package javax.annotation does not exist
    [javac] @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2019-01-30")
    [javac]                  ^
    [javac] 6 errors

BUILD FAILED
/thrift/tutorial/java/build.xml:55: Compile failed; see the compiler error output for details.

Review the following items to ensure a smooth pull request experience.

[ ] Did you make a breaking change?  If so:

[ ] Add (or reference) an Apache Jira THRIFT ticket.
[ ] Add a Breaking-Change label to the Jira ticket.
[ ] Add a note to the lib/<language>/README.md file.
[ ] Add a line to the CHANGES.md file.

[x] Is this change significant enough to be in release notes?

This will add JDK9+ compatibility to Thirft

[x] If there is an Apache Jira ticket:

[x] Is the Apache Jira THRIFT ticket identifier in the PR title?
THRIFT-4766: an example pull request title

[x] Is the Apache Jira THRIFT ticket identifier and affected languages in the commit message?
THRIFT-4766: [summary of fix, one line if possible]
Client: [language(s) affected, comma separated, use lib/ directory names please]

[x] Did you squash your changes to a single commit?
  Committers can squash when they merge, but sometimes we forget, and it makes the history
  pretty dirty.  Please squash your pull requests to a single commit if you can.

For more information about committing, see CONTRIBUTING.md

I prefer using the headless as well. I've added libasound2 package to the Dockerfile.

Still some issues with Chrome:
Running "qunit:ThriftDeepConstructor" (qunit) task
>> There was an error with headless chrome
Fatal error: Failed to launch chrome!
/thrift/src/lib/js/node_modules/puppeteer/.local-chromium/linux-609904/chrome-linux/chrome: error while loading shared libraries: libatk-bridge-2.0.so.0: cannot open shared object file: No such file or directory

@jeking3 can you restart the failed builds? The error looks unrelated.

This has broken the CI builds.  It looks like the java runs slower than expected... I think we need to adjust the timeouts on the cross test builds.

I just pushed a fix by increasing the ruby client timeout.


Fix Accessibility Issue in Contact Form

Pull Request Template

Please provide all of the details below. Pull requests missing any of the information below will be closed!
Providing the issue number/url helps us identify the problem being solved and keep the issues tab clean and tidy

Summarise what this PR fixes
Added 'aria-labelledby' to input elements of Contact Form to enhance Accessibility.
What ISSUE NUMBER does this fix?
Fixes #330
Checklist:
(Add an x between the brackets to check the items)

[x] I have summarised what this PR fixes above
[x] I have provided the issue ID/URL above
[x] This PR fixes only the issue mentioned above (create separate PRs for separate issues)
[x] I was the first one to claim the issue or I created the issue

This is a great idea. However, there are 6 files changed in this pr and I am unable to sift through what is going on with the files. Make sure to run git pull upstream master to get the latest changes and only change files associated with your issue.


consul_acl makes api call before ACL api is available

I get connection refused when trying to create/modify an acl policy via the consul_acl type.  I was able to create one by hacking in a wait, showing it to be a timing issue:
  exec { 'wait_a_damn_minute' :
    command => "echo 'Waiting...' && sleep 30",
    path  => "/usr/bin:/bin",
  }

  consul_acl { 'anonymous':
    ensure        => 'present',
    name          => 'Anonymous Token',
    acl_api_token => 'S3Cr3tStuFFs',
    rules => {
      'key' => {
        "" => {'policy'    => 'read'},
        '_rexec' => {'policy' => 'write'},
      }
    },
    type    => 'client',
    require => Exec['wait_a_damn_minute'],
  }

@reppard quick question, when you mean the API call is made before ACL api is available...is this happening right after consul has recently restarted? I can't imagine the API not being available during normal usage.

Yes this is on a new node.  The service is started and the acl policy apply
is attempted directly after.  The failing request is /v1/acl/list I believe.
On Oct 14, 2015 5:08 PM, "AJ"<EMAIL_ADDRESS>wrote:

@reppard https://github.com/reppard quick question, when you mean the
API call is made before ACL api is available...is this happening right
after consul has recently restarted? I can't imagine the API not being
available during normal usage.
—
Reply to this email directly or view it on GitHub
https://github.com/solarkennedy/puppet-consul/issues/193#issuecomment-148201057
.

You need to have a leader elected before you can use the rest API. This is how we implemented bootstrapping a cluster with ACLS in an idempotent way.
exec { 'leader_elected':
  command     => "/usr/bin/test \"$(curl -s http://localhost:6500/v1/status/leader)\" != '\"\"'",
  tries       => 5,
  try_sleep   => 1,
  unless      => "/usr/bin/test \"$(curl -s http://localhost:6500/v1/status/leader)\" != '\"\"'",
}

Consul_acl <||> { require => Exec['leader_elected'] }


package.json -> dist command fails on windows

you have:
"dist": "NODE_ENV=production webpack -p",
But in windows this fails for a cmd script, and needs to be
"dist": "SET NODE_ENV=production webpack -p",
Not sure you can do this conditionally there, but you can probably just run a node script which sets the var

Not sure what the best solution for this is. Maybe remove NODE_ENV=production entirely from package.json and let the user set it when running npm run dist? What do you think?

The cross-env npm package solves this environment issue quite nicely.


fix wrong import statement

@neelance I could be wrong but I think that you meant to do this...
go-imports is awesome but sometimes it's wrong 😃
fixes #44

Yes, thanks a lot! No idea how that happened.

Both packages have a func named Errorf (see here and here), and goimports prefers shorter import paths when picking between one of many possible matches.


Screen tearing while scrolling 69.0.3497.100

If you have a problem, please fill out ALL the following fields.
Otherwise, please replace this template with your description.
ungoogled-chromium version: 69.0.3497.100
Configuration and/or platform(s): Ubuntu-MATE 18.04 Nvidia proprierytary driver
Problem description
After update to 69.0.3497.100 screen tearing appeared.

Are you using portable version ?
When you run it from terminal does it display any errors ?

[24411:24411:0928/101035.176250:ERROR:vaapi_wrapper.cc(323)] vaInitialize failed: unknown libva error
This is a *.deb version

you video acceleration library (libva) is not well working this explain that

can you test the portable version please.
what version of libva package are installed in your system ? is it updated ?

I'll test portable later today.
libva 2.1.0-3 version

i did have the same issue on one of my machine... and solve it by upgrading libva to v2.2
if you don't find package directly for your distro you can
first remove the version you are using
wget https://github.com/intel/libva/releases/download/2.2.0/libva-2.2.0.tar.bz2
tar -xvf libva-2.2.0.tar.bz2
cd libva*
./configure
make
sudo make install

you will still need to link /usr/local/lib or lib64 to /usr/lib...
so just "ln -s /usr/local/lib... /usr/lib..." for all the installed library

Okay found what it is i will post the solution in 5 min

@brokoli-mate Since you're using NVIDIA drivers, VA-API won't work natively. I don't recall if there's a library that converts VA-API to VDPAU calls, but you could try researching that approach.
Otherwise, does disabling chrome://flags/#enable-accelerated-video work?

Disabling chrome://flags/#enable-accelerated-video does not work.
I have installed vdpau-va-driver, but now i get this
[15120:15120:0929/100543.483332:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.483546:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 0 and entrypoint 1 [15120:15120:0929/100543.483825:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.483918:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 1 and entrypoint 1 [15120:15120:0929/100543.484011:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.484102:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 2 and entrypoint 1 [15120:15120:0929/100543.484196:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.484287:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 3 and entrypoint 1 [15120:15120:0929/100543.484379:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.484471:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 6 and entrypoint 1 [15120:15120:0929/100543.484563:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.484654:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 7 and entrypoint 1 [15120:15120:0929/100543.484746:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.484838:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 8 and entrypoint 1 [15120:15120:0929/100543.484930:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.485020:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 9 and entrypoint 1 [15120:15120:0929/100543.485111:ERROR:vaapi_wrapper.cc(632)] vaQuerySurfaceAttributes failed VA error: invalid parameter [15120:15120:0929/100543.485202:ERROR:vaapi_wrapper.cc(532)] GetMaxResolution failed for va_profile 10 and entrypoint 1 vdpau_video: vaTerminate(): config ID 0x01000000 is still allocated, destroying vdpau_video: vaTerminate(): config ID 0x01000001 is still allocated, destroying vdpau_video: vaTerminate(): config ID 0x01000002 is still allocated, destroying vdpau_video: vaTerminate(): config ID 0x01000003 is still allocated, destroying vdpau_video: vaTerminate(): config ID 0x01000004 is still allocated, destroying vdpau_video: vaTerminate(): config ID 0x01000005 is still allocated, destroying vdpau_video: vaTerminate(): config ID 0x01000006 is still allocated, destroying vdpau_video: vaTerminate(): config ID 0x01000007 is still allocated, destroying vdpau_video: vaTerminate(): config ID 0x01000008 is still allocated, destroying [1:1:0929/100544.364673:ERROR:webthread_impl_for_utility_thread.cc(19)] Not implemented reached in virtual blink::ThreadScheduler *blink::scheduler::WebThreadImplForUtilityThread::Scheduler() const

You could try building 69.0.3497.100-2 using a packaging defaulting to linux_portable bundle, which no longer has the VA-API requirement.

@Eloston video acceleration is disabled on 69.0.3497.100-2 portable ?

@Eloston  https://github.com/Eloston/ungoogled-chromium/commit/2dc0d020009db737f5da3d128184afcce297a638 is video acceleration still active ? on 69.0.3497.100-2

@Eloston 2dc0d02 is video acceleration still active on 69.0.3497.100-2 portable ?

No. I don't want to have a dependency on libva for linux_portable, because I want to have the fewest dependencies on the system libraries as possible for that configuration.

what about other flavors @brokoli-mate is using debian package ?

Good point, I missed that detail.
@brokoli-mate You can try building and installing debian_minimal to see if that resolves your problem.

I am also using 18.04 with proprietary nvidia drivers. This problem is happening in Chromium only or system-wide? Try next:
nvidia-settings -a CurrentMetaMode="DPY-1: nvidia-auto-select @1920x1080 +0+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0, ForceCompositionPipeline = On}" -a '[gpu:0]/GPUPowerMizerMode=1'

Change resolution if needed.

Closing since 70 has been out for a while.


Support for "capacity"

When adding many child nodes to a node, better speed could be obtained by using a Capacity private property, to resize the internal children array few times instead of once per each added node.
Pros:
Speed when adding many many nodes
Cons:
The extra "Capacity" field adds 8 (or 16 in x64) bytes per node (more memory used) because an extra "Count" field should also be added, to remember the actual number of child nodes.

This is implying that the internal number of children is limited to an nativeint so when compiled for 64bit, it can hold more since the limits of a nativeint are larger.  Is it feasible to have that many children?  Or can it be limited to a FixedUInt/LongWord and still maintain only 8 bytes per node regardless of target?  This is an array of children, is 4,294,967,295 not enough for most cases? I would expect the system performance will suffer greatly with that many children (if even possible on 32bit).


Upgrade to .NET 7

Hi. Anybody try move this boilerplate to .Net 7? Web part I upgraded to .Net 7 without problems but API part have troubles with it.

I have upgraded both client and server but for server i'm only using the sql provider.  I think the other providers don't all have a .net 7 version yet

Yep. MySQL and Oracle don't for Postgre exist 7.0 version.
@dsolteszopyn you issues with nuget packages?

I am using Mysql so I do not have an option to upgrade.


Query mempool.space for fee estimation

Needs to be done to /service-status too.
On open channel, first query mempool.space, if the API doesn't work, revert back to bitcoin backend estimation.

utACK


Managing IIS in a container

Hi All,
Adding IIS to a container makes sense but can anyone explain the intended model for how sites should be deployed using IIS?

Should it be 1 site per container?
Can IIS only be managed visit command line?
Are we limited to .Net Core or can we deploy apps built on the full .net framework?

Any guidance would be awesome!

Hi cwoolum
How do you add IIS to a container successfully? I deploied a Windows Container Host to a phycial system(with Windows Server 2016 TP4). When install IIS in a container with the command 'Install-WindowsFeature web-server', the console stuck at 'Collecting Data 3%' and then never moved.
Now,I wanna try again on a Hyper-V VM, the step saving Container OS Image form OneGet always timed out. Is there a link for me to download the Container OS Image?

Cwoolum -  For #2 you can use "appcmd.exe" [c:\windows\system32\inetsrv] to manage the iis from command line.

Assuming this is resolved with the advice given above, can re-open is necessary,


Fix inputting multiple tags methodology

currently requires /tag before every single tag
to change to one single /tag , followed by all the tags separated by space

Completed.
TODO: code cleanup, currently using double nested for loop.