[Diagnostics] Transform incorrect generic arguments into a contexua…

…l mismatch
Since this kind of failure is really a conversion failure, let's
inherit from Contextual{Mismatch, Failure} which also helps with
storage for from/to types and their resolution.
Also let's use original types involved in conversion to form
this fix, which helps to perserve all of the original sugar.

@swift-ci please smoke test


RotateArrays

THIS ALGO IS AN EFFICIENT METHOD TO ROTATE AN ARRAY TO THE RIGHT BY K UNITS

Not accepting CPP/C DSA codes
Alternative ->
1)Create a page using HTML & CSS Add DSA problem statement and solution in that
2)You can contribute in python and java OR
Ask for an issue assign
3)Contribute to Web Project


Is this working with related model inserts?

Hi,
I suspect that this won't work if  the model is updated through a relationship, as the beforeRemote hook won't intercept updates in methods such as Model.prototype.__update__<relation>
I think that if that is true it should be mentioned in the documentation :)

Ok it looks like there is an easy workaround:
for example, if we have an Address model with some readonly properties and we also have a Customer model with an hasOne relation to the Address model
We can just do something like:
Customer.beforeRemote('prototype.__update__address',  Address.stripReadOnlyProperties)

Hi. Can you give the full Custmor.js code? How did you get the 'Address' instance?

@casamia918 the latest release should now properly support relationships. This was implemented in this PR https://github.com/fullcube/loopback-ds-readonly-mixin/pull/13/files

@mrfelton Thanks. I solved.
In the user.js script, I added this beforeRemote hook. MyUser has many Contact. Contact has read-only property named 'name'.
module.exports = function(MyUser) {

  MyUser.beforeRemote('prototype.__updateById__contacts', function(ctx, instance, next) {
    const Contact = MyUser.app.models.Contact;
    Contact.stripReadOnlyProperties('Contact', ctx,next);
  });
};

For those who find whole code, I attached my sample project.
Before start, run npm install to install node modules.
reproducing-app.zip

Again, you shouldn't need to do that @casamia918 as the mixin handles it for you. All you need to do is define the relationships. You will also need to define the inverse relationship to though, from  Contact back to MyUser

@mrfelton Hm... When I just define the relationship, readonly is not working. Can you check my sample project? When I comment out the beforeremote hook, the related model's readonly property can be updated by __updateById__contacts method. I tested this in the api explorer.

Did I do something wrong? I'm glad to hear your reply..

@casamia918 so I think you have uncovered a bug with the implementation. It currently only works if the parent model also has the ReadOnly mixin enabled.
Try with the following patch to your repo.
To work around the issue I have applied the mixin to the myUser model and enabled it on some non-existant properly. It'll have no effect on the actual myUser model, but it will cause the mixin to look at the relationships of that model and take the appropriate action
commit a3143728eb7a52c77567e396606256deb209262d
Author: Tom Kirkpatrick<EMAIL_ADDRESS>Date:   Wed May 17 16:01:30 2017 +0200

    adjustments

diff --git a/common/models/my-user.js b/common/models/my-user.js
index 4df35e5..4b28c07 100644
--- a/common/models/my-user.js
+++ b/common/models/my-user.js
@@ -1,9 +1,4 @@
 'use strict';

 module.exports = function(MyUser) {
-
-  MyUser.beforeRemote('prototype.__updateById__contacts', function(ctx, instance, next) {
-    const Contact = MyUser.app.models.Contact;
-    Contact.stripReadOnlyProperties('Contact', ctx,next);
-  });
 };
diff --git a/common/models/my-user.json b/common/models/my-user.json
index 7ef244a..56c7925 100644
--- a/common/models/my-user.json
+++ b/common/models/my-user.json
@@ -5,6 +5,11 @@
   "options": {
     "validateUpsert": true
   },
+  "mixins": {
+    "ReadOnly": {
+      "non-existant-property": true
+    }
+  },
   "properties": {
     "name": {
       "type": "string"
diff --git a/server/server.js b/server/server.js
index 35d8b95..ef738ab 100644
--- a/server/server.js
+++ b/server/server.js
@@ -17,7 +17,6 @@ app.start = function() {
     }
   });
 };
-require('loopback-ds-readonly-mixin')(app);

 // Bootstrap the application, configure models, datasources and middleware.
 // Sub-apps like REST API are mounted via boot scripts.

Also note that you don't need to manually require the mixin in server.js - that is a legacy solution and the preferred approach is to just use the mixin sources in model-config.json

Wow thanks! I don't know that ReadOnly mixin should be declared in the mother-relationship model. Really, really thanks!


check if profile is private when downloading stories

#1402

Thanks for attempting to fix this issue. Unfortunately there are cases where this change tremendously slows down the process of downloading stories. The reason is that Instaloader generally attempts to use the minimum number of requests necessary, and the profile instances given to download_profiles() can be sparse instances, not carrying the full metadata and especially not having the fields is_private and followed_by_viewer. When these fields are accessed, Instaloader will do an extra query to fetch the full metadata structure of the given profiles. This is not a problem when downloading tagged, igtv, highlights or regular posts, as in these cases, the full metadata structure is required anyway. However, for only downloading stories, Instaloader does not need to have the complete metadata present.
This can be reproduced by invoking Instaloader to download only the stories of followees, which is a case were incomplete Profile instances are used:
instaloader --stories --no-posts --no-profile-pic --login USER @USER

This invocation is slowed down significantly with the here-proposed change.


MQTT Client closed without Log entry if a wrong value ist published to it

It seem that the Client hangs himselt if you publish a false command to it. There is no log entry for that.

What did you exactly send?

Ok it wasn't a valid json string. I have to check what happens then


Fix #8

Implements the fix mentioned in #8 - I found that this regex also fixed my Next.js 13 project on Pages.

Hi @GregBrimble, Can we get it done?

On applying this patch, I'm getting:
⚡ ERROR: Could not map all functions to an entry in the manifest.
⚡ Please report this at https://github.com/cloudflare/next-on-pages/issues.
if (hydratedMiddleware.size + hydratedFunctions.size !== functionsMap.size) {     console.error(       "\u26A1\uFE0F ERROR: Could not map all functions to an entry in the manifest."     );     console.error(       "\u26A1\uFE0F Please report this at https://github.com/cloudflare/next-on-pages/issues."     );     (0, import_process.exit)(1);   }
It seems to be coming from the above lines.

I get this too, perhaps this is related to the file structure of Next 13. I think we need to inspect that

Hey all,
This change isn't aiming to add any support to Next.js 13. It may be worth tracking the original issue for that: #6
This only aims to fix an issue noticed originally in #8
It looks like others are running into this issue over there too!

To all those, please try with nextjs 13, but not with TypeScript. The regular vanilla JS version works fine with this patch.

Thank you very much for the PR!


Sample Creative instructions

A few very minor changes throughout the code. Read through the sample-creative.md to see if it makes sense.

@dagifted1


Add GCSFileSystem.put(recursive=True)

