NEXT_PUBLIC_WEBAPP_URL localhost vs production domain

The NEXT_PUBLIC_WEBAPP_URL variable in .env is by default set to http://localhost:3000 - any change to a production domain causes the site not to load and leaving it as localhost leaves the site plagued with localhost links.
Please advice how this can be deployed to a production domain Docker environment.
Edit: I've read another issue on here about how this is an issue with the Next frontend, but I'm not 100% sure if any solutions were settled on or if it's still an open issue.

Same happens for me, I've set the NEXT_PUBLIC_WEBAPP_URL to a custom url, but still uses localhost here

@krumware do we still have issues with .env?

@PeerRich We still need a way to configure those env's at runtime properly. Right now we're doing a string replacement in the files at runtime. I figured this is still in the roadmap just maybe isn't considered priority (if not, I still think it should be a priority)

@cyango @TheShadowbyte, I'm sorry you're seeing this, I need some more information to help figure out how you're still experiencing that. For example, I am no longer experiencing this in multiple production environments and I am using the public image.
If you could point out where the screenshot was taken it would be helpful too.  Falling back to manual file hashing (which may be slower). If you are running this build in a pruned directory, you can ignore this message. Otherwise, please initialize a git repository in the root of your monorepo
• Packages in scope: @calcom/web
• Running start in 1 packages
@calcom/prisma:db-deploy: cache bypass, force executing e746bdb46a093b28
@calcom/prisma:db-deploy: $ yarn prisma migrate deploy
@calcom/prisma:db-deploy: $ /calcom/node_modules/.bin/prisma migrate deploy
@calcom/prisma:db-deploy: Prisma schema loaded from schema.prisma
@calcom/prisma:db-deploy: Datasource "db": PostgreSQL database "postgres", schema "public" at "calendso-test-postgresql:5432"
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy: 151 migrations found in prisma/migrations
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy: No pending migrations to apply.
@calcom/web:start: cache bypass, force executing d79f9c7b3e8bdda1
@calcom/web:start: $ next start
@calcom/web:start: ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
@calcom/web:start: react-i18next:: You will need to pass in an i18next instance by using initReactI18next

This happens to me in the the Profile Settings

and when I login and it redirects me to localhost instead.
I'm using the latest version of the Docker image as of today.
In my case NEXT_PUBLIC_WEBAPP_URL and NEXTAUTH_URL are the same public url using https.

Thanks for the extra info! I'll check that out again on my deployment

We still need a way to configure those env's at runtime properly

we should prioritize this higher @zomars

We still need a way to configure those env's at runtime properly

we should prioritize this higher @zomars

I'm open to suggestions. Not that well versed in docker TBH

Another localhost found:

i think this comes from the same underlying docker issue

I'm still not getting that on my test instances

Maybe this log helps:

That does help. Are you setting an env for the placeholder value NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER or BUILT_NEXT_PUBLIC_WEBAPP_URL, in addition to NEXT_PUBLIC_WEBAPP_URL?
Of so, try removing those, or setting BUILT_NEXT_PUBLIC_WEBAPP_URL it back to http://localhost:3000

Tried removing the BUILT_NEXT_PUBLIC_WEBAPP_URL, no effect, the localhost string still appears.
BUILT_NEXT_PUBLIC_WEBAPP_URL to http://localhost:3000 and this message shows:

But now when I log in it redirects me to localhost. when I go to the url, I can enter (because of the login cookie session), but the localhost strings are still in many places.

Here is my complete env

These are my .env for URL's, inside my docker/.env file
I see that you are probably missing **NEXT_PUBLIC_APP_URL**
@cyango

Here is the file where the replacement happens
https://github.com/calcom/docker/blob/main/scripts/start.sh

These are my .env for URL's, inside my docker/.env file I see that you are probably missing NEXT_PUBLIC_APP_URL @cyango

Nope still the same...

@cyango Can you share with us what commands you execute to trigger the restart of the docker container?

So awesome to hear that! @cyango I'm running a deployment test on portainer, I didn't knew that tool and it looks good!

Will close since reported issue is no longer happening reopen issue if required.

I tried rebuilding the image with the new update that @cyango mentioned and I still cannot get my production environment to work. I followed the advanced users section on the calcom docker readme. Since it still doesn't work, I am reopening the issue.
Is there anything that I can provide to help with troubleshooting?


Tx hash links to webb.tools; this should be updated.

Overview
txhash in keys details page of stats-dapp should link to explorer and not to webb.tools.
https://github.com/webb-tools/webb-dapp/assets/53374218/ac6094a0-d815-464b-9daa-8edf5975ee31

Currently, we can only open a transaction on the PolkadotJS UI if we possess the block hash. This is due to the fact that the transaction hash is not unique on Substrate, while the block hash is unique.
Therefore, my proposed solution is to hide the external link for the transaction hash on the UI. Subsequently, we should add an additional block hash record along with the transaction hash record for the Key entity on the backend. This approach ensures that we will have the block hash on the front end, enabling us to render the external link to the Polkadot UI.


HTTP Error 429

When i try to download a video using Sinusbot, it says "Unable to download webpage: HTTP Error 429: Too Many Requests (cause by HTTPError())" and to report it here. I am using by OVH VPS.
Sorry for the lack of information.

This has been discussed a lot. You may want to read FAQ entry on the issue and this discussion.

YouTube is probably still blocking all of OVH's IPv6 ranges, try youtube-dl with -4 to use IPv4 instead.


Implement echo protocol for connectivity sanity test on messaging layer

Problem
By the nature of Messaging Layer, we need a basic protocol to sanity test the connectivity of the Messaging Layer on a higher level. In OpenWeave, this protocol is Echo. We will have echo feature implemented in cluster, but we also need a Echo protocol on protocol layer for basic connectivity test.

Summary of Changes
Implement Echo protocol along side with Echo cluster for connectivity test for Messaging Layer. Then port existing test scripts from OpenWeave Happy/Cirque to CHIP for end to end test using this protocol.

Fixes #3308

@pan-apple is a delegate pattern possible/available for the echo server and client to be able to interact with secure session/exchangemgr?

Reminder to use the re-request review button.


problem with HDR conversion as input

Hi,
when converting and HDR video using master, the colors look all wrong depending on the desired output conversion. From the look of it there is something off with the strides or alignment.
stmpe2084 -> smpte2084

smpte2084 -> bt2020

smpte2084 -> bt709
this one works fine
the last hash that worked for me was ec1e2a9ccd3a7dce2c50f8d7005f7a5b56928ff8

Does d1e0cca also not work?

Rather, it should be fixed now. It was incorrectly reading the first plane for all channels.

Something changed in the tree history, the broken commit for me was 86951bead48d03bd90110933d7b02f8bbf4b10d9 but that hash is not present any more
At any rate, I tested again in current master (eaa427f7efde97af0312fa48c8b0b7678743e648) and it works as expected. Thank you


metron-bro-plugin-kafka doesn't build with Zeek 4.0.0

Summary of the issue
metron-bro-plugin-kafka doesn't build with zeek 4.00 RC2
Expected behavior
zkg install metron-bro-plugin kafka should result in 0 error code.
Steps to reproduce
zkg install metron-bro-plugin kafka
Where applicable, consider providing a patch that uses the end to end testing environment.
Logs, errors, etc.
in ~/.zkg/testing/metron-bro-plugin-kafka/clones/metron-bro-plugin-kafka/zkg.test_command.stderr:
kafka.l2s-l2e-no-overlap ... failed
% 'bro ../../../scripts/Apache/Kafka/ /home/nahum/.zkg/testing/metron-bro-plugin-kafka/clones/metron-bro-plugin-kafka/tests/.tmp/kafka.l2s-l2e-no-overlap/l2s-l2e-no-overlap.bro > output' failed unexpectedly (exit code 134)
% cat .stderr
error in /usr/local/zeek/share/zeek/base/bif/packet_analysis.bif.zeek, line 15: identifier not defined: PacketAnalyzer::Tag
error in /usr/local/zeek/share/zeek/base/bif/packet_analysis.bif.zeek, line 15: identifier not defined: PacketAnalyzer::Tag
internal error in /usr/local/zeek/share/zeek/base/bif/packet_analysis.bif.zeek, line 29: internal variable peer_description missing
/home/nahum/zeek-3.0.12/build/src/bro: line 32: 69816 Aborted                 (core dumped) "${base}/${new}" "$@"
kafka.l2s-set-l2e-set ... failed
% 'bro ../../../scripts/Apache/Kafka/ /home/nahum/.zkg/testing/metron-bro-plugin-kafka/clones/metron-bro-plugin-kafka/tests/.tmp/kafka.l2s-s
et-l2e-set/l2s-set-l2e-set.bro > output' failed unexpectedly (exit code 134)
% cat .stderr
error in /usr/local/zeek/share/zeek/base/bif/packet_analysis.bif.zeek, line 15: identifier not defined: PacketAnalyzer::Tag
error in /usr/local/zeek/share/zeek/base/bif/packet_analysis.bif.zeek, line 15: identifier not defined: PacketAnalyzer::Tag
internal error in /usr/local/zeek/share/zeek/base/bif/packet_analysis.bif.zeek, line 29: internal variable peer_description missing
/home/nahum/zeek-3.0.12/build/src/bro: line 32: 69836 Aborted                 (core dumped) "${base}/${new}" "$@"
etc.
Your environment

Version of Zeek
Version or commit hash of the zeek-kafka package
Operating System and version
zeek 4.0 RC 2
metron-bro-plugin-kafka
Ubuntu 20.04

