ionic 3

Select all that apply

[ ] Bug
[ ] Enhancement
[ ] Task
[ x] Question
[ ] Other

Description
Is there a sample prj for ionic 3 using WifiWizard2 to get ssid only ?

@blondie63 not that I know of, I don't personally use ionic so I would have no idea where to even start TBH.
My assumption is that is should be pretty simple and straight forward if you follow ionic tutorials for using cordova plugins for ionic, here what i found quickly searching google:
https://forum.ionicframework.com/t/how-to-use-cordova-custom-plugin-in-ionic/123858/3

Here you go.
This requires the network plugin and ionic native package: @ionic-native/network
https://ionicframework.com/docs/native/network/
You can subscribe to start() method and listen for any changes on the WiFi network.
import { Injectable } from '@angular/core';
import { Network } from '@ionic-native/network/ngx';
import { Subscription } from 'rxjs/Subscription';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';

declare var WifiWizard2;

@Injectable()
export class NetworkProvider {

  private dataObserver: any;
  private data: Observable<string>;
  private subscriptions: Subscription;

  // !!! note for android
  // WifiWizard2.requestPermission()
  // https://github.com/tripflex/WifiWizard2/issues

  constructor(private network: Network) {
    this.dataObserver = new Subject();
    this.data = Observable.create(observer => {
        this.dataObserver = observer;
    });
  }

  async ssid() : Promise<any> {
    return await WifiWizard2.getConnectedSSID();
  }

  // This might create issues with iOS
  async bssid() : Promise<any> {
    return await WifiWizard2.getConnectedBSSID();
  }

  start(process_immediately: boolean = true) : Observable<string> {
    this.subscriptions = new Subscription();

    this.subscriptions.add(this.network.onDisconnect().subscribe(() => {
      this.dataObserver.next(null);
    }));

    this.subscriptions.add(this.network.onConnect().subscribe(() => {
      this.process();
    }));

    if (process_immediately) {
      this.process();
    }

    return this.data;
  }

  private process() : void {
    setTimeout(async () => {
      if (this.network.type !== 'wifi') { // Change or remove WiFi condition
        this.dataObserver.next(null);
      } else {
        this.dataObserver.next(await this.ssid());
      }
    }, 3000);
  }

  stop() : void {
    if (this.subscriptions) {
      this.subscriptions.unsubscribe();
      this.subscriptions = null;
    }
  }
}

@blondie63 @tripflex
Not sure if you still need this, but thought I would help out:
All you really need is getConnectedSSID(), but below is how I look at the current SSID, and if it doesn't match what i'm looking to connect to (this.m.wifi_network), then I initiate a connect. If it is already connected to the SSID I want I just resolve. Any questions (or improvements) please let me know!
`        return new Promise( (resolve, reject) => {
        WifiWizard2.getConnectedSSID().then((res) => {

            if (res != this.m.wifi_network) {

                this.connectionStatus.next('connecting');

                WifiWizard2.timeout(1000).then( () => {

                    WifiWizard2.connect(this.m.wifi_network, true).then((res) => {

                        resolve(true);

                    }).catch( (err) => {

                        this.connectionStatus.next('disconnected');

                        reject(new Error('WIFI_NOCONNECT'));

                    });

                });

            } else {
                console.log('already connected');
                resolve(true); return;
            }

        });

    });`

Thanks Simon !