This is the counterpart of GCSFileSystem.get(recursive=True) (PR #137).

Given that the code here is nearly identical to get() one from before, can you think of a way to abstract out the code?

Not sure, for instance one might think that GCSFileSystem.walk and os.walk are similar, but the former gives a file for each iteration, whereas the latter gives a list of files for each iteration. Also, they are slightly asymmetrical:

get('a', 'b', recursive=True) will copy the content of 'a' in 'b'
put('a', 'b', recursive=True) will copy 'a' (and its content) in 'b'

Maybe this needs further specification. Following the behavior of the cp Unix-like command:

get/put('a', 'b', recursive=True):
if directory b exists locally/remotely, copy a inside b (we'll have b/a).
if directory b doesn't exist locally/remotely, copy a as b.

If we agree with that, I'll review both get and put.

I suppose that's correct, but with the added twist that on gcsfs, a particular path can be both a file and a directory; and that "/" on the end of the path should not be determinate.

I rewrote get and put. This is much cleaner now, and it respects the rules that I previously mentioned. Still, I could not abstract out the code from the two methods because of small differences here and there between local file system and GCS file system.

Thank you, I will merge this now.
I still think there is a good opportunity for cross-filesystem actions like this to be formulated in terms of fsspec, but that can wait.


Propose automatically detected branch layout for user when machete file is not present or when it's empty

Splitted from issue #44

[ ] We want to propose automatically detected (by discover functionality) branch layout rather than only show message for user.

Note that the backend API for discover can be pretty easily configurable wrt. number of branches that we want to include in the discovered layout - most likely this could as well be configurable from the frontend.

[ ] Also, the usage instructions (see #418) need to be updated


added force quota reset management command

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

retest this, please


fmSetupAssistant: MBS Plugin: Registering

fmSetupAssistant uses the MBS Plugin.

Does the tool need to register the MBS plugin?
Or should plugin registration be

outsourced to an external database
outsourced to the target database (advanter)

Houston: We have a chicken & egg situation here!

fmSetupAssistant is needed to setup the OS- & FileMaker environment for the host DB
the host DB is needed to register the MBS plugin
fmSetupAssistant needs the MBS Plugin
Goto 1

Minor steps on the route:

MBS status now shows up green our red
clicking the MBS status shows a warning

fmSetupAssistant should NOT undertake to register the MBS plugin itself.
Rather the tool should allow ONLY safe use, and hinder error by plugin - which it now does. Case closed.


Decode values when we want to add new CfgNode from yaml

We find that when we want to add a new CfgNode from .yaml, it doesn't decode values of the new CfgNode. So we just fix this bug.

Hi @xwu4lab, can you add a unit test for this issue to yacs/tests.py as part of this PR? Thanks.

Have added a unit test for the case when we add new cfg-like entries with 1e? and list type variables from .yaml file.


[WIP] Add energy converter class to convert tot->E

Energy and Tot converters has been unified and clang-formatted.
The formulas and parameters are loaded from user options.

@pnp-sushil I need the proper formulas for the functions. Please, have a look at what I added and send me the proper once

@alekgajos  I need this https://github.com/JPETTomography/j-pet-framework/pull/244 PR to be accepted, because it introduces the getOptionsAsVectorOfDouble feature.

I fixed the issues, however now some tests are not passing. I must check it.

The error is not in converter itself, but in JPetCachedFunction. I added the patch and opened PR already. Once it is accepted I will change the version of j-pet-framework.

@alekgajos  @kkacprzak
This should be accepted first: https://github.com/JPETTomography/j-pet-framework/pull/250

@alekgajos @kkacprzak Ready to be used


Discrete Markov chain estimation

Threw this together for kicks and giggles last night (it was a 15 minute exercise) in response to the discourse thread by @jstac
Uses maximum likelihood estimation to get transition matrix for a discrete number of states.
Attn: @jstac @sglyon

Also see the travis error: https://travis-ci.org/QuantEcon/QuantEcon.jl/jobs/251842204#L334-L347
Looks like you can't set atol and not rtol?

That's a weird error... I can run these on my computer :thinking:

Fixed. It was trying to compute rtol for strings which it didn't know how to do... I've changed it to check for equality on state space since it is just copying those numbers anyways.

Codecov Report

Merging #161 into master will increase coverage by 0.07%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #161      +/-   ##
==========================================
+ Coverage   90.15%   90.23%   +0.07%
==========================================
  Files          23       23
  Lines        1422     1433      +11
==========================================
+ Hits         1282     1293      +11
  Misses        140      140

Impacted Files
Coverage Δ

src/markov/markov_approx.jl
97.36% <100%> (+1.07%)
:arrow_up:

Continue to review full report at Codecov.

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

@cc7768 Thanks!  It's really nice code too.  Very pretty.
@oyamad You might be interested.

It might be worth mentioning in the docs that this is for scalar data.  If there's demand, we could probably make this work for more abstract state spaces later on.  (It would be a matter of replacing the observed states (which could, for example, be vector valued, or strings) with indices (label them 1,...,n) and then proceeding as before.)

This should be able to handle whatever kind of state you'd like to give it... It is parameterized by T. The requirement is that the simulation is a vector of "something" (which can include a vector of vectors).
Note: I thought I would get this for free, but since I now sort the states and use searchsortedfirst I have to take a stand on how vectors are ordered (I chose Lexicographically). Now you get it for free:
julia> P = random_stochastic_matrix(2)
2×2 Array{Float64,2}:
 0.13964   0.86036
 0.537647  0.462353

julia> mc = MarkovChain(P, [[1.0, 2.0], [1.0, 3.0]])
Discrete Markov Chain
stochastic matrix of type Array{Float64,2}:
[0.13964 0.86036; 0.537647 0.462353]

julia> X = simulate(mc, 10_000);

julia>

julia> mc2 = estimate_MC_discrete(X)
Discrete Markov Chain
stochastic matrix of type Array{Float64,2}:
[0.13609 0.86391; 0.534315 0.465685]

julia> mc2.state_values
2-element Array{Array{Float64,1},1}:
 [1.0, 2.0]
 [1.0, 3.0]

@cc7768 Very nice ;-)

Great work!
Could you please add one test for the vector of vector case so that we make sure that works. After that I think this is ready to merge!

@cc7768 Good work!
I have some minor comments:

For lookup for state values I wonder which of Dict (or OrderedDict) and searchsortedfirst for a sorted array is faster. The latter should be O(log(n)), and the internet says dictionary is O(1) (I don't have much knowledge on data structures though).

There might be cases where the user has a state space with a preferred order. For such cases it might be useful to offer estimate_MC_discrete(X, states) where states is Vector{T} or OrderedDict{T}. Then it is likely that some states do not appear in X, for which one may assign arbitrary probabilities (say 1/n).

Is there any convention in using lower- or upper-case letters in the name of a function/method?

Dict is almost certainly a better way to do this. Great comment. I've made this change.
I'm not keen on arbitrarily assigning probabilities to the transition matrix, but if others think it is the right thing to do then I'm not strongly opposed to it. What do others think? @sglyon @jstac
Yes, it looks like functions are typically all lower-case. I've renamed the function to reflect this.

Regarding 2., I don't think we should allow the user to introduce states that are never visited in the data because, as @cc7768 says, there's no way to assign transition probabilities in a non-arbitrary manner.
I guess though @oyamad wants to allow the user to introduce a particular ordering over the states, which sounds reasonable.

It now allows users to pass in states and throws an error if any of the states they specify are not observed in the history.

@cc7768 Thanks!  Nice docs and nice code.

Quick thoughts. Based on some experience doing this (approximating observations of a continuous variable with a discrete markov in a way that was free of distributional assumptions) as part of some value function iteration codes.
As I recall the MLE estimator is that once you have chosen your bins you then get the transition matrix by counting transitions and normalizing rows to (cumulative) sum to one. The trick is that to use this in practice you must first define the bins and I recall the MLE estimator saying nothing about how to do this (at least not in my short lit review).
In my experience using this I found that a good approach was simply to borrow the automated bin choosing algorithms from histograms (I used whatever the algo that is the matlab default is).  The intuition was that all the observations, when pooled, could be thought of as representing the stationary distribution.
This worked well in practice and given historgram algos already exist is easy to implement. I tried a few alternatives to pick the bins (equally spaced points, points based on guassian quadrature that would be optimal if it were normal dist, etc.) but the historgram bins seemed to perform best. (Best here means when I graphed univariate time series those created with historgram bins looked more like original observed series to naked eye. One could obviously formalize a distance/loss criterion but I never bothered.) (The histogram algorithms can even suggest a number of bins as appropriate. Obviously based on different criteria to those you ideally want for markov chain. But can still be useful to give some idea that you might be using way too few to really capture the data.)
Note. This can also double as a method for discretizing any known process. Simulate your process and then apply this method. Likely you have already considered this as part of appeal but figured it might be worth a mention.

Hi @robertdkirkby thank you for the thoughtful message and the tips!
I believe (but please correct me if I am wrong @cc7768) that this  routine is meant to estimate the markov transition matrix for an observed discrete process, rather than approximating a continuous variable as a discrete Markov process using observed data.
That being said, I think your suggestion is spot on and would be a useful addition to QuantEcon.jl. Would you be interested in contributing something like this here? If not, hopefully someone else on the team (or that sees this message -- consider this an open invitation to collaborate!) can find the time to do so.

Yes, this method is only for a discrete valued process, but the goal is to add some methods for continuous valued processes as well.
@robertdkirkby 's idea sounds really slick. One natural implementation of this (one of the reasons I think he mentioned it) is that the histogram method could build off of the discrete method I implemented -- First a "preparatory" set would discretize data using histograms and then pass it off to this method to estimate transitions.
Do you have some code (in any language) that does this? If so, (and as long as it is licensed under something that permits us to build on it) then I would love to see an example. It also sounds like what you're describing would allow bins of different sizes etc... I hadn't heard of this method but it seems like a good one -- I am keen for QE to add this functionality :)

I did it as part of a replication of Hansen (1985).
His shock process is yt=rhoyt-1+et, where et is log-normal.
[note difference from common logyt=rhologyt-1+et, where et is normal]
He used linear-quadratic methods, so only conditional mean of shock matters and the 'log-normal' is essentially ignored. I found that difference was important for certain key moments of model
[Replication results form part of my paper: https://link.springer.com/article/10.1007/s10614-015-9544-1 ]
In my case goal was to get a discrete MC approximation of an unusual (known) shock process, but conceptually there is no reason you can't just do exactly the same from any observed time series data.
The matlab code I wrote is lines 51 to 83 of
https://github.com/vfitoolkit/vfitoolkit-matlab-replication/blob/master/Hansen1985/Hansen1985.m
But the relevant part is really just a single line to call the histogram command on line 74. And the lines after that which are my version of the command @cc7768 has just coded up here.
My code is unlikely to be useful to build on in sense that it is just a call to matlab histogram fn, together with the part you already coded, but does give a demo.
I took a further look in my archives and I did actually test the performance based on following: simulate standard AR(1) using a random number generator and monte-carlo, use historgram-plus-MLE-for-discrete-transition-matrix method to approximate it as a discrete MC, simulate discrete MC, estimate AR(1) from simulation. I found that as I increased number of grid pts you got back same AR(1) that you put in.
As @cc7768 observes, it allows for bins of different sizes. One can loosely justify the process by appealing to decomposition of a markov process into pairing of a copula (transition function on rank) and stationary distribution. The histograms are well understood non-parametric estimators for the stationary distribution based on bandwidth estimators with data-selected-bandwidth. The transition matrix is then also a well understood estimator: MLE for transition of discrete markov. The informal part is their joint use, theoretically you could obviously somehow do better by doing both jointly. I did not find anyone who had sat down and done this theory though. Advantage of this approach is the ease of implementation since histogram commands are standard in statistics packages. For your purposes I expect there are some standard historgram commands in python/julia stats packages that could be repurposed.

Took a look at code:  src/markov/markov_approx.jl
In line 195 you start from d[X[1]]. Your first step of for loop (lines 196 to 203) also starts from t=1 and d[X[t]]. Unless I misinterpret you are counting the nontransition from t=1 to t=1 and then missing the final transition from t=capT-1 to t=capT.
Solution would just be to change line 196 to: for t in 2:capT
I don't have copy of Julia and QuantEcon on this computer, otherwise would set this up as pull request myself.

@robertdkirkby Good catch -- Thanks for noticing that!
I've changed it to state_j = d[X[t+1]]
@sglyon -- Just a heads up that since this was so minor I pushed directly to master.

@robertdkirkby Regarding your comment

In my experience using this I found that a good approach was simply to borrow the automated bin choosing algorithms from histograms (I used whatever the algo that is the matlab default is).  The intuition was that all the observations, when pooled, could be thought of as representing the stationary distribution.

I think this is a great idea.  My loose idea was to resample from the ergodic distribution to obtain points and then use some kind of nearest neighbors algorithm to turn these points into regions, which correspond to your bins.  But your idea makes just as much sense, if not more, and, as you say, the code for generating bins is already there.
There's a paper waiting to be written here, showing that the method can be used to approximate any time homogenous Markov process in R^n.  Moreover, it's very simple and flexible.
One might argue that a simulation based method is inefficient, but this is hardly an issue, because the discretization is done once off.   Moreover, if the n in R^n is relatively large (even 2, 3 and up), Monte Carlo might in fact be an efficient option.
I don't have time to write such a paper but I'd love to see this code in QuantEcon either way.  As @cc7768 says,

the histogram method could build off of the discrete method I implemented -- First a "preparatory" set would discretize data using histograms and then pass it off to this method to estimate transitions.

@robertdkirkby Your comments are much appreciated.  The hive mind turns out to be efficient ;-)
CC @cc7768 @sglyon @oyamad @vgregory757


The parameter options is lost in the DelegatingFileSystem#{mount,setAcl}.

Can one of the admins verify this patch?

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/11052/
Test PASSed.

@witgo Thanks for fixing this! Can you also add a simple unittest to verify the behavior?

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/11054/
Test FAILed.

Merged build finished. Test FAILed.

Jenkins, test this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/11058/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/11060/
Test PASSed.

Thanks for fixing the bug I left @witgo!
Just curious, how did you find this issue?

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.3 please


Repeatable Tests

Currently dataserv-client is dependent on dataserv for tests and requires a fresh install. Tests need to be repeatable if possible.

I think this was fixed a few days ago.


Apk editor pro does not allow build

Carstream shows on music tab but not on end tab

Same issue. I can't rebuild the app. Anyone who can help?


Disable Typescript snippets suggestions on imports

How to disable Typescript snippets on Imports?
It's annoying to read with all the snippets!

Duplicate of #1304


TypeScript - Space in parens/Break chained methods do not work

Description
Checking "Space in parens" and "Break chained methods" options under TypeScript appear to have no affect on TypeScript files.
Input Before Beautification
This is what the code looked like before:
	ngOnInit() {
		this.productService.getProducts().subscribe(products => this.products = products);
	}

Expected Output
The beautified code should have looked like this:
	ngOnInit() {
		this.productService.getProducts()
			.subscribe( products => this.products = products );
	}

Actual Output
The beautified code actually looked like this:
	ngOnInit() {
		this.productService.getProducts().subscribe(products => this.products = products);
	}

If I import this code into a new .js file, and set the same options for the .js formatter, it works as expected.

Thank you for the specific details about the issue.  Would you also mind generating a debug.md file from Atom Beautify so that we can know a couple more technical details?  https://github.com/Glavin001/atom-beautify/blob/master/docs/troubleshooting.md

https://gist.github.com/anonymous/4d5e96af5001ad3a6c1f6015bc3e61ab

Looks like this issue will not be addressed by typescript-formatter.


restartBrowserBetweenTests not working on iOS 9.0.2

I'm using Appium and Protractor to implement e2e testing of a hybrid app. It works great in Android, but when I tried to test it in an iPad with iOS 9.0.2 I found out that the setting restartBrowserBetweenTests did nothing.
We want to restart the browser between tests to get rid of all the changes performed during the test. This bool works great on Android, but in iOS 9.0.2 all the data is still there (WebSQL).
This is my config file:

exports.config = {
"framework":"jasmine2",
"specs":["../../e2e/.js","../../www/**/e2e/.spec.js"],
"capabilities":{
"app":"{SOME PATH}/MyApp.ipa",
"browserName":"iOS",
"platformName":"iOS",
"platformVersion":"9.0.2",
"deviceName":"iOS Device",
"udid":"{iPad UUID}",
"autoWebview":true,
"autoWebviewTimeout":10000
},
"restartBrowserBetweenTests":true,
"onPrepare":function(){
var wd = require('wd'),
protractor = require('protractor'),
wdBridge = require('wd-bridge')(protractor, wd);
wdBridge.initFromProtractor(exports.config);
},
"plugins":[{
"path":"../../e2e/plugins/wait_for_transitions.js"
}],
"seleniumAddress":"http://<IP_ADDRESS>:4723/wd/hub"
};

Hi,
I think my experience could be the same issue.
I am using the restartBrowserBetweenTests:true configuration to restart the browser between features, the browser window is closing but won't open again.
I am using Win7, Cucumber with Chrome and IE, both the same. The IEDriverServer process ends, but no new process starts.

Hi
It works for me now ;)

Closing as obsolete. We did have some issues with restartBrowserBetweenTests this year, but everything should be fine in the latest Protractor 4.x


Add revision status configmap to bindata

Adds a status configmap to the operator to be used by the revision controller. This needs to exist already or the revision controller will return an error when it tries to copy it.
PR to library-go incoming which will update the revision controller to include this and set appropriate ownerrefs when creating a new revision

Could and shouldn't this be a CRD?


Script view as Create/Alter not working

Issue Type: Bug
When I click Script view/table as Create/Alter I get this error and nothing happens:
Error running command dataExplorer.scriptAsCreate: undefined. This is likely caused by the extension that contributes dataExplorer.scriptAsCreate.
Azure Data Studio version: azuredatastudio 1.25.2 (4d4917d328ab7a7526817a0f0ef03237a79aa54d, 2021-01-20T22:47:41.882Z)
OS version: Darwin x64 20.3.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (8 x 2500)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 3, 4

Memory (System)
16.00GB (0.09GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (4)

Extension
Author (truncated)
Version

query-history
Mic
0.1.0

schema-compare
Mic
1.8.0

sql-database-projects
Mic
0.5.1

azdata-sanddance
msr
3.1.0

20210209T201209.zip
console.log

@abist could you please try to determine what's happening here?

Holding this for April askmode since it was postponed in March.  Need to verify if this is actionable this week.

@ursu123 I wasn't able to repro this issue. Could you specify what kind of server and database you're connected to?

@ursu123 I noticed in the logs you provided that there's a login error right before the scriptAsCreate error:
  INFO Creating new connection connection:providerName:MSSQL|applicationName:azdata|authenticationType:SqlLogin|database:database|server:server|user:username|databaseDisplayName:database|group:
  INFO Adding connection connection:providerName:MSSQL|applicationName:azdata|authenticationType:SqlLogin|database:database|server:server|user:username|databaseDisplayName:database|group:
  INFO Successfully added connection connection:providerName:MSSQL|applicationName:azdata|authenticationType:SqlLogin|database:database|server:server|user:username|databaseDisplayName:database|group:
  INFO Deleting connection connection:providerName:MSSQL|applicationName:azdata|authenticationType:SqlLogin|database:database|server:server|user:username|databaseDisplayName:database|group:
   ERR Login failed for user 'username'.
 Error running command dataExplorer.scriptAsCreate: undefined. This is likely caused by the extension that contributes dataExplorer.scriptAsCreate.
onDidChangeNotification @
   ERR An unknown error occurred. Please consult the log for more details.
   ERR Login failed for user 'username'.

Is the connection being made with the correct credentials?

Closing this based on the previous comment.  It looks like the connection is failing to login into the server.  Please try removing and readding the connection.  Please let us know if you're still impacted by this issue.  Thanks!


[Backport] Can't add registry credentials to single namespace

backport of rancher/rancher#26813

Validated with Rancher version v2.3.7-rc4
Steps:

Create namespaces ns1 and ns2 in a new project or default project
Navigate to "Add Registry" and add registry for a specific namespace. Choose namespace "ns1" from the namespace dropdown .
Results:
Registry gets created in the right name space as specified.


bug mitogen version 0.3.4 with running ansible 2.15 or 2.16

Please drag-drop large logs as text file attachments.
When i execute any playbook with mitogen 0.3.4 version, a have this issue:
ERROR! Your Ansible version ((2, 15, 7)) is too recent. The most recent version
supported by Mitogen for Ansible is (2, 13).x. Please check the Mitogen
release notes to see if a new version is available, otherwise
subscribe to the corresponding GitHub issue to be notified when
support becomes available.

Which version of Ansible are you running?
ansible-core 2.15.7
Is your version of Ansible patched in any way?
no
Are you running with any custom modules, or module_utils loaded?
no

duplicate of #1021


[feature] Warn or error out when a file inclusion or exclusion search glob does not match anything

⭐ Suggestion

Whenever a file path search glob included in either the files or ignores objects does not match any file, at least a warning should be emitted in the output. Having a way to configure the severity of the trigger from the CLI would also be nice.
💻 Use Cases

This would be as a complement to #1530. When writing a rule or updating Ast-Grep that changes how such globs are treated, a small mistake can happen and currently would render some file discovery ineffective in a completely silent way. Having the tool warn us about it would improve the user experience quite a bit I think, as I remember struggling a lot with how the rule file discovery works. The CLI part would be to be able to either turn it off entirely or make it a hard error so it could be enforced in CI more easily than checking the output length.

Just tested it and it works great! In particular, the formatting used should make it easy to consume in automated tasks, for example during CI. Thanks a bunch!

Thank for your kind word! If you are interested, you can also see the EBNF format for the tracing output https://github.com/ast-grep/ast-grep/issues/1574


add a karma transactions table

easy to add, nice for data / trend analysis, log from/to users, date, the amount of karma, and the channel where karma was given

@pybites Fixed :)

yep this is awesome, thanks!


Move the cybox clear cache to the higher level methods

Just moving the function call to a higher level method

Codecov Report

Merging #28 into master will decrease coverage by 0.02%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
- Coverage   64.65%   64.63%   -0.03%
==========================================
  Files          16       16
  Lines        5031     5033       +2
==========================================
  Hits         3253     3253
- Misses       1778     1780       +2

Impacted Files
Coverage Δ

stix2slider/convert_stix.py
65.76% <ø> (-0.1%)
:arrow_down:

stix2slider/__init__.py
41.66% <50%> (+0.49%)
:arrow_up:

Continue to review full report at Codecov.

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


How do i run the bot?

We do not provide support for selfhosting because many people including me have no idea how to host a bot. If you look on the official support server in the selfhosting you might be able to get help from a few users.
Otherwise use the command;selfhost to get more info and also an unofficial guide that should walk you through the installation process.

We do not provide support for selfhosting because many people including me have no idea how to host a bot. If you look on the official support server in the selfhosting you might be able to get help from a few users.
Otherwise use the command;selfhost to get more info and also an unofficial guide that should walk you through the installation process.

You have to know at least Go Lang basics and seting up all of the content for environment varables, including databases etc. It isn't easy process. Maybe selfhosting is provided for advanced users :P

You have to know at least Go Lang basics and seting up all of the content for environment varables, including databases etc. It isn't easy process. Maybe selfhosting is provided for advanced users :P

Read the README. I can't provide a basic guide here

Or insert the bot token here!
Bot Token

& idk how to host this bot

& idk how to host this bot

If you have never hosted a bot yourself and have no experience with i wouldn't suggest you doing it.
If you still want to do it remember that it will be a bit of work to get everything up and running. We provide no official support for selfhosting but we do have a channel in our discord server where you can ask selfhost related questions.
There is an unofficial user guide on how to selfhost that you can find here. Since i have never tried it i can't tell you how difficult or easy it will be.

& idk how to host this bot

If you have never hosted a bot yourself and have no experience with i wouldn't suggest you doing it.
If you still want to do it remember that it will be a bit of work to get everything up and running. We provide no official support for selfhosting but we do have a channel in our discord server where you can ask selfhost related questions.
There is an unofficial user guide on how to selfhost that you can find here. Since i have never tried it i can't tell you how difficult or easy it will be.

Becuz it's super hard to host it or hosting it on Heroku


As a Software Engineer I want user personas so I can have empathy towards the end user.

I've done the user persona. If you guys want to check it out and see whether it is up to standard, please do

Acceptance Criteria

I need you to create some personas for sprint 2
Create 3 Personas with different requirements
Make sure that they are brief and makes sense
We can use them to create user stories.

Sorry I mean I need images/templated personas so we can scim them.

User Persona isn't completed, still needs a bit more, but will close once finsishjed.

👍Compelted.


Getting issue on save file

Template
Please write your blade template that occurs issues.
Context (Environment)

write your environment

Description

Any other informations

Closed by #372


Add back pooch to sys_info; pin pooch min version

It appears that #9886 accidentally removed pooch from the sys_info output.
I also specify a lower version requirement for pooch (1.5+) after a user reported an issue with an outdated version on the forum.

Thanks @hoechenberger !


Updating page titles and meta descriptions

Trello card
https://trello.com/c/Glai1fdb/4458-review-page-titles-and-meta-descriptions
Context
We want to try and tweak some of our page titles and meta descriptions to better target keywords and boost organic search performance.
Changes proposed in this pull request
Guidance to review

Looks good to me - apart from maybe the qualifications heading change @EllieNodder

Looks good to me - apart from maybe the qualifications heading change @EllieNodder

now that I think about it, really strange that the h1 and h2 are basically the same 🤔 will tweak


Execute correct delete operation in delta tests

This change uses the correct table row deletion operation in the deleteRows method, which previously performed merge-with-delete operation instead of a true delete. Since most test tables do not have delete vectors enabled, this change does not break existing tests. To validate the change, a new test has been added with deletion vector property set for the test table. However, the actual XTable conversion test is not part of this change, as it requires more changes in the DeltaSource to correctly handle the deletion files. This will be addressed in future update.
This pull request is related to test fixes.
Fixes #588

@ashvina Thanks for the PR, can you squash the commits into a single commit before merging ?

@vinishjail97 , thanks for the review and comments. I will squash merge the PR.


Drag working only once on mobile

Hello, I am experiencing an issue with a draggable component. When on mobile I can drag only once before I cannot drag anymore. If I exit Chrome dev tools mobile view, I can then continue to drag without issue. I have a very similar component that works as expected in both desktop and mobile views.
// Dragging element an element inside the deadzone will not trigger next or previous video
const handleStop = (event, dragElement) => {
if (dragElement.y >= 120 || dragElement.y <= -120) {
dragElement.y > 0 ? props.previousVideo() : props.nextVideo();
}
};
return (
<Draggable
axis="y"
position={{ x: 0, y: 0 }}
onStop={handleStop}
allowAnyClick={true}
>
[TRUNCATED CONTENT]

);
// Below are the Prop functions from previous component above. The posts below come from an API request. The logic triggers correctly when on the desktop view. The mobile view works as well, but only once as the drag stops working without an error message.
const previousVideo = () => index > 0 ? setIndex(index - 1) : "";
const nextVideo = () => {
if (index != posts['data']['children'].length && !requested) {
if (index == posts['data']['children'].length - 1) {
setRequested(true);
more("page");
} else {
setIndex(index + 1);
}
}
}

Same issue on v4.4.6. The drag on mobile only works the first time, then you have to tap a lot of times fastly on the element and it may be dragged again.


Allow custom functions to be passed for ClientToken and CreatePurchase calls

I think it'd be helpful if we could pass in a custom function for resolving the client token and create purchase urls, this would allow somebody to use any http library or headers/functions that are needed, and it'd possibly reduce any friction, the function would perferrably return an observable and the final calls would just subscribe to either the service or the custom function passed in so that the event can be triggered, as long as the observable returns the data in a given format it should work great.
An example of how i imagine this working is i have payments.component.ts with the following
class PaymentsComponent {
  ...
  getClientToken(){
    return this.http.get('my-url', {headers: new HttpHeaders({requestType: 'application/json', my_header_here: xyz})}).map(result => {
      // Imagine the result is some sort of user/entity identifer with a property of key added, so i'm returning the value as an object matching the required format
      return {token: result.key};
    });
  }

  createPurchase(nonce, amount) {
    // Similar type of deal as above, just returns an observable (could be http or anything else)
    return this.http.post(xyz,{other:data}); // a stub.
  }
}

and then in my html file it'd be like this
<ngx-braintree
	[clientTokenFunction]="getClientToken"
	[createPurchaseFunction]="createPurchase"
	[chargeAmount]="55.55"
	(paymentStatus)="onPaymentStatus($event)">
</ngx-braintree>

As a follow up, if you're up for it i'd be more than happy to do this as a pull request, it could be left entirely optional and would allow some more flexibility for the users.

Thanks for the feature request. Thats a good idea. Please feel free to create a PR for this feature. :)


