Cake Icon not showing

[x] I'm sure this issue is not a duplicate.

Last year, an issue was created to support Cake files with the Cake Icon: https://github.com/vscode-icons/vscode-icons/issues/16
In the latest version of VSCode (1.17.2) and vscode-icons (7.17.0), the Cake Icon is no longer showing up properly, instead, we are getting the C# icon:

I suspect that this is due to a recent change in VSCode to support .cake files as C# so that we can light up intellisense support.
Is there a way to override this in vscode-icons, if an alternative is supplied?
Thanks

@gep13, yes, you're right. It seems that the cake extension  doesn't support cake language id anymore and .cake files are managed by the c# language id. We'll fix that in our side and will be served in the next release. In the meantime, you can add this to your user settings and, hopefully, it will make the icon appear again:
"vsicons.associations.files": [
  { "icon": "cake", "extensions": ["cake"], "format": "svg" }
]

@robertohuertasm thanks for getting back to me so quickly, really appreciate it!
I have just tried your workaround, but it doesn't seem to have any effect.  After adding the suggestion, and restarting VSCode, the same C# icon is still displayed.
If I change the Icon theme to Seti, I get their stylised version of the Cake Icon:

But nothing when I switch to the C# icon.
I am happy to wait until the next release of vscode-icon, I just wanted to make you aware of this in case it had a bearing on your fix.

@gep13 I just tested it and it works. When I added @robertohuertasm snippet I was presented with a message to restart vscode in order for the icon manifest to be regenerated. Upon restarting the cake icon was shown. Probably you have the message disabled so you need to Apply the change manually by doing F1 > Icons > Apply Icons Customization.

