Getting 'MIME type' errors which prevent PDF display

I am getting these MIME type errors which prevent my test file pageviewer.html from displaying the pdf:
For /node_modules/pdfjs-dist/build/pdf.mjs:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.
For /node_modules/pdfjs-dist/web/pdf_viewer.mjs:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.
For pageviewer.js:
Uncaught ReferenceError: pdfjsLib is not defined
How can I fix these? I'm also not sure how to reference what pdf file to display. I'm trying to use the pageviewer.html example from the examples folder here.
I have the latest npm and nodejs installed.
Any help is appreciated!
Configuration:

Web browser and its version: Chrome Version 109.0.5414.120 (Official Build) (32-bit)
Operating system and its version: Windows 7
PDF.js version: latest
Is a browser extension: no

Steps to reproduce the problem:

installed pdf.js and set up pageviewer.html as per example
not working

What is the expected behavior? (add screenshot)
To display the pdf
What went wrong? (add screenshot)
Completely blank web page, with the above errors in the Developer Tools Console.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
https://subs.humortimes.com/pageviewer.html

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.

This error message says that your web-server isn't correctly configured, since it returns an incorrect MIME type for *.mjs files. Hence you'll need to update the server configuration to return text/javascript for such files. (Exactly how that's done might vary depending on the server used, and isn't really something that we can help you with here.)

PDF.js version: latest

For future reference: Please remember to provide a version number, since what "latest" is (obviously) changes over time.

Ah, of course. We're using nginx, and that is configured in /etc/nginx/mime.types in our case. Thank you.

Ah, of course. We're using nginx, and that is configured in /etc/nginx/mime.types in our case. Thank you.

hi, how you configured nginx to success deal it ? thx