Doing some test i wrote this code:
public getSSID () {     if (typeof WifiWizard2 !== 'undefined') {         // WifiWizard2.requestPermission(); ONLY for Android         console.log('WifiWizard2 loaded');         console.log(WifiWizard2);         WifiWizard2.getConnectedSSID()         .then((e) => {           if (! e.includes('unknown')) {             this.ssid = e;           } else {              this.ssid = this.ssidDef; // set a default value             console.log('Unknown - SSID = ' + e);           }         })         .catch((e) => {           console.log('Catch e: ' + e);         });     } else {         console.warn('WifiWizard2 not loaded');         this.ssid = this.ssidDef;     }   }
This code working fine on Ionic 4 and ios 12.1
But on Ionic 3 and ios 12.1 i've this error:
en0 => (null)
Supported interfaces: (
en0
)
Some idea ?

@blondie63 @tripflex
Not sure if you still need this, but thought I would help out:
All you really need is getConnectedSSID(), but below is how I look at the current SSID, and if it doesn't match what i'm looking to connect to (this.m.wifi_network), then I initiate a connect. If it is already connected to the SSID I want I just resolve. Any questions (or improvements) please let me know!
` return new Promise( (resolve, reject) => {
        WifiWizard2.getConnectedSSID().then((res) => {

            if (res != this.m.wifi_network) {

                this.connectionStatus.next('connecting');

                WifiWizard2.timeout(1000).then( () => {

                    WifiWizard2.connect(this.m.wifi_network, true).then((res) => {

                        resolve(true);

                    }).catch( (err) => {

                        this.connectionStatus.next('disconnected');

                        reject(new Error('WIFI_NOCONNECT'));

                    });

                });

            } else {
                console.log('already connected');
                resolve(true); return;
            }

        });

    });`

have you tested with Ionic 3 ?


Refactoring items

Esteemer:

[ ] get__selected_message function refactor
[ ] Variable names, cleanup stuff, good place to start
[ ] Clean out variables with only one reference
[ ] Variable renaming
[ ] Refactor of functional blocks (some work attempted here, esteemer.ipynb)
[ ] Score function needs help
[ ] Refactor of any possible logic in logic loops
[ ] Variable renaming
[ ] Comments describing function of any of the code in the score func

Thinkpudding:

[ ] Load.py could use guiding comments, var rewrite
[ ] thinkpudding.py needs comments to describe what it is doing
[ ] Candidatesmasher:
[ ] Looks like cleanup is in progress, check open branch on PFP
[ ] Var rename, comments, the usual
[ ]

Bitstomach:
Looks good!

[ ] Var rename is complete
[ ] Comments on what code blocks are doing would help

Once above done, refactoring of repetitive logic could be done?

I have checked on items that are done.

[ ] - [ ] get__selected_message function refactor
[x] Variable names, cleanup stuff, good place to start
[x] Clean out variables with only one reference
[x] Variable renaming
[ ] Refactor of functional blocks (some work attempted here, esteemer.ipynb)
[ ] Score function needs help
[ ] Refactor of any possible logic in logic loops
[x] Variable renaming
[ ] Comments describing function of any of the code in the score func

Thinkpudding:

[x] Load.py could use guiding comments, var rewrite
[x] thinkpudding.py needs comments to describe what it is doing
[x] Candidatesmasher:
[x] Looks like cleanup is in progress, check open branch on PFP
[x] Var rename, comments, the usual
[ ]

Bitstomach:
Looks good!


Creation of update function by a maximum distance.

Summary
Updating the timeout value by the maximum distance you want to read.
Description of the Change
The timeout value is given by the maximum distance value that you want to read.
Benefits
Now you can make the maximum distance setting read directly using the desired distance value, not the time.
Possible Drawbacks
I can't imagine any
Verification Process
I did not try it, sorry :/
Applicable Issues
When you keep a close distance and you do not have to "waste time" trying to measure great distances and the ease of converting distance to time.

Many thanks for your contribution! 👍
Sorry for the delay 😞


Not able to use SikuliSharp in Visual Studio 2017

Downloaded the Java
I do not find ◦sikulixapi.jar file anywhere hence I downloaded sikulixapi-1.1.0
I changed the below if condition to get jar file folder added to Sikuli_Home
if (jarFilenames.Contains("sikulixapi-1.1.0.jar") && jarFilenames.Contains("jython-standalone-2.7.1.jar"))
but still getting below issue:
'[error] RunTimeINIT:  *** terminating: libs to export not found on above classpath: /sikulixlibs/windows/libs64.

Could any one please help me with this issue.

There's a link to download sikulixapi.jar on the README: https://github.com/christianrondeau/SikuliSharp
You cannot mix the jar files like this. Let me know if you could make it work by getting the right jar files available in the SIKULI_HOME folder (I suggest using the correct casing too)
Hope that helps!

Hi! siddusri1990, did you manage to execute?


enhance productcatalogservice tracing support: add attributes to existing spans

fix #50
I'm trying to fix

[ ] Services extend automatic instrumentation.

[ ]  New attributes/events attached to existing spans.

Changes
Adds attributes to existing span in GetProduct handler.

The screen shot is like following

I'd like to see the ListProducts and SearchProducts handlers with additional attributes as well.  We can add the total products returned to both, and the search query to the latter.

ping @puckpuck @julianocosta89 for review. I've added more attributes and events. Please help to review this, thanks :)

@fatsheep9146 please update the issue to reflect your changes.
Merging now 🦑

Contributor

@cartersocha I saw that you closed the issue #50. I think the issue is not ready to be closed, there are still several features needed to be resolved.

@fatsheep9146 please update the issue to reflect your changes.
Merging now 🦑

@cartersocha I saw that you closed the issue https://github.com/open-telemetry/opentelemetry-demo-webstore/issues/50. I think the issue is not ready to be closed, there are still several features needed to be resolved.

I think the merge automatically closed the issue. I just re-opened it. I agree it’s not done yet! 🧜🏻♂


CLI, use a fixed version

opam has a  --cli option to have a stable api that we should use (there are already differences between 2.0 and 2.1 and we have warnings about this currently).

Fixed in #92


pythonPackages.python-language-server: 0.28.3 -> 0.29.1

Motivation for this change
This fixes a failing test due to a pylint update.
Things done
Also requires a jedi update, and flake8 as a dependency.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

Jedi was merged independently of this. So we can merge this one as well to fix python language server.


Invalid value passed to tagset for find_chunk_with_delta slow path

@TomGillen Can you correct in me assuming:
https://github.com/TomGillen/legion/blob/0f67adc237af35799df173f31a2c238b3d8010a2/src/storage.rs#L443
This assertion is hit when moving chunks with tags.
I believe its because this line is incorrect:
https://github.com/TomGillen/legion/blob/0f67adc237af35799df173f31a2c238b3d8010a2/src/world.rs#L337
It should be
let mut tags = source_archetype.tags().tag_set(source_location.set());

@TomGillen Can you confirm this is correct? If so, I will commit it to my CommandBuffer PR

Yeah, it should be using .set(). There have been a few bugs caused by mixing up set and chunk indices. It might be worth using something more explict than usize for those.


[WIP] More unit tests

Work in progress.
Adding tests for http.Client.

Coverage increased (+5.3%) to 30.682% when pulling 8dd2d86e04750c83f1510b259700cbe3beae4f22 on frdwrd:master into 2007b22ad6927fa8b91ef083ad4bdd71c28a9c55 on Storj:master.

Coverage increased (+6.06%) to 31.439% when pulling 253e86f23d9633c6f6a78c146250a0db0bc298c3 on frdwrd:master into 2007b22ad6927fa8b91ef083ad4bdd71c28a9c55 on Storj:master.

Coverage increased (+6.06%) to 31.439% when pulling 253e86f23d9633c6f6a78c146250a0db0bc298c3 on frdwrd:master into 2007b22ad6927fa8b91ef083ad4bdd71c28a9c55 on Storj:master.

Coverage increased (+6.06%) to 31.439% when pulling 253e86f23d9633c6f6a78c146250a0db0bc298c3 on frdwrd:master into 2007b22ad6927fa8b91ef083ad4bdd71c28a9c55 on Storj:master.


Don't log Blockly events when converting from XML to DOM

Blockly logs a BlockCreate event for Top level blocks only (on start, events, forever, etc) when it's converting from XML to DOM.
I'm not 100% sure why, I'll ask when I get a chance, but I'm sure they have a good reason for it.
There's no reason for us to have Blockly events turned on as we are converting from xml to dom. ie: when we're loading a project (whether it's a previous script or a shared script), and when we're converting from our decompiled xml to blocks (ie: converting from TS to Blocks).
I've turned off events here when we're doing that conversion.

this is better https://github.com/Microsoft/pxt/pull/5015#pullrequestreview-175886538


Control Plane HA not clear

Hi and thank you for putting in the work so that we can play with k8s locally.
One thing i don't quite understand or it's a bit unclear , regarding control plane ha ... can't you just use a service of type LoadBalancer instead of having all that configuration ? What would be the issue ?
For example on a default microk8s install there's a service like
Name:              kubernetes
Namespace:         default
Labels:            component=apiserver
                   provider=kubernetes
Annotations:       <none>
Selector:          <none>
Type:              ClusterIP
IP Family Policy:  SingleStack
IP Families:       IPv4
IP:                <IP_ADDRESS>
IPs:               <IP_ADDRESS>
Port:              https  443/TCP
TargetPort:        16443/TCP
Endpoints:         <IP_ADDRESS>:16443
Session Affinity:  None
Events:            <none>

Say i have 3 nodes (so a HA setup) , could i just set the service to be type LoadBalancer and achieve the same thing as you would with kube-vip control plane ha ?
Thank you!

The key point you mssing I guess is that k8s service is done by kube-proxy, and kube-proxy is a DaemonSet. A DaemonSet pod can only be started when kubelet connected to the kube-apiserver. That the dependencies are as below:
Service -> kube-proxy -> kubelet -> HA

So the k8s control-plane HA can't be gained by k8s Service itself, as kubelet depends on that.  Otherwise, that'll be a loop dependency. That's why kube-vip( static pod) is needed.

Thanks @linsite , i didn't realize that and i'm keep re-reading your reply and still don't understand how kube-vip( static pod) control-plane HA is any better than having the service exposed as type LoadBalancer .
Possible that my confusing is coming from the fact that microk8s doesn't have separate worker node vs control-plane node , in which case the kubernetes service will be there either way if i have a working k8s cluster , no dependency loop
Am i mistaken ?
Sorry if i'm just rumbling nonsense here , i just want to understand better what's going on

Yeah, kube-vip is designed for a production k8s cluster, not for microk8s, in which case you have only 1 k8s node(control-plane), HA won't be needed at all, right?

Yep that's correct , but as i noted in the first post of the thread/issue you can have multiple nodes (so a HA setup) but you still don't have separate worker nodes vs control-plane nodes
https://microk8s.io/docs/high-availability
So my question i guess is , would you need kube-vip to provide control-plane HA in this case , or you can just use the default kubernetes service exposed as a LoadBalancer type. :)
Thank you!

I think the key point you are confusing is that a LoadBalancer type Service in k8s need a external cloud provider which is implemented by kube-vip.  Here is the document quoted from kubernetes.io

LoadBalancer: Exposes the Service externally using a cloud provider's load balancer. NodePort and ClusterIP Services, to which the external load balancer routes, are automatically created.

This is stale at this point.


Do not fail on basic auth in login.

This PR is structured as three commits:

The first commit pulls in a new version of genuinetools/reg in order to pick up some recent changes to basic auth detection
The second commit uses the changes pulled in from the first to detect registries that require basic auth (e.g. ECR) s.t. img login does not fail on these registries
The third commit adds a test for logging in to registries that require basic auth.

In support of the test in the third commit I added a new flag to the login command to permit insecure registries (e.g. registries with untrusted SSL certs). I'm not 100% certain that this is a good addition, and I'm happy to trim that commit out or explore other testing approaches if that seems best.
I've also tested these changes manually with an ECR repository and verified that pushes and pulls operate as expected. This addresses part of #128.

Oh dope this is awesome! I would say maybe let's hold off on the third commit for now, but everything else looks awesome, thanks so much! I just don't know if I want to even allow the option of insecure registries :)

I just don't know if I want to even allow the option of insecure registries :)

SGTM :+1:

thanks!!!

Awesome work @pgavlin


Infinite-Scroll: doClaimSearch() sometimes returns duplicates, causing scrolling problems.

When the requested page and returned results don't match, we'll get the Encountered two children with the same key error. #4403 tried to solve it by making sure these 2 variables are "in sync", but it seems like repeated identical queries can result in the same error as well.  I'm not familiar with the redux stuff yet to dig further.
Here's a video to explains the issue:
https://youtu.be/K4iMKJu_OtM
(usually, it takes about a minute of clicking to reproduce the issue.  I got lucky while recording the video)

Pretty sure this happens when claim search results change due to new trending / new content between the original search and when you scroll down. The solution would be to ignore any keys already loaded and don't duplicate the content.

Yeah, I wondered if that is the solution as well.  But given that it happens without scrolling or when scrolling has long stopped (as shown in the video), I wonder if it's a mistake in the redux side.
It also happened on obscure tag searches (limited & same results for several days), so it can't be due to actual new entries in between those searches.

Root-cause
Currently, the code calls doClaimSearch() for the same query if the system clock has incremented to the next minute.  This seems intended from the following code:
// Don't use the query from createNormalizedClaimSearchKey for the effect since that doesn't include page & release_time
const optionsStringForEffect = JSON.stringify(options);

Over at doClaimSearch(), the append is set to true if we have scrolled, and ...
append: options.page && options.page !== 1,

... duplicate check hasn't been implemented.
  if (append) {
    // todo: check for duplicate urls when concatenating?
    claimSearchByQuery[query] = claimSearchByQuery[query] && claimSearchByQuery[query].length ? claimSearchByQuery[query].concat(urls) : urls;
  } else {

Possible fixes

The client side should exclude release_time from the consideration to call doClaimSearch(), as it causes a redundant call.
However, given the code comment above, it seems like we need to include release_time.  What scenario does it cover?
The redux side should exclude duplicates before appending.
This will solve all future issues with duplication, but I think it will mask mistakes of the client.
Also, constantly scanning the list (could be huge?) for duplicates will waste CPU cycles.

I'm leaning towards solution 1.  @seanyesmunt, your thoughts?

I think I would prefer fix #1 mostly because of this comment

I think it will mask mistakes of the client

Generally, I have started to prefer putting more logic inside of components. I think that makes the data flow easier to track. It does lead to component bloat though, but that is out of scope for this issue.

tl;dr
After experimenting, I think neither solution will fix it completely;  might need more elaborate stuff at redux.  Live with the minor glitches for now, I guess.
Details
Solution 1 will just mask the issue as well
I think it's actually due to the hack that prevents showing videos from the future:
  // Hack for at least the New page until https://github.com/lbryio/lbry-sdk/issues/2591 is fixed
  options.release_time = `<${Math.floor(
    moment()
      .startOf('minute')
      .unix()
  )}`;

Say that you are currently showing 3 pages (e.g. 20, 20, 20) ... and after 1 minute or more, the next page query is essentially a different one due to the new release_time, but we continue to append the 4th page (e.g. 20, 20, 20, 20).  I'm guessing there may be new items now in the upper pages for this new search, so the list got pushed down and we see the duplicates in the final 20 that we take in.
So, I tried "locking" the release_time when getting new pages.  It now takes longer for the issue to happen, but it will still happen.  My guess is that new confirmations happened that now satisfies the release_time, so these new items are being injected in the next search result, and we are back to the same problem.
Next, I tried subtracting a few minutes to the locked time -- a 15 minute buffer gave me the longest duration without issues, but eventually the error still happened.
Solution 2 might not be perfect either
Simply removing the duplicates in the new page would result in a partially-filled page;  the current code takes partial pages as "no more results", so scrolling would end.  Seems like there's no quick-fix unless we add elaborate code to the current "append-only" method.


Team/add coveralls

Looks like this worked. :+1:
You may want to squash commits before merging.

oh @dsjen I'm afraid if you look at the logs, that this did not work :( So this should remain open. Or I can just close it altogether.

Oh, that's too bad... :(

@benpatterson Can we close this PR now, since coveralls made it in through a different PR?

Yes! Sorry I thought I closed it. Closing now!


Feature: Make it a little more friendly with screen readers

Hi, I use VuPlayer since 2011. I am still usin the legacy version because it is awesome.
And now I did a Github account only for open an issue here because I want to use the new version in a confortable way.
I really don't know how to use this platform properly, so I am sorry if I do something bad.
So, I am a screen reader user, and I want to navigate between the lists, TOOLBARS and trees of the program with my screen reader properly, LIKE IN the 2.49 version.
If you could add this feature I definitely will update to this new version, which looks great.
I don't know anything about programming, but if you need my help, count me in.
Thank you so much!

Thanks for the feedback.
I do need to review the keyboard navigation for the whole application.
Definitely, it should be possible to navigate around the application, as with the legacy versions, so hopefully this will be resolved for the next version.
Best regards,
James

please add VST

Version 4.10 now contains some fixes for keyboard and screen reader usage. Specifically, tabbing between the list and tree views should now work properly. It is not possible to tab between to toolbar controls, but there are shortcut keys for all of these functions. Thanks for pointing out the problems, as it prompted me to do some testing with Windows Narrator, which highlighted many issues with the application!!


fix: use GITGUARDIAN_DOMAINS in api_to_dashboard

As discussed earlier, this method is not often used but I think it should have the same logic as dashboard_to_api_url().

Codecov Report

Merging #535 (5d0c29f) into main (2aebdb8) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #535      +/-   ##
==========================================
- Coverage   93.83%   93.70%   -0.13%
==========================================
  Files          85       85
  Lines        3890     3890
==========================================
- Hits         3650     3645       -5
- Misses        240      245       +5

Flag
Coverage Δ

unittests
93.70% <100.00%> (-0.13%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

ggshield/core/utils.py
97.68% <100.00%> (ø)

... and 1 file with indirect coverage changes


feat(queryClient): respect cancelRefetch flag

for refetchQueries, as well as for invalidateQueries

@TkDodo Hey, until now we used whats written in this page for cancellation, the requests were cancelled without providing cancelRefetch flags.
Will this behavior change in some way?

Just to be on the same page: This PR didn't change anything regarding the default behaviour. cancelRefetch was previously accepted as an option, but it was never passed to the actual fetch function - so it was always false per default.
Now, you have the option of setting it to true if you want. If things worked for your use-cases before, they should certainly work now, too :)


endeitru.txt and en-de-it-ru.txt: Trained or Not?

Hi,
Thanks for open source the codes for Attract-Repel! I have one question for the code.
In the experiment_parameters.cfg file,  you specified the distributional vectors  word-vectors/endeitru.txt. I assume that this is the set of row word vectors (from GloVe or other sources) that are NOT trained by Attract-Repel yet. It seems that this file endeitru.txt is not provided in this code release.
You did provide another file en-de-it-ru.txt.tar.gz here https://drive.google.com/file/d/0B_pyA_IW4g-jZzBIZXpYS1RseFk/view  However, after I tried it out, I think perhaps this is the set of the TRAINED vector with Attract-Repel, because the results seem super good even without running the Attract-Repel iterations. I wonder if you would verify that?
Thanks in advance!
Best
Tianlin

@liutianlin0121 Were you able to reproduce the results using pre-trained Glove, as the endeitru.txt file specified is not available?

@liutianlin0121 Hi, I did not try it.


Correct tuple relations in --strictOptionalProperties mode

Fixes #44567.

Yeah, definitely simpler to just exclude tuples with optional elements--and rest elements for that matter. Latest commit reverts the bigger change and just makes isTypicalNondistributiveConditional a little more restrictive.


Remove obsolete modules

@blowekamp

Which module(s) do you suggest we remove ?
Should we rename the extension or even create a new one with only the relevant module ?
Should we port the existing legacy Editor effect to the new Segmentations module ? @lassoan is there anything we should consider adding to the SlicerSegmentEditorExtraEffects extension ?
Should we remove LabelObjectStatistics and/or improve SegmentStatistics available in Slicer ?

CLI modules

[x] BinShrink: CLI module to reduce the size of an image by an integer factor in each dimension and averages by the same size
[ ] IASEMImport: CLI module to import a large volume and reduce is size by streaming.
[x] IASEMImportSeries: CLI module to import a directory of tiffs from IASEM, applying a slice-to-slice transfrom, multi-resolution, and region of interest extraction.
[ ] NucleusClosing: CLI module that produces a outter contour and inner contour for nucleus closing
[x] SpacingAwareCurvatureDiffusion: CLI module top performs anisotropic diffusion on an image using a modified curvature diffusion equation (MCDE). More details here

Legacy Editor effects

[x] BinaryWatershed: Legacy Editor effect to split selected label into separate objects based at minimum size the objects.
[x] DoubleThresholdEffect: Legacy Editor effect
[x] WatershedFromMarker: Legacy Editor effect to apply the watersheds from markers segmentation from multiple initial labels.

Scripted  modules

[ ] LabelObjectStatistics: Scripted module with implementation copied from legacy Label Statistic module.

To Keep:

IASEMImport: This is a fairly general large image import CLI, which uses ITK IO streaming to read an ROI from a file and intelligently perform "shrinking" by skilling whole z slices not needed.
NucleusClosing: This was a very specific task for refining segmentations, however this CLI uniquely used SimpleITK in C++, so keeping it around as an example would be a good thing, unless there is a better place for this type of example.
LabelObjectStatistics: This uses ITK statistics filters which I have worked on. If I recall correctly, there were some performance issues with the internal Slicer statistics modules, and the ITK shape label statics had additional import statistics needed for the IASEM problem.

To Remove

BinShrink: This filter is not easily available in the SimpleFilters module.
IASEMImportSeries: This is very specific to the IASEM work flow the lab was using, not generally reusable.
SpacingAwareCurvatureDiffusion: "This a modified derivation of the Curvature Anisotropic Diffusion module which scaled the time step by the minimum spacing, so that the this filter will automatically choose an optimal time step by default." - This CLI just fixed the default time-step for images with very small space. It's a small change that is not worth the maintain ace effort to keep around
Legacy Editor Effects: I believe the WatershedFromMarker did get moved into the old editor, but looks like it was not moved to the new one.


Support composite buffer creation without array alloc and copy

Motivation:
Unpooled.unmodifiableBuffer() is currently used to efficiently write arrays of ByteBufs via FixedCompositeByteBuf, but involves an allocation and content-copy of the provided ByteBuf array which in many (most?) cases shouldn't be necessary.
Modifications:
Modify the internal FixedCompositeByteBuf class to support wrapping the provided ByteBuf array directly. Control this behaviour with a constructor flag and expose the "unsafe" version via a new
Unpooled.wrappedUnmodifiableBuffer(ByteBuf...) method.
Result:
Less garbage on IO paths. I would guess pretty much all existing usage of unmodifiableBuffer() could use the copy-free version but assume it's not safe to change its default behaviour.

Added commit with small optimization to copy case, to avoid reflection in Arrays.copyOf().
By the way I'm not sure wrappedUnmodifiableBuffer() is a great name for the new method, maybe there's a more appropriate one :)

Thanks @normanmaurer. If this is accepted, would it be reasonable to consider deprecating the existing method to discourage use in favour of the new one? In particular anywhere the varargs are used can definitely use the new one.
If there were unusual cases where an explicit array was repurposed before the created composite buffer was finished with, it could just be copied before wrapping. The new behaviour is more analogous to things like  Arrays.asList().

@njhill yeah I think that sounds good... Are you happy to open another PR after this one is merged ?

@normanmaurer certainly. Any suggestions for better name of the new method?

@carl-mastrangelo @ejona86 @mosesn @bryce-anderson naming ideas ?

@carl-mastrangelo PTAL again as you had the last comment :)