Tracing the history of this change I wonder why @DustinCampbell added the cake extension in vscode csharp extension (https://github.com/Microsoft/vscode/commit/4c3ddf7e4c30542dbcc2447738612e094e1ac2de) since cake had its own extension. I do get that cake is based on C# but I remember when the vscode team removed the vue extension from their html extension support to give room to the 3rd party Vue extension. @gep13 Was this a collaborated change?

@JimiC nope, I got the same message pop up and I said yes to go ahead and change it.

@JimiC said...
Was this a collaborated change?

Yes, this was a collaborated change.  It was for a couple reasons, but it comes down to getting intellisense/debugging support working for Cake.  In order to make this happen, we needed to have .Cake files recognised as C# scripting files, in the same way that .csx files are.

@gep13 Do a manual apply anyways but keep the snippet in User settings.
Regarding the change in language id, it's understandable. No biggie.

@JimiC so this is what I have in my User Settings file:

I run the Apply Icon Customization command and I am prompted with this:

I click restart, but I still see this:

Any ideas?

@gep13 It's really weird. It works on insiders but not on thestable. vscode bug?

@gep13 It's due to this vscode bug. The fix hasn't found it's way to the stable release yet. Patients.

Gotcha! That makes sense, I don't run insiders on this laptop.  Thanks for digging into this.
Happy to wait for resolution, keep up the great work!  For me, this is a mandatory extension for VSCode 😄

@robertohuertasm woo hoo! Thank you!
Do you guys have an ETA on when you are pushing out your next release?

@gep13 our next milestone is set to 11 Nov but we may release it this weekend.

Great news! I will keep an eye out for it!
Thanks again!

There is also a chance to wait for the next stable vscode release in order to include the icon change.

@JimiC understood.  I will keep you posted on how it goes.


Fixing unused-but-set-variable errors

Hi,
we have a bunch of unused-but-set-variable warning which are causing build failure on Debian ( http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634393 ) as we are setting -Wall -Werror. I've tried to go through them and remove some of the unsed and mark the ones which are not used but cannot be removed (e.g. in proto structures). Can you please review commits in unused-but-set-variable branch, make changes and eventually merge them into master? I would then build new package for Debian.
Thank you,
Antonin

Sorry for taking so long to respond. I have audited, rebased and made som further additions (in your name :) and pushed to GitHub as commit b6e7f8c.  Will start planning for a followup release as soon as possible!  Thanks for the patch!


Deposits

[x] Approve transaction
[x] Deposit transaction
[x] Await deposit event
[x] Faucet interaction (in dev mode)

Manually tested deposits on http://localhost:4200/portfolio
as a follow up , wrote tests scenarios for deposits on this pr : https://github.com/vegaprotocol/frontend-monorepo/pull/253


Bug when saving analytics connector settings when Track for Administrators checkbox is unchecked

Description of bug
There is currently a bug when attempting to save any of the analytics connectors settings when "Track for Administrators" is unchecked.
Steps to reproduce

Go to Settings > Connectors
Edit settings for Google Analytics, Google Analytics 4, or Google Tag Manager connector
Ensure Track for Administrators is unchecked
Click `Save
See console error

Current behavior
Will not save settings and throws console error.
Expected behavior
Provide a clear and concise description of the expected behavior.
Screenshots

Error information
See screenshot.
Additional context
This seems to have surfaced in DNN 9.11.0.  It was working in DNN 9.10.2.
Affected version

[x] 10.00.00 alpha build
[x] 09.11.00
[x] 09.11.01
[x] 09.11.02 latest supported release

Affected browser

[x] Chrome
[x] Firefox
[x] Safari
[x] Internet Explorer 11
[x] Microsoft Edge (Classic)
[x] Microsoft Edge Chromium

This fix is not part of 09.12.00 is it? We used the "old analytics" connector for a lot of our clients...

Yes, this fix is part of 9.12.0

@bdukes ok thank you :-)


SPA & SEO Enhancements - Structured Data

Single Page Web apps (SPA's) have certain configurations that need to be performed in order to properly index data for Google's crawler.
One of those pieces is Structured Data, which is described here:  https://developers.google.com/search/docs/guides/intro-structured-data?visit_id=1-636631240128162327-3698134189&hl=en&rd=1
I've created two property listings on Search Console, and added Billy, Geoff, Paulina, and Luis to the listing.
https://www.google.com/webmasters/tools/dashboard?siteUrl=http://www.openforge.io/
Whoever takes this task, please do the following:

Research structured data and the links above
Create proposed data structure for our pages.  Feel free to bring someone in to pair program with you.
Add me as a reviewer when it's ready for code review or when you need keywords.

The initial structured data is causing an issue on develop when running npm start. The error is copied down below -

[06:40.1]  prerendering failed in 1.49 s
[06:40.1]  inject manifest into service worker finished in 711 ms
[ ERROR ]  Minify JS
Unexpected token: punc (:)
[06:40.1]
build failed in 12.01 s

Closing the ticket, after next iteration of changes are made I will rerun lighthouse and open a new ticket if needed.


is it possible  to customize onnx-mlir with multi-frontend?

Hi,
our team want to custom onnx-mlir with multi-frontend (such as tensorflow,pytorch,mxnet), is it need much workload?
thx

In general, the input of the ONNX is a custom process that scan the protobuf. It is probably similar for the intake of the other frontends. I believe you may be happier (meaning less work) if you keep all your front end separate, and they all produce MLIR dialects that you can then process. It is easy to create a driver that, depending on what input file is given and/or options, create a separate process to transform your inputs into mlir dialects, and then you process them in a unified manner. See our Command data structure in src/CompilerUtils.hpp/cpp for a way to call processes that perform compiler-related activities.


Remove the constraint of having  2 servers

Allow a repo to install the executable scipts for a variable number of servers
Use case: a computer is used to control 6 cameras. I want to have pysilico_server_1 to pysilico_server_6 properly installed and configured. The scripts must be run without argument: pysilico_server_1 always refer to the entry "avt1" of the config file. If I need to modify the behaviour of the server I must modify the config file (and only that).
Issue: In the current implementation, pysilico_server creates only 2 executables (pysilico_server_1 and pysilico_server_2) and 2 shortcuts (pysilico_start and pysilico_stop) to start and stop the 2 servers. There is no way of defining 6 servers and create the 6 executables
Note: the executable is a scripts of the kind python pysilico_server.py /path/to/pysilico_server.cfg avt1
The 2 created executables differ only for the server ID ('avt1' and 'avt2') that points to the corresponding section in the only pysilico_server.cfg config file that is installed in the computer.
The executable scripts are statically created by the setup.py (console_scripts), at the time of package installation, prior to any user modification of the conf file. Therefore the config file cannot be used to generate the proper number of scripts.
Each setup-generated-script specifies the server entry to use. The ID of the server entry in the config file is defined in Constants.py (e.g 'avt1', 'avt2' for pysilico [0]) and is statically defined in the code.
Solution 1:  quick and dirty. Define statically a large number of servers (8/16?). There will always be pysilico_server_16 that most likely will have a missing definition in the config file. An entry "nservers" or a list of IDs must be added to the [processMonitor] section of the config file to specify how many / which servers to start when pysilico_start is invoked. The fact that there are 16 scripts installed is a minor annoyance, since we would always use pysilico_start to start all the servers we need.
Solution 2: find a way of creating the proper scripts from the config file "a posteriori", i.e. every time the config file is modified... sounds stupid.
[0]: btw 'avt1' is misleading, it should be 'server1' - not related to the actual camera device.

Alfio has addressed this issue in pysilico and plico_motor (see e.g. this commit ). The number of [cameraX] or [motorX] entries determines the number of server to be started.
plico_dm and plico_interferometer are still missing this feature.
There is quite some code duplication in process_monitor that could possibly be moved in plico


metrics: Add metrics label filter configuration

Currently, metrics are all-or-nothing.
Certain labels may cause cardinality issues.
This patch introduces a new configuration option - MetricsLabelFilter. It is an allow-list for configuring namespace, workload, pod, and binary. Labels that utilize these fields will only add them if configured for it.
Fixes: #1037

This looks reasonable to me. @lambdanis any opinions?

Thanks for tackling this @nap32! The overall approach looks good to me. I left a few comments - mostly considering maintainability, I think we could make this feature a bit easier to use (when adding metrics) and extend.

Awesome!
I had responses to two of the comments you left for feedback,
I just want to make sure we're aligned and aware of the trade-off for developer usage.
I originally had implemented the function as your suggestion describes,
and if we want to go that route I can change it back no problem!

Without analysing all possibilities in detail it's unclear to me what happens when a user passes a label that's not in KnownMetricLabelFilters or passes labels in different order. Ideally, we would have some validation for such cases to prevent unexpected behaviour. But if it's a big effort, then having at least test cases covering them would be good, so that the behaviour is somehow documented.

The filtering function's major constraint is that the last strings passed need to correspond to the labels listed in consts.KnownMetricLabelFilters and remain in the order that the slice lists them in. I believe this is an unavoidable constraint.
As long as your last N arguments are the values listed in consts.KnownMetricLabelFilters, you're good to go.
If you pass the last N values out-of-order, they will be filtered incorrectly as if in the order they appear in the consts slice.

This would be the same as if you passed the values out-of-order to the Prometheus .WithLabelValues(string...).

This could mean that a value that should be filtered out is left in and listed under a different metric label, or that a value that should be left in is filtered out by mistake and would cause issues with correctness.

If you pass more than N values (where N is the len(consts.KnownMetricLabelFilters)), the first preceding values are returned in the result in an effort to avoid requiring slice operations.

It is not possible to check for this ordering, as the function is used for both defining metrics and incrementing them;
there would be no reasonable way to validate that a "namespace" label value isn't a "pod" label value by mistake.
Do you agree?
I'll add another comment clarifying the intent of the function and try to highlight the importance of the function's contract / constraints. It is important to clarify this, as even if we remove the offset and require the developer to manage slice operations the expectation for ordering will remain.

Regarding tests, it looks like the global config change of MetricsLabelFilter leaks into other tests breaking them?

I've corrected this and the other issues you've raised, thanks for pointing those out!

Thank you for the updates and responses @nap32. I think we should reuse consts.KnownMetricLabelFilters in metrics definitions and then we'll be good to go.
Regarding edge cases - one thing I was considering is a user passing in Helm values unexpected labels, for example ["type", "namespace", "ip", "pod"]. IIUC, this is a valid config, and will result in "namespace" and "binary" being included in metrics, and "workload" and "pod" excluded. The additional "type" and "ip" labels passed won't change anything, right?

Thank you for the updates and responses @nap32. I think we should reuse consts.KnownMetricLabelFilters in metrics definitions and then we'll be good to go.

Got it! I'll introduce the change shortly.

Regarding edge cases - one thing I was considering is a user passing in Helm values unexpected labels, for example ["type", "namespace", "ip", "pod"]. IIUC, this is a valid config, and will result in "namespace" and "binary" being included in metrics, and "workload" and "pod" excluded. The additional "type" and "ip" labels passed won't change anything, right?

I think there is a typo in the example above, but the expectation is correct.
If [ "namespace", "ip", "type", "binary" ] is passed as a configuration:

"namespace" and "binary" would be included in the metrics.
"ip" and "type" would be ignored, since they aren't in the consts.KnownMetricFilterLabels.
"workload" and "pod" would not be included in the metrics.

I think there is a typo in the example above, but the expectation is correct.

Yes, thanks!

I ran the suggested command from the lint helm chart job (cd install/kubernetes && ./test.sh) and the tests passed.
Is there something else I should be doing with this to validate the test locally?
Do you have any suggestions on how I might troubleshoot the e2e tests?
Is there any documentation on running these locally w/ my own kind cluster, or can I copy-paste the command?
I'm sure I've made a mistake somewhere, but it is unclear to me why I've caused these networking errors:

https://github.com/cilium/tetragon/actions/runs/6177694851/job/16886826129?pr=1444#step:7:101
https://github.com/cilium/tetragon/actions/runs/6177694851/job/16886825841?pr=1444#step:7:101

Working on testing the metric changes end-to-end -- just sharing how you might stand up a local Prometheus server to test. Would it be helpful to add this to the documentation as a separate change/PR?

Run the local tetragon build in kind as described here: https://tetragon.cilium.io/docs/contribution-guide/development-setup/#running-tetragon-in-kind
Grab the ClusterIP for the metrics endpoint: kubectl get services -A
Set the ClusterIP and metrics port in the prometheus-config.yaml provided below.
You can't rely on a NodePort because kind's cluster is running in a container. Instead, kubectl port-forward service/prometheus 9090:9090.
Open the Prometheus UI in your host's browser to query metrics and review labels: http://localhost:9090/

prometheus-service.yaml
apiVersion: v1
kind: Service
metadata:
  name: prometheus
spec:
  type: NodePort
  ports:
    - port: 9090
      targetPort: 9090
  selector:
    app: prometheus

prometheus-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: prometheus
spec:
  replicas: 1
  selector:
    matchLabels:
      app: prometheus
  template:
    metadata:
      labels:
        app: prometheus
    spec:
      containers:
        - name: prometheus
          image: prom/prometheus:latest
          args:
            - "--config.file=/etc/prometheus/prometheus.yml"
          ports:
            - containerPort: 8080
          volumeMounts:
            - name: prometheus-config-vol
              mountPath: /etc/prometheus/
      volumes:
        - name: prometheus-config-vol
          configMap:
            name: prometheus-config

prometheus-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: prometheus-config
data:
  prometheus.yml: |
    global:
      scrape_interval: 15s
    scrape_configs:
      - job_name: 'prometheus'
        static_configs:
          - targets: ['<TETRAGON CLUSTER IP>:2112']

I'm not seeing the labels attached to metrics like I'd expect to,
I still need to work on this PR.

@nap32 I see there are conflicts with the main branch, can you rebase your PR?
It looks good to me now. I tested your changes locally and I saw the labels I expected.
For a simple local test you can also access the metrics endpoint directly, without running Prometheus. Port-forward the service:
kubectl -n kube-system port-forward svc/tetragon 2112:2112

and then you can read the metrics in the text format at localhost:2112/metrics.

@nap32 I see there are conflicts with the main branch, can you rebase your PR?

Yes!

It looks good to me now. I tested your changes locally and I saw the labels I expected.
For a simple local test you can also access the metrics endpoint directly, without running Prometheus. Port-forward the service:
kubectl -n kube-system port-forward svc/tetragon 2112:2112

and then you can read the metrics in the text format at localhost:2112/metrics.

Wow, this is a simple and straightforward way to test -- thanks.
I was over-complicating it. :+1:


Date not matching with weekday if weekend is Saturday and week begins with Sunday #121

Version of flutter_calendar_carousel
1.3.18
Expected behavior
1st November 2019 is on Friday.

Actual behavior
1st November 2019 is on Thursday.

flutter doctor result (run flutter doctor in terminal)
[√] Flutter (Channel beta, v1.10.7, on Microsoft Windows [Version 10.0.18362.476], locale en-IL)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.4)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.38.1)
[√] Connected device (1 available)
! Doctor found issues in 1 category.
Steps to reproduce the behavior
Issue occurs by decreasing a variable named "_startWeekday" by 1.
Solution may be if we avoid decreasing.
I deleted some lines in function _setDatesAndWeeks() and everything works good.
File name: flutter_calendar_carousel.dart, Lines: 754-757:
_startWeekday = date1.weekday - firstDayOfWeek;
if (widget.showOnlyCurrentMonthDate) {//delete me
_startWeekday--;//delete me
}//delete me
Please test and report.

@mrmarmor Could you please try our recent version which is 1.4.8? I remember this was in the previous issue which is already resolved. Please feel free to reopen when you still face the problem.


WIP / Superseded script: erroneous use of CFG_PREFIX

Fixes references to CFG_PREFIX, which in reality referred to the location of installation of invenio executables. These should be in the PATH environment variable.

IMHO the CFG_PREFIX is fine as it's defined in invenio/base/config.py.

@jirikuncar The problem is that, in the code, it is used interchangeably with root (/ if installing as root outside a virtualenv).
So the binaries would end up in /usr/local/bin, because that's what pip defaults to, while CFG_PREFIX would be /usr. So code tries to look into /usr/bin/foo.

Additionally, will can there ever be a sane reason to edit CFG_PREFIX?

@dset0x I don't think so.

There is a lot of parts like :
 for cmd in ("webaccessadmin -u admin -c -a -D",
    "webcoll -u admin",
    "webcoll 1",
    "bibsort -u admin --load-config",
    "bibsort 2", ):
    if os.system(cmd):
        print("ERROR: failed execution of", cmd)
        sys.exit(1)

It will be cool if the code could be factorized by creating a function taking a list of command to execute.

creating a function taking a list of command to execute

The goal is to remove all os.system calls in the future.

Please note that killing CFG_PREFIX goes hand-in-hand with #2829, which is why I have reflected the changes from this commit in that PR as well.

The goal is to remove all os.system calls in the future.
In the sense of getting rid of calls to executables or replacing these calls with invenio.utils.shell:run_shell_command?

It will be cool if the code could be factorized by creating a function taking a list of command to execute.
@PXke That would be nice, except I am not sure what a logical name for that list is, or where it would make sense to define it.

@jirikuncar Comment above

@dset0x it would be nice not use OS call just to run our own python scripts. What about calling directly the appropriate main functions with correct arguments (e.g. something like https://github.com/inveniosoftware/invenio/blob/master/invenio/testsuite/test_manage.py#L63-L92)?

@jirikuncar I'm not sure about the advantages of this approach. Given that these modules do not have a pythonic api (like we are do with new modules), I think it's better if we leave it to the OS to handle them (for example we are not risking some random exception bubbling up to the calling code or crashing).

the advantages of this approach.

You don't have to rely on OS PATH and you don't have to instantiate new application contexts over and over again when calling scripts.

we are not risking some random exception bubbling up to the calling code or crashing

I see it as positive. If something crashes then we should get clear pythonic exception.

@jirikuncar That was enough to convince me! I'll look into doing it when possible.

Migration notes finalized. This PR now assumes that #2829 gets merged (eg it does not access CFG_PREFIX anymore), so consider it blocked until that's done.


Get master-overhaul current with bugfixes, changes, and Spain locale

All of these changes have been peer-reviewed, just catching up the master-overhaul branch.


Bad vertical alignment of categories with long names

v.2.0.11 win7
seen on ob://QmdhCMFKrMXYbe65wLPAAeb9xx9BbyuuPsUPiG8GgHG3fn/store

I think I have a duplicate on this one.

It's not duplicated (your issue: #434)

Here's a design of how the list would ideally display:
Current

Ideal


Add E2E tests for blazor templates

The work involves moving the templates into the templating repo.
Modifying the server-side E2E test to include the client-side version in its two flavors.

@mkArtakMSFT Can you please move this out of preview8?

Done as part of https://github.com/aspnet/AspNetCore/pull/17410


Support "href" in resource identifier objects

It is sometimes useful for a resource identifier object that points to a resource that isn't included in the document to contain the URI of that resource. That way, the client can request it without having to ask for the whole "related" collection, and without the server needing to support the related endpoint.
This need has come up repeatedly on the discourse forum, and is also the issue in #477.
Here, I'm suggesting we address this use case by adding an "href" key to resource identifier objects. I prefer this approach over, say, adding a "links" key to resource identifier objects, because it stresses the conceptual similarity between link and resource identifier objects (without going as far as I propose in #913). By contrast, adding a "links" key would suggest a similarity between resource objects and resource identifier objects, which are conceptually very distinct and are (if anything) already too easy to confuse.

Actually, let's hold off on merging this... I want to think more about whether it's appropriate. Because, while it's true that resource identifier objects point to a target of a particular link relation (and in that sense are very much like link objects), they also have a dual nature of being primary data (and so being paginatable etc.). Therefore, maybe a "links" key in them (with a "related" link??) is appropriate.
Thoughts?

Hmmm ... I agree that we need to pause and carefully consider whether links or href is more appropriate for resource identifier objects. Everywhere that we allow links we allow a self member, and yet the spec doesn't have the concept of allowing direct access to an identifier object (nor do I see value in allowing that). I suppose we could allow links and not self. As for href - I find it to be a bit inconsistent with the rest of the spec.

By contrast, adding a "links" key would suggest a similarity between resource objects and resource identifier objects, which are conceptually very distinct and are (if anything) already too easy to confuse.

Why do you see them as conceptually very different. I thought of resource identifier objects as a subset of resource objects. To even stress it more: I don't see how a resource object without any field and without meta is distinct from a resource identifier object. At the end of the day it would be the same JSON.
Treating resource identifier objects as a subset of resource objects would simplify this question a lot. The links.self in a resource object could be the same as for the corresponding resource identifier object.
As dgeb pointed out, having dedicated self link for a resource identifier object does not seem to provide any value. But even if we want that, we could add a dedicated member to links of a resource object and resource identifier object for it. We could name it links.identifier for example.

I'm going to close this. The PR is stale for a couple of years now. @ethanresnick and @dgeb shared in their last comments that they aren't convinced that it is the right direction.


e2e add registry provisioner bundleinstance test

Adding one bundle with the registry provisioner and one bundleinstane with the plain provisioner.

I merge this without closing related issues #427 and #430.


[GitHub Stars] Can't find the Stars

Extension
https://www.raycast.com/mrmartineau/search-github-stars
Description
There is no error in the network or username, but it keeps showing user does not exist.
Steps To Reproduce
1.Setting the user name
2.Shortcut Search
Current Behaviour
No response
Expected Behaviour
No response

@0x0-00 Which username are you adding to the extension's settings? If I use yours, I am able to see your stars:

Double-check the extension settings and let us know if the bug is still present.

There are no errors in the username, and occasionally the query succeeds, but in most cases the query fails while the request is being processed. Can we wait a little longer?


Add warning/error messages on login screen

This PR adds a couple simple error/warning alerts that are configurable via env variable.
It supports a warning message that still allows the user to login (in case they want to sign in and access their old data/reports, as well as an error version that blocks the login process entirely.
The messages themself are set in the env variable, so we can include useful info like the url for the new tool, and reminders to update their bookmarks, etc...
If login is fully disabled:

If it's only a warning message:

Thanks for putting this together!

One thought is it would be nice for the URL to be a clickable link. Could either use something like this to linkify via regex, make the env variable be HTML, or change the structure of the message so the text and URL are in separate variables.

@mattbroussard  I considered making the link clickable, but decided against it for a couple minor reasons:
First: I wasn't thrilled with any if the implementation options (installing a new dependency for a temporary feature seems like overkill, raw html seems error prone, as does making the message and url separate env variables that could be sent separately.
Second: I'm actually not mad about the user having to copy/paste the link, because if they're seeing this message it probably means that they followed an out-of-date bookmark that they should edit anyways. The more painful this 'follow-the-link' process is, the more likely they are to update the bookmark and not make the mistake again in the future.
If you feel strongly about making it clickable I can definitely add it though! Just let me know


Gas limit for Closing Loots

Added a limit for closing Loots as well.
Useful if doing a last loot before sleeping and then start mines after and not get reckdd by gas fees.

Looks great @loayei , thanks!
Before I merge with master, could you please:

Linted the code with black, and
update .env.example with the setting?

Cheers,
Cocco

Just updated as requested..

Thanks @loayei !
I am merging 💪


Possible to log files removed with --cleanup

Would it be possible to add the list of files removed with --cleanup either within the current report or in a separate report generated? This would be good to see if there are accidental deletes or also for syncing deleted across outputs.

Yes, this wouldn't be too hard.  The cleanest is probably to add the deleted files to the existing report.  In the mean time you can run --cleanup with --verbose and look for the lines beginning with "Deleting".  For example:
osxphotos export ~/Desktop/export --verbose  --exiftool --cleanup | grep Deleting

Yeah - Adding to the existing report would be great!

Fixed in v0.41.3


Make proper distribution

The distributed zip file is a tarbomb that does not help deployment.
This commit provides a Makefile that automatically creates a zip file
out of the repository.

use simpler make file

Oh nice bca5dfe827d0be72ce55393863d996da2071c0eb ! I wasn't aware of git-archive. Thanks! :)


[Bug] Decorators for arrow functions. Unable to resolve signature of property decorator when called as an expression. ts(1240)

TypeScript Version:  3.7.5
Search Terms: decorators for arrow functions
Code:
Error: Unable to resolve signature of property decorator when called as an expression. ts(1240)
function decorator(target: any, propertyKey: string, descriptor: PropertyDescriptor) {
}

class TextClass {

    @decorator
    arrowFunction = () => {

    }
}

Expected behavior:  For decorator to be recognized as method decorator.
Actual behavior: Decorator recognized as property decorator, resulting in error.
Purpose of using arrow functions is to preserve this context as class when passing class methods to child nodes in react instead of binding this for each method in class constructor.
Playground Links:
Doesn't work with an arrow function
and
Works with a usual function

See #19528
This is a property, not a method.


Add a removeAll method to the ToastManager to allow dismissing all active toasts

This is useful for things like top level navigation or a big change in what is on screen where the toasts that might still be up pending a timer no longer make sense. If you save a resource and then navigate away to a totally different section of the app, the toast might be on top of something very different and weird. So, its handy to have an imperative way to just dismiss everything to make sure users don't get that dissonance.

ping @jossmac any chance we could get this in & released?

ping @jossmac ?

@airhorns good idea, seems like it should live in "consumer land" though. I think this will be easier now with hooks:
const { removeToast, toasts } = useToasts()
const removeAllToasts = () => toasts.forEach(({ id }) => removeToast(id))


ENOENT: no such file or directory, stat chardet package

When deploying a Queue Trigger app and having the azure-storage-blob package installed, the app fails to deploy because the KuduSync process is looking for a file in the chardet lib that doesn't appear to exist in my .python_packages folder that is generated by the --build-native-deps pre deployment task.
7:06:54 AM wjtestqueutrig: Error: ENOENT: no such file or directory, stat '/tmp/zipdeploy/extracted/.python_packages/lib/python3.6/site-packages/chardet-3.0.4.dist-info/chardetect,sha256=fadXTQgqo6bB2Ofhhd0rG4HjgXzoiXwYp2Dtv3EI80c,229
Edit: When deploying to a new Consumption plan, the requirements.txt / init below work successfully.  I am still experiencing this issue when deploying to brand new app service plan.
Investigative information
Please provide the following:

Timestamp: 7:06:54 AM 2019-10-11 CST
Function App name: wjtestqueutrig
Function name(s) (as appropriate): QueueTrigger
Core Tools version: 2.7.1704

Repro steps
Provide the steps required to reproduce the problem:

Expected behavior
Expected to successfully deploy the Azure Function.
Actual behavior
I receive the following error and the contents of my QueueTrigger function never makes it up to Azure / the App Service as observed in Kudu / SSH.
The most interesting line in this error is 7:06:54 AM wjtestqueutrig: Error: ENOENT: no such file or directory, stat '/tmp/zipdeploy/extracted/.python_packages/lib/python3.6/site-packages/chardet-3.0.4.dist-info/chardetect,sha256=fadXTQgqo6bB2Ofhhd0rG4HjgXzoiXwYp2Dtv3EI80c,229  I don't know where this file is coming from.  I looked in my .python_packages and it doesn't exist there so perhaps this is an issue with the KuduSync command?

Deployment to "wjtestqueutrig" completed.

Known workarounds
If I don't need azure-storage-blob, the function works fine.  In this simplified example, I don't need it (as the init never calls azure.storage.blob) but I DO need it for the actual application I'm building.
Related information
Provide any related information

Links to source
Contents of the requirements.txt file
Bindings used

Source
# __init__.py

import logging

import azure.functions as func

def main(msg: func.QueueMessage) -> None:
    logging.info('Python queue trigger function processed a queue item: %s',
                 msg.get_body().decode('utf-8'))

asn1crypto==1.0.1
azure-common==1.1.23
azure-functions==1.0.4
azure-storage-blob==2.1.0
azure-storage-common==2.1.0
certifi==2019.9.11
cffi==1.12.3
chardet==3.0.4
cryptography==2.7
idna==2.8
pycparser==2.19
python-dateutil==2.8.0
requests==2.22.0
six==1.12.0
urllib3==1.25.6

Please update your core tool to the latest version >= 2.7.1724, and instead of --build-native-deps, please publish your python app with func azure functionapp publish <app_name>.
We recently introduce remote build which will resolve your function app's dependency on our servers.

I am facing the same issue on Kudu with Azure App Service

@Hazhzeng : At a customer level Azure DevOps will be used to deploy things. Func core tools is used for local testing/debugging and beyond that it will be Azure DevOps.
Does the DevOps pipeline support remote build? For Appservice vs Consumption? If not, it should be targeted to first get some support there.

From my knowledge, no, currently DevOps for Linux Consumption is still using WEBSITE_RUN_FROM_PACKAGE deployment.

@Hanzheng - they are asking about App Service plan

Would you mind trying to add an App Setting WEBSITE_RUN_FROM_PACKAGE = 1 to your function app and then retrying.

@ankitkumarr @anirudhgarg Yeah, adding that Variable in the App Settings fixed the problem. Do I have to do this for every app I deploy? Can I expect this error to re-appear even if I don't make any changes to my cloud architecture or configuration in production?

@PrateekVachher - We have seen Kudu Sync be sometimes problematic when we have a running app if you are not using Run from Package. So for this scenario yes it is recommended to use WEBSITE_RUN_FROM_PACKAGE=1

We are experiencing this as well, except with an existing production app that we have successfully deployed to many times. Setting WEBSITE_RUN_FROM_PACKAGE = 1 failed as well (it said to check diagnostic logs). This is an urgent problem - please advise?

@bmurphy92 Are you seeing the exact same symptoms and is the app also using azure-storage-blob.  If it is affecting production I would suggest to open a support ticket.

@anirudhgarg yes, we are experiencing the exact same error message.
2019-10-18T22:48:05  Fetching changes. 2019-10-18T22:48:05    Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/5ebee4e9-ba68-4bca-acb6-822e8a1d481d.zip (52.19 MB) to /tmp/zipdeploy/extracted 2019-10-18T22:48:15  Updating submodules. 2019-10-18T22:48:15  Preparing deployment for commit id '0a1f9ee145'. 2019-10-18T22:48:15  Generating deployment script. 2019-10-18T22:48:15    Using cached version of deployment script (command: 'azure -y --no-dot-deployment -r "/tmp/zipdeploy/extracted" -o "/home/site/deployments/tools" --basic --sitePath "/tmp/zipdeploy/extracted"'). 2019-10-18T22:48:15  Running deployment command... 2019-10-18T22:48:15    Command: "/home/site/deployments/tools/deploy.sh" 2019-10-18T22:48:15    Handling Basic Web Site deployment. 2019-10-18T22:48:16    Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot' 2019-10-18T22:48:16    Copying file: '.dockerignore' 2019-10-18T22:48:16    Copying file: 'Dockerfile' 2019-10-18T22:48:16    Copying file: 'README.md' 2019-10-18T22:48:16    Copying file: '__init__.py' 2019-10-18T22:48:16    Copying file: 'host.json' 2019-10-18T22:48:16    Copying file: 'requirements.txt' 2019-10-18T22:48:16    Copying file: '.python_packages/requirements.txt.md5' [SNIPPED FOR BREVITY] 2019-10-18T22:48:17    Omitting next output lines... 2019-10-18T22:48:18    Error: ENOENT: no such file or directory, stat '/tmp/zipdeploy/extracted/.python_packages/lib/python3.6/site-packages/chardet-3.0.4.dist-info/chardetect,sha256=fadXTQgqo6bB2Ofhhd0rG4HjgXzoiXwYp2Dtv3EI80c,229 2019-10-18T22:48:18    ' 2019-10-18T22:48:18    An error has occurred during web site deployment. 2019-10-18T22:48:18    Kudu Sync failed 2019-10-18T22:48:18     /opt/Kudu/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh" 2019-10-18T22:48:18   2019-10-18T22:48:18  App container will begin restart within 10 seconds.
It isn't realistic to provide a reproducible example, as this Azure function is a fairly complex process that hits several SQL server databases and Azure Blob storage containers.
Some information:

Unlike @wjohnson, this isn't a new Azure function, it has been running for about 4 months and we have deployed to it (whether to staging or production) over 20 times without issue
We use Azure CLI via powershell to deploy, with the command func azure functionapp publish <name> --build-native-deps. We have not been running from a package
It just started failing on Friday. but we unfortunately did not catch it because it fails silently through Azure CLI in Powershell (it looks like a success). It was not until we were doing final testing on our staging environment over the weekend that we realized the function had not been updated and checked the Kudu deployment logs and discovered the issue

Questions:

What is the best way to create a support ticket for this issue? Is there a specific team we should reach out to?
In the meantime, I'd like to try to publish the function with WEBSITE_RUN_FROM_PACKAGE = 1. However, there is very little documentation for how to do this with a Python Azure function
Do we need to create a new Azure function to run from package? What Azure CLI command should we use to deploy? func azure functionapp <name> --build-native-deps, or something else? It is confusing because when we deploy via the Azure CLI, we receive a message that says Assuming --nozip (do not run from package) for publishing to Linux dedicated plan. which seems to contradict your and @ankitkumarr guidance on this bug report to run the Python function from package

Thanks.

@bmurphy92, I think you are most likely using an old version of azure-functions-core-tools. You can check using func --version. The current release is 2.7.1724.
Would you mind trying the new version of core-tools? We made a ton of improvements recently when Python was announced GA.

@ankitkumarr ok, we upgraded to 2.7.1724. I assume we should then set WEBSITE_RUN_FROM_PACKAGE = 1.  What publish command should we run?
We tried with:

func azure functionapp publish <name> --build-native-deps and got an error: cannot use --build-native-deps along with --build flag
func azure functionapp publish <name> and got an error saying access to the site-packages folder in our local .venv was denied

Any guidance or direction to documentation would be helpful. Thanks!

@bmurphy92 Sorry for the inconvenience. We recently default remote build as the python function app deployment method.
Seems like the when trying to pack your local content in the virtual environment folder .venv/, so files are acquired by other processes.
To resolve this issue, could you create a .funcignore file on your function project root and add a line .venv in it. This will exclude the virtual environment from our pack process.

@Hazhzeng thanks for the guidance. We were able to get the deployment working with the default command func azure functionapp publish <name> and WEBSITE_RUN_FROM_PACKAGE = 1 after upgrading the azure function core tools to 2.7.1724.  After it failed the first time, we realized that docker was not running locally. We restarted docker and then it published successfully. Not exactly sure why, but I suspect it has something to do with the Dockerfile & .dockerignore files we had in the project root to support the old --build-native-deps deployment approach with the out of date azure function core tools.
I suspect those should no longer be necessary, and we should get rid of them and then add the .funcignore file as you suggest?
Thanks for the help. Obviously we're a little inexperienced here, we had some vendors who set this up a few months ago and we are maintaining it internally now.

Hi @bmurphy92, glad that you make it working 👍
Yes, we suggest publishing with the command func azure functionapp publish <name>. Since remote build can significantly reduce the uploading package size, using .funcignore file can precisely control the content you want to ignore when publishing to Azure.

Based on the feedback of the folks on this thread and the solutions proposed by @Hazhzeng and @ankitkumarr  I am going to close it out. Please re-open if the solutions in this thread do no work for you.


Avoid crashing at "open file" dialog (Fix #5541)

What does the pull request do?
Avoid crashing at "open file" dialog
What is the current behavior?
Crash if the directory doesn't exist
What is the updated/expected behavior with this PR?
Won't crash if the directory doesn't exist
How was the solution implemented (if it's not obvious)?
catch DirectoryNotFoundException
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Avaloniaui.net with user documentation

Breaking changes
N/A
Fixed issues
Fixes #5541

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: jeffreye sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@jeffreye ping me when this is done

Change has been committed

From: Jumar Macato<EMAIL_ADDRESS>Sent: Tuesday, February 23, 2021 12:33:28 AM
To: AvaloniaUI/Avalonia<EMAIL_ADDRESS>Cc: Jeffrey Ye<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [AvaloniaUI/Avalonia] Avoid crashing at "open file" dialog (Fix #5541) (#5542)
@jeffreyehttps://github.com/jeffreye ping me when this is done
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/AvaloniaUI/Avalonia/pull/5542#issuecomment-784004020, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANIHUAN4QU63BCGIGJ3QZTTANR5RANCNFSM4YB7W67A.


Searching from the browser search box

How to use opensearch.xml to turn on search from the browser search box and create autodetection of your search solution. Here's the most important docs from opensearch.org: http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions/1.1#Example_3

Just describe what, and how to puzzle together the JSON that opensearch needs (query + results)


Submission revision: update bibtext entry on every new revision

If the submission has the _bibtex entry in the content then we should update it with the new title or list of authors.

Is this fixed?


Sciunit fails with invalid literal for int() with base 10

Using podman run -it --rm ubuntu:22.04 /bin/bash,
root@86d0ed87d5be:/# apt update && apt install -y python3 python3-pip
...
root@86d0ed87d5be:/# export PATH=/root/.local/bin:$PATH
root@86d0ed87d5be:/# pip install --user sciunit2
...
root@86d0ed87d5be:/# sciunit create test3
Opened empty sciunit at /root/sciunit/test3
root@86d0ed87d5be:/# sciunit exec /bin/true
... lots of hex numbers ... - Committing Traceback (most recent call last):
  File "/root/.local/bin/sciunit", line 8, in <module>
    sys.exit(main())
  File "/root/.local/lib/python3.10/site-packages/sciunit2/cli.py", line 64, in main
    _main(sys.argv[1:])
  File "/root/.local/lib/python3.10/site-packages/sciunit2/cli.py", line 101, in _main
    r = cmd.run(args[1:])
  File "/root/.local/lib/python3.10/site-packages/sciunit2/command/exec_/__init__.py", line 36, in run
    return self.do_commit('cde-package', rev, emgr, repo)
  File "/root/.local/lib/python3.10/site-packages/sciunit2/command/mixin.py", line 18, in do_commit
    sz = repo.checkin(rev, pkgdir, sp)
  File "/root/.local/lib/python3.10/site-packages/sciunit2/version_control.py", line 43, in checkin
    return int(err)
ValueError: invalid literal for int() with base 10: b'tar: cde-package/cde-root/usr/bin: file changed as we read it\ntar: cde-package/cde-root/usr/lib/x86_64-linux-gnu: file changed as we read it\n3256320\n'

Did you also try the same sequence on Ubuntu 20.04? For us, it works.
Ubuntu 22.04 has been giving us some issues for a while. We are working on it during the break. So bear with us.
A little more explanation on what you are trying to achieve will allow us to help you better.

A little more explanation on what you are trying to achieve will allow us to help you better.

I am just trying to use sciunit in a basic example: create test3 and execute /bin/true in test3 (/bin/true should just exit 0). I'm only using Podman, so I can test on a blank-slate environment, and hopefully those errors will be reproducible.
I tried in 20.04 and 18.04, same error. It can be seen executing just one line of code code (~3 mins):
podman run -it --rm ubuntu:20.04 /bin/bash -c 'apt update && apt install -y python3 python3-pip && pip3 install --user sciunit2 && /root/.local/bin/sciunit create test3 && /root/.local/bin/sciunit exec /bin/true'

Did you also try the same sequence on Ubuntu 20.04? For us, it works.

So the exact sequence of commands at the beginning works in Ubuntu 20.04? Perhaps errors are not as reproducible in Podman as I thought.

Is your Podman configured to execute ptrace?
We can look into Podman configuration and post an update.
Also, does the same sequence work for you on an Ubuntu 20.04 machine--may be a nano instance of AWS or a Docker container?
I didn't quite get what you mean by "exact sequence of commands at the beginning works in Ubuntu 20.04?
The error certainly seems to be a conflict with the base image of Podman and sciunit library conflict.

Actually, to be more accurate, I would say the host operating system must be Linux, Windows, or Intel-based macOS regardless of the actual hardware CPU.
If someone manages to install (a supported version of) Linux on macOS M1/M2 (Maybe with something like VirtualBox or Parallels, or natively using some hacks), sciunit could probably work.

Is your Podman configured to execute ptrace?

I believe so, because the following strace command works:
podman run -it --rm ubuntu:22.04 /bin/bash -c 'apt update && apt install -y strace && strace ls'

What is the H/W on which Podman is working on? ARMs won't work, only Intel CPUs
My host (outside the Podman container) is NixOS Linux, Intel x86_64.

$ uname -a
Linux laptop 6.1.64 #1-NixOS SMP PREEMPT_DYNAMIC Tue Nov 28 17:07:23 UTC 2023 x86_64 GNU/Linux

$ lscpu | head
Architecture:                       x86_64
CPU op-mode(s):                     32-bit, 64-bit
Address sizes:                      39 bits physical, 48 bits virtual
Byte Order:                         Little Endian
CPU(s):                             8
On-line CPU(s) list:                0-7
Vendor ID:                          GenuineIntel
Model name:                         11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
CPU family:                         6
Model:                              140

Also, does the same sequence work for you on an Ubuntu 20.04 machine--may be a nano instance of AWS or a Docker container?
Very interesting, this podman run ... sciunit... command succeeds in AWS but not on my local machine.

The error certainly seems to be a conflict with the base image of Podman and sciunit library conflict.
That command calls for a "vanilla" base image of Ubuntu. If sciunit conflicts with a vanilla Ubuntu base image, how do I need to modify it to work with Sciunit?

I think the underlying reason is actually to do with files being changed while the tar is running. The output of tar is:
tar: cde-package/cde-root/usr/bin: file changed as we read it
tar: cde-package/cde-root/usr/lib/x86_64-linux-gnu: file changed as we read it
3256320

Perhaps the virtual file system provided by Podman is slower than the native file system used in other places.


Code highlighting trouble in *.jsx

VSCode Version: Code 1.16.0 (787b31c0474e6165390b5a5989c9619e3e16f953, 2017-09-06T16:19:37.192Z)
OS Version: Linux x64 4.4.0-93-generic
Extensions:

Extension
Author (truncated)
Version

aurelia
Aur
0.3.4

vscode-docker
Pet
0.0.16

sass-lint
gle
0.0.4

sass-indented
rob
1.4.1

vscode-multiclip
sle
0.1.2

(22 theme extensions excluded)

Steps to Reproduce:

Open *.jsx file in editor
Enter the next complex ternary operator:
{ i >= 2 && i < 3 ? "first branch" : i > (j - 2) * 4 ? "second branch" : "third branch" }

As a result, the code highlighter recognizes code between < and the last > as a tag (e.g. <div>).
Another interesting thing: if there is no any (round brackets expression) immediately after the last >, it's all fine.

Opened https://github.com/Microsoft/TypeScript-TmLanguage/issues/518 to track this upstream


static inline functions that are in source files?

I'm confused as to why there are static inline functions for example in auxeffectslot.cpp or context.cpp.  I don't understand what this accomplishes.  Is this only used as a guarantee that these functions can only be used within the given source file?  If so I'm confused as to why such functions weren't just defined in the source file, I've never seen both static and inline functions in used in a cpp file in  C++ before.   I don't see the advantage of having "multiple definition" of in this specific circumstance, and "only this translation unit", it appears that you would never have multiple definition, and it would always be defined for that translation unit if you just defined a function?
I also saw this in effect.cpp:
namespace {

template<typename T>
inline T clamp(const T& val, const T& min, const T& max)
{ return std::min<T>(std::max<T>(val, min), max); }

} // namespace

which really made me scratch my head.   why is this inlined, why is it in an empty namespace.  It looks like you just wanted clamp for this file, even if using C++17 and didn't want to overwrite it any where else?  I guess its inlined because you want to have multiple definitions of the same signature?  wouldn't it just be better to provide a header to that defines this if you don't have c++17 or just uses c++17 if you have it?

I'm confused as to why there are static inline functions for example in auxeffectslot.cpp or context.cpp. I don't understand what this accomplishes.

static means the function is only accessible to the current source file, and inline tells the compiler I'd prefer the function to be inlined if possible without relying on its heuristics to automatically inline it. So it's for creating small local functions that should be inlined into the caller and other source files shouldn't see or don't need.
The proper "C++ way" is probably to use an anonymous namespace instead of making it static, but it's the same effect.

I also saw this in effect.cpp:
...
which really made me scratch my head. why is this inlined, why is it in an empty namespace.

It's inlined for the same reason as above, to avoid the overhead of calling it as a function. Especially with smaller functions, the amount of work necessary to call it can be about as much as the function itself, so inlining the code makes such cases faster. It's in an anonymous namespace to avoid clashes in case another source also defines a clamp function (if it ends up used in multiple sources, it would be beneficial to move it into a header).

Note the primary reason to today libraries use inline is not to hint the compiler, but to allow multiple definitions in translation units, as the compiler doesn't have to care about your hints and will likely inline things better anyway.  in other words:
"function marked inline can be defined in more than one translation unit without violating the One Definition Rule (ODR)".   It seems there is some consensus now to not use it for hinting at all for modern compilers.
https://softwareengineering.stackexchange.com/questions/35432/inline-functions-in-c-whats-the-point
https://stackoverflow.com/questions/29796264/is-there-still-a-use-for-inline?noredirect=1&lq=1
https://stackoverflow.com/questions/1759300/when-should-i-write-the-keyword-inline-for-a-function-method

Note the primary reason for modern libraries use inline is not to hint the compiler, but to allow multiple definitions in translation units, as the compiler doesn't have to care about your hints and will likely inline things better anyway.

I still prefer to be explicit that I want a function inlined, rather than hoping the compiler has the correct heuristics enabled to automatically see it could be inlined. It also helps me know what the compiler's doing, as it will warn when a function marked inline isn't inlined (and also why it isn't, either being too large or too unlikely to be called), while it won't warn that an unmarked function I think should be inlined isn't.

It also helps me know what the compiler's doing, as it will warn when a function marked inline isn't inlined

Huh, that is pretty significant, I didn't even think to use that as a sort of performance debugging utility.

issues solved in comments


Map doesn't move to its current location sometimes

I'm using this line of code for getting  current location. But it doesn't work sometimes, so map is unable to redirect to its current location.
var position = await CrossGeolocator.Current.GetPositionAsync(20000);
MyMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(position.Latitude, position.Longitude), Distance.FromKilometers(0.5)));
Please give me solution as soon as possible.

I have noticed the same behavior. I was able to get around this by calling both Move functions. Sometimes one works and sometimes the other works.
MyMap.MoveToRegion(span);
MyMap.MoveToMapRegion(span, true);

Actually the exception occurs when i try to get the current position.
On Aug 24, 2017 5:08 PM, "Christi Viets"<EMAIL_ADDRESS>wrote:

I have noticed the same behavior. I was able to get around this by calling
both Move functions. Sometimes one works and sometimes the other works.
MyMap.MoveToRegion(span);
MyMap.MoveToMapRegion(span, true);
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/TorbenK/TK.CustomMap/issues/238#issuecomment-324610888,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdwjVjdl1G4dG8bevvyCqwN8_AtUP7B7ks5sbWCpgaJpZM4O9BHb
.


Does not work to create a App GW, just errors saying it does not exist.

These instructions do not actually create the application gateway so the second half do not even work but give multiple errors due to no application gateway being created. This was less than helpful or even useful. I guess I'll just figure it out, or move to AWS or GCP since Microsoft seems unable to even provide valid instructional tutorials. I would have thought someone had actually used them, apparently not.

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

ID: 51fe6df9-e646-2add-678b-a4383f09715f
Version Independent ID: 77c5735e-9942-e983-d603-5e084993b192
Content: Quickstart: Direct web traffic using PowerShell - Azure Application Gateway
Content Source: articles/application-gateway/quick-create-powershell.md
Service: application-gateway
GitHub Login: @vhorne
Microsoft Alias: victorh

Thanks for the feedback! We are currently investigating and will update you shortly.

@CloudStarMan I followed the instructions, and it did create the App GW for me. Can you please let me know if you are getting any error at the App GW creation step? I would encourage you to open a support case with Azure Support regarding this. Thank you!

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


freeze during generation

I'm working on a relatively large project and I want to generate a compile_commands.json for it. At some point I was able to (at least I have a compile_commands.json that starts and ends with a [ ] pair) and the generate file is about 68 MiB. It did take several attempts, but eventually I got it.
Now I'm trying to refresh that file and the plugin seems to just freeze. Sometimes I won't get any status bar advancement (I left it overnight and it didn't move, output is 2 bytes), some other times it moves up to a point but then stops there. I've been trying for several days now, leaving it running overnight and throughout the da, it's just not working. Can someone help with this please?

Hello, can I get some support on this please?

Hey, what does the plugin's log say? You can enable it by clicking Tools -> Options -> Sourcetrail and set "File Logging" to "True". With that you can choose "Sourcetrail Log" in your "Output" window.

@mlangkabel, a perfectly fair question.
My log never has anything in it.  The plugin spins, doesn't produce anything, and never writes anything to the log.
I tried letting it run overnight, and till got nothing.
I tried applying it to a very small part of the same solution (only one project).  In that case, it did produce something but, as I recall (I didn't take careful notes in this case), it was still wedged and the stuff I got wasn't usable.
Based on these observations, I think this is a problem of scale -- that is, the plugin can't handle very large solutions in a practical way.

Perhaps if the plug-in offered some more-detailed logging, we could send back interesting information.

The log should already state, what projects are processed by the extension when generating the compilation database, or if projects are skipped. It also logs for each source file that it finds in your projects whether or not ir generated a compile command for it. I think that should be a good start.
If you don't want to or cannot share any more details here, you can always checkout the repo and change/build the extension on your own. It should be quite simple to build and run in VS.

This lockup appears to be caused by the presence of solution folders.  Try making an alternate solution file with the same projects that does not use any solution folders.

Fair enough - it's good to have a clear cause.
The solution we're using at my company is large and constructed automatically.  This plugin will remain unhelpful for me until it's improved to comprehend solution folders.

Oh, that's interesting. Can you post the steps to create a minimal solution with those solution folders that would cause such a freeze?

If it helps I found that this works for me:

start the plugin and wait for it to freeze
close the progress bar window but don't quit visual
keep doing ls -hl on the compile_commands file, its size should now be growing
when the compile_commands stops growing process is likely completed successfully

@KingDuckZ Thanks! That works for me!
P.S.: We have a dozen of projects, in some solution folders.

FYI https://clangpowertools.com offers a Visual Studio extension that can create a compilation database.  This is the only thing I've found that is a reasonable alternative.

I'm on windows 10 using visual studio 2019 and have the same problem. Closing the "Creating Compilation Data Base" window did help me and seem to unfreeze the creation. When the file is fully created, the window showing that the creation is finished shows as if nothing bad happened. Thanks @KingDuckZ (:


The issue with Value/Ref#== having a default implementation

I realized that Crystal currently allows comparisons that always fail:
"a" == 'a'  # Not comparable, but accepted by compiler and always returns false
SomeEnum::Member == 10 # Same here (`SomeEnum != Int32` but again accepted and returns false)

I asked on Crystal chat and @asterite and @straight-shoota report that comparing anything to anything (defaulting to returning false) was allowed because otherwise comparing union types would be problematic, and the language would be too rigid. Previous or similar tickets about this issue, which explain it, are #2996, #6154, and #8893. (And #1730 which asks about the same issue.)
(For a very brief example, if such comparisons were prevented, they would have prevented some very reasonably-looking code from working, such as: {1, "a", nil}.includes? 'x')
In any case, the reason why these comparisons are allowed (and always returning false) is this fallback implementation of #== in types Value and Reference:
  # Returns `false`.
  def ==(other)
    false
  end

This seems to me as undesirable because it (1) removes type safety from arguably the most basic operator in a language (==), and also it partially masks Comparable.
I think that both arguments:

Being able to compare anything to anything, returning false
Asking for type safety in a comparison operator

Are completely valid, and in fact they represent two different use cases which shouldn't be hidden behind a single #== operator.
My suggestion is that we add a new operator which implements the other case.
Option 1:
The default implementation of #== is removed, so that the only working #== comes from Comparable or a specific implementation of #==, and is type safe.
Another operator (for example ==?) is added which does what #== currently does (returns false as a fallback).
Option 2:
#== is left as-is, and another operator is added, which enforces type checks.
I think option 1 would be clean and consistent, certainly preferrable, and option 2 would maybe be easier/more viable, all things considered.
@straight-shoota mentioned that he was preparing an RFC about this issue.
@asterite said: "It would be nice if equality was type safe. Someone can try it and see how hard it is to make the std specs pass with that change, and how the code changes."
Comments welcome.

You can send a PR for the first option and see how it goes. Without trying this there's no way to weight this.

You can send a PR for the first option and see how it goes. Without trying this there's no way to weight this.

I don't think option 1 makes any sense, honestly. While there are use cases for stricter and type-safe equality, I doubt it's the best choice for the omnipresent == operator. Also it's a huge breaking change. If we want to introduce a new, stricter equality concept, it should use a new method, not replace an existing one which then gets a different replacement. Just way less friction that way. So change management definitely speaks for option 2.
We should probably add something like Ruby's #eql? method. In Ruby it's terrible naming btw. because there's also #equal? (in Crystal that's called #same? so we're safe here 😆).

I don't think option 1 makes any sense, honestly. While there are use cases for stricter and type-safe equality, I doubt it's the best choice for the omnipresent == operator. Also it's a huge breaking change. If we want to introduce a new, stricter equality concept, it should use a new method, not replace an existing one which then gets a different replacement. Just way less friction that way. So change management definitely speaks for option 2.
We should probably add something like Ruby's #eql? method. In Ruby it's terrible naming btw. because there's also #equal? (in Crystal that's called #same? so we're safe here 😆).

I just want to add that in some languages equality between different types is a compile error. Haskell is one such example. In C# I think they disallow comparing intw to strings, but then you can compare any reference type to any other reference type.
I really commend someone to see if this is possible. I'm almost sure the friction will be too great, but at least we'll have these reasons documented.

I just want to add that in some languages equality between different types is a compile error. Haskell is one such example. In C# I think they disallow comparing intw to strings, but then you can compare any reference type to any other reference type.
I really commend someone to see if this is possible. I'm almost sure the friction will be too great, but at least we'll have these reasons documented.

I can try it. I will try option 1 which is more interesting. Option 2 (which just adds a new method) could be done even now by anyone who reopens a few types and defines that method in there. They don't even need official help from the language.
I agree with everything said about friction, breaking change, etc., but I think it would be quite strange if a type-safe language had to use a non-standard operator (i.e. something other than ==) to turn on type safe checks. Also, it would look pretty unusual if something like eql? became the "normal" equality operator instead of "==".
So option 1 is certainly worth trying, at least so that we know where we stand.
So my plan is, make == stricter by default, and make eql? (just temporary name, doesn't matter) be the current relaxed check:

At every place where def == exists, I will add the same def eql? which uses .eql? instead of ==
Then, remove the default implementations of == which return false
Then, go through compile errors one by one, replacing usages of == with eql? where necessary

If you have better instructions than this, sure let me know.
I already did some of this yesterday. Will update when there are news. Thanks.

I can try it. I will try option 1 which is more interesting. Option 2 (which just adds a new method) could be done even now by anyone who reopens a few types and defines that method in there. They don't even need official help from the language.
I agree with everything said about friction, breaking change, etc., but I think it would be quite strange if a type-safe language had to use a non-standard operator (i.e. something other than ==) to turn on type safe checks. Also, it would look pretty unusual if something like eql? became the "normal" equality operator instead of "==".
So option 1 is certainly worth trying, at least so that we know where we stand.
So my plan is, make == stricter by default, and make eql? (just temporary name, doesn't matter) be the current relaxed check:

At every place where def == exists, I will add the same def eql? which uses .eql? instead of ==
Then, remove the default implementations of == which return false
Then, go through compile errors one by one, replacing usages of == with eql? where necessary

If you have better instructions than this, sure let me know.
I already did some of this yesterday. Will update when there are news. Thanks.

@docelic Did you get anywhere with your trials?

Hey @straight-shoota , thanks for checking. I did some basic testing:

Renamed default implementations of def ==(other) in src/value.cr and src/reference.cr to def eql?
Tried to run make spec

This revealed that the first/simplest cases where the fallback to default == happens are comparisons of type Nil == NonNil and NonNil == Nil.
I took care of those two types of cases globally by defining a specific def ==(other : Nil). Through further cases that errored, I realized that the issue happens primarily with type unions, where only some of the possible types in a union don't have a specific == defined. For example:
In src/time/location.cr:140:64

 140 | if with_seconds == true || (seconds != 0 && with_seconds == :auto)
                                                                ^
Error: no overload matches 'Bool#==' with type Symbol

(In that example, with_seconds is Bool | Symbol, and if it happens that it's a bool then the default == is called.)
From that I figured I couldn't go through code and replace all errors with eql?, because that circumvents all existing ==s and goes straight to the default implementation of eql? for all types.
My next attempt will be to leave the default/fallback == in place, and add code to it which will count which types (and how many times) are compared using the fallback ==s during make spec. Will post the stats soon.

But, apart from any further testing/investigation, a more interesting question is -- do you see any way in which this ticket could move or these are just last comments before closing it?
From what I could tell, it is too late to change the behavior of ==. So our only choice (if anything is to be done here) would be to define a new operator such as ==!, which behaves identically to == (ideally it would use == automatically), except for the lowest level in Value and Reference where it would not have a default implementation, and would instead allow the code to cause an error rather than assume false.

Discussion about the same problem in Julia: https://github.com/JuliaLang/julia/issues/40717

In the last ameba release there was added Lint/LiteralsComparison rule which reports cases like the one mentioned by the OP.


Source Stone in VoidZ can't work.

Minecraft version
1.20.1
Describe the bug
The source stone couldn't shoot projectiles or phase through walls when I right-click or shift and right-click.
Steps to reproduce

I was using a forge modpack, so I use Sinytra Connector to launch AdventrueZ and VoidZ.
According to the descriptions, the source stone could shoot projectiles if you right click and could phrase the player through walls if you right click with shift.
I did what it said above, but nothing happens except there was a cooling animation on the source stone in the inventory(like the animation on shield while hitting by a axe)

Logs
No response
Additional context
No response

As our LTS support target, 1.20.1 now only receives critical fixes related to Connector bugs. Please upgrade to the latest version for mod compatibility support.


<IP_ADDRESS>

https://ci.appveyor.com/project/jpboyce/cb-cis-windows-2016#L2021

Error message
undefined method not_if' for #<#Class:0x0000000007e1d1b8:0x000000000a2373a0>`
Code:
https://github.com/jpboyce/cb_cis_windows_2016/blob/9cc4dbeabbbb9ff97222e9d6effeb230ee28b42b/test/integration/default/cis-2-3-7-interactive-logon_test.rb#L116

Commenting out for now.


Showing package Id, in addition to Title, in the package search results

When showing packages in the search page, we only show package title, but not package id. This causes an inconvenience when I want to search for a particular package id. Usually in such cases, there will be more than 1 results showing, and the package titles are similar, making it hard to know which one is the one I'm looking for.

We have a new gallery design.


lsmod | grep kfd returns nothing

After a fresh install of ubuntu and installing rocm by:
sudo apt update
sudo apt dist-upgrade
sudo apt install libnuma-dev
sudo reboot
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
sudo apt update
sudo apt install rocm-dkms
command 'lsmod | grep kfd' returns nothing
My system specs:
CPU: Ryzen 5 1600
GPU: Rx570 in PCIe x16 slot
Ubuntu 16.04 LTS
$ uname -r
4.15.0-48-generic
$ lspci -vnn | grep VGA -A 12
07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X] [1002:67df] (rev ef) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device [1043:04c2]
	Flags: bus master, fast devsel, latency 0, IRQ 45
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at e000 [size=256]
	Memory at fe900000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

07:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 580] [1002:aaf0]

$ lsmod | grep amdgpu
amdttm                 98304  1 amdgpu
amd_sched              28672  1 amdgpu
amdkcl                 24576  3 amd_sched,amdttm,amdgpu
i2c_algo_bit           16384  1 amdgpu
amd_iommu_v2           20480  1 amdgpu
drm_kms_helper        172032  1 amdgpu
drm                   401408  8 drm_kms_helper,amd_sched,amdttm,amdgpu,amdkcl

$ lspci | grep VGA
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X] (rev ef)
$ lspci -tv
           +-01.0  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
           +-01.3-[01-06]--+-00.0  Advanced Micro Devices, Inc. [AMD] 300 Series Chipset USB 3.1 xHCI Controller
           |               +-00.1  Advanced Micro Devices, Inc. [AMD] 300 Series Chipset SATA Controller
           |               \-00.2-[02-06]--+-00.0-[03]----00.0  Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           |                               +-01.0-[04-05]----00.0-[05]--
           |                               \-04.0-[06]--
           +-02.0  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
           +-03.0  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
           +-03.1-[07]--+-00.0  Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X]
           |            \-00.1  Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 580]
           +-04.0  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
           +-07.0  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
           +-07.1-[08]--+-00.0  Advanced Micro Devices, Inc. [AMD] Device 145a
           |            +-00.2  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor
           |            \-00.3  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) USB 3.0 Host Controller
           +-08.0  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
           +-08.1-[09]--+-00.0  Advanced Micro Devices, Inc. [AMD] Device 1455
           |            +-00.2  Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]
           |            \-00.3  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller
           +-14.0  Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller
           +-14.3  Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge
           +-18.0  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0
           +-18.1  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1
           +-18.2  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2
           +-18.3  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3
           +-18.4  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4
           +-18.5  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5
           +-18.6  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6
           \-18.7  Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7