fix: app client id change in env example

NO JIRA
What/Why?
per this thread, this value is wrong https://bigcommerce.slack.com/archives/C01SAU2HH1V/p1731456396702289?thread_ts=1715630373.016079&cid=C01SAU2HH1V
Rollout/Rollback
revert
Testing

@bc-victor @bc-marco Can you expand on why this value is updated? Currently, we're actually using dl7c39mdpul6hyc489yk0vzxl6jesyx as we encountered an issue with qxvapwlk4fbb9dyogdcxk9o50d9jqjo. This is also what seems to be used with B2B Edition footer script:

I think this is the issue I encountered when I used qxvapwlk4fbb9dyogdcxk9o50d9jqjo:
https://github.com/bigcommerce/b2b-buyer-portal/issues/24


Framework for running unit tests against a live chain

Framework to specify a set of "action" / "result" pairs, which allow us to check that post-upgrade behavior is as expected.
Current idea is to write a simple python library which can take simple descriptions of an action (as a set of transactions to submit) and a result (as a set of queries to run and the values we expect to them to return), and the library can then run these transactions and queries, and report any values which don't match expectation.
For example we should be able to specify a create-pool transaction, and then queries to check that the pool exists, has the right parameters, it's module account exists, etc.

Moving a bunch of the TODOs from the original tracking issue here, basically just a list of modules for which we will want to have robust tests.