Thanks a lot @njhill ... I squashed the commits and cherry-picked as f164759ea


target input type text should set the value attribute

Hello,
when targeting an input type text, intercooler is injecting the response into the input tag as text child element instead of setting the value attribute:

now (bad behaviour)
<input type="text>SERVER Response (does not make sense)</input>

wanted
<input type="text value="SERVER Response" />

That's a good idea, I will look at it for the next release.  In the meantime you can use 'ic-replace-target' and replace the entire input w/ the desired HTML.

+1 for this!

+1

+1

Alright folks, in intercooler 2.0 (renamed kutty) you would just replace the whole input with a outerHTML response

@chg20 that's cool. Isn't new intercooler named htmx?

yep, kutty was the original name, but it meant too many different things in other langauges.
so it's htmx now:
htps://htmx.org

Great, htmx is a cool name. Long live to htmx


Some InventoryArchetypes aren't fully functional

Well i been attempting to open Anvil, EnchantingTable, Workbench but EnderChest is the only one working that rest just returns no items even when i try to use click event my self

Do you mean the output-slot of those inventories?
Custom Inventories currently have no additional logic behind them, so the output-slot will never actually change on its own. (They basicly are chests that look like an Anvil etc.)
The Client however does not know this and displays an item in there regardless.
I am working on allowing to replicate vanilla behaviour of those containers in:
https://github.com/SpongePowered/SpongeCommon/pull/1221

Yah well i worked on it and now my plugin works here https://github.com/poqdavid/VirtualTool/commit/304b49ccffd89fa84fe3ff6e3905464dda4975d2


Spoon only running some tests

Hi,
I'm working on a small app to learn android development. I wanted to do it the right way and have tests for every user story etc.
I'm now moving away from Travis as I could not get the emulators to work reliably (and also 20 minutes build time is not that attractive).
The plan now is to run the build locally on up to 4 emulators. For testing I just wanted to run all tests on one (to get familiar etc.).
There is an interesting problem now:
When I run gradle cC all 25 Tests are executed. When I run gradle spoon I only get test reports for 14 of the tests.
You can find the project here.
The tests that are always executed are NavigationUITest and GraphServiceTest. All other test classes are ignored by spoon.
I assume that there is a very stupid beginner mistake that I'm making here, but I cannot find it -.-
I tested the spoon gradle plugin version 1.0.2, 1.0.3 and 1.0.5 all to the same effect (except that 1.0.5 also suffered from the logcat problem).
Any hints on the right part of the documentation are highly appreciated.

Sounds like a bug. But we need more details. Please set debug flag to true
spoon {
  debug = true
}

and post the execution log here. You should see what tests are run in that log. It will help to understand whether your tests are not run at all or there is a problem with reports collection.