Using the zeek-kafka plugin, same OS and zeek version, I get:
a bunch of warnings that look like the following:
336 |     mgr.QueueEvent(kafka_topic_resolved_event, vl);
|     ^~~
In file included from /usr/local/zeek/include/zeek/zeek-bif.h:6,
from /home/nahum/zeek-kafka/build/kafka.bif.h:7,
from /home/nahum/zeek-kafka/src/KafkaWriter.h:29,
from /home/nahum/zeek-kafka/src/KafkaWriter.cc:18:
/usr/local/zeek/include/zeek/Event.h:159:24: note: declared here
159 | extern zeek::EventMgr& mgr [[deprecated("Remove in v4.1. Use zeek::event_mgr")]];
and an error that looks like:
336 |     mgr.QueueEvent(kafka_topic_resolved_event, vl);
|                ^
In file included from /usr/local/zeek/include/zeek/zeek-bif.h:6,
from /home/nahum/zeek-kafka/build/kafka.bif.h:7,
from /home/nahum/zeek-kafka/src/KafkaWriter.h:29,
from /home/nahum/zeek-kafka/src/KafkaWriter.cc:18:
/usr/local/zeek/include/zeek/Event.h:84:7: note: declared here
84 |  void QueueEvent(const EventHandlerPtr &h, ValPList* vl,
|       ^~~~~~~~~~

@emnahum I have a PR open with a fix, pending review.  You're welcome to test out my feature branch and see if it fixes your issue, but it worked for me locally on 4.0.0-rc2

Thanks!   How do I pull your feature branch?


Left Analog is not supported in latest main branch

Version:latest main branch       Name of Device: Raspberry Pi Pico
Left Analog does not work(all buttons hitbox). The same setting works fine in 0.7.1 version but not working in the latest version unless changing the Settings->D-pad Mode->Left Analog to D-pad.
The dual directional input is enabled and assigned as right analog. The issue still exists in version https://github.com/OpenStickCommunity/GP2040-CE/actions/runs/5414957560 before the dual directional input changed.

The issue is solved for now.
Tilt add-on takes over left and right analog sticks and dpad will have to be set for directional inputs. Which means all your left stick and right stick pins should be set as -1 and only use the tilt add-on, otherwise they all will not work.


Stream parser throws away data if too much read from socket

If the socket reads more data than requested (as in the SSL case), then stream parser can get more data than it requested.
This means that the some_bytes variable here can contain more than one frame's worth of data.
The frame parser then correctly reads one frame out of the data, but the rest of the data is thrown away.

This is exactly what happens. We worked around it with by overriding the once method as follows:
    def once(self):
        """
        Performs the operation of reading from the underlying
        connection in order to feed the stream of bytes.
        We start with a small size of two bytes to be read
        from the connection so that we can quickly parse an
        incoming frame header. Then the stream indicates
        whatever size must be read from the connection since
        it knows the frame payload length.
        It returns `False` if an error occurred at the
        socket level or during the bytes processing. Otherwise,
        it returns `True`.
        """
        if self.terminated:
            return False

        try:
            b = self.sock.recv(self.reading_buffer_size)
        except (socket.error, OSError, pyOpenSSLError) as e:
            self.unhandled_error(e)
            return False
        else:
            if not self.process(b):
                return False

        return True

That fix appears to be good enough for the threaded client.

I just spent the last few hours debugging this issue before realizing there was an open issue on it:
https://github.com/hyperair/WebSocket-for-Python/commit/bf5e1f07dc3c8a03c6ee927ecadbab2bf45b316d


Implement a more secure authentication scheme

#52 implements a crude-but-functional authentication mechanism to fix #17. We did this because we wanted to get some kind of security (even if not complete) into the server. #52 still leaves the claimer susceptible to replay attacks, howevr.
This issue is for adding an auth mechanism that prevents such attacks

punting to RC1. the claimer yet in production and we haven't had much time to work on it.

ping @arschles this didn't seem to be slated for v2.0-rc1 either -- mind re-assigning as appropriate?

removing from RC1, as this is not critical to the RC


feat: Adds support for dotnet data protection with secret manager

Adds support for .NET data protection using GCP Secret manager

I 'll have a look tomorrow morning. You may want to check out the failing tests in the meantime.

A quick first pass. Will have a look again in detail later in the day. Thanks.

Having another look now.

Hi @jskeet and @amanda-tarafa ,
We are done with the internal review on this. Please have a look and share your valuable feedback.
Thanks,

Will review again when I can - but it may well not be until Monday.

Closing this PR as we're expecting to probably go back to using KMS instead of SecretManager (but still move the code from the current PowerPack repo.)


Different result using rate(scaph_host_energy_microjoules) and scaph_host_power_microwatts

Hello, I am using scaphandre in one of my projects and encountering some problems.
When comparing scaph_host_energy_microjoules and applying prometheus rate() function to scaph_host_power_microwatts, I am getting different results.

My understanding is that when applying the rate() function to scaph_host_energy_microjoules metric, the result is a graph in watt. So, the resulting graph should be the same as scaph_host_power_microwatts, but it is not.
Does this mean one of these metrics is more reliable than the other ? If so, which one should I use to monitor a server power consumption ?
Thanks !

Without checking the source code, I guess that host_power is the instantaneous power, whereas energy is the amount of energy consumed since the last measurement. The instantaneous power is unprecise, because the actual power varies between two measurements, and that changes the energy consumption. Thus, the energy should be more reliable (even if #280 should be fixed to avoid some small errors in the energy values).

In our architecture, we use 2 prometheus instances for a better reliability. So having energy between previous measurement can lead to wrong values.
Is there a way to have a counter   that gives a cumulative metric value ?

Hi,
@TheElectronWill is right.
Yes, the way power is calculated may differ a bit from using microjoules then applying prometheus operators.
Using microjoules metrics may help if you want to use the prometheus operators to do the "energy counter (microjoules)" -> "power average on timeframe" conversion.


ufs ls ERROR: Could not enter raw REPL.

Hi,
I just installed microfs with pip3 on my Debian GNU/Linux Stretch system.
After I attached a micro:bit to my system ( but not mounted it yet ), when I run 'ufs ls' I get this output in a xfce4-terminal window:
First right away I get this message:
ufs ls
[Errno 16] could not open port /dev/ttyACM0: [Errno 16] Device or resource busy: '/dev/ttyACM0'
but after a while I get this:
ufs ls
b''
Could not enter raw REPL.
How can I solve this problem?
Best, Pal

I solve this problem by running
uflash
command when the micro:bit is attached to my Debian GNU/Linux system.
After I dud run 'uflash' command it's output was this:
Flashing Python to: /media/pali/MICROBIT/micropython.hex
After that command
ufs ls
does not return any ERROR messages.
It's output is empty ( But I thought I'd download the game that came with the micro: bit. ).
So, problem SOLVED.

@csanyipal glad you sorted things out yourself..!


Data Loader failed because RDKit2D: Failed to initialize?

Experts,
I tried to follow the Dataset Tutorial notebook to load data, it failed at the very beginning:
`import os
os.chdir('../')
from DeepPurpose import utils, models, dataset`
with output:

ValueError                                Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/DeepPurpose/utils.py in
12 try:
---> 13         from descriptastorus.descriptors import rdDescriptors, rdNormalizedDescriptors
14 except:

/usr/local/lib/python3.6/dist-packages/descriptastorus/descriptors/init.py in
2 from .DescriptorGenerator import *
----> 3 from .rdDescriptors import *
4 from .rdNormalizedDescriptors import *

/usr/local/lib/python3.6/dist-packages/descriptastorus/descriptors/rdDescriptors.py in
366
--> 367 RDKit2D()
368

/usr/local/lib/python3.6/dist-packages/descriptastorus/descriptors/rdDescriptors.py in init(self, properties)
359                     self.class.name,
--> 360                     "\n\t".join(failed)))
361

ValueError: RDKit2D: Failed to initialize: unable to find specified properties:
fr_Al_COO
fr_Al_OH
fr_Al_OH_noTert
fr_ArN
fr_Ar_COO
fr_Ar_N
fr_Ar_NH
fr_Ar_OH
fr_COO
fr_COO2
fr_C_O
fr_C_O_noCOO
fr_C_S
fr_HOCCN
fr_Imine
fr_NH0
fr_NH1
fr_NH2
fr_N_O
fr_Ndealkylation1
fr_Ndealkylation2
fr_Nhpyrrole
fr_SH
fr_aldehyde
fr_alkyl_carbamate
fr_alkyl_halide
fr_allylic_oxid
fr_amide
fr_amidine
fr_aniline
fr_aryl_methyl
fr_azide
fr_azo
fr_barbitur
fr_benzene
fr_benzodiazepine
fr_bicyclic
fr_diazo
fr_dihydropyridine
fr_epoxide
fr_ester
fr_ether
fr_furan
fr_guanido
fr_halogen
fr_hdrzine
fr_hdrzone
fr_imidazole
fr_imide
fr_isocyan
fr_isothiocyan
fr_ketone
fr_ketone_Topliss
fr_lactam
fr_lactone
fr_methoxy
fr_morpholine
fr_nitrile
fr_nitro
fr_nitro_arom
fr_nitro_arom_nonortho
fr_nitroso
fr_oxazole
fr_oxime
fr_para_hydroxylation
fr_phenol
fr_phenol_noOrthoHbond
fr_phos_acid
fr_phos_ester
fr_piperdine
fr_piperzine
fr_priamide
fr_prisulfonamd
fr_pyridine
fr_quatN
fr_sulfide
fr_sulfonamd
fr_sulfone
fr_term_acetylene
fr_tetrazole
fr_thiazole
fr_thiocyan
fr_thiophene
fr_unbrch_alkane
fr_urea

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
 in
2 os.chdir('../')
3
----> 4 from DeepPurpose import utils, models, dataset

/usr/local/lib/python3.6/dist-packages/DeepPurpose/utils.py in
13         from descriptastorus.descriptors import rdDescriptors, rdNormalizedDescriptors
14 except:
---> 15         raise ImportError("Please install pip install git+https://github.com/bp-kelley/descriptastorus and pip install pandas-flavor")
16 from DeepPurpose.chemutils import get_mol, atom_features, bond_features, MAX_NB, ATOM_FDIM, BOND_FDIM
17 from subword_nmt.apply_bpe import BPE

ImportError: Please install pip install git+https://github.com/bp-kelley/descriptastorus and pip install pandas-flavor`