[ ] Sends

[ ] Bech32IBC

[ ] Paying fees with whitelisted tokens
[ ] GAMM Functions

[ ] Pool Creation
[ ] Join / Exit Pool (test all variations)
[ ] Swaps (test all variations)

[ ] Lock creation
[ ] Gauge Creation
[ ] Epoch payouts (not a transaction, but we should test that gauges continue to work through queries)
[ ] Governance

[ ] Proposal, Deposit, Voting
[ ] Parameter changes
[ ] PoolIncentive changes

[ ] IBC (more complicated ofc, may require a multi chain testnet environment if we want to test incoming stuff)

[ ] channel creation
[ ] transfers
[ ] channel recovery?

Captured by end to end testing work!


ARC-43 No Length in Dynamic Arrays of Static Types

Proposes the removal of element length prefix on non-nested static types.
This alone is not super important, but if we are making breaking changes to the ABI might as well include this QOL change.

But the ABI was designed to allow decoding by walking along without knowing ahead of time where the end of a value is

What's the value of this? In what scenarios will a decoder not know how long the data its decoding is?

But, why would we do PR https://github.com/algorandfoundation/ARCs/pull/212 which adds encoding bytes so that we can do this PR, which removes some?

The byte savings isn't really the main motivation. It's mostly opcode savings. Not needing to extract/add len when working with bytes/strings and also just being able to concat to add to an array rather than concat + increment prefix