$ rocminfo
HSA System Attributes
=====================
Runtime Version:         1.1
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:<PHONE_NUMBER>3709551615 (number of timestamp)
Machine Model:           LARGE
System Endianness:       LITTLE

==========
HSA Agents
==========
*******
Agent 1
*******
  Name:                    AMD Ryzen 5 1600 Six-Core Processor
  Vendor Name:             CPU
  Feature:                 None specified
  Profile:                 FULL_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        0
  Queue Min Size:          0
  Queue Max Size:          0
  Queue Type:              MULTI
  Node:                    0
  Device Type:             CPU
  Cache Info:
    L1:                      32768KB
  Chip ID:                 0
  Cacheline Size:          64
  Max Clock Frequency (MHz):3200
  BDFID:                   0
  Compute Unit:            12
  Features:                None
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
      Size:                    8096068KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Acessible by all:        TRUE
    Pool 2
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED
      Size:                    8096068KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Acessible by all:        TRUE
  ISA Info:
    N/A
*******
Agent 2
*******
  Name:                    gfx803
  Vendor Name:             AMD
  Feature:                 KERNEL_DISPATCH
  Profile:                 BASE_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        128
  Queue Min Size:          4096
  Queue Max Size:          131072
  Queue Type:              MULTI
  Node:                    1
  Device Type:             GPU
  Cache Info:
    L1:                      16KB
  Chip ID:                 26591
  Cacheline Size:          64
  Max Clock Frequency (MHz):1300
  BDFID:                   1792
  Compute Unit:            32
  Features:                KERNEL_DISPATCH
  Fast F16 Operation:      FALSE
  Wavefront Size:          64
  Workgroup Max Size:      1024
  Workgroup Max Size Per Dimension:
    Dim[0]:                  67109888
    Dim[1]:                  117441536
    Dim[2]:                  0
  Grid Max Size:<PHONE_NUMBER>
  Waves Per CU:            40
  Max Work-item Per CU:    2560
  Grid Max Size per Dimension:
    Dim[0]:<PHONE_NUMBER>
    Dim[1]:<PHONE_NUMBER>
    Dim[2]:<PHONE_NUMBER>
  Max number Of fbarriers Per Workgroup:32
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED
      Size:                    4194304KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Alignment:         4KB
      Acessible by all:        FALSE
    Pool 2
      Segment:                 GROUP
      Size:                    64KB
      Allocatable:             FALSE
      Alloc Granule:           0KB
      Alloc Alignment:         0KB
      Acessible by all:        FALSE
  ISA Info:
    ISA 1
      Name:                    amdgcn-amd-amdhsa--gfx803
      Machine Models:          HSA_MACHINE_MODEL_LARGE
      Profiles:                HSA_PROFILE_BASE
      Default Rounding Mode:   NEAR
      Default Rounding Mode:   NEAR
      Fast f16:                TRUE
      Workgroup Max Dimension:
        Dim[0]:                  67109888
        Dim[1]:                  1024
        Dim[2]:                  16777217
      Workgroup Max Size:      1024
      Grid Max Dimension:
        x<PHONE_NUMBER>
        y<PHONE_NUMBER>
        z<PHONE_NUMBER>
      Grid Max Size:<PHONE_NUMBER>
      FBarrier Max Size:       32