I believe the following libraries was installed on my server:
pandas                       1.1.5
pandas-flavor            0.2.0
DeepPurpose            0.1.1,
descriptastorus         <IP_ADDRESS>
scikit-learn                0.20.3
Anything I missed during deployment? Thank for any suggestion.

Hi, i think it is an env error. Are you in the git source version? or the pip version? For pip version, you can remove the import os/ os.chdir('../') lines. But this error seems to be that the descriptastorus is not properly installed. Can you restall it again?

closing for now, feel free to reopen if the problem still exists


Updating documentation for deploying Myriad after NM and Executor merge

With the NM and Executor merge, we have two new entries in the yarn-site.xml
Updating the doc for these entries.

Looks good.  However, the instructions for remote distribution need updated as well.  I can probably do a separate PR this week.


⚠ Turnos 24x7 has degraded performance

In 260a39d, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 3151 ms

Resolved: Turnos 24x7 performance has improved in 5337e88.


Fix bugs, reformat code, add tests

Fix bug in Meeting.equals, Add tests for Meeting.equals and reformat test for Meeting.checkTimeClash

Looks good!


Require access to contacts in Skype for business app sdk

Hi
Why is Skype for business App SDK by default requiring access to the contacts?
I do not need access to this in my app - but users will well founded be suspicious of why we are requiring this kind of personal data access.

No updates on this or is the site not monitored?


FR: Async requests

I am using firebase-admin on an asyncio project and when there are a lot of requests it slows down the whole API.
Surprisingly, I didn't see any other issues about this, I hope I am not duplicating.
ref = yield from db.reference
result = yield from ref.get()

Thanks

Can this be not handled in the application code? Basically execute Admin SDK methods like ref.get() on separate threads.

It won't scale as I would like and, to my opinion, complicates the code and is harder to track.

Most of our users are on Python 2.7, so we cannot directly expose async coroutines from the SDK anytime soon. In the meantime you should be able to get around the scalability issues by using the run_in_executor() method of the asyncio event loop.
ref = db.reference(path) # Doesn't make RPC calls

executor = concurrent.futures.ThreadPoolExecutor(max_workers=8)
loop = asyncio.get_event_loop()
loop.run_in_executor(executor, ref.get) # Make RPC call on a separate thread

Thanks! I will consider using it.
Meanwhile, I believe this should be reopened and prioritized.
There are more users who need this.
It is a standard in python 3. It's not like python 2.7 that there are a lot of different libraries to support.
How about supporting both by exposing different methods?

In case anyone runs into the same problem -
Eventually, I am using for now the REST API.
Calling it asynchronously with aiohttp.

@eranhirs would you feel like starting a async-firebase project that we could contribute to?

I wanted to report that having async support for an auth SDK is very important. This is exactly the area where async frameworks make a huge difference, where you do a client side request inside a server side request.
Please consider adding core support and examples for using with ASGI frameworks, like Starlette:
https://github.com/encode/starlette

I agree with the general feeling here. Not having async support is making this library a tad less useful nowadays. Not very future proof unfortunately.

+1 on this. My project has a few hundred thousand items that need to be worked via Firebase, and ~1 second latency times make wait times intractable without async support

Python 2.7 is no longer supported. Any progress here?

This needs to be first addressed in other GCP Python libraries that we use as dependencies. More specifically, the google-auth library (which we use to make all authorized HTTP calls) needs to support it. From what I can see, they have plans to add async support starting from 2020, but there is no concrete timetable as of now:
https://github.com/googleapis/google-auth-library-python/issues/321
https://github.com/googleapis/google-cloud-python/issues/3103
I can only imagine that this will take a while considering the engineering effort that is involved. Pretty much all existing APIs have to be re-evaluated and redesigned for async support.
If google-auth takes a very long time to introduce async support, we can consider wrapping the existing google-auth APIs in async threads, so that at least firebase-admin can expose an async API to the developer. But even that is going to require a lot of work, based on some prototyping results I've managed to put together.

Is there any development on this front?
Also can you please reopen this issue?
We have been using firestore and lack of async is a very big downside of firestore.
If async supported is not planned for google services, It would be nice if we know beforehand so we can plan our migration to services that support it. Lack of this feature is causing us both money and product quality tbh.

There's been no development in this space afaik. We cannot support an async API until the core GCP Python libraries like google-auth provide async support. For Firestore you can file a feature request directly at https://github.com/googleapis/python-firestore

It seems there is an open PR related to adding async support.
One of the contributors to the libraries just left a comment.
Would be great to hear about firebase-admin maintainers/contributors perspective on this. :)

Good to know that python-api-core is in the process of adding async support. After that we need at least google-auth to adopt asyncio before we can provide async support (we'd very much like to do so btw). I see that you're already following their issue at https://github.com/googleapis/google-auth-library-python/issues/321.
Firestore APIs are entirely developed in the python-firestore repo I linked above, and it's their call to support asyncio or not. But I think having async support python-api-core makes it feasible for them to support it.

Great to hear these, thanks a lot @hiranya911 :)
I will look around in the python-firestore for the discussion, and maybe check if they have something planned. 🚀

Good news! We are prioritizing this task and have plans to start the initial planning work over the coming months. It is still too early to provide a timeline, but I will reopen this issue so we can track the progress here. Thank you everyone for your patience!

Hi! Is there any update about this feature ? I saw a pull request to use new version of the google-auth api, would that fulfill prerequisites ?

Hello! I know the last comment wasn't left here long ago, but as it didn't get any answer, I'm posting another one.
Has a timeline been agreed upon since April 2021, and if there is one, could you please let everyone know here?
Many thanks!

Thank you again for your patience on this!
This is a high priority task for us and we should start seeing the initial changes sometime in Q2/Q3 2022. I can't promise you a timeline for this feature but rest assured that this is something on our immediate roadmap for this year and you will see updates in the coming months.

We just released v5.3.0 which added async support for the Cloud Firestore API. This is the first step into fulfilling this FR so please give it a try and let us know what you think!

Seems to be working well, we haven't used this under heavy load yet, though.
I'm curious to hear how others are experiencing this, but AFAIK it's good and robust.
From my pov this is completed, we mostly use firestore and do async gcloud storage uploads too, but I don't know if something is missing still otherwise.

Hi, are there any plans to add async support to the admin auth client? Thanks for the great work!


[release-1.13] fix nit

This is an automated cherry-pick of #37845

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security_istio_release-1.13
30e41bfa3fcac9d88136cfd2e3bfddd04f72de4a
link
true
/test integ-security_istio_release-1.13

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security_istio_release-1.13


Modernize the az func bits.

Purpose

Modernize the Azure Function, using the latest and best practices for .NET.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

What to Check
Verify that the following are valid

Manually test, to ensure it functions identically as before.

Other Information
In This PR

Refactored models into their own files.
Renamed BusDataManager to BusDataManagerService and added backing interface.
Use the native DateTime.UnixEpoch field, instead of custom Utils class.
Use DI-based approach for unit test ability.
Bump up to version v4 of Azure Functions.
Use GlobalUsings.cs, ImplicitUsings, and Nullable.
Use a BusDataOptions object with the options pattern, instead of manually pulling from env vars.
Use Async suffix on task-like APIs.
Correct access modifiers, some methods were public when they should have been private.
Correct performance issues with incorrect logging, i.e.; instead of string interpolation use message templates.

👀

I have a pending PR that addresses impact to the associated MS Learn module that will need to be merged when this PR is accepted:
https://github.com/MicrosoftDocs/learn-pr/pull/28337

Mostly LGTM except the usage of JsonProperty(...) for camelCasing. They can be omitted for brevity.

Hi @justinyoo, thanks for the feedback. I'm working on an update to this right now. Ideally, we wouldn't be using Newtonsoft.Json as we should really strive to use System.Text.Json instead.


Request: Add a "Reveal in Explorer" context menu item for Open Editors

VSCode Version: commit 91f14c4
OS Version: OS X

Low priority, but it would be nice to have a "Reveal in Explorer" command within the right click menu of Open Editors.  I found myself wanting that there when I was using the latest build.  My goal was to rename a file that I had open, and I needed to see where it was in Explorer to do that.

@bgashler1 there is "Show Active File in Explorer".

@bgashler1 or maybe you clarify, this is a global action and you want it on an entry in the "Opened Editors" view? If you click the file it should get revealed automatically in the explorer.

@bpasero whoops, completely forgot about the auto reveal behavior.
I think why I was confused was there was a weird glitch I ran into (that I cannot reproduce now) where everything in a particular folder was an odd color.  When I'm selecting "Styles.scss" I cannot see that it's selected because it's so faint against this background.  I cannot reproduce this state after I closed VS Code and reopened (I'll open an issue if I can figure it out).


How can I make it so that users only inherit permissions from a certain group?

I want to make it so that only a certain group has access to certain warps. Like red has access to /warp redbase, but it inherits self permissions so it also has access to blue's warp which isn't what I want. This is why I want to make it so that people on red team only inherit permissions from red group and not self permissions so that I can customize the two team's permissions individually. Maybe there is a way to wipe everyone's self permissions so I can start their permissions from scratch?

Well, the solution is simple:
Don’t give people direct permissions.
And to clear them of existing permissions you use bulkedit. The wiki will explain it in detail.

The account I was testing has no permissions. He only inherits three permissions from a group, yet he still has access to more than three commands. https://gyazo.com/e5afda80a8bdec8bfb8154cf456540ef

He inherits all permissions from that group. Including permissions that group inherits from other groups.


Remote force restart function to avoid QR code unavailable

I have this problem just a minute for juzibot/botops

Yeah, that's why I set up the Watchdog.ICU for! :-D


BadRequestError in "Cluster" stage