thx, we deal it.  use
http {
include       mime.types;
types {
application/javascript js mjs;
}
default_type  application/octet-stream;
.....

Same problem, solved by this conf

thx, we deal it. use http { include mime.types; types { application/javascript js mjs; } default_type application/octet-stream;
.....

Same problem, solved by this conf

For the sake of better search results, the error I was getting in Safari was:
TypeError: text/plain is not a valid JavaScript MIME type
I use Apache, so I edited /etc/mime.types and added mjs after js on the same line as the existing text/javascript entry. I didn't need to restart Apache but did need to clear my browser cache.

thx, i did the same and it works perfectly
http {     ## use mime types     include /etc/nginx/mime.types;     types {         application/javascript js mjs;     }     default_type application/octet-stream;

If you use Apache, you can set it by updating the .htaccess file:
<IfModule mod_mime.c>   AddType text/javascript mjs </IfModule>

This nginx config works perfectly for me:
server {
    # ...

    location / {
        root   /usr/share/nginx/html;
        index  index.html;

        location ~* \.mjs$ {# target only *.mjs files
            # now we can safely override types since we are only
            # targeting a single file extension.
            types {
                text/javascript mjs;
            }
        }
    }
}

Thanks to the author! https://stackoverflow.com/a/19630564/12674896

@alekswebnet  hi there,
I used to your code but doesn't help, can you guide me:

@shivangi-2001, sorry but this issue has been closed a while back and is unrelated to pdf.js itself (see https://github.com/mozilla/pdf.js/issues/17296#issuecomment-1818335844). So please don't use this issue tracker as a chat room. Thank you.

You can downgrade to version 3.11.174 ,then use the file pdfjs-dist/build/pdf.worker.min.js


Added notes

Hi @lsshawn , this is great, thanks!
It took me some time to merge your code because our branches diverged a bit, and git is not great at merging Jupyter notebooks (which are stored as JSON).
Note: I'll check if there's a way to give you credit for my last commit which was mostly yours, so you can appear as a contributor in github.
Cheers,
Aurélien


Feature Request: Whitelist Services/Ports

Hey I have been using dird for awhile and it works great for websites; however it can cause issues for game servers & other complex services.
I can currently blacklist these services/ports but it's quite a hassel when you have multiple servers and services that are being updated.
I really only need IP's corrected for my reverse proxy that all my web services run through. Can whitelisting be added as arguments? Using a whitelist would save me form having to check & reconfigure dird when I run into a routing issue with a new service.
Thanks!

Hi @ztimson Thanks for using DIRD. For some reason we didn't receive notification, so apologies for the delayed response.
Have you tried using any of these options?
--services <services>  - service names to disable masquerading for
             --tcp-ports <ports>  - TCP ports to disable masquerading for
             --udp-ports <ports>  - UDP ports to disable masquerading for

"Disable masquerading for" means "enable routing for", so these should be the whitelist options that you want.

@struanb No problem at all, using the flags provided did indeed work, thank you!
The language defintely confused me.

I've updated the language in the README, which I hope you agree is clearer about the whitelisting options, and will now close this issue.


Diffusion 3 Support on Python SDK

Hi
As Stable Diffusion 3.0 has been released, is there any plan to support Diffusion 3.0 on this Python SDK? If we want to migrate to Diffusion 3.0 using Python now, do I have to call POST directly on https://api.stability.ai/v2beta/stable-image/generate/sd3?
We were very excited to see Diffusion 3.0 released. Hope to migrate to it soon!
Thank you.

Hey @ZhimaoLin , SD3 and Stable Image services are only available with the v2 REST API and there's Python code samples using requests library on the platform site https://platform.stability.ai/docs/api-reference#tag/Generate/paths/~1v2beta~1stable-image~1generate~1sd3/post  They are not accessible by the gRPC API which the Python SDK wraps.

Thank you!


Multiplayer

Design a multiplayer variant of the game

GET /ws/multi => 200 + {"room": "deadbeef"}
`WS /ws/


wiki: iOS framework guide is outdated

Go Mobile iOS framework tutorial [1] contains an outdated screenshot where the framework header is imported via "hello/Hello.h". gomobile bind currently outputs framework bundles with the capitalized name and the import directive must be replaced with
#import <Hello/Hello.h>

[1] https://github.com/golang/go/wiki/Mobile#building-and-deploying-to-ios-1

Closed via https://github.com/golang/go/wiki/Mobile/63235d5699149fb9701fe6d62e24c086d4d4d752.


Prototype: Find out about it

As a user I am interested in what the design system is, so that I can learn more about it so that I can decide if i will use it.

Was moved to done

Was moved to done


Deprication Warning from PaperTrail

Version 9.0.0 Paper trail is generating the follow warning: fro each active admin page
WARN  DEPRECATION WARNING: MyModel.paper_trail.enabled? is deprecated, use PaperTrail.request.enabled_for_model?(MyModel). This new API makes it clear that this is a setting specific to the current request, not all threads. Also, all other request-variables now go through the same request method, so this new API is more consistent.

Thanks for your reporting 👍

Nice. Please open pull request.


version solving failed

I am using firebase_storage legacy package which requires http ^0.12.2 and and any_link_preview required http ^0.13.0 and i am getting this error:
Because no versions of firebase_storage match >7.0.0 <8.0.0 and firebase_storage 7.0.0 depends on firebase_storage_web ^0.1.1+3, firebase_storage ^7.0.0 requires firebase_storage_web ^0.1.1+3.
Because firebase_storage_web 0.1.1+3 depends on http ^0.12.2 and no versions of firebase_storage_web match >0.1.1+3 <0.2.0, firebase_storage_web ^0.1.1+3 requires http ^0.12.2.
Thus, firebase_storage ^7.0.0 requires http ^0.12.2.
So, because app1 depends on both firebase_storage ^7.0.0 and http ^0.13.0, version solving failed.
pub get failed (1; So, because awarenett depends on both firebase_storage ^7.0.0 and http ^0.13.0, version solving failed.)
exit code 1

Hi @SatyamKr07
Can you give a try with 1.0.8 version of the package. If that doesn't work, Can you share the snippet of the code where I can test & fix the issue.
Thanks!

Hey, thanks! 1.0.8 version works fine!
Though i got conflict :-
"Because any_link_preview 1.0.8 depends on url_launcher ^5.7.10 and no versions of any_link_preview match >1.0.8 <2.0.0, any_link_preview ^1.0.8 requires url_launcher ^5.7.10.
So, because app1 depends on both url_launcher ^6.0.3 and any_link_preview ^1.0.8, version solving failed."
I just changed my url_launcher version from ^6.0.3 to ^5.7.10 and the confilct resolved.
Thanks for resolving it!

Thanks for confirming @SatyamKr07


Bitcode generation issue for iOS builds

Bitcode support has been added recently:
#15288
However, I have checked bitcode which gets generated for the test project
Runner.app/Frameworks/App.framework/
and it looks like that is not "real" bitcode, but a Mach-O binary file instead.
There should be files like 1, 2, 3, 4,... of LLVM bitcode type and wrapper. And you should be able to process those using llvm-dis. However, we get a Mach-O binary there.
I have used bitcode_retriever tool to extract xar files from Runner.app/Frameworks/App.framework/App:
shell $ bitcode_retriever App
arm.xar
arm64.xar

shell $ xar -xf arm64.xar
shell $ file 1
1: Mach-O 64-bit object arm64

If you did the same for Runner.app/Runner binary, you would get correct bitcode of LLVM bitcode type:
shell $ bitcode_retriever Runner
arm.xar
arm64.xar

shell $ xar -xf arm64.xar
shell $ file 1
file 1
1: LLVM bitcode, wrapper

The root cause of that issue is that an assembly file got put as input for clang:
https://github.com/flutter/flutter/blob/fb69a393b886aa91d30b81f79a590653fb677a4b/packages/flutter_tools/lib/src/base/build.dart#L257
Clang produces correct xars that carry LLVM bitcode if you pass unmanaged code or llvm-bitcode, and set -fembed-bitcode flag (it is possible to re-create a binary containing bitcode from bitcode).
If it was possible to get Dart compiled into llvm-bitcode, it would be proper bitcode-enabled archives generated.
Thus, even it is now possible to build projects with BITCODE_ENABLE=YES, the community I believe is still facing the following issues:

Compatibility with analysis tools such as Veracode
Use of app-hardening solutions (rely on bitcode)

I will deeply appreciate if you can look into that @dnfield. Cheers!

We use assembly in several places.  Right now, at the least:

The output of gen_snapshot is assembly for iOS builds.
In the engine binary, we have assembly coming in from libpng and from the Dart VM as well.

We don't really have a good way to avoid this.  There's been some experiments around having Dart generate LLVM, but I believe that was blocked on something and AFAIK it's not actively being worked on (/cc @a-siva or @mraleph who may know more).
Right now we basically tell LLVM to embed the assembly along side of bitcode, which I assume is resulting in what you're seeing.  In my understanding, this means the parts of the binary that can be bitcode (all of the C++ and Objective C/C++ for example) are allowed to be bitcode, and the rest is shoved into the binary.
It's not clear to me what impact this actually has.  Are you seeing failures when trying to use app hardening tools that rely on bitcode or Veracode?

Yes, @dnfield is correct. We are not currently working (or having plans to work) on having Dart-to-bitcode compiler.

@dnfield , @mraleph,
Thanks for your help and time.

Embedding binary blobs in xar files instead of LLVM bitcode is a little bit contradictive with the idea around bitcode-enabled builds to the best of my understanding.
According to Apple (https://help.apple.com/xcode/mac/current/#/devbbdc5ce4f), including bitcode allows Apple to re-optimize your app binary in the future without any need for submitting a new version of your app to the App Store.
And when it comes to binary blobs, they are barely optimizable.
I would also like to reference that article: https://www.highcaffeinecontent.com/blog/20190518-Translating-an-ARM-iOS-App-to-Intel-macOS-Using-Bitcode
In practice, you (or Apple) can easily take the bitcode blobs from your app and recompile them into a fully-functioning copy of your app, going from armv7 to armv7s, or arm64 to arm64e smoothly. As well as that, it saves up developers' efforts in having to recompile an ever-fatter binary of their own every time Apple tweaks their ARM chips.
That is not often obviously, but it is worth getting things in compliance with Apple's vision in my humble opinion.

It's not clear to me what impact this actually has. Are you seeing failures when trying to use app hardening tools that rely on bitcode or Veracode?

All the bitcode hardening tools work in the pretty same way: the bitcode gets extracted from the app binary; then it is being read and harden via LLVM API. After that an application being protected gets re-compiled from bitcode.
And so, I have been looking into that deeply recently, and realized that there is a binary container that does not carry bitcode (as I provided details earlier). It gets re-compiled perfectly though thanks to the special logic in bitcode-rebuilder that handles such a special case with an embedded container not carrying bitcode. So technically, it is all good and it works, but again, ideally there were no binary blobs in the containers.

https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes

Starting with Xcode 14, bitcode is no longer required for watchOS and tvOS applications, and the App Store no longer accepts bitcode submissions from Xcode 14.
Xcode no longer builds bitcode by default and generates a warning message if a project explicitly enables bitcode: “Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode.” The capability to build with bitcode will be removed in a future Xcode release. IPAs that contain bitcode will have the bitcode stripped before being submitted to the App Store. Debug symbols for past bitcode submissions remain available for download. (86118779)

Closing this, the only bitcode work we're going to do at this point is remove it.


Grouping device-to-cloud messages into batches

The documentation says batching is possible for up to 256KB (https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messaging). However, I can't find the right endpoint in the preliminary API nor in the REST documentation. The C# API has implemented such a call. Am I missing something?

Hi @ahirner
The C and Python SDKs (Python SDK happens to be a wrapper on top of the C SDK) have a slightly different behavior when it comes to batching than the C# one.
The C SDK, and hence the Python one, will implement batching automatically and using an "optimistic" mechanism.
In order to enable the batching in the C or Python SDK, you need to use the SetOption API (IoTHubClient_SetOption in C) and set the "Batching" option to true or false.
Now here is how things work under the hood (that will explain the difference in behavior compared to the C# SDK):
I will not go into the details of the Lower Level API vs. convenience API here as it is described in this article, but it is important to understand the basics of how things work in the C SDK.
The underlying mechanism of the C SDK is that message sends are queued and effectively sent over the wire when the DoWork function runs. Depending on the "Batching" option flag messages will be sent as individual ones or as a single batched message at that moment DoWork is called.
When using the Lower Level API in C, the user triggers the DoWork manually, meaning he can have full control on when the batch send is called, but when using the convenience layer of the API, the DoWork is periodically called behind the scenes by the SDK itself and the user basically cannot dine control the granularity of the batches.
The Python SDK only exposes the convenience layer, meaning that you can enable the batching, but you cannot control exactly when the DoWork is invoked, hence you cannot control the granularity of the batches.

Hi @olivierbloch,
This is a very helpful explanation. So enabling Batching in the convenience APIs optimizes for throughput on HTTP, whereas disabling optimizes for latency. I think this is a reasonable design choice.
The article also clarifies how many messages get batched up (max size, i.e. 256KB). I suppose flushing the queue earlier when switching from enabled to disabled happens upon the next send message and not upon resetting the Batching option. Correct me if I have this wrong. Again, very helpful!

@ahirner
I would have to double check in the code, but I would say that if you reset the batching option while messages are in the queue, then next time DoWork is invoked then the method set by the flag is applied, meaning that for example if you had messages in the queue and the batching flag set to true and you switch to false, then when DoWork is invoked then messages will be sent individually even though they were queued while the flag was set to true.

@olivierbloch This behaviour would also make sense if queued vs single messages go through different endpoints. It seems to me though, that both code paths make the same call and maintain separate buffers (temp for batched, toBeSend for unbatched). So switching the Batching option pauses the respective alternative queue if there is no other codepath where messages get dispatched (I was only skimming https://github.com/Azure/azure-iot-sdk-c/blob/master/iothub_client/src/iothubtransporthttp.c#L1565). But I'm not sure either. If that's the case, exposing DoWork to convenience APIs as makes sense for devices that send high/low-latency data interleaved.

@ahirner
There is only one endpoint where D2C messages go whether batched or not. IoTHub will decipher messages showing as batches and will split them into individual messages for consumption by Cloud services.
I am not the expert of this code, but my reading tells me there is a single queue for messages independently of the Batching flag.
The DoEvent function (which is called by DoWork to deal with sending queued messages) gets the messages from deviceData->waitingToSend which is the queue of messages to be sent (independently of whether batching is set or not) and constitutes the payload for batching or sends individual request for each messages in deviceData->waitingToSend.

@olivierbloch Thanks for pointing out the shared queue. The behaviour mentioned before makes sense if the IoTHub figures out the unpacking. I'll go from there and implement switching back to unbatched mode as late as possible. This should make sure most low-latency messages get batched up.

Cool, Ill go ahead and close this thread then.
Let us know if you face other issues or have other questions


Service Fabric Mesh in production

We have found service fabric mesh to be able to provision our windows containers in about one minute and it's tempting to use it for scaling out our application workload. However, we have found some issues that prevent us to use service fabric mesh in production:

The common provisioning time is about 1 minute, however, some replicas get stuck and their provision time is much longer. I think it is ok, but are there any guidelines for optimizing the provisioning time, what should we pay attention to?
The quotas for service replicas and number of cores per application cannot be changed from the portal where the subscription quotas are. Is it possible to increase?
We found that resources.azure.com does not show service fabric mesh applications' resources, and the only way to see what's going on is to use resources.azure.com/raw/ with an educated guess about what the resource url or json could look like. Is there any documentation, for example, the request format that would allow me to retrieve specific replica logs?
Is there any publicly available roadmap for Service Fabric Mesh? I see a lot of unresolved issues in this repo, some of them got comments that this or that is planned for 2018, but it seems it didn't happen.

We are aware of the variance and there isn't much that you can do about it today.  There is a "v2" stack internally which doesn't suffer from this problem.  It will be leveraged by the new app model service when it is launched publicly.  We precache some images to help with startup times.  I'd like to make that more transparent through API's, but it is further down my list.

Replica counts and cores can't be increased.  I did recently lift the quota restrictions on applications.

We do have an OpenAPI/Swagger spec.  It is outdated but gives you some idea https://github.com/Azure/azure-rest-api-specs/tree/master/specification/servicefabricmesh/resource-manager

Chacko has a youtube video that talks about what we have been working on. https://www.youtube.com/watch?v=oIdkbdlnmbw&list=PLlrxD0HtieHh73JryJJ-GWcUtrqpcg2Pb&index=2&t=0s  .  There will be a much larger public presence again soon.  We never slowed down internally :-).

@mattrowmsft Hi Matt, any update on the state of SF Mesh? Will we be seeing this come out of preview / tooling updated for VS 2019, etc?


Don't merge search ignore patterns across nested workspace folders

Open a multiroot workspace containing /foo and /foo/bar.
Search in ./bar
See that search.exclude patterns from /foo/.vscode are applied

Supporting this complicates search logic, leads to bugs like #49896, and probably was a bad idea from the start.

This will already be the case with the new searchprovider-based extension, I think I should leave it at that.

Does this mean it should be fixed in the next update?

Right now we have two builtin search implementations. The new one can be enabled with the "searchRipgrep.enable" setting, and it's fixed in there.

@roblourens My apologies but where exactly do I enable that setting?

In 1.24, it's actually "searchrg.enable"

After setting "searchrg.enable": true I'm still getting the spawn ENAMETOOLONG error. Even after restart + disabled plugins. Am I missing something?

Could you show the contents of the search-rg output channel after doing that search?

It shows mosly paths from other projects in my Workspace.


code cleanups; more tests

We clean up the code a bit, using slightly more efficient switch statements
and using reflect.Values more idiomatically (they're conventionally passed
by value not by pointer).
Also use the correct bit size when parsing numbers because it's easy to do.
Also add some tests for error cases, which gets us to 96% coverage
from 90%.
Also use the correct module name in the go.mod file.

For the go.mod file it was fixed in #59 but I will remove it from there.


(os x) myth from pip3 version conflict

I followed the doc:
brew update
brew upgrade
brew tap ethereum/ethereum
brew install leveldb
brew install solidity
pip3 install mythril

So I end up with the following dependencies:
pip3 list
Package                Version
---------------------- ---------
asn1crypto             1.4.0
attrdict               2.0.1
attrs                  21.2.0
beautifulsoup4         4.7.1
blake2b-py             0.1.4
cached-property        1.5.2
certifi                2021.5.30
cffi                   1.14.5
chardet                3.0.4
coincurve              15.0.0
coloredlogs            15.0
configparser           5.0.2
coverage               5.5
cycler                 0.10.0
cytoolz                0.11.0
dictionaries           0.0.2
eth-abi                1.3.0
eth-account            0.3.0
eth-bloom              1.0.4
eth-hash               0.2.0
eth-keyfile            0.5.1
eth-keys               0.2.4
eth-rlp                0.2.1
eth-tester             0.1.0b32
eth-typing             2.2.2
eth-utils              1.9.0
ethereum               2.3.2
ethereum-input-decoder 0.2.2
future                 0.18.2
hexbytes               0.2.1
humanfriendly          9.1
idna                   2.8
inflection             0.5.1
Jinja2                 3.0.1
jsonschema             3.2.0
kiwisolver             1.3.1
lru-dict               1.1.7
MarkupSafe             2.0.1
matplotlib             3.4.2
mock                   4.0.3
mypy-extensions        0.4.3
mythril                0.22.19
mythx-models           2.0.1
numpy                  1.19.0
parsimonious           0.8.1
pbkdf2                 1.3
persistent             4.7.0
Pillow                 8.2.0
pip                    21.1.2
plyvel                 1.3.0
py-ecc                 1.6.0
py-evm                 0.3.0a13
py-flags               1.1.4
py-solc                3.2.0
py-solc-x              1.0.0
pyaes                  1.6.1
pyasn1                 0.4.8
pycparser              2.20
pycryptodome           3.10.1
pydantic               1.7.3
pyethash               0.1.27
PyJWT                  1.7.1
pyparsing              2.4.7
pyrsistent             0.17.3
pysha3                 1.0.2
python-dateutil        2.8.1
pythx                  1.7.1
PyYAML                 5.4.1
repoze.lru             0.7
requests               2.25.0
rlp                    1.2.0
rsa                    4.7.2
scrypt                 0.8.18
semantic-version       2.8.5
setuptools             41.2.0
six                    1.16.0
soupsieve              1.9.1
Telethon               1.21.1
toolz                  0.11.1
transaction            3.0.1
trie                   1.4.0
urllib3                1.25.3
z3-solver              <IP_ADDRESS>
zope.interface         5.4.0

Then running myth test.sol instantly crashes.
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (eth-hash 0.2.0 (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages), Requirement.parse('eth-hash[pycryptodome]<0.4.0,>=0.3.1'), {'eth-bloom'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/bin/myth", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    def _initialize_master_working_set():
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (eth-hash 0.2.0 (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages), Requirement.parse('eth-hash[pycryptodome]<0.4.0,>=0.3.1'), {'eth-bloom'})

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
eth-bloom 1.0.4 requires eth-hash[pycryptodome]<0.4.0,>=0.3.1, but you have eth-hash 0.2.0 which is incompatible.

i tried to remove eth-hash 0.2.0  but I get
pkg_resources.DistributionNotFound: The 'eth-hash<0.3.0' distribution was not found and is required by mythril

Any ideas? osx 18.7.0

Hi, I fixed the potential issue, can you retry by downloading the latest mythril version?


Show popup does not pan map so the feature is shown

Do the following:

Create a button that calls showPopupFeature in Client.js, to select a feature
Start application and pan so the feature lies outside (south) of the map window
Click the button to pan in to the feature -> ERROR the map is moved but not enough to show feature

Fixed in commit 57fa49ca05924f17b8212643ee69a2142ead832


Use upstream script_code_p2wpkh API

After https://github.com/rust-bitcoin/rust-bitcoin/pull/954 and rust-bitcoin 0.29 release, we can use the new API to cleanup script_code_p2wpkh here to cleanup manual calculation in psbt/mod.rs

I can't find any code manually building the script code - is this issue still live?

https://github.com/rust-bitcoin/rust-miniscript/blob/7664570e7d4401f457932633455d42660a00b6cb/src/psbt/mod.rs#L1258


Dependency problem

Since I added your library to my gradle file I get the following warning with an error
Warning:Dependency commons-logging:commons-logging:1.1.1 is ignored for release as it may be conflicting with the internal version provided by Android.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 ```

Does anyone has a solution for that?

It seams that one of library dependencies is depending on commons-logging library. One solution would be to jarjardependencies and change package name of commons-logging library.
I'll try to look into it when I find some time.


Certify after a version bump should remove a pre-existing exemption

Ran into this while updating the version of a crate that had never been audited before. I performed the version bump, certified the new version, and then had to manually remove the exemption from config.toml. I was told by @bholley that cargo vet should attempt to remove an exemption in this case and is likely being confused by the version bump.
STR:
mkdir test
cd test

cargo init --library
# add wast 43.0.0
vim Cargo.toml
cargo vet init
# note exemptions.wast exists in config.toml

vim Cargo.toml # bump wast to 44.0.0
cargo update
cargo vet # fails!

cargo vet certify wast 44.0.0
cargo vet # succeeds!

# note exemptions.wast 43.0.0 still exists in config.toml

Currently the cargo vet certify call will remove the exemption when it's run, but we don't have any mechanism for automatically removing irrelevant exemptions when running cargo vet.
We were considering doing this implicitly after cargo vet in #119, but it was closed because of the existing behaviour of removing matching exemptions in cargo vet certify (https://github.com/mozilla/cargo-vet/issues/119#issuecomment-1171668106). Perhaps this particular gap is a reason to re-open that issue.

The middle ground here would be that we don’t do a full regenerate, but make certify's exemption-removal a bit smarter by having it check if other versions of the certified crate are still needed on the exemption list. This might assuage @Ganka's concerns about wholesale deployment of regenerate exemptions.

We could also lean on the side of doing a stricter version which is only allowed to remove existing exemptions which aren't required to keep the vet passing, rather than doing a full regenerate, though I don't know quite how tricky that would be to implement off the top of my head.

This is the code I ripped out in #224, in general it's extremely difficult to identify if an entry is "needed" or not without simply removing it and checking if things break (because you can have "useless" audits or "overbroad" audits that make things seem useful but can be routed around in the end).
There's also hypothetical situations where you have two exemptions, and removing either one is fine, but removing both breaks your vet. In this case we can choose to arbitrarily delete one of them, or conservatively preserve both without a way to pick the "better" one (with a warning?). However detecting that this situation exists is quite difficult.
Now that nika's really optimized things, it might be viable to do a more surgically precise regenerate that:

checks what state check is in

if it fails, we're in inserter mode

apply all the suggests as exemptions
sanity check that check passes now?

if the sanity check fails, bail?

now enter remove mode to gc

if it passes, we're in remover mode

in a loop, reruns vet with an exemption tentatively removed to find candidate useless entries
remove the candidates
sanity check that check still passes?

if the sanity check fails, error out and tell the user about the candidates?

Okay, so if I understand correctly, the general case here is hard. Would it be possible to detect the exact case I ran into when starting a project? The goal being to help projects getting started with vet and running into their first version bump.
Roughly, cargo vet init will create exemptions of the exact version of code you're using (e.g. version = "0.2.0"). Then when the crate is version bumped for the very first time, a cargo vet certify (which will autofill 0.3.0) will happen, which creates an audit of version = "0.3.0".
After the certify, would it be possible to detect that there is a single version exemption of this crate, attempt to remove it, and see if that still passes? If it fails, no action is required and you could assume this is a more complicated situation.

The simple alternative, of course, is that we just do an implicit regenerate exemptions after certify. I know that @Gankra was worried about the algorithm not being tested enough, but maybe it's ok now, especially if we only do it after certify and not after every command? We could even skip it there are local modifications to config.toml, so that repairing any weirdness would always be one git checkout supply-chain/config.toml away.

If a single change caused multiple values to need to be certified, I'm not sure how great it would be to add exemptions for every other thing after a single call to certify. The advantage of doing it after a successful vet check is at least we know the call was successful before we regenerate exemptions, so aren't turning a failing vet into a succeeding one.
We could maybe do it after certify by running a vet check and only doing a regenerate exemptions if the check succeeded, I suppose?

We could maybe do it after certify by running a vet check and only doing a regenerate exemptions if the check succeeded, I suppose?

Yes, this is more what I had in mind. Agree we should not be running an implicit regenerate exemptions when cargo vet isn't passing, since we only want to be removing entries not adding them.

I think regenerate exemptions should be accurate enough to run automatically if vet is successful after certify once #302 lands. We'll probably want to have a --no-minimize-exemptions flag or similar to prevent the behaviour if it causes folks issues, or is undesirable for some reason.

@mystor did you intend to close this? I didn't see the implicit regenerate step in that PR.


[ HC ] [ ToggleSwitch ] [ Settings ] Eye control toggle button icon is not visible on applying Desert Contrast theme.

A pretty severe bug here. HC brushes use wrong colors, and on top of that, we need colors, not brushes, for the animations to work and for outline to display properly. So the outline was missing completely.

Fixing this by updating all HC brushes to point directly to HC brushes and colors (mostly colors).
HC desert:

HC aqua (default):
https://user-images.githubusercontent.com/29714167/135921793-8051f022-2cd9-477c-b64e-176373f75474.mp4

/azp run


Errors in Win7

I use the LabelImgTool in Win7 with python2.7.  However, there are a lot of question:
Q1: some buttons cannot be used with grey, such as  Create Polygon.
Q2: input label name without labels list.
Q3: Traceback (most recent call last):
File "G:\chrome_download\LabelImgTool-master_py2\LabelImgTool-master\labelImg.
py", line 1196, in newShape
self.label_num_dic[text]]
KeyError: '3'

There are three task modes such as CLS ,SEG and DET. They can be selected in the File/Settings, Polygon is only enabled in the SEG mode.
you should add your labels into the data/predefined_classes.txt file
you can try to clean the rewrite the data/predefined_classes.txt to see whether this can be fixed

@lzx1413  The reason is that I did not execute in LabelImgTool but python2 xx/xx/LabelImgTool/labelImg.py.


Build fails with pkg_resources.DistributionNotFound: The 'yubioath-desktop' distribution was not found and is required by the application

I get this strange error when trying to build an excecutable on Mac OS X
MacBook-Pro-2:yubioath-desktop-yubioath-desktop-2.3.0 sandhaus$ python setup.py executable
running executable
76 INFO: PyInstaller: 3.0
76 INFO: Python: 2.7.11
92 INFO: Platform: Darwin-15.0.0-x86_64-i386-64bit
93 WARNING: You are running 64-bit Python: created binaries will only work on Mac OS X 10.6+.
If you need 10.4-10.5 compatibility, run Python as a 32-bit binary with this command:

    VERSIONER_PYTHON_PREFER_32_BIT=yes arch -i386 /usr/local/opt/python/bin/python2.7

1110 INFO: UPX is not available.
Traceback (most recent call last):
  File "setup.py", line 64, in <module>
    'Topic :: Utilities'
  File "/Users/sandhaus/Downloads/yubioath-desktop-yubioath-desktop-2.3.0/yubioath/yubicommon/setup/__init__.py", line 103, in setup
    return _setup(**kwargs)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Users/sandhaus/Downloads/yubioath-desktop-yubioath-desktop-2.3.0/yubioath/yubicommon/setup/exe.py", line 76, in run
    pyinst_run([spec_name])
  File "/usr/local/lib/python2.7/site-packages/PyInstaller/__main__.py", line 99, in run
    run_build(opts, spec_file, pyi_config)
  File "/usr/local/lib/python2.7/site-packages/PyInstaller/__main__.py", line 47, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **opts.__dict__)
  File "/usr/local/lib/python2.7/site-packages/PyInstaller/building/build_main.py", line 737, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "/usr/local/lib/python2.7/site-packages/PyInstaller/building/build_main.py", line 680, in build
    exec(text, spec_namespace)
  File "<string>", line 63, in <module>
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 561, in get_distribution
    dist = get_provider(dist)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 441, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 962, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'yubioath-desktop' distribution was not found and is required by the application
´´´

It "works for me". Do you need to build a standalone binary of this yourself?

Closing this as I can't reproduce it.


Oracles on AWS

Expected Behavior
Some oracle clients should run on AWS.
Current Behavior
Currently, all oracle clients run on GCP.

Closing as duplicate

Closing as duplicate


Worth to be added: M_blas Repo

https://github.com/urbanjost  has few nice fortran repo  including this new

A Fortran BLAS library implemented as a free-format module.
https://github.com/urbanjost/M_blas

Thanks -- added to the linear algebra section.


getPossesiveSuffix / makePossesive with noun?

documentation mentions:
getPossesiveSuffix("Ayşe", Pronoun.SingularFirst, true) // Ayşe'm
seems a documentation bug exists here as the related signature is;
export declare const getPossesiveSuffix: (base: string, pronoun: Pronoun) => string;
which doesn't contain isProperNoun parameter.
Instead I tried the:
{makePossesive('Monako', Pronoun.SingularSecond, true)}
which does handle the isProperNoun parameter but expected output is wrong:

expected: Monako'nun
actual output: Monako'n

Am I missing something here?

Yes documentation was incorrect so I updated it, thank you. As for {makePossesive('Monako', Pronoun.SingularSecond, true)} -> "Monako'n" this is the expected behaviour, making it possesive as in 'Your Monako'. To get "Monako'nun" you need to use the makeCompound function with Compound.Compounder type. eg:
makeCompound("Monako",  Compound.Compounder, true) // -> "Monako'nun"

thanks!


Company communicator is not working on Modern Microsoft teams

The Company Communicator Author is not working on Modern Microsoft Teams. When I switch back to the classic Teams version, the Communicator Author is working properly, and on Modern Microsoft Teams showing the error message 'Sorry, an error occurred while trying to access this service.' I have attached a screenshot below.

Deployment status of app service.

I have a couple of queries that require your support. Can we migrate from customized versions to the standard version? What will be the impact, such as access level and data? The current version is working fine with MS Classic Teams, and will the Standard version support Modern Teams? Additionally, can we use the same applications (User app, Author App, Graph App) for deployments?

Hi @JamaliShoaib ,
Thanks for raising the query.

Please share the screenshot of logs section

Share the screenshot of author apps-home page of both classic teams and new teams.

Can we migrate from customized versions to the standard version?
No, we won't recommend it. The better option is to go with fresh deployment of CC only.

What will be the impact, such as access level and data?
Possibilities of UI mismatch, configuration mismatch, some functionalities may be in extra/less. Overall it leads to break in functionality.

The current version is working fine with MS Classic Teams, and will the Standard version support Modern Teams?
Yes, our application works with both classic and new version of teams

can we use the same applications (User app, Author App, Graph App) for deployments?
If the app registration already used for one deployment then those can't be used for other.

If you are still facing the issue, please don't hesitate to log a new issue


Characteristic 'Current Temperature': characteristic was supplied illegal value: null!

Since HB 1.3.0 I get the following warning in my logs:
[homebridge-blink-for-home] This plugin generated a warning from the characteristic 'Current Temperature': characteristic was supplied illegal value: null! Home App will reject null for Apple defined characteristics See https://git.io/JtMGR for more info.
Is that something that can be fixed? It's quite annoying since it spams my logs several times per Minute.

Nevermind.
After several HB restarts the warming disappeared. Seems like the Blink API did not return a temperature value before, now it does.
Maybe a more graceful timeout would help in such cases.


Bulk Export Status

While doing bulkdata status request  "error":[], should be a part of the response, even if there is no error in this request. Please help us in this. This is required for ONC MU Inferno testing tool.
https://chat.fhir.org/#narrow/stream/212434-ibm/topic/releases/near/250080961
Thanks
Mahesh

Thanks, this is an enhancement.

Confirmed that, upon successful export, the bulkdata-status endpoint response now contains "error": []


[Bugfix]Parallel stream load NullPointerException

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Only broker load has fileGroups. If parallel stream load is used, a null pointer exception will be thrown at LoadPlanner#plan.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

[FE PR Coverage Check]
:heart_eyes: pass : 1 / 1 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/LoadPlanner.java
1
1
100.00%
[]


Javascript Error in report.html when filtering with activated content security policy

I noticed a javascript error in report.html when Content Security Policy (CSP) is enabled and "sandbox allow-same-origin" is not set. CSP is activated in Jenkins by default since Jenkins 1.641 / Jenkins 1.625.3.
When clicking a tag in the report.html the report output should be filtered by the selected tag and the result shown below "Test Details". However with recent browsers (Edge & Firefox 48+) the result remains empty and the Console shows the error "SecurityError: The operation is insecure.".
As a workaround this can be circumvented by disabling CSP or setting "sandbox allow-same-origin".
However, the javascript should not fail at this point only because the access to the browser's localStorage is prevented. The report should still work and be more robust in this case.
I have created a fix and will add a pull request.

This is definitely bad behavior and needs to be fixed.


Critical Bug on Publisher Verification

Hi team
we have been struggling the trying to solve a bug that is hindering our development. We have two different apps that the publisherId just refuses to associate:
{
"error": {
"code": "UserUnableToAddPublisher",
"message": "You are unable to add a verified publisher to this application. Please contact your administrator for assistance.",
"innerError": {
"date": "2023-06-28T10:46:21",
"request-id": "26a07e64-a7c6-4e3a-bfec-a5d0a6825083",
"client-request-id": "d08958d8-241f-8bb5-c06a-8fed692fdb99"
}
}
}
{
"error": {
"code": "UserUnableToAddPublisher",
"message": "You are unable to add a verified publisher to this application. Please contact your administrator for assistance.",
"innerError": {
"date": "2023-06-28T10:57:41",
"request-id": "6f1d2303-a08d-4e99-959c-3e3ffc075fa9",
"client-request-id": "29b18755-4d60-ba98-784b-3571edf78123"
}
}
}
we have tried multiple times and with different Global Admin accounts both for the MPN and Azure AD.

@pedrospecter
It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!!

Hi @YashikaTyagii
Thank you for attending to this.
basically I started following this doc in order to verify the app in azure AD:
https://learn.microsoft.com/en-us/azure/active-directory/develop/mark-app-as-publisher-verified
Afterwards, and so many tries I tried this directly in graph explorer:
https://learn.microsoft.com/en-us/azure/active-directory/develop/troubleshoot-publisher-verification
Still not successful, I dig a bit more and found the info about the risky users:
https://learn.microsoft.com/en-gb/azure/active-directory/identity-protection/howto-identity-protection-remediate-unblock
And made dismiss risk to my own account in order to raise the "risky status", but still did not work.

I fixed it on my own by creating a parallel account. The problem was on the risky accounts, and takes too much time to clear the "risky status" even if the dismiss risk was attributed to that account

@pedrospecter
It is good to know that you have resolved the issue. Kindly reach out for any further queries.


bug(cdk): Wrong offset of dragged element on RTL

Is this a regression?

[X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
17.2.2
Description
When in RTL mode, and try to drag a element from a list, the element is offset to the right with the length of the screen width
Reproduction
StackBlitz link: https://stackblitz.com/edit/kuk7sb?file=src%2Findex.html
Steps to reproduce:

add dir="rtl" to html tag in index.html
try to drag an element from the list

Expected Behavior
The element should be under the drag start position (mouse) like it was in v17
Actual Behavior
https://github.com/user-attachments/assets/d11d5cfb-3201-4819-b4e9-8d562280a25c
Environment

Angular: 18.1.3
CDK/Material: 18.1.3
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows

It looks like this was caused by #28945. I'm still figuring out how we can work around it.


feature request: add wrap commands

Everything works great but when comparing with ale, I'm missing at least 2 commands:
:PrevWrapDiagnostic
:NextWrapDiagnostic

These variants would wrap arround a buffer, making warning navigation more seamless.
Another nice-to-have that maybe it's outside the scope of this plugin would be OpenDiagnosticToggle so that it would be easier to open-close the quickfix diagnostics window without needing to navigate to it and close it manually.

Actually similar functionality has been implemented in #8 . You can use :NextDiagnosticCycle and :PrevDiagnosticCycle to do the work(should've documented that in README though).
I can implement the openDiagonsticToggle command though.

Thanks a lot! Somehow I missed that PR.
I've been thinking about the :OpenDiagnosticToggle and maybe since it's something specific to the quickfix window which has broader applications than a diagnostics window, maybe it should be outside the scope of this plugin. I merely suggested it for consistency.
I personally use romainl's vim-qf to manage my quickfix window so that feature is not an absolute necessity.
I will close this issue if you see it likewise.

Hmm I think you're right. Since the diagnostic list only use the built-in location list handling it should be out of the scope of this plugins.


About how to generater Normal_*.json

Hi,
I was wondering how to generater Normal_*. json files?
And if it was generatered by the normal tissue mask? can you share the process detail. Thank you!
Kind regards,

@ilikewind yes, for Normal_*.json files they were generated by random sampling coordinates from the normal tissue mask at some higher level, e.g. level 6.

@ilikewind It's always impossible to enumerate all the tissue regions of  a normal samples, so you have to do subsampling.

@ilikewind I'm not quite sure how you generated this figure, it seems the blue dots are concentrated about boundary regions. This might due to the effect of hard negative mining.

@yil8 the figure was generated by your file Normal-001.json at NCRF/jsons/train/.
And I am not sure if you mistake the json file for coordinates/normal_train.txt . It seems we are discuss different issues.
Best wish.

@ilikewind I am so sorry, I was completely wrong about your question, and indeed I confused between Normal_001.json with coordinates/normal_train.txt. Normal_001.json was not really used through out this code base. Honestly, I forgot how Normal_*.json were generated, but they were probably not generated base on tissue mask

@yil8 Ok, thanks for your patient. I will do something about it.


New keyword argument to check if an array is flat to within some tolerance

This PR adds a new keyword argument flat_array_tol to fftvis.simulate.simulate that checks if an array is flat to within some tolerance. If all baselines are found to have z-components less than the tolerance set by flay_array_tol, the z-component of the array is set to zero.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.60%. Comparing base (48d496b) to head (de3bec0).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   80.59%   79.60%   -1.00%
==========================================
  Files           5        5
  Lines         201      201
  Branches       47       47
==========================================
- Hits          162      160       -2
- Misses         31       32       +1
- Partials        8        9       +1

Flag
Coverage Δ

unittests
79.60% <100.00%> (-1.00%)
:arrow_down:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Cannot start server: address in use?

I'm trying to set up TiddlyServer on a home file/web server I have running Ubuntu 17.10. Whenever I try to start TiddlyServer I get an error message stating that my address is in use. I've verified the port is available both via netstat and by starting basic web servers on it, e.g. python3 -m http.server 8083. Any recommendations? I've tried installing both from the release bundle as well as cloning the repo directly.
The error:
Settings file: /opt/tiddlywiki/settings.json
{ Error: listen EADDRINUSE <IP_ADDRESS>:8083
    at Object._errnoException (util.js:999:13)
    at _exceptionWithHostPort (util.js:1020:20)
    at Server.setupListenHandle [as _listen2] (net.js:1379:14)
    at listenInCluster (net.js:1420:12)
    at doListen (net.js:1535:7)
    at process._tickCallback (internal/process/next_tick.js:152:19)
    at Function.Module.runMain (module.js:703:11)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:618:3
  errno: 'EADDRINUSE',
  code: 'EADDRINUSE',
  syscall: 'listen',
  address: '<IP_ADDRESS>',
  port: 8083 }
caught process uncaughtException
closing server

My settings.json:
{
        "tree": {
                "data": "/files/tiddlywiki"
        },
        "username": "[...]",
        "password": "[...]",
        "host": "<IP_ADDRESS>",
        "port":8083
}

Have you tried running it as sudo?
Also, you could try putting your server's address instead of <IP_ADDRESS>
On Dec 20, 2017 11:04 PM, "Sam Shores"<EMAIL_ADDRESS>wrote:

I'm trying to set up TiddlyServer on a home file/web server I have running
Ubuntu 17.10. Whenever I try to start TiddlyServer I get an error message
stating that my address is in use. I've verified the port is available both
via netstat and by starting basic web servers on it, e.g. python3 -m
http.server 8083. Any recommendations? I've tried installing both from
the release bundle as well as cloning the repo directly.
The error:
Settings file: /opt/tiddlywiki/settings.json
{ Error: listen EADDRINUSE <IP_ADDRESS>:8083
at Object._errnoException (util.js:999:13)
at _exceptionWithHostPort (util.js:1020:20)
at Server.setupListenHandle [as _listen2] (net.js:1379:14)
at listenInCluster (net.js:1420:12)
at doListen (net.js:1535:7)
at process._tickCallback (internal/process/next_tick.js:152:19)
at Function.Module.runMain (module.js:703:11)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3
errno: 'EADDRINUSE',
code: 'EADDRINUSE',
syscall: 'listen',
address: '<IP_ADDRESS>',
port: 8083 }
caught process uncaughtException
closing server
My settings.json:
{
"tree": {
"data": "/files/tiddlywiki"
},
"username": "[...]",
"password": "[...]",
"host": "<IP_ADDRESS>",
"port":8083
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Arlen22/TiddlyServer/issues/31, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA4OgY5X5okd3z-aAla97Mf-rYV7MHxBks5tCdjDgaJpZM4RJVDg
.

I have been running as sudo; sorry I forgot to mention that.
Putting in my server's IP address does work. Though now that I think of it, I probably need to just use <IP_ADDRESS> since I'm planning to put this behind a proxy.
Thanks for the fast response!

In that case, it is possible that there is another process listening on that port on a certain interface or IP address, but I don't know for sure what the problem is. However, this would be a Node-related problem and not a TiddlyServer problem specifically, so you can research it under "Node HTTP server cannot bind to <IP_ADDRESS>" if you like.


Improved Paged Attention

Rewrite of paged_attention_v1 implementation on gaudi. Blocks are gathered by columns to form a single tensor with whole context, out-of-bounds indices are masked and then regular dot-product attention is calculated.
TODO: add support for alibi and attention_masks

@kzawora-intel @mdvoretc-intel please review


AI: Server telemetry channel was not initialized

Hi AI Team,
I am trying to instrument my service using AI but I am not getting the server metrics in the server. This TRACE message shows up in the "Search" in AI portal but I can't figure why or how to fix this. The only thing we did special is to override the cloudRoleName using customer initializer so we can see multiple instances of same service in the single application map.
Trace Message
AI: Server telemetry channel was not initialized.  You need to call ServerTelemetryChannel.Initialize(). Currently monitoring will continue but if telemetry cannot be sent it will be dropped.

AI Portal
Live Metrics shows the server is listed but CPU, RAM etc.. is N/A
Server performance metrics - N/A, NOT OK
Dependencies tracking - OK
Custom events - OK
package.config
  <package id="Microsoft.ApplicationInsights" version="2.5.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.4.0" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.DependencyCollector" version="2.5.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="2.5.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.WindowsServer" version="2.5.1" targetFramework="net461" />
  <package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.5.1" targetFramework="net461" />

Program.cs
//active telemery for application performance monitoring
TelemetryConfiguration.Active.TelemetryInitializers.Add(new ServiceNameInitializer(serviceSettings.ServiceName));
TelemetryConfiguration.Active.DisableTelemetry = !serviceSettings.TelemetryAiEnabled;
TelemetryConfiguration.Active.InstrumentationKey = serviceSettings.TelemetryAiInstrumentationKey;

ServiceNameInitializer
    public class ServiceNameInitializer : ITelemetryInitializer
    {
        private readonly string _serviceName;
        public ServiceNameInitializer(string serviceName)
        {
            _serviceName = serviceName;
        }

        public void Initialize(ITelemetry telemetry)
        {
            telemetry.Context.Cloud.RoleName = _serviceName;
        }
    }

Additional Info:
I use Serilog sinks into AI and this perhaps explains why the server shows up in the Live Metrics maybe the Server Telemetry actually never worked in my case?
When I run the same service on my local machine, the server perf counters (RAM, CPU, etc) appears in AI portal.

What the framework version an application compiled with and running on? Can you post ApplicationInsights.config?
From the look of an issue I think it is this: https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/328 Telemetry disabled, but live metrics do not respect the setting so you got confused.
The only worrisome thing here is why channel wasn't initialized.

Hello, I'm having similar issues, I added in my code a Telemetry.TrackEvent("Message"); code and works fine, but the message about "telemetry channel was not initialized" was always there, even before my customization.
This is my ApplicationInsights.config as Visual Studio 2017 added:
``

685fd420-883a-4d2b-9c3b-4a13e2eec1ce

search|spider|crawl|Bot|Monitor|AlwaysOn

core.windows.net
core.chinacloudapi.cn
core.cloudapi.de
core.usgovcloudapi.net
localhost
<IP_ADDRESS>

Microsoft.Azure.EventHubs
Microsoft.Azure.ServiceBus

<!--
Use the following syntax here to collect additional performance counters:
  <Counters>
    <Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" />
    ...
  </Counters>

  PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName

  NOTE: performance counters configuration will be lost upon NuGet upgrade.

  The following placeholders are supported as InstanceName:
    ??APP_WIN32_PROC?? - instance name of the application process  for Win32 counters.
    ??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters.
    ??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters.
  -->
</Add>
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnhandledExceptionTelemetryModule, Microsoft.AI.WindowsServer"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule, Microsoft.AI.WindowsServer">
  <!--</Add>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.FirstChanceExceptionStatisticsTelemetryModule, Microsoft.AI.WindowsServer">-->
</Add>
<Add Type="Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule, Microsoft.AI.Web">
  <Handlers>
    <!--
    Add entries here to filter out additional handlers:

    NOTE: handler configuration will be lost upon NuGet upgrade.
    -->
    <Add>Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler</Add>
    <Add>System.Web.StaticFileHandler</Add>
    <Add>System.Web.Handlers.AssemblyResourceLoader</Add>
    <Add>System.Web.Optimization.BundleHandler</Add>
    <Add>System.Web.Script.Services.ScriptHandlerFactory</Add>
    <Add>System.Web.Handlers.TraceHandler</Add>
    <Add>System.Web.Services.Discovery.DiscoveryRequestHandler</Add>
    <Add>System.Web.HttpDebugHandler</Add>
  </Handlers>
</Add>
<Add Type="Microsoft.ApplicationInsights.Web.ExceptionTrackingTelemetryModule, Microsoft.AI.Web"/>
<Add Type="Microsoft.ApplicationInsights.Web.AspNetDiagnosticTelemetryModule, Microsoft.AI.Web"/>

5
Event

5
Event

<!--
    Learn more about Application Insights configuration with ApplicationInsights.config here:
    http://go.microsoft.com/fwlink/?LinkID=513840
<pre>Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file.

-->

We figured out that this problem most likely caused by Application Insights Profiler, not Application Insights itself. There is no workaround except waiting for an update for Azure Web App extension.
@pharring do you have an estimation for this to be fixed?

Hi, is there an update on this? We're experiencing this as well on our production api

As far as I know the issue is fixed in code. It's the matter of deployment. @pharring any updates?

Yes, it's already in the latest Application Insights site extension. Please upgrade the site extension via the Azure Portal or the Kudu endpoint for your web app.

Hi guys! I know this issue is closed, but I believe I might be hitting the same issue on AppService. I have not enabled any extensions specifically and that's what azure portal says. On the Kudu webpage though, I see a webjob: ApplicationInsightsProfiler3
I also see TRACE error messages in AppInsights and I have all of my components configured to log to AI via Serilog. The trace message I'm seeing:
AI: Server telemetry channel was not initialized.  You need to call ServerTelemetryChannel.Initialize(). Currently monitoring will continue but if telemetry cannot be sent it will be dropped.

And I have configured Serilog like this:
                        var configuration = new TelemetryConfiguration() {
                            InstrumentationKey = hostingContext.Configuration.GetValue<string>("ApplicationInsights:InstrumentationKey"),
                            TelemetryChannel = new ServerTelemetryChannel() {
                                DeveloperMode = hostingContext.HostingEnvironment.IsDevelopment()
                            }
                        };
                        loggerConfiguration.WriteTo.ApplicationInsightsEvents(configuration);

The log messages from the apps are showing up in AI, so it is working, but I'm not sure if I should instantiate ServerTelemetryChannel and call initialize and then pass that into TelemetryConfiguration.
I don't know how to check the version of AI extension in Azure AppService (since it says none are installed) and Kudu says the same (none are installed).

As the message says, you need to call Initialize on ServerTelemetryChannel before it can be used. i.e.
    var telemetryChannel = new ServerTelemetryChannel {
        DeveloperMode = hostingContext.HostingEnvironment.IsDevelopment()
    };

    var configuration = new TelemetryConfiguration {
        InstrumentationKey = hostingContext.Configuration.GetValue<string>("ApplicationInsights:InstrumentationKey"),
        TelemetryChannel = telemetryChannel
    };

    telemetryChannel.Initialize(configuration);
    loggerConfiguration.WriteTo.ApplicationInsightsEvents(configuration);

Thanks @pharring!


Refactor packet reading/writing

AGAIN WITH THE REFACTORING. I know this has been rewritten almost three times now.. but the string concatenation and multiple function calls to parse a packet is really wasteful and SLOW. We should be doing one pack statement, and one unpack statement. Easy.
Except we'll have to redo every packet that's been written so far. :-1:
Example: http://systemsarchitect.net/parsing-binary-data-in-php-on-an-example-with-the-pcap-format/
UPDATE:
fyi, the new internal reading architecture should be client agnostic. The packet buffer should be Stackables in which pthread workers can chew on. We should probably do the same for outgoing clientbound packets, but I don't think that will be too much of a perf increase.
UPDATE 2:
check for inspiration at https://github.com/Poweruser/MinetickMod

pthreads?

I've been looking at pthreads, I want to try it out but I don't know how hard it would be to integrate and what the right structure would look like. I think maybe the client should have it's own packet processing thread, and that would be a good setup. But I have never touched multithreading before, it's interesting but daunting..

I would guess there would be a fair bit of pain involved in getting pthreads operational in such a large project. But there looks to be a lot of pain refactoring what you already have (not a criticism, just an observation of the size of project you are working on).
You would want to look at pthreads in PHP 7, as the support is looking much more mature, and thread safety appears to be managed much better.
https://github.com/krakjoe/pthreads

This'll be interesting. I'll spend some time researching and seeing how other people incorporated it, or for some basic multithreaded concepts/structures before jumping into it. If you have any good resources, feel free to send them my way. :+1:

I think the krakjoe repo is the benchmark for pthreads, and would be the place to start if you wanted to head down that rabbit hole.
Are you already hitting performance issues? Is this why you are looking to refactor?

I'm hitting performance issues now, and I'm pretty sure the bottleneck is my packet reading implementation. I'll do some perf profiling, but it definitely is blocking the main thread and delays incoming packets from being read. I believe I have a better solution in my head for it.

I wonder how much impact Logging is having on performance. If the logs are also being committed to the filesystem, the thread will have to wait for the I/O to complete - which on a single threaded program will slow everything down significantly.
Have you tried disabling logging?
Logging would be a perfect candidate for pthreads. From memory you are using Monolog, which means implementation would be dead simple.

That's a really easy one to get added. I've switched to using PHP 7.0 RC1 version and got pthreads working, but the event library hasn't been ported to PHP 7 yet. Which kinda brings 7.0 to a halt for now.
I'm trying to look at some other multithreaded architectures. It's very confusing since I've only done work in node.js, and the async/callback architecture makes it hard to think. There's also no documentation for the new pthreads v3 api currently as well.
Fortunately there was a guy who added server multithreading to parts of Minecraft, and I got a few ideas on how to approach bringing parallelism to several parts of the server: https://github.com/Poweruser/MinetickMod

I think it's good to go for now. I don't think it's necessary to integrate Pthreads yet. I've seen good performance so far, surprisingly.


[lrt] fixing broken extractor

Fixes issue https://github.com/ytdl-org/youtube-dl/issues/20264
Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
www.lrt.lt/mediateka website was redesigned in 2019 and youtube-dl lrt extractor needs to be updated. There is another pull request available for this change (https://github.com/ytdl-org/youtube-dl/pull/20499), however my changes are more extensive and produce a simplified extractor implementation.

Just checked that branch audrius_fix_lrt_extractor works OK against lrt.lt (https://github.com/audriusm/youtube-dl/tree/audrius_fix_lrt_extractor)
Why this did not go to the upstream? @dstftw - pending review?


ExtensionHostCreashed

VSCode Version:1.22.2
OS Version:windows10 1803

Steps to Reproduce:

Open the vscode and open a python file and it will appear.

Does this issue occur when all extensions are disabled?: Yes/No
no

@starry-zhao
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

I don't seem to be able to turn on the software, which is always black scree

n.

@starry-zhao does it work if you run "code-insiders --disable-gpu" from the command line?

@bpasero 还是不行，无法正常工作，你可以给我一下您的邮箱吗？我录制了屏幕视频，可以发给您看下。
Still can't, can't work normally, can you give me your mailbox?I recorded video on the screen and I can send it to you.

@starry-zhao I trust you from the screenshot above. But to clarify, you can still run Code (the stable version) and it shows the window but then the extension host crashes or does that also not start anymore?
As for code insiders, can you run code-insiders --verbose from the command line and attach the output here?

@bpasero 我有些不太明白，您想说什么？
我是想，直接发视频给您，您会不会看得更清楚，可以得到更多的信息。
我这边情况就是稳定版是打开后都正常，但是我打开文件夹时过一小会会弹出扩展宿主意外终止的提示，我本来想说忽略他，但是python的扩展也无法打开了。基本就是这样。
你发给我的预览版，我打开是黑屏状态，无法使用。
I don't quite understand. What are you trying to say?
I just want to send video directly to you, you will not see more clearly, you can get more information.
My side is on the stable release is normal, but when I open the folder a small terminated unexpectedly tips will pop up extension host, said I tried to ignore him, but the python extension cannot open. That's basically it.
The preview you sent to me, I opened the black screen state, can not use.

@starry-zhao

If you disable the python extension, does the extension host crash ?

If you disable all extensions, does the extension host crash ?

@alexandrudima  disable the python extension, The extended host does not crash.
But I only have a python extension.I tried to install a c/c++ extension, although I didn't run c code, but I didn't show the extended host crash.
I think the problem is really python extensions？But for the time being, I'm using him to write python, which is bad if you can't extend it in python.

No, that is good news.
Because now we can direct you to the team which writes the Python extension and they can help troubleshoot with you.
@starry-zhao I'm assuming you have the Python extension from Microsoft. Can you please open a new issue at https://github.com/Microsoft/vscode-python/issues and explain that the extension host crashes when you have the Python extension. You can link to this issue.


[libra-trace] Add counters for libra-trace and struct_log.

Add counters for libra-trace and struct_log.

@bors-libra r=andll

:pushpin: Commit f07f03f has been approved by andll

:hourglass: Testing commit f07f03f9136dc724f5ef733d3b778ad6ae6a13c6 with merge fece82d1258bed157b6ee2d5b0ee4a454db5a846...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: andll
Pushing fece82d1258bed157b6ee2d5b0ee4a454db5a846 to master...

Why didn't this use libra-metrics? I tried to isolate the prometheus dependency there.

@davidiw what is the solution you propose? How do we add counter that works for both other libra crates and TCB?
@metajack it seems libra-metrics references prometheus crate, so using it is not going to help?

Well this won't even be used by TCB, you create a counter that is a no-op in TCB land.
I suspect you probably want some sort of ability to register a counter to be used by logging and we'd need a common interface for that. That way the TCB can push the metric and prometheus + hyper can share it.

We probably need to figure out this 'metrics done differently' in TCB.
There probably will be other components in libra shared between TCB and non-TCB. Currently if they would want to export counters, what would they do?

sure, but this seems like a pretty special metric, do we imagine more cases where we'll want to log at a common layer?


Update Meta Desc mail.apiblueprint

Hello @mikepace,Thank you for the PR! We will be reviewing this PR soon, in the mean                                              time, if you have not, please be sure to                                                                                sign our CLA so that we can merge your changes. Thanks again!                                             Team DX


Import of XML with DOCTYPE is impossible

Description
Can't import XML files becase there are no columns on mapping page
DBeaver Version
23.3.0
Operating System
Win11
Database and driver
Any
Steps to reproduce

Export any data with DBeaver to XML with doctype
Start import and select that XML file
Go to mapping page

Expected: Columns are shown
Actual: No columns can bee seen
Additional context
org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 10; DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.jkiss.utils.xml.SAXReader.parse(SAXReader.java:112)
	at com.dbeaver.data.importer.DataImporterXML.readColumnsInfo(DataImporterXML.java:64)
	at org.jkiss.dbeaver.tools.transfer.stream.StreamProducerSettings.updateProducerSettingsFromStream(StreamProducerSettings.java:145)
	at org.jkiss.dbeaver.tools.transfer.ui.pages.stream.StreamProducerPageSettings.lambda$11(StreamProducerPageSettings.java:416)
	at org.jkiss.dbeaver.runtime.RunnableContextDelegate.lambda$0(RunnableContextDelegate.java:39)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

We probably should add a checkbox to allow importing from XML files with defined DOCTYPE, as a option disabled by default


Update automation-runbook-types.md

Fix typo

Hi @johnbooze, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@johnbooze John, thanks for making that correction.


Azure Function Crew Erroring - 'charmap' codec can't encode characters in position & Crew ending early

I've copied my Crew into a queue triggered Azure Function to handle the scale of my application but have started getting strange issues with my Crew not running to completion.

When executing the function, as shown below, it seems to consistently struggle with a charmap codec error - this causes the function to error and exit. However I can see the crew is still running and trying to continue. This exact same crew runs fine when not inside an Azure function. I have tested the function definitely runs without crew.

I am using Python 3.10.8

Fixed by setting environment variable to:
"PYTHONIOENCODING": "utf-8",
In the azure func.


CupertinoSwitch does not respect the 'On/Off Labels' iOS accessibility system setting

Steps to Reproduce

Run flutter create bug.
Update main.dart as follows:

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: CupertinoPageScaffold(
        child: SafeArea(
          child: SwitchDemo()
        ),
      ),
    );
  }
}

class SwitchDemo extends StatefulWidget {
  @override
  _SwitchDemoState createState() => _SwitchDemoState();
}

class _SwitchDemoState extends State<SwitchDemo> {

  var _isOn = true;

  @override
  Widget build(BuildContext context) {
    return CupertinoSwitch(
      value: _isOn,
      onChanged: (newValue) {
        setState(() {
          _isOn = newValue;
        });
      },
    );
  }
}

Steps to reproduce

Run the app on an iOS device or simulator
Open the device settings
Go to Accessibility -> Display & Text Size. Turn on 'On/Off labels'. (this is the settings path as of iOS 13)
Return to the Flutter app

Expected results:
The switch should show on/off labels, like this:

Actual results:
The switch is not labelled:

Logs

flutter doctor -v
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-GB)
    • Flutter version 1.20.3 at /Users/omarf/Developer/flutter
    • Framework revision 216dee60c0 (2 weeks ago), 2020-09-01 12:24:47 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/omarf/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.7, Build version 11E801a
    • CocoaPods version 1.8.4

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[!] IntelliJ IDEA Ultimate Edition (version 2020.1.2)
    • IntelliJ at /Users/omarf/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.48.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • iPhone 11 (mobile) • 96EEC63D-B411-4473-895B-2E2D7273DD9F • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)

! Doctor found issues in 2 categories

Issue replicable on latest master. Tested on iphone 6s.

flutter doctor -v
Flutter 1.22.0-10.0.pre.174 • channel master • https://github.com/flutter/flutter.git
Framework • revision 37b03ec2c2 (4 hours ago) • 2020-09-14 23:52:04 -0400
Engine • revision 7e962ba911
Tools • Dart 2.10.0 (build 2.10.0-124.0.dev)

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.22.0-10.0.pre.174, on Mac OS X 10.15.4 19E2269, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.46.1)
[✓] Connected device (4 available)