*** Done ***            ```

`$ clinfo`

```Number of platforms:				 1
  Platform Profile:				 FULL_PROFILE
  Platform Version:				 OpenCL 2.1 AMD-APP (2874.0)
  Platform Name:				 AMD Accelerated Parallel Processing
  Platform Vendor:				 Advanced Micro Devices, Inc.
  Platform Extensions:				 cl_khr_icd cl_amd_event_callback cl_amd_offline_devices

  Platform Name:				 AMD Accelerated Parallel Processing
Number of devices:				 1
  Device Type:					 CL_DEVICE_TYPE_GPU
  Vendor ID:					 1002h
  Board name:					 Ellesmere [Radeon RX 470/480/570/570X/580/580X]
  Device Topology:				 PCI[ B#7, D#0, F#0 ]
  Max compute units:				 32
  Max work items dimensions:			 3
    Max work items[0]:				 1024
    Max work items[1]:				 1024
    Max work items[2]:				 1024
  Max work group size:				 256
  Preferred vector width char:			 4
  Preferred vector width short:			 2
  Preferred vector width int:			 1
  Preferred vector width long:			 1
  Preferred vector width float:			 1
  Preferred vector width double:		 1
  Native vector width char:			 4
  Native vector width short:			 2
  Native vector width int:			 1
  Native vector width long:			 1
  Native vector width float:			 1
  Native vector width double:			 1
  Max clock frequency:				 1300Mhz
  Address bits:					 64
  Max memory allocation:<PHONE_NUMBER>
  Image support:				 Yes
  Max number of images read arguments:		 128
  Max number of images write arguments:		 8
  Max image 2D width:				 16384
  Max image 2D height:				 16384
  Max image 3D width:				 2048
  Max image 3D height:				 2048
  Max image 3D depth:				 2048
  Max samplers within kernel:			 26591
  Max size of kernel argument:			 1024
  Alignment (bits) of base address:		 1024
  Minimum alignment (bytes) for any datatype:	 128
  Single precision floating point capability
    Denorms:					 No
    Quiet NaNs:					 Yes
    Round to nearest even:			 Yes
    Round to zero:				 Yes
    Round to +ve and infinity:			 Yes
    IEEE754-2008 fused multiply-add:		 Yes
  Cache type:					 Read/Write
  Cache line size:				 64
  Cache size:					 16384
  Global memory size:<PHONE_NUMBER>
  Constant buffer size:<PHONE_NUMBER>
  Max number of constant args:			 8
  Local memory type:				 Scratchpad
  Local memory size:				 65536
  Max pipe arguments:				 16
  Max pipe active reservations:			 16
  Max pipe packet size:<PHONE_NUMBER>
  Max global variable size:<PHONE_NUMBER>
  Max global variable preferred total size:<PHONE_NUMBER>
  Max read/write image args:			 64
  Max on device events:				 1024
  Queue on device max size:			 8388608
  Max on device queues:				 1
  Queue on device preferred size:		 262144
  SVM capabilities:
    Coarse grain buffer:			 Yes
    Fine grain buffer:				 Yes
    Fine grain system:				 No
    Atomics:					 No
  Preferred platform atomic alignment:		 0
  Preferred global atomic alignment:		 0
  Preferred local atomic alignment:		 0
  Kernel Preferred work group size multiple:	 64
  Error correction support:			 0
  Unified memory for Host and Device:		 0
  Profiling timer resolution:			 1
  Device endianess:				 Little
  Available:					 Yes
  Compiler available:				 Yes
  Execution capabilities:
    Execute OpenCL kernels:			 Yes
    Execute native function:			 No
  Queue on Host properties:
    Out-of-Order:				 No
    Profiling :					 Yes
  Queue on Device properties:
    Out-of-Order:				 Yes
    Profiling :					 Yes
  Platform ID:					 0x7feffc5f2f70
  Name:						 gfx803
  Vendor:					 Advanced Micro Devices, Inc.
  Device OpenCL C version:			 OpenCL C 2.0
  Driver version:				 2874.0 (HSA1.1,LC)
  Profile:					 FULL_PROFILE
  Version:					 OpenCL 1.2
  Extensions:					 cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program

Everything else looks fine but only:
lsmod | grep kfd
returns nothing. kfd module should be present in kernel in order to install docker.

kfd was merged to the amdgpu kernel module quite some time ago
https://www.phoronix.com/scan.php?page=news_item&px=AMDKFD-Merge-Into-AMDGPU
dmesg|grep kfd should still show that kfd is active.

$ dmesg|grep kfd
[    1.805489] kfd kfd: Allocated 3969056 bytes on gart
[    1.806095] kfd kfd: added device 1002:67df

But
$ uname -r
4.15.0-48-generic

no rocm kernel?

rocm-dkms does not replace the kernel, but only replaces some amdgpu related kernel modules.


Revamp Config Strategy

One of my main priorities in making GUIslice easier to use is in simplifying the configuration process.
This work is already well under-way, and I believe these changes will enable new users to get up & running faster, and also provide more flexibility for advanced users.
The first major improvement is in creating step-by-step configuration guides specific to a device platform.
Another important change is the introduction of canned example configurations that suit a particular device platform + display + touch controller. For users with shields, it should only be a matter of selecting the appropriate config file, with no additional config edits required for basic operation. From my experience, it is difficult for new users to edit config files when many options and ifdefs exist for unrelated hardware.
I intend to provide a comprehensive table of common shields and displays, with a link to the corresponding example configuration.
Initially, the selected config file would need to be copied over top of the default GUIslice_config_ard/linux.h file. However, the next step will be to change the main GUIslice_config.h to enumerate many of these example configurations -- the user can simply uncomment one of the example configuration lines to use it. No file overwrite is required. Switching between devices is easy. The TFT_eSPI User_Setup_Select.h is an example of this type of approach. Another benefit here is that the custom configurations won't be overwritten when the user updates the GUIslice library.
For advanced users who have a desire to use a single config file (ie. GUIslice_config_ard.h), they can continue to do so by not uncommenting any of the example config lines. In the future, I might explore the removal of the monolithic multi-target GUIslice_config_ard.h, but I'll leave this for later discussion / feedback.
Summary of updates:

[x] Rewrite Configuration Guides in wiki

STATUS: Mostly done though cleanup & more testing is required

[x] Create Example Configuration files

STATUS: Many examples have already been posted to /configs, but many more are pending.

[x] Create user-select configuration file, avoid need for overwriting files

STATUS: Done. Uncomment one line in GUIslice_config.h to select an example config or user config.

[x] Provide table of common shields and displays, show mapping to Example Config

STATUS: Mostly done: table of common displays

[x] Create local master config that uses meta-language to generate example configs

This will enable easy maintenance across all example configurations
STATUS: Mostly done. Using jinja2 templating language.

[x] Revise the automated regression suite #65 to use the Example Configs

STATUS: Mostly done

Completed the majority of the config strategy revision, with some cleanup remaining. I am still open to suggestions if alternate solutions seem more suitable / easier to use.
For reference, I am now building the example configurations from a common config file using the jinja2 templating language. This should help avoid errors and make maintenance much simpler.


Can I making the slider slide with one click anywhere on the slider?

Hey guys,
I am trying to get the Slider to behave like this:
If the user clicks (mouse down) on the slider somewhere the thumb is moved to the location of the click immediately
when the user clicked on the slider and he moves the mouse, the thumb is sliding with the cursor...
1.
Apparently there is a property called "IsMoveToPointEnabled" that if set to True causes the RepeatButton behaviour of the Slider to disappear and the thumb immediately moves to the point where clicked.

This is the default behaviour of the slider if you click on the thumb anyway but unfortunately if you click not on the thumb (thus using the IsMoveToPointEnabled) you cannot move the thumb after the first click without clicking on the thumb again.
Any ideas on how to overcome this? Any hints appreciated.

@xue-blood Have you tries to look at SO? You're right this is the default behavior of a Slider, cause there are different Controls, the Thumb and the 2 Repeat Buttons which handles the increase and decrease change.

@punker76  Yes you are right , so now I write a new slider inherit the default Slider.


scale.yaml fails at Gather etcd master certs step

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

Environment:

Cloud provider or hardware configuration:
Bare metal RHEL 7 servers

OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):
Linux 3.10.0-862.9.1.el7.x86_64 x86_64
NAME="Red Hat Enterprise Linux Server"
VERSION="7.5 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.5"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.5 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.5:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.5
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.5"