But the ABI was designed to allow decoding by walking along without knowing ahead of time where the end of a value is

What's the value of this? In what scenarios will a decoder not know how long the data its decoding is?

It's exactly the property you need so that PR #212 is not needed. You don't have to know how much the input remains to be decoded, so you don't have to substring out the value to decode it.

It's exactly the property you need so that PR https://github.com/algorandfoundation/ARCs/pull/212 is not needed. You don't have to know how much of the input remains to be decoded, so you don't have to substring out the value to decode it.

The use case #212 is trying to solve is extracting a value from a tuple without decoding the entire structure. I would think that's a much more common use-case than fully decoding the entire tuple every time you want to read one element.

In the public discord ARC meeting this seemed to be unanimously supported.

So this is only for top-level objects, right?  The ARC says: The exception is if the array is encoded inside of a tuple. but also mean when encoding in a dynamic array, right? (since the encoding of a dynamic array itself encodes the tail as a tuple).
So we're talking the individual values in ApplicationArgs[0-15] only?

So this is only for top-level objects, right? The ARC says: The exception is if the array is encoded inside of a tuple. but also mean when encoding in a dynamic array, right? (since the encoding of a dynamic array itself encodes the tail as a tuple).
So we're talking the individual values in ApplicationArgs[0-15] only?

Exactly, I will clarify this in the ARC.

I just realized that this introduces weirdness with bool[].  Given a top-level bool[] encoded as 0x0000000 there is no way to know how many boolean values are actually encoded.
Personally, I'd prefer to just change booleans to be encoded as 0x01 and 0x00 for reasons beyond this ARC, but the alternative is that booleans are always prefixed with their length


Containers for reusable research?

Given Pat's upcoming talk on using GNU make for reproducible analysis, I was wondering if there would be an interest in developing a SWC module on using containers for reusable research.
Carl Boettiger wrote a nice article on this https://arxiv.org/pdf/1410.0846.pdf.
Containers are small enough that the entire analytics environment (and dependencies) can be archived to a place like Dryad.

Docker is definitely something that is on my radar and that I would love to learn more about. I feel like @marschmi @bsmith89 worked on a docker lesson during the Bug BBQ a few weeks ago, but I wasn't able to find the lesson on the SWC site. Perhaps they can fill in the gaps of my memory?

Great to hear. I had to miss the Bug BBQ but found this https://github.com/marschmi/r-docker-tutorial from Marian. A fork of http://ropenscilabs.github.io/r-docker-tutorial/

@jestill Yeah, that was our pull-request.  The docker tutorial produced by ropenscilabs is incomplete and imperfect, but it does represent some momentum to make an SWC-style lesson and ultimately integrate it as an optional part of the curriculum.
I'd strongly support working on developing that lesson (which could take the form of a fork with heavy amendment) so that it can ultimately be contributed back to the SWC community.

@bsmith89 sounds like the right path to me.

You might want to look at Singularity.
http://singularity.lbl.gov/
Docker has been at times fragile and problematic, and Singularity takes a different approach that might be more robust and better suited if the goal is to provide an environment in which an application (or application stack) can run rather than a whole machine.
Just a thought.


Coverage report

Could you please tell me how to get code coverage? I have read the paper you published and also studied the examples you gave in the source code.

It looks like there is just a picture in the paper, but no specific method is pointed out in the documentation or an example given in the source code?

@king-of-knightss This is done using the line coverage plugin that was added to Treadle (https://github.com/chipsalliance/treadle/pull/263).
It can be enabled by passing the EnableCoverage annotation to Treadle.
The best info about this can be found in the PR itself.
Note that Treadle has changed quite a bit since then, and different solutions have been implemented to obtain line coverage of the FIRRTL description. The main goal was to provide a workable solution for line-coverage, which at the time wasn't supported by the simulator, this has since changed with the introduction of the cover statement at the Chisel level.
I hope that this helps!

Thanks a lot for your help! But here are also some questions.
I found the usage example you mentioned about code coverage in CoverageTest.scala.
It can indeed generate relevant data on code coverage, but it seems that when using it, the TreadleTester must be called through the following statement
val tester = TreadleTester(Seq(FirrtlSourceAnnotation(testFirrtl), EnableCoverageAnnotation))
At the same time, the firrtl file of the hardware circuit must be generated in advance as the input of TreadleTester.
If I want to complete the code coverage test by introducing parameters or turning on some switches based on this set of functional coverage tests (functional coverage tests), what should I do?


Enable fully-local development

Solution
When this project was initially started, we were using a local Postgres database and interacting with it via Prisma; however, we've since moved on from Prisma (#). We need some way to continue local DB development. This PR enables that by configuring a locally-hosted instance of supabase.
Testing

Start supabase, supabase start (note that supabase credentials are written to stdout).
Login to the supabase studio
Create tables using the db.sql script
Update env.local with values emitted from supabase CLI
Start the app, yarn dev
Sign in to the app
Retrieve your email from the Inbucket URL
Click the email link to login

If the above works, you are reasonably assured that this is working as intended.
Note you will need docker running on your machine.
Resources
Viewing email sent from locally-hosted supabase instance

Links

Hosting Supabase locally
Viewing emails sent from locally-hosted supabase instance

I merged this before your review. The things you called out are none-issues; the order is correct, and the section stating to call out stuff depends on the work introduced in the PR.


added rockets

big bada boom

Sorry for the delay, I'm going to probably take your rocket changes and incorporate them into my weapon branch before I merge into the super branch. I didn't realize James had merged his weapon changes into my weapon branch (instead of the super branch). And I want to minimize the conflicts.

So close this and PR to your weapon branch?

It'll be much easier to do it myself than dealing with conflicts

Added shotguns to my combat branch with turtle's other weapons. Feel free to close this branch. (i'm not sure if it's taboo to close someone else's branch in progress, that's why i'm not closing yours)


Feature spectrogram normalization

Which issue(s) are closed by this pull request?
Closes #48, related to #46. Merge after #47.
Changes proposed in this pull request:
pyfar.dsp.spectrogram

removed clipping the spectrogram data. Clipping is now done by clipping the colormap inside the spectrogram plots.
added correct normalization using pyfar.fft.normalization
removed window_length='auto' in favor of window_length=1024. The 'auto'-option changed the window_length depending on the signal length, which
added dB, log_prefix and log_reference as input parameters (dBreplaces old input nodb and is used for consistency with #45)
time stamps now refer to the beginning of the blocks, i.e., they start at 0 seconds. Before, they referred to the center of the block, which looks less nice in plots. Both conventions are used regularly, the current one might be more common.

pyfar.plot.line.spectrogram

added auto range for colormap if dB=True for consistency with pyfar.plot.line.freq
added colorbar clipping

test_plot.py

added a MagicMock for Signal that can handle __getitem__

Converted pull request to draft to avoid a merge.

merged with pr #45


Cache parts for browsing

It's very slow (often several seconds) to load a large parts list like SBOL stack.
Rather than retrieving each time, you should be using a cache.
You can check for updates in the background.

I will work on caching and multithreading.

The operation is now multithreaded and has a cool loading icon :)


Firmware info

Would it be possible to display device firmware information please?
For example:

App:

Thank you for this suggestion. I have taken a quick look and the serial number is not something that is currently being decoded from the output from the devices. However, when I have a bit more time I will dig in a bit more and see if I can figure out how to get the firmware information.

It took a while, but the latest version of the add-on that I just published does include the firmware version as reported by the device. It doesn't look quite like it does in the Airthings App so this may not be a full answer to your request, but hopefully it helps.


fix: pass velocityY=null if keyboard didn't change its height

📜 Description

💡 Motivation and Context

Fixes https://github.com/kirillzyusko/react-native-keyboard-controller/issues/185
📢 Changelog

JS

iOS

Android

🤔 How Has This Been Tested?

📸 Screenshots (if appropriate):

📝 Checklist

[x] CI successfully passed

Try to:

set interpolator="ios"
scroll to top
change keyboard size

Hook will not report new keyboard size 😔


Fix maven deployment error: link swarm parent pom

Should fix https://ci.wildfly-swarm.io/job/wildfly-swarm-deploy/249/

retest this please (damn windows errors)


Reintroduce single cache for successive scanline reads

Previously we allowed multiple threads to cache but that caused memory bloat, here, only keep one so successive reads will be faster for compression types where there are more than one scanline per chunk
Fixes #1887

Thanks, this greatly helps opening speed in GIMP.
Tested and clocked opening 3 exr images created in Darktable:

File
Opening time before
Opening time with this patch

A
6s
Instant

B
32s
<2s

C
65s
<2s

Looks good to me, except does it break the ABI?
abipkgdiff reports that it detects data members that have changed sizes.

I think this might be a flawed process for detecting ABI changes. This patch doesn't change any public headers. The class whose size is changing is totally internal.
There ought to either be an explicit list of these classes and functions to exclude from ABI checks, or better yet, enclose all of them in a private namespace so they can be excluded in one fell swoop.