• No issues found!

@darshankawar Looks like a duplicate of #4830

Thanks @TheBiirb for the tip.
Closing this as duplicate of 4830
@omar-f please follow-up for updates and any questions in 4830.
Thanks.


Dependency Injection into IViewLocationExpander implementing class

Is it possible to use constructor Dependency Injection in a class implementing IViewLocationExpander?
It is initialized in Startup.cs ConfigureServices
            .AddRazorOptions(options =>
            {
                options.ViewLocationExpanders.Add(new CustomViewLocationExpander());
            })

So it seems a problem to inject into the constructor.
Is there some solution?

You could use ConfigureOptions do this: services.AddOptions<RazorViewEngineOptions>().ConfigureOptions<ICustomService>(options => ...)

Thanks for contacting us. We believe that the question you've raised have been answered. If you still feel a need to continue the discussion, feel free to reopen it and add your comments.

@pranavkm @mkArtakMSFT
I don't understand the answer.
I want to inject something into CustomViewLocationExpander class constructor. I don't understand how the answer allows me to do that.

// CustomViewLocationExpander
class CustomViewLocationExpander
{
   public CustomViewLocationExpander(ISomeService service1, IDifferent service2) { }
}

// Startup
services.AddTransient<ISomeService, SomeServiceImpl>();
services.AddTransient<IDifferent, Different>();
services.AddTransient<CustomViewLocationExpander>();
ervices.AddOptions<RazorViewEngineOptions>().ConfigureOptions<CustomViewLocationExpander>((options, expander) => options.ViewLocationExpanders.Add(expander));