Version of Ansible (ansible --version):
ansible 2.6.3
config file = /export/home/k8s_ansible/tools/kubespray/ansible.cfg
configured module search path = [u'/export/home/k8s_ansible/tools/kubespray/library']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

Kubespray version (commit) (git rev-parse --short HEAD):
4882531c
Network plugin used:
Calico
Copy of your inventory file:
Totally fake inventory (too much internal info), but shows the structure of the nodes
[kube-master]
master01
master02
[etcd]
etcd01
etcd02
etcd03
[kube-node]
worker01
worker02
worker03
worker04
worker05
worker06
[route-reflectors]
rr01
rr02
rr03
rr04
[k8s-cluster:children]
kube-master
kube-node
Command used to invoke ansible:
ansible-playbook -b -i inventory/k8s/hosts.yaml scale.yml
Output of ansible run:

...
TASK [etcd : Gen_certs | Gather etcd master certs] *************************************************************************************************************************
Thursday 23 August 2018  15:21:42 -0500 (0:00:00.406)       0:00:48.579 *******
fatal: [etcd03 -> etcd02.example.com]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
fatal: [etcd01 -> etcd02.example.com]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
Anything else do we need to know:
Looks like this was caused by 69786b2d1 which merged PR #3147. When run in verbose mode, the underlying message is:
{
  "msg": "Unsupported parameters for (command) module: input Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, warn",
  "failed": true,
  "invocation": {
    "module_args": {
      "warn": true,
      "input": "ca-key.pem admin-etcd03.pem admin-etcd03-key.pem member-etcd03.pem ... <all nodes in cluster>",
      "_raw_params": "tar cfz - -C /etc/ssl/etcd/ssl -T /dev/stdin"
    }
  }
}