Hi! Thanks for developing LLooM! I am eager to try it out on my dataset of 1000 documents, but I kept getting this error at the "Cluster" stage: BadRequestError: Error code: 400 - {'error': {'message': "'$.input' is invalid. Please check the API reference: https://platform.openai.com/docs/api-reference.", 'type': 'invalid_request_error', 'param': None, 'code': None}}. It seems like it's related to the get_embedding function. I am using python==3.11, openai==1.33.0, default embedding model specified in LLooM. I would not get this error if I am only playing with 200 documents, but once I increase the document size I would get the error.
Do you might know what's causing the issue and what could be a workaround? Thank you!

Hi, thanks for trying out LLooM! Yes, this seems related to the same issue that prompted this prior pull request (and that came up in this external OpenAI community thread). Basically, there are issues with the OpenAI embeddings API when there are too many embeddings requested at once, which is probably why it only came up when you tested with the much larger dataset. These issues should be fixed when I update the production package to reflect the current state of the repo (which has the PR merged in). I'll go ahead and do that and follow up in the thread when that's been updated!

Hi @andreawwenyi , as a follow-up, I've packaged the most recent commits into v0.7.4, which you can install by upgrading the text_lloom Python package!

Thank you so much for the fast turnaround! It's working great for me now.
On Wed, Jul 10, 2024 at 11:36 PM Michelle Lam @.***>
wrote:

Closed #11 https://github.com/michelle123lam/lloom/issues/11 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/michelle123lam/lloom/issues/11#event-13465440315, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHWPRTSWZDCMLDTCIQV5WVLZLX4RZAVCNFSM6AAAAABKVSAGXWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGQ3DKNBUGAZTCNI
.
You are receiving this because you were mentioned.Message ID:
@.***>


Raspberry pi 3 - Alternative for Snappy core

Hi,
I recently got raspberry pi 3 and would like to try Devicehive IOT framework on it. But Snappy core is for Raspberry 2 only. Are there any alternatives?
Thanks

You can build pure binaries of IoT framework and run it on any Linux. Also, IoT-Framework build system suuports debian packages, so you can build and install it on debian like OSes.

Hey there. We are also working on docker container for IoT framework which can run under any Linux that has docker.

Great to know it can work on debain. Please help me with raspbain
Step1) git clone https://github.com/devicehive/IoT-framework.git
Step2) in build/debian directory run devicehive-cloud.create
Step3) Need help with this, in build/debian readme file "to create binaries. Currently, all binaries will not be build, so if you need binaries you can make build for snappy and then extract binaries from snap files(it's archives, just open it with any archinve manager)". Where to run build-framework.sh (build/snappy/)
Thanks


Fix java synthetic build broken for release branch

Release build failed in synthetic javadoc: https://scans.gradle.com/s/g5ttvskascs2e/console-log#L3779
Fix commit: https://github.com/apache/beam/pull/5982/commits/c9e794af94de86f51a4b2fe4e836d8482f6642be
Release build failed in synthetic spotlessJava: https://scans.gradle.com/s/r557o6zkbm25e/failure?openFailures=WzBd&openStackTraces=WzEse31d#top=0
Fix commit: https://github.com/apache/beam/pull/5982/commits/8419fd49f567e0e7be18694101294777d87531c4
r: @pabloem @aaltay

This LGTM. You've run the build, right? Also, is there a fix for this on master?

re: @pabloem
Yes, synthetic build succeeded with this fix. I'll create a new PR against master later.

It is a best practice to make the change against master first and then cherry pick to release.

Open pr in master: https://github.com/apache/beam/pull/5987

Hey Luke @lukecwik , is it better for me to close this PR and let release manager(@pabloem ) cherrypick fix commit from master branch?

Precommit seems to have stalled...

Run Java PreCommit

Release build succeeded with this PR: https://github.com/apache/beam/pull/5982

Just make sure that the release branch gets the same commit as what was merged into master https://github.com/apache/beam/pull/5987/commits/9c67bc85dac25b0a51871333e389ea9d3738a790. This will prevent merge conflicts and it makes it easier to retain history and track lineage of the commit.
Is there a reason why this commit has a different id then the one on master?

sgtm


Importing methods that take Scala anonymous functions as arguments?

For example, I have:
abstract class Statement extends FirrtlNode {
  def mapStmt(f: Statement => Statement): Statement
}

Is there an easy way to import and pass a Haskell function to this method, or will I need to manually construct a scala.Function1 instance?

https://eta-lang.org/docs/user-guides/eta-user-guide/java-interop/java-generics#working-with-java-interfaces
I imagine it would look like:
data Function1 t r = Function1 (@scala.Function1 t r)
   deriving Class

foreign import java unsafe "@wrapper apply"
  fun1 :: (t <: Object, r <: Object)
       => (t -> Java (Function1 t r) r) -> Function1 t r

foreign import java unsafe "apply"
  fun1Apply :: (t <: Object, r <: Object)
            => Function1 t r -> t -> r

Yes, that did the trick. Thank you!


Support ammonite in --thin mode

Ammonite supports the --thin mode, which is useful when you don't want the provided libraries in the classpath.
Currently, the bundled upickle in Scala 3 is broken since it's the 2.13 artifact and the macro can't be executed.
So the current workaround is to run Ammonite in thin mode and then add upickle manually with:
import $ivy.`com.lihaoyi::upickle:2.0.0`

I might have expected scala-cli repl --amm -O --thin to work, but the -O --thin doesn't have any effect.