The public ABI does not change with this, as this is in the pImpl internal class. However, is declared as a private struct within the public class such that there can be a non-void pointer in the public class. We could make it an empty struct type and derive a truly private subclass in a namespace, but would add a bunch of casts or double pointer for little gain?
Detecting ABI changes is a bit fraught, and so I think at best it should just be reviewed manually and not something to be relied upon automated testing for - a simple equal-size typedef change can trigger an apparent abi difference, even though not actually any different.

for the next release (3.4 or 4.0), I would like to take another review of public / private symbols as there are a lot of "utility" classes exposed that should not really be part of the public interface (although have been, so will need to go through a deprecation period), perhaps there is a different way we could achieve this such that abi diff tools can better ignore (i.e. making the pImpl class as a hidden class might work?)


Replacement to TheoKanning?

Given that upstream project https://github.com/TheoKanning/openai-java does not seem to be maintained any more, are you planning to keep this repo up-to-date with new changes and publish JAR to Maven, and if so may of us can switch to using this?

I am so sorry I completely missed this issue as I don't check issues for my personal project repos
This repo was created for my personal use
I was planning to maintain it and keep this up-to-date but now I myself am moving to https://github.com/Lambdua/openai4j now
I plan on making PRs in that repo to bring some of the changes I made
If Lambdua decides to not merge some of my important changes or if they stops maintaining it then I'll create a fork of that and maintain it


Program type already present: com.google.zxing.client.android.camera.open.OpenCameraInterface

Description of the problem:
In my gradle file, I have the following imports -
    implementation 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.2'
    implementation('com.journeyapps:zxing-android-embedded:3.6.0') { transitive = false }
    implementation 'com.google.zxing:core:3.3.0'

I know that the first library is using ZXING, but I need to be able to use both libs.
When using both libs, compiling gets me the following error -
Program type already present: com.google.zxing.client.android.camera.open.OpenCameraInterface
Which library version are you using? 3.6.0
Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5,
Android 5.0) - Galaxy S6
Does the same happen on other devices or an emulator? Yes
Any help will be appreciated, cheers!

No known workaround for this - you can't have two copies of the same class in an Android application.

press Ctrl+N and search for ChecksumException to see which classes are same..


ja: Make docs/concepts/workloads/_index.md follow v1.19 of the original text

This is a Feature Request

What would you like to be added
Update docs/concepts/workloads/_index.md to follow v1.19 of the original (English) text.
Why is this needed
content/ja/docs/concepts/workloads/_index.md is outdated.
Comments
/language ja
/good-first-issue
File to update
https://github.com/kubernetes/website/tree/dev-1.19-ja.1/content/ja/docs/concepts/workloads/_index.md
Original
https://github.com/kubernetes/website/tree/release-1.19/content/en/docs/concepts/workloads/_index.md
diff between translated and v1.19
https://gist.github.com/8b63f3f647b8e3694b2674fd84906045
Note
Currently, we use dev-1.19-ja.1 branch. Please open a PR targeting the branch.
ref
https://kubernetes.io/ja/docs/contribute/localization/
If you have a question, feel free to ask us at slack.k8s.io #kubernetes-docs-ja channel.

/triage accepted

/assign

/close


Connection will fail when deployed to backup region or no replica in current region

Hi!
I'm currently testing this library and am pretty happy with how it works.
There's one issue for me: the selection of the replica to use is pretty naive.
https://github.com/superfly/fly_postgres_elixir/blob/7ba34e0c961cd16e2a2d59ced022a17d778938e7/lib/fly_postgres.ex#L37
Here, we infer that the region our app is running on has to have a replica available. If not, the DNS lookup will fail and we will get a 502. This is okay under normal circumstances, but fails if we don't have a replica in all of our backup regions as well.
For example, I have the following regions:
❯ flyctl regions list
Region Pool:
dfw
ewr
fra
Backup Region:
ams
atl
cdg
iad
ord
vin

I also have my attached pg cluster replicated in dfw, ewr and fra - no problem, they all work fine.
Now, I redeployed and for some reason, vin was used for one of the VMs. Outside of using this library, no problem, my users would still have a good experience. With it, though, our database URL was set to vin.postgres.internal, which does not exist. This can only work if we have a postgres replica in every backup region as well, even if there is no app instance there and it goes completely unused. This is inefficient and wasteful.
I don't know what solution we could implement here, but we should probably find a way to find the closest database instance instead of just assuming that one is available in the same region.

Yes @cschmatzler, that is a problem with backup clusters. Backup clusters work just fine for other types of apps, but they don't work how we want in Elixir.
The recommended fix is to explicitly set your backup regions to your desired regions. And yes, this needs to be documented with the library.
To set the backup regions explicitly, for what you have listed above, it would look like this.
fly regions backup dfw ewr fra

Then your regions will look like this..
> fly regions list
Region Pool:
dfw
ewr
fra
Backup Region:

Then you can safely deploy without your app not finding a local db.


无法运行啊

运行环境为
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.17763.437], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] Android Studio (version 2.3)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] Android Studio (version 3.4)
[!] IntelliJ IDEA Ultimate Edition (version 2018.2)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.34.0)
[√] VS Code, 64-bit edition (version 1.26.1)
[√] Connected device (2 available)
! Doctor found issues in 2 categories.

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\2.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\3.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\4.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\5.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\6.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\7.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\8.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\9.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\10.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\11.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\12.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\13.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\14.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\15.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\16.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\17.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\18.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\19.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\20.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\21.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\22.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\23.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\24.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\25.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\26.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\27.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\28.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\29.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\30.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\31.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\32.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\33.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\34.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\35.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\36.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\37.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\38.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\39.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\40.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\41.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\42.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\43.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\44.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\45.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\46.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\47.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\48.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\49.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\50.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\51.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\52.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\53.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\54.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\55.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\56.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\57.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\58.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\59.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\60.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\61.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\62.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\63.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\64.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\65.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\66.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\67.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\68.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\69.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\70.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\71.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\72.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\73.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\74.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\75.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\76.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\77.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\78.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\79.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\80.jar, D:\flutter_app\flutter_app_shichunlei\build\app\intermediates\transforms\dexBuilder\debug\81.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.app.INotificationSideChannel

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 29s

The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.

Finished with error: Gradle task assembleDebug failed with exit code 1

Flutter 1.5.4 hotfix.2 一样跑步起来。
fatal error: 'multi_image_picker/multi_image_picker-Swift.h' file not found
    #import <multi_image_picker/multi_image_picker-Swift.h>

你这项目完全无法跑起来

Flutter 1.5.4 hotfix.2 一样跑步起来。
fatal error: 'multi_image_picker/multi_image_picker-Swift.h' file not found
    #import <multi_image_picker/multi_image_picker-Swift.h>

你看一下multi_image_picker这个包的配置

Flutter 1.5.4 hotfix.2 一样跑步起来。
fatal error: 'multi_image_picker/multi_image_picker-Swift.h' file not found
    #import <multi_image_picker/multi_image_picker-Swift.h>

你看一下multi_image_picker这个包的配置

multi_image_picker: 2.4.11。直接clone你的项目，其实是报pickerColor什么的没有声明，inner_drawer 和 setting 文件。

我这儿已经跑起来了。但是ColorPicker会无法识别，我暂时屏蔽了这段代码
@lancelot9527 我修改的地方如下:
1、在podfile中加入：
target 'Runner' do
use_frameworks! # <— 加入这句
#加入下面一段
pre_install do |installer|
# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
Pod::Installer::Xcode::TargetValidator.send(:define_method,
:verify_no_static_framework_transitive_dependencies) {}
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['SWIFT_VERSION'] = '4.2'  #加了这句
end
end
end
如果还会报错。在IOS工程中的build  Settings 中的 Compile Sources As 修改为
Objective-C++
上面就是我修改的所有地方。希望对你有帮助

我这儿已经跑起来了。但是ColorPicker会无法识别，我暂时屏蔽了这段代码
@lancelot9527 我修改的地方如下:
1、在podfile中加入：
target 'Runner' do
use_frameworks! # <— 加入这句
#加入下面一段
pre_install do |installer|
workaround for CocoaPods/CocoaPods#3289
Pod::Installer::Xcode::TargetValidator.send(:define_method,
:verify_no_static_framework_transitive_dependencies) {}
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['SWIFT_VERSION'] = '4.2' #加了这句
end
end
end
如果还会报错。在IOS工程中的build Settings 中的 Compile Sources As 修改为
Objective-C++
上面就是我修改的所有地方。希望对你有帮助

蟹蟹


fixes #1819: bound instance methods should reflect prototype changes

depends on the acceptance of the proposal in #1819

The semantics of this seem incorrect.
If you have a bound function in a class definition, and then later replace it with an unbound one ... the function should now be unbound -- not just a new bound version of the new function. Does that make sense?

Both the current and proposed semantics equally clash with JS's prototypal paradigm. I just think the proposed semantics are more useful.

Yes -- I'm not saying that the current implementation isn't wrong for this case ... I'm just saying that this fix doesn't seem complete.

Hmm. I don't think it's possible to achieve the consistent behavior jashkenas is describing without storing additional state. We want the constructor to bind a method only if it's the original, defined with => on the class; but the constructor has no way of knowing.
An implementation that would give us the desired consistency would look compile
Foo
  boundMethod: => 23
  unboundMethod: -> 42

into something like this:
Foo = (function() {
  function Foo() {
    for (method in Foo.prototype) {
      if (Foo.prototype[method].bind) {
        this[method] = __bind(Foo.prototype[method], this);
      }
    }
  }
  Foo.prototype.boundMethod = function() { 23 };
  Foo.prototype.boundMethod.bind = true;
  Foo.prototype.unboundMethod = function() { 42 };
  return Foo;
})();