Okay did that.
2016-01-21 22:33:40 [SR.runTests] Executing instrumentation suite on 1 device(s).
2016-01-21 22:33:41 [SR.runTests] Application: org.linesofcode.alltrack from /home/jjurczok/projects/alltrack/app/build/outputs/apk/app-debug.apk
2016-01-21 22:33:41 [SR.runTests] Instrumentation: org.linesofcode.alltrack.test from /home/jjurczok/projects/alltrack/app/build/outputs/apk/app-debug-androidTest-unaligned.apk
2016-01-21 22:33:41 [SR.runTests] [emulator-5554] Starting execution.
2016-01-21 22:33:41 [SDR.run] InstrumentationInfo: [com.squareup.spoon.SpoonInstrumentationInfo@9499643[applicationPackage=org.linesofcode.alltrack,instrumentationPackage=org.linesofcode.alltrack.test,testRunnerClass=android.support.test.runner.AndroidJUnitRunner]]
2016-01-21 22:33:41 [SDR.run] Got realDevice for [emulator-5554]
2016-01-21 22:33:41 [SDR.run] [emulator-5554] setDeviceDetails com.squareup.spoon.DeviceDetails@45f95ac0[model=Android SDK built for x86,manufacturer=unknown,version=6.0,apiLevel=23,language=<null>,region=<null>,isEmulator=true,avdName=Nexus_5_API_23]
10:33:41 D/app-debug.apk: Uploading app-debug.apk onto device 'emulator-5554'
10:33:41 D/Device: Uploading file onto device 'emulator-5554'
10:33:44 D/app-debug-androidTest-unaligned.apk: Uploading app-debug-androidTest-unaligned.apk onto device 'emulator-5554'
10:33:44 D/Device: Uploading file onto device 'emulator-5554'
2016-01-21 22:33:46 [SDR.run] About to actually run tests for [emulator-5554]
10:33:46 I/RemoteAndroidTest: Running am instrument -w -r  org.linesofcode.alltrack.test/android.support.test.runner.AndroidJUnitRunner on Nexus_5_API_23 [emulator-5554]
2016-01-21 22:33:47 [STRL.testRunStarted] testCount=25 runName=org.linesofcode.alltrack.test
2016-01-21 22:33:47 [STRL.testStarted] test=org.linesofcode.alltrack.GraphServiceTest#testCreateGraphShouldPersistGraph
2016-01-21 22:33:47 [STRL.testEnded] test=org.linesofcode.alltrack.GraphServiceTest#testCreateGraphShouldPersistGraph
2016-01-21 22:33:47 [STRL.testStarted] test=org.linesofcode.alltrack.GraphServiceTest#testDeleteGraphShouldDeleteDataPoints
2016-01-21 22:33:47 [STRL.testEnded] test=org.linesofcode.alltrack.GraphServiceTest#testDeleteGraphShouldDeleteDataPoints
2016-01-21 22:33:47 [STRL.testStarted] test=org.linesofcode.alltrack.GraphServiceTest#testDeleteGraphShouldWork
2016-01-21 22:33:47 [STRL.testEnded] test=org.linesofcode.alltrack.GraphServiceTest#testDeleteGraphShouldWork
2016-01-21 22:33:47 [STRL.testStarted] test=org.linesofcode.alltrack.GraphServiceTest#testGetAllShouldHaveDatapointsOrdererdByTime
2016-01-21 22:33:47 [STRL.testEnded] test=org.linesofcode.alltrack.GraphServiceTest#testGetAllShouldHaveDatapointsOrdererdByTime
2016-01-21 22:33:47 [STRL.testStarted] test=org.linesofcode.alltrack.GraphServiceTest#testSaveShouldCreateNewDatapoints
2016-01-21 22:33:47 [STRL.testEnded] test=org.linesofcode.alltrack.GraphServiceTest#testSaveShouldCreateNewDatapoints
2016-01-21 22:33:47 [STRL.testStarted] test=org.linesofcode.alltrack.GraphServiceTest#testSaveShouldDeleteDataPoints
2016-01-21 22:33:47 [STRL.testEnded] test=org.linesofcode.alltrack.GraphServiceTest#testSaveShouldDeleteDataPoints
2016-01-21 22:33:47 [STRL.testStarted] test=org.linesofcode.alltrack.GraphServiceTest#testAndroidTestCaseSetupProperly
2016-01-21 22:33:47 [STRL.testEnded] test=org.linesofcode.alltrack.GraphServiceTest#testAndroidTestCaseSetupProperly
2016-01-21 22:33:47 [STRL.testStarted] test=org.linesofcode.alltrack.NavigationUITest#navigationViewShouldBeClosable
2016-01-21 22:33:49 [STRL.testEnded] test=org.linesofcode.alltrack.NavigationUITest#navigationViewShouldBeClosable
2016-01-21 22:33:49 [STRL.testStarted] test=org.linesofcode.alltrack.NavigationUITest#clickOnDataSeriesShouldCloseNavigation
2016-01-21 22:33:50 [STRL.testEnded] test=org.linesofcode.alltrack.NavigationUITest#clickOnDataSeriesShouldCloseNavigation
2016-01-21 22:33:50 [STRL.testStarted] test=org.linesofcode.alltrack.NavigationUITest#openNavFromSettingsShouldHaveSettingsChecked
2016-01-21 22:33:53 [STRL.testEnded] test=org.linesofcode.alltrack.NavigationUITest#openNavFromSettingsShouldHaveSettingsChecked
2016-01-21 22:33:53 [STRL.testStarted] test=org.linesofcode.alltrack.NavigationUITest#navigatingBackToGraphActivityShouldHaveNavigationClosed
2016-01-21 22:33:55 [STRL.testEnded] test=org.linesofcode.alltrack.NavigationUITest#navigatingBackToGraphActivityShouldHaveNavigationClosed
2016-01-21 22:33:55 [STRL.testStarted] test=org.linesofcode.alltrack.NavigationUITest#clickOnSettingsShouldSwitchActivity
2016-01-21 22:33:57 [STRL.testEnded] test=org.linesofcode.alltrack.NavigationUITest#clickOnSettingsShouldSwitchActivity
2016-01-21 22:33:57 [STRL.testStarted] test=org.linesofcode.alltrack.NavigationUITest#navigationViewShouldBeRendered
2016-01-21 22:33:58 [STRL.testEnded] test=org.linesofcode.alltrack.NavigationUITest#navigationViewShouldBeRendered
2016-01-21 22:33:58 [STRL.testStarted] test=org.linesofcode.alltrack.NavigationUITest#openNavFromMainShouldHaveMainChecked
2016-01-21 22:33:59 [STRL.testEnded] test=org.linesofcode.alltrack.NavigationUITest#openNavFromMainShouldHaveMainChecked
10:33:59 I/InstrumentationResultParser: test run failed: 'Test run failed to complete. Expected 25 tests, received 14'
2016-01-21 22:33:59 [STRL.testRunFailed] errorMessage=Test run failed to complete. Expected 25 tests, received 14
2016-01-21 22:33:59 [STRL.testRunEnded] elapsedTime=12206
10:33:59 I/XmlResultReporter: XML test result file generated at /home/jjurczok/projects/alltrack/app/build/spoon/debug/junit-reports/emulator-5554.xml. Total tests 14, passed 14,
2016-01-21 22:33:59 [SDR.run] About to grab screenshots and prepare output for [emulator-5554]
2016-01-21 22:33:59 [SDR.pullScreenshotsFromDevice] Internal path is /data/data/org.linesofcode.alltrack/app_spoon-screenshots
2016-01-21 22:33:59 [SDR.pullScreenshotsFromDevice] External path is /sdcard/app_spoon-screenshots
2016-01-21 22:33:59 [SDR.pullScreenshotsFromDevice] Pulling screenshots from external dir on [emulator-5554]
2016-01-21 22:33:59 [SDR.pullScreenshotsFromDevice] Pulling screenshots from internal dir on [emulator-5554]
2016-01-21 22:34:00 [SDR.pullScreenshotsFromDevice] Done pulling screenshots from [emulator-5554]
2016-01-21 22:34:00 [SDR.run] Moving screenshots to the image folder on [emulator-5554]
2016-01-21 22:34:00 [SDR.run] Generating animated gifs for [emulator-5554]
2016-01-21 22:34:00 [SDR.run] Done running for [emulator-5554]
2016-01-21 22:34:00 [SR.runTests] [emulator-5554] Execution done.

Looks like it is expecting the right amount of tests but is not executing them for some reason. Can you interpret that?

Okay strange. I checked the test classes for a pattern. The only thing that is different is that the classes that are not executed contain a custom @ClassRule to disable animations. As soon as I remove that classrule the tests are executed.
So is this a mistake on my part for messing up the tests or is this an actual bug?

Okay I could confirm the theory. Changing the gradle build to also apply the animation permission for spoon tasks fixed the problem. Now I'm running into OutOfMemoryExceptions, but that's a different thing then. Thank you for your input :)


Cargo has different version commit hashes per platform

Problem
In 1.60.0 I came across an issue where cargo version showed an unexpected difference on linux platforms in comparison to macos and windows.
Running on linux, I get:
cargo version
cargo 1.60.0 (d1fd9fe 2022-03-01)

Where as running on macos, i get:
cargo version
cargo 1.60.0 (d1fd9fe2c 2022-03-01)

Note the slight difference in the commit hash (d1fd9fe vs d1fd9fe2c). Linux is shorter than the other platforms by two characters. It would be ideal if these matched on all platforms, particularly since the full commit of each binary was not different.
Steps

Get a windows or macos host
Get a linux host or container
Install Cargo 1.60.0 using rustup
run cargo version in each environment

Possible Solution(s)
No response
Notes
No response
Version
cargo 1.60.0 (d1fd9fe 2022-03-01)
release: 1.60.0
commit-hash: d1fd9fe2c40a1a56af9132b5c92ab963ac7ae422
commit-date: 2022-03-01
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1m)
os: CentOS 8.0.0 [64-bit]

This could be an issue with #10323 potentially. If I had to guess it would be this part
let output = match Command::new("git")
    .arg("log")
    .arg("-1")
    .arg("--date=short")
    .arg("--format=%H %h %cd")
    .output()
{
    Ok(output) if output.status.success() => output,
    _ => return,
};

I don't have a spare machine to check the output on linux ATM but git log -1 --date=short --format="%H %h %cd" on mac it gives ede78751d2195a6bb0df9b9fdf3f3ced725c07ac ede78751d 2022-04-08 on the master branch.

IIRC, it might come from here?

https://github.com/rust-lang/rust/blob/e4f5b15b8832334eca2c0bd3929eb3969f1d166d/src/bootstrap/tool.rs#L270-L272
https://github.com/rust-lang/rust/blob/e4f5b15b8832334eca2c0bd3929eb3969f1d166d/src/bootstrap/channel.rs#L58-L60

        let short_ver_hash = output(
            Command::new("git").current_dir(dir).arg("rev-parse").arg("--short=9").arg("HEAD"),
        );

I've tested on my Linux and macOS with Git v2.35.1. Both return a 9-chars long sha with git log -1 --date=short --format="%H %h %cd".

I'm not sure if cargo uses CFG_SHORT_COMMIT_HASH anymore. It looks like it was changed to CARGO_COMMIT_SHORT_HASH in #10323 if I'm reading it correctly.

I can't say why git decides to use a different length on different platforms.
Can you say more about why this is an issue?  I wouldn't expect the version output to be parsable, this is really for human consumption. If you want a parsable output, I suggest to use the verbose flag which includes the full length hash.

You can specify a length with --abbrev=<length> if we do want to make the lengths the same. It would change the command to git log -1 --date=short --format="%H %h %cd" --abbrev=9.

Can you say more about why this is an issue? I wouldn't expect the version output to be parsable, this is really for human consumption. If you want a parsable output, I suggest to use the verbose flag which includes the full length hash.

In rules_rust cargo --version is used to produce a unique identifier for the release of Cargo that's then used to do some work-skipping in the future if the version of Cargo hasn't changed from when something was originally generated. This issue breaks the ability to do that as linux hosts will now always think the version of Cargo has changed. Using --verbose is not desirable because it contains additional information that would not be consistent cross-platform and would cause this problem as well.

This appears to be a change from the previous stable release. I'll make a PR to set the length to 9 as @Muscraft described.
On Linux I see:
$ cargo +1.59 --version
cargo 1.59.0 (49d8809dc 2022-02-10)
$ cargo +stable --version
cargo 1.60.0 (d1fd9fe 2022-03-01)


couldn't start client python tools

#bug

solved this issue by removing python extension then removing the folder(ms-python.python-2019.11.50794) in path
/home/joseph/.vscode/extensions


feat: add golang.org/x/tools/cmd/stringer

golang.org/x/tools/cmd/stringer: Stringer is a tool to automate the creation of methods that satisfy the fmt.Stringer interface
$ aqua g -i golang.org/x/tools/cmd/stringer

Thank you for your contribution!

$ aqua g golang/tools/stringer
- name<EMAIL_ADDRESS>
version is invalid.
We have to use version_filter and version_source.

Moved the package directory according to the package name. 5ba3817e1af6aa480caf2b67e0b7b4698930e0cc

https://github.com/aquaproj/aqua-registry/pull/5972#issuecomment-1236103374
Fixed. 5ba3817e1af6aa480caf2b67e0b7b4698930e0cc
$ aqua g
- name<EMAIL_ADDRESS>

To update this package by Renovate, we have to update aqua-renovate-config, because this requires github-tags datasource.
https://github.com/aquaproj/aqua-renovate-config

Sorry but this style guide is wrong.
I'll update.

Package name of go_install should be equivalent to Go's Module path
https://aquaproj.github.io/docs/reference/registry-style-guide#package-name-of-go_install-should-be-equivalent-to-gos-module-path

https://github.com/aquaproj/aquaproj.github.io/pull/175

Thanks for following along! I will check the documentation.

https://github.com/aquaproj/aqua-registry/pull/5972#issuecomment-1236104681
Oh, I found this isn't needed.
golang/tools is already updated by github-tags datasource.
https://github.com/aquaproj/aqua-renovate-config/blob/a625beb57a201d64bb3a9118b28b7ab1343f1852/default.json#L4-L35

Released. https://github.com/aquaproj/aqua-registry/releases/tag/v3.46.0


NSURLErrorDomain error 406 before it even contacts the server

I have written a WS and one of the things it provides is avatars(uploading and servering). The only problem is that any time I try to access one with SDWebImage (UIButton+SDWebImage) I get the above error in my completion handler. Complete error is: (Error Domain=NSURLErrorDomain Code=406 "The operation couldn’t be completed. (NSURLErrorDomain error 406.)" )
The weird thing about it is that the server isn't ever getting touched (put logging in to verify this)! Any ideas what could be causing this and how to fix it?
PS If I NSLog the URL and then copy and paste it into a browser it works perfectly, so it's something with SDWebImage or iOS.

We are seeing the same problem now.