Changing input to stdin at line 99 of roles/etcd/tasks/gen_certs_script.yml gets past that syntax error, but leads to:
Cannot stat: File name too long
tar: Exiting with failure status due to previous errors

The list that's passed to tar is 30 items long. 3 master nodes, 3 etcd nodes (on master), 6 worker nodes, and 4 route reflectors (using BGP paring via calico)

/kind bug
/good-first-issue

I don't believe the approach of PR #3147 will work, for several reasons:

the tar -T option expects filenames separated with newline. This can be fixed with join('\n'). Don't know why this works in the original code.
There is a reason why the original code pipes through base64. You will get unicode problems if it is not applied.

i will revert this PR #3174

at least now seems all ci jobs also working. from master should work now
/close


cleanup: always include /bigobj for MSVC

Always compile with /bigobj for MSVC.
Adding this flag on a case-by-case basis is untenable. So we just add it to all targets.

Motivation: Some of our libraries will start to require this flag.
https://github.com/microsoft/vcpkg/pull/32779#issuecomment-1657697502

Why we might not want to do this is discussed here:
https://stackoverflow.com/questions/15110580/penalty-of-the-msvs-compiler-flag-bigobj
I don't think we need to worry about the Visual C++ 2005 problem.
The .obj files being 2% larger comment matters. I still think it is worth reducing the headache on our end, to apply the /bigobj flag indiscriminately.