Obviously this exposes more than we'd like, but I can't think of any way of solving this test case that doesn't involve attaching state to the prototype methods themselves:
class D
  a: => this
before = new D
D::a = -> this
after = new D
eq altContext = {}, before.a.call(altContext)
eq altContext = {}, after.a.call(altContext)

Ignore previous meandering comment (except the test case, which is legit); here's a bona fide solution: Compile
class Foo
  boundMethod: => 23
  unboundMethod: -> 42

to
Foo = (function() {
  function Foo() {
    var _i, _idx, _name;
    for (_name in Foo.prototype) {
      if (_idx = __indexOf.call(_boundMethods, _name) > 0) {
        this[_name] = __bindMethod(_name, _boundMethods[_idx], this);
      }
    };
  }
  Foo.prototype.boundMethod = function() { 23 };
  Foo.prototype.unboundMethod = function() { 42 };
  var _boundMethods = [Foo.prototype.boundMethod];
  return Foo;
})();

where the __bindMethod helper is defined as
__bindMethod = function(name, method, me) {
  var proto = me.constructor.prototype;
  return function() {
    return proto[name] === method ? method.apply(me, arguments) : proto[name].apply(this, arguments);
  }
}

The two checks—one in the constructor, the other in __bindMethod—together ensure that Foo::boundMethod is bound if and only if it's the same method that we defined on class Foo.
Does that sound good to you, Michael?

Yeah, that LGTM. I wish there was a somewhat simpler method, though.

I wish there were as well, but after tinkering with this for a while, I'm fairly certain that both checks are necessary:
You need a test in the function returned from __bindMethod, because otherwise, there's no way for before.boundFunction to do something different after you've modified Foo::boundFunction.
And you need a test in the constructor (on some data structure containing references to the bound functions used in the original class definition), because otherwise, after.boundFunction will be a bound form of the newly-defined Foo::boundFunction.
With both checks, before.boundFunction and after.boundFunction will always have the same behavior.

I've come up with what I believe is a significantly cleaner implementation:
__bindMethods = function(methods, me) {
  var proto = me.constructor.prototype;
  for(var m in methods)
    if(proto[m] === methods[m])
      me[m] = function() {
        var method = methods[m], protoMethod = proto[m];
        return protoMethod === method ? method.apply(me, arguments) : protoMethod.apply(this, arguments);
      };
};

Foo = (function() {
  function Foo() {
    __bindMethods(_bound, this);
  }
  var _bound = {};
  Foo.prototype.boundMethod = _bound.boundMethod = function() { return 23 };
  Foo.prototype.unboundMethod = function() { return 42 };
  return Foo;
})();

I moved almost all of the boilerplate code out of each constructor and into the helper. We don't want to duplicate all that code for each class. I've also eliminated the dependency on all other helper functions. Thoughts? Personally, I'm pretty in favour of this change.

Ha, I woke up this morning thinking about a similar revision. Definitely an improvement. There's also one small edge case with both implementations, though:
class D
  a: => this
original = D::a
before = new D
D::a = -> this
after = new D
D::a = original
# now a is bound on before but unbound on after

The fix is simply to kill the if(proto[m] === methods[m]) check in the loop. With that change, everything seems to work just fine. Tests here.


Imported a common PythonActivity class

The class will look for the application's main function using the application's own metadata.
This potentially allows each application to be written without the need to generate and build application-specific Java files.

Hi there! It looks like this PR might be dead, so we're closing it for now. Feel free to re-open it if you'd like to continue, or think about directing your efforts to https://github.com/beeware/briefcase or https://github.com/beeware/toga. Both of these have more active development right now. 😄


FluentSetters required on 6.1.0

This will not work anymore on 6.1.0
.withFluentSetters(false)

It will throw errors on the setOrThrow
.java:269: error: incompatible types: bad return type in method reference
        setOrThrow(this::setFieldId,json::getString,"field_id","java.lang.String");

As it will return void in the setter.
io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo public static <T> void setOrThrow(@NotNull java.util.function.Function<T, ?> pojoSetter,
                                  @NotNull java.util.function.Function<String, T> jsonGetter,
                                  String fieldName,
                                  String expectedFieldType)
Inferred annotations:
Parameter pojoSetter: @org.jetbrains.annotations.NotNull
Parameter jsonGetter: @org.jetbrains.annotations.NotNull
  Gradle: io.github.jklingsporn:vertx-jooq-shared:6.1.0

Not a big deal to change it in my case but maybe remove the option if it's no longer usable. Or add another setOrThrow method.

Thank you very much for the detailed report. I will come up with a fix.

Thank you very much for the detailed report. I will come up with a fix.

I will change the method from taking java.util.function.Function<T, ?> pojoSetter to java.util.function.Consumer<T> pojoSetter as a first argument - even though it is a breaking change. The method shouldn't be used outside the fromJson-method so it should be safe to do this. Also, it will work for both cases (fluentSetter true/false).

I will change the method from taking java.util.function.Function<T, ?> pojoSetter to java.util.function.Consumer<T> pojoSetter as a first argument - even though it is a breaking change. The method shouldn't be used outside the fromJson-method so it should be safe to do this. Also, it will work for both cases (fluentSetter true/false).


Button combination?

Hi and first of all thanks for the great project. I have an old Pixel and my volume down button is broken / constantly triggering. This nice tool allowed me to disable it, however when I use the power button the Screenshot is still triggered, as the button combination is detected.
You mention in #10 that it is not possible to use the power button...but I wonder if it is possible to grab other keys / key combinations in the loop, i.e. just write more cases for the values of $key here. Is that possible?
Cheers,
Arthus

grab other keys / key combinations in the loop, i.e. just write more cases for the values of $key

By default, all volume button presses are grabbed and sent to the script. Specifying keys in the code will do nothing, the script can only ignore or not ignore them.
Android intercepts this gesture before it gets into the application, so it cannot be processed. Do you have root? If so, you can disable the keys in another way.

The grabbing and sending to the script is done by your app then I guess and getting this gesture is probably a different story?
I don't have root unfortunately, but maybe it's time to get it and use the other ways.
Thanks for your quick response and again, thanks for sharing your work!


Cannot find docker image： garystafford/voter-client:rabbitmq-0.4.55

it's a great demo, but when I tried to run "sh ./stack_deploy_local.sh", it got the following issue:
"Error response from daemon: manifest for garystafford/voter-client:rabbitmq-0.4.55 not found"
it seems like that image is not available anymore on docker hub, could you check it?
Regards!

Try change a tag after "garystafford/voter-client:" for some tags from link:
https://hub.docker.com/r/garystafford/voter-client/tags/

COOL,, just changed it to rabbitmq-0.4.63 and it works.
Thanks!


More SEO Improvements

Updated canonical URL that was pointing to qwik.builder.io instead of reduced.to
Also added lang="en" attr to html tag and removed from body to improve SEO
Added missing tags for better SEO
Fixed aria content
Current Web Score with these changes:

Amazing! WOW!


Added scale metric for factual inconsistency detection and fixed heading typos

Fixed heading typos
Added scale metric for factual inconsistency detection (EMNLP 2023)

@saxenarohit can you also add the scale paper to the paper list? https://arxiv.org/abs/2310.13189


MZ EXE loader segments get out of sync with Program Tree fragments

Describe the bug
Program Tree fragments start/end addresses do not reflect memory block adjustments applied by the MZ DOS EXE loader after blocks creation.
To Reproduce
Steps to reproduce the behavior:

Import the attached EXE file with default settings.
Open the file, skip the analysis (the issue still occurs even after analysis).
Bring into view the CODE_2 block from the "Program Trees" pane.
Scroll down to the end, the block should end at 11C3:29DD, but the listing is cut off at 11C3:29CF.

Expected behavior
Program Tree fragments start/end addresses should match the ones from the Memory Map pane and listing should allow viewing the whole block.
Screenshots

Attachments
mz_dos_blocks.zip
Environment (please complete the following information):

OS: Linux Arch x86_64
Java Version: 17.0.10
Ghidra Version: 11.1
Ghidra Origin: locally built at 317a8814883804f0c4f18c64d97411b1c6d6283e

Additional context
You can also try to bring CODE_3 into view, the start offset does not consider the block adjustment - see screenshot.

I'm working on another DOS executable (CATS.EXE in bug report #5970) and it has the same behavior as this. It seems to be related to the CODE sections where the source is defined as empty in the memory map. The CODE segments where source is "mz" seem to work correctly.

@haarlaj I missed the detail about the lack of blocks' source!  From a quick look at the code it happens to blocks that are split and joined together as part of the adjustment process: https://github.com/NationalSecurityAgency/ghidra/blob/b82294b537ddfcdb66ac9ed1c84df11dbe772d41/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/MzLoader.java#L293-L302
So I guess it's those extra blocks whose address bounds are not in sync with the program tree list.

This is correct.  The initial Program Tree is automatically formed when the memory blocks are created.  Any kind of memory block manipulation that happens later will not be automatically reflected in the Program Tree...it requires manual fix up (which we are not currently doing).

It worked, thank you.  By the way, I cannot rename the newly created tree as "Program Tree" even when deleting the incorrectly created old tree.  Is it a bug (and if so, do you want me to file an issue for it)?


V2

The main point of this bump is to add support for using a sampling rate with the current functions. An IncSampled was added in 98dec1329365a4c but no equivalent functions for timer.Send, Time, or Gauge were added.
A problem with adding these as new functions is that IncSampled placed the sampling rate argument at the end of the signature, but some of our existing functions (eg. timer.Send) take a variadic list of timer names, so that would not work.
This PR solves this by moving the sampling rate to the start of the signature and provigind *Sampled variants of all existing functions that take an additional sampling rate float64 as the first argument.
This also includes an expanded test suite, done in the least efficient way possible for now. This is ripe for later improvements.