how does the code
services.AddOptions<RazorViewEngineOptions>().ConfigureOptions
integrate with the code
services.AddMvc().AddRazorOptions(options =>                 {                     options.FileProviders.Clear();                     options.FileProviders.Add(new PhysicalFileProvider(...));                 }).AddJsonOptions().AddDataAnnotationsLocalization().AddViewLocalization()
does it come after it, before it? instead of it?
thanks

I have put it AFTER .addRazorOptions and it seems to work, thanks


Fix reference to non-existent binding

Fixed reference to non-existent binding
Summary
As far as I know, the NetProfileMsmqBinding does not exist. Judging from this post, it looks like this was the old name for NetMsmqBinding.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

You're welcome, I'm happy to contribute! 👍


Built-in build view pops up, then closes

When running a build with buildview enabled, the "Build output" view shows up and works really nicely. However, sublime's built-in build view also pops up at the bottom of the screen, then disappears. Is that an expected behavior? And if so, is there any way to turn it off?

Thanks for dropping a comment @rdeits, I appreciate it!
Unfortunately, there's no way around this; as far as I know, sublime's built-in build view can't be disabled. If you look at our code [1], you'll see that what we are doing is mirroring/piping the text from the built-in view to our own "Build output" view, we don't replace it (cos we can't, not that I know of). I'll keep tabs on sublime 3's releases and see if this becomes possible someday.
[1] https://github.com/rctay/sublime-text-2-buildview/blob/dabfaf1814ffe62b8e17b50014b74894f570c756/commands.py#L124

Okay, thanks!

The build panel can be disabled by setting "show_panel_on_build" to false in the user settings. See also http://superuser.com/questions/538636/disable-build-window-when-building-in-sublime-text-2
cheers,
Birnbaum2001


change job.write_disposition usage

from 'truncate' to 'WRITE_TRUNCATE'
'truncate' is not one of the supported values

LGTM @tswast can you verify?

WRITE_TRUCATE is correct. The allowed values are

WRITE_EMPTY
WRITE_TRUNCATE
WRITE_APPEND


Has values class

tldr; This PR adds a .multiselect--has-values class to the main element when there is one or more items selected.
Reason
My placeholder is pretty long, so I need to set a width for the input.
The width for the input is currently controlled in the inputStyle() method here https://github.com/shentao/vue-multiselect/blob/master/src/Multiselect.vue#L256.
By adding the .multiselect-has-values class, I am able to mimic the default behaviour (showing the placeholder when there are no values, or the select is active; hiding it in other cases.
I'm using this snippet of sass
.multiselect,
.multiselect.multiselect--active.multiselect--has-values {
  .multiselect__input {
    width: 300px !important;
  }
}
.multiselect.multiselect--has-values {
  .multiselect__input {
    width: 0 !important;
  }
}

Curious to hear if there's a better way to do this.

I think I have an easier solution in https://github.com/shentao/vue-multiselect/pull/606 where you can just set the `placeholderWidth' property.


Add live-reload for hotwire

<EMAIL_ADDRESS>So the page will reload on file changes during development.

Hotwire was a tool to learn and research. I didn't do anything about it.


Use --device-c for RDC compile

Closes #4421.

pfnCI, test this please.

Jenkins CI test (for commit aedb0dc2ea8eb7d77c5d7221364bd8cd327bc848, target branch master) succeeded!

Cool, I guess the problem is like what @anaruse said that -fPIC isn't supported on Windows, and that it's simply not needed in the first place.


[frontend] Sink signature

Context: QA showed that the following syntax could be desirable:
pure_callback(np.sin, float)(x)

however, np.sin is a ufunc and does not have a python signature.
Description of the Change: Sink the retrieval of python signatures.
Benefits: the syntax above can be used.
This change will be cherry-picked for version 0.6.0 release.

@erick-xanadu should this be merged into the RC branch?

@josh146 I can either cherry-pick it to the rc branch or merge to rc branch and then do another commit to main. I think both of these are fine.

I'll just merge with the rc branch instead to maintain the previous workflow. Thanks for pointing it out @josh146 ! :)


Remove lambda/inner functions in dask.dataframe

These increased serialization costs, often contained closures making
debugging more difficult, and were sometimes defined in multiple places.
Most of these were moved to dask.dataframe.methods, where they can be
reused.

+1 on the idea

This could use a review. In particular, I'm not sure about M being a good global name for the MethodCache (I like it because it's short). I do think this is a good step forward though - all of dataframe should be serializable now with cpickle, which is a nice speed increase and message size decrease from needing to use cloudpickle-only functionality before.

This all looks pretty good to me.  I think I'm only +0 on changes to fully explicit names, like pd.DataFrame.merge -> M.merge, but it helps with consistency overall.

Methods aren't serializable with pickle either, so there's a slight benefit there as well.


Cut a release.

It'd be nice to get the folder changes in a distributed package. It affects us, as we create a template for PHP software called "Magento", which heavily relies on folders.
If i can help in any way, please let me know!

I didn't have a chance to work on boilr due to me relocating. I'm planning to implement 0.3 features this weekend and cut a release 👍

<3 Thanks!

ping :)

No need to apologize!

Man, I use this tool almost daily. Super grateful for it!

https://github.com/tmrts/boilr/releases/tag/0.3.0 :tada:

YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY.

Stoked :+1:

@rawkode @andrewhowdencom the long wait is over :smile:


Options: Move interfaces into Abstractions

Did we also want to combine Options + ConfigurationExtensions now that we have an abstractions?
@divega

I suppose there will be follow-up PRs to this to simplify dependencies in other repos? I.e. refer to abstractions instead of options?

follow-up PRs to this to simplify dependencies in other repos?

@eilon I was talking to @HaoK about this earlier. We believe that should be possible in some cases (e.g. mudflewares) but we are not sure about the size of the set of repositories that consume options but don't use the functionality in the Options package to add them to the service container.  If you think we should prioritize this for RC2,  we look into it.