you should be able to pass --thin with the --ammonite-arg option (or the -a alias).
▶ scala-cli --amm -a --thin
Scala 3.2.0 is not yet supported with this version of ammonite
Defaulting to Scala 3.1.3
Loading...
Welcome to the Ammonite Repl 2.5.4-22-4a9e6989 (Scala 3.1.3 Java 17.0.2)
@ import $ivy.`com.lihaoyi::upickle:2.0.0`
https://repo1.maven.org/maven2/com/lihaoyi/upickle_3/2.0.0/upickle_3-2.0.0.pom
  100.0% [##########] 1.9 KiB (3.4 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upickle-implicits_3/2.0.0/upickle-im…
  100.0% [##########] 1.6 KiB (41.4 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/ujson_3/2.0.0/ujson_3-2.0.0.pom
  100.0% [##########] 1.6 KiB (13.5 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upack_3/2.0.0/upack_3-2.0.0.pom
  100.0% [##########] 1.6 KiB (13.4 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upickle-core_3/2.0.0/upickle-core_3-…
  100.0% [##########] 1.6 KiB (31.9 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upickle_3/2.0.0/upickle_3-2.0.0.jar
  100.0% [##########] 102.0 KiB (1.2 MiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/ujson_3/2.0.0/ujson_3-2.0.0-sources.…
  100.0% [##########] 24.4 KiB (208.9 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/ujson_3/2.0.0/ujson_3-2.0.0.jar
  100.0% [##########] 252.1 KiB (2.1 MiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upickle_3/2.0.0/upickle_3-2.0.0-sour…
  100.0% [##########] 4.2 KiB (30.7 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upack_3/2.0.0/upack_3-2.0.0-sources.…
  100.0% [##########] 7.7 KiB (154.4 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upickle-implicits_3/2.0.0/upickle-im…
  100.0% [##########] 12.4 KiB (282.4 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upickle-core_3/2.0.0/upickle-core_3-…
  100.0% [##########] 23.2 KiB (387.3 KiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upickle-implicits_3/2.0.0/upickle-im…
  100.0% [##########] 214.0 KiB (1.1 MiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upack_3/2.0.0/upack_3-2.0.0.jar
  100.0% [##########] 132.5 KiB (1.1 MiB / s)
https://repo1.maven.org/maven2/com/lihaoyi/upickle-core_3/2.0.0/upickle-core_3-…
  100.0% [##########] 208.1 KiB (1.0 MiB / s)
import $ivy.$

@ import upickle.default._
import upickle.default._

@ write(1)
res2: String = "1"


Right to left mode does not work in web application

This only occurs in production mode for web-mode, I have verified locally now.


Don't reference design-time facades on net451

Without this, the packages won't install into "classic" Full .NET projects

@davidfowl ?

I think we should make these all as build dependencies so that DNX still works for now

@davidfowl that sounds like a :shipit: to me?

I don't think the two I removed were even used. There's nothing portable in the dependency closure. Concurrent types live in System and mscorlib on Full .NET.

:shipit:

@bricelam I logged https://github.com/aspnet/DnxTools/issues/30, assigned to you.


Typescript compile-error (date-fns export and missing /typings)

Environment

Tech
Version

material-ui-pickers
1.0.0-rc.1

material-ui
<EMAIL_ADDRESS>

React
16.2.0

Browser
-

Platform
WIN

Steps to reproduce

Create a React-Project with typescript
Use direct import from material-ui-pickers
(do not install date-fns)

Expected behavior
Compile without error.
Actual behavior
Failed to compile.

./node_modules/material-ui-pickers/utils/date-fns-utils.js
Module not found: Can't resolve 'date-fns/addDays' in 'C:\Development\cms\client\node_modules\material-ui-pickers\utils'

I can get arount that if I replace import { DatePicker } from 'material-ui-pickers'; by  import DatePicker from 'material-ui-pickers/DatePicker';.
Next error I get is:
C:/Development/cms/client/node_modules/material-ui-pickers/_shared/ModalDialog.d.ts
(3,23): Cannot find module '../../typings/utils'.

The referenced directory/file is not included in the npm package.

Possible solution

Remove direct export of date utils from index.js and index.d.ts
Include typings in npm package (e.g. move into src/)

Live example

I'll be glad to provide a small github-repo if necessary.

I created PR #238.
The changes fixed the issues on my local machine.

Fixed in 1.0.0-rc.2


os specific ctrl-z

Add OS specific readline functions. Windows does not support these suspend system calls, so make ctrl-z a no-op on windows. This fixes development windows native builds.
resolves #1414

Just trying this out and running into this while cross compiling from linux:
GOOS=windows GOARCH=amd64 go build

Errors with
# github.com/jmorganca/ollama/readline
readline/readline_windows.go:4:53: undefined: Termios

@csaben thanks for the heads up, finally got access to a Windows computer today and made the changes to get this working properly. Merging this now so main should be working again.

@BruceMacD when can we expect windows release?


[v1.14] Use bash syntax to consume env variable

Also change the GitHub secret names

Backport of https://github.com/cilium/cilium/pull/36544

/test-backport-1.14


use Vector instead of List. avoid O(n) append

Here's a quick a/b test result from using Akka:
before
$ git clean -fdx && time sbt exit
$ time (sbt exit && sbt exit && sbt exit)
[info] Loading settings for project global-plugins from idea.sbt,vimquit.sbt,plugins.sbt,metals.sbt,pgp.sbt ...
[info] Loading global plugins from /Users/eed3si9n/.sbt/1.0/plugins
[info] Loading settings for project akka-build from plugins.sbt ...
[info] Loading project definition from /Users/eed3si9n/work/akka/project
[info] Loading settings for project akka from build.sbt ...
[info] Resolving key references (40622 settings) ...
  ... this gets repeated twice more
( sbt exit && sbt exit && sbt exit; )  176.39s user 13.61s system 329% cpu 57.622 total

after
$ git clean -fdx && time sbt exit
$ time (sbt exit && sbt exit && sbt exit)
[info] Loading settings for project global-plugins from idea.sbt,vimquit.sbt,plugins.sbt,metals.sbt,pgp.sbt ...
[info] Loading global plugins from /Users/eed3si9n/.sbt/1.0/plugins
[info] Loading settings for project akka-build from plugins.sbt ...
[info] Loading project definition from /Users/eed3si9n/work/akka/project
[info] Loading settings for project akka from build.sbt ...
[info] Resolving key references (40622 settings) ...
  ....
( sbt exit && sbt exit && sbt exit; )  171.20s user 13.04s system 338% cpu 54.481 total

That's 1.047s speed up during loading, so that's pretty significant.

Nice find!


Fix default for num processes

As pointed out in #717, the current default for num_processes erases the value set by the config, which we don't want. This PR fixes that.

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


js-appender detects non relative imports

The regular expression within js-appender.js detects non relative imports and applies a js extension to them.

A non-issue for the way it's currently used in this repository, but a good thing to fix nontheless. Fixed in 84858d4d1b998debfbe7642f37fa550e8ceeadfc.
Thanks!


Error with "Expression produces a union type that is too complex to understand" in TypeScript with React/Chakra UI

I encountered an issue while working with TypeScript, React, and Chakra UI in Visual Studio Code. I'm seeing red squiggly error lines in my code, even though there are no actual errors present. When I hover over the error lines, it displays the message "Expression produces a union type that is too complex to understand."
I noticed that updating the React and Chakra UI packages to the latest versions resolves this issue. However, in the previous versions, this error is persistent.

I can take the Ownership of this issue and fix it.

@pyramation  @marslavish . Here is the PR. I request you to please review it. PULL REQUEST

@vinay1668  These errors can also be fixed by selecting the workspace version of TypeScript.

Then click 'Select Version'

@vinay1668 These errors can also be fixed by selecting the workspace version of TypeScript.

Then click 'Select Version'

This solved the issue too. Thanks.


ERROR_NETWORK every time

Pause is set to between 100 & 120 seconds, and the process works fine until google gives a 403, and the process dies.
A question on this, there is no delay between the retries so you get three quick 403 errors, and then the process finishes.
There's no captcha request before this (at least there's nothing in the log), so shouldn't the configures delay also be applied in these 403 retries?
[2018-09-16 01:08:58,665] [google-0] INFO  c.s.s.s.g.s.GoogleScraper - GOT status=[200] exception=[none]
[2018-09-16 01:08:58,685] [google-0] TRACE c.s.s.s.g.s.GoogleScraper - sleeping 119533 milliseconds
[2018-09-16 01:10:58,218] [google-0] DEBUG c.s.s.s.g.s.GoogleScraper - GET https://www.google.com/search?q=prestashop+quotation+module+free&gl=uk&hl=en&num=50&start=50 via proxy:direct try 1
[2018-09-16 01:10:58,743] [google-0] INFO  c.s.s.s.g.s.GoogleScraper - GOT status=[403] exception=[none]
[2018-09-16 01:10:59,743] [google-0] DEBUG c.s.s.s.g.s.GoogleScraper - GET https://www.google.com/search?q=prestashop+quotation+module+free&gl=uk&hl=en&num=50&start=50 via proxy:direct try 2
[2018-09-16 01:11:00,061] [google-0] INFO  c.s.s.s.g.s.GoogleScraper - GOT status=[403] exception=[none]
[2018-09-16 01:11:02,061] [google-0] DEBUG c.s.s.s.g.s.GoogleScraper - GET https://www.google.com/search?q=prestashop+quotation+module+free&gl=uk&hl=en&num=50&start=50 via proxy:direct try 3
[2018-09-16 01:11:02,498] [google-0] INFO  c.s.s.s.g.s.GoogleScraper - GOT status=[403] exception=[none]
[2018-09-16 01:11:05,498] [google-0] WARN  c.s.s.t.g.GoogleTaskRunnable - scrap failed for prestashop quotation module free because of ERROR_NETWORK
[2018-09-16 01:11:05,498] [google-0] WARN  c.s.s.t.g.GoogleTaskRunnable - no more proxy, stopping the thread
[2018-09-16 01:11:05,498] [google-0] INFO  c.s.s.t.g.GoogleTaskRunnable - google thread stopped
[2018-09-16 01:11:05,502] [Thread-55] WARN  c.s.s.t.g.GoogleTask - 1 proxies failed during the task
[2018-09-16 01:11:05,502] [Thread-55] WARN  c.s.s.t.g.GoogleTask - 43 searches have not been checked
[2018-09-16 01:11:05,502] [Thread-55] INFO  c.s.s.t.AbstractTask - task done for module GOOGLE

not an issue, use more proxy, configures captcha.


Update crunchyroll instructions in README.md

I tried to use cookies and that didn't work
IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

I did not know how to use the crunchyroll feature. I tried using cookies, and failed for a good hour. I just needed to know to use the -u username and password option.

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[ ] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp 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?

[ ] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[x] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

Your change does not belong there
If you pass -u to an unsupported site, yt-dlp will issue a warning. If it doesn't, it means the option is supported
The sites that support -u/-p have their netrc mentioned in supportedsites.md
crunchyroll is supposed to support both cookies and -u/-p. If cookies doesn't work, you may consider opening a bug report
I have improved the error message to reflect this


[vtk] Build error. CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:131 (message)

Host Environment

OS: Windows 10
Compiler: Visual Studio

To Reproduce
./vcpkg install vtk
Failure logs
PS C:\vcpkg> .\vcpkg.exe install vtk
Computing installation plan...
The following packages will be built and installed:
vtk[core]:x64-windows -> 9.0.3-pv5.9.1#12
Detecting compiler hash for triplet x64-windows...
-- Automatically setting HTTP(S)_PROXY environment variables to "<IP_ADDRESS>:30822".
Restored 0 package(s) from C:\Users\likui\AppData\Local\vcpkg\archives in 436.3 us. Use --debug to see more details.
Installing 1/1 vtk:x64-windows...
Building vtk[core]:x64-windows...
-- Using cached Kitware-VTK-2959413ff190bc6e3ff40f5b6c1342edd2e5233f.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/vtk/src/edd2e5233f-7ddc60dbb8.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/Kitware-VTK-2959413ff190bc6e3ff40f5b6c1342edd2e5233f.tar.gz
-- Applying patch FindLZMA.patch
-- Applying patch FindLZ4.patch
-- Applying patch Findproj.patch
-- Applying patch pegtl.patch
-- Applying patch pythonwrapper.patch
-- Applying patch NoUndefDebug.patch
-- Applying patch python_debug.patch
-- Applying patch fix-using-hdf5.patch
-- Applying patch FindExpat.patch
-- Applying patch vtkm.patch
-- Applying patch 1f00a0c9.patch
-- Applying patch 156fb524.patch
-- Applying patch d107698a.patch
-- Applying patch fix-gdal.patch
-- Applying patch missing-limits.patch
-- Applying patch UseProj5Api.patch
-- Applying patch fix-find-libharu.patch
-- Applying patch fix-libharu2.4-compat.patch
-- Using source at C:/vcpkg/buildtrees/vtk/src/edd2e5233f-7ddc60dbb8.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Warning at installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:311 (message):
The following variables are not used in CMakeLists.txt:
  VTK_MODULE_ENABLE_VTK_PythonContext2D

Please recheck them and remove the unnecessary options from the
vcpkg_cmake_configure call.
If these options should still be passed for whatever reason, please use the
MAYBE_UNUSED_VARIABLES argument.
Call Stack (most recent call first):
ports/vtk/portfile.cmake:153 (vcpkg_cmake_configure)
scripts/ports.cmake:147 (include)
-- Building x64-windows-dbg
-- Building x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:131 (message):
Command failed: C:/vcpkg/downloads/tools/cmake-3.25.0-windows/cmake-3.25.0-windows-i386/bin/cmake.exe --build . --config Release --target install -- -v -j17
Working Directory: C:/vcpkg/buildtrees/vtk/x64-windows-rel
See logs for more information:
C:\vcpkg\buildtrees\vtk\install-x64-windows-rel-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
ports/vtk/portfile.cmake:176 (vcpkg_cmake_install)
scripts/ports.cmake:147 (include)
error: building vtk:x64-windows failed with: BUILD_FAILED
install-x64-windows-rel-out.log

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "bin\vtkCommonDataModel-9.0.dll". 另一个程序正在使用此文件，进程无法访问。

@likui Make sure you turn off firewall and other protective software.


updated tile images on landing page

Docs Build status updates of commit f5a3236:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/images/Tile-Create.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/Tile-Develop.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/Tile-JumpIn.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/Tile-New.jpg
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add HTTPS support

The first commit fixes an issue where https auth server URLs were not supported.
The second commit is probably worth a separate discussion. What should the expected default port be if none is specified? For auth server URLs, which relies on http:/https:, 80 and 443 are inferred. However, for realm:/realms: sync server URLs, it's possible that the user may expect 9080/9443.

Thanks for the PR @raudabaugh! Before we continue, can I just confirm that you've already signed our Contributor's License Agreement?
Actually, even for the authentication server, ports 9080 and 9443 are used instead of the traditional 80/443. I just tried running your branch alongside a local instance of the Realm mobile platform, and by making it infer port 80, that causes it to fail:

On the topic of the second commit, this framework doesn't actually talk to the sync server at present; it only talks to the auth server, and returns the information necessary for the parent app to setup the connection to the sync server. So hopefully that makes it a bit more simple. :)
I'd say it might be appropriate to optionally allow the user to input the https or realms schema, into the address (Even though realms is technically erroneous for the auth server), in order to indicate this connection should be secure.

I just signed the license agreement. What you said about RealmLoginKit only being responsible for the auth server and not the sync server makes a lot of sense. I'm in agreement that the framework should be able to handle both the https and realms schema.
My concern about implicitly adding 9080/9443 to the auth server URL is that it might cause confusion if users then start omitting the port number in other places. For example, I have the reverse proxy set to 80/443, and so wherever I omit the port number (in my web browser when accessing the dashboard, in Realm Browser, in client code etc.) I expect consistent behavior.

Awesome! Thanks for signing the agreement!
Ahh okay, fair enough. If that's the case, where you've got a custom configuration for your server, it might be more appropriate to expose the port numbers as properties of this view controller so apps can choose to override them.
What do you think about that? :)

Sorry for the delayed response.  Let me know if you agree my assumptions here. It's flexible (maybe too flexible?) in that the port number can be overridden if you include one in the server URL string. There might be consequences to not alerting the user that the override is happening if there is a mismatch between the int property and what's parsed from the string, but I figured that for now, giving users both options was safer overall.

Not at all! That looks great! Thanks so much for that!
Yeah, that seems like the smartest thing to do. I'd rather avoid adding another row purely for the port number, so it would seem appropriate to provide a default value that can be overridden by the user in the server URL field.
This looks good to me! Thanks again!


npm install --save sharp fails

Same as issue #551
Not able to fix even after following all instructions.
Jaspers-MacBook-Pro:yosei-website jasper$ npm install --save sharp

><EMAIL_ADDRESS>install /Users/jasper/Sites/yosei-website/node_modules/sharp
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
Unknown option: n
Unknown option: 1
Usage: head [-options] <url>...
    -m <method>   use method for the request (default is 'HEAD')
    -f            make request even if head believes method is illegal
    -b <base>     Use the specified URL as base
    -t <timeout>  Set timeout value
    -i <time>     Set the If-Modified-Since header on the request
    -c <conttype> use this content-type for POST, PUT, CHECKIN
    -a            Use text mode for content I/O
    -p <proxyurl> use this as a proxy
    -P            don't load proxy settings from environment
    -H <header>   send this HTTP header (you can specify several)

    -u            Display method and URL before any response
    -U            Display request headers (implies -u)
    -s            Display response status code
    -S            Display response status chain
    -e            Display response headers
    -d            Do not display content
    -o <format>   Process HTML content in various ways

    -v            Show program version
    -h            Print this message

    -x            Extra debugging output
gyp: Call to 'which brew >/dev/null 2>&1 && eval $(brew --env) && echo $PKG_CONFIG_LIBDIR || true' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/jasper/.nvm/versions/node/v7.7.4/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.1.0
gyp ERR! command "/Users/jasper/.nvm/versions/node/v7.7.4/bin/node" "/Users/jasper/.nvm/versions/node/v7.7.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/jasper/Sites/yosei-website/node_modules/sharp
gyp ERR! node -v v7.7.4
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
npm WARN<EMAIL_ADDRESS>No description
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sharp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs sharp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls sharp
npm ERR! There is likely additional logging output above.

npm ERR!      /Users/jasper/.npm/_logs/2017-03

Solved after uninstalling homebrew

Glad you got it sorted. I've not seen this error before but as you say, it looks like a corrupt homebrew installation specific to one machine. (When homebrew is installed, sharp uses it as part of a search for a globally-installed libvips, if any.)


[WIP] Add a validate task to validate compiled HTML

We currently have no built-in way of ensuring our compiled HTML changes in the way we expect, and doesn't break.
This PR is an attempt to deal with the latter issue. It adds a validate script to validate the HTML we spit out.
I'm popping it up here to see if this is something folks would like before actually tackling the 1945 problems it finds, and then adding it to the linting tasks.

Do you have a sample of what problems it's finding? Nearly 2000 issues seems like an excessive number!
Also I imagine there are examples of invalid code where things are wrong-on-purpose because they have better outcomes for the end user (e.g. our use of aria-attributes on conditional checkboxes/radios). We probably don't want to treat those exceptionally.

I haven't delved too deeply, but the list of rules broken:
https://html-validate.org/rules/void-style.html
https://html-validate.org/rules/wcag/h30.html
https://html-validate.org/rules/aria-label-misuse.html
https://html-validate.org/rules/attr-quotes.html
https://html-validate.org/rules/no-implicit-close.html
https://html-validate.org/rules/element-permitted-content.html
https://html-validate.org/rules/attr-case.html
https://html-validate.org/rules/no-deprecated-attr.html
https://html-validate.org/rules/no-dup-id.html
https://html-validate.org/rules/attribute-allowed-values.html
https://html-validate.org/rules/wcag/h32.html
https://html-validate.org/rules/long-title.html
https://html-validate.org/rules/attr-delimiter.html
https://html-validate.org/rules/wcag/h63.html
https://html-validate.org/rules/form-dup-name.html
https://html-validate.org/rules/close-order.html

There's a lot of what I'm pretty sure is noise:
aria-label-misuse because we've got aria-labels on our app-navigation__subnav ul elements, which I assume is a deliberate choice.
void-style errors mostly seem annoyed about us self-closing <link> elements which feels heavy-handed.
wcag/h30 on our top anchor:
Probably legit errors include:
Most of the attr-quotes look like they could be switched to double quotes with no issue.
no-implicit-close: there's a few unclosed
 tags floating about:
Share your experience, research and skills to help us reiterate the Task list pages pattern into a component.

🤷
element-permitted-content: Doesn't like the "experimental" div contained in the h1 on the Resources and Tools page
Etc, etc.
So I'm assuming 90% of the errors could safely be ignored, but haven't really had a close look.

@domoscargin I think this it great 🙌
Gives us more confidence that Markdown/Nunjucks is outputting what we want

I've created an issue to deal with some invalid HTML here: https://github.com/alphagov/govuk-design-system/issues/2606
Down to 65 errors to check.

I've added another issue to deal with nested form elements here: #2609
In addition, #2260 is causing form-dup-name errors. This wouldn't happen if the rule checked for unique values, as suggested by @colinrotherham: https://github.com/alphagov/govuk-frontend/pull/3270#pullrequestreview-1290744193, but I feel like at a certain point, the rule becomes a bit toothless if we're basically ignoring all its results...
I could finagle this PR to ignore these errors (like it ignores #2606), but tempted to instead block this on these other issues.
Once #2606, #2609 and #2260 are fixed, there'll be no more HTML validation errors and we can tweak this PR and get it merged.


APP-1708 - Fix problem when file is not exists

Fix problem when file is not exists

Build triggered. sha1 is merged.

Build started sha1 is merged.

Build finished.

Build triggered. sha1 is merged.

Build started sha1 is merged.

Build finished.

Codecov Report

Merging #176 into dev will decrease coverage by 0.91%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##              dev     #176      +/-   ##
==========================================
- Coverage   89.54%   88.62%   -0.92%
==========================================
  Files         144      175      +31
  Lines        2726     3526     +800
  Branches      261      338      +77
==========================================
+ Hits         2441     3125     +684
- Misses        221      295      +74
- Partials       64      106      +42

Impacted Files
Coverage Δ

...rovisioning/service/CompanyCertificateService.java
74.65% <0%> (ø)

...tegration/provisioning/service/KeyPairService.java
91.66% <0%> (ø)

...ation/provisioning/service/ApplicationService.java
93.33% <0%> (ø)

...ion/provisioning/client/model/AppStoreWrapper.java
100% <0%> (ø)

...ation/provisioning/service/UserKeyPairService.java
97.77% <0%> (ø)

.../integration/provisioning/service/UserService.java
88.63% <0%> (ø)

...ion/provisioning/properties/KeyPairProperties.java
0% <0%> (ø)

...on/provisioning/exception/UserSearchException.java
100% <0%> (ø)

...oning/properties/CompanyCertificateProperties.java
0% <0%> (ø)

...provisioning/properties/ApplicationProperties.java
0% <0%> (ø)

... and 22 more

Continue to review full report at Codecov.

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

Build triggered. sha1 is merged.

Build started sha1 is merged.

Build finished.


RDCC-460 functional test case fix

JIRA link (if applicable)
RDCC-460
Change description
functional test case fix
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Helm is failing .Trying to raise new PR.


Cache an imported module

Is there any way to cache an imported module? I'm importing the<EMAIL_ADDRESS>and it's slow. I want to use it consistently. What is your recommendation to do it?
Reference:
https://github.com/rscarson/rustyscript/blob/0fd168e3b82106c3c4551f1e744b113e26f2b109/examples/url_import.rs#L28C1-L29C1

The Runtime instance should cache it for its lifetime - is it slow to initially load?
You could always download it and it's dependencies
Seems its only this and one other file
If it is slow in other places than on load there may be a deeper issue

It is slow during the initial load, but as the lifetime is short, it is a problem for my use case.
Thanks for the link. I found it, too, and I was thinking of copying and pasting it to an extension. It is probably the best option.


Support c=1 images in FramesToTensor

Hi @ckkelvinchan
When I used FramesToTensor for my gray-scale images, I met a bug. And I solve it in this PR.
In specific, I want to train and test my model over the Y data.
My config file is in here.
Considering the original data is in the RGB format, I add the convert_to='y' option in both the train_pipeline and test_pipeline.
The ground truth tensor should be with the shape of (channels=1, height, weight) for calculating losses or for evaluation.
However, due to this line, the tensor is squeezed into (height, weight).
So I specify the dim=0 option in accord with the if results[key].size(0) == 1 check.
BTW I add FramesToTensor to the __init__ file.

@wangruohui Hi ruohui, can you help me review this PR? Thank you.


Add basic support for yamllint

Only with the default configuration.

LGTM! :+1:
What about updating the README.md?

Nice work @ddub!


parallel command processes are not killed when to kill walter process

I have a question about the behavior when a walter process is canceled.
I expected that when walter process is killed, parallel processes are killed.
But theses processes were running after the walter process was killed.
Is that behavior by design?
below my pipeline and results:
pipeline:
  - name: Start parallel pipelines
  - name: Env var checks
    type: command
    command: echo "hello, $USER_NAME"
    report_full_output: true
  - name: parallel start
    parallel:
    - name: long running 1
      type: command
      command: ./long_run.sh
      directory: /home/vagrant/scripts
    - name: long running 2
      type: command
      command: ./long_run.sh
      directory: /home/vagrant/scripts
    - name: long running 3
      type: command
      command: ./long_run.sh
      directory: /home/vagrant/scripts
  - name: End parallel pipelines

operation and results:
$ [vagrant@rundeck ~]$ walter -c pipelines/mypipe.yml
08:29:11  INFO Pipeline file path: "pipelines/mypipe.yml"
08:29:11  INFO not found "require" block
08:29:11  INFO not found "service" block
08:29:11  INFO local client was created
08:29:11  INFO found messenger block
08:29:11  INFO type of reporter is slack
08:29:11  INFO not found cleanup block in the input file
08:29:11  INFO running Walter
08:29:11  INFO Starting Walter in local mode
08:29:11  INFO Preparing to run pipeline process...
08:29:11  INFO [command] exec: Start parallel pipelines
08:29:12  INFO Slack post result...: ok
08:29:12  INFO [command] exec: Env var checks
08:29:12  INFO [Env var checks][command] exec output: hello,
08:29:13  INFO Slack post result...: ok
08:29:13  INFO Slack post result...: ok
08:29:13  INFO [command] exec: parallel start
08:29:14  INFO Slack post result...: ok
08:29:14  INFO [command] exec: long running 1
08:29:14  INFO [command] exec: long running 3
08:29:14  INFO [command] exec: long running 2
08:29:14  INFO [long running 1][command] exec output: hogehoge
08:29:14  INFO [long running 3][command] exec output: hogehoge
08:29:14  INFO [long running 2][command] exec output: hogehoge

[vagrant@rundeck ~]$ date && ps auxfw | grep walter
Fri Jun 10 08:29:22 BST 2016
vagrant   4067  0.4  1.8<PHONE_NUMBER>2 pts/1    Sl+  08:29   0:00  |           \_ walter -c pipelines/mypipe.yml
vagrant   4101  0.0  0.1 103304   876 pts/2    S+   08:29   0:00              \_ grep walter
[vagrant@rundeck ~]$ pkill walter
[vagrant@rundeck ~]$ date && ps auxfw | grep long_run | grep -v "grep"
Fri Jun 10 08:29:28 BST 2016
vagrant   4084  0.0  0.2 106064  1320 pts/1    S    08:29   0:00 /bin/bash ./long_run.sh
vagrant   4085  0.0  0.2 106064  1316 pts/1    S    08:29   0:00 /bin/bash ./long_run.sh
vagrant   4089  0.0  0.2 106064  1320 pts/1    S    08:29   0:00 /bin/bash ./long_run.sh
[vagrant@rundeck ~]$ date && ps auxfw | grep long_run | grep -v "grep"
Fri Jun 10 08:29:52 BST 2016
[vagrant@rundeck ~]$

Best regards.

Hello @takyoshi! Thank you very much for giving us the interesting topic on Walter. We will discuss the behavior with the team members.

I close this for cleaning issues. We will not develop v1 anymore. Please use v2 beta if you would like. https://github.com/walter-cd/walter/releases/tag/v2.0.0.beta1


Link Broken for explanation of "/remap"

The link "phkelley's blog: tf get /remap" is broken.

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

ID: b692dc59-b227-0dad-79f4-f8b8fabad507
Version Independent ID: 7efc3f73-d605-0521-44ab-0109a563887b
Content: Use the Get command to download TFVC files/folders - Azure Repos
Content Source: docs/repos/tfvc/get-command.md
Product: devops
Technology: devops-code-tfvc
GitHub Login: @apawast
Microsoft Alias: sdanie

@cb504 -- thank you for your feedback.  There is related content here.
@apawast -- is there a new target for the existing old link to phkelley?

#reassign @DmitriyKirakosyan

@MaximMalygin @apawast @WilliamAntonRohm,
The link is working for me. Could you please check if this issue is still actual?
Here is the link: https://docs.microsoft.com/en-us/archive/blogs/phkelley/tf-get-remap
I'm assuming that the docs.microsoft.com was down at the time the issue was created.

Yes, that link works for me as well.  I am closing this issue.

Requesting a re-open of this issue. As of 2020-12-07, From a Visual Studio 2019 command prompt, typing tf msdn get and following the link to phkelley's blog: tf get /remap has a few redirects followed by a 404 page not found. Can either the direct link in the documentation or the backing redirect at go.microsoft.com be updated to direct to the archived copy of the blog on docs.microsoft.com?

@EricAllen-tr -- Eric, thank you for the update.  The destination link in the article is still working for me.  It appears there may be a linkage issue between the command line and the documentation.
@DmitriyKirakosyan -- Dima, please look into this issue.

In case it helps, the command line takes me to https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2013/fx7sdeyf(v=vs.120)?f1url=%3FappId%3DDev14IDEF1%26rd%3Dtrue%26l%3DEN-US%26k%3Dk(vs.tfc.sourcecontrol.CommandGet), which has a hyperlink to http://go.microsoft.com/fwlink/?linkid=253390, rather than the docs.microsoft.com @WilliamAntonRohm has above.


Conformance Helpers Should be Cleaned Up

What would you like to be added:
We currently have some duplicative methods that really should be unified before we add conformance tests for more types. For example, the following functions have significant overlap:

GatewayAndHTTPRoutesMustBeAccepted + GatewayAndTLSRoutesMustBeAccepted
https://github.com/kubernetes-sigs/gateway-api/blob/bca1f48180ad394c004bb2d4aa4896d5c6d7bae6/conformance/utils/kubernetes/helpers.go#L231
https://github.com/kubernetes-sigs/gateway-api/blob/bca1f48180ad394c004bb2d4aa4896d5c6d7bae6/conformance/utils/kubernetes/helpers.go#L569

HTTPRouteMustHaveParents + TLSRouteMustHaveParents
https://github.com/kubernetes-sigs/gateway-api/blob/bca1f48180ad394c004bb2d4aa4896d5c6d7bae6/conformance/utils/kubernetes/helpers.go#L396
https://github.com/kubernetes-sigs/gateway-api/blob/bca1f48180ad394c004bb2d4aa4896d5c6d7bae6/conformance/utils/kubernetes/helpers.go#L426

Why this is needed:
Our conformance tests have grown organically over the years. Although each change made sense in isolation, these changes have resulted in a high likelihood that we'll start to have unexpected variations between tests for different route types.
Note: This is going to be complex to resolve, it would likely be good for someone that already has experience writing and/or running conformance tests to work on this. It may also be good to agree on a direction in this issue before investing too much time in writing code for this.

/area conformance
/kind cleanup
/remove-kind feature

I looked at this code a bit yesterday.
I'm guessing it would be best if instead GatewayAndHTTPRoutesMustBeAccepted() one could use GatewayAndRoutesMustBeAccepted() and it works for all types of connected routes.
So the problem in general is that we have types that have similar structure (at least in the part relevant here), as these all have route.Status.Parents.
One options is that these could be read as unstructured (which doesn't look great). Another is to have some adapter per type implementing a function like GetStatus() . The problem is that you need to know what type you need to read upfront https://github.com/kubernetes-sigs/gateway-api/blob/bca1f48180ad394c004bb2d4aa4896d5c6d7bae6/conformance/utils/kubernetes/helpers.go#L404-L405
so you still don't know which adapter to use

actually it is not possible to get a route without providing it's kind before. So you do need to know what type it is upfront.

one way of doing this without writing code per route type is to use reflection to get RouteStatus, which all routes must have. Seems to work https://github.com/kubernetes-sigs/gateway-api/commit/dfc708c65b07a564c5995262f07d039af58545b6

/remove-lifecycle stale

Seems like this would still be useful, so I'll unstale for now.
/remove-lifecycle rotten
@mlavacca @shaneutt for conformance cleanup task tracking.

Yep, this is definitely still useful 👍


Nitpicky fix for Wigner 3j sign convention

While playing with various implementations of the Wigner 3j recurrence, I noticed a small problem with the version used in Namaster: whenever the last coefficient is so small that it underflows to zero, the sign of the returned coefficients may be wrong. As far as I can see, this makes no difference in practice for NaMaster, since only the squares of the coefficients are used, so this is mostly relevant for people wanting to use Namaster's Wigner 3j implementation for other purposes.
Note that the original Fortran implementation also explicitly checks for the sign of the coefficient (see, e.g., https://github.com/fujiisoup/py3nj/blob/bfcd5f466dd88f2d40785999e5a1ed5299a66cef/fortran/drc3jj.f#L412), making use of the fact that IEEE arithmetics distinguishes between +0 and -0.

Thanks for spotting this @mreineck . I'll try to fix this ASAP!

Thanks a lot @mreineck !


Minor text edits and links fixes

Not sure what "Merge remote-tracking branch 'origin/main' does here, please review, @mell4ce


Exclude onConflict column in merge

await db.post.create({ id, data }).onConflict("id").merge()

generates:
INSERT INTO "post"("id", "data") VALUES ($1, $2) ON CONFLICT ("id") DO UPDATE
  SET "id" = excluded."id", "data" = excluded."data" RETURNING "id", "create_time" AS "createTime", "data"

I believe there is no point in doing UPDATE on the conflicting fields? The query could be reduced to:
INSERT INTO "post"("id", "data") VALUES ($1, $2) ON CONFLICT ("id") DO UPDATE
  SET "data" = excluded."data" RETURNING "id", "create_time" AS "createTime", "data"

The only problem I see is when the update is only performed on the keys (i.e. await db.post.create({ id }).onConflict("id").merge()). Thoughts?

Published, now onConflicted columns will be excluded from the merge, and it will DO NOTHING when all are excluded.


TailwindConfig type changed in react-email 3.0

Describe the Bug
Setting a config for tailwind errors out with the 3.0 release
https://github.com/flathub-infra/website/pull/3763
https://github.com/flathub-infra/website/actions/runs/10522369333/job/29154863956?pr=3763
Run yarn build
Error: emails/base.tsx(57,9): error TS2740: Type '{ theme: { extend: { colors: { "flathub-celestial-blue": string; }; }; }; }' is missing the following properties from type 'TailwindConfig': prefix, important, separator, safelist, and 7 more.
Error: Process completed with exit code 2.

Which package is affected (leave empty if unsure)
@react-email/tailwind
Link to the code that reproduces this issue
https://github.com/flathub-infra/website/pull/3763
To Reproduce
Try to use
<Tailwind
        config={{
          theme: {
            extend: {
              colors: {
                "flathub-celestial-blue": "hsl(211, 65%, 57%)",
              },
            },
          },
        }}
      >

Expected Behavior
It should probably still keep working as it is. Otherwise, there should have been instructions on the change and the docs on the website also would need an update.
What's your node version? (if relevant)
No response

That seems to be a bug for sure. What this new release fixed was that the type was not right at all, but it seems like I forgot to make it Partial to avoid all the properties being required. Going to get it fixed ASAP

Can't quite reproduce this, are you sure it isn't something on your side?

Found out what it is, the issue is because you don't have Tailwind installed on your backend. What happens is that we bundle Tailwind on our side, that means that after compilation, Tailwind is not something that can be imported anymore. If it was a dependency, it could cause issues, but I'm going to explore on that a bit more later to make sure it wouldn't be fine.
The problem, then, is that Tailwind is not installed, and its types are not bundled in, meaning that it can't find the types and breaks like that. Now, I think this only happens after the upgrade to<EMAIL_ADDRESS>because it used to include Tailwind as a dependency and doesn't anymore, as we have optimized it a lot.
Thanks for pointing this out! Will take a look at fixing.

Could not have done it without a link to the code that reproduces, thanks for that.

I have just had the same issue when building after upgrading to<EMAIL_ADDRESS>I have added ``@ts-expect-error```just above the config prop until the issue is fixed :)

we are still having this issue with "react-email": "3.0.1", any updates?

any updates?

This worked, but seems to be back with 0.0.30 and @react-email/tailwind/1.0.3
https://github.com/flathub-infra/website/pull/4280


Typescript  - .pipe(catchError())  type issues.

source.pipe(catchError(e=>throwError(new Error("SOMETHING BAD HAPPENED"))))
source.subscribe((r:Author)=>console.log("GOOD"),err=>console.log("ERROR))

basically there is an issue with catchError because it will mess up with the type resulting in this error like this :
error TS2322: Type 'Observable<{}>' is not assignable to type 'Observable<Author>'.
  Type '{}' is not assignable to type 'Author'.
    Property 'title' is missing in type '{}'.

I created a work around this but maybe there is a better way.
  private catchHttpError = <T>() =>
    catchError<T, T>((error: HttpErrorResponse) => {
      const msg = `${error.status} ${error.statusText} -  ${error.url}`;

      return throwError(new Error(msg));
    });

  private apiPipe = <T>() => pipe(share(), this.catchHttpError<T>());

When i pass the type to my apiPipe function and to catchError operator no errors comeout but it looks dirty to me.
Anyone have ideas?

I saw the same thing today.

Related to https://github.com/Microsoft/TypeScript/issues/5453? See https://twitter.com/BenLesh/status/979485249057972224.

I tested this on stackblitz and it doesn't show any compilation error.
https://stackblitz.com/edit/rxjs6-demo-xrqrva?file=index.ts
I tried it also locally with<EMAIL_ADDRESS>and<EMAIL_ADDRESS>and it compiled fine.

@martinsik this is very weird.

The same here, but the problem seems to be with throwError.
Previously I had:
  public createAccount(name: string, email: string, password: string): Observable<Account> {
    return this.http.post<Account>(RequestUtils.getApiUrl('/accounts'), {name, email, password}, RequestUtils.getJsonOptions()).pipe(
      map((data: Account) => new Account(data)),
      catchError((err: HttpErrorResponse) => {
        const apiError = ApiError.withResponse(err);
        this.eventService.publish(EventService.EVENT_API_ERROR, apiError);
        return Observable.throw(apiError);
      })
    );
  }

It compiles but Observable.throw should be replaced by throwError. By replacing, Typescript is forcing me to return the Observable<{} | Account>.
  public createAccount(name: string, email: string, password: string): Observable<{} | Account> {
    return this.http.post<Account>(RequestUtils.getApiUrl('/accounts'), {name, email, password}, RequestUtils.getJsonOptions()).pipe(
      map((data: Account) => new Account(data)),
      catchError((err: HttpErrorResponse) => {
        const apiError = ApiError.withResponse(err);
        this.eventService.publish(EventService.EVENT_API_ERROR, apiError);
        return throwError(apiError);
      })
    );
  }

I don't want to return Observable<{} | Account>, but just Observable.

OK, It seems I was importing throwError wrongly.
From:
import {throwError} from 'rxjs/observable/throw';
To:
import {_throw} from 'rxjs/observable/throw';

What version of RxJS are you using?

@benlesh
I'm running into this same problem with RxJs 6.1.0 and RxJS 5.x. Here is the code that is causing the errors for me:
  cartSetShippingAddress(sessionId: string, address: Address): Observable<string> {
    const url = `...`;

    const postData = {...};

    return this.http.post(url, postData).pipe(
      map((res: {addressId: string}) => res.addressId),
      catchError(this.handleError.bind(this))
    );
  }

And in the handleError method:
  private handleError(error) {
    let errMsg: string;
    ...
    return _throw(errMsg);
  }

The error that I get is:
error TS2322: Type 'Observable<string | {}>' is not assignable to type 'Observable<string>'.
  Type 'string | {}' is not assignable to type 'string'.
    Type '{}' is not assignable to type 'string'.

If I remove the catchError call, the error goes away, and if I change the return type of cartSetShippingAddress to Observable<string | {}>, the error also goes away.
I also tried returning something other than _throw(...) from the handleError method, but no matter what I return, the error persists.

@jdgarvey i have edited your stackblitz to remove the compilation error. You have to typecast your http.get to "MyModel", otherwise it expects something of type "Object", which is not compliant with the methods return type. I also changed it back to the "throwError" method from 'rxjs', which i believe (correct me if im wrong) is the correct way to do it:
`import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {map, catchError} from 'rxjs/operators';
import {Observable, throwError} from 'rxjs';
interface MyModel {
foo: string;
}
@Injectable()
export class ExampleService {
constructor(private http: HttpClient) {}
exampleGet(): Observable {
return this.http.get('example/endpoint')
.pipe(
catchError(e => throwError(e))
);
}
}
`
I am not sure if this will fix the original question as well

@karstensgit thank you for checking this out! I tried your code, and it fixed the StackBlitz. Then I ported that code over to my project and was still getting an error, but then realized it was because .bind wasn't being correctly typed. If anybody has this same problem, check this issue out. Once I included the correct types for .bind, the compilation errors went away.
As for proper way to import throw, I have seen it both ways. The most "official" way seems to be the way you described, but I cannot seem to import throwError from rxjs, I have to import it from rxjs/index. Strange, but I'll keep checking it out.
Thanks again for your help!

@jdgarvey What TypeScript version you used to compile your example?

@martinsik My local project is using 2.6.2. Couldn't find TS version on the StackBlitz.

@jdgarvey your example is incorrectly trying to import _throw from rxjs/observable/throw in RxJS 6.1.0... it's import { throwError } from 'rxjs;` that you want to do.
Regardless, I'm not sure there's anything we can do about this, TypeScript seems unable to infer types through this composition.
Here's the workaround for now:
source.pipe(
  catchError<SourceType, never>(err => throwError('whatever')),
)


Datapar zip iterator

This provides a massive simplification of implementing a vectorization backend for the parallel algorithms. Essentially we now require the implementation of four relatively small traits for each of the back ends.

Please note, that while the files to support LibFlatArray as a backend are in place, the current code does not compile yet because of missing interfaces in the back end library itself. The othe back end implementations (Vc and Boost.Simd) work as expected.

@sithhell The latest change addresses your comment.

The comment was not meant to be about performance, more about code clarity
;)


Project sound like fun

I've been meaning to create one of these for ages, but never got around to it.  I'd love to help you.  Have you done any planning for your models and library interfaces?

This was one of my first choices for a project.   I do a lot of "unit conversions" for the project I am working on at my job.   I would love to help.

@SteveTeece I just created the basic scaffolding for the data models and the converter class, along with the unit test class, this morning.


Test for burst load

Describe the bug
Simulate the anticipated burst load during token launch, by initiating as many transfers as possible, in a very short period of time, ideally within the same minute.
Additional context
We want to know how our system reacts, when we initiate, say 50K transfers simultaneously.

Goals: Measure expected peak scenario simultaneous crosschain claim

measure how long it takes to get through a backlog and if claimin users will see significant delays
find unforseen issues with our system handling a large burst of load

Nothing more to do here, closing.