This PR has been superseded by #8 which does not require us to bump the major version


net/: Fix typos in comments.

Summary
Correct some comments.
Impact
N/A
Testing
N/A

Let us know if you're done pushing to this branch and it's ready for merging...

Let us know if you're done pushing to this branch and it's ready for merging...

Yes,  this one should be ready to go.

Yes,  this one should be ready to go.

Done. Thank you!

Done. Thank you!


[bugfix] memory overwrite error fix in unittest_tizen_capi

This PR resolves the failing getWeight_01 test case in the unittest_tizen_capi.
In the ML API common data structure, the maximum rank in Tizen APIs has changed from 4 to 16 since Tizen 8.0.
However, the NNTrainer getWeight test uses a dimension with a MAXDIM of 4.
This causes an issue of ml_tensors_info_get_tensor_dimension overwriting irrelevant memory since it expects an array length of 16 while passing an array length of 4.
Changes proposed in this PR:

Switch the order of defining variables to avoid memory overwrites.

This fixes:
[ RUN      ] nntrainer_capi_nnmodel.getWeight_01
../test/tizen_capi/unittest_tizen_capi.cpp:960: Failure
Expected equality of these values:
  dim[idx][i]
    Which is: 1
  weight_dim_expected[idx][i]
    Which is: 0
../test/tizen_capi/unittest_tizen_capi.cpp:960: Failure
Expected equality of these values:
  dim[idx][i]
    Which is: 1
  weight_dim_expected[idx][i]
    Which is: 0
../test/tizen_capi/unittest_tizen_capi.cpp:960: Failure
Expected equality of these values:
  dim[idx][i]
    Which is: 62720
  weight_dim_expected[idx][i]
    Which is: 0
../test/tizen_capi/unittest_tizen_capi.cpp:960: Failure
Expected equality of these values:
  dim[idx][i]
    Which is: 10
  weight_dim_expected[idx][i]
    Which is: 0
../test/tizen_capi/unittest_tizen_capi.cpp:960: Failure
Expected equality of these values:
  dim[idx][i]
    Which is: 1
  weight_dim_expected[idx][i]
    Which is: 0
../test/tizen_capi/unittest_tizen_capi.cpp:960: Failure
Expected equality of these values:
  dim[idx][i]
    Which is: 1
  weight_dim_expected[idx][i]
    Which is: 0
../test/tizen_capi/unittest_tizen_capi.cpp:960: Failure
Expected equality of these values:
  dim[idx][i]
    Which is: 1
  weight_dim_expected[idx][i]
    Which is: 0
../test/tizen_capi/unittest_tizen_capi.cpp:960: Failure
Expected equality of these values:
  dim[idx][i]
    Which is: 10
  weight_dim_expected[idx][i]
    Which is: 0
[  FAILED  ] nntrainer_capi_nnmodel.getWeight_01 (10 ms)

Note that this is a temporal fix to avoid memory overwrite.
Self-evaluation:

Build test:	 [X]Passed [ ]Failed [ ]Skipped
Run test:	 [X]Passed [ ]Failed [ ]Skipped

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2358. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.


Adding os update to debian image

Signed-off-by: James Busche<EMAIL_ADDRESS>When the flink-kubernetes-operator is build with the:
RUN apt-get update
RUN apt-get upgrade -y

Then  four current vulnerabilities will be solved.  This will likely help solve many future upcoming OS vulnerabilities as they become known and solved in the near future.

Is this linked to any jira?
Seems like the docker build doesnt run:
Error: buildx bake failed with: error: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c apt-get upgrade -y" did not complete successfully: exit code: 100

Please add [FLINK-27728] to both the PR and the commit message as a prefix that will help us review :)

Yes, thanks @gyfora, I'll do that going forward.  It's interesting, it builds locally, but not on github.  Didn't know how to try a re-run, so added a comment and trying again to see if it maybe was a one-time thing....

I also triggered the github action manually, it seems like a persistent issue.
I cannot reproduce it locally, where it works fine on my M1 macbook

looping in @mbalassi and @morhidi , they know this stuff much better than me

Good catch, @jbusche. I hope the issue is as simple as suggested here:
https://stackoverflow.com/questions/38002543/apt-get-update-returned-a-non-zero-code-100
Could you try
RUN apt-get update && apt-get install -y apt-transport-https

In line 78 please?

Shoot, that didn't seem to help.  Still looks good for my local build.  I can try again tomorrow.  Thanks @mbalassi

Seems I found the missing piece:
https://github.com/mbalassi/flink-kubernetes-operator/runs/6541402938?check_suite_focus=true
https://docs.docker.com/buildx/working-with-buildx/#build-multi-platform-images
We needed this anyway.

After @mbalassi 's fix maybe we dont need  && apt-get install -y apt-transport-https anymore


[RFC] UI for Scorecard component -> Tech Insights stage 2

Status: Open for comments

Proposal
This RFC contains proposed solution for continuation of PRFC Tech Insights, specifically going into stage 2.
The purpose of this PR is to propose overall UI ‘scorecard’ components generated as a result of stage 1 in a linked Tech Insights PRFC.
Initially we want to focus on entity level, but in the future there might be a possibility to approach this in a more general level, so we would create an aggregation of multiple scorecards and group them per owning group or multiple entities.
Idea we have is to display ‘scorecards’ widget in entity Overview page where it would be easy to see number of checks passed for each scorecard.

Just for a general idea purpose, we showed case where there would be multiple scorecards (Production ready and Development ready). Each of the scorecards would contain more details which would be seen when scorecards page is opened
.
In this overview it is possible to expand checks in order to get information about them and also proposed actions that could be taken in order to pass them. If specific check is calculated based on gauge or graph fact calculations, those would also be displayed in this section. Please keep in mind the checks stated in the wireframe are just example of what could be seen, but it can be anything, such as:

Service has been deployed at least once in the past 30 days.
Service has an owner defined.
Test coverage is greater than 50%
React package version is greater than 17.0.0
Service has no critical security vulnerabilities in Snyk

Actions could include various things such as a link to an entity-info file, link to the test coverage calculation, link to vulnerabilities list, link to a package.json file etc.
For initial version we would hold all  checks equally important so we wouldn’t make a difference in a ‘weight’ of a specific check. However, changes in their importance or value may be introduced afterwards.

@andrewthauer In my mind that's an enhancement which could be built on top of the checks. For example, give the grade E if 2 out of 10 checks are satisfied, and give the grade A if all 10 checks are satisfied. The checks themselves are still boolean values though. Does that cover your need?

As discussed in #7193, I still think having a single binary check state (pass/fail) is too limiting.

That's a valid point and I agree with you on this. Having scorecards that handle different kinds of checks is valuable and should be considered as well.
That being said, I'm kinda failing to understand the limitations of these specific mockups when it comes to designing scorecards. Maybe it's because I have too much implicit information about the actual implementation of this first iteration of these components.
If we think about scorecards in general they are variations of the same pattern. They have an identifier, the actual value and how it relates to a 'grading system' (pass/fail, A-F, 4-10, 1-5, w/e) and some extra information. In this case the mocks show 'check name' as the identifier, a type of boolean check - a checkmark - value as, and additional information which may or may not be visible depending on the position of the clickable caret. The debated area is the 'checkmark' component here.

I do worry that using "checks" as the initial use case might make the grading/scoring systems more difficult to add in afterwards versus up front

I'm not sure this will end up being a problem. Without going too much into implementation details, we do get the type of the check as part of the result and can swap the rendering path based on that to display different grading systems. The overall design would still work with different grading types, even if they are not explicitly drawn into visuals in these mocks.
The only problem I'm seeing are cases where for some reason different systems would be used in the same scorecard. Aggregating the scorecard results from those would be impossible without complex comparison table logic. I do believe that is something that we should restrict from being to be done. It is better to create multiple scorecards for those cases.

In addition to what @Xantier elaborated in his comment, and in order to visualize it better, I modified mockups a bit. In a term of 'status' component, I understand checkmark/x sign might be looking a bit too strict, but that would be used only for boolean type of checks. We can display something else (grade, percentage..) all depending on the type.

@Irma12 any update on stage 2?

hey @seshank-db, this is released in tech insights plugin  :)

@Irma12 tech insights README plugin still shows a simple boolean scorecard. Is this view already present?

@freben Yup, it has been worked on in https://github.com/backstage/backstage/pull/8086. The main idea for this RFC was to get initial thoughts and direction in which we would like to proceed FE wise :) I think we managed to gather the thoughts in tech-insights plugin so I think for other suggestions and continuation we could probably open new RFC.
@seshank-db Yes, currently there is only Boolean scorecard view present, which will show values for the @backstage/tech-insights-backend plugin. Since currently tech-insights-backend-module-jsonfc (which is an addition to tech-insights-backend) provides functionality to run checks against a json-rules-engine and return boolean values, we went ahead and created a Boolean Scorecard in order to present this.
However, if you wish to customize or create new type of scorecard and maybe use other values than boolean, you will firstly need to create a  similar structure to tech-insights-backend-module-jsonfc in order to fetch facts and mangle them into a preferred format, and then create customized scorecard you wish to display instead of Boolean. In this file you can see that defaultCheckResultRenderers will display BooleanCheck (boolean scorecard) for 'json-rules-engine' type. In similar way you could proceed with some new/customized scorecards. I hope this makes sense :)