This website describes a workaround: http://uiroshan.github.io/2015/01/25/sdwebimage-nsurlerrordomain-code-equals-406/
The deal is to call this code before .sd_setImage etc:
SDWebImageDownloader.shared().setValue("text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", forHTTPHeaderField: "Accept")

Can't tell for sure, but this looks like a bug in SDWebImage? It's kind of weird, because the same code would work for one domain/path, but not another...

It depends on how the server was set-up. I don't think this is a problem with SDWebImage. Why would you suspect that?

I suspected that too.
But downloading using curl or browsers work. If I change the accept parameter like that (I think Chrome uses that) it works. I don't know where the problem comes from.

And oh by the way, the first call would render a 406 error, then subsequent calls always -1001 or similar. It's like it caches the error (??) on first attempt after booting app, and does not retry actual network calls from there.

We have an array of failed URLs so we don't keep retrying URLs that failed.


FieldMissingNullable does not recognize @MonotonicNonNull

import org.checkerframework.checker.nullness.qual.MonotonicNonNull;

// ...

@MonotonicNonNull String lazySetting;

String getSetting() {
    if (lazySetting == null) { // This line triggers FieldMissingNullable in errorprone 2.10.0
        lazySetting = "foo";
    }
    return lazySetting;
}

While MonotonicNonNull is part of the checker framework, it is recognized by other nullability checks (eg: NullAway)

Thanks for the report. We got a report of this internally, too, and we fixed it, but it came too late for the current release. The fix will be in the next release: https://github.com/google/error-prone/commit/724252f3cf3dadff014dc232eb696c42722c3a0f

In the commit message:

In practice, I think this is a reasonable approach: @MonotonicNonNull is likely to be used only in CF-checked code, so it's fairly likely to be correct already.

Just FYI: This can also be recognized/enforced with NullAway. Assigning a nullable value to a @MonotonicNonNull type will be recognized as a problem.

Thanks, good to know.
For anyone else reading this: I don't actually know whether most tools recognize MonotonicNonNull. Google's primary nullness checkers are the Checker Framework and Kotlin, so the lack of support I was referring to was Kotlin's.


[network] migrate remaining network samples

Make sure existing samples are covered in network/ dir:

https://github.com/Azure-Samples/network-go-manage-loadbalancer
https://github.com/Azure-Samples/network-go-manage-network-security-group
https://github.com/Azure-Samples/network-go-manage-network-interface

This issue is a: (mark with an x)
- [ ] bug report (consider searching issues before submitting)
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

NIC sample is sufficient, others are now tracked in #106 and #107


The example doesn't work

For this article, the version (build) of Windows Server with Containers running on your cluster nodes must match that on your development machine.
Does this mean I need Windows Server as dev machine?
With Service Fabric version 6.2 and later, you can deploy containers based on Windows Server 2016 locally on a Windows 10 host.
Or maybe I can use Windows 10?
Well, let's try and follow the article using Windows 10. The final result after deployment is :"The container operating system does not match the host operating system."
OK, there's talk about one Windows Server version not being compatible with some other version, but what does it mean to me: I have no idea which server version matches the base image in this tutorial nor which base image would I need to match the OS version on my cluster!

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

ID: d7df6f76-be53-ff44-5d81-aa1c2c2a1c51
Version Independent ID: 9e3b3112-bcd1-cee5-48ed-69e3debbd5a3
Content: Create an Azure Service Fabric container application - Azure Service Fabric
Content Source: articles/service-fabric/service-fabric-get-started-containers.md
Service: service-fabric
GitHub Login: @erikadoyle
Microsoft Alias: edoyle

@mcurko We are checking this and will get back to you.

Hi @mcurko, yes this means your dev machine needs to be running Windows Server. See this section of the doc:

For this article, the version (build) of Windows Server with Containers running on your cluster nodes must match that on your development machine. This is because you build the docker image on your development machine and there are compatibility constraints between versions of the container OS and the host OS on which it is deployed. For more information, see Windows Server container OS and host OS compatibility.

That being said this guide here shows how to configure Windows 10 to run Windows Containers. The guide your discussing is for a deployment target of a Windows Server.
As for your statement regarding "deploy containers based on Windows Server 2016 locally on a Windows 10 host.". Yes you can but you must have Isolation mode configured for Hyper-V. This can be done with:
<ContainerHostPolicies CodePackageRef="Code" Isolation="hyperv">
For more on isolation mode see here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started-containers#configure-isolation-mode


Improve plugin templates docs

Do plugin templates only support Python? It's not clear in the docs:

https://github.com/argoproj/argo-workflows/blob/master/docs/executor_plugins.md
https://github.com/argoproj/argo-workflows/blob/master/docs/plugins.md

Does a plugin failure cause a workflow failure? If so does it support the continueOn feature?
How do users securely manage secrets needed for a plugin? Such as a Slack token in your example.
Should we have an example in https://github.com/argoproj/argo-workflows/tree/master/examples for this feature?
Is the community going to maintain any common plugins such as a Slack plugin?
How do plugins interact with features such as resource requests/limits , pod disruption budgets, retry on the workflow side and activeDeadlineSeconds? It's a template so all template/step features should work right?
What are the use cases for the aysnc / requeue feature? Is the 2 minutes configurable?

@alexec The Executor Plugin example is currently broken because it's missing a step. There is a Python HTTP server and the plugin is configured to run python -c, but the script is never referenced or copied into a Docker image.
Do you have a neat idea for baking the script into the plugin? Custom Docker image is painful just for testing. I found a hacky Gist that could help.

💡 The file must have the name server.* .
This isn't mentioned in the docs, I'll open a PR.


jachguate: Blacklist +34 919.464.345

jachguate requests the blacklist of the number +34 919.464.345. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by Spevacus in Charcoal HQ


Windows installation

Continuous integration pipeline works on ubuntu image, but changing to windows image results in errors (first is Java related, then some issue with multithreading in pytest when the unit tests are run). I am using cause2e on a windows machine for my own analyses, so I know that it can work. Will fix the pipeline so that CI ensures that cause2e is in a usable state for linux and windows users.

For the Java issue: This is a known issue with javabridge (required by py-causal in the causal discovery step).
As explained here, make sure you have JAVA SDK 8 installed and set your JAVA_HOME and JDK_HOME environment variables correctly. See cause2e's azure-pipelines.yml for an example.

For the pytest issue: This seems related to the problem. Despite the prevailing error messages, I was able to make all unit tests run as intended by removing a blocker in heatmap plotting. Since the issue only occurs in the CI pipeline, it should not cause problems to users.

The issue will be closed once I have merged the changes into the main branch.


⚠ Bofrost.at has degraded performance

In d4d96fa, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2160 ms

Resolved: Bofrost.at performance has improved in 86ebebf after 35 minutes.


@aws-sdk/client-s3 issue with worker targets

Environment
nitropack: latest
Running on Cloudflare pages
Reproduction
https://github.com/fayazara/nitro-s3
Describe the bug
Using AWS client S3 sdk does not work on Cloudflare Pages, using any method from the S3 sdk throws an error from the obfuscated method name either t is not a function (when actually deployed on cloudflare pages or t2 is not a function when using wrangler locally
I have tested the same version of the sdk using Hono on Cloudflare page which works fine.
Additional context
There was a node compatibility polyfill issue which @pi0 solved yesterday in https://github.com/unjs/unenv/issues/279, this new error t2 is not a function started popping up after this issue was fixed
Logs
Error uploading file: TypeError: t2 is not a function

      at Wd.slurpFile
  (file:///Users/projects/nitro-s3/.wrangler/tmp/pages-mkxmpG/chunks/routes/index.post.mjs:1:242780)
      at loadSharedConfigFiles
  (file:///Users/projects/nitro-s3/.wrangler/tmp/pages-mkxmpG/chunks/routes/index.post.mjs:1:245724)
      at n
  (file:///Users/projects/nitro-s3/.wrangler/tmp/pages-mkxmpG/chunks/routes/index.post.mjs:1:247712)
      at null.<anonymous>
  (file:///Users/projects/nitro-s3/.wrangler/tmp/pages-mkxmpG/chunks/routes/index.post.mjs:1:188559)
      at async coalesceProvider
  (file:///Users/projects/nitro-s3/.wrangler/tmp/pages-mkxmpG/chunks/routes/index.post.mjs:1:188781)
      at null.<anonymous> (async
  file:///Users/projects/nitro-s3/.wrangler/tmp/dev-1Ax2UV/t7mjr99ri8n.js:9569:101)
  Error: Failed to upload file to bucket-name/filename.png
      at FileStorage.upload
  (file:///Users/projects/nitro-s3/.wrangler/tmp/pages-mkxmpG/chunks/routes/index.post.mjs:1:760528)
      at async Object.handler
  (file:///Users/projects/nitro-s3/.wrangler/tmp/pages-mkxmpG/chunks/routes/index.post.mjs:1:761772)
      at async Object.handler
  (file:///Users/projects/nitro-s3/.wrangler/tmp/pages-mkxmpG/chunks/runtime.mjs:1:72110)
      at null.<anonymous> (async
  file:///Users/projects/nitro-s3/.wrangler/tmp/dev-1Ax2UV/t7mjr99ri8n.js:17154:7)
      at null.<anonymous> (async
  file:///Users/projects/nitro-s3/.wrangler/tmp/dev-1Ax2UV/t7mjr99ri8n.js:19166:24)
      at async jsonError
  (file:///Users/main-user/Library/Caches/pnpm/dlx/cbftox4creh25irebxwmcy7fxe/190bf21ed13-b177/node_modules/.pnpm/wrangler@3.65.0/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
      at async drainBody
  (file:///Users/main-user/Library/Caches/pnpm/dlx/cbftox4creh25irebxwmcy7fxe/190bf21ed13-b177/node_modules/.pnpm/wrangler@3.65.0/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)

Thanks for the reproduction (TIP: you can do pnpm build --no-minify && pnpm wrangler pages dev dist/ to have better insights).
Stack trace without minify:
index.mjs:27562 Error uploading file: TypeError: readFile is not a function
    at slurpFile (index.mjs:11758:34)
    at loadSharedConfigFiles (index.mjs:11914:27)
    at index.mjs:12027:83
    at index.mjs:8789:33
    at async coalesceProvider (index.mjs:8816:18)
    at async index.mjs:8827:20

TLDR: @aws-sdk/client-s3 uses Node.js APIs and depends on node:fs/promises which is not supported in worker environments. Nitro/unenv tries a lightweight polyfill but it is not enough.
The proper solution for @aws-sdk/client-s3 to be fixed is that they add an exports field to their package.json with workerd and other conditions pointing to an ESM native compatible code.
Below is a workaround but I do highly recommend considering alternative / web-compatible clients such as aws4fetch (example) to avoid such issues. In the future unstorage/storage layer of Nitro will also adopt this approach.
export default defineNitroConfig({
  srcDir: "server",
  "preset": "cloudflare-pages",
  minify: false,
  rollupConfig: {
    plugins: [
      {
        // Workaround for @aws-sdk/client-s3 compatibility with Cloudflare Pages
        // Consider using aws4fetch or another HTTP client for better compatibility
        name: 'fix-aws-sdk-import',
        resolveId: {
          order: 'pre',
          handler(source, importer) {
              if (source === './runtimeConfig' && importer?.includes('@aws-sdk')) {
                return this.resolve('./runtimeConfig.browser', importer);
              }
          },
        }
      }
    ]
  }
});

Thanks for the workaround @pi0 🙌


Refactor EditableTitle

Make sure the component is re-used at various places (DocumentPage, DrivePage)
Consider using contentEditable

I didn't use contentEditable, but will probably check that out for a next iteration of Document


Cleanup the point shader to enable people to better customize it

m_sqrt_2 has been added as a const in std -> SQTR_2
m_pi has been replaced by the existing constant in std -> PI
half_size was used in two locations. I replaced them with size * 0.5 directly.
coord was used to invert the y axis. I manually inverted the y axis in all the SDFs
input parameter has been rename coord instead of coord_in to make it easier to use.

This should result in 0 changes to any tests, but make it easier to add a custom template in as is being suggested in https://github.com/pygfx/pygfx/pull/789

xref: https://github.com/pygfx/pygfx/issues/48


remove learnable parameters when bias=false

On current master, bias=false initialized the weights to zero, but the bias remains a learnable parameter. This PR fixes this problem and makes the interface consistent with Flux's initialization.
This PR also imposes stricter parametrization on layers' fields
This a breaking PR

this should be ready for review and merge

I am curious about assigning the element types of layer parameters. Shouldn't we provide a way for specifying the element types, such as T=Float32?

I am curious about assigning the element types of layer parameters. Shouldn't we provide a way for specifying the element types, such as T=Float32?

We discussed this at length in Flux. In the end the approach we took is the following:

the default init method (glorot_uniform), returns Float32 arrays
if one wants to use a different  eltype, he can do so by passing e.g. init = (dims...) -> randn(Float16, dims...)
the bias has the same eltype of the weights
layers can also be initialized with specific weights: Dense(w, b)
one can cast a whole model to the desired floating point type: model |> fp32


ServerRequest::getUriFromGlobals() throws exception for IPv6 local loopback address

[::1] is an IPv6 loopback address
I'm proxying requests of a webpack dev server to my PHP application.
$_SERVER["HTTP_HOST"] = "[::1]:8000";
Fatal error: Uncaught InvalidArgumentException: Invalid port: 0. Must be between 1 and 65535 in vendor/guzzlehttp/psr7/src/Uri.php:615
Stack trace:
#0 vendor/guzzlehttp/psr7/src/Uri.php(478): GuzzleHttp\Psr7\Uri->filterPort(0)
#1 vendor/guzzlehttp/psr7/src/ServerRequest.php(199): GuzzleHttp\Psr7\Uri->withPort('')
#2 vendor/guzzlehttp/psr7/src/ServerRequest.php(170): GuzzleHttp\Psr7\ServerRequest::getUriFromGlobals()

Thanks for this library btw 😇

~/Code $ php -a
Interactive shell

php > var_dump(parse_url('http://[::1]:8000/api/config'));
array(4) {
  ["scheme"]=>
  string(4) "http"
  ["host"]=>
  string(5) "[::1]"
  ["port"]=>
  int(8000)
  ["path"]=>
  string(11) "/api/config"
}
php >

I'm going to try submitting a PR.

Created a PR to fix this issue: https://github.com/guzzle/psr7/pull/194


SCCORAL.get_latent_representation() requires module to be on CPU

Report
Model raises error when it was trained on GPU and model.get_latent_representation() is called
Version information
No response

Quick fix
# All pytorch modules to cpu
model.module.cpu()
model.get_latent_representation()


Multi GPU

Hi,
I have 4*4090 GPU，how can I use multi gpu in trainning and Inferencing？

Hi, some cuda extensions in this work do not support pytorch multi-gpu parallel. You can try to replace them by other implementations like tcnn.

Thanks a lot


Unsupported output mappings show for termination end event

Describe the bug
As a user I'm able to define an output mapping for terminate end events, even though it is not supported by Camunda 8:

Steps to reproduce

model terminate end event
see that output mapping is possible
(executing it you'll see it does nothing)

Expected behavior
Output mappings are disabled for terminate end events.
Environment

OS: Linux
Camunda Modeler Version: v5.19.0
Execution Platform: Camunda 8
Installed plug-ins: None

Additional context
Related to https://jira.camunda.com/browse/SUPPORT-20243.

I am moving this to ready as it's an easy fix.

This will be fixed via https://github.com/bpmn-io/bpmn-js-properties-panel/pull/1027


ionic-build 1.0.0

New Pull Request Checklist
Please mark the points which you did / accept.

[X] I read the Step Development Guideline
[X] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[X] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[X] I read and accept the Abandoned Step policy

Yay first bitrise step finished within 24 hours :+1:
I hope everything is fine and I help the community with this.
https://ionicframework.com/
Ionic is a big framework for mobile development and I think it is really useful.
I created a documentation how to build the Ionic conference app from scratch with Bitrise.io :smile:
You can find it here: https://github.com/bussmann-it/steps-ionic/blob/master/README.md
I referenced it in the step description.
So all people can build Ionic apps quick :smiley:
This is a example of bitrise.yml for Ionic conference app.
https://github.com/bussmann-it/ionic-conference-app/blob/master/bitrise.yml
With this the users can build their apps really easy with Bitrise.io. Adding the repository. Copy the bitrise.yml. Change 2-5 settings and let's wait for use the built app.

Wow, thanks here again @patrickbussmann for such an awesome, detailed PR! :)
Question 1: are you sure that the constant here https://github.com/bussmann-it/steps-ionic/blob/master/step.sh#L52 is always the same? (1D6058900D05DD3D006BFB54)
Question 2:

With this the users can build their apps really easy with Bitrise.io. Adding the repository. Copy the bitrise.yml. Change 2-5 settings and let's wait for use the built app.

This could be even shorter, if we'd have a scanner for it! With that the project type could be detected as Ionic right away, and the user would get the right bitrise.yml automatically after the registration (just like with the scanners we have right now for (native) iOS, Android, macOS, Xamarin, Cordova, .. projects)
We have this on our "short term" task list, to have Ionic project support in the scanners. But for that we'll need a "verified" step (as a policy the scanners can only use "verified" steps).
@patrickbussmann would you be open to move this step into https://github.com/bitrise-community ? We would of course add you to this organization as well, so we can collaborate on steps easier there. You can find more info about this community github org at https://discuss.bitrise.io/t/bitrise-steps-community/496

@trapacska & @godrei please chime in and review! ;)

OFFTOPIC: btw so many 1 and 0 -> ionic-build 1.0.0 #1000 :P
this is the #1000 PR here!! :tada:

Hello @viktorbenei,
here your answers.
Answer 1:
I'm sure that the constant is always the same in XCode 8.*
At least for Ionic projects :smile:
In my Bitrise.io account there are 4 projects (= 8 apps, 4 x iOS, 4x Android)
And all iOS projects using the same constant.
I tested this with the Ionic conference app which is not modified. (Only changed iOS App ID and added bitrise.yml)
And everything works with this.
So yes I'm sure and its tested :+1:
But maybe it will change in future.
I can test with XCode 7 if you want (and if I find it :laughing:)
Answer 2:
I really like your idea with the scanner.
Maybe you remember me. As I started with Bitrise.io I thought I ask you via support chat if there is something for Ionic and you said its planned 🤗
This was in January or February 2017. The chat says 17w ago.
I can put it in my calendar for the next weekend :+1:
https://github.com/bitrise-io/devcenter/blob/master/docs/tips-and-tricks/write-your-own-scanner.md
And yes, of course, @viktorbenei, we can move this step into https://github.com/bitrise-community.
Will do you do this? Or do you add myself to the organization as you said and I create the repository and everything?
I will start correcting your comments now.

This was in January or February 2017. The chat says 17w ago.

Yeah, it was planned to be released sooner, but something always creeped to the top of our task list.. But Cordova is now out, ReactNative scanner almost finished, and the next one on the list is Ionic! ;)

And yes, of course, @viktorbenei, we can move this step into https://github.com/bitrise-community.

Awesome! We'll send you the invites tomorrow. What's your bitrise.io username? We'll add you to the community org there too ;)

Yes no problem @viktorbenei ^^
In this case I speeded up your task list so that you can concentrate on other things :+1:
My bitrise.io username is patrick.bussmann.
Thanks :smile:
If you add me tomorrow I'll transfer the repository. :+1:
Are my corrections okay now? Commited few hours ago.
Or some changes left in your eyes?

Are my corrections okay now?

LGTM, but @godrei & @trapacska will add the final 👍 / 👎 once they can review it ;)

No problem. It's a :sunny: day and weekend (sunday) so we shouldn't work :laughing:
Let's continue tomorrow with @godrei and @trapacska :+1:

@patrickbussmann just invited you into the GitHub and Bitrise community organizations
Sorry for the delay, yesterday was.. super busy ;)

Hi @patrickbussmann,
thanks for the PR!
I would have a questions:

May i ask you, why do you prefer to use ionic-cli for 'preparing the project' and then use xcode-archive step to build the project?

Doing this way, you build your project two times (for first when you prepare the .xcodeproj by running ionic build), then the step xcode-archive builds the project again.
To achive this you also need to modify the generated .xcodeproj file's code sign settings.
When i was working on cordova-archive step i decided to build the project by calling cordova build, where i pass the build.json file to generate the desired signed output artifacts. This way we only need to build the project only once and we do not need to modify the generated project. Another reason is that, this way the scanner can generate much smaller workflows for cordova projects.
I know that this way you do not have the freedom of xcode-archive step (forcing code sign settings, export options, etc...), but do you think it is a real-life need or can you agree that configuring the code signin with build.json file is enought?
If you think it would be better to go with your version, then i would recommand to update the step's name, since it just partially builds the project (it build the android part fully, and exports the generated artifacts (.apk files), but just prepares the ios project (by building it using ionic commands)). I would expect to generate outputs from a builder step.
So i think it would be better if the step would only prepare an ionic project and let our builder steps (xcode-archive, gradle-runner) to build the final artifacts, or do the whole build in the step.

Absolutly no problem, @viktorbenei.
I moved it now and you can find it here: https://github.com/bitrise-community/steps-ionic
I hope everything I did was correct :smile:
Now I create an update for the steplib and the plugin so that the links are correct for the new location.
Then you can accept PR after review :+1:

@godrei:
Thanks for your review.
At the moment the answer is that it was better for me using the xcode-archive because of the reasons you mentioned. Forcing team, forcing provisioning profile, ...
The signing is the main problem.
The Android build is similar but more complete.

Build debug with Ionic/Cordova
Sign APK

In iOS I had a lot of troubles with the signing because some things didnt work and some others are working wrong.
And with the current solution I was able to build everything without any problems.
As you can see in the https://github.com/bitrise-community/steps-ionic/blob/master/README.md file - there is a really detailed how to build the sample Ionic conference app with Bitrise.io.
Including generating keystore for signing the APK and getting certificates for signing the IPA. (or build them signed)
I will check if it is possible to add the parameters to ionic build so that we can skip the xcode-build step.
I mean this will be perfect :+1:
But at the time of developing this step it wasn't so great.
I will check your cordova build because normally Ionic using Cordova for the build process.
But my goal is that everyone can build their apps without problems.
Let me check and I will inform you about results :+1:

Hi @patrickbussmann ,
as i mentioned previously we have a cordova-archive step which builds and exports the generated artifacts (ipa, dsym, app, apk) without using any others steps. I was able to create similar builder step for ionic projects: ionic-archive by only modifying the called commands from cordova to ionic "cordova" "--no-interactive".
The new step also works great with the ionic conference app you mentioned in your step's README.
If you agree with that i will close this PR and we will use the ionic-archive step to build ionic projects, would you like to keep your version in the bitrise-community?
Thanks for your PR and all of the infos you shared with us, any feedback for the ionic-archive step is well appreciated!

Hmm @godrei, it's okay I think.
If your ionic-archive step works as well as mine with the ability to select cordova and ionic versions then you can close this and ignore it.
I think its important to select between Ionic 2 and Ionic 3 because Ionic 3 was released this/last month so many peoples are using Ionic 2 currently.
I thought my Readme was also better than your default one now. But we can copy mine to ionic-archive if you allow :smile:  https://github.com/bitrise-community/steps-ionic
If @viktorbenei think the same then you can do it as you like. I will pull the ionic-archive and will support them in future if we decide to use them.

@patrickbussmann after discussing the matter with @godrei quite thoroughly, I'd support the new ionic-archive step for one reason, because that's almost identical to the already existing Cordova archive step. This means lower maintenance overhead, which means more time for other improvements and well as possible shared code between the two steps.
Our plan is to start with that step (ionic archive), and if there would be any issue indicating that's a sub-optimal choice we can still opt to change it to your ionic builder step. From what we know right now this seems to be the best choice long term, but there's a reason why every Bitrise Step is versioned, allowing breaking changes when required ;)
Last but not least I'd like to thank you @patrickbussmann for your collaboration, for your previous and future contributions, the discussion with you helped a lot in adding Ionic support, which will help everyone using Bitrise for Ionic project! :)

Ok then I will support the ionic-archive step :+1:
Am I allowed to add the support for selecting Ionic version?
I will change my build flow soon and then I must have the choice between 2 and 3 :smile:
Should I work with Pull requests then or can I work directly on master or new branch?

@patrickbussmann i just started to work on this feature :)
Please let me finish this and i will assign you as reviewer for the pr, what do you think?

@patrickbussmann the master branches are protected in the bitrise-community org, so you can work with PRs.
I assigned you as a reviewer for the version selection PR.

To be precise, you can create any branch in the repos if you're in the community gh org, but pushes to master are protected and require a PR+review before merge.


under which license?

Hi there!
It'a nice work 👍 I would like know this project using which license(eg: MIT license) ?

Thank you!
I just added MIT license now. I forgot to add this before. :)
https://github.com/alfg/widevine/blob/master/LICENSE


Feature/translate sponsor btn

What does this PR do?

This PR adds a change language button in contact page at the same level of sponsor us button, that on click set the state of the language.

Related issues
#5
Merge Checklist:

[x] The branch is up-to-date (i.e. rebased) with the base branch
[x] No code style issues

Changes done!


Licensing

Shouldn't the template be licensed in a way that allows the user to start from this code and later publish it under any license they want?
The current license is copy-paste from the engine repository. It points to dual MIT/Apache 2 with two dead links.

I'm open to alternative licenses. Most of the "zero attribution or restriction" licenses im aware of are pretty niche. Might be worth looking in to what licenses are popular for templates. @mockersf you put together this project. Are you open to relicensing and if so, do you have any thoughts on a what a good one would be?

no opposition from me to relicensing!

I do understand correctly, that if I start using this template it's not possible to just change the license? In that case we would be forcing MIT/Apache on the user's game here.

I guess you're right. But if someone cares for license, we can't leave the template itself without one. Maybe a written permission in the template to relicense as the user want? Or license the template in a more permissive way?
Then, how can we stop this more permissive license to be applied to the user code? When the template is applied, every file is copied, there's no difference between template files and final project file...
Also, I don't think that being Apache2/MIT doesn't stop from being closed source. As the license owner is the user (once we solve the fact that there is code owned by the template), they just have to not sue themselves

This issue can be closed as completed?


Build started: Project: project *** Target 'STM32F429_DISCOVERY' uses ARM-Compiler 'Default Compiler Version 5' which is not available. *** Please review the installed ARM Compiler Versions:    'Manage Project Items - Folders/Extensions' to manage ARM Compiler Versions.    'Options for Target - Target' to select an ARM Compiler Version for the target. *** Build aborted. Build Time Elapsed:  00:00:00

Build started: Project: project
*** Target 'STM32F429_DISCOVERY' uses ARM-Compiler 'Default Compiler Version 5' which is not available.
*** Please review the installed ARM Compiler Versions:
'Manage Project Items - Folders/Extensions' to manage ARM Compiler Versions.
'Options for Target - Target' to select an ARM Compiler Version for the target.
*** Build aborted.
Build Time Elapsed:  00:00:00
Compiler version 5 is paid

邮件已收到，我会尽快回复的！


Issues with <IP_ADDRESS> fstab option

Describe the Issue
The section that controls mounting the tmp partition and creating fstab entries results in a failure in mounting. (Ensure nodev option set on /tmp partition | fstab)
Also tmpfs should not be the forced filesystem as the partition may be using its own filesystem like ext4
Expected Behavior
The tmp partition should mount without failure at the correct mount point using the correct partition and file system
Actual Behavior
It fails to mount because the entry does not have a chosen mount point. The module documentation has been updated and says name: is an alias for path:
The current module is:
name: "{{ item.device }}"
src: "{{ item.fstype }}"
state: present
fstype: tmpfs
Possible Solution
Change the task to look something like this:
ansible.posix.mount:
      path: /tmp
      src: "{{ item.device }}"
      state: present
      fstype: <find out what the partition is otherwise default to tmpfs>
      opts: defaults,{% if ubtu22cis_rule_1_1_2_2 %}nodev,{% endif %}{% if ubtu22cis_rule_1_1_2_3 %}noexec,{% endif %}{% if ubtu22cis_rule_1_1_2_4 %}nosuid{% endif %}

Hi @zac90
Thank you once again for your continued feedback with these issues, its truly helping us to improve things. I have pulled this issue into the July23_issues branch. Which i will leave for a couple of days before requesting merge to devel.
Many thanks once again
uk-bolly

Not sure if this is related but I'm using Ubuntu autoinstall to partition my disk using LVM.
After patching the /etc/fstab look like this and fails to restart.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation
/dev/disk/by-id/dm-uuid-LVM-6JvRcdCzCGbE2n7PpTzZSDZX2YWVg2Ja0f6MtjRu3jyGi8czel4mUIPOXsz8p1gz / ext4 defaults 0 1
# /tmp was on /dev/ubuntu-vg/ubuntu-lv-tmp during curtin installation
/dev/disk/by-id/dm-uuid-LVM-6JvRcdCzCGbE2n7PpTzZSDZX2YWVg2Ja5v4OeXWQlqaLNNeu43hqPouJrD41GgKc /tmp ext4 defaults 0 1
# /var was on /dev/ubuntu-vg/ubuntu-lv-var during curtin installation
/dev/disk/by-id/dm-uuid-LVM-6JvRcdCzCGbE2n7PpTzZSDZX2YWVg2JaWBDyS1kQ3POCKJ1q9eYydp2c0ELIPUz3 /var ext4 defaults 0 1
# /var/tmp was on /dev/ubuntu-vg/ubuntu-lv-var-tmp during curtin installation
/dev/disk/by-id/dm-uuid-LVM-6JvRcdCzCGbE2n7PpTzZSDZX2YWVg2JaJ299bWIKVJG3u9TuT7Tg6JJFA5oeZFkp /var/tmp ext4 defaults 0 1
# /var/log was on /dev/ubuntu-vg/ubuntu-lv-var-log during curtin installation
/dev/disk/by-id/dm-uuid-LVM-6JvRcdCzCGbE2n7PpTzZSDZX2YWVg2Jar53uzB4SwXRkpsaIUsqKFp11kwbj3wzh /var/log ext4 defaults 0 1
# /var/log/audit was on /dev/ubuntu-vg/ubuntu-lv-var-log-audit during curtin installation
/dev/disk/by-id/dm-uuid-LVM-6JvRcdCzCGbE2n7PpTzZSDZX2YWVg2JaL1vv2bDHq2wmubX1rdVDqfd7ygpHfjqZ /var/log/audit ext4 defaults 0 1
# /home was on /dev/ubuntu-vg/ubuntu-lv-home during curtin installation
/dev/disk/by-id/dm-uuid-LVM-6JvRcdCzCGbE2n7PpTzZSDZX2YWVg2JayqEEAnMwmXbamhIKxM46wUU9UO0M0vra /home ext4 defaults 0 1
# /boot was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/1834daca-ccc4-4328-9b44-f0d07ef9fdf2 /boot ext4 defaults 0 1
# /boot/efi was on /dev/sda1 during curtin installation
/dev/disk/by-uuid/D83E-0378 /boot/efi vfat defaults 0 1
/swap.img       none    swap    sw      0       0
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
vagrant /vagrant vboxsf uid=1000,gid=1000,_netdev 0 0
#VAGRANT-END
ext4 /dev/mapper/ubuntu--vg-ubuntu--lv--tmp tmpfs defaults,nodev,noexec,nosuid 0 0
ext4 /dev/mapper/ubuntu--vg-ubuntu--lv--var xfs defaults,nodev,nosuid 0 0
ext4 /dev/mapper/ubuntu--vg-ubuntu--lv--var--tmp xfs defaults,noexec,nosuid,nodev 0 0
ext4 /dev/mapper/ubuntu--vg-ubuntu--lv--var--log xfs defaults,nodev,noexec,nosuid 0 0
ext4 /dev/mapper/ubuntu--vg-ubuntu--lv--var--log--audit xfs defaults,noexec,nodev,nosuid 0 0
ext4 /dev/mapper/ubuntu--vg-ubuntu--lv--home xfs defaults,nodev,nosuid, 0 0
/dev/shm /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0


Problem with longer links

Some links are partially clickable.

Feed example: https://boards.4channel.org/news/index.rss

This is issue within the feed itself. URLs are being broken with  tag.


Feature: show git stats for all (remote) branches

Expected behavior and actual behavior.
Right now there are some statistics on the current or a specific branch, I couldn't find a way to output per user commits for instance of all branches. Would be nice to have.
Steps to reproduce the problem.

Specifications like the version of the project, operating system, or hardware.

Hi @fransschreuder, after a long time ⌛
A new feature was implemented a couple of days ago,
if you want to include all branches logs, you can try using the following: export _GIT_LOG_OPTIONS="--all".
Instead of --all you may want to use --branches, since --all also includes refs/tags and refs/remotes.
ps: more info about git log --branches or git log --all


Fix method names in report when receiver is not a pointer

When generating a report, if the function receiver is not a pointer, the displayed name is broken. This PR fixes this bug.
How to reproduce
Just run ./do ci:precommit from the root of this repo.
Actual names (examples)

main.Lint{}.ain.Lint.glciFix()
main.Lint{}.ain.Lint.goModTidyAll()
main.Lint{}.ain.Lint.goModTidy("./modules/kubeclients/")

Desired names

main.Lint{}.glciFix()
main.Lint{}.goModTidyAll()
main.Lint{}.goModTidy("./modules/kubeclients/")

Nice!
I am wondering if we could detect this through actual reflection and not through string parsing, with reasonable effort?

Nice! I am wondering if we could detect this through actual reflection and not through string parsing, with reasonable effort?

It makes sense to me but I would do it in a separate task/PR. Wdyt @erdii ?

Sure, sounds good to me :)

seems like codecov status reporting is broken
keeping note of this for @eqrx because I suspect that something in the ci workflow is misconfigured


FIX ?? send ref in LFS endpoint

cc @coyotte508 @Pierrci @severo @SBrandeis
To be tested...

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Tried on OpenOrca and still got:
{
    "error": "Commit 0/1 could not be created on the Hub (after 6 attempts).",
    "cause_exception": "HfHubHTTPError",
    "cause_message": "403 Client Error: Forbidden for url: https://huggingface.co/datasets/Open-Orca/OpenOrca.git/info/lfs/objects/batch (Request ID: Root=1-655b5da1-38fde8e96340f8505ab01ade;230a4803-659c-4cf4-9346-d12dce0de7a8)\n\nAuthorization error.",
    "cause_traceback": [
        "Traceback (most recent call last):\n",
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py", line 270, in hf_raise_for_status\n response.raise_for_status()\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status\n raise HTTPError(http_error_msg, response=self)\n',
        "requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/datasets/Open-Orca/OpenOrca.git/info/lfs/objects/batch\n",
        "\nThe above exception was the direct cause of the following exception:\n\n",
        "Traceback (most recent call last):\n",
        ' File "/src/services/worker/src/worker/utils.py", line 205, in decorator\n return func(*args, **kwargs)\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn\n return fn(*args, **kwargs)\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_api.py", line 1150, in _inner\n return fn(self, *args, **kwargs)\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_api.py", line 3491, in create_commit\n self.preupload_lfs_files(\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/hf_api.py", line 3961, in preupload_lfs_files\n _upload_lfs_files(\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn\n return fn(*args, **kwargs)\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/_commit_api.py", line 353, in _upload_lfs_files\n batch_actions_chunk, batch_errors_chunk = post_lfs_batch_info(\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn\n return fn(*args, **kwargs)\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/lfs.py", line 160, in post_lfs_batch_info\n hf_raise_for_status(resp)\n',
        ' File "/src/services/worker/.venv/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py", line 330, in hf_raise_for_status\n raise HfHubHTTPError(str(e), response=response) from e\n',
        "huggingface_hub.utils._errors.HfHubHTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/datasets/Open-Orca/OpenOrca.git/info/lfs/objects/batch (Request ID: Root=1-655b5da1-38fde8e96340f8505ab01ade;230a4803-659c-4cf4-9346-d12dce0de7a8)\n\nAuthorization error.\n",
        "\nThe above exception was the direct cause of the following exception:\n\n",
        "Traceback (most recent call last):\n",
        ' File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 913, in create_commits\n commit_info = retry_create_commit(\n',
        ' File "/src/services/worker/src/worker/utils.py", line 210, in decorator\n raise RuntimeError(f"Give up after {attempt} attempts. The last one raised {type(last_err)}") from last_err\n',
        "RuntimeError: Give up after 6 attempts. The last one raised <class 'huggingface_hub.utils._errors.HfHubHTTPError'>\n",
    ],
}

After some local debugging together with @severo , we found out that the revision we were passing to the Hub was url-encoded which is not expected by the server. I pushed a fix in https://github.com/huggingface/huggingface_hub/pull/1838/commits/5136b6dba0ba9fda85461f8ed21a9445657ea169 and this time it should be finally good!


button value binding does not work if button has nested elements

On my page I have a button:
<button onclick="++this.value" value="{{model.value::click}}">++</button>

The purpose of the button is to increase model.value by one and notify Polymer about the change. The code above works fine, but this one does not work:
<button onclick="++this.value" value="{{model.value::click}}">
    {{model.value}}
    ++
</button>

If button has any nested elements, then model.value became undefined on click. Here is a jsfiddle which demonstrates the issue: https://jsfiddle.net/z1knafu5/.

I'd suggest not using onclick here. I'm not 100% sure what part of the data binding system is unhappy with your solution, but here is a nearly-identical working example that uses the data-binding APIs
https://jsfiddle.net/thaL2515/

@azakus,
I know that JavaScript function instead of inline event handler works correct, but in our system we use integer properties to trigger button click on server side.
It is really annoying to add click function for each button to just increment a value.

Why don't you create a fancy-button that does that and reuse it everywhere?

Well, I did something like this, but the exception with binding is still there and should be fixed.

This is really annoying and it took me again half a day of debugging to find the problem. Could someone fix this? It can’t be to complicated.

+1

+1. Just spend 2 hours debugging this case :(

I suspect it's something related to event delegation/ event target handling, as existence of nested element does not break a thing, but clicking on the element inside which may not be bound to anything breaks it:
https://jsfiddle.net/tomalec/6w7tu42h/1/

Organically a button's value is the buttons name.  You can use other props or reset value.
I have a universal input which does everything from buttons, toggles, papering icon buttons, check boxes radio groups native selects with items entered as atts or nested dom repeats.
For buttons I find using a section or span or similar to wrap an icon is easiest And allows for a button set based on CSS classes which I assign at Dom repeat instance no via input type tied classes and secondary classes in another on top prop.
The button value like the radio ad check box value are just not "value tied" natively so a secondary prop is the usual method. If you monkey with it you could more or less do anything.
It's up to you really
Sent from my iPhone

On Feb 11, 2016, at 1:11 PM, Tomek Wytrębowicz<EMAIL_ADDRESS>wrote:
I suspect it's something related to event delegation/ event target handling, as existence of nested element does not break a thing, but clicking on the element inside which may not be bound to anything breaks it:
https://jsfiddle.net/tomalec/6w7tu42h/1/
—
Reply to this email directly or view it on GitHub.

+1

+1 extremely annoying bug

This issue has been addressed in #5308 and will be fixed in 2.x and 3.x. Therefore I am closing this issue, as it targets 1.x. Please update your version of Polymer once we have released the fixes.


Error on starting a prod build: 2.0.0-pre.3

What version of Remix are you using?
2.0.0-pre.3
Are all your remix dependencies & dev-dependencies using the same version?

[X] Yes

Steps to Reproduce
npm run build
THEN
npm run start
OR
npm start
Expected Behavior
build prod successful
Actual Behavior
Testing "2.0.0-pre.3" and I understand  this is PRE release, but Im testing and ultimately trying to help!
node -v      v18.16.1
So, Im trying to run locally prod build but im getting the flowing errors:

><EMAIL_ADDRESS>build
> remix build

 info  building... (NODE_ENV=production)
 info  built (1s)
nuno in remix-v2pre on  v2 [✘!]
❯ npm run start

><EMAIL_ADDRESS>start
> remix-serve build

Error: Directory import '/Users/nuno/Documents/test/remix-v2pre/build' is not supported resolving ES modules imported from<EMAIL_ADDRESS>Did you mean to import /Users/nuno/Documents/test/remix-v2pre/build/index.js?
    at new NodeError (node:internal/errors:399:5)
    at finalizeResolution (node:internal/modules/esm/resolve:319:17)
    at moduleResolve (node:internal/modules/esm/resolve:945:10)
    at defaultResolve (node:internal/modules/esm/resolve:1153:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:525:22)
    at importModuleDynamically (node:internal/modules/cjs/loader:1188:29)
    at importModuleDynamicallyWrapper (node:internal/vm/module:429:21)
nuno in remix-v2pre on  v2 [✘!]
❯ ```

@nuno I believe this fix would work for your app.
https://github.com/remix-run/remix/issues/7305#issuecomment-1699763063

@tommyasai is correct - you just need to make that change in your package.json start script and it should resolve the issue.

@tommyasai @brophdawg11 confirmed, thats fixed the issue!


Images not loading in psychopy on Windows

Psychopy loads and the entire screen fills with the grey background, but none of the images in N170, P300, etc. are displayed

Now working.


Translation

Hello! Please, send a links to files with EN locales (text).
I from Russia and want translate Ghost into Russian.

Link example:
/core/...
/core/locales/ru.json
Please, dont send links to docs.ghost.org and themes.ghost.org (or any .ghost.org/ links)
Thanks!

Hey @owner  👋 We ask that you please do not use GitHub for help or support, the default issue template pointed you to our forum for this type of question 😄 We use GitHub solely for bug-tracking and on-going feature development so we try to keep it noise free.
Many questions can be answered by reviewing our docs for self-hosters, our theme API, or our public API. If you can't find an answer then our forum is a great place to get community support, plus it helps create a central location for searching problems/solutions.
FYI: Many projects have their own support guidelines and GitHub will highlight them for you, or the project owners will use issue templates to point you in the right direction, please read them before opening issues


Exploration: One approach for implementing immutable models

This is an example of working with Arrays using Immutable models.
Not really thrilled with this approach (due to the heavy rewriting of Parent pointers with immutable types as well the tons of casting going on).  This is just for the record.
Plan to implement a cleaner version (probably will be mutable but also support immutable items using a composble container approach)

Closing in favor of #12


Request for ghidra to generate workable source code after decompiling.

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

+1 for this feature xD

This request has come up in the past, but it is not something we are planning on doing.


Server seems to be busy or offline

Expected Behavior
The bot runs as it should.
Actual Behavior
The bot has problems with the server. The following got logged:
[09:34:28]  PokemonGO Bot v1.0
[09:34:28]  No config argument specified, checking for /configs/config.json
[09:34:28]  Configuration initialized
[09:34:29]
[09:34:29] Location Found: Sweetwater Country Club, Sugar Land, TX 77479, United States
[09:34:29] GeoPosition: (29.6091612, -95.60700860000001, 0)
[09:34:29]
[09:34:29] Attempting login to Pokemon Go.
[09:34:30]  Login to Pokemon Go successful.
[09:34:31]

Removed information.

[09:34:31]
[09:34:31]
[09:34:31]  Starting PokemonGo Bot....

Bot is working as it should; moving, spinning and catching are all working fine..

[09:36:39]  Server seems to be busy or offline - try again - 1/5
[09:36:48]  Server seems to be busy or offline - try again - 1/5

Problems persist for about a minute.

[09:37:59]  Server seems to be busy or offline - try again - 1/5
[09:38:12]  Server seems to be busy or offline - try again - 1/5

Bot is working as it should for about 40 seconds; catches a pokémon and spins a pokéstop.

[09:38:59]  Server seems to be busy or offline - try again - 1/5
[09:39:08]  Server seems to be busy or offline - try again - 1/5

Problems persist for about 9 minutes, until I gave up and exited the bot.

[09:48:25]  Server seems to be busy or offline - try again - 1/5
[09:48:33]  Server seems to be busy or offline - try again - 1/5
[09:48:37]  Exiting PokemonGo Bot

Steps to Reproduce
Run the bot. I have tried another Google Maps API key, but that didn't work either.
Other Information
OS: Windows 10, 64 bit
Git Commit: 248ac53b7afd16f7d0175b1e850262a737066b20
Python Version: Python 2.7.12

You can check this link to see if servers are down or not http://ispokemongodownornot.com/
I was given that same error message yesterday, when Google login (Asia) were "CRIT" despite I live in EU

Hmm, I guess that is the problem then. Thank you very much!


Added a note to specify self as the receiver for PM::Screen#title=

Fix for issue #654

Thanks @austinseraphin !