Did we also want to combine Options + ConfigurationExtensions

I don't think we should do that if it means that a lot of packages will start depending transitively from Configuration that don't do it today. So I guess it depends on the answer to @Eilon's question.

Hmm I guess I'm curious then - if we don't think our own libraries can use just the abstractions, does that diminish the value of this change? (I'm a big fan of abstractions in general, but sometimes abstractions just aren't enough.)

Well if we also move the DI extensions into abstractions that would be sufficient for most use cases.

if we also move the DI extensions into abstractions that would be sufficient...

But wouldn't that require moving the implementation types registered by the extension methods into the abstraction package as well? If yes, how much is left out?

Basically only the handful of OptionsMonitor implementation classes.

Just OptionsMonitor? Wouldn't it include OptionsManager as well? Anyway, it seems to me that such split would be very arbitrary and that we need to decide if we take this PR as is based on how much value we see for libraries (ours or third party) which only need to consume options or provide their own implementations of the interfaces. And I suspect there is little value.

Actually we might be able to move options manager now that hosting is the one that calls AddOptions instead of each repo...  But I am happy to leave things the way they are since it doesn't appear that we are getting much value of adding Abstractions, Options is basically pretty close to what we would want Abstractions to be already I guess.

:disappointed: why?

Do you disagree with any of the discussion above for why we didn't think the abstractions was going to be super useful?


What is the future for Ink Recognizer functionality?

[Enter feedback here]
If you are going to state that the service is being retired, a little more information would be in order, particularly as this service is highly touted elsewhere.
Is the service simply disappearing or will its functionality be subsumed by a related service? If so, what might that be? Is it possible to create new functionality like ink recognition in September 2020?

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

ID: 2ba41500-fb4e-7d9d-e241-19c40b51d7b8
Version Independent ID: a1015744-71ed-d534-1f62-8272dabd9f3d
Content: Quickstart: Recognize digital ink with the Ink Recognizer REST API and C# - Azure Cognitive Services
Content Source: articles/cognitive-services/Ink-Recognizer/quickstarts/csharp.md
Service: cognitive-services
Sub-service: ink-recognizer
GitHub Login: @aahill
Microsoft Alias: aahi

@dbuskirk Thanks for the questions. We will check with our team internally and get back with more details.

@dbuskirk - We announced that the Ink Recognizer API has ended its preview on August 26th, 2020. On January 31st, 2021 the service will fully close down. At this time I do not have any announcement of any replacement. We are always evaluating and listening to customers on what is the most important features of a service like this. If you would, could you send me an email with details on what scenario you would use this service for? Please include what features of the service you are most interested in<EMAIL_ADDRESS>Thanks!
-mark
Program Manager
Microsoft

Thanks for your response @markri-msft.
@dbuskirk - Feel free to reach out to Mark to discuss this further.
#please-close


Provide docs about how to setup yarn/berry with dependabot

Is there an existing issue for this?

[X] I have searched the existing issues

Code improvement description
Our workflow fails since dependabot is trying to change the lockfile.
I ended up adding to the code something like
    if: ${{ github.actor != 'dependabot[bot]' }}
	run: yarn config set enableImmutableInstalls false

Will be nice to know what is the best practice here

I deployed #6017 yesterday which includes making the same config set call before running any yarn commands. Can you try again without your change and see if it's working now?

@yarinsa nudge re: ☝ ... does this now work as expected for you?

@jeffwidman didnt got a chance to check it, I will check it today and let you know

Looks good!


Bump buildkite-agent to v3.46.0

Do we usually add anything to the CHANGELOG.md?

changelog stuff happens in the next PR :)


Global resize and invalidate

Add a methode to resize and invalidate all widgets in case the render-engine is switched. One possibility is to add "bool invalidate" into sfg::Context. Every sfg::Widget would have to check wheter a global invalidate is necessary then.

Moving it into the context seems reasonable, confirmed.

Implemented in invalidate_all branch. However it's not global, since it's impossible to detect when to stop the process for the widgets (i.e. settings do_it = true is simple, but when set it to false?)
The process will be automagically launched in the later available sfg::Desktop (that manages the engine itself).


Typo: DOxygen -> Doxygen

In section 1.1 I think there is a typo, DOxygen should be Doxygen.

Thanks! Fixed, will appear next time I generate the PDF.


old STS/GGTS versions should be available for download

We are constantly getting questions where to find older versions of STS/GGTS for download. This was available on the old website, but hasn't been ported over to the new STS/GGTS download pages. I think we need to bring this back now, since too many people are asking for this.

Still waiting for a way to download old versions

What are you suggesting? A separate page like https://spring.io/tools/sts/old with older versions simply listed in a table? (cc @martinlippert )

That would be fine with me. Also I can cleanup the data a bit to get rid of too many old versions, like milestones, etc, so that we end up with a page with a table including old releases.

+1

A separate page like https://spring.io/tools/sts/old with older versions
simply listed in a table would be enough for me (surely better than
guessing a valid URL)
2015-01-26 15:55 GMT+01:00 Martin Lippert<EMAIL_ADDRESS>
That would be fine with me. Also I can cleanup the data a bit to get rid
of too many old versions, like milestones, etc, so that we end up with a
page with a table including old releases.
—
Reply to this email directly or view it on GitHub
https://github.com/spring-io/sagan/issues/224#issuecomment-71472424.

Alright @martinlippert let me know when the xml data is cleaned (or when you've got a sensible example I can work with) and I'll work on this.

Looks like the file is already cleaned up, no milestone builds included anymore. Feel free to start from there. The download information is included in the same file that you are using for the main download page.

@martinlippert Any recommendation on which versions should show up in that page?
The current download feed shows:

17 versions from Previous Version - 2.3.2.RELEASE to Previous Version - 2.9.2.RELEASE
1 version Previous Version - Spring Tool Suite 3.0.0.RELEASE
16 versions from Spring Tool Suite 3.1.0.RELEASE - based on Eclipse Juno 4.2.1 to Spring Tool Suite 3.6.3.RELEASE - based on Eclipse Luna SR1 4.4.1

The best would be all of them... :-)


metalsmith build: bump highlight version

Previous highlight version (<8.5) had a bug which caused metalsmith build
to never finish (looping endless). This was fixed in highlight.js 8.5.
Ref: https://github.com/isagalaev/highlight.js/issues/701

This will allow to highlight any language, not only those specified. In particular, less language was causing the endless loop.
Remember to update npm modules after merging:
npm install