This change is

It may be a good idea to:

set the gha:full-build label
re-run the GHA builds

Done.
Note to self: I wanted to apply the gha:full-build label before creating the PR.
This comment helped me realize I needed a new commit to rerun the GHA builds.


Quotes need to be updated for ep2017

See home page and the admin page:
https://dev.europython.eu/admin/conference/quote/
For some reason, the ep2016 quotes are still shown on the ep2017 homepage. I guess, this should be fixed as well.

Closed, because no longer relevant for 2019.


feat: Add guide for Mint NFT page

What changed? Why?

Add guide for Mint NFT page
Fixes #314
Figma link

How has it been tested?

Manually on local

Notes to reviewers
Desktop design

Mobile desgin

Correct me if I'm wrong, but wasn't this guide supposed to be specific to the Mint NFT flow? I think the Figma is simply a design guide and not the actual content we want here. @Zizzamia can you confirm?

@arsood is right!

Closing for now. Happy to review again if/when content is added.


SplitTrainandTest for MultiDataSet

Hello I was wondering Multi Dataset has no support for SplitTrainandTest.
adding this support would be helpful

@AlexDBlack i guess this is still viable?

hm... yeah. We've got asList and the like (list, shuffle, sublist, merge can be used to implement this manually), but this specific method hasn't been implemented.
Though I've never really liked DataSet.splitTrainAndTest (it encourages users to load all their data into memory, rather than splitting earlier in the pipeline). So I'm kind of on the fence as to whether we implement it at all.

Let's just close this issue then?


Severe mouse lag on low end computer

Hey, just wanted to mention that I'm experiencing severe lag with my mouse cursor on a MacBook Pro 2014 2,8 GHz Intel Core i7 16 GB 1600 MHz DDR3 Intel Iris 1536 MB
As if the mouse acceleration goes bananas if you move it to fast. It went away when I removed BLUI
Just wanted to mention it, I'm not able to help out at the moment unfortunately.
I think this plugin seems really awesome (and perfect for a webdev like me) to make in game UIs, especially those you put on a material on an actor in the world, as I'm planning to do with my game. If I have time I'll try it out on my windows computer with better perfomance.
Thanks for writing a great plugin
Cheers

Maybe #63 would have impact, if reduced footprint means reduced processing of mouse events.
Question, is the mousemovement captured by UE4 then sent to BLUI and forth? Is there extra layers of mouse movement tracking/computing involved with this plugin activated than in "vanilla" UE4?

I can add that when I build the game for release, and have higher graphics settings, I experience some mouse lagging as well. So it's probably more of an overall performance issue, and not with this plugin, but it added some weight to my project.
I'm gonna compare with the native UI solutions and check the difference

I've been able to reproduce the lag with native UI widgets, so it seems unrelated to this. Switching between hardware and software cursor (shift + F1) has an enormous difference. So it's an engine thing

Sorry for replying so late, glad you were able to narrow down the issue


Wiki: Communication Plan

To Do: Communication plan is to be created with the following information:

Where (Communication Medium)
When
Who (Participations)
Purpose

Communication Plan is created.


feat(skypack): change package.json to support skypack

tre to fix this problem Using as an ESM package with htm

Thanks!

Thanks!


Support \dots

Initially reported in https://github.com/Khan/KaTeX/issues/526
In plain LaTeX, This is the same thing as \ldots, but with AMSMath, \dots does something more complex, and tries to figure out if it should become an \ldots or a \cdots by looking at the elements around it: http://tex.stackexchange.com/a/77742

I've implemented AMSMath's behavior in #599, aside from one spacing issue I could use help with (described there) -- is there an easy way to add some positive or negative horizontal space next to a symbol returned by a function?

Dots support has been added